ubxcfg.h 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  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();
  66. extern struct UBXMsgBuffer getCFG_LOGFILTER_POLL();
  67. extern struct UBXMsgBuffer getCFG_LOGFILTER();
  68. extern struct UBXMsgBuffer getCFG_MSG_POLL(enum UBXMessageClass msgClass, enum UBXMessageId msgId);
  69. extern struct UBXMsgBuffer getCFG_MSG_RATE(enum UBXMessageClass msgClass, enum UBXMessageId msgId, u_int8_t rate);
  70. extern struct UBXMsgBuffer getCFG_MSG_RATES(enum UBXMessageClass msgClass, enum UBXMessageId msgId, u_int8_t rate[6]);
  71. extern struct UBXMsgBuffer getCFG_NAV5_POLL();
  72. extern struct UBXMsgBuffer getCFG_NAV5();
  73. extern struct UBXMsgBuffer getCFG_NAVX5_POLL();
  74. extern struct UBXMsgBuffer getCFG_NAVX5();
  75. extern struct UBXMsgBuffer getCFG_NMEA_POLL();
  76. extern struct UBXMsgBuffer getCFG_NMEA();
  77. extern struct UBXMsgBuffer getCFG_NVS();
  78. extern struct UBXMsgBuffer getCFG_PM2_POLL();
  79. extern struct UBXMsgBuffer getCFG_PM2();
  80. extern struct UBXMsgBuffer getCFG_PRT_POLL();
  81. extern struct UBXMsgBuffer getCFG_PRT_POLL_OPT(UBXU1_t portId);
  82. extern struct UBXMsgBuffer getCFG_PRT();
  83. extern struct UBXMsgBuffer getCFG_RATE_POLL();
  84. extern struct UBXMsgBuffer getCFG_RATE();
  85. extern struct UBXMsgBuffer getCFG_RINV();
  86. extern struct UBXMsgBuffer getCFG_RINV_POLL();
  87. extern struct UBXMsgBuffer getCFG_RST(enum UBXResetMode mode, u_int16_t mask);
  88. extern struct UBXMsgBuffer getCFG_RXM();
  89. extern struct UBXMsgBuffer getCFG_RXM_POLL();
  90. extern struct UBXMsgBuffer getCFG_SBAS_POLL();
  91. extern struct UBXMsgBuffer getCFG_SBAS();
  92. extern struct UBXMsgBuffer getCFG_TP5_POLL();
  93. extern struct UBXMsgBuffer getCFG_TP5_POLL_OPT(enum UBXCFGTimepulses tpIdx);
  94. extern struct UBXMsgBuffer getCFG_TP5(enum UBXCFGTimepulses tpIdx,
  95. int16_t antCableDelay,
  96. int16_t rfGroupDelay,
  97. u_int32_t freqPeriod,
  98. u_int32_t freqPeriodLock,
  99. u_int32_t pulseLenRatio,
  100. u_int32_t pulseLenRatioLock,
  101. int32_t userConfigDelay,
  102. int32_t flags);
  103. extern struct UBXMsgBuffer getCFG_USB_POLL();
  104. extern struct UBXMsgBuffer getCFG_USB();
  105. #ifdef __cplusplus
  106. }
  107. #endif
  108. #endif // UBLOXCFG_H