ubxcfg.h 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  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. #ifndef UBLOXCFG_H
  27. #define UBLOXCFG_H
  28. #include "ubxmessage.h"
  29. #ifdef __cplusplus
  30. extern "C"
  31. {
  32. #endif
  33. extern struct UBXMsgBuffer getCFG_ANT(UBXX2_t flags, //See UBXANTFlags to fill this field
  34. struct UBXANTPins pins);
  35. extern struct UBXMsgBuffer getCFG_ANT_POLL();
  36. extern struct UBXMsgBuffer getCFG_CFG(UBXX4_t clearMask, //See UBXCFGMask to fill this field
  37. UBXX4_t saveMask, //See UBXCFGMask to fill this field
  38. UBXX4_t loadMask //See UBXCFGMask to fill this field
  39. );
  40. extern struct UBXMsgBuffer getCFG_CFG_OPT(UBXX4_t clearMask, //See UBXCFGMask to fill this field
  41. UBXX4_t saveMask, //See UBXCFGMask to fill this field
  42. UBXX4_t loadMask, //See UBXCFGMask to fill this field
  43. UBXX1_t deviceMask //See UBXCFGDeviceMask to fill this field
  44. );
  45. extern struct UBXMsgBuffer getCFG_DAT_IN(UBXR8_t majA,
  46. UBXR8_t flat,
  47. UBXR4_t dX,
  48. UBXR4_t dY,
  49. UBXR4_t dZ,
  50. UBXR4_t rotX,
  51. UBXR4_t rotY,
  52. UBXR4_t rotZ,
  53. UBXR4_t scale);
  54. extern struct UBXMsgBuffer getCFG_DAT_POLL();
  55. extern struct UBXMsgBuffer getCFG_GNSS_POLL();
  56. extern struct UBXMsgBuffer getCFG_GNSS(UBXU1_t msgVer,
  57. UBXU1_t numTrkChHw,
  58. UBXU1_t numTrkChUse,
  59. UBXU1_t numConfigBlocks,
  60. struct UBXCFG_GNSS_PART* gnssPart,
  61. int gnssPartCount);
  62. extern struct UBXMsgBuffer getCFG_INF_POLL(UBXU1_t protocolId);
  63. extern struct UBXMsgBuffer getCFG_INF(struct UBXCFG_INF_PART *infPart, int infPartCount);
  64. extern struct UBXMsgBuffer getCFG_ITFM_POLL();
  65. extern struct UBXMsgBuffer getCFG_ITFM(struct UBXITFMConfig config, struct UBXITFMConfig2 config2);
  66. extern struct UBXMsgBuffer getCFG_LOGFILTER_POLL();
  67. extern struct 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 struct UBXMsgBuffer getCFG_MSG_POLL(enum UBXMessageClass msgClass, enum UBXMessageId msgId);
  74. extern struct UBXMsgBuffer getCFG_MSG_RATE(enum UBXMessageClass msgClass, enum UBXMessageId msgId, UBXU1_t rate);
  75. extern struct UBXMsgBuffer getCFG_MSG_RATES(enum UBXMessageClass msgClass, enum UBXMessageId msgId, UBXU1_t rate[6]);
  76. extern struct UBXMsgBuffer getCFG_NAV5_POLL();
  77. extern struct UBXMsgBuffer getCFG_NAV5(UBXX2_t mask, //See UBXNAV5Mask to fill this field
  78. enum UBXNAV5Model dynModel,
  79. enum UBXNAV5FixMode fixMode,
  80. UBXI4_t fixedAlt,
  81. UBXU4_t fixedAltVar,
  82. UBXI1_t minElev,
  83. UBXU1_t drLimit,
  84. UBXU2_t pDop,
  85. UBXU2_t tDop,
  86. UBXU2_t pAcc,
  87. UBXU2_t tAcc,
  88. UBXU1_t staticHoldThresh,
  89. UBXU1_t dgpsTimeOut,
  90. UBXU1_t cnoThreshNumSVs,
  91. UBXU1_t cnoThresh);
  92. extern struct UBXMsgBuffer getCFG_NAVX5_POLL();
  93. extern struct UBXMsgBuffer getCFG_NAVX5(UBXU2_t version,
  94. UBXX2_t mask1,//See UBXNAVX5Mask to fill this field
  95. UBXU1_t minSVs,
  96. UBXU1_t maxSVs,
  97. UBXU1_t minCNO,
  98. UBXU1_t iniFix3D,
  99. UBXU2_t wknRollover,
  100. UBXU1_t usePPP,
  101. UBXU1_t aopCFG,// 0-disabled, 1 - enabled
  102. UBXU1_t aopOrbMaxErr);
  103. extern struct UBXMsgBuffer getCFG_NMEA_POLL();
  104. extern struct UBXMsgBuffer getCFG_NMEA(UBXX1_t filter, //See UBXNMEAFilter to fill this field
  105. UBXU1_t nmeaVersion,
  106. UBXU1_t numSV,
  107. UBXX1_t flags, //See UBXNMEAFlags to fill this field
  108. UBXX4_t gnssToFilter, //See UBXNMEAGNSSToFilter to fill this field
  109. enum UBXNMEASVNumbering svNumbering,
  110. enum UBXNMEATalkerIds mainTalkerId,
  111. enum UBXNMEAGSVTalkerIds gsvTalkerId);
  112. extern struct UBXMsgBuffer getCFG_NVS(UBXX4_t clearMask, //See UBXCFGMask CFG_NVS section to fill this field
  113. UBXX4_t saveMask, //See UBXCFGMask CFG_NVS section to fill this field
  114. UBXX4_t loadMask, //See UBXCFGMask CFG_NVS section to fill this field
  115. UBXX1_t deviceMask //See UBXCFGDeviceMask to fill this field
  116. );
  117. extern struct UBXMsgBuffer getCFG_PM2_POLL();
  118. extern struct UBXMsgBuffer getCFG_PM2(struct UBXCFG_PM2Flags flags,
  119. UBXU4_t updatePeriod,
  120. UBXU4_t searchPeriod,
  121. UBXU4_t gridOffset,
  122. UBXU2_t onTime,
  123. UBXU2_t minAcqTime);
  124. extern struct UBXMsgBuffer getCFG_PRT_POLL();
  125. extern struct UBXMsgBuffer getCFG_PRT_POLL_OPT(UBXU1_t portId);
  126. extern struct UBXMsgBuffer getCFG_PRT_UART();
  127. extern struct UBXMsgBuffer getCFG_PRT_USB();
  128. extern struct UBXMsgBuffer getCFG_PRT_SPI();
  129. extern struct UBXMsgBuffer getCFG_PRT_DDC();
  130. extern struct UBXMsgBuffer getCFG_RATE_POLL();
  131. extern struct UBXMsgBuffer getCFG_RATE();
  132. extern struct UBXMsgBuffer getCFG_RINV();
  133. extern struct UBXMsgBuffer getCFG_RINV_POLL();
  134. extern struct UBXMsgBuffer getCFG_RST(enum UBXResetMode mode, u_int16_t mask);
  135. extern struct UBXMsgBuffer getCFG_RXM();
  136. extern struct UBXMsgBuffer getCFG_RXM_POLL();
  137. extern struct UBXMsgBuffer getCFG_SBAS_POLL();
  138. extern struct UBXMsgBuffer getCFG_SBAS();
  139. extern struct UBXMsgBuffer getCFG_TP5_POLL();
  140. extern struct UBXMsgBuffer getCFG_TP5_POLL_OPT(enum UBXCFGTimepulses tpIdx);
  141. extern struct UBXMsgBuffer getCFG_TP5(enum UBXCFGTimepulses tpIdx,
  142. int16_t antCableDelay,
  143. int16_t rfGroupDelay,
  144. u_int32_t freqPeriod,
  145. u_int32_t freqPeriodLock,
  146. u_int32_t pulseLenRatio,
  147. u_int32_t pulseLenRatioLock,
  148. int32_t userConfigDelay,
  149. int32_t flags);
  150. extern struct UBXMsgBuffer getCFG_USB_POLL();
  151. extern struct UBXMsgBuffer getCFG_USB();
  152. #ifdef __cplusplus
  153. }
  154. #endif
  155. #endif // UBLOXCFG_H