ubxmessage.h 51 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369
  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 to your application 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: ubxmessage.h
  25. */
  26. /*! \file */
  27. #ifndef UBXMESSAGE_H
  28. #define UBXMESSAGE_H
  29. #include <stdio.h>
  30. #ifdef __linux__
  31. #include <sys/types.h>
  32. #elif defined(_WIN32)
  33. //Need to add other OS depend headers
  34. #endif
  35. /*
  36. * Need to clarify how many I/O ports has each version of UBLOX before define UBX_IO_PORTS_NUM macros
  37. * current proto vesion has hardcoded 6 I/O ports by default. If you have other I/O ports amount
  38. * please define macro manualy by yourself.
  39. */
  40. #define UBX_IO_PORTS_NUM 6
  41. //#if!defined UBLOX_VERSION
  42. //#error Before using library define UBLOX_VERSION first
  43. //#else
  44. //#if UBLOX_VERSION == 5 || UBLOX_VERSION == 6
  45. //#define UBX_IO_PORTS_NUM 6
  46. //#else
  47. //#define UBX_IO_PORTS_NUM 6
  48. //#endif
  49. //#endif
  50. #if defined (__linux__)
  51. typedef u_int8_t UBXU1_t;
  52. typedef u_int8_t UBXRU1_3_t;
  53. typedef int8_t UBXI1_t;
  54. typedef u_int8_t UBXX1_t;
  55. typedef u_int16_t UBXU2_t;
  56. typedef int16_t UBXI2_t;
  57. typedef u_int16_t UBXX2_t;
  58. typedef u_int32_t UBXU4_t;
  59. typedef int32_t UBXI4_t;
  60. typedef u_int32_t UBXX4_t;
  61. typedef float UBXR4_t;
  62. typedef double UBXR8_t;
  63. typedef char UBXCH_t;
  64. #else
  65. typedef unsigned char UBXU1_t;
  66. typedef unsigned char UBXRU1_3_t;
  67. typedef char UBXI1_t;
  68. typedef unsigned char UBXX1_t;
  69. typedef unsigned short UBXU2_t;
  70. typedef short UBXI2_t;
  71. typedef unsigned short UBXX2_t;
  72. typedef unsigned int UBXU4_t;
  73. typedef int UBXI4_t;
  74. typedef unsigned int UBXX4_t;
  75. typedef float UBXR4_t;
  76. typedef double UBXR8_t;
  77. typedef char UBXCH_t;
  78. #endif
  79. static const int UBX_CHECKSUM_SIZE = 2;
  80. static const int UBX_HEADER_SIZE = 6;
  81. static const UBXU2_t UBX_PREAMBLE = 0xB562;
  82. typedef enum
  83. {
  84. UBXMsgClassNAV = 0x01,
  85. UBXMsgClassRXM = 0x02,
  86. UBXMsgClassINF = 0x04,
  87. UBXMsgClassACK = 0x05,
  88. UBXMsgClassCFG = 0x06,
  89. UBXMsgClassUPD = 0x09, //TODO: new in UBX8
  90. UBXMsgClassMON = 0x0A,
  91. UBXMsgClassAID = 0x0B,
  92. UBXMsgClassTIM = 0x0D,
  93. UBXMsgClassESF = 0x10, //TODO: new in UBX8
  94. UBXMsgClassMGA = 0x13, //TODO: new in UBX8
  95. UBXMsgClassLOG = 0x21,
  96. UBXMsgClassSEC = 0x27, //TODO: new in UBX8
  97. UBXMsgClassHNR = 0x28, //TODO: new in UBX8
  98. UBXMsgClassInvalid = 255
  99. } UBXMessageClass;
  100. typedef enum
  101. {
  102. UBXMsgIdACK_NACK = 0x00,
  103. UBXMsgIdACK_ACK = 0x01,
  104. UBXMsgIdAID_ALM = 0x30,
  105. UBXMsgIdAID_ALPSRV = 0x32, //TODO: deprecated
  106. UBXMsgIdAID_ALP = 0x50, //TODO: deprecated
  107. UBXMsgIdAID_AOP = 0x33,
  108. UBXMsgIdAID_DATA = 0x10,
  109. UBXMsgIdAID_EPH = 0x31,
  110. UBXMsgIdAID_HUI = 0x02,
  111. UBXMsgIdAID_INI = 0x01,
  112. UBXMsgIdAID_REQ = 0x00, //TODO: deprecated
  113. UBXMsgIdCFG_ANT = 0x13,
  114. UBXMsgIdCFG_BATCH = 0x93, //TODO: new in UBX8
  115. UBXMsgIdCFG_CFG = 0x09,
  116. UBXMsgIdCFG_DAT = 0x06,
  117. UBXMsgIdCFG_DGNSS = 0x70, //TODO: new in UBX8
  118. UBXMsgIdCFG_DOSC = 0x61, //TODO: new in UBX8
  119. UBXMsgIdCFG_ESRC = 0x60, //TODO: new in UBX8
  120. UBXMsgIdCFG_GEOFENCE = 0x69, //TODO: new in UBX8
  121. UBXMsgIdCFG_GNSS = 0x3E,
  122. UBXMsgIdCFG_HNR = 0x5C, //TODO: new in UBX8
  123. UBXMsgIdCFG_INF = 0x02,
  124. UBXMsgIdCFG_ITFM = 0x39,
  125. UBXMsgIdCFG_LOGFILTER = 0x47,
  126. UBXMsgIdCFG_MSG = 0x01,
  127. UBXMsgIdCFG_NAV5 = 0x24,
  128. UBXMsgIdCFG_NAVX5 = 0x23,
  129. UBXMsgIdCFG_NMEA = 0x17,
  130. UBXMsgIdCFG_NVS = 0x22, //TODO: deprecated
  131. UBXMsgIdCFG_ODO = 0x1E,
  132. UBXMsgIdCFG_PM2 = 0x3B,
  133. UBXMsgIdCFG_PMS = 0x86, //TODO: new in UBX8
  134. UBXMsgIdCFG_PRT = 0x00,
  135. UBXMsgIdCFG_PWR = 0x58, //TODO: new in UBX8
  136. UBXMsgIdCFG_RATE = 0x08,
  137. UBXMsgIdCFG_RINV = 0x34,
  138. UBXMsgIdCFG_RST = 0x04,
  139. UBXMsgIdCFG_RXM = 0x11,
  140. UBXMsgIdCFG_SBAS = 0x16,
  141. UBXMsgIdCFG_SLAS = 0x8D, //TODO: new in UBX8
  142. UBXMsgIdCFG_SMGR = 0x62, //TODO: new in UBX8
  143. UBXMsgIdCFG_TMODE2 = 0x3D, //TODO: new in UBX8
  144. UBXMsgIdCFG_TMODE3 = 0x71, //TODO: new in UBX8
  145. UBXMsgIdCFG_TP5 = 0x31,
  146. UBXMsgIdCFG_TXSLOT = 0x53, //TODO: new in UBX8
  147. UBXMsgIdCFG_USB = 0x1B,
  148. UBXMsgIdESF_INS = 0x15, //TODO: new in UBX8
  149. UBXMsgIdESF_MEAS = 0x02, //TODO: new in UBX8
  150. UBXMsgIdESF_RAW = 0x03, //TODO: new in UBX8
  151. UBXMsgIdESF_STATUS = 0x10, //TODO: new in UBX8
  152. UBXMsgIdHNR_INS = 0x02, //TODO: new in UBX8
  153. UBXMsgIdHNR_PVT = 0x00, //TODO: new in UBX8
  154. UBXMsgIdINF_DEBUG = 0x04,
  155. UBXMsgIdINF_ERROR = 0x00,
  156. UBXMsgIdINF_NOTICE = 0x02,
  157. UBXMsgIdINF_TEST = 0x03,
  158. UBXMsgIdINF_WARNING = 0x01,
  159. UBXMsgIdLOG_BATCH = 0x11, //TODO: new in UBX8
  160. UBXMsgIdLOG_CREATE = 0x07,
  161. UBXMsgIdLOG_ERASE = 0x03,
  162. UBXMsgIdLOG_FINDTIME = 0x0E,
  163. UBXMsgIdLOG_INFO = 0x08,
  164. UBXMsgIdLOG_RETRIEVEBATCH = 0x10, //TODO: new in UBX8
  165. UBXMsgIdLOG_RETRIEVEPOSEXTRA = 0x0f, //TODO: new in UBX8
  166. UBXMsgIdLOG_RETRIEVEPOS = 0x0B,
  167. UBXMsgIdLOG_RETRIEVESTRING = 0x0D,
  168. UBXMsgIdLOG_RETRIEVE = 0x09,
  169. UBXMsgIdLOG_STRING = 0x04,
  170. UBXMsgIdMGA_ACK_DATA0 = 0x60, //TODO: new in UBX8
  171. UBXMsgIdMGA_BDS = 0x03, //TODO: new in UBX8
  172. UBXMsgIdMGA_DBD = 0x80, //TODO: new in UBX8
  173. UBXMsgIdMGA_FLASH = 0x21, //TODO: new in UBX8
  174. UBXMsgIdMGA_GAL = 0x02, //TODO: new in UBX8
  175. UBXMsgIdMGA_GLO = 0x06, //TODO: new in UBX8
  176. UBXMsgIdMGA_GPS = 0x00, //TODO: new in UBX8
  177. UBXMsgIdMGA_INI = 0x40, //TODO: new in UBX8
  178. UBXMsgIdMGA_QZSS = 0x05, //TODO: new in UBX8
  179. UBXMsgIdMON_BATCH = 0x32, //TODO: new in UBX8
  180. UBXMsgIdMON_GNSS = 0x28, //TODO: new in UBX8
  181. UBXMsgIdMON_HW2 = 0x0B,
  182. UBXMsgIdMON_HW = 0x09,
  183. UBXMsgIdMON_IO = 0x02,
  184. UBXMsgIdMON_MSGPP = 0x06,
  185. UBXMsgIdMON_PATCH = 0x27, //TODO: new in UBX8
  186. UBXMsgIdMON_RXBUF = 0x07,
  187. UBXMsgIdMON_RXR = 0x21,
  188. UBXMsgIdMON_TXBUF = 0x08,
  189. UBXMsgIdMON_VER = 0x04,
  190. UBXMsgIdNAV_AOPSTATUS = 0x60,
  191. UBXMsgIdNAV_ATT = 0x05, //TODO: new in UBX8
  192. UBXMsgIdNAV_CLOCK = 0x22,
  193. UBXMsgIdNAV_DGPS = 0x31,
  194. UBXMsgIdNAV_DOP = 0x04,
  195. UBXMsgIdNAV_EOE = 0x61, //TODO: new in UBX8
  196. UBXMsgIdNAV_GEOFENCE = 0x39, //TODO: new in UBX8
  197. UBXMsgIdNAV_HPPOSECEF = 0x13, //TODO: new in UBX8
  198. UBXMsgIdNAV_HPPOSLLH = 0x14, //TODO: new in UBX8
  199. UBXMsgIdNAV_ODO = 0x09, //TODO: new in UBX8
  200. UBXMsgIdNAV_ORB = 0x34, //TODO: new in UBX8
  201. UBXMsgIdNAV_POSECEF = 0x01,
  202. UBXMsgIdNAV_POSLLH = 0x02,
  203. UBXMsgIdNAV_PVT = 0x07,
  204. UBXMsgIdNAV_RELPOSNED = 0x3C, //TODO: new in UBX8
  205. UBXMsgIdNAV_RESETODO = 0x10, //TODO: new in UBX8
  206. UBXMsgIdNAV_SAT = 0x35, //TODO: new in UBX8
  207. UBXMsgIdNAV_SBAS = 0x32,
  208. UBXMsgIdNAV_SLAS = 0x42, //TODO: new in UBX8
  209. UBXMsgIdNAV_SOL = 0x06,
  210. UBXMsgIdNAV_STATUS = 0x03,
  211. UBXMsgIdNAV_SVINFO = 0x30,
  212. UBXMsgIdNAV_SVIN = 0x3B, //TODO: new in UBX8
  213. UBXMsgIdNAV_TIMEBDS = 0x24, //TODO: new in UBX8
  214. UBXMsgIdNAV_TIMEGAL = 0x25, //TODO: new in UBX8
  215. UBXMsgIdNAV_TIMEGLO = 0x23, //TODO: new in UBX8
  216. UBXMsgIdNAV_TIMEGPS = 0x20,
  217. UBXMsgIdNAV_TIMELS = 0x26, //TODO: new in UBX8
  218. UBXMsgIdNAV_TIMEUTC = 0x21,
  219. UBXMsgIdNAV_VELECEF = 0x11,
  220. UBXMsgIdNAV_VELNED = 0x12,
  221. UBXMsgIdRXM_ALM = 0x30, //TODO: deprecated
  222. UBXMsgIdRXM_EPH = 0x31, //TODO: deprecated
  223. UBXMsgIdRXM_IMES = 0x61, //TODO: new in UBX8
  224. UBXMsgIdRXM_MEASX = 0x14, //TODO: new in UBX8
  225. UBXMsgIdRXM_PMREQ = 0x41,
  226. UBXMsgIdRXM_RAW = 0x10, //TODO: deprecated
  227. UBXMsgIdRXM_RAWX = 0x15, //TODO: new in UBX8
  228. UBXMsgIdRXM_RLM = 0x59, //TODO: new in UBX8
  229. UBXMsgIdRXM_RTCM = 0x32, //TODO: new in UBX8
  230. UBXMsgIdRXM_SFRB = 0x11, //TODO: deprecated
  231. UBXMsgIdRXM_SFRBX = 0x13, //TODO: new in UBX8
  232. UBXMsgIdRXM_SVSI = 0x20,
  233. UBXMsgIdSEC_UNIQID = 0x03, //TODO: new in UBX8
  234. UBXMsgIdTIM_DOSC = 0x11, //TODO: new in UBX8
  235. UBXMsgIdTIM_FCHG = 0x16, //TODO: new in UBX8
  236. UBXMsgIdTIM_HOC = 0x17, //TODO: new in UBX8
  237. UBXMsgIdTIM_SMEAS = 0x13, //TODO: new in UBX8
  238. UBXMsgIdTIM_SVIN = 0x04, //TODO: new in UBX8
  239. UBXMsgIdTIM_TM2 = 0x03,
  240. UBXMsgIdTIM_TOS = 0x12, //TODO: new in UBX8
  241. UBXMsgIdTIM_TP = 0x01,
  242. UBXMsgIdTIM_VCOCAL = 0x15, //TODO: new in UBX8
  243. UBXMsgIdTIM_VRFY = 0x06,
  244. UBXMsgIdUPD_SOS = 0x14, //TODO: new in UBX8
  245. UBXMsgIdInvalid = 0xFF
  246. } UBXMessageId;
  247. typedef enum
  248. {
  249. UBXHardwareReset = 0x00,
  250. UBXControlledReset = 0x01,
  251. UBXControlledResetGNSSOnly = 0x02,
  252. UBXHardwareResetAfterShutdown = 0x04,
  253. UBXControlledGNSSStop = 0x08,
  254. UBXControlledGNSSStart = 0x09
  255. } UBXResetMode;
  256. typedef enum
  257. {
  258. UBXBBRHotstart = 0x0000,
  259. UBXBBRWarmstart = 0x0001,
  260. UBXBBRColdstart = 0xFFFF
  261. } UBXBBRSpecialSets;
  262. typedef enum
  263. {
  264. UBXBBReph = 1,
  265. UBXBBRalm = 1 << 1,
  266. UBXBBRhealth = 1 << 2,
  267. UBXBBRklob = 1 << 3,
  268. UBXBBRpos = 1 << 4,
  269. UBXBBRclkd = 1 << 5,
  270. UBXBBRosc = 1 << 6,
  271. UBXBBRutc = 1 << 7,
  272. UBXBBRrtc = 1 << 8,
  273. UBXBBRsfdr = 1 << 11,
  274. UBXBBRvmon = 1 << 12,
  275. UBXBBRtct = 1 << 13,
  276. UBXBBRaop = 1 << 15
  277. } UBXBBRMask;
  278. typedef enum
  279. {
  280. UBXHUIHealthValid = 1,
  281. UBXHUIUTCValid = 1 << 1,
  282. UBXHUIKlobValid = 1 << 2
  283. } UBXHUIFlags;
  284. typedef enum
  285. {
  286. UBXINIfEdge = 1 << 1,
  287. UBXINItm1 = 1 << 4,
  288. UBXINIf1 = 1 << 6
  289. } UBXINItmCfg;
  290. typedef enum
  291. {
  292. UBXINIpos = 1,
  293. UBXINItime = 1 << 1,
  294. UBXINIclockD = 1 << 2,
  295. UBXINItp = 1 << 3,
  296. UBXINIclockF = 1 << 4,
  297. UBXINIlla = 1 << 5,
  298. UBXINIaltInv = 1 << 6,
  299. UBXINIprevTm = 1 << 7,
  300. UBXINIutc = 1 << 10
  301. } UBXINIFlags;
  302. typedef enum
  303. {
  304. UBXANTsvcs = 1,
  305. UBXANTscd = 1 << 1,
  306. UBXANTocd = 1 << 2,
  307. UBXANTpdwnOnSCD = 1 << 3,
  308. UBXANTrecovery = 1 << 4
  309. } UBXANTFlags;
  310. typedef enum
  311. {
  312. UNXCFGBATCHenable = 1,
  313. UNXCFGBATCHextraPvt = 1 << 2,
  314. UNXCFGBATCHextraOdo = 1 << 3,
  315. UNXCFGBATCHpioEnable = 1 << 5,
  316. UNXCFGBATCHpioActiveLow = 1 << 6
  317. } UNXCFGBATCHFlags;
  318. typedef enum
  319. {
  320. UBXCFGDOSCisCalibrated = 1
  321. } UBXCFGDOSCFlags;
  322. typedef enum
  323. {
  324. UBXOscilatorInternal = 0,
  325. UBXOscilatorExternal = 1
  326. } UBXOscilatorType;
  327. typedef enum
  328. {
  329. UBXCFGDOSCCustomDACAttachedI2C = 0,
  330. UBXCFGDOSCMCP4726AttachedI2C = 1,
  331. UBXCFGDOSCDAC8571AttachedI2C = 2,
  332. UBXCFGDOSC12bitDAC = 13,
  333. UBXCFGDOSC14bitDAC = 14,
  334. UBXCFGDOSC16bitDAC = 15
  335. } UBXCFGDOSCControlInterface;
  336. typedef enum
  337. {
  338. UBXCFGESRCNone = 0,
  339. UBXCFGESRCFrequency = 1,
  340. UBXCFGESRCTime = 2,
  341. UBXCFGESRCOscillatorFeedback = 3
  342. } UBXCFGESRCType;
  343. typedef enum
  344. {
  345. UBXCFGESRCpolarity = 1,
  346. UBXCFGESRCgnssUtc = 1 << 1
  347. } UBXCFGESRCFlags;
  348. typedef enum
  349. {
  350. UBXCFGGEOFENCEConfidenceLevel0 = 0,
  351. UBXCFGGEOFENCEConfidenceLevel1 = 1,
  352. UBXCFGGEOFENCEConfidenceLevel2 = 3,
  353. UBXCFGGEOFENCEConfidenceLevel3 = 4,
  354. UBXCFGGEOFENCEConfidenceLevel4 = 5
  355. } UBXCFGGEOFENCEConfidenceLevel;
  356. typedef enum
  357. {
  358. UBXCFGGEOFENCEPIODisabled = 0,
  359. UBXCFGGEOFENCEPIOEnabled = 1
  360. } UBXCFGGEOFENCEPIOState;
  361. typedef enum
  362. {
  363. UBXCFGGEOFENCELowInside = 0,
  364. UBXCFGGEOFENCELowOutside = 1
  365. } UBXCFGGEOFENCEPinPolarity;
  366. typedef enum
  367. {
  368. //CFG_CFG message
  369. UBXCFGioPort = 1,
  370. UBXCFGmsgConf = 1 << 1,
  371. UBXCFGinfMsg = 1 << 2,
  372. UBXCFGnavConf = 1 << 3,
  373. UBXCFGrxmConf = 1 << 4,
  374. UBXCFGrinvConf = 1 << 9,
  375. UBXCFGantConf = 1 << 10,
  376. //CFG_NVS message
  377. UBXCFGalm = 1 << 17,
  378. UBXCFGaopConf = 1 << 29
  379. } UBXCFGMask;
  380. typedef enum
  381. {
  382. UBXCFGdevBBR = 1,
  383. UBXCFGdevFlash = 1 << 1,
  384. UBXCFGdevEEPROM = 1 << 2,
  385. UBXCFGdevSpiFlash = 1 << 5
  386. } UBXCFGDeviceMask;
  387. typedef enum
  388. {
  389. UBXCFGTimepulse = 0,
  390. UBXCFGTimepulse2 = 1
  391. } UBXCFGTimepulses;
  392. typedef enum
  393. {
  394. UBXCFGTimepulseActive = 1,
  395. UBXCFGTimepulseLockGpsFreq = 1 << 1,
  396. UBXCFGTimepulseLockedOtherSet = 1 << 2,
  397. UBXCFGTimepulseIsFreq = 1 << 3,
  398. UBXCFGTimepulseIsLenght = 1 << 4,
  399. UBXCFGTimepulseAlignToTow = 1 << 5,
  400. UBXCFGTimepulsePolarity = 1 << 6,
  401. UBXCFGTimepulseGridUTSGPS = 1 << 7
  402. } UBXCFGTimepulseFlags;
  403. typedef enum
  404. {
  405. UBXProtocol = 0,
  406. UBXNMEAProtocol
  407. } UBXCFGProtocolIds;
  408. typedef enum
  409. {
  410. UBXGPS,
  411. UBXSBAS,
  412. UBXQZSS = 5,
  413. UBXGLONASS = 6
  414. } UBXGNSSIds;
  415. typedef enum
  416. {
  417. UBXInfError = 1,
  418. UBXInfWarning = 1 << 1,
  419. UBXInfNotice = 1 << 2,
  420. UBXInfDebug = 1 << 3,
  421. UBXInfTest = 1 << 4
  422. } UBXCFGInfMsgMask;
  423. typedef enum
  424. {
  425. UBXITFMAntUnknown = 0,
  426. UBXITFMAntPassive = 1,
  427. UBXITFMAntActive = 2
  428. } UBXITFMAntSetting;
  429. typedef enum
  430. {
  431. UBXLOGFILTERRecordEnabled = 1,
  432. UBXLOGFILTERPsmOncePerWakupEnabled = 1 << 1,
  433. UBXLOGFILTERApplyAllFilterSettings = 1 << 2
  434. } UBXLOGFILTERFlags;
  435. typedef enum
  436. {
  437. UBXNAV5Dyn = 1,
  438. UBXNAV5MinEl = 1 << 1,
  439. UBXNAV5PosFixMode = 1 << 2,
  440. UBXNAV5DrLim = 1 << 3,
  441. UBXNAV5PosMask = 1 << 4,
  442. UBXNAV5TimeMask = 1 << 5,
  443. UBXNAV5StaticHoldMask = 1 << 6,
  444. UBXNAV5DgpsMask = 1 << 7
  445. } UBXNAV5Mask;
  446. typedef enum
  447. {
  448. UBXNAV5ModelPortable = 0,
  449. UBXNAV5ModelStationary = 2,
  450. UBXNAV5ModelPedestrian = 3,
  451. UBXNAV5ModelAutomotive = 4,
  452. UBXNAV5ModelSea = 5,
  453. UBXNAV5ModelAirborne1g = 6,
  454. UBXNAV5ModelAirborne2g = 7,
  455. UBXNAV5ModelAirborne4g = 8
  456. } UBXNAV5Model;
  457. typedef enum
  458. {
  459. UBXNAV5Fix2DOnly = 1,
  460. UBXNAV5Fix3DOnly = 2,
  461. UBXNAV5FixAuto2D3D = 3
  462. } UBXNAV5FixMode;
  463. typedef enum
  464. {
  465. UBXNAVX5AopMinMax = 1 << 2,
  466. UBXNAVX5AopMinCno = 1 << 3,
  467. UBXNAVX5AopInitial3dfix = 1 << 6,
  468. UBXNAVX5AopWknRoll = 1 << 9,
  469. UBXNAVX5AopPPP = 1 << 13,
  470. UBXNAVX5Aop = 1 << 14
  471. } UBXNAVX5Mask;
  472. typedef enum
  473. {
  474. UBXNMEAPosFilter = 1,
  475. UBXNMEAMskPosFilter = 1 << 1,
  476. UBXNMEATimeFilter = 1 << 2,
  477. UBXNMEADateFilter = 1 << 3,
  478. UBXNMEAGPSOnlyFilter = 1 << 4,
  479. UBXNMEATrackFilter = 1 << 5,
  480. } UBXNMEAFilter;
  481. typedef enum
  482. {
  483. UBXNMEAVersion23 = 0x23,
  484. UBXNMEAVersion21 = 0x21
  485. } UBXNMEAVersion;
  486. typedef enum
  487. {
  488. UBXNMEACompatFlag = 1,
  489. UBXNMEAConsiderFlag = 1 << 1
  490. } UBXNMEAFlags;
  491. typedef enum
  492. {
  493. UBXNMEAGPSFilter = 1,
  494. UBXNMEASBASFilter = 1 << 1,
  495. UBXNMEAQZSSFilter = 1 << 4,
  496. UBXNMEAGLONASSFilter = 1 << 5
  497. } UBXNMEAGNSSToFilter;
  498. typedef enum
  499. {
  500. UBXNMEASVNumStrict = 0,
  501. UBXNMEASVNumExtended = 1
  502. } UBXNMEASVNumbering;
  503. typedef enum
  504. {
  505. UBXNMEATalkerNotOverriden = 0,
  506. UBXNMEATalkerGP = 1,
  507. UBXNMEATalkerGL = 2,
  508. UBXNMEATalkerGN = 3
  509. } UBXNMEATalkerIds;
  510. typedef enum
  511. {
  512. UBXNMEAGSVTalkerGNSSSpecific = 0,
  513. UBXNMEAGSVTalkerMain = 1
  514. } UBXNMEAGSVTalkerIds;
  515. typedef enum
  516. {
  517. UBXPM2LimitCurrentDisabled = 0x00,
  518. UBXPM2LimitCurrentEnabled = 0x01
  519. } UBXPM2LimitPeakCurrent;
  520. typedef enum
  521. {
  522. UBXPM2OnOffOperation = 0x00,
  523. UBXPM2CyclicTrackOperation = 0x01
  524. } UBXPM2Mode;
  525. typedef enum
  526. {
  527. UBXPMSFullPower = 0x00,
  528. UBXPMSBalanced = 0x01,
  529. UBXPMSInterval = 0x02,
  530. UBXPMSAggressive1Hz = 0x03,
  531. UBXPMSAggressive2Hz = 0x04,
  532. UBXPMSAggressive4Hz = 0x05,
  533. UBXPMSInvalid = 0xFF
  534. } UBXPMSValue;
  535. typedef enum
  536. {
  537. UBXPRTMode5BitCharLen = 0x00, //Not supported
  538. UBXPRTMode6BitCharLen = 0x01, //Not supported
  539. UBXPRTMode7BitCharLen = 0x02, //Supported only with parity
  540. UBXPRTMode8BitCharLen = 0x03
  541. } UBXPRTModeCharLen;
  542. typedef enum
  543. {
  544. UBXPRTModeEvenParity = 0,
  545. UBXPRTModeOddParity = 1,
  546. UBXPRTModeNoParity = 1 << 3,
  547. UBXPRTModeReserved = 1 << 2
  548. } UBXPRTModeParity;
  549. typedef enum
  550. {
  551. UBXPRTMode1StopBit = 0,
  552. UBXPRTMode1dot5StopBit = 1,
  553. UBXPRTMode2StopBit = 2,
  554. UBXPRTMode0dot5StopBit = 3,
  555. } UBXPRTModeStopBits;
  556. typedef enum
  557. {
  558. UBXPRTInProtoInUBX = 1,
  559. UBXPRTInProtoInNMEA = 1 << 1,
  560. UBXPRTInProtoInRTCM = 1 << 2
  561. } UBXPRTInProtoMask;
  562. typedef enum
  563. {
  564. UBXPRTOutProtoOutUBX = 1,
  565. UBXPRTOutProtoOutNMEA = 1 << 1
  566. } UBXPRTOutProtoMask;
  567. typedef enum
  568. {
  569. UBXPRTExtendedTxTimeout = 1 << 1
  570. } UBXPRTFlags;
  571. typedef enum
  572. {
  573. UBXPRTSPIMode0 = 0, //CPOL = 0, CPHA = 0
  574. UBXPRTSPIMode1, //CPOL = 0, CPHA = 1
  575. UBXPRTSPIMode2, //CPOL = 1, CPHA = 0
  576. UBXPRTSPIMode3, //CPOL = 1, CPHA = 1
  577. } UBXPRTSPIMode;
  578. typedef enum
  579. {
  580. UBXRINVDump = 1,
  581. UBXRINVBinary = 1 << 1
  582. } UBXRINVFlags;
  583. typedef enum
  584. {
  585. UBXRXMContinousMode = 0,
  586. UBXRXMPowerSaveMode = 1
  587. } UBXRXMLowPowerModes;
  588. typedef enum
  589. {
  590. UBXSBASModeEnabled = 1,
  591. UBXSBASModeTest = 1 << 1
  592. } UBXSBASModes;
  593. typedef enum
  594. {
  595. UBXSBASUsageRange = 1,
  596. UBXSBASUsageDiffCorr = 1 << 1,
  597. UBXSBASUsageIntegrity = 1 << 2
  598. } UBXSBASUsage;
  599. typedef enum
  600. {
  601. UBXSBASScanModePRN152 = 1,
  602. UBXSBASScanModePRN153 = 1 << 1,
  603. UBXSBASScanModePRN154 = 1 << 2,
  604. UBXSBASScanModePRN155 = 1 << 3,
  605. UBXSBASScanModePRN156 = 1 << 4,
  606. UBXSBASScanModePRN157 = 1 << 5,
  607. UBXSBASScanModePRN158 = 1 << 6
  608. } UBXSBASScanModes2;
  609. typedef enum
  610. {
  611. UBXSBASScanModePRN120 = 1,
  612. UBXSBASScanModePRN121 = 1 << 1,
  613. UBXSBASScanModePRN122 = 1 << 2,
  614. UBXSBASScanModePRN123 = 1 << 3,
  615. UBXSBASScanModePRN124 = 1 << 4,
  616. UBXSBASScanModePRN125 = 1 << 5,
  617. UBXSBASScanModePRN126 = 1 << 6,
  618. UBXSBASScanModePRN127 = 1 << 7,
  619. UBXSBASScanModePRN128 = 1 << 8,
  620. UBXSBASScanModePRN129 = 1 << 9,
  621. UBXSBASScanModePRN130 = 1 << 10,
  622. UBXSBASScanModePRN131 = 1 << 11,
  623. UBXSBASScanModePRN132 = 1 << 12,
  624. UBXSBASScanModePRN133 = 1 << 13,
  625. UBXSBASScanModePRN134 = 1 << 14,
  626. UBXSBASScanModePRN135 = 1 << 15,
  627. UBXSBASScanModePRN136 = 1 << 16,
  628. UBXSBASScanModePRN137 = 1 << 17,
  629. UBXSBASScanModePRN138 = 1 << 18,
  630. UBXSBASScanModePRN139 = 1 << 19,
  631. UBXSBASScanModePRN140 = 1 << 20,
  632. UBXSBASScanModePRN141 = 1 << 21,
  633. UBXSBASScanModePRN142 = 1 << 22,
  634. UBXSBASScanModePRN143 = 1 << 23,
  635. UBXSBASScanModePRN144 = 1 << 24,
  636. UBXSBASScanModePRN145 = 1 << 25,
  637. UBXSBASScanModePRN146 = 1 << 26,
  638. UBXSBASScanModePRN147 = 1 << 27,
  639. UBXSBASScanModePRN148 = 1 << 28,
  640. UBXSBASScanModePRN149 = 1 << 29,
  641. UBXSBASScanModePRN150 = 1 << 30,
  642. UBXSBASScanModePRN151 = 1 << 31
  643. } UBXSBASScanModes1;
  644. typedef enum
  645. {
  646. USBFlagReEnum = 1,
  647. USBFlagPowerMode = 1 << 1
  648. } UBXUSBFlags;
  649. typedef enum
  650. {
  651. UBXLOGCfgCircular = 1
  652. } UBXLOGCfg;
  653. typedef enum
  654. {
  655. UBXLOGMaximumSafeSize = 0,
  656. UBXLOGMinimunSize = 1,
  657. UBXLOGUserDefined = 2,
  658. } UBXLOGSize;
  659. typedef enum
  660. {
  661. UBXLOGStatusRecording = 1 << 3,
  662. UBXLOGStatusInactive = 1 << 4,
  663. UBXLOGStatusCircular = 1 << 5
  664. } UBXLOGStatus;
  665. typedef enum
  666. {
  667. UBXRETRIEVEPOS2DFix = 2,
  668. UBXRETRIEVEPOS3DFix = 3
  669. } UBXRETRIEVEPOSFixType;
  670. typedef enum
  671. {
  672. UBXRXRAwake = 1
  673. } UBXRXRFlags;
  674. typedef enum
  675. {
  676. UBXAOPStatusIdle = 0,
  677. UBXAOPStatusRunning = 1
  678. } UBXAOPStatus;
  679. typedef enum
  680. {
  681. UBXAOPCfgUseAOP = 1
  682. } UBXAOPCfg;
  683. typedef enum
  684. {
  685. UBXGPSNoFix = 0x00,
  686. UBXGPSDeadReckoning = 0x01,
  687. UBXGPS2DFix = 0x02,
  688. UBXGPS3DFix = 0x03,
  689. UBXGPSGNSSDeadReckoning = 0x04,
  690. UBXGPSTimeOnlyFix = 0x05
  691. } UBXGPSFix;
  692. typedef enum
  693. {
  694. UBXPVTValidDate = 1,
  695. UBXPVTValidTime = 1 << 1,
  696. UBXPVTFullyResolved = 1 << 2,
  697. } UBXPVTValid;
  698. typedef enum
  699. {
  700. UBXPVTPSMStateNA = 0,
  701. UBXPVTPSMStateEnabled = 1,
  702. UBXPVTPSMStateAcquisition = 2,
  703. UBXPVTPSMStateTracking = 3,
  704. UBXPVTPSMStatePowerOptim = 4,
  705. UBXPVTPSMStateInactive = 5,
  706. } UBXPVTPSMStates;
  707. typedef enum
  708. {
  709. UBXSBASServiceRanging = 1,
  710. UBXSBASServiceCorrections = 1 << 1,
  711. UBXSBASServiceIntegrity = 1 << 2,
  712. UBXSBASServiceTestmode = 1 << 3
  713. } UBXSBASService;
  714. typedef enum
  715. {
  716. UBXSBASSOLGPSfixOK = 1,
  717. UBXSBASSOLDiffSoln = 1 << 1,
  718. UBXSBASSOLWKNSet = 1 << 2,
  719. UBXSBASSOLTOWSet = 1 << 3
  720. } UBXSBASSOLFlags;
  721. typedef enum
  722. {
  723. UBXSVINFOAntarisChip = 0,
  724. UBXSVINFOUBlox5Chip = 1,
  725. UBXSVINFOUBlox6Chip = 2
  726. } UBXSVINFOChipGen;
  727. typedef enum
  728. {
  729. UBXSVINFOFlagsSVUsed = 1,
  730. UBXSVINFOFlagsDiffCorr = 1 << 1,
  731. UBXSVINFOFlagsOrbitAvail = 1 << 2,
  732. UBXSVINFOFlagsOrbitEph = 1 << 3,
  733. UBXSVINFOFlagsUnhealthy = 1 << 4,
  734. UBXSVINFOFlagsOrbitAlm = 1 << 5,
  735. UBXSVINFOFlagsOrbitAop = 1 << 6,
  736. UBXSVINFOFlagsSmoothed = 1 << 7
  737. } UBXSVINFOFlags;
  738. typedef enum
  739. {
  740. UBXSVINFOQualityChannelIdle = 0,
  741. UBXSVINFOQualityChannelSearching = 1,
  742. UBXSVINFOQualitySignalAquired = 2,
  743. UBXSVINFOQualitySignalDetected = 3,
  744. UBXSVINFOQualityCodeLockOnSignal = 4,
  745. UBXSVINFOQualityCodeCarrierLocked = 5
  746. } UBXSVINFOQualityId;
  747. typedef enum
  748. {
  749. UBXTIMEGPSTowValid = 1,
  750. UBXTIMEGPSWeekValid = 1 << 1,
  751. UBXTIMEGPSLeapSValid = 1 << 2
  752. } UBXTIMEGPSValidityFlags;
  753. typedef enum
  754. {
  755. UBXTIMEUTCValidTOW = 1,
  756. UBXTIMEUTCValidWKN = 1 << 1,
  757. UBXTIMEUTCValidUTC = 1 << 2
  758. } UBXTIMEUTCValidityFlags;
  759. typedef enum
  760. {
  761. UBXPMREQBackup = 1 << 1
  762. } UBXPMREQFlags;
  763. typedef enum
  764. {
  765. UBXTM2FlagsModeSingle = 0,
  766. UBXTM2FlagsModeRunning = 1
  767. } UBXTM2FlagsMode;
  768. typedef enum
  769. {
  770. UBXTM2FlagsRunArmed = 0,
  771. UBXTM2FlagsRunStopped = 1
  772. } UBXTM2FlagsRun;
  773. typedef enum
  774. {
  775. UBXTM2FlagsTimeBaseReceiverTime = 0,
  776. UBXTM2FlagsTimeBaseGPS = 1,
  777. UBXTM2FlagsTimeBaseUTC = 2
  778. } UBXTM2FlagsTimeBase;
  779. typedef enum
  780. {
  781. UBXTM2FlagsUTCNotAvailable = 0,
  782. UBXTM2FlagsUTCAvailable = 1
  783. } UBXTM2FlagsUTC;
  784. typedef enum
  785. {
  786. UBXTM2FlagsTimeInvalid = 0,
  787. UBXTM2FlagsTimeValid = 1
  788. } UBXTM2FlagsTime;
  789. typedef enum
  790. {
  791. UBXTPTimeBaseUTC = 1,
  792. UBXTPUTCAvailable = 1 << 1
  793. } UBXTPFlags;
  794. typedef enum
  795. {
  796. UBXVRFYNoTimeAidingDone = 0,
  797. UBXVRFYSourceRTC = 2,
  798. UBXVRFYSourceAID_INI = 3
  799. } UBXVRFYFlagsSource;
  800. #pragma pack(push,1)
  801. typedef struct {
  802. UBXU1_t msgClass;
  803. UBXU1_t msgId;
  804. UBXU2_t length;
  805. } UBXHdr;
  806. typedef struct {
  807. UBXU1_t idSize;
  808. UBXU1_t type;
  809. UBXU2_t offset;
  810. UBXU2_t size;
  811. UBXU2_t fileId;
  812. UBXU2_t dataSize;
  813. UBXU1_t id1;
  814. UBXU1_t id2;
  815. UBXU4_t id3;
  816. } UBXAID_ALPSRV;
  817. typedef struct {
  818. UBXU1_t msgClass;
  819. UBXU1_t msgId;
  820. } UBXACK_ACK;
  821. typedef struct {
  822. UBXU1_t msgClass;
  823. UBXU1_t msgId;
  824. } UBXACK_NACK;
  825. //typedef struct UBXAID_ALM_POLL {
  826. //No payload
  827. //};
  828. typedef struct {
  829. UBXU1_t svid;
  830. } UBXAID_ALM_POLL_OPT;
  831. typedef struct {
  832. UBXU4_t svid;
  833. UBXU4_t week;
  834. } UBXAID_ALM;
  835. typedef struct {
  836. UBXU4_t svid;
  837. UBXU4_t week;
  838. UBXU4_t dwrd[8];
  839. } UBXAID_ALM_OPT;
  840. typedef struct {
  841. //Variable payload
  842. #ifdef __WINDOWS__
  843. UBXU1_t payload;
  844. #endif
  845. } UBXAID_ALP;
  846. typedef struct {
  847. UBXU1_t dummy;
  848. } UBXAID_ALP_END;
  849. typedef struct {
  850. UBXU4_t predTow;
  851. UBXU4_t predDur;
  852. UBXI4_t age;
  853. UBXU2_t predWno;
  854. UBXU2_t almWno;
  855. UBXU4_t reserved1;
  856. UBXU1_t svs;
  857. UBXU1_t reserved2;
  858. UBXU2_t reserved3;
  859. } UBXAID_ALP_POLL;
  860. //typedef struct {
  861. //No payload
  862. //} UBXAID_AOP_POLL;
  863. typedef struct {
  864. UBXU1_t svid;
  865. } UBXAID_AOP_POLL_OPT;
  866. typedef struct {
  867. UBXU1_t svid;
  868. UBXU1_t data[59];
  869. } UBXAID_AOP;
  870. typedef struct {
  871. UBXU1_t svid;
  872. UBXU1_t data[59];
  873. UBXU1_t optional0[48];
  874. UBXU1_t optional1[48];
  875. UBXU1_t optional2[48];
  876. } UBXAID_AOP_OPT;
  877. //typedef struct {
  878. //No payload
  879. //} UBXAID_DATA_POLL;
  880. //typedef struct UBXAID_EPH_POLL {
  881. //No payload
  882. //};
  883. typedef struct {
  884. UBXU1_t svid;
  885. } UBXAID_EPH_POLL_OPT;
  886. typedef struct {
  887. UBXU4_t svid;
  888. UBXU4_t how;
  889. } UBXAID_EPH;
  890. typedef struct {
  891. UBXU4_t svid;
  892. UBXU4_t how;
  893. UBXU4_t sf1d[8];
  894. UBXU4_t sf2d[8];
  895. UBXU4_t sf3d[8];
  896. } UBXAID_EPH_OPT;
  897. //typedef struct {
  898. //No payload
  899. //} UBXAID_HUI_POLL;
  900. typedef struct {
  901. UBXI4_t health;
  902. UBXR4_t utcA0;
  903. UBXR4_t utcA1;
  904. UBXI4_t utcTOW;
  905. UBXI2_t utcWNT;
  906. UBXI2_t utcLS;
  907. UBXI2_t utcWNF;
  908. UBXI2_t utcDN;
  909. UBXI2_t utcLSF;
  910. UBXI2_t utcSpare;
  911. UBXR4_t klobA0;
  912. UBXR4_t klobA1;
  913. UBXR4_t klobA2;
  914. UBXR4_t klobA3;
  915. UBXR4_t klobB0;
  916. UBXR4_t klobB1;
  917. UBXR4_t klobB2;
  918. UBXR4_t klobB3;
  919. UBXX2_t flags;
  920. } UBXAID_HUI;
  921. //typedef struct {
  922. //No payload
  923. //} UBXAID_INI_POLL;
  924. typedef struct {
  925. UBXI1_t ecefXOrLat;
  926. UBXI1_t ecefYOrLat;
  927. UBXI1_t ecefZOrLat;
  928. UBXU1_t posAcc;
  929. UBXI1_t tmCfg;
  930. UBXU2_t wnoOrDate;
  931. UBXU4_t towOrDate;
  932. UBXI4_t towNs;
  933. UBXU4_t tAccMS;
  934. UBXU4_t tAccNS;
  935. UBXI4_t clkDOrFreq;
  936. UBXU4_t clkDAccOrFreqAcc;
  937. UBXX4_t flags;
  938. } UBXAID_INI;
  939. //typedef struct {
  940. //No payload
  941. //} UBXAID_REQ;
  942. //typedef struct {
  943. //No payload
  944. //} UBXCFG_ANT_POLL;
  945. typedef struct {
  946. UBXX2_t UBXANTpinSwitch:5;
  947. UBXX2_t UBXANTpinSCD:5;
  948. UBXX2_t UBXANTpinOCD:5;
  949. UBXX2_t UBXANTreconfig:1;
  950. } UBXANTPins;
  951. typedef struct {
  952. UBXX2_t flags; //See UBXANTFlags to fill this field
  953. UBXANTPins pins;
  954. } UBXCFG_ANT;
  955. typedef struct {
  956. UBXX4_t clearMask; //See UBXCFGMask to fill this field
  957. UBXX4_t saveMask; //See UBXCFGMask to fill this field
  958. UBXX4_t loadMask; //See UBXCFGMask to fill this field
  959. } UBXCFG_CFG;
  960. typedef struct {
  961. UBXU1_t version;
  962. UBXX1_t flags; //See UNXCFGBATCHFlags to fill this field
  963. UBXU2_t bufSize;
  964. UBXU2_t notifThrs;
  965. UBXU1_t pioId;
  966. UBXU1_t reserved1;
  967. } UBXCFG_BATCH;
  968. typedef struct {
  969. UBXX4_t clearMask; //See UBXCFGMask to fill this field
  970. UBXX4_t saveMask; //See UBXCFGMask to fill this field
  971. UBXX4_t loadMask; //See UBXCFGMask to fill this field
  972. UBXX1_t deviceMask; //See UBXCFGDeviceMask to fill this field
  973. } UBXCFG_CFG_OPT;
  974. //typedef struct {
  975. //No payload
  976. //} UBXCFG_DAT_POLL;
  977. typedef struct {
  978. UBXR8_t majA;
  979. UBXR8_t flat;
  980. UBXR4_t dX;
  981. UBXR4_t dY;
  982. UBXR4_t dZ;
  983. UBXR4_t rotX;
  984. UBXR4_t rotY;
  985. UBXR4_t rotZ;
  986. UBXR4_t scale;
  987. } UBXCFG_DAT_IN;
  988. typedef struct {
  989. UBXU2_t datumNum;
  990. UBXCH_t datumName[6];
  991. UBXR8_t majA;
  992. UBXR8_t flat;
  993. UBXR4_t dX;
  994. UBXR4_t dY;
  995. UBXR4_t dZ;
  996. UBXR4_t rotX;
  997. UBXR4_t rotY;
  998. UBXR4_t rotZ;
  999. UBXR4_t scale;
  1000. } UBXCFG_DAT_OUT;
  1001. typedef struct {
  1002. UBXU1_t dgnssMode;
  1003. UBXU1_t reserved1[3];
  1004. } UBXCFG_DGNSS;
  1005. typedef struct {
  1006. UBXU1_t oscId; //It likely to use UBXOscilatorType for this field
  1007. UBXU1_t reserved2;
  1008. UBXX2_t flags; //See UBXCFGDOSCFlags and UNXCFGBATCHFlags to fill this field
  1009. UBXU4_t freq;
  1010. UBXI4_t phaseOffset;
  1011. UBXU4_t withTemp;
  1012. UBXU4_t withAge;
  1013. UBXU2_t timeToTemp;
  1014. UBXU1_t reserved3[2];
  1015. UBXI4_t gainVco;
  1016. UBXU1_t gainUncertainty;
  1017. UBXU1_t reserved4[3];
  1018. } UBXCFG_DOSC_CFG;
  1019. typedef struct {
  1020. UBXU1_t version;
  1021. UBXU1_t numOsc;
  1022. UBXU1_t reserved1[2];
  1023. UBXCFG_DOSC_CFG cfg[0];
  1024. } UBXCFG_DOSC;
  1025. typedef struct {
  1026. UBXU1_t extInt;
  1027. UBXU1_t sourceType; //See UBXCFGESRCType to fill this field
  1028. UBXX2_t flags; //See UBXCFGESRCFlags to fill this field
  1029. UBXU4_t freq;
  1030. UBXU1_t reserved2[4];
  1031. UBXU4_t withTemp;
  1032. UBXU4_t withAge;
  1033. UBXU2_t timeToTemp;
  1034. UBXU2_t maxDevLifeTime;
  1035. UBXI4_t offset;
  1036. UBXU4_t offsetUncertainty;
  1037. UBXU4_t jitter;
  1038. } UBXCFG_ESRC_CFG;
  1039. typedef struct {
  1040. UBXU1_t version;
  1041. UBXU1_t numSources;
  1042. UBXU1_t reserved1[2];
  1043. UBXCFG_ESRC_CFG cfg[0];
  1044. } UBXCFG_ESRC;
  1045. typedef struct {
  1046. UBXI4_t lat;
  1047. UBXI4_t lon;
  1048. UBXU4_t radius;
  1049. } UBXCFG_GEOFENCE_PART;
  1050. typedef struct {
  1051. UBXU1_t version;
  1052. UBXU1_t numFences;
  1053. UBXU1_t confLvl;
  1054. UBXU1_t reserved1[1];
  1055. UBXU1_t pioEnabled;
  1056. UBXU1_t pinPolarity;
  1057. UBXU1_t pin;
  1058. UBXU1_t reserved2[1];
  1059. UBXCFG_GEOFENCE_PART fence[0];
  1060. } UBXCFG_GEOFENCE;
  1061. typedef struct {
  1062. UBXU1_t highNavRate;
  1063. UBXU1_t reserved1[3];
  1064. } UBXCFG_HNR;
  1065. //typedef struct {
  1066. //No payload
  1067. //} UBXCFG_GNSS_POLL;
  1068. typedef struct {
  1069. UBXU1_t msgVer;
  1070. UBXU1_t numTrkChHw;
  1071. UBXU1_t numTrkChUse;
  1072. UBXU1_t numConfigBlocks;
  1073. //Variable addition here
  1074. //See structure below
  1075. } UBXCFG_GNSS;
  1076. typedef struct {
  1077. UBXU1_t gnssId; //See UBXGNSSIds to fill this field
  1078. UBXU1_t resTrkCh;
  1079. UBXU1_t maxTrkCh;
  1080. UBXU1_t reserved1;
  1081. UBXX4_t flags; //0 - disabled, 1 - enabled
  1082. } UBXCFG_GNSS_PART;
  1083. typedef struct {
  1084. UBXU1_t protocolId;
  1085. } UBXCFG_INF_POLL;
  1086. typedef struct {
  1087. UBXU1_t protocolId;
  1088. UBXU1_t reserved0;
  1089. UBXU2_t reserved1;
  1090. UBXX1_t infMsgMask[6]; //See UBXCFGInfMsgMask to fill this field
  1091. } UBXCFG_INF_PART;
  1092. typedef struct {
  1093. //Variable payload
  1094. //See structure UBXCFG_INF_PART below
  1095. UBXCFG_INF_PART inf[0];
  1096. } UBXCFG_INF;
  1097. //typedef struct {
  1098. //No payload
  1099. //} UBXCFG_ITFM_POLL;
  1100. typedef struct
  1101. {
  1102. UBXX4_t bbThreshold:4;
  1103. UBXX4_t cwThreshold:5;
  1104. UBXX4_t reserved1:22; //Should be 0x16B156
  1105. UBXX4_t enbled:1;
  1106. } UBXITFMConfig;
  1107. typedef struct
  1108. {
  1109. UBXX4_t reserved2:12; //Should be 0x31E
  1110. UBXX4_t antSetting:2; //See UBXITFMAntSetting to fill this field
  1111. UBXX4_t reserved3:18; //Should be 0x00
  1112. } UBXITFMConfig2;
  1113. typedef struct {
  1114. UBXITFMConfig config;
  1115. UBXITFMConfig2 config2;
  1116. } UBXCFG_ITFM;
  1117. //typedef struct {
  1118. //No payload data
  1119. //} UBXCFG_LOGFILTER_POLL;
  1120. typedef struct {
  1121. UBXU1_t version;
  1122. UBXX1_t flags; //See UBXLOGFILTERFlags to fill this field
  1123. UBXU2_t minIterval;
  1124. UBXU2_t timeThreshold;
  1125. UBXU2_t speedThreshold;
  1126. UBXU4_t positionThreshold;
  1127. } UBXCFG_LOGFILTER;
  1128. typedef struct {
  1129. UBXU1_t msgClass;
  1130. UBXU1_t msgId;
  1131. } UBXCFG_MSG_POLL;
  1132. typedef struct {
  1133. UBXU1_t msgClass;
  1134. UBXU1_t msgId;
  1135. UBXU1_t rate[6];
  1136. } UBXCFG_MSG_RATES;
  1137. typedef struct {
  1138. UBXU1_t msgClass;
  1139. UBXU1_t msgId;
  1140. UBXU1_t rate;
  1141. } UBXCFG_MSG_RATE;
  1142. //typedef struct {
  1143. //No payload data
  1144. //} UBXCFG_NAV5_POLL;
  1145. typedef struct {
  1146. UBXX2_t mask; //See UBXNAV5Mask to fill this field
  1147. UBXU1_t dynModel; //See UBXNAV5Model to fill this field
  1148. UBXU1_t fixMode; //See UBXNAV5FixMode to fill this field
  1149. UBXI4_t fixedAlt;
  1150. UBXU4_t fixedAltVar;
  1151. UBXI1_t minElev;
  1152. UBXU1_t drLimit;
  1153. UBXU2_t pDop;
  1154. UBXU2_t tDop;
  1155. UBXU2_t pAcc;
  1156. UBXU2_t tAcc;
  1157. UBXU1_t staticHoldThresh;
  1158. UBXU1_t dgpsTimeOut;
  1159. UBXU1_t cnoThreshNumSVs;
  1160. UBXU1_t cnoThresh;
  1161. UBXU2_t reserved2; //Set to 0
  1162. UBXU4_t reserved3; //Set to 0
  1163. UBXU4_t reserved4; //Set to 0
  1164. } UBXCFG_NAV5;
  1165. //typedef struct {
  1166. //No payload
  1167. //} UBXCFG_NAVX5_POLL;
  1168. typedef struct {
  1169. UBXU2_t version;
  1170. UBXX2_t mask1; //See UBXNAVX5Mask to fill this field
  1171. UBXU4_t reserved0; //Set 0
  1172. UBXU1_t reserved1; //Set 0
  1173. UBXU1_t reserved2; //Set 0
  1174. UBXU1_t minSVs;
  1175. UBXU1_t maxSVs;
  1176. UBXU1_t minCNO;
  1177. UBXU1_t reserved5; //Set 0
  1178. UBXU1_t iniFix3D;
  1179. UBXU1_t reserved6; //Set 0
  1180. UBXU1_t reserved7; //Set 0
  1181. UBXU1_t reserved8; //Set 0
  1182. UBXU2_t wknRollover;
  1183. UBXU4_t reserved9; //Set 0
  1184. UBXU1_t reserved10; //Set 0
  1185. UBXU1_t reserved11; //Set 0
  1186. UBXU1_t usePPP;
  1187. UBXU1_t aopCFG; // 0-disabled, 1 - enabled
  1188. UBXU1_t reserved12; //Set 0
  1189. UBXU1_t reserved13; //Set 0
  1190. UBXU1_t aopOrbMaxErr;
  1191. UBXU1_t reserved14; //Set 0
  1192. UBXU1_t reserved15; //Set 0
  1193. UBXU2_t reserved3; //Set 0
  1194. UBXU4_t reserved4; //Set 0
  1195. } UBXCFG_NAVX5;
  1196. //typedef struct UBXCFG_NMEA_POLL {
  1197. //No payload
  1198. //};
  1199. typedef struct {
  1200. UBXX1_t filter; //See UBXNMEAFilter to fill this field
  1201. UBXU1_t nmeaVersion;
  1202. UBXU1_t numSV;
  1203. UBXX1_t flags; //See UBXNMEAFlags to fill this field
  1204. UBXX4_t gnssToFilter; //See UBXNMEAGNSSToFilter to fill this field
  1205. UBXU1_t svNumbering;
  1206. UBXU1_t mainTalkerId;
  1207. UBXU1_t gsvTalkerId;
  1208. UBXU1_t reserved;
  1209. } UBXCFG_NMEA;
  1210. typedef struct {
  1211. UBXX4_t clearMask; //See UBXCFGMask CFG_NVS section to fill this field
  1212. UBXX4_t saveMask; //See UBXCFGMask CFG_NVS section to fill this field
  1213. UBXX4_t loadMask; //See UBXCFGMask CFG_NVS section to fill this field
  1214. UBXX1_t deviceMask; //See UBXCFGDeviceMask to fill this field
  1215. } UBXCFG_NVS;
  1216. //typedef struct {
  1217. //No payload
  1218. //} UBXCFG_PM2_POLL;
  1219. typedef struct
  1220. {
  1221. UBXX4_t blank1:1;
  1222. UBXX4_t reserved:3;
  1223. UBXX4_t extIntSelect:1;
  1224. UBXX4_t extIntWake:1;
  1225. UBXX4_t extIntBackup:1;
  1226. UBXX4_t blank2:1;
  1227. UBXX4_t limitPeakCurr:2; //See UBXPM2LimitPeakCurrent to fill this field
  1228. UBXX4_t waitTimeFix:1;
  1229. UBXX4_t updateRTC:1;
  1230. UBXX4_t updateEPH:1;
  1231. UBXX4_t blank3:3;
  1232. UBXX4_t doNotEnterOff:1;
  1233. UBXX4_t mode:2; //See UBXPM2Mode to fill this field
  1234. } UBXCFG_PM2Flags;
  1235. typedef struct {
  1236. UBXU1_t version;
  1237. UBXU1_t reserved1;
  1238. UBXU1_t reserved2;
  1239. UBXU1_t reserved3;
  1240. UBXCFG_PM2Flags flags;
  1241. UBXU4_t updatePeriod;
  1242. UBXU4_t searchPeriod;
  1243. UBXU4_t gridOffset;
  1244. UBXU2_t onTime;
  1245. UBXU2_t minAcqTime;
  1246. UBXU2_t reserved4;
  1247. UBXU2_t reserved5;
  1248. UBXU4_t reserved6;
  1249. UBXU4_t reserved7;
  1250. UBXU1_t reserved8;
  1251. UBXU1_t reserved9;
  1252. UBXU2_t reserved10;
  1253. UBXU4_t reserved11;
  1254. } UBXCFG_PM2;
  1255. typedef struct {
  1256. UBXU1_t version;
  1257. UBXU1_t powerSetupValue;
  1258. UBXU2_t period;
  1259. UBXU2_t onTime;
  1260. UBXU1_t reserved1[2];
  1261. } UBXCFG_PMS;
  1262. //typedef struct {
  1263. //No payload
  1264. //} UBXCFG_PRT_POLL;
  1265. typedef struct {
  1266. UBXU1_t portId;
  1267. } UBXCFG_PRT_POLL_OPT;
  1268. typedef struct
  1269. {
  1270. UBXX2_t en:1; //0 - disabled, 1 - enabled
  1271. UBXX2_t pol:1; //0 - High-active, 1 - Low-active
  1272. UBXX2_t pin:5;
  1273. UBXX2_t thres:9; //Given value is multiplied by 8 bytes
  1274. } UBXCFG_PRTTxReady;
  1275. typedef struct
  1276. {
  1277. UBXX4_t blank0:4;
  1278. UBXX4_t reserved1:1;
  1279. UBXX4_t blank1:1;
  1280. UBXX4_t charLen:2; //See UBXPRTModeCharLen to fill this field
  1281. UBXX4_t blank2:1;
  1282. UBXX4_t parity:3; //See UBXPRTModeParity to fill this field
  1283. UBXX4_t nStopBits:2; //See UBXPRTModeStopBits to fill this field
  1284. UBXX4_t blank3:18;
  1285. } UBXCFG_PRTUARTMode;
  1286. typedef struct
  1287. {
  1288. UBXX4_t blank0:1;
  1289. UBXX4_t spiMode:2; //See UBXPRTSPIMode to fill this field
  1290. UBXX4_t blank1:3;
  1291. UBXX4_t flowControl:1; //0 - disabled, 1 - enabled
  1292. UBXX4_t blank2:1;
  1293. UBXX4_t ffCnt:8;
  1294. UBXX4_t blank3:16;
  1295. } UBXCFG_PRTSPIMode;
  1296. typedef struct
  1297. {
  1298. UBXX4_t blank0:1;
  1299. UBXX4_t slaveAddr:7; //Range: 0x07 < slaveAddr < 0x78. Bit 0 shall be 0
  1300. UBXX4_t blank1:24;
  1301. } UBXCFG_PRTDDCMode;
  1302. typedef union
  1303. {
  1304. UBXCFG_PRTUARTMode UART;
  1305. UBXCFG_PRTSPIMode SPI;
  1306. UBXCFG_PRTDDCMode DDC;
  1307. UBXX4_t USB; //reserved
  1308. } UBXCFG_PRTMode;
  1309. typedef union
  1310. {
  1311. UBXU4_t UARTbaudRate;
  1312. UBXU4_t OtherReserved;
  1313. } UBXCFG_PRT5Option;
  1314. typedef struct
  1315. {
  1316. UBXU1_t portID;
  1317. UBXU1_t reserved0;
  1318. UBXCFG_PRTTxReady txReady;
  1319. UBXCFG_PRTMode mode;
  1320. UBXCFG_PRT5Option option;
  1321. UBXX2_t inProtoMask; //See UBXPRTInProtoMask to fill this field
  1322. UBXX2_t outProtoMask; //See UBXPRTOutProtoMask to fill this field
  1323. UBXX2_t flags; //See UBXPRTFlags to fill this field, shall be 0 for USB
  1324. UBXU1_t reserved5;
  1325. } UBXCFG_PRT;
  1326. //typedef struct {
  1327. //No payload
  1328. //} UBXCFG_RATE_POLL;
  1329. typedef struct {
  1330. UBXU2_t measRate;
  1331. UBXU2_t navRate;
  1332. UBXU2_t timeRef;
  1333. } UBXCFG_RATE;
  1334. //typedef struct {
  1335. //No payload
  1336. //} UBXCFG_RINV_POLL;
  1337. typedef struct {
  1338. UBXX1_t flags; //See UBXRINVFlags to fill this field
  1339. //Variable payload size
  1340. } UBXCFG_RINV;
  1341. typedef struct {
  1342. UBXX2_t navBBRMask;
  1343. UBXU1_t resetMode;
  1344. UBXU1_t reserved1;
  1345. } UBXCFG_RST;
  1346. //typedef struct {
  1347. //No payload
  1348. //} UBXCFG_RXM_POLL;
  1349. typedef struct {
  1350. UBXU1_t reserved1; //Shall be set to 8
  1351. UBXU1_t lpMode; //See UBXRXMLowPowerModes to fill this field
  1352. } UBXCFG_RXM;
  1353. //typedef struct {
  1354. //No payload
  1355. //} UBXCFG_SBAS_POLL;
  1356. typedef struct {
  1357. UBXX1_t mode; //See UBXSBASModes to fill this field
  1358. UBXX1_t usage; //See UBXSBASUsage to fill this field
  1359. UBXU1_t maxSBAS;
  1360. UBXX1_t scanmode2; //See UBXSBASScanModes2 to fill this field
  1361. UBXX4_t scanmode1; //See UBXSBASScanModes1 to fill this field
  1362. } UBXCFG_SBAS;
  1363. //typedef struct {
  1364. //No payload
  1365. //} UBXCFG_TP5_POLL;
  1366. typedef struct {
  1367. UBXU1_t tpIdx;
  1368. } UBXCFG_TP5_POLL_OPT;
  1369. typedef struct {
  1370. UBXU1_t tpIdx;
  1371. UBXU1_t reserved0;
  1372. UBXU2_t reserved1;
  1373. UBXI2_t antCableDelay;
  1374. UBXI2_t rfGroupDelay;
  1375. UBXU4_t freqPeriod;
  1376. UBXU4_t freqPeriodLock;
  1377. UBXU4_t pulseLenRatio;
  1378. UBXU4_t pulseLenRatioLock;
  1379. UBXI4_t userConfigDelay;
  1380. UBXX4_t flags; //See UBXCFGTimepulseFlags to fill this field
  1381. } UBXCFG_TP5;
  1382. //typedef struct {
  1383. //No payload
  1384. //} UBXCFG_USB_POLL;
  1385. typedef struct {
  1386. UBXU2_t vendorId;
  1387. UBXU2_t productId;
  1388. UBXU2_t reserved1;//Set to 0
  1389. UBXU2_t reserved2;//Set to 1
  1390. UBXU2_t powerConsumption;
  1391. UBXX2_t flags;
  1392. UBXCH_t vendorString[32];
  1393. UBXCH_t productString[32];
  1394. UBXCH_t serialNumber[32];
  1395. } UBXCFG_USB;
  1396. typedef struct {
  1397. #ifdef __WINDOWS__
  1398. UBXCH_t payload;
  1399. #endif
  1400. //Variable payload of UBXCH_t
  1401. } UBXINF_DEBUG;
  1402. typedef struct {
  1403. #ifdef __WINDOWS__
  1404. UBXCH_t payload;
  1405. #endif
  1406. //Variable payload of UBXCH_t
  1407. } UBXINF_ERROR;
  1408. typedef struct {
  1409. #ifdef __WINDOWS__
  1410. UBXU1_t payload;
  1411. #endif
  1412. //Variable payload of UBXCH_t
  1413. } UBXINF_NOTICE;
  1414. typedef struct {
  1415. #ifdef __WINDOWS__
  1416. UBXU1_t payload;
  1417. #endif
  1418. //Variable payload of UBXCH_t
  1419. } UBXINF_TEST;
  1420. typedef struct {
  1421. #ifdef __WINDOWS__
  1422. UBXU1_t payload;
  1423. #endif
  1424. //Variable payload of UBXCH_t
  1425. } UBXINF_WARNING;
  1426. typedef struct {
  1427. UBXU1_t version;
  1428. UBXX1_t logCfg; //See UBXLOGCfg
  1429. UBXU1_t reserved; //Set to 0
  1430. UBXU1_t logSize;
  1431. UBXU4_t userDefinedSize;
  1432. } UBXLOG_CREATE;
  1433. //typedef struct UBXLOG_ERASE {
  1434. //No payload
  1435. //};
  1436. typedef struct {
  1437. UBXU1_t version; //Shall be 0
  1438. UBXU1_t type; //Shall be 0
  1439. UBXU2_t reserved1;
  1440. UBXU2_t year;
  1441. UBXU1_t month;
  1442. UBXU1_t day;
  1443. UBXU1_t hour;
  1444. UBXU1_t minute;
  1445. UBXU1_t second;
  1446. UBXU1_t reserved2;
  1447. } UBXLOG_FINDTIME_IN;
  1448. typedef struct {
  1449. UBXU1_t version; //Shall be 1
  1450. UBXU1_t type; //Shall be 1
  1451. UBXU2_t reserved1;
  1452. UBXU4_t entryNumber;
  1453. } UBXLOG_FINDTIME_OUT;
  1454. //typedef struct UBXLOG_INFO_POLL {
  1455. //No payload
  1456. //};
  1457. typedef struct
  1458. {
  1459. UBXU1_t version;
  1460. UBXU1_t reserved1[3];
  1461. UBXU4_t filestoreCapacity;
  1462. UBXU4_t reserved2;
  1463. UBXU4_t reserved3;
  1464. UBXU4_t currentMaxLogSize;
  1465. UBXU4_t currentLogSize;
  1466. UBXU4_t entryCount;
  1467. UBXU2_t oldestYear;
  1468. UBXU1_t oldestMonth;
  1469. UBXU1_t oldestDay;
  1470. UBXU1_t oldestHour;
  1471. UBXU1_t oldestMinute;
  1472. UBXU1_t oldestSecond;
  1473. UBXU1_t reserved4;
  1474. UBXU2_t newestYear;
  1475. UBXU1_t newestMonth;
  1476. UBXU1_t newestDay;
  1477. UBXU1_t newestHour;
  1478. UBXU1_t newestMinute;
  1479. UBXU1_t newestSecond;
  1480. UBXU1_t reserved5;
  1481. UBXX1_t status; //See UBXLOGStatus to fill this field
  1482. UBXU1_t reserved6[3];
  1483. } UBXLOG_INFO;
  1484. typedef struct {
  1485. UBXU4_t entryIndex;
  1486. UBXI4_t lon;
  1487. UBXI4_t lat;
  1488. UBXI4_t hMSL;
  1489. UBXU4_t hAcc;
  1490. UBXU4_t gSpeed;
  1491. UBXU4_t heading;
  1492. UBXU1_t version; //Shall be 0
  1493. UBXU1_t fixType; //See UBXRETRIEVEPOSFixType to fill this field
  1494. UBXU2_t year;
  1495. UBXU1_t month;
  1496. UBXU1_t day;
  1497. UBXU1_t hour;
  1498. UBXU1_t minute;
  1499. UBXU1_t second;
  1500. UBXU1_t reserved1;
  1501. UBXU1_t numSV;
  1502. UBXU1_t reserved2;
  1503. } UBXLOG_RETRIEVEPOS;
  1504. typedef struct {
  1505. UBXU4_t entryIndex;
  1506. UBXU1_t version; //Shall be 0
  1507. UBXU1_t reserved1;
  1508. UBXU2_t year;
  1509. UBXU1_t month;
  1510. UBXU1_t day;
  1511. UBXU1_t hour;
  1512. UBXU1_t minute;
  1513. UBXU1_t second;
  1514. UBXU1_t reserved2;
  1515. UBXU2_t byteCount;
  1516. //Variable payload according byteCount
  1517. } UBXLOG_RETRIEVESTRING;
  1518. typedef struct {
  1519. UBXU4_t startNumber;
  1520. UBXU4_t entryCount;
  1521. UBXU1_t version;
  1522. UBXU1_t reserved[3];
  1523. } UBXLOG_RETRIEVE;
  1524. typedef struct {
  1525. #ifdef __WINDOWS__
  1526. UBXU1_t payload;
  1527. #endif
  1528. //Variable payload UBXU1_t
  1529. } UBXLOG_STRING;
  1530. typedef struct {
  1531. UBXI1_t ofsI;
  1532. UBXU1_t magI;
  1533. UBXI1_t ofsQ;
  1534. UBXU1_t magQ;
  1535. UBXU1_t cfgSource;
  1536. UBXU1_t reserved0[3];
  1537. UBXU4_t lowLevCfg;
  1538. UBXU4_t reserved1[2];
  1539. UBXU4_t postStatus;
  1540. UBXU4_t reserved2;
  1541. } UBXMON_HW2;
  1542. typedef struct
  1543. {
  1544. UBXX1_t UBXHWFlagsRTCCalib:1;
  1545. UBXX1_t UBXHWFlagsSafeBoot:1;
  1546. UBXX1_t UBXHWFlagsJammingState:2;
  1547. } UBXHWFlags;
  1548. typedef struct {
  1549. UBXX4_t pinSel;
  1550. UBXX4_t pinBank;
  1551. UBXX4_t pinDir;
  1552. UBXX4_t pinVal;
  1553. UBXU2_t noisePerMS;
  1554. UBXU2_t agcCnt;
  1555. UBXU1_t aStatus;
  1556. UBXU1_t aPower;
  1557. UBXHWFlags flags;
  1558. UBXU1_t reserved1;
  1559. UBXX4_t usedMask;
  1560. UBXU1_t VP[17];
  1561. UBXU1_t jamInd;
  1562. UBXU2_t reserved3;
  1563. UBXX4_t pinIrq;
  1564. UBXX4_t pullH;
  1565. UBXX4_t pullL;
  1566. } UBXMON_HW;
  1567. typedef struct
  1568. {
  1569. UBXU4_t rxBytes;
  1570. UBXU4_t txBytes;
  1571. UBXU2_t parityErrs;
  1572. UBXU2_t framingErrs;
  1573. UBXU2_t overrunErrs;
  1574. UBXU2_t breakCond;
  1575. UBXU1_t rxBusy;
  1576. UBXU1_t txBusy;
  1577. UBXU2_t reserved1;
  1578. } UBXMON_IO_PART;
  1579. typedef struct {
  1580. UBXMON_IO_PART ioPortInfo[UBX_IO_PORTS_NUM];
  1581. }UBXMON_IO ;
  1582. typedef struct {
  1583. UBXU2_t msg1[8];
  1584. UBXU2_t msg2[8];
  1585. UBXU2_t msg3[8];
  1586. UBXU2_t msg4[8];
  1587. UBXU2_t msg5[8];
  1588. UBXU2_t msg6[8];
  1589. UBXU4_t skipped[6];
  1590. } UBXMON_MSGPP;
  1591. typedef struct {
  1592. UBXU2_t pending[6];
  1593. UBXU1_t usage[6];
  1594. UBXU1_t peakUsage[6];
  1595. } UBXMON_RXBUF;
  1596. typedef struct {
  1597. UBXX1_t flags; //See UBXRXRFlags to fill this field
  1598. } UBXMON_RXR;
  1599. typedef struct {
  1600. UBXU2_t pending[6];
  1601. UBXU1_t usage[6];
  1602. UBXU1_t peakUsage[6];
  1603. UBXU1_t tUsage;
  1604. UBXU1_t tPeakusage;
  1605. UBXX1_t errors;
  1606. UBXU1_t reserved1;
  1607. } UBXMON_TXBUF;
  1608. //typedef struct {
  1609. //No payload
  1610. //} UBXMON_VER_POLL;
  1611. typedef struct {
  1612. UBXCH_t swVersion[30];
  1613. UBXCH_t hwVersion[10];
  1614. //Variable payload of UBXMON_VER_PART type
  1615. } UBXMON_VER;
  1616. typedef struct
  1617. {
  1618. UBXCH_t extension[30];
  1619. } UBXMON_VER_PART;
  1620. typedef struct {
  1621. UBXU4_t iTOW;
  1622. UBXU1_t aopCfg; //See UBXAOPCfg to fill this field
  1623. UBXU1_t status; //See UBXAOPStatus to fill this field
  1624. UBXU1_t reserved0;
  1625. UBXU1_t reserved1;
  1626. UBXU4_t availGPS;
  1627. UBXU4_t reserved2;
  1628. UBXU4_t reserved3;
  1629. } UBXNAV_AOPSTATUS;
  1630. typedef struct {
  1631. UBXU4_t iTOW;
  1632. UBXI4_t clkB;
  1633. UBXI4_t clkD;
  1634. UBXU4_t tAcc;
  1635. UBXU4_t fAcc;
  1636. } UBXNAV_CLOCK;
  1637. typedef struct {
  1638. UBXU4_t iTOW;
  1639. UBXI4_t age;
  1640. UBXI2_t baseId;
  1641. UBXI2_t baseHealth;
  1642. UBXU1_t numCh;
  1643. UBXU1_t status;
  1644. UBXU2_t reserved1;
  1645. } UBXNAV_DGPS;
  1646. typedef struct
  1647. {
  1648. UBXX1_t channel:4;
  1649. UBXX1_t dgpsUsed:1;
  1650. } UBXDGPSFlags;
  1651. typedef struct {
  1652. UBXU1_t svid;
  1653. UBXDGPSFlags flags;
  1654. UBXU2_t ageC;
  1655. UBXR4_t prc;
  1656. UBXR4_t prrc;
  1657. } UBXNAV_DGPS_PART;
  1658. typedef struct {
  1659. UBXU4_t iTOW;
  1660. UBXU2_t gDOP;
  1661. UBXU2_t pDOP;
  1662. UBXU2_t tDOP;
  1663. UBXU2_t vDOP;
  1664. UBXU2_t hDOP;
  1665. UBXU2_t nDOP;
  1666. UBXU2_t eDOP;
  1667. } UBXNAV_DOP;
  1668. typedef struct {
  1669. UBXU4_t iTOW;
  1670. UBXI4_t ecefX;
  1671. UBXI4_t ecefY;
  1672. UBXI4_t ecefZ;
  1673. UBXU4_t pAcc;
  1674. } UBXNAV_POSECEF;
  1675. typedef struct {
  1676. UBXU4_t iTOW;
  1677. UBXI4_t lon;
  1678. UBXI4_t lat;
  1679. UBXI4_t height;
  1680. UBXI4_t hMSL;
  1681. UBXU4_t hAcc;
  1682. UBXU4_t vAcc;
  1683. } UBXNAV_POSLLH;
  1684. typedef struct
  1685. {
  1686. UBXX1_t gnssFixOk:1;
  1687. UBXX1_t diffSoln:1;
  1688. UBXX1_t psmState:3; //See UBXPVTPSMStates to fill this field
  1689. } UBXPVTFlags;
  1690. typedef struct {
  1691. UBXU4_t iTOW;
  1692. UBXU2_t year;
  1693. UBXU1_t month;
  1694. UBXU1_t day;
  1695. UBXU1_t hour;
  1696. UBXU1_t min;
  1697. UBXU1_t sec;
  1698. UBXX1_t valid; //See UBXPVTValid to fill this field
  1699. UBXU4_t tAcc;
  1700. UBXI4_t nano;
  1701. UBXU1_t fixType; //See UBXGPSFix to fill this field
  1702. UBXPVTFlags flags;
  1703. UBXU1_t reserved1;
  1704. UBXU1_t numSV;
  1705. UBXI4_t lon;
  1706. UBXI4_t lat;
  1707. UBXI4_t height;
  1708. UBXI4_t hMSL;
  1709. UBXU4_t hAcc;
  1710. UBXU4_t vAcc;
  1711. UBXI4_t velN;
  1712. UBXI4_t velE;
  1713. UBXI4_t velD;
  1714. UBXI4_t gSpeed;
  1715. UBXI4_t heading;
  1716. UBXU4_t sAcc;
  1717. UBXU4_t headingAcc;
  1718. UBXU2_t pDOP;
  1719. UBXX2_t reserved2;
  1720. UBXU4_t reserved3;
  1721. } UBXNAV_PVT;
  1722. typedef struct {
  1723. UBXU4_t iTOW;
  1724. UBXU1_t geo;
  1725. UBXU1_t mode;
  1726. UBXI1_t sys;
  1727. UBXX1_t service; //See UBXSBASService to fill this field
  1728. UBXU1_t cnt;
  1729. UBXU1_t reserved0[3];
  1730. //Variable payload of UBXNAV_SBAS_PART type
  1731. } UBXNAV_SBAS;
  1732. typedef struct {
  1733. UBXU1_t svid;
  1734. UBXU1_t flags;
  1735. UBXU1_t udre;
  1736. UBXU1_t svSys;
  1737. UBXU1_t svService;
  1738. UBXU1_t reserved1;
  1739. UBXI2_t prc;
  1740. UBXU2_t reserved2;
  1741. UBXI2_t ic;
  1742. } UBXNAV_SBAS_PART;
  1743. typedef struct {
  1744. UBXU4_t iTOW;
  1745. UBXI4_t fTOW;
  1746. UBXI2_t week;
  1747. UBXU1_t gpsFix; //See UBXGPSFix to fill this field
  1748. UBXX1_t flags; //See UBXSBASSOLFlags to fill this field
  1749. UBXI4_t ecefX;
  1750. UBXI4_t ecefY;
  1751. UBXI4_t ecefZ;
  1752. UBXU4_t pAcc;
  1753. UBXI4_t ecefVX;
  1754. UBXI4_t ecefVY;
  1755. UBXI4_t ecefVZ;
  1756. UBXU4_t sAcc;
  1757. UBXU2_t pDOP;
  1758. UBXU1_t reserved1;
  1759. UBXU1_t numSV;
  1760. UBXU4_t reserved2;
  1761. } UBXNAV_SOL;
  1762. typedef struct {
  1763. UBXU4_t iTOW;
  1764. UBXU1_t gpsFix;
  1765. UBXX1_t flags; //See UBXGPSFix to fill this field
  1766. UBXX1_t fixStat; //See UBXSBASSOLFlags to fill this field
  1767. UBXX1_t flags2;
  1768. UBXU4_t ttff;
  1769. UBXU4_t msss;
  1770. } UBXNAV_STATUS;
  1771. typedef struct
  1772. {
  1773. UBXX1_t chipGen:3; //See UBXSVINFOChipGen to fill this field
  1774. } UBXSVINFOGlobalFlags;
  1775. typedef struct {
  1776. UBXU4_t iTOW;
  1777. UBXU1_t numCh;
  1778. UBXSVINFOGlobalFlags globalFlags;
  1779. UBXU2_t reserved2;
  1780. //Variable payload of UBXNAV_SVINFO_PART type
  1781. } UBXNAV_SVINFO;
  1782. typedef struct
  1783. {
  1784. UBXX1_t qualityInd:4; //See UBXSVINFOQualityId to fill this field
  1785. } UBXSVINFOQuality;
  1786. typedef struct {
  1787. UBXU1_t chn;
  1788. UBXU1_t svid;
  1789. UBXX1_t flags; //See UBXSVINFOFlags to fill this field
  1790. UBXX1_t quality;
  1791. UBXU1_t cno;
  1792. UBXI1_t elev;
  1793. UBXI2_t azim;
  1794. UBXI4_t prRes;
  1795. } UBXNAV_SVINFO_PART;
  1796. typedef struct {
  1797. UBXU4_t iTOW;
  1798. UBXI4_t fTOW;
  1799. UBXI2_t week;
  1800. UBXI1_t leapS;
  1801. UBXX1_t valid; //See UBXTIMEGPSValidityFlags to fill this field
  1802. UBXU4_t tAcc;
  1803. } UBXNAV_TIMEGPS;
  1804. typedef struct {
  1805. UBXU4_t iTOW;
  1806. UBXU4_t tAcc;
  1807. UBXI4_t nano;
  1808. UBXU2_t year;
  1809. UBXU1_t month;
  1810. UBXU1_t day;
  1811. UBXU1_t hour;
  1812. UBXU1_t min;
  1813. UBXU1_t sec;
  1814. UBXX1_t valid; //See UBXTIMEUTCValidityFlags to fill this field
  1815. } UBXNAV_TIMEUTC;
  1816. typedef struct {
  1817. UBXU4_t iTOW;
  1818. UBXI4_t ecefVX;
  1819. UBXI4_t ecefVY;
  1820. UBXI4_t ecefVZ;
  1821. UBXU4_t sAcc;
  1822. } UBXNAV_VELECEF;
  1823. typedef struct {
  1824. UBXU4_t iTOW;
  1825. UBXI4_t velN;
  1826. UBXI4_t velE;
  1827. UBXI4_t velD;
  1828. UBXU4_t speed;
  1829. UBXU4_t gSpeed;
  1830. UBXI4_t heading;
  1831. UBXU4_t sAcc;
  1832. UBXU4_t cAcc;
  1833. } UBXNAV_VELNED;
  1834. //typedef struct {
  1835. //No payload
  1836. //} UBXRXM_ALM_POLL;
  1837. typedef struct {
  1838. UBXU1_t svid;
  1839. } UBXRXM_ALM_POLL_OPT;
  1840. typedef struct {
  1841. /* ###################################################
  1842. * This RMX messages marked as obsolete API use AID instead
  1843. */
  1844. UBXU4_t svid;
  1845. UBXU4_t week;
  1846. } UBXRXM_ALM;
  1847. typedef struct {
  1848. /* ###################################################
  1849. * This RMX messages marked as obsolete API use AID instead
  1850. */
  1851. UBXU4_t svid;
  1852. UBXU4_t week;
  1853. UBXU4_t dwrd[8];
  1854. } UBXRXM_ALM_OPT;
  1855. //typedef struct {
  1856. //No payload
  1857. //} UBXRXM_EPH_POLL;
  1858. typedef struct {
  1859. UBXU1_t svid;
  1860. } UBXRXM_EPH_POLL_OPT;
  1861. typedef struct {
  1862. /* ###################################################
  1863. * This RMX messages marked as obsolete API use AID instead
  1864. */
  1865. UBXU4_t svid;
  1866. UBXU4_t how;
  1867. } UBXRXM_EPH;
  1868. typedef struct {
  1869. /* ###################################################
  1870. * This RMX messages marked as obsolete API use AID instead
  1871. */
  1872. UBXU4_t svid;
  1873. UBXU4_t how;
  1874. UBXU4_t sf1d[8];
  1875. UBXU4_t sf2d[8];
  1876. UBXU4_t sf3d[8];
  1877. } UBXRXM_EPH_OPT;
  1878. typedef struct {
  1879. UBXU4_t duration;
  1880. UBXX4_t flags; //See UBXPMREQFlags to fill this field
  1881. } UBXRXM_PMREQ;
  1882. typedef struct {
  1883. UBXI4_t rcvTow;
  1884. UBXI2_t week;
  1885. UBXU1_t numSV;
  1886. UBXU1_t reserved1;
  1887. //Variable payload of UBXRXM_RAW_PART type
  1888. } UBXRXM_RAW;
  1889. typedef struct
  1890. {
  1891. UBXR8_t cpMes;
  1892. UBXR8_t prMes;
  1893. UBXR4_t doMes;
  1894. UBXU1_t sv;
  1895. UBXI1_t mesQI;
  1896. UBXI1_t cno;
  1897. UBXU1_t lli;
  1898. } UBXRXM_RAW_PART;
  1899. typedef struct {
  1900. UBXU1_t chn;
  1901. UBXU1_t svid;
  1902. UBXX4_t dwrd[10];
  1903. } UBXRXM_SFRB;
  1904. typedef struct {
  1905. UBXU4_t iTOW;
  1906. UBXI2_t week;
  1907. UBXU1_t numVis;
  1908. UBXU1_t numSV;
  1909. //Variable payload of UBXRXM_SVSI_PART type
  1910. } UBXRXM_SVSI;
  1911. typedef struct
  1912. {
  1913. UBXX1_t ura:4;
  1914. UBXX1_t healthy:1;
  1915. UBXX1_t ephVal:1;
  1916. UBXX1_t almVal:1;
  1917. UBXX1_t notAvail:1;
  1918. } UBXSVSISVFlags;
  1919. typedef struct
  1920. {
  1921. UBXX1_t almAge:4;
  1922. UBXX1_t ephAge:4;
  1923. } UBXSVSIAge;
  1924. typedef struct
  1925. {
  1926. UBXU1_t svid;
  1927. UBXSVSISVFlags svFlag;
  1928. UBXI2_t azim;
  1929. UBXI1_t elev;
  1930. UBXSVSIAge age;
  1931. } UBXRXM_SVSI_PART;
  1932. typedef struct
  1933. {
  1934. UBXX1_t mode:1; //See UBXTM2FlagsMode to fill this field
  1935. UBXX1_t run:1; //See UBXTM2FlagsRun to fill this field
  1936. UBXX1_t newFallingEdge:1;
  1937. UBXX1_t timeBase:2; //See UBXTM2FlagsTimeBase to fill this field
  1938. UBXX1_t utc:1; //See UBXTM2FlagsUTC to fill this field
  1939. UBXX1_t time:1; //See UBXTM2FlagsTime to fill this field
  1940. UBXX1_t newRisingEdge:1;
  1941. } UBXTM2Flags;
  1942. typedef struct {
  1943. UBXU1_t ch;
  1944. UBXTM2Flags flags;
  1945. UBXU2_t count;
  1946. UBXU2_t wnR;
  1947. UBXU2_t wnF;
  1948. UBXU4_t towMsR;
  1949. UBXU4_t towSubMsR;
  1950. UBXU4_t towMsF;
  1951. UBXU4_t towSubMsF;
  1952. UBXU4_t accEst;
  1953. } UBXTIM_TM2;
  1954. typedef struct {
  1955. UBXU4_t towMS;
  1956. UBXU4_t towSubMS;
  1957. UBXI4_t qErr;
  1958. UBXU2_t week;
  1959. UBXX1_t flags;
  1960. UBXU1_t reserved1;
  1961. } UBXTIM_TP;
  1962. typedef struct
  1963. {
  1964. UBXX1_t src:3; //See UBXVRFYFlagsSource to fill this field
  1965. } UBXVRFYFlags;
  1966. typedef struct {
  1967. UBXI4_t itow;
  1968. UBXI4_t frac;
  1969. UBXI4_t deltaMs;
  1970. UBXI4_t deltaNs;
  1971. UBXU2_t wno;
  1972. UBXVRFYFlags flags;
  1973. UBXU1_t reserved1;
  1974. } UBXTIM_VRFY;
  1975. typedef union
  1976. {
  1977. UBXACK_NACK ACK_NACK;
  1978. UBXACK_ACK ACK_ACK;
  1979. UBXAID_ALM_POLL_OPT AID_ALM_POLL_OPT;
  1980. UBXAID_ALM AID_ALM;
  1981. UBXAID_ALM_OPT AID_ALM_OPT;
  1982. UBXAID_ALPSRV AID_ALPSRV;
  1983. UBXAID_ALP_POLL AID_ALP_POLL;
  1984. UBXAID_ALP_END AID_ALP_END;
  1985. UBXAID_ALP AID_ALP;
  1986. UBXAID_AOP_POLL_OPT AID_AOP_POLL_OPT;
  1987. UBXAID_AOP AID_AOP;
  1988. UBXAID_AOP_OPT AID_AOP_OPT;
  1989. UBXAID_EPH_POLL_OPT AID_EPH_POLL_OPT;
  1990. UBXAID_EPH AID_EPH;
  1991. UBXAID_EPH_OPT AID_EPH_OPT;
  1992. UBXAID_HUI AID_HUI;
  1993. UBXAID_INI AID_INI;
  1994. UBXCFG_ANT CFG_ANT;
  1995. UBXCFG_BATCH CFG_BATCH;
  1996. UBXCFG_CFG CFG_CFG;
  1997. UBXCFG_CFG_OPT CFG_CFG_OPT;
  1998. UBXCFG_DAT_IN CFG_DAT_IN;
  1999. UBXCFG_DAT_OUT CFG_DAT_OUT;
  2000. UBXCFG_DGNSS CFG_DGNSS;
  2001. UBXCFG_DOSC CFG_DOSC;
  2002. UBXCFG_ESRC CFG_ESRC;
  2003. UBXCFG_GEOFENCE CFG_GEOFENCE;
  2004. UBXCFG_GNSS CFG_GNSS;
  2005. UBXCFG_HNR CFG_HNR;
  2006. UBXCFG_INF_POLL CFG_INF_POLL;
  2007. UBXCFG_INF CFG_INF;
  2008. UBXCFG_ITFM CFG_ITFM;
  2009. UBXCFG_LOGFILTER CFG_LOGFILTER;
  2010. UBXCFG_MSG_POLL CFG_MSG_POLL;
  2011. UBXCFG_MSG_RATE CFG_MSG_RATE;
  2012. UBXCFG_MSG_RATES CFG_MSG_RATES;
  2013. UBXCFG_NAV5 CFG_NAV5;
  2014. UBXCFG_NAVX5 CFG_NAVX5;
  2015. UBXCFG_NMEA CFG_NMEA;
  2016. UBXCFG_NVS CFG_NVS;
  2017. UBXCFG_PM2 CFG_PM2;
  2018. UBXCFG_PMS CFG_PMS;
  2019. UBXCFG_PRT_POLL_OPT CFG_PRT_POLL_OPT;
  2020. UBXCFG_PRT CFG_PRT;
  2021. UBXCFG_RATE CFG_RATE;
  2022. UBXCFG_RINV CFG_RINV;
  2023. UBXCFG_RST CFG_RST;
  2024. UBXCFG_RXM CFG_RXM;
  2025. UBXCFG_SBAS CFG_SBAS;
  2026. UBXCFG_TP5_POLL_OPT CFG_TP5_POLL_OPT;
  2027. UBXCFG_TP5 CFG_TP5;
  2028. UBXCFG_USB CFG_USB;
  2029. UBXINF_DEBUG INF_DEBUG;
  2030. UBXINF_ERROR INF_ERROR;
  2031. UBXINF_NOTICE INF_NOTICE;
  2032. UBXINF_TEST INF_TEST;
  2033. UBXINF_WARNING INF_WARNING;
  2034. UBXLOG_CREATE LOG_CREATE;
  2035. UBXLOG_FINDTIME_IN LOG_FINDTIME_IN;
  2036. UBXLOG_FINDTIME_OUT LOG_FINDTIME_OUT;
  2037. UBXLOG_INFO LOG_INFO;
  2038. UBXLOG_RETRIEVEPOS LOG_RETRIEVEPOS;
  2039. UBXLOG_RETRIEVESTRING LOG_RETRIEVESTRING;
  2040. UBXLOG_RETRIEVE LOG_RETRIEVE;
  2041. UBXLOG_STRING LOG_STRING;
  2042. UBXMON_HW2 MON_HW2;
  2043. UBXMON_HW MON_HW;
  2044. UBXMON_IO MON_IO;
  2045. UBXMON_MSGPP MON_MSGPP;
  2046. UBXMON_RXBUF MON_RXBUF;
  2047. UBXMON_RXR MON_RXR;
  2048. UBXMON_TXBUF MON_TXBUF;
  2049. UBXMON_VER MON_VER;
  2050. UBXNAV_AOPSTATUS NAV_AOPSTATUS;
  2051. UBXNAV_CLOCK NAV_CLOCK;
  2052. UBXNAV_DGPS NAV_DGPS;
  2053. UBXNAV_DOP NAV_DOP;
  2054. UBXNAV_POSECEF NAV_POSECEF;
  2055. UBXNAV_POSLLH NAV_POSLLH;
  2056. UBXNAV_PVT NAV_PVT;
  2057. UBXNAV_SBAS NAV_SBAS;
  2058. UBXNAV_SOL NAV_SOL;
  2059. UBXNAV_STATUS NAV_STATUS;
  2060. UBXNAV_SVINFO NAV_SVINFO;
  2061. UBXNAV_TIMEGPS NAV_TIMEGPS;
  2062. UBXNAV_TIMEUTC NAV_TIMEUTC;
  2063. UBXNAV_VELECEF NAV_VELECEF;
  2064. UBXNAV_VELNED NAV_VELNED;
  2065. UBXRXM_ALM_POLL_OPT RXM_ALM_POLL_OPT;
  2066. UBXRXM_ALM_OPT RXM_ALM_OPT;
  2067. UBXRXM_EPH_POLL_OPT RXM_EPH_POLL_OPT;
  2068. UBXRXM_EPH RXM_EPH;
  2069. UBXRXM_EPH_OPT RXM_EPH_OPT;
  2070. UBXRXM_PMREQ RXM_PMREQ;
  2071. UBXRXM_RAW RXM_RAW;
  2072. UBXRXM_SFRB RXM_SFRB;
  2073. UBXRXM_SVSI RXM_SVSI;
  2074. UBXTIM_TM2 TIM_TM2;
  2075. UBXTIM_TP TIM_TP;
  2076. UBXTIM_VRFY TIM_VRFY;
  2077. } UBXMsgs;
  2078. typedef struct
  2079. {
  2080. int fileId;
  2081. char* alpData;
  2082. int dataSize;
  2083. } UBXAlpFileInfo;
  2084. typedef struct
  2085. {
  2086. UBXU2_t preamble;
  2087. UBXHdr hdr;
  2088. UBXMsgs payload;
  2089. } UBXMsg;
  2090. typedef struct
  2091. {
  2092. int size;
  2093. char* data;
  2094. } UBXMsgBuffer;
  2095. #pragma pack(pop)
  2096. #endif // UBXMESSAGE_H