ubxcfg.h 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. /*
  2. * ubxproto
  3. * Copyright (c) 2014, Alexey Edelev aka semlanik, All rights reserved.
  4. *
  5. * This library is free software; you can redistribute it and/or
  6. * modify it under the terms of the GNU Lesser General Public
  7. * License as published by the Free Software Foundation; either
  8. * version 3.0 of the License, or (at your option) any later version.
  9. *
  10. * This library is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  13. * Lesser General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU Lesser General Public
  16. * License along with this library.
  17. *
  18. * Additionally to GNU Lesser General Public License you MUST NOT
  19. * static link this library and MUST add link to author
  20. * and source of this library in your application.
  21. *
  22. * Actual LGPL text https://www.gnu.org/licenses/lgpl.html
  23. *
  24. * File: ubxcfg.h
  25. */
  26. /*! \file */
  27. #ifndef UBLOXCFG_H
  28. #define UBLOXCFG_H
  29. #include "ubxmessage.h"
  30. #ifdef __cplusplus
  31. extern "C"
  32. {
  33. #endif
  34. extern UBXMsgBuffer getCFG_ANT(UBXX2_t flags, //See UBXANTFlags to fill this field
  35. UBXANTPins pins);
  36. extern UBXMsgBuffer getCFG_ANT_POLL();
  37. extern UBXMsgBuffer getCFG_CFG(UBXX4_t clearMask, //See UBXCFGMask to fill this field
  38. UBXX4_t saveMask, //See UBXCFGMask to fill this field
  39. UBXX4_t loadMask //See UBXCFGMask to fill this field
  40. );
  41. extern UBXMsgBuffer getCFG_CFG_OPT(UBXX4_t clearMask, //See UBXCFGMask to fill this field
  42. UBXX4_t saveMask, //See UBXCFGMask to fill this field
  43. UBXX4_t loadMask, //See UBXCFGMask to fill this field
  44. UBXX1_t deviceMask //See UBXCFGDeviceMask to fill this field
  45. );
  46. extern UBXMsgBuffer getCFG_DAT_IN(UBXR8_t majA,
  47. UBXR8_t flat,
  48. UBXR4_t dX,
  49. UBXR4_t dY,
  50. UBXR4_t dZ,
  51. UBXR4_t rotX,
  52. UBXR4_t rotY,
  53. UBXR4_t rotZ,
  54. UBXR4_t scale);
  55. extern UBXMsgBuffer getCFG_DAT_POLL();
  56. extern UBXMsgBuffer getCFG_GNSS_POLL();
  57. extern UBXMsgBuffer getCFG_GNSS(UBXU1_t msgVer,
  58. UBXU1_t numTrkChHw,
  59. UBXU1_t numTrkChUse,
  60. UBXU1_t numConfigBlocks,
  61. UBXCFG_GNSS_PART* gnssPart);
  62. extern UBXMsgBuffer getCFG_INF_POLL(UBXU1_t protocolId);
  63. extern UBXMsgBuffer getCFG_INF(UBXCFG_INF_PART *infPart, int infPartCount);
  64. extern UBXMsgBuffer getCFG_ITFM_POLL();
  65. extern UBXMsgBuffer getCFG_ITFM(UBXITFMConfig config, UBXITFMConfig2 config2);
  66. extern UBXMsgBuffer getCFG_LOGFILTER_POLL();
  67. extern UBXMsgBuffer getCFG_LOGFILTER(UBXU1_t version,
  68. UBXX1_t flags, //See UBXLOGFILTERFlags to fill this field
  69. UBXU2_t minIterval,
  70. UBXU2_t timeThreshold,
  71. UBXU2_t speedThreshold,
  72. UBXU4_t positionThreshold);
  73. extern UBXMsgBuffer getCFG_MSG_POLL(UBXMessageClass msgClass, UBXMessageId msgId);
  74. extern UBXMsgBuffer getCFG_MSG_RATE(UBXMessageClass msgClass, UBXMessageId msgId, UBXU1_t rate);
  75. extern UBXMsgBuffer getCFG_MSG_RATES(UBXMessageClass msgClass, UBXMessageId msgId, UBXU1_t rate[6]);
  76. extern UBXMsgBuffer getCFG_NAV5_POLL();
  77. extern UBXMsgBuffer getCFG_NAV5(UBXX2_t mask, //See UBXNAV5Mask to fill this field
  78. UBXNAV5Model dynModel,
  79. UBXNAV5FixMode fixMode,
  80. UBXI4_t fixedAlt,
  81. UBXU4_t fixedAltVar,
  82. UBXI1_t minElev,
  83. UBXU2_t pDop,
  84. UBXU2_t tDop,
  85. UBXU2_t pAcc,
  86. UBXU2_t tAcc,
  87. UBXU1_t staticHoldThresh,
  88. UBXU1_t dgpsTimeOut,
  89. UBXU1_t cnoThreshNumSVs,
  90. UBXU1_t cnoThresh);
  91. extern UBXMsgBuffer getCFG_NAVX5_POLL();
  92. extern UBXMsgBuffer getCFG_NAVX5(UBXU2_t version,
  93. UBXX2_t mask1,//See UBXNAVX5Mask to fill this field
  94. UBXU1_t minSVs,
  95. UBXU1_t maxSVs,
  96. UBXU1_t minCNO,
  97. UBXU1_t iniFix3D,
  98. UBXU2_t wknRollover,
  99. UBXU1_t usePPP,
  100. UBXU1_t aopCFG,// 0-disabled, 1 - enabled
  101. UBXU1_t aopOrbMaxErr);
  102. extern UBXMsgBuffer getCFG_NMEA_POLL();
  103. extern UBXMsgBuffer getCFG_NMEA(UBXX1_t filter, //See UBXNMEAFilter to fill this field
  104. UBXU1_t nmeaVersion,
  105. UBXU1_t numSV,
  106. UBXX1_t flags, //See UBXNMEAFlags to fill this field
  107. UBXX4_t gnssToFilter, //See UBXNMEAGNSSToFilter to fill this field
  108. UBXNMEASVNumbering svNumbering,
  109. UBXNMEATalkerIds mainTalkerId,
  110. UBXNMEAGSVTalkerIds gsvTalkerId);
  111. extern UBXMsgBuffer getCFG_NVS(UBXX4_t clearMask, //See UBXCFGMask CFG_NVS section to fill this field
  112. UBXX4_t saveMask, //See UBXCFGMask CFG_NVS section to fill this field
  113. UBXX4_t loadMask, //See UBXCFGMask CFG_NVS section to fill this field
  114. UBXX1_t deviceMask //See UBXCFGDeviceMask to fill this field
  115. );
  116. extern UBXMsgBuffer getCFG_PM2_POLL();
  117. extern UBXMsgBuffer getCFG_PM2(UBXCFG_PM2Flags flags,
  118. UBXU4_t updatePeriod,
  119. UBXU4_t searchPeriod,
  120. UBXU4_t gridOffset,
  121. UBXU2_t onTime,
  122. UBXU2_t minAcqTime);
  123. extern UBXMsgBuffer getCFG_PRT_POLL();
  124. extern UBXMsgBuffer getCFG_PRT_POLL_OPT(UBXU1_t portId);
  125. extern UBXMsgBuffer getCFG_PRT_UART();
  126. extern UBXMsgBuffer getCFG_PRT_USB();
  127. extern UBXMsgBuffer getCFG_PRT_SPI();
  128. extern UBXMsgBuffer getCFG_PRT_DDC();
  129. extern UBXMsgBuffer getCFG_RATE_POLL();
  130. extern UBXMsgBuffer getCFG_RATE(UBXU2_t measRate, UBXU2_t navRate, UBXU2_t timeRef);
  131. extern UBXMsgBuffer getCFG_RINV(UBXX1_t flags, UBXU1_t *data, int dataSize);
  132. extern UBXMsgBuffer getCFG_RINV_POLL();
  133. extern UBXMsgBuffer getCFG_RST(int mode, UBXU2_t mask);
  134. extern UBXMsgBuffer getCFG_RST_OPT(int mode, UBXBBRSpecialSets special);
  135. extern UBXMsgBuffer getCFG_RXM(UBXU1_t lpMode //See UBXRXMLowPowerModes to fill this field
  136. );
  137. extern UBXMsgBuffer getCFG_RXM_POLL();
  138. extern UBXMsgBuffer getCFG_SBAS_POLL();
  139. extern UBXMsgBuffer getCFG_SBAS(UBXX1_t mode, //See UBXSBASModes to fill this field
  140. UBXX1_t usage, //See UBXSBASUsage to fill this field
  141. UBXU1_t maxSBAS,
  142. UBXX1_t scanmode2, //See UBXSBASScanModes2 to fill this field
  143. UBXX4_t scanmode1 //See UBXSBASScanModes1 to fill this fields
  144. );
  145. extern UBXMsgBuffer getCFG_TP5_POLL();
  146. extern UBXMsgBuffer getCFG_TP5_POLL_OPT(UBXCFGTimepulses tpIdx);
  147. extern UBXMsgBuffer getCFG_TP5(UBXCFGTimepulses tpIdx, UBXI2_t antCableDelay, UBXI2_t rfGroupDelay,
  148. UBXU4_t freqPeriod, UBXU4_t freqPeriodLock, UBXU4_t pulseLenRatio,
  149. UBXU4_t pulseLenRatioLock, UBXU4_t userConfigDelay, UBXU4_t flags);
  150. extern UBXMsgBuffer getCFG_USB_POLL();
  151. extern UBXMsgBuffer getCFG_USB(UBXU2_t vendorId,
  152. UBXU2_t productId,
  153. UBXU2_t powerConsumption,
  154. UBXX2_t flags, //See UBXUSBFlags to fill this field
  155. UBXCH_t* vendorString,
  156. UBXCH_t* productString,
  157. UBXCH_t* serialNumber);
  158. #ifdef __cplusplus
  159. }
  160. #endif
  161. #endif // UBLOXCFG_H