ubx.c 224 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118
  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: ubx.c
  25. */
  26. #include "portable_endian.h"
  27. #include "ubxmessage.h"
  28. #include "ubx.h"
  29. #include "malloc.h"
  30. #include "memory.h"
  31. void fletcherChecksum(unsigned char* buffer, int size, unsigned char* checkSumA, unsigned char* checkSumB)
  32. {
  33. int i = 0;
  34. *checkSumA = 0;
  35. *checkSumB = 0;
  36. for(; i < size; i++)
  37. {
  38. *checkSumA += buffer[i];
  39. *checkSumB += *checkSumA;
  40. }
  41. }
  42. extern void clearUBXMsgBuffer(const UBXMsgBuffer* buffer)
  43. {
  44. free(buffer->data);
  45. }
  46. void completeMsg(UBXMsgBuffer* buffer, int payloadSize)
  47. {
  48. unsigned char* checkSumA = (unsigned char*)(buffer->data + UBX_HEADER_SIZE + payloadSize);
  49. unsigned char* checkSumB = (unsigned char*)(buffer->data + UBX_HEADER_SIZE + payloadSize + 1);
  50. fletcherChecksum((unsigned char*)(buffer->data + sizeof(UBX_PREAMBLE)), payloadSize + 4, checkSumA, checkSumB);
  51. }
  52. void initMsg(UBXMsg* msg, int payloadSize, UBXMessageClass msgClass, UBXMessageId msgId)
  53. {
  54. msg->preamble = htobe16(UBX_PREAMBLE);
  55. msg->hdr.msgClass = msgClass;
  56. msg->hdr.msgId = msgId;
  57. msg->hdr.length = payloadSize;
  58. }
  59. UBXMsgBuffer createBuffer(int payloadSize)
  60. {
  61. UBXMsgBuffer buffer = {0, 0};
  62. buffer.size = UBX_HEADER_SIZE + payloadSize + UBX_CHECKSUM_SIZE;
  63. buffer.data = (char*)malloc(buffer.size);
  64. memset(buffer.data, 0, buffer.size);
  65. return buffer;
  66. }
  67. UBXMsgBuffer getAID_ALPSRV(UBXMsg* clientMgs, const UBXAlpFileInfo *fileInfo)
  68. {
  69. int requestedAlpSize = (clientMgs->payload.AID_ALPSRV.size << 1);
  70. int alpMsgSize = 0;
  71. int payloadSize = 0;
  72. UBXMsgBuffer buffer;
  73. UBXMsg* msg = 0;
  74. if(fileInfo->dataSize < (clientMgs->payload.AID_ALPSRV.offset + requestedAlpSize))
  75. {
  76. requestedAlpSize = fileInfo->dataSize - clientMgs->payload.AID_ALPSRV.offset - 1;
  77. }
  78. alpMsgSize = sizeof(UBXAID_ALPSRV);
  79. payloadSize = alpMsgSize + requestedAlpSize;
  80. buffer = createBuffer(payloadSize);
  81. msg = (UBXMsg*) buffer.data;
  82. if(requestedAlpSize < 0)
  83. {
  84. return buffer;
  85. }
  86. initMsg(msg, payloadSize, UBXMsgClassAID, UBXMsgIdAID_ALPSRV);
  87. msg->payload.AID_ALPSRV.idSize = clientMgs->payload.AID_ALPSRV.idSize;
  88. msg->payload.AID_ALPSRV.type = clientMgs->payload.AID_ALPSRV.type;
  89. msg->payload.AID_ALPSRV.offset = clientMgs->payload.AID_ALPSRV.offset;
  90. msg->payload.AID_ALPSRV.size = clientMgs->payload.AID_ALPSRV.size;
  91. msg->payload.AID_ALPSRV.fileId = fileInfo->fileId;
  92. msg->payload.AID_ALPSRV.dataSize = requestedAlpSize;
  93. msg->payload.AID_ALPSRV.id1 = clientMgs->payload.AID_ALPSRV.id1;
  94. msg->payload.AID_ALPSRV.id2 = clientMgs->payload.AID_ALPSRV.id2;
  95. msg->payload.AID_ALPSRV.id3 = clientMgs->payload.AID_ALPSRV.id3;
  96. memcpy(buffer.data + UBX_HEADER_SIZE + alpMsgSize, fileInfo->alpData + msg->payload.AID_ALPSRV.offset, requestedAlpSize);
  97. completeMsg(&buffer, payloadSize);
  98. return buffer;
  99. }
  100. UBXMsgBuffer getCFG_MSG_POLL(UBXMessageClass msgClass, UBXMessageId msgId)
  101. {
  102. int payloadSize = sizeof(UBXCFG_MSG_POLL);
  103. UBXMsgBuffer buffer = createBuffer(payloadSize);
  104. UBXMsg* msg = (UBXMsg*)buffer.data;
  105. initMsg(msg, payloadSize, UBXMsgClassCFG, UBXMsgIdCFG_MSG);
  106. msg->payload.CFG_MSG_POLL.msgClass = msgClass;
  107. msg->payload.CFG_MSG_POLL.msgId = msgId;
  108. completeMsg(&buffer, payloadSize);
  109. return buffer;
  110. }
  111. UBXMsgBuffer getCFG_MSG_RATE(UBXMessageClass msgClass, UBXMessageId msgId, UBXU1_t rate)
  112. {
  113. int payloadSize = sizeof(UBXCFG_MSG_RATE);
  114. UBXMsgBuffer buffer = createBuffer(payloadSize);
  115. UBXMsg* msg = (UBXMsg*)buffer.data;
  116. initMsg(msg, payloadSize, UBXMsgClassCFG, UBXMsgIdCFG_MSG);
  117. msg->payload.CFG_MSG_RATE.msgClass = msgClass;
  118. msg->payload.CFG_MSG_RATE.msgId = msgId;
  119. msg->payload.CFG_MSG_RATE.rate = rate;
  120. completeMsg(&buffer, payloadSize);
  121. return buffer;
  122. }
  123. UBXMsgBuffer getCFG_MSG_RATES(UBXMessageClass msgClass, UBXMessageId msgId, UBXU1_t rate[])
  124. {
  125. int payloadSize = sizeof(UBXCFG_MSG_RATES);
  126. UBXMsgBuffer buffer = createBuffer(payloadSize);
  127. UBXMsg* msg = (UBXMsg*)buffer.data;
  128. initMsg(msg, payloadSize, UBXMsgClassCFG, UBXMsgIdCFG_MSG);
  129. msg->payload.CFG_MSG_RATES.msgClass = msgClass;
  130. msg->payload.CFG_MSG_RATES.msgId = msgId;
  131. memcpy(msg->payload.CFG_MSG_RATES.rate, rate, 6 * sizeof(UBXU1_t));
  132. completeMsg(&buffer, payloadSize);
  133. return buffer;
  134. }
  135. UBXMsgBuffer getCFG_RST(int mode, UBXU2_t mask)
  136. {
  137. int payloadSize = sizeof(UBXCFG_RST);
  138. UBXMsgBuffer buffer = createBuffer(payloadSize);
  139. UBXMsg* msg = (UBXMsg*)buffer.data;
  140. initMsg(msg, payloadSize, UBXMsgClassCFG, UBXMsgIdCFG_RST);
  141. msg->payload.CFG_RST.resetMode = mode;
  142. msg->payload.CFG_RST.navBBRMask = mask;
  143. completeMsg(&buffer, payloadSize);
  144. return buffer;
  145. }
  146. UBXMsgBuffer getCFG_RST_OPT(int mode, UBXBBRSpecialSets special)
  147. {
  148. int payloadSize = sizeof(UBXCFG_RST);
  149. UBXMsgBuffer buffer = createBuffer(payloadSize);
  150. UBXMsg* msg = (UBXMsg*)buffer.data;
  151. initMsg(msg, payloadSize, UBXMsgClassCFG, UBXMsgIdCFG_RST);
  152. msg->payload.CFG_RST.resetMode = mode;
  153. msg->payload.CFG_RST.navBBRMask = special;
  154. completeMsg(&buffer, payloadSize);
  155. return buffer;
  156. }
  157. UBXMsgBuffer getCFG_TP5_POLL_OPT(UBXCFGTimepulses tpIdx)
  158. {
  159. int payloadSize = sizeof(UBXCFG_TP5_POLL_OPT);
  160. UBXMsgBuffer buffer = createBuffer(payloadSize);
  161. UBXMsg* msg = (UBXMsg*)buffer.data;
  162. initMsg(msg, payloadSize, UBXMsgClassCFG, UBXMsgIdCFG_TP5);
  163. msg->payload.CFG_TP5_POLL_OPT.tpIdx = tpIdx;
  164. completeMsg(&buffer, payloadSize);
  165. return buffer;
  166. }
  167. UBXMsgBuffer getCFG_TP5(UBXCFGTimepulses tpIdx, UBXI2_t antCableDelay, UBXI2_t rfGroupDelay,
  168. UBXU4_t freqPeriod, UBXU4_t freqPeriodLock, UBXU4_t pulseLenRatio,
  169. UBXU4_t pulseLenRatioLock, UBXI4_t userConfigDelay, UBXU4_t flags)
  170. {
  171. int payloadSize = sizeof(UBXCFG_TP5);
  172. UBXMsgBuffer buffer = createBuffer(payloadSize);
  173. UBXMsg* msg = (UBXMsg*)buffer.data;
  174. initMsg(msg, payloadSize, UBXMsgClassCFG, UBXMsgIdCFG_TP5);
  175. msg->payload.CFG_TP5.tpIdx = tpIdx;
  176. msg->payload.CFG_TP5.antCableDelay = antCableDelay;
  177. msg->payload.CFG_TP5.rfGroupDelay = rfGroupDelay;
  178. msg->payload.CFG_TP5.freqPeriod = freqPeriod;
  179. msg->payload.CFG_TP5.freqPeriodLock = freqPeriodLock;
  180. msg->payload.CFG_TP5.pulseLenRatio = pulseLenRatio;
  181. msg->payload.CFG_TP5.pulseLenRatioLock = pulseLenRatioLock;
  182. msg->payload.CFG_TP5.userConfigDelay = userConfigDelay;
  183. msg->payload.CFG_TP5.flags = flags;
  184. completeMsg(&buffer, payloadSize);
  185. return buffer;
  186. }
  187. UBXMsgBuffer getAID_ALM_POLL()
  188. {
  189. int payloadSize = 0;
  190. UBXMsgBuffer buffer = createBuffer(payloadSize);
  191. UBXMsg* msg = (UBXMsg*)buffer.data;
  192. initMsg(msg, payloadSize, UBXMsgClassAID, UBXMsgIdAID_ALP);
  193. completeMsg(&buffer, payloadSize);
  194. return buffer;
  195. }
  196. UBXMsgBuffer getAID_ALM_POLL_OPT(UBXU1_t svid)
  197. {
  198. int payloadSize = sizeof(UBXAID_ALM_POLL_OPT);
  199. UBXMsgBuffer buffer = createBuffer(payloadSize);
  200. UBXMsg* msg = (UBXMsg*)buffer.data;
  201. initMsg(msg, payloadSize, UBXMsgClassAID, UBXMsgIdAID_ALP);
  202. msg->payload.AID_ALM_POLL_OPT.svid = svid;
  203. completeMsg(&buffer, payloadSize);
  204. return buffer;
  205. }
  206. UBXMsgBuffer getAID_ALM(UBXU4_t svid, UBXU4_t week)
  207. {
  208. int payloadSize = sizeof(UBXAID_ALM);
  209. UBXMsgBuffer buffer = createBuffer(payloadSize);
  210. UBXMsg* msg = (UBXMsg*)buffer.data;
  211. initMsg(msg, payloadSize, UBXMsgClassAID, UBXMsgIdAID_ALM);
  212. msg->payload.AID_ALM.svid = svid;
  213. msg->payload.AID_ALM.week = week;
  214. completeMsg(&buffer, payloadSize);
  215. return buffer;
  216. }
  217. UBXMsgBuffer getAID_ALM_OPT(UBXU4_t svid, UBXU4_t week, UBXU4_t dwrd[8])
  218. {
  219. int payloadSize = sizeof(UBXAID_ALM_OPT);
  220. UBXMsgBuffer buffer = createBuffer(payloadSize);
  221. UBXMsg* msg = (UBXMsg*)buffer.data;
  222. initMsg(msg, payloadSize, UBXMsgClassAID, UBXMsgIdAID_ALM);
  223. msg->payload.AID_ALM_OPT.svid = svid;
  224. msg->payload.AID_ALM_OPT.week = week;
  225. memcpy(msg->payload.AID_ALM_OPT.dwrd, dwrd, 8 * sizeof(UBXU4_t));
  226. completeMsg(&buffer, payloadSize);
  227. return buffer;
  228. }
  229. UBXMsgBuffer getAID_ALP_POLL(UBXU4_t predTow,
  230. UBXU4_t predDur,
  231. UBXI4_t age,
  232. UBXU2_t predWno,
  233. UBXU2_t almWno,
  234. UBXU1_t svs)
  235. {
  236. int payloadSize = sizeof(UBXAID_ALP_POLL);
  237. UBXMsgBuffer buffer = createBuffer(payloadSize);
  238. UBXMsg* msg = (UBXMsg*)buffer.data;
  239. initMsg(msg, payloadSize, UBXMsgClassAID, UBXMsgIdAID_ALP);
  240. msg->payload.AID_ALP_POLL.predTow = predTow;
  241. msg->payload.AID_ALP_POLL.predDur = predDur;
  242. msg->payload.AID_ALP_POLL.age = age;
  243. msg->payload.AID_ALP_POLL.predWno = predWno;
  244. msg->payload.AID_ALP_POLL.almWno = almWno;
  245. msg->payload.AID_ALP_POLL.svs = svs;
  246. completeMsg(&buffer, payloadSize);
  247. return buffer;
  248. }
  249. UBXMsgBuffer getAID_ALP_END()
  250. {
  251. int payloadSize = sizeof(UBXAID_ALP_END);
  252. UBXMsgBuffer buffer = createBuffer(payloadSize);
  253. UBXMsg* msg = (UBXMsg*)buffer.data;
  254. initMsg(msg, payloadSize, UBXMsgClassAID, UBXMsgIdAID_ALP);
  255. msg->payload.AID_ALP_END.dummy = 0xAA;
  256. completeMsg(&buffer, payloadSize);
  257. return buffer;
  258. }
  259. UBXMsgBuffer getAID_ALP(UBXU2_t* chunk, int chunkSize)
  260. {
  261. int payloadSize = chunkSize;
  262. UBXMsgBuffer buffer = createBuffer(payloadSize);
  263. UBXMsg* msg = (UBXMsg*)buffer.data;
  264. initMsg(msg, payloadSize, UBXMsgClassAID, UBXMsgIdAID_ALP);
  265. memcpy(((char*)&(msg->payload)) + sizeof(UBXAID_ALP), chunk, chunkSize);
  266. completeMsg(&buffer, payloadSize);
  267. return buffer;
  268. }
  269. UBXMsgBuffer getAID_AOP_POLL()
  270. {
  271. int payloadSize = 0;
  272. UBXMsgBuffer buffer = createBuffer(payloadSize);
  273. UBXMsg* msg = (UBXMsg*)buffer.data;
  274. initMsg(msg, payloadSize, UBXMsgClassAID, UBXMsgIdAID_AOP);
  275. completeMsg(&buffer, payloadSize);
  276. return buffer;
  277. }
  278. UBXMsgBuffer getAID_AOP_POLL_OPT(UBXU1_t svid)
  279. {
  280. int payloadSize = sizeof(UBXAID_AOP_POLL_OPT);
  281. UBXMsgBuffer buffer = createBuffer(payloadSize);
  282. UBXMsg* msg = (UBXMsg*)buffer.data;
  283. initMsg(msg, payloadSize, UBXMsgClassAID, UBXMsgIdAID_AOP);
  284. msg->payload.AID_AOP_POLL_OPT.svid = svid;
  285. completeMsg(&buffer, payloadSize);
  286. return buffer;
  287. }
  288. UBXMsgBuffer getAID_AOP(UBXU1_t svid, UBXU1_t data[59])
  289. {
  290. int payloadSize = sizeof(UBXAID_AOP);
  291. UBXMsgBuffer buffer = createBuffer(payloadSize);
  292. UBXMsg* msg = (UBXMsg*)buffer.data;
  293. initMsg(msg, payloadSize, UBXMsgClassAID, UBXMsgIdAID_AOP);
  294. msg->payload.AID_AOP.svid = svid;
  295. memcpy(msg->payload.AID_AOP.data, data, 59 * sizeof(UBXU1_t));
  296. completeMsg(&buffer, payloadSize);
  297. return buffer;
  298. }
  299. UBXMsgBuffer getAID_AOP_OPT(UBXU1_t svid, UBXU1_t data[59], UBXU1_t optional0[48], UBXU1_t optional1[48], UBXU1_t optional2[48])
  300. {
  301. int payloadSize = sizeof(UBXAID_AOP_OPT);
  302. UBXMsgBuffer buffer = createBuffer(payloadSize);
  303. UBXMsg* msg = (UBXMsg*)buffer.data;
  304. initMsg(msg, payloadSize, UBXMsgClassAID, UBXMsgIdAID_AOP);
  305. msg->payload.AID_AOP_OPT.svid = svid;
  306. memcpy(msg->payload.AID_AOP_OPT.data, data, 59 * sizeof(UBXU1_t));
  307. memcpy(msg->payload.AID_AOP_OPT.optional0, optional0, 48 * sizeof(UBXU1_t));
  308. memcpy(msg->payload.AID_AOP_OPT.optional1, optional1, 48 * sizeof(UBXU1_t));
  309. memcpy(msg->payload.AID_AOP_OPT.optional2, optional2, 48 * sizeof(UBXU1_t));
  310. completeMsg(&buffer, payloadSize);
  311. return buffer;
  312. }
  313. UBXMsgBuffer getAID_DATA_POLL()
  314. {
  315. int payloadSize = 0;
  316. UBXMsgBuffer buffer = createBuffer(payloadSize);
  317. UBXMsg* msg = (UBXMsg*)buffer.data;
  318. initMsg(msg, payloadSize, UBXMsgClassAID, UBXMsgIdAID_DATA);
  319. completeMsg(&buffer, payloadSize);
  320. return buffer;
  321. }
  322. UBXMsgBuffer getAID_EPH_POLL()
  323. {
  324. int payloadSize = 0;
  325. UBXMsgBuffer buffer = createBuffer(payloadSize);
  326. UBXMsg* msg = (UBXMsg*)buffer.data;
  327. initMsg(msg, payloadSize, UBXMsgClassAID, UBXMsgIdAID_EPH);
  328. completeMsg(&buffer, payloadSize);
  329. return buffer;
  330. }
  331. UBXMsgBuffer getAID_EPH_POLL_OPT(UBXU1_t svid)
  332. {
  333. int payloadSize = sizeof(UBXAID_EPH_POLL_OPT);
  334. UBXMsgBuffer buffer = createBuffer(payloadSize);
  335. UBXMsg* msg = (UBXMsg*)buffer.data;
  336. initMsg(msg, payloadSize, UBXMsgClassAID, UBXMsgIdAID_EPH);
  337. msg->payload.AID_EPH_POLL_OPT.svid = svid;
  338. completeMsg(&buffer, payloadSize);
  339. return buffer;
  340. }
  341. UBXMsgBuffer getAID_EPH(UBXU4_t svid, UBXU4_t how)
  342. {
  343. int payloadSize = sizeof(UBXAID_EPH);
  344. UBXMsgBuffer buffer = createBuffer(payloadSize);
  345. UBXMsg* msg = (UBXMsg*)buffer.data;
  346. initMsg(msg, payloadSize, UBXMsgClassAID, UBXMsgIdAID_EPH);
  347. msg->payload.AID_EPH.svid = svid;
  348. msg->payload.AID_EPH.how = how;
  349. completeMsg(&buffer, payloadSize);
  350. return buffer;
  351. }
  352. UBXMsgBuffer getAID_EPH_OPT(UBXU4_t svid, UBXU4_t how, UBXU4_t sf1d[8], UBXU4_t sf2d[8], UBXU4_t sf3d[8])
  353. {
  354. int payloadSize = sizeof(UBXAID_EPH_OPT);
  355. UBXMsgBuffer buffer = createBuffer(payloadSize);
  356. UBXMsg* msg = (UBXMsg*)buffer.data;
  357. initMsg(msg, payloadSize, UBXMsgClassAID, UBXMsgIdAID_EPH);
  358. msg->payload.AID_EPH_OPT.svid = svid;
  359. msg->payload.AID_EPH_OPT.how = how;
  360. memcpy(msg->payload.AID_EPH_OPT.sf1d, sf1d, 8 * sizeof(UBXU4_t));
  361. memcpy(msg->payload.AID_EPH_OPT.sf2d, sf2d, 8 * sizeof(UBXU4_t));
  362. memcpy(msg->payload.AID_EPH_OPT.sf3d, sf3d, 8 * sizeof(UBXU4_t));
  363. completeMsg(&buffer, payloadSize);
  364. return buffer;
  365. }
  366. UBXMsgBuffer getAID_HUI_POLL()
  367. {
  368. int payloadSize = 0;
  369. UBXMsgBuffer buffer = createBuffer(payloadSize);
  370. UBXMsg* msg = (UBXMsg*)buffer.data;
  371. initMsg(msg, payloadSize, UBXMsgClassAID, UBXMsgIdAID_HUI);
  372. completeMsg(&buffer, payloadSize);
  373. return buffer;
  374. }
  375. UBXMsgBuffer getAID_HUI(UBXI4_t health, UBXR4_t utcA0, UBXR4_t utcA1,
  376. UBXI4_t utcTOW, UBXI2_t utcWNT, UBXI2_t utcLS,
  377. UBXI2_t utcWNF, UBXI2_t utcDN, UBXI2_t utcLSF,
  378. UBXI2_t utcSpare, UBXR4_t klobA0, UBXR4_t klobA1,
  379. UBXR4_t klobA2, UBXR4_t klobA3, UBXR4_t klobB0,
  380. UBXR4_t klobB1, UBXR4_t klobB2, UBXR4_t klobB3,
  381. UBXX2_t flags)
  382. {
  383. int payloadSize = sizeof(UBXAID_HUI);
  384. UBXMsgBuffer buffer = createBuffer(payloadSize);
  385. UBXMsg* msg = (UBXMsg*)buffer.data;
  386. initMsg(msg, payloadSize, UBXMsgClassAID, UBXMsgIdAID_HUI);
  387. msg->payload.AID_HUI.health = health;
  388. msg->payload.AID_HUI.utcA0 = utcA0;
  389. msg->payload.AID_HUI.utcA1 = utcA1;
  390. msg->payload.AID_HUI.utcTOW = utcTOW;
  391. msg->payload.AID_HUI.utcWNT = utcWNT;
  392. msg->payload.AID_HUI.utcLS = utcLS;
  393. msg->payload.AID_HUI.utcWNF = utcWNF;
  394. msg->payload.AID_HUI.utcDN = utcDN;
  395. msg->payload.AID_HUI.utcLSF = utcLSF;
  396. msg->payload.AID_HUI.utcSpare = utcSpare;
  397. msg->payload.AID_HUI.klobA0 = klobA0;
  398. msg->payload.AID_HUI.klobA1 = klobA1;
  399. msg->payload.AID_HUI.klobA2 = klobA2;
  400. msg->payload.AID_HUI.klobA3 = klobA3;
  401. msg->payload.AID_HUI.klobA0 = klobB0;
  402. msg->payload.AID_HUI.klobA1 = klobB1;
  403. msg->payload.AID_HUI.klobA2 = klobB2;
  404. msg->payload.AID_HUI.klobA3 = klobB3;
  405. msg->payload.AID_HUI.flags = flags;
  406. completeMsg(&buffer, payloadSize);
  407. return buffer;
  408. }
  409. UBXMsgBuffer getAID_INI_POLL()
  410. {
  411. int payloadSize = 0;
  412. UBXMsgBuffer buffer = createBuffer(payloadSize);
  413. UBXMsg* msg = (UBXMsg*)buffer.data;
  414. initMsg(msg, payloadSize, UBXMsgClassAID, UBXMsgIdAID_INI);
  415. completeMsg(&buffer, payloadSize);
  416. return buffer;
  417. }
  418. UBXMsgBuffer getAID_INI(UBXI1_t ecefXOrLat,
  419. UBXI1_t ecefYOrLat,
  420. UBXI1_t ecefZOrLat,
  421. UBXU1_t posAcc,
  422. UBXI1_t tmCfg,
  423. UBXU2_t wnoOrDate,
  424. UBXU4_t towOrDate,
  425. UBXI4_t towNs,
  426. UBXU4_t tAccMS,
  427. UBXU4_t tAccNS,
  428. UBXI4_t clkDOrFreq,
  429. UBXU4_t clkDAccOrFreqAcc,
  430. UBXX4_t flags)
  431. {
  432. int payloadSize = sizeof(UBXAID_INI);
  433. UBXMsgBuffer buffer = createBuffer(payloadSize);
  434. UBXMsg* msg = (UBXMsg*)buffer.data;
  435. initMsg(msg, payloadSize, UBXMsgClassAID, UBXMsgIdAID_INI);
  436. msg->payload.AID_INI.ecefXOrLat = ecefXOrLat;
  437. msg->payload.AID_INI.ecefYOrLat = ecefYOrLat;
  438. msg->payload.AID_INI.ecefZOrLat = ecefZOrLat;
  439. msg->payload.AID_INI.posAcc = posAcc;
  440. msg->payload.AID_INI.tmCfg = tmCfg;
  441. msg->payload.AID_INI.wnoOrDate = wnoOrDate;
  442. msg->payload.AID_INI.towOrDate = towOrDate;
  443. msg->payload.AID_INI.towNs = towNs;
  444. msg->payload.AID_INI.tAccMS = tAccMS;
  445. msg->payload.AID_INI.tAccNS = tAccNS;
  446. msg->payload.AID_INI.clkDOrFreq = clkDOrFreq;
  447. msg->payload.AID_INI.clkDAccOrFreqAcc = clkDAccOrFreqAcc;
  448. msg->payload.AID_INI.flags = flags;
  449. completeMsg(&buffer, payloadSize);
  450. return buffer;
  451. }
  452. UBXMsgBuffer getCFG_ANT(UBXX2_t flags, UBXANTPins pins)
  453. {
  454. int payloadSize = sizeof(UBXCFG_ANT);
  455. UBXMsgBuffer buffer = createBuffer(payloadSize);
  456. UBXMsg* msg = (UBXMsg*)buffer.data;
  457. initMsg(msg, payloadSize, UBXMsgClassCFG, UBXMsgIdCFG_ANT);
  458. msg->payload.CFG_ANT.flags = flags;
  459. msg->payload.CFG_ANT.pins = pins;
  460. completeMsg(&buffer, payloadSize);
  461. return buffer;
  462. }
  463. UBXMsgBuffer getCFG_ANT_POLL()
  464. {
  465. int payloadSize = 0;
  466. UBXMsgBuffer buffer = createBuffer(payloadSize);
  467. UBXMsg* msg = (UBXMsg*)buffer.data;
  468. initMsg(msg, payloadSize, UBXMsgClassCFG, UBXMsgIdCFG_ANT);
  469. completeMsg(&buffer, payloadSize);
  470. return buffer;
  471. }
  472. UBXMsgBuffer getCFG_BATCH(UBXU1_t version,
  473. UBXX1_t flags,
  474. UBXU2_t bufSize,
  475. UBXU2_t notifThrs,
  476. UBXU1_t pioId)
  477. {
  478. int payloadSize = sizeof(UBXCFG_BATCH);
  479. UBXMsgBuffer buffer = createBuffer(payloadSize);
  480. UBXMsg* msg = (UBXMsg*)buffer.data;
  481. initMsg(msg, payloadSize, UBXMsgClassCFG, UBXMsgIdCFG_BATCH);
  482. msg->payload.CFG_BATCH.version = version;
  483. msg->payload.CFG_BATCH.flags = flags;
  484. msg->payload.CFG_BATCH.bufSize = bufSize;
  485. msg->payload.CFG_BATCH.notifThrs = notifThrs;
  486. msg->payload.CFG_BATCH.pioId = pioId;
  487. msg->payload.CFG_BATCH.reserved1 = 0;
  488. completeMsg(&buffer, payloadSize);
  489. return buffer;
  490. }
  491. extern UBXMsgBuffer getCFG_BATCH_POLL()
  492. {
  493. int payloadSize = 0;
  494. UBXMsgBuffer buffer = createBuffer(payloadSize);
  495. UBXMsg* msg = (UBXMsg*)buffer.data;
  496. initMsg(msg, payloadSize, UBXMsgClassCFG, UBXMsgIdCFG_BATCH);
  497. completeMsg(&buffer, payloadSize);
  498. return buffer;
  499. }
  500. UBXMsgBuffer getCFG_CFG(UBXX4_t clearMask, UBXX4_t saveMask, UBXX4_t loadMask)
  501. {
  502. int payloadSize = sizeof(UBXCFG_CFG);
  503. UBXMsgBuffer buffer = createBuffer(payloadSize);
  504. UBXMsg* msg = (UBXMsg*)buffer.data;
  505. initMsg(msg, payloadSize, UBXMsgClassCFG, UBXMsgIdCFG_CFG);
  506. msg->payload.CFG_CFG.clearMask = clearMask;
  507. msg->payload.CFG_CFG.saveMask = saveMask;
  508. msg->payload.CFG_CFG.loadMask = loadMask;
  509. completeMsg(&buffer, payloadSize);
  510. return buffer;
  511. }
  512. UBXMsgBuffer getCFG_CFG_OPT(UBXX4_t clearMask, UBXX4_t saveMask, UBXX4_t loadMask, UBXX1_t deviceMask)
  513. {
  514. int payloadSize = sizeof(UBXCFG_CFG_OPT);
  515. UBXMsgBuffer buffer = createBuffer(payloadSize);
  516. UBXMsg* msg = (UBXMsg*)buffer.data;
  517. initMsg(msg, payloadSize, UBXMsgClassCFG, UBXMsgIdCFG_CFG);
  518. msg->payload.CFG_CFG_OPT.clearMask = clearMask;
  519. msg->payload.CFG_CFG_OPT.saveMask = saveMask;
  520. msg->payload.CFG_CFG_OPT.loadMask = loadMask;
  521. msg->payload.CFG_CFG_OPT.deviceMask = deviceMask;
  522. completeMsg(&buffer, payloadSize);
  523. return buffer;
  524. }
  525. UBXMsgBuffer getCFG_DAT_IN(UBXR8_t majA, UBXR8_t flat, UBXR4_t dX, UBXR4_t dY, UBXR4_t dZ, UBXR4_t rotX, UBXR4_t rotY, UBXR4_t rotZ, UBXR4_t scale)
  526. {
  527. int payloadSize = sizeof(UBXCFG_DAT_IN);
  528. UBXMsgBuffer buffer = createBuffer(payloadSize);
  529. UBXMsg* msg = (UBXMsg*)buffer.data;
  530. initMsg(msg, payloadSize, UBXMsgClassCFG, UBXMsgIdCFG_CFG);
  531. msg->payload.CFG_DAT_IN.majA = majA;
  532. msg->payload.CFG_DAT_IN.flat = flat;
  533. msg->payload.CFG_DAT_IN.dX = dX;
  534. msg->payload.CFG_DAT_IN.dY = dY;
  535. msg->payload.CFG_DAT_IN.dZ = dZ;
  536. msg->payload.CFG_DAT_IN.rotX = rotX;
  537. msg->payload.CFG_DAT_IN.rotY = rotY;
  538. msg->payload.CFG_DAT_IN.rotZ = rotZ;
  539. msg->payload.CFG_DAT_IN.scale = scale;
  540. completeMsg(&buffer, payloadSize);
  541. return buffer;
  542. }
  543. UBXMsgBuffer getCFG_DAT_POLL()
  544. {
  545. int payloadSize = 0;
  546. UBXMsgBuffer buffer = createBuffer(payloadSize);
  547. UBXMsg* msg = (UBXMsg*)buffer.data;
  548. initMsg(msg, payloadSize, UBXMsgClassCFG, UBXMsgIdCFG_DAT);
  549. completeMsg(&buffer, payloadSize);
  550. return buffer;
  551. }
  552. extern UBXMsgBuffer getCFG_DGNSS_POLL()
  553. {
  554. int payloadSize = 0;
  555. UBXMsgBuffer buffer = createBuffer(payloadSize);
  556. UBXMsg* msg = (UBXMsg*)buffer.data;
  557. initMsg(msg, payloadSize, UBXMsgClassCFG, UBXMsgIdCFG_DGNSS);
  558. completeMsg(&buffer, payloadSize);
  559. return buffer;
  560. }
  561. extern UBXMsgBuffer getCFG_DGNSS(UBXU1_t dgnssMode)
  562. {
  563. int payloadSize = sizeof(UBXCFG_DGNSS);
  564. UBXMsgBuffer buffer = createBuffer(payloadSize);
  565. UBXMsg* msg = (UBXMsg*)buffer.data;
  566. initMsg(msg, payloadSize, UBXMsgClassCFG, UBXMsgIdCFG_DGNSS);
  567. msg->payload.CFG_DGNSS.dgnssMode = dgnssMode;
  568. memset(msg->payload.CFG_DGNSS.reserved1, 0, sizeof(msg->payload.CFG_DGNSS));
  569. completeMsg(&buffer, payloadSize);
  570. return buffer;
  571. }
  572. extern UBXMsgBuffer getCFG_DOSC_POLL()
  573. {
  574. int payloadSize = 0;
  575. UBXMsgBuffer buffer = createBuffer(payloadSize);
  576. UBXMsg* msg = (UBXMsg*)buffer.data;
  577. initMsg(msg, payloadSize, UBXMsgClassCFG, UBXMsgIdCFG_DOSC);
  578. completeMsg(&buffer, payloadSize);
  579. return buffer;
  580. }
  581. extern UBXMsgBuffer getCFG_DOSC(UBXU1_t version, UBXU1_t numOsc, UBXCFG_DOSC_CFG* oscCfg)
  582. {
  583. int payloadSize = sizeof(UBXCFG_DOSC) + sizeof(UBXCFG_DOSC_CFG) * numOsc;
  584. UBXMsgBuffer buffer = createBuffer(payloadSize);
  585. UBXMsg* msg = (UBXMsg*)buffer.data;
  586. initMsg(msg, payloadSize, UBXMsgClassCFG, UBXMsgIdCFG_DOSC);
  587. msg->payload.CFG_DOSC.version = version;
  588. msg->payload.CFG_DOSC.numOsc = numOsc;
  589. memcpy(msg->payload.CFG_DOSC.cfg, oscCfg, numOsc * sizeof(UBXCFG_DOSC_CFG));
  590. completeMsg(&buffer, payloadSize);
  591. return buffer;
  592. }
  593. extern UBXMsgBuffer getCFG_ESRC_POLL()
  594. {
  595. int payloadSize = 0;
  596. UBXMsgBuffer buffer = createBuffer(payloadSize);
  597. UBXMsg* msg = (UBXMsg*)buffer.data;
  598. initMsg(msg, payloadSize, UBXMsgClassCFG, UBXMsgIdCFG_ESRC);
  599. completeMsg(&buffer, payloadSize);
  600. return buffer;
  601. }
  602. extern UBXMsgBuffer getCFG_ESRC(UBXU1_t version,
  603. UBXU1_t numSources,
  604. UBXCFG_ESRC_CFG* esrcCfg)
  605. {
  606. int payloadSize = sizeof(UBXCFG_ESRC) + sizeof(UBXCFG_ESRC_CFG) * numSources;
  607. UBXMsgBuffer buffer = createBuffer(payloadSize);
  608. UBXMsg* msg = (UBXMsg*)buffer.data;
  609. initMsg(msg, payloadSize, UBXMsgClassCFG, UBXMsgIdCFG_ESRC);
  610. msg->payload.CFG_ESRC.version = version;
  611. msg->payload.CFG_ESRC.numSources = numSources;
  612. memcpy(msg->payload.CFG_ESRC.cfg, esrcCfg, numSources * sizeof(UBXCFG_ESRC_CFG));
  613. completeMsg(&buffer, payloadSize);
  614. return buffer;
  615. }
  616. extern UBXMsgBuffer getCFG_GEOFENCE_POLL()
  617. {
  618. int payloadSize = 0;
  619. UBXMsgBuffer buffer = createBuffer(payloadSize);
  620. UBXMsg* msg = (UBXMsg*)buffer.data;
  621. initMsg(msg, payloadSize, UBXMsgClassCFG, UBXMsgIdCFG_GEOFENCE);
  622. completeMsg(&buffer, payloadSize);
  623. return buffer;
  624. }
  625. extern UBXMsgBuffer getCFG_GEOFENCE(UBXU1_t version,
  626. UBXU1_t numFences,
  627. UBXU1_t confLvl,
  628. UBXU1_t pioEnabled,
  629. UBXU1_t pinPolarity,
  630. UBXU1_t pin,
  631. UBXCFG_GEOFENCE_PART* fences)
  632. {
  633. int payloadSize = sizeof(UBXCFG_GEOFENCE) + sizeof(UBXCFG_GEOFENCE_PART) * numFences;
  634. UBXMsgBuffer buffer = createBuffer(payloadSize);
  635. UBXMsg* msg = (UBXMsg*)buffer.data;
  636. initMsg(msg, payloadSize, UBXMsgClassCFG, UBXMsgIdCFG_ESRC);
  637. msg->payload.CFG_GEOFENCE.version = version;
  638. msg->payload.CFG_GEOFENCE.numFences = numFences;
  639. msg->payload.CFG_GEOFENCE.confLvl = confLvl;
  640. msg->payload.CFG_GEOFENCE.pioEnabled = pioEnabled;
  641. msg->payload.CFG_GEOFENCE.pinPolarity = pinPolarity;
  642. msg->payload.CFG_GEOFENCE.pin = pin;
  643. memcpy(msg->payload.CFG_GEOFENCE.fence, fences, numFences * sizeof(UBXCFG_GEOFENCE_PART));
  644. completeMsg(&buffer, payloadSize);
  645. return buffer;
  646. }
  647. UBXMsgBuffer getCFG_GNSS_POLL()
  648. {
  649. int payloadSize = 0;
  650. UBXMsgBuffer buffer = createBuffer(payloadSize);
  651. UBXMsg* msg = (UBXMsg*)buffer.data;
  652. initMsg(msg, payloadSize, UBXMsgClassCFG, UBXMsgIdCFG_GNSS);
  653. completeMsg(&buffer, payloadSize);
  654. return buffer;
  655. }
  656. UBXMsgBuffer getCFG_GNSS(UBXU1_t msgVer,
  657. UBXU1_t numTrkChHw,
  658. UBXU1_t numTrkChUse,
  659. UBXU1_t numConfigBlocks,
  660. UBXCFG_GNSS_PART* gnssPart)
  661. {
  662. int payloadSize = sizeof(UBXCFG_GNSS) + numConfigBlocks*sizeof(UBXCFG_GNSS_PART);
  663. UBXMsgBuffer buffer = createBuffer(payloadSize);
  664. UBXMsg* msg = (UBXMsg*)buffer.data;
  665. initMsg(msg, payloadSize, UBXMsgClassCFG, UBXMsgIdCFG_GNSS);
  666. msg->payload.CFG_GNSS.msgVer = msgVer;
  667. msg->payload.CFG_GNSS.numTrkChHw = numTrkChHw;
  668. msg->payload.CFG_GNSS.numTrkChUse = numTrkChUse;
  669. msg->payload.CFG_GNSS.numConfigBlocks = numConfigBlocks;
  670. memcpy(((char*)&(msg->payload.CFG_GNSS)) + sizeof(UBXCFG_GNSS), gnssPart, numConfigBlocks * sizeof(UBXCFG_GNSS_PART));
  671. completeMsg(&buffer, payloadSize);
  672. return buffer;
  673. }
  674. UBXMsgBuffer getCFG_INF_POLL(UBXU1_t protocolId)
  675. {
  676. int payloadSize = sizeof(UBXCFG_INF_POLL);
  677. UBXMsgBuffer buffer = createBuffer(payloadSize);
  678. UBXMsg* msg = (UBXMsg*)buffer.data;
  679. initMsg(msg, payloadSize, UBXMsgClassCFG, UBXMsgIdCFG_INF);
  680. msg->payload.CFG_INF_POLL.protocolId = protocolId;
  681. completeMsg(&buffer, payloadSize);
  682. return buffer;
  683. }
  684. UBXMsgBuffer getCFG_INF(UBXCFG_INF_PART* infPart, int infPartCount)
  685. {
  686. int payloadSize = sizeof(UBXCFG_INF_PART) * infPartCount;
  687. UBXMsgBuffer buffer = createBuffer(payloadSize);
  688. UBXMsg* msg = (UBXMsg*)buffer.data;
  689. initMsg(msg, payloadSize, UBXMsgClassCFG, UBXMsgIdCFG_INF);
  690. memcpy(msg->payload.CFG_INF.inf, infPart, infPartCount * sizeof(UBXCFG_INF_PART));
  691. completeMsg(&buffer, payloadSize);
  692. return buffer;
  693. }
  694. UBXMsgBuffer getCFG_ITFM_POLL()
  695. {
  696. int payloadSize = 0;
  697. UBXMsgBuffer buffer = createBuffer(payloadSize);
  698. UBXMsg* msg = (UBXMsg*)buffer.data;
  699. initMsg(msg, payloadSize, UBXMsgClassCFG, UBXMsgIdCFG_ITFM);
  700. completeMsg(&buffer, payloadSize);
  701. return buffer;
  702. }
  703. UBXMsgBuffer getCFG_ITFM(UBXITFMConfig config,
  704. UBXITFMConfig2 config2)
  705. {
  706. int payloadSize = sizeof(UBXCFG_ITFM);
  707. UBXMsgBuffer buffer = createBuffer(payloadSize);
  708. UBXMsg* msg = (UBXMsg*)buffer.data;
  709. initMsg(msg, payloadSize, UBXMsgClassCFG, UBXMsgIdCFG_ITFM);
  710. msg->payload.CFG_ITFM.config = config;
  711. msg->payload.CFG_ITFM.config2 = config2;
  712. completeMsg(&buffer, payloadSize);
  713. return buffer;
  714. }
  715. UBXMsgBuffer getCFG_LOGFILTER_POLL()
  716. {
  717. int payloadSize = 0;
  718. UBXMsgBuffer buffer = createBuffer(payloadSize);
  719. UBXMsg* msg = (UBXMsg*)buffer.data;
  720. initMsg(msg, payloadSize, UBXMsgClassCFG, UBXMsgIdCFG_LOGFILTER);
  721. completeMsg(&buffer, payloadSize);
  722. return buffer;
  723. }
  724. UBXMsgBuffer getCFG_LOGFILTER(UBXU1_t version,
  725. UBXX1_t flags,
  726. UBXU2_t minIterval,
  727. UBXU2_t timeThreshold,
  728. UBXU2_t speedThreshold,
  729. UBXU4_t positionThreshold)
  730. {
  731. int payloadSize = sizeof(UBXCFG_LOGFILTER);
  732. UBXMsgBuffer buffer = createBuffer(payloadSize);
  733. UBXMsg* msg = (UBXMsg*)buffer.data;
  734. initMsg(msg, payloadSize, UBXMsgClassCFG, UBXMsgIdCFG_LOGFILTER);
  735. msg->payload.CFG_LOGFILTER.version = version;
  736. msg->payload.CFG_LOGFILTER.flags = flags;
  737. msg->payload.CFG_LOGFILTER.minIterval = minIterval;
  738. msg->payload.CFG_LOGFILTER.timeThreshold = timeThreshold;
  739. msg->payload.CFG_LOGFILTER.speedThreshold = speedThreshold;
  740. msg->payload.CFG_LOGFILTER.positionThreshold = positionThreshold;
  741. completeMsg(&buffer, payloadSize);
  742. return buffer;
  743. }
  744. UBXMsgBuffer getCFG_NAV5_POLL()
  745. {
  746. int payloadSize = 0;
  747. UBXMsgBuffer buffer = createBuffer(payloadSize);
  748. UBXMsg* msg = (UBXMsg*)buffer.data;
  749. initMsg(msg, payloadSize, UBXMsgClassCFG, UBXMsgIdCFG_NAV5);
  750. completeMsg(&buffer, payloadSize);
  751. return buffer;
  752. }
  753. UBXMsgBuffer getCFG_NAV5(UBXX2_t mask,
  754. UBXNAV5Model dynModel,
  755. UBXNAV5FixMode fixMode,
  756. UBXI4_t fixedAlt,
  757. UBXU4_t fixedAltVar,
  758. UBXI1_t minElev,
  759. UBXU2_t pDop,
  760. UBXU2_t tDop,
  761. UBXU2_t pAcc,
  762. UBXU2_t tAcc,
  763. UBXU1_t staticHoldThresh,
  764. UBXU1_t dgpsTimeOut,
  765. UBXU1_t cnoThreshNumSVs,
  766. UBXU1_t cnoThresh)
  767. {
  768. int payloadSize = sizeof(UBXCFG_NAV5);
  769. UBXMsgBuffer buffer = createBuffer(payloadSize);
  770. UBXMsg* msg = (UBXMsg*)buffer.data;
  771. initMsg(msg, payloadSize, UBXMsgClassCFG, UBXMsgIdCFG_NAV5);
  772. msg->payload.CFG_NAV5.mask = mask;
  773. msg->payload.CFG_NAV5.dynModel = dynModel;
  774. msg->payload.CFG_NAV5.fixMode = fixMode;
  775. msg->payload.CFG_NAV5.fixedAlt = fixedAlt;
  776. msg->payload.CFG_NAV5.fixedAltVar = fixedAltVar;
  777. msg->payload.CFG_NAV5.minElev = minElev;
  778. msg->payload.CFG_NAV5.pDop = pDop;
  779. msg->payload.CFG_NAV5.tDop = tDop;
  780. msg->payload.CFG_NAV5.pAcc = pAcc;
  781. msg->payload.CFG_NAV5.tAcc = tAcc;
  782. msg->payload.CFG_NAV5.staticHoldThresh = staticHoldThresh;
  783. msg->payload.CFG_NAV5.dgpsTimeOut = dgpsTimeOut;
  784. msg->payload.CFG_NAV5.cnoThreshNumSVs = cnoThreshNumSVs;
  785. msg->payload.CFG_NAV5.cnoThresh = cnoThresh;
  786. msg->payload.CFG_NAV5.reserved2 = 0;
  787. msg->payload.CFG_NAV5.reserved3 = 0;
  788. msg->payload.CFG_NAV5.reserved4 = 0;
  789. completeMsg(&buffer, payloadSize);
  790. return buffer;
  791. }
  792. UBXMsgBuffer getCFG_NAVX5_POLL()
  793. {
  794. int payloadSize = 0;
  795. UBXMsgBuffer buffer = createBuffer(payloadSize);
  796. UBXMsg* msg = (UBXMsg*)buffer.data;
  797. initMsg(msg, payloadSize, UBXMsgClassCFG, UBXMsgIdCFG_NAVX5);
  798. completeMsg(&buffer, payloadSize);
  799. return buffer;
  800. }
  801. UBXMsgBuffer getCFG_NAVX5(UBXU2_t version,
  802. UBXX2_t mask1,
  803. UBXU1_t minSVs,
  804. UBXU1_t maxSVs,
  805. UBXU1_t minCNO,
  806. UBXU1_t iniFix3D,
  807. UBXU2_t wknRollover,
  808. UBXU1_t usePPP,
  809. UBXU1_t aopCFG,
  810. UBXU1_t aopOrbMaxErr)
  811. {
  812. int payloadSize = sizeof(UBXCFG_NAVX5);
  813. UBXMsgBuffer buffer = createBuffer(payloadSize);
  814. UBXMsg* msg = (UBXMsg*)buffer.data;
  815. initMsg(msg, payloadSize, UBXMsgClassCFG, UBXMsgIdCFG_NAVX5);
  816. msg->payload.CFG_NAVX5.version = version;
  817. msg->payload.CFG_NAVX5.mask1 = mask1;
  818. msg->payload.CFG_NAVX5.reserved0 = 0;
  819. msg->payload.CFG_NAVX5.reserved1 = 0;
  820. msg->payload.CFG_NAVX5.reserved2 = 0;
  821. msg->payload.CFG_NAVX5.minSVs = minSVs;
  822. msg->payload.CFG_NAVX5.maxSVs = maxSVs;
  823. msg->payload.CFG_NAVX5.minCNO = minCNO;
  824. msg->payload.CFG_NAVX5.reserved5 = 0;
  825. msg->payload.CFG_NAVX5.iniFix3D = iniFix3D;
  826. msg->payload.CFG_NAVX5.reserved6 = 0;
  827. msg->payload.CFG_NAVX5.reserved7 = 0;
  828. msg->payload.CFG_NAVX5.reserved8 = 0;
  829. msg->payload.CFG_NAVX5.wknRollover = wknRollover;
  830. msg->payload.CFG_NAVX5.reserved9 = 0;
  831. msg->payload.CFG_NAVX5.reserved10 = 0;
  832. msg->payload.CFG_NAVX5.reserved11 = 0;
  833. msg->payload.CFG_NAVX5.usePPP = usePPP;
  834. msg->payload.CFG_NAVX5.aopCFG = aopCFG;
  835. msg->payload.CFG_NAVX5.reserved12 = 0;
  836. msg->payload.CFG_NAVX5.reserved13 = 0;
  837. msg->payload.CFG_NAVX5.aopOrbMaxErr = aopOrbMaxErr;
  838. msg->payload.CFG_NAVX5.reserved14 = 0;
  839. msg->payload.CFG_NAVX5.reserved15 = 0;
  840. msg->payload.CFG_NAVX5.reserved3 = 0;
  841. msg->payload.CFG_NAVX5.reserved4 = 0;
  842. completeMsg(&buffer, payloadSize);
  843. return buffer;
  844. }
  845. UBXMsgBuffer getCFG_NMEA_POLL()
  846. {
  847. int payloadSize = 0;
  848. UBXMsgBuffer buffer = createBuffer(payloadSize);
  849. UBXMsg* msg = (UBXMsg*)buffer.data;
  850. initMsg(msg, payloadSize, UBXMsgClassCFG, UBXMsgIdCFG_NMEA);
  851. completeMsg(&buffer, payloadSize);
  852. return buffer;
  853. }
  854. UBXMsgBuffer getCFG_NMEA(UBXX1_t filter,
  855. UBXU1_t nmeaVersion,
  856. UBXU1_t numSV,
  857. UBXX1_t flags,
  858. UBXX4_t gnssToFilter,
  859. UBXNMEASVNumbering svNumbering,
  860. UBXNMEATalkerIds mainTalkerId,
  861. UBXNMEAGSVTalkerIds gsvTalkerId)
  862. {
  863. int payloadSize = sizeof(UBXCFG_NMEA);
  864. UBXMsgBuffer buffer = createBuffer(payloadSize);
  865. UBXMsg* msg = (UBXMsg*)buffer.data;
  866. initMsg(msg, payloadSize, UBXMsgClassCFG, UBXMsgIdCFG_NMEA);
  867. msg->payload.CFG_NMEA.filter = filter;
  868. msg->payload.CFG_NMEA.nmeaVersion = nmeaVersion;
  869. msg->payload.CFG_NMEA.numSV = numSV;
  870. msg->payload.CFG_NMEA.flags = flags;
  871. msg->payload.CFG_NMEA.gnssToFilter = gnssToFilter;
  872. msg->payload.CFG_NMEA.svNumbering = svNumbering;
  873. msg->payload.CFG_NMEA.mainTalkerId = mainTalkerId;
  874. msg->payload.CFG_NMEA.gsvTalkerId = gsvTalkerId;
  875. msg->payload.CFG_NMEA.reserved = 0;
  876. completeMsg(&buffer, payloadSize);
  877. return buffer;
  878. }
  879. UBXMsgBuffer getCFG_NVS(UBXX4_t clearMask,
  880. UBXX4_t saveMask,
  881. UBXX4_t loadMask,
  882. UBXX1_t deviceMask)
  883. {
  884. int payloadSize = sizeof(UBXCFG_NVS);
  885. UBXMsgBuffer buffer = createBuffer(payloadSize);
  886. UBXMsg* msg = (UBXMsg*)buffer.data;
  887. initMsg(msg, payloadSize, UBXMsgClassCFG, UBXMsgIdCFG_NVS);
  888. msg->payload.CFG_NVS.clearMask = clearMask;
  889. msg->payload.CFG_NVS.saveMask = saveMask;
  890. msg->payload.CFG_NVS.loadMask = loadMask;
  891. msg->payload.CFG_NVS.deviceMask = deviceMask;
  892. completeMsg(&buffer, payloadSize);
  893. return buffer;
  894. }
  895. UBXMsgBuffer getCFG_PM2_POLL()
  896. {
  897. int payloadSize = 0;
  898. UBXMsgBuffer buffer = createBuffer(payloadSize);
  899. UBXMsg* msg = (UBXMsg*)buffer.data;
  900. initMsg(msg, payloadSize, UBXMsgClassCFG, UBXMsgIdCFG_PM2);
  901. completeMsg(&buffer, payloadSize);
  902. return buffer;
  903. }
  904. UBXMsgBuffer getCFG_PM2(UBXCFG_PM2Flags flags, UBXU4_t updatePeriod, UBXU4_t searchPeriod, UBXU4_t gridOffset, UBXU2_t onTime, UBXU2_t minAcqTime)
  905. {
  906. int payloadSize = sizeof(UBXCFG_PM2);
  907. UBXMsgBuffer buffer = createBuffer(payloadSize);
  908. UBXMsg* msg = (UBXMsg*)buffer.data;
  909. initMsg(msg, payloadSize, UBXMsgClassCFG, UBXMsgIdCFG_PM2);
  910. msg->payload.CFG_PM2.flags = flags;
  911. msg->payload.CFG_PM2.updatePeriod = updatePeriod;
  912. msg->payload.CFG_PM2.searchPeriod = searchPeriod;
  913. msg->payload.CFG_PM2.gridOffset = gridOffset;
  914. msg->payload.CFG_PM2.onTime = onTime;
  915. msg->payload.CFG_PM2.minAcqTime = minAcqTime;
  916. completeMsg(&buffer, payloadSize);
  917. return buffer;
  918. }
  919. UBXMsgBuffer getCFG_PRT_POLL()
  920. {
  921. int payloadSize = 0;
  922. UBXMsgBuffer buffer = createBuffer(payloadSize);
  923. UBXMsg* msg = (UBXMsg*)buffer.data;
  924. initMsg(msg, payloadSize, UBXMsgClassCFG, UBXMsgIdCFG_PRT);
  925. completeMsg(&buffer, payloadSize);
  926. return buffer;
  927. }
  928. UBXMsgBuffer getCFG_PRT_POLL_OPT(UBXU1_t portId)
  929. {
  930. int payloadSize = sizeof(UBXCFG_PRT_POLL_OPT);
  931. UBXMsgBuffer buffer = createBuffer(payloadSize);
  932. UBXMsg* msg = (UBXMsg*)buffer.data;
  933. initMsg(msg, payloadSize, UBXMsgClassCFG, UBXMsgIdCFG_PRT);
  934. msg->payload.CFG_PRT_POLL_OPT.portId = portId;
  935. completeMsg(&buffer, payloadSize);
  936. return buffer;
  937. }
  938. UBXMsgBuffer getCFG_PRT_UART()
  939. {
  940. //TODO
  941. UBXMsgBuffer buffer = createBuffer(0);
  942. return buffer;
  943. }
  944. UBXMsgBuffer getCFG_PRT_USB()
  945. {
  946. //TODO
  947. UBXMsgBuffer buffer = createBuffer(0);
  948. return buffer;
  949. }
  950. UBXMsgBuffer getCFG_PRT_SPI()
  951. {
  952. //TODO
  953. UBXMsgBuffer buffer = createBuffer(0);
  954. return buffer;
  955. }
  956. UBXMsgBuffer getCFG_PRT_DDC()
  957. {
  958. //TODO
  959. UBXMsgBuffer buffer = createBuffer(0);
  960. return buffer;
  961. }
  962. UBXMsgBuffer getCFG_RATE_POLL()
  963. {
  964. int payloadSize = 0;
  965. UBXMsgBuffer buffer = createBuffer(payloadSize);
  966. UBXMsg* msg = (UBXMsg*)buffer.data;
  967. initMsg(msg, payloadSize, UBXMsgClassCFG, UBXMsgIdCFG_RATE);
  968. completeMsg(&buffer, payloadSize);
  969. return buffer;
  970. }
  971. UBXMsgBuffer getCFG_RATE(UBXU2_t measRate, UBXU2_t navRate, UBXU2_t timeRef)
  972. {
  973. int payloadSize = sizeof(UBXCFG_RATE);
  974. UBXMsgBuffer buffer = createBuffer(payloadSize);
  975. UBXMsg* msg = (UBXMsg*)buffer.data;
  976. initMsg(msg, payloadSize, UBXMsgClassCFG, UBXMsgIdCFG_RATE);
  977. msg->payload.CFG_RATE.measRate = measRate;
  978. msg->payload.CFG_RATE.navRate = navRate;
  979. msg->payload.CFG_RATE.timeRef = timeRef;
  980. completeMsg(&buffer, payloadSize);
  981. return buffer;
  982. }
  983. UBXMsgBuffer getCFG_RINV(UBXX1_t flags, UBXU1_t* data, int dataSize)
  984. {
  985. int payloadSize = sizeof(UBXCFG_RINV) + dataSize * sizeof(UBXU1_t);
  986. UBXMsgBuffer buffer = createBuffer(payloadSize);
  987. UBXMsg* msg = (UBXMsg*)buffer.data;
  988. initMsg(msg, payloadSize, UBXMsgClassCFG, UBXMsgIdCFG_RINV);
  989. msg->payload.CFG_RINV.flags = flags;
  990. memcpy(((char*)&(msg->payload.CFG_RINV)) + sizeof(UBXCFG_RINV), data, dataSize * sizeof(UBXU1_t));
  991. completeMsg(&buffer, payloadSize);
  992. return buffer;
  993. }
  994. UBXMsgBuffer getCFG_RINV_POLL()
  995. {
  996. int payloadSize = 0;
  997. UBXMsgBuffer buffer = createBuffer(payloadSize);
  998. UBXMsg* msg = (UBXMsg*)buffer.data;
  999. initMsg(msg, payloadSize, UBXMsgClassCFG, UBXMsgIdCFG_RINV);
  1000. completeMsg(&buffer, payloadSize);
  1001. return buffer;
  1002. }
  1003. UBXMsgBuffer getCFG_RXM(UBXU1_t lpMode)
  1004. {
  1005. int payloadSize = sizeof(UBXCFG_RXM);
  1006. UBXMsgBuffer buffer = createBuffer(payloadSize);
  1007. UBXMsg* msg = (UBXMsg*)buffer.data;
  1008. initMsg(msg, payloadSize, UBXMsgClassCFG, UBXMsgIdCFG_RXM);
  1009. msg->payload.CFG_RXM.reserved1 = 8;
  1010. msg->payload.CFG_RXM.lpMode = lpMode;
  1011. completeMsg(&buffer, payloadSize);
  1012. return buffer;
  1013. }
  1014. UBXMsgBuffer getCFG_RXM_POLL()
  1015. {
  1016. int payloadSize = 0;
  1017. UBXMsgBuffer buffer = createBuffer(payloadSize);
  1018. UBXMsg* msg = (UBXMsg*)buffer.data;
  1019. initMsg(msg, payloadSize, UBXMsgClassCFG, UBXMsgIdCFG_RXM);
  1020. completeMsg(&buffer, payloadSize);
  1021. return buffer;
  1022. }
  1023. UBXMsgBuffer getCFG_SBAS(UBXX1_t mode, UBXX1_t usage, UBXU1_t maxSBAS, UBXX1_t scanmode2, UBXX4_t scanmode1)
  1024. {
  1025. int payloadSize = sizeof(UBXCFG_SBAS);
  1026. UBXMsgBuffer buffer = createBuffer(payloadSize);
  1027. UBXMsg* msg = (UBXMsg*)buffer.data;
  1028. initMsg(msg, payloadSize, UBXMsgClassCFG, UBXMsgIdCFG_SBAS);
  1029. msg->payload.CFG_SBAS.mode = mode;
  1030. msg->payload.CFG_SBAS.usage = usage;
  1031. msg->payload.CFG_SBAS.maxSBAS = maxSBAS;
  1032. msg->payload.CFG_SBAS.scanmode2 = scanmode2;
  1033. msg->payload.CFG_SBAS.scanmode1 = scanmode1;
  1034. completeMsg(&buffer, payloadSize);
  1035. return buffer;
  1036. }
  1037. UBXMsgBuffer getCFG_SBAS_POLL()
  1038. {
  1039. int payloadSize = 0;
  1040. UBXMsgBuffer buffer = createBuffer(payloadSize);
  1041. UBXMsg* msg = (UBXMsg*)buffer.data;
  1042. initMsg(msg, payloadSize, UBXMsgClassCFG, UBXMsgIdCFG_SBAS);
  1043. completeMsg(&buffer, payloadSize);
  1044. return buffer;
  1045. }
  1046. UBXMsgBuffer getCFG_TP5_POLL()
  1047. {
  1048. int payloadSize = 0;
  1049. UBXMsgBuffer buffer = createBuffer(payloadSize);
  1050. UBXMsg* msg = (UBXMsg*)buffer.data;
  1051. initMsg(msg, payloadSize, UBXMsgClassCFG, UBXMsgIdCFG_TP5);
  1052. completeMsg(&buffer, payloadSize);
  1053. return buffer;
  1054. }
  1055. UBXMsgBuffer getCFG_USB_POLL()
  1056. {
  1057. int payloadSize = 0;
  1058. UBXMsgBuffer buffer = createBuffer(payloadSize);
  1059. UBXMsg* msg = (UBXMsg*)buffer.data;
  1060. initMsg(msg, payloadSize, UBXMsgClassCFG, UBXMsgIdCFG_USB);
  1061. completeMsg(&buffer, payloadSize);
  1062. return buffer;
  1063. }
  1064. UBXMsgBuffer getCFG_USB(UBXU2_t vendorId,
  1065. UBXU2_t productId,
  1066. UBXU2_t powerConsumption,
  1067. UBXX2_t flags,
  1068. UBXCH_t* vendorString,
  1069. UBXCH_t* productString,
  1070. UBXCH_t* serialNumber)
  1071. {
  1072. int payloadSize = sizeof(UBXCFG_USB);
  1073. UBXMsgBuffer buffer = createBuffer(payloadSize);
  1074. UBXMsg* msg = (UBXMsg*)buffer.data;
  1075. int vendorStringSize = 0;
  1076. int productStringSize = 0;
  1077. int serialNumberSize = 0;
  1078. initMsg(msg, payloadSize, UBXMsgClassCFG, UBXMsgIdCFG_USB);
  1079. msg->payload.CFG_USB.vendorId = vendorId;
  1080. msg->payload.CFG_USB.productId = productId;
  1081. msg->payload.CFG_USB.reserved1 = 0;
  1082. msg->payload.CFG_USB.reserved2 = 1;
  1083. msg->payload.CFG_USB.powerConsumption = powerConsumption;
  1084. msg->payload.CFG_USB.flags = flags;
  1085. vendorStringSize = strlen(vendorString) > 32 ? 32 : strlen(vendorString);
  1086. memcpy(msg->payload.CFG_USB.vendorString, vendorString, vendorStringSize);
  1087. productStringSize = strlen(productString) > 32 ? 32 : strlen(productString);
  1088. memcpy(msg->payload.CFG_USB.productString, productString, productStringSize);
  1089. serialNumberSize = strlen(serialNumber) > 32 ? 32 : strlen(serialNumber);
  1090. memcpy(msg->payload.CFG_USB.serialNumber, serialNumber, serialNumberSize);
  1091. completeMsg(&buffer, payloadSize);
  1092. return buffer;
  1093. }
  1094. UBXMsgBuffer getLOG_CREATE(UBXX1_t logCfg, UBXU1_t logSize, UBXU4_t userDefinedSize)
  1095. {
  1096. int payloadSize = sizeof(UBXLOG_CREATE);
  1097. UBXMsgBuffer buffer = createBuffer(payloadSize);
  1098. UBXMsg* msg = (UBXMsg*)buffer.data;
  1099. initMsg(msg, payloadSize, UBXMsgClassLOG, UBXMsgIdLOG_CREATE);
  1100. msg->payload.LOG_CREATE.version = 0;
  1101. msg->payload.LOG_CREATE.logCfg = logCfg;
  1102. msg->payload.LOG_CREATE.reserved = 0;
  1103. msg->payload.LOG_CREATE.logSize = logSize;
  1104. msg->payload.LOG_CREATE.userDefinedSize = userDefinedSize;
  1105. completeMsg(&buffer, payloadSize);
  1106. return buffer;
  1107. }
  1108. UBXMsgBuffer getLOG_ERASE()
  1109. {
  1110. int payloadSize = 0;
  1111. UBXMsgBuffer buffer = createBuffer(payloadSize);
  1112. UBXMsg* msg = (UBXMsg*)buffer.data;
  1113. initMsg(msg, payloadSize, UBXMsgClassLOG, UBXMsgIdLOG_ERASE);
  1114. completeMsg(&buffer, payloadSize);
  1115. return buffer;
  1116. }
  1117. UBXMsgBuffer getLOG_FINDTIME_IN(UBXU2_t year, UBXU1_t month, UBXU1_t day, UBXU1_t hour, UBXU1_t minute, UBXU1_t second)
  1118. {
  1119. int payloadSize = sizeof(UBXLOG_FINDTIME_IN);
  1120. UBXMsgBuffer buffer = createBuffer(payloadSize);
  1121. UBXMsg* msg = (UBXMsg*)buffer.data;
  1122. initMsg(msg, payloadSize, UBXMsgClassLOG, UBXMsgIdLOG_FINDTIME);
  1123. msg->payload.LOG_FINDTIME_IN.version = 0;
  1124. msg->payload.LOG_FINDTIME_IN.type = 0;
  1125. msg->payload.LOG_FINDTIME_IN.year = year;
  1126. msg->payload.LOG_FINDTIME_IN.month = month;
  1127. msg->payload.LOG_FINDTIME_IN.day = day;
  1128. msg->payload.LOG_FINDTIME_IN.hour = hour;
  1129. msg->payload.LOG_FINDTIME_IN.minute = minute;
  1130. msg->payload.LOG_FINDTIME_IN.second = second;
  1131. completeMsg(&buffer, payloadSize);
  1132. return buffer;
  1133. }
  1134. UBXMsgBuffer getLOG_INFO_POLL()
  1135. {
  1136. int payloadSize = 0;
  1137. UBXMsgBuffer buffer = createBuffer(payloadSize);
  1138. UBXMsg* msg = (UBXMsg*)buffer.data;
  1139. initMsg(msg, payloadSize, UBXMsgClassLOG, UBXMsgIdLOG_INFO);
  1140. completeMsg(&buffer, payloadSize);
  1141. return buffer;
  1142. }
  1143. UBXMsgBuffer getLOG_RETRIEVE(UBXU4_t startNumber,
  1144. UBXU4_t entryCount,
  1145. UBXU1_t version)
  1146. {
  1147. int payloadSize = sizeof(UBXLOG_RETRIEVE);
  1148. UBXMsgBuffer buffer = createBuffer(payloadSize);
  1149. UBXMsg* msg = (UBXMsg*)buffer.data;
  1150. initMsg(msg, payloadSize, UBXMsgClassLOG, UBXMsgIdLOG_RETRIEVE);
  1151. msg->payload.LOG_RETRIEVE.startNumber = startNumber;
  1152. msg->payload.LOG_RETRIEVE.entryCount = entryCount;
  1153. msg->payload.LOG_RETRIEVE.version = version;
  1154. completeMsg(&buffer, payloadSize);
  1155. return buffer;
  1156. }
  1157. UBXMsgBuffer getLOG_STRING(UBXCH_t* str)
  1158. {
  1159. int payloadSize = strlen(str);
  1160. UBXMsgBuffer buffer = createBuffer(payloadSize);
  1161. UBXMsg* msg = (UBXMsg*)buffer.data;
  1162. initMsg(msg, payloadSize, UBXMsgClassLOG, UBXMsgIdLOG_STRING);
  1163. memcpy(&(msg->payload.LOG_STRING), str, payloadSize);
  1164. completeMsg(&buffer, payloadSize);
  1165. return buffer;
  1166. }
  1167. UBXMsgBuffer getMON_VER_POLL()
  1168. {
  1169. int payloadSize = 0;
  1170. UBXMsgBuffer buffer = createBuffer(payloadSize);
  1171. UBXMsg* msg = (UBXMsg*)buffer.data;
  1172. initMsg(msg, payloadSize, UBXMsgClassMON, UBXMsgIdMON_VER);
  1173. completeMsg(&buffer, payloadSize);
  1174. return buffer;
  1175. }
  1176. UBXMsgBuffer getRXM_ALM_POLL()
  1177. {
  1178. int payloadSize = 0;
  1179. UBXMsgBuffer buffer = createBuffer(payloadSize);
  1180. UBXMsg* msg = (UBXMsg*)buffer.data;
  1181. initMsg(msg, payloadSize, UBXMsgClassRXM, UBXMsgIdRXM_ALM);
  1182. completeMsg(&buffer, payloadSize);
  1183. return buffer;
  1184. }
  1185. UBXMsgBuffer getRXM_ALM_POLL_OPT(UBXU1_t svid)
  1186. {
  1187. int payloadSize = sizeof(UBXRXM_ALM_POLL_OPT);
  1188. UBXMsgBuffer buffer = createBuffer(payloadSize);
  1189. UBXMsg* msg = (UBXMsg*)buffer.data;
  1190. initMsg(msg, payloadSize, UBXMsgClassRXM, UBXMsgIdRXM_ALM);
  1191. msg->payload.RXM_ALM_POLL_OPT.svid = svid;
  1192. completeMsg(&buffer, payloadSize);
  1193. return buffer;
  1194. }
  1195. UBXMsgBuffer getRXM_EPH_POLL()
  1196. {
  1197. int payloadSize = 0;
  1198. UBXMsgBuffer buffer = createBuffer(payloadSize);
  1199. UBXMsg* msg = (UBXMsg*)buffer.data;
  1200. initMsg(msg, payloadSize, UBXMsgClassRXM, UBXMsgIdRXM_EPH);
  1201. completeMsg(&buffer, payloadSize);
  1202. return buffer;
  1203. }
  1204. UBXMsgBuffer getRXM_EPH_POLL_OPT(UBXU1_t svid)
  1205. {
  1206. int payloadSize = sizeof(UBXRXM_EPH_POLL_OPT);
  1207. UBXMsgBuffer buffer = createBuffer(payloadSize);
  1208. UBXMsg* msg = (UBXMsg*)buffer.data;
  1209. initMsg(msg, payloadSize, UBXMsgClassRXM, UBXMsgIdRXM_ALM);
  1210. msg->payload.RXM_ALM_POLL_OPT.svid = svid;
  1211. completeMsg(&buffer, payloadSize);
  1212. return buffer;
  1213. }
  1214. UBXMsgBuffer getRXM_PMREQ(UBXU4_t duration, UBXX4_t flags)
  1215. {
  1216. int payloadSize = sizeof(UBXRXM_PMREQ);
  1217. UBXMsgBuffer buffer = createBuffer(payloadSize);
  1218. UBXMsg* msg = (UBXMsg*)buffer.data;
  1219. initMsg(msg, payloadSize, UBXMsgClassRXM, UBXMsgIdRXM_PMREQ);
  1220. msg->payload.RXM_PMREQ.duration = duration;
  1221. msg->payload.RXM_PMREQ.flags = flags;
  1222. completeMsg(&buffer, payloadSize);
  1223. return buffer;
  1224. }
  1225. UBXMsgBuffer getRXM_SVSI(UBXU4_t iTOW,
  1226. UBXI2_t week,
  1227. UBXU1_t numVis,
  1228. UBXU1_t numSV,
  1229. UBXRXM_SVSI_PART* svsiPart,
  1230. int svsiPartCount)
  1231. {
  1232. int payloadSize = sizeof(UBXRXM_SVSI) + svsiPartCount * sizeof(UBXRXM_SVSI_PART);
  1233. UBXMsgBuffer buffer = createBuffer(payloadSize);
  1234. UBXMsg* msg = (UBXMsg*)buffer.data;
  1235. initMsg(msg, payloadSize, UBXMsgClassRXM, UBXMsgIdRXM_SVSI);
  1236. msg->payload.RXM_SVSI.iTOW = iTOW;
  1237. msg->payload.RXM_SVSI.week = week;
  1238. msg->payload.RXM_SVSI.numVis = numVis;
  1239. msg->payload.RXM_SVSI.numSV = numSV;
  1240. memcpy(((char*)&(msg->payload.RXM_SVSI)) + sizeof(UBXRXM_SVSI), svsiPart, svsiPartCount * sizeof(UBXRXM_SVSI_PART));
  1241. completeMsg(&buffer, payloadSize);
  1242. return buffer;
  1243. }
  1244. /*!
  1245. * \defgroup Functions
  1246. */
  1247. /*!
  1248. * \defgroup Enumerations
  1249. */
  1250. /*!
  1251. * \defgroup Types
  1252. */
  1253. /*! \addtogroup Enumerations
  1254. * @{
  1255. */
  1256. /*!
  1257. * \enum UBXMessageClass
  1258. * \brief UBXMessageClass is a grouping of messages which are related to each other.
  1259. * The following table lists all the current message classes.
  1260. * \var UBXMsgClassNAV
  1261. * Navigation Results: Position, Speed, Time, Acc, Heading, DOP, SVs used
  1262. * \var UBXMsgClassRXM
  1263. * Receiver Manager Messages: Satellite Status, RTC Status
  1264. * \var UBXMsgClassINF
  1265. * Information Messages: Printf-Style Messages, with IDs such as Error, Warning, Notice
  1266. * \var UBXMsgClassACK
  1267. * Ack/Nack Messages: as replies to CFG Input Messages
  1268. * \var UBXMsgClassCFG
  1269. * Configuration Input Messages: Set Dynamic Model, Set DOP Mask, Set Baud Rate, etc.
  1270. * \var UBXMsgClassUPD
  1271. * Firmware Update Messages: Memory/Flash erase/write, Reboot, Flash identification, etc.
  1272. * \var UBXMsgClassMON
  1273. * Monitoring Messages: Comunication Status, CPU Load, Stack Usage, Task Status
  1274. * \var UBXMsgClassAID
  1275. * AssistNow Aiding Messages: Ephemeris, Almanac, other A-GPS data input
  1276. * \var UBXMsgClassTIM
  1277. * Timing Messages: Time Pulse Output, Timemark Results
  1278. * \var UBXMsgClassESF
  1279. * External Sensor Fusion Messages: External Sensor Measurements and Status Information
  1280. * \var UBXMsgClassMGA
  1281. * Multiple GNSS Assistance Messages: Assistance data for various GNSS
  1282. * \var UBXMsgClassLOG
  1283. * Logging Messages: Log creation, deletion, info and retrieval
  1284. * \var UBXMsgClassSEC
  1285. * Security Feature Messages
  1286. * \var UBXMsgClassHNR
  1287. * High Rate Navigation Results Messages: High rate time, position, speed, heading
  1288. * \var UBXMsgClassInvalid
  1289. * Default invalid message class
  1290. */
  1291. /*!
  1292. * \enum UBXMessageId
  1293. * \brief UBXMessageId is a type of messages
  1294. * \var UBXMsgIdACK_NACK
  1295. * Message Acknowledged
  1296. * \var UBXMsgIdACK_ACK
  1297. * Message Not-Acknowledged
  1298. *
  1299. * \var UBXMsgIdAID_ALM
  1300. * GPS Aiding Almanac Data
  1301. * \var UBXMsgIdAID_ALPSRV
  1302. * AlmanacPlus data
  1303. * \var UBXMsgIdAID_ALP
  1304. * ALP file data transfer
  1305. * \var UBXMsgIdAID_AOP
  1306. * AssistNow Autonomous data
  1307. * \var UBXMsgIdAID_DATA
  1308. * GPS Initial Aiding Data
  1309. * \var UBXMsgIdAID_EPH
  1310. * GPS Aiding Ephemeris Data
  1311. * \var UBXMsgIdAID_HUI
  1312. * GPS Health, UTC and ionosphere parameters
  1313. * \var UBXMsgIdAID_INI
  1314. * Aiding position, time, frequency, clock drift
  1315. * \var UBXMsgIdAID_REQ
  1316. * Sends a poll (AID-DATA) for all GPS Aiding Data
  1317. *
  1318. * \var UBXMsgIdCFG_ANT
  1319. * Antenna Control Settings
  1320. * \var UBXMsgIdCFG_CFG
  1321. * Clear, Save and Load configurations
  1322. * \var UBXMsgIdCFG_DAT
  1323. * Datum Setting
  1324. * \var UBXMsgIdCFG_GNSS
  1325. * GNSS system configuration
  1326. * \var UBXMsgIdCFG_INF
  1327. * Information message configuration
  1328. * \var UBXMsgIdCFG_ITFM
  1329. * Jamming/Interference Monitor configuration.
  1330. * \var UBXMsgIdCFG_LOGFILTER
  1331. * Data Logger Configuration
  1332. * \var UBXMsgIdCFG_MSG
  1333. * Message Configuration
  1334. * \var UBXMsgIdCFG_NAV5
  1335. * Navigation Engine Settings
  1336. * \var UBXMsgIdCFG_NAVX5
  1337. * Navigation Engine Expert Settings
  1338. * \var UBXMsgIdCFG_NMEA
  1339. * NMEA protocol configuration
  1340. * \var UBXMsgIdCFG_NVS
  1341. * Clear, Save and Load non-volatile storage data
  1342. * \var UBXMsgIdCFG_PM2
  1343. * Extended Power Management configuration
  1344. * \var UBXMsgIdCFG_PRT
  1345. * Ports Configuration
  1346. * \var UBXMsgIdCFG_RATE
  1347. * Navigation/Measurement Rate Settings
  1348. * \var UBXMsgIdCFG_RINV
  1349. * Contents of Remote Inventory
  1350. * \var UBXMsgIdCFG_RST
  1351. * Reset Receiver / Clear Backup Data Structures
  1352. * \var UBXMsgIdCFG_RXM
  1353. * RXM configuration
  1354. * \var UBXMsgIdCFG_SBAS
  1355. * SBAS Configuration
  1356. * \var UBXMsgIdCFG_TP5
  1357. * Time Pulse Parameters
  1358. * \var UBXMsgIdCFG_USB
  1359. * USB Configuration
  1360. *
  1361. * \var UBXMsgIdINF_DEBUG
  1362. * ASCII String output, indicating debug output
  1363. * \var UBXMsgIdINF_ERROR
  1364. * ASCII String output, indicating an error
  1365. * \var UBXMsgIdINF_NOTICE
  1366. * ASCII String output, with informational contents
  1367. * \var UBXMsgIdINF_TEST
  1368. * ASCII String output, indicating test output
  1369. * \var UBXMsgIdINF_WARNING
  1370. * ASCII String output, indicating a warning
  1371. *
  1372. * \var UBXMsgIdLOG_CREATE
  1373. * Create Log File
  1374. * \var UBXMsgIdLOG_ERASE
  1375. * Erase Logged Data
  1376. * \var UBXMsgIdLOG_FINDTIME
  1377. * Find the index of the first log entry <= given time
  1378. * \var UBXMsgIdLOG_INFO
  1379. * Log information
  1380. * \var UBXMsgIdLOG_RETRIEVEPOS
  1381. * Position fix log entry
  1382. * \var UBXMsgIdLOG_RETRIEVESTRING
  1383. * Byte string log entry
  1384. * \var UBXMsgIdLOG_RETRIEVE
  1385. * Request log data
  1386. * \var UBXMsgIdLOG_STRING
  1387. * Store arbitrary string in on-board Flash memory
  1388. *
  1389. * \var UBXMsgIdMON_HW2
  1390. * Extended Hardware Status
  1391. * \var UBXMsgIdMON_HW
  1392. * Hardware Status
  1393. * \var UBXMsgIdMON_IO
  1394. * I/O Subsystem Status
  1395. * \var UBXMsgIdMON_MSGPP
  1396. * Message Parse and Process Status
  1397. * \var UBXMsgIdMON_RXBUF
  1398. * Receiver Buffer Status
  1399. * \var UBXMsgIdMON_RXR
  1400. * Receiver Status Information
  1401. * \var UBXMsgIdMON_TXBUF
  1402. * Transmitter Buffer Status
  1403. * \var UBXMsgIdMON_VER
  1404. * Receiver/Software Version
  1405. *
  1406. * \var UBXMsgIdNAV_AOPSTATUS
  1407. * AssistNow Autonomous Status
  1408. * \var UBXMsgIdNAV_CLOCK
  1409. * Clock Solution
  1410. * \var UBXMsgIdNAV_DGPS
  1411. * DGPS Data Used for NAV
  1412. * \var UBXMsgIdNAV_DOP
  1413. * Dilution of precision
  1414. * \var UBXMsgIdNAV_POSECEF
  1415. * Position Solution in ECEF
  1416. * \var UBXMsgIdNAV_POSLLH
  1417. * Geodetic Position Solution
  1418. * \var UBXMsgIdNAV_PVT
  1419. * Navigation Position Velocity Time Solution
  1420. * \var UBXMsgIdNAV_SBAS
  1421. * SBAS Status Data
  1422. * \var UBXMsgIdNAV_SOL
  1423. * Navigation Solution Information
  1424. * \var UBXMsgIdNAV_STATUS
  1425. * Receiver Navigation Status
  1426. * \var UBXMsgIdNAV_SVINFO
  1427. * Space Vehicle Information
  1428. * \var UBXMsgIdNAV_TIMEGPS
  1429. * GPS Time Solution
  1430. * \var UBXMsgIdNAV_TIMEUTC
  1431. * UTC Time Solution
  1432. * \var UBXMsgIdNAV_VELECEF
  1433. * Velocity Solution in ECEF
  1434. * \var UBXMsgIdNAV_VELNED
  1435. * Velocity Solution in NED
  1436. *
  1437. * \var UBXMsgIdRXM_ALM
  1438. * GPS Constellation Almanac Data
  1439. * \var UBXMsgIdRXM_EPH
  1440. * GPS Constellation Ephemeris Data
  1441. * \var UBXMsgIdRXM_PMREQ
  1442. * Requests a Power Management task
  1443. * \var UBXMsgIdRXM_RAW
  1444. * Raw Measurement Data
  1445. * \var UBXMsgIdRXM_SFRB
  1446. * Subframe Buffer
  1447. * \var UBXMsgIdRXM_SVSI
  1448. * SV Status Info
  1449. *
  1450. * \var UBXMsgIdTIM_TM2
  1451. * Time mark data
  1452. * \var UBXMsgIdTIM_TP
  1453. * Time Pulse Timedata
  1454. * \var UBXMsgIdTIM_VRFY
  1455. * Sourced Time Verification
  1456. *
  1457. * \var UBXMsgIdInvalid
  1458. * Default invalid message identificator
  1459. */
  1460. /*!
  1461. * \enum UBXResetMode
  1462. * \brief UBXResetMode describes possible reset modes
  1463. * for #UBXCFG_RST message.
  1464. * \var UBXHardwareReset
  1465. * Hardware reset (Watchdog) immediately
  1466. * \var UBXControlledReset
  1467. * Controlled Software reset
  1468. * \var UBXControlledResetGNSSOnly
  1469. * Controlled Software reset (GNSS only)
  1470. * \var UBXHardwareResetAfterShutdown
  1471. * Hardware reset (Watchdog) after
  1472. * \var UBXControlledGNSSStop
  1473. * Controlled GNSS stop
  1474. * \var UBXControlledGNSSStart
  1475. * Controlled GNSS start
  1476. */
  1477. /*!
  1478. * \enum UBXBBRSpecialSets
  1479. * \brief UBXBBRSpecialSets implements special sets for
  1480. * #UBXCFG_RST message.
  1481. * \var UBXBBRHotstart
  1482. * Hotstart
  1483. * \var UBXBBRWarmstart
  1484. * Warmstart
  1485. * \var UBXBBRColdstart
  1486. * Coldstart
  1487. */
  1488. /*!
  1489. * \enum UBXBBRMask
  1490. * \brief UBXBBRMask implements members for BBR(built-in battery-backed RAM) bitmask
  1491. * for #UBXCFG_RST message.
  1492. * \var UBXBBReph
  1493. * Ephemeris
  1494. * \var UBXBBRalm
  1495. * Almanac
  1496. * \var UBXBBRhealth
  1497. * Health
  1498. * \var UBXBBRklob
  1499. * Klobuchar parameters
  1500. * \var UBXBBRpos
  1501. * Position
  1502. * \var UBXBBRclkd
  1503. * Clock Drift
  1504. * \var UBXBBRosc
  1505. * Oscillator Parameter
  1506. * \var UBXBBRutc
  1507. * UTC Correction + GPS Leap Seconds Parameters
  1508. * \var UBXBBRrtc
  1509. * RTC
  1510. * \var UBXBBRsfdr
  1511. * SFDR Parameters
  1512. * \var UBXBBRvmon
  1513. * SFDR Vehicle Monitoring Parameters
  1514. * \var UBXBBRtct
  1515. * TCT Parameters
  1516. * \var UBXBBRaop
  1517. * Autonomous Orbit Parameters
  1518. */
  1519. /*!
  1520. * \enum UBXHUIFlags
  1521. * \brief UBXHUIFlags implements HUI flags bitmask
  1522. * for #UBXAID_HUI message.
  1523. * \var UBXHUIHealthValid
  1524. * Healthmask field in this message is valid
  1525. * \var UBXHUIUTCValid
  1526. * UTC parameter fields in this message are valid
  1527. * \var UBXHUIKlobValid
  1528. * Klobuchar parameter fields in this message are valid
  1529. */
  1530. /*!
  1531. * \enum UBXINItmCfg
  1532. * \brief UBXINItmCfg implements Time mark configuration bitmask
  1533. * for #UBXAID_INI message.
  1534. * \var UBXINIfEdge
  1535. * Use falling edge (default rising)
  1536. * \var UBXINItm1
  1537. * Time mark on extint 1 (default extint 0)
  1538. * \var UBXINIf1
  1539. * Frequency on extint 1 (default extint 0)
  1540. */
  1541. /*!
  1542. * \enum UBXINIFlags
  1543. * \brief UBXINIFlags implements INI flags bitmask
  1544. * for #UBXAID_INI message.
  1545. * \var UBXINIpos
  1546. * Position is valid
  1547. * \var UBXINItime
  1548. * Time is valid
  1549. * \var UBXINIclockD
  1550. * Clock drift data contains valid clock drift, must not be set together with clockF
  1551. * \var UBXINItp
  1552. * Use time pulse
  1553. * \var UBXINIclockF
  1554. * Clock drift data contains valid frequency, must not be set together with clockD
  1555. * \var UBXINIlla
  1556. * Position is given in lat/long/alt (default is ECEF)
  1557. * \var UBXINIaltInv
  1558. * Altitude is not valid, in case lla was set
  1559. * \var UBXINIprevTm
  1560. * Use time mark received before AID-INI message (default uses mark received after message)
  1561. * \var UBXINIutc
  1562. * Time is given as UTC date/time (default is GPS wno/tow)
  1563. */
  1564. /*!
  1565. * \enum UBXANTFlags
  1566. * \brief UBXANTFlags implements ANT flags bitmask
  1567. * for #UBXCFG_ANT message.
  1568. * \var UBXANTsvcs
  1569. * Enable Antenna Supply Voltage Control Signal
  1570. * \var UBXANTscd
  1571. * Enable Short Circuit Detection
  1572. * \var UBXANTocd
  1573. * Enable Open Circuit Detection
  1574. * \var UBXANTpdwnOnSCD
  1575. * Power Down Antenna supply if Short Circuit is detected. (only in combination with Bit 1)
  1576. * \var UBXANTrecovery
  1577. * Enable automatic recovery from short state
  1578. */
  1579. /*!
  1580. * \enum UBXCFGMask
  1581. * \brief UBXCFGMask implements CFG flags bitmask
  1582. * for #UBXCFG_CFG message and #UBXCFG_NVS.
  1583. * \var UBXCFGioPort
  1584. * Port Settings\n
  1585. * \note #UBXCFG_CFG only
  1586. * \var UBXCFGmsgConf
  1587. * Message Configuration\n
  1588. * \note#UBXCFG_CFG only
  1589. * \var UBXCFGinfMsg
  1590. * INF Message Configuration\n
  1591. * \note#UBXCFG_CFG only
  1592. * \var UBXCFGnavConf
  1593. * Navigation Configuration\n
  1594. * \note#UBXCFG_CFG only
  1595. * \var UBXCFGrxmConf
  1596. * Receiver Manager Configuration\n
  1597. * \note#UBXCFG_CFG only
  1598. * \var UBXCFGrinvConf
  1599. * Remote Inventory Configuration\n
  1600. * \note#UBXCFG_CFG only
  1601. * \var UBXCFGantConf
  1602. * Antenna Configuration\n
  1603. * \note#UBXCFG_CFG only
  1604. * \var UBXCFGalm
  1605. * GPS Almanac data\n
  1606. * \note#UBXCFG_NVS only
  1607. * \var UBXCFGaopConf
  1608. * AOP data\n
  1609. * \note#UBXCFG_NVS only
  1610. */
  1611. /*!
  1612. * \enum UBXCFGMask
  1613. * \brief UBXCFGMask implements CFG flags bitmask
  1614. * for #UBXCFG_CFG message and #UBXCFG_NVS.
  1615. * Mask selects the devices for #UBXCFG_CFG
  1616. * and #UBXCFG_NVS commands.
  1617. * \var UBXCFGdevBBR
  1618. * built-in battery-backed RAM
  1619. * \var UBXCFGdevFlash
  1620. * external flash memory
  1621. * \var UBXCFGdevEEPROM
  1622. * external EEPROM
  1623. * \var UBXCFGdevSpiFlash
  1624. * external SPI Flash
  1625. */
  1626. /*!
  1627. * \enum UBXCFGTimepulses
  1628. * \brief UBXCFGTimepulses contains possible timepulse
  1629. * selections for #UBXCFG_TP5 message.
  1630. * \var UBXCFGTimepulse
  1631. * TIMEPULSE selection
  1632. * \var UBXCFGTimepulse2
  1633. * TIMEPULSE2 selection
  1634. */
  1635. /*!
  1636. * \enum UBXCFGTimepulseFlags
  1637. * \brief UBXCFGTimepulseFlags implements timepulse flags
  1638. * for #UBXCFG_TP5 message.
  1639. * \var UBXCFGTimepulseActive
  1640. * if set enable time pulse; if pin assigned to another function, other function takes precedence
  1641. * \var UBXCFGTimepulseLockGpsFreq
  1642. * if set synchronize time pulse to GPS as soon as GPS time is valid, otherwise use local clock
  1643. * \var UBXCFGTimepulseLockedOtherSet
  1644. * if set use 'freqPeriodLock' and 'pulseLenRatioLock' as soon as GPS time is valid and 'freqPeriod' and
  1645. * 'pulseLenRatio' if GPS time is invalid,
  1646. * if flag is cleared 'freqPeriod' and 'pulseLenRatio' used regardless of GPS time
  1647. * \var UBXCFGTimepulseIsFreq
  1648. * if set 'freqPeriodLock' and 'freqPeriod' interpreted as frequency, otherwise interpreted as period
  1649. * \var UBXCFGTimepulseIsLenght
  1650. * if set 'pulseLenRatioLock' and 'pulseLenRatio' interpreted as pulse length, otherwise interpreted as duty cycle
  1651. * \var UBXCFGTimepulseAlignToTow
  1652. * align pulse to top of second (period time must be integer fraction of 1s)
  1653. * \var UBXCFGTimepulsePolarity
  1654. * pulse polarity:\n
  1655. * 0 = falling edge at top of second\n
  1656. * 1 = rising edge at top of second
  1657. * \var UBXCFGTimepulseGridUTSGPS
  1658. * timegrid to use:\n
  1659. * 0 = UTC\n
  1660. * 1 = GPS
  1661. */
  1662. /*!
  1663. * \enum UBXCFGProtocolIds
  1664. * \brief UBXCFGProtocolIds
  1665. * Protocol Identifiers, identifying the output
  1666. * protocol for #UBXCFG_INF.
  1667. * \var UBXProtocol
  1668. * UBX Protocol
  1669. * \var UBXNMEAProtocol
  1670. * NMEA Protocol
  1671. */
  1672. /*!
  1673. * \enum UBXGNSSIds
  1674. * \brief UBXGNSSIds
  1675. * GNSS identificators used for #UBXCFG_GNSS in #UBXCFG_GNSS_PART
  1676. * \var UBXGPS
  1677. * GPS
  1678. * \var UBXSBAS
  1679. * SBAS
  1680. * \var UBXQZSS
  1681. * QZSS
  1682. * \var UBXGLONASS
  1683. * GLONASS
  1684. */
  1685. /*!
  1686. * \enum UBXCFGInfMsgMask
  1687. * \brief UBXCFGInfMsgMask implements
  1688. * bit mask, saying which information messages are enabled on each I/O port
  1689. * \var UBXInfError
  1690. * Error
  1691. * \var UBXInfWarning
  1692. * Warning
  1693. * \var UBXInfNotice
  1694. * Notice
  1695. * \var UBXInfDebug
  1696. * Debug
  1697. * \var UBXInfTest
  1698. * Test
  1699. */
  1700. /*!
  1701. * \enum UBXITFMAntSetting
  1702. * \brief UBXITFMAntSetting implements possible antenna settings for
  1703. * #UBXCFG_ITFM in UBXCFG_ITFM::config2 part.
  1704. * \var UBXITFMAntUnknown
  1705. * Unknown
  1706. * \var UBXITFMAntPassive
  1707. * Passive
  1708. * \var UBXITFMAntActive
  1709. * Active
  1710. */
  1711. /*!
  1712. * \enum UBXLOGFILTERFlags
  1713. * \brief UBXLOGFILTERFlags implements log filter flags bitmask for
  1714. * #UBXCFG_LOGFILTER
  1715. * \var UBXLOGFILTERRecordEnabled
  1716. * 1 = enable recording\n
  1717. * 0 = disable recording
  1718. * \var UBXLOGFILTERPsmOncePerWakupEnabled
  1719. * 1 = enable recording only one single position per PSM on/off mode wake up period\n
  1720. * 0 = disable once per wake up
  1721. * \var UBXLOGFILTERApplyAllFilterSettings
  1722. * 1 = apply all filter settings\n
  1723. * 0 = only apply recordEnabled
  1724. */
  1725. /*!
  1726. * \enum UBXNAV5Mask
  1727. * \brief UBXNAV5Mask implements flags bitmask
  1728. * for #UBXCFG_NAV5 message
  1729. * \var UBXNAV5Dyn
  1730. * Apply dynamic model settings
  1731. * \var UBXNAV5MinEl
  1732. * Apply minimum elevation settings
  1733. * \var UBXNAV5PosFixMode
  1734. * Apply fix mode settings
  1735. * \var UBXNAV5DrLim
  1736. * Reserved
  1737. * \var UBXNAV5PosMask
  1738. * Apply position mask settings
  1739. * \var UBXNAV5TimeMask
  1740. * Apply time mask settings
  1741. * \var UBXNAV5StaticHoldMask
  1742. * Apply static hold settings
  1743. * \var UBXNAV5DgpsMask
  1744. * Apply DGPS settings.
  1745. */
  1746. /*!
  1747. * \enum UBXNAV5Model
  1748. * \brief UBXNAV5Model
  1749. * enum describes dynamic platform models
  1750. * for #UBXCFG_NAV5 message
  1751. * \var UBXNAV5ModelPortable
  1752. * Portable
  1753. * \var UBXNAV5ModelStationary
  1754. * Stationary
  1755. * \var UBXNAV5ModelPedestrian
  1756. * Pedestrian
  1757. * \var UBXNAV5ModelAutomotive
  1758. * Automotive
  1759. * \var UBXNAV5ModelSea
  1760. * Sea
  1761. * \var UBXNAV5ModelAirborne1g
  1762. * Airborne1g
  1763. * \var UBXNAV5ModelAirborne2g
  1764. * Airborne2g
  1765. * \var UBXNAV5ModelAirborne4g
  1766. * Airborne4g
  1767. */
  1768. /*!
  1769. * \enum UBXNAV5FixMode
  1770. * \brief UBXNAV5FixMode
  1771. * enum describes position fixing mode
  1772. * for #UBXCFG_NAV5 message
  1773. * \var UBXNAV5Fix2DOnly
  1774. * 2D Only
  1775. * \var UBXNAV5Fix3DOnly
  1776. * 3D Only
  1777. * \var UBXNAV5FixAuto2D3D
  1778. * Auto 2D/3D
  1779. */
  1780. /*!
  1781. * \enum UBXNAVX5Mask
  1782. * \brief UBXNAVX5Mask
  1783. * implements flags bitmask
  1784. * for #UBXCFG_NAVX5 message
  1785. * \var UBXNAVX5AopMinMax
  1786. * Apply min/max SVs settings
  1787. * \var UBXNAVX5AopMinCno
  1788. * Apply minimum C/N0 setting
  1789. * \var UBXNAVX5AopInitial3dfix
  1790. * Apply initial 3D fix settings
  1791. * \var UBXNAVX5AopWknRoll
  1792. * Apply GPS weeknumber rollover settings
  1793. * \var UBXNAVX5AopPPP
  1794. * Apply PPP flag\n
  1795. * \note Only supported on certain product variants
  1796. * \var UBXNAVX5Aop
  1797. * Apply useAOP flag and aopOrbMaxErr setting (AssistNow Autonomous)
  1798. */
  1799. /*!
  1800. * \enum UBXNMEAFilter
  1801. * \brief UBXNMEAFilter
  1802. * implements NMEA message filter bitmask
  1803. * for #UBXCFG_NMEA
  1804. * \var UBXNMEAPosFilter
  1805. * Enable position output for failed or invalid fixes
  1806. * \var UBXNMEAMskPosFilter
  1807. * Enable position output for invalid fixes
  1808. * \var UBXNMEATimeFilter
  1809. * Enable time output for invalid times
  1810. * \var UBXNMEADateFilter
  1811. * Enable date output for invalid dates
  1812. * \var UBXNMEAGPSOnlyFilter
  1813. * Restrict output to GPS satellites only
  1814. * \var UBXNMEATrackFilter
  1815. * Enable COG output even if COG is frozen
  1816. */
  1817. /*!
  1818. * \enum UBXNMEAVersion
  1819. * \brief UBXNMEAVersion
  1820. * describes supported NMEA protocol version
  1821. * \var UBXNMEAVersion23
  1822. * NMEA version 2.3
  1823. * \var UBXNMEAVersion21
  1824. * NMEA version 2.1
  1825. */
  1826. /*!
  1827. * \enum UBXNMEAFlags
  1828. * \brief UBXNMEAFlags
  1829. * implements flags bitmask for #UBXCFG_NMEA
  1830. * \var UBXNMEACompatFlag
  1831. * enable compatibility mode.\n
  1832. * This might be needed for certain applications when customer's NMEA parser expects a fixed number of digits in
  1833. * position coordinates
  1834. * \var UBXNMEAConsiderFlag
  1835. * enable considering mode.
  1836. */
  1837. /*!
  1838. * \enum UBXNMEAGNSSToFilter
  1839. * \brief UBXNMEAGNSSToFilter
  1840. * implements bitmask to filters out satellites based
  1841. * on their GNSS.
  1842. * \var UBXNMEAGPSFilter
  1843. * Disable reporting of GPS satellites
  1844. * \var UBXNMEASBASFilter
  1845. * Disable reporting of SBAS satellites
  1846. * \var UBXNMEAQZSSFilter
  1847. * Disable reporting of QZSS satellites
  1848. * \var UBXNMEAGLONASSFilter
  1849. * Disable reporting of GLONASS satellites
  1850. */
  1851. /*!
  1852. * \enum UBXNMEASVNumbering
  1853. * \brief UBXNMEASVNumbering
  1854. *
  1855. * \var UBXNMEASVNumStrict
  1856. * Satellites are not output
  1857. * \var UBXNMEASVNumExtended
  1858. * Use UBX proprietary numbering
  1859. */
  1860. /*!
  1861. * \enum UBXNMEATalkerIds
  1862. * \brief UBXNMEATalkerIds
  1863. *
  1864. * \var UBXNMEATalkerNotOverriden
  1865. * Main Talker ID is not overridden
  1866. * \var UBXNMEATalkerGP
  1867. * Set main Talker ID to 'GP'
  1868. * \var UBXNMEATalkerGL
  1869. * Set main Talker ID to 'GL'
  1870. * \var UBXNMEATalkerGN
  1871. * Set main Talker ID to 'GN'
  1872. */
  1873. /*!
  1874. * \enum UBXNMEAGSVTalkerIds
  1875. * \brief UBXNMEAGSVTalkerIds
  1876. *
  1877. * \var UBXNMEAGSVTalkerGNSSSpecific
  1878. * Use GNSS specific Talker ID (as defined by NMEA)
  1879. * \var UBXNMEAGSVTalkerMain
  1880. * Use the main Talker ID
  1881. */
  1882. /*!
  1883. * \enum UBXPM2LimitPeakCurrent
  1884. * \brief UBXPM2LimitPeakCurrent
  1885. *
  1886. * \var UBXPM2LimitCurrentDisabled
  1887. * disabled
  1888. * \var UBXPM2LimitCurrentEnabled
  1889. * enabled, peak current is limited
  1890. */
  1891. /*!
  1892. * \enum UBXPM2Mode
  1893. * \brief UBXPM2Mode
  1894. *
  1895. * \var UBXPM2OnOffOperation
  1896. * ON/OFF operation
  1897. * \var UBXPM2CyclicTrackOperation
  1898. * Cyclic tracking operation
  1899. */
  1900. /*!
  1901. * \enum UBXPRTModeCharLen
  1902. * \brief UBXPRTModeCharLen used for #UBXCFG_PRT
  1903. *
  1904. * \var UBXPRTMode5BitCharLen
  1905. * 5bit \n
  1906. * \note Not supported
  1907. * \var UBXPRTMode6BitCharLen
  1908. * 6bit\n
  1909. * \note Not supported
  1910. * \var UBXPRTMode7BitCharLen
  1911. * 7bit\n
  1912. * \note Supported only with parity
  1913. * \var UBXPRTMode8BitCharLen
  1914. * 8bit
  1915. */
  1916. /*!
  1917. * \enum UBXPRTModeParity
  1918. * \brief UBXPRTModeParity used for #UBXCFG_PRT
  1919. *
  1920. * \var UBXPRTModeEvenParity
  1921. * Even Parity
  1922. * \var UBXPRTModeOddParity
  1923. * Odd Parity
  1924. * \var UBXPRTModeNoParity
  1925. * No Parity
  1926. * \var UBXPRTModeReserved
  1927. * Reserved\n
  1928. * \note Exclude this member from target value
  1929. */
  1930. /*!
  1931. * \enum UBXPRTModeStopBits
  1932. * \brief UBXPRTModeStopBits used for #UBXCFG_PRT
  1933. *
  1934. * \var UBXPRTMode1StopBit
  1935. * 1 Stop Bit
  1936. * \var UBXPRTMode1dot5StopBit
  1937. * 1.5 Stop Bit
  1938. * \var UBXPRTMode2StopBit
  1939. * 2 Stop Bit
  1940. * \var UBXPRTMode0dot5StopBit
  1941. * 0.5 Stop Bit
  1942. */
  1943. /*!
  1944. * \enum UBXPRTInProtoMask
  1945. * \brief UBXPRTInProtoMask used for #UBXCFG_PRT
  1946. *
  1947. * \var UBXPRTInProtoInUBX
  1948. * UBX protocol
  1949. * \var UBXPRTInProtoInNMEA
  1950. * NMEA protocol
  1951. * \var UBXPRTInProtoInRTCM
  1952. * RTCM protocol
  1953. */
  1954. /*!
  1955. * \enum UBXPRTOutProtoMask
  1956. * \brief UBXPRTOutProtoMask used for #UBXCFG_PRT
  1957. *
  1958. * \var UBXPRTOutProtoOutUBX
  1959. * UBX protocol
  1960. * \var UBXPRTOutProtoOutNMEA
  1961. * NMEA protocol
  1962. */
  1963. /*!
  1964. * \enum UBXPRTFlags
  1965. * \brief UBXPRTFlags used for #UBXCFG_PRT
  1966. *
  1967. * \var UBXPRTExtendedTxTimeout
  1968. * Extended TX timeout: if set, the port will timeout if allocated TX memory >=4 kB and no activity for 1.5s
  1969. */
  1970. /*!
  1971. * \enum UBXPRTSPIMode
  1972. * \brief UBXPRTSPIMode used for #UBXCFG_PRT
  1973. *
  1974. * \var UBXPRTSPIMode0
  1975. * 0 SPI Mode 0: CPOL = 0, CPHA = 0
  1976. * \var UBXPRTSPIMode1
  1977. * SPI Mode 1: CPOL = 0, CPHA = 1
  1978. * \var UBXPRTSPIMode2
  1979. * SPI Mode 2: CPOL = 1, CPHA = 0
  1980. * \var UBXPRTSPIMode3
  1981. * SPI Mode 3: CPOL = 1, CPHA = 1
  1982. */
  1983. /*!
  1984. * \enum UBXRINVFlags
  1985. * \brief UBXRINVFlags used for #UBXCFG_RINV
  1986. *
  1987. * \var UBXRINVDump
  1988. * Dump data at startup. Does not work if flag binary is set.
  1989. * \var UBXRINVBinary
  1990. * Data is binary
  1991. */
  1992. /*!
  1993. * \enum UBXRXMLowPowerModes
  1994. * \brief UBXRXMLowPowerModes used for #UBXCFG_RXM
  1995. *
  1996. * \var UBXRXMContinousMode
  1997. * Continous Mode
  1998. * \var UBXRXMPowerSaveMode
  1999. * Power Save Mode
  2000. */
  2001. /*!
  2002. * \enum UBXSBASModes
  2003. * \brief UBXSBASModes used for #UBXCFG_SBAS
  2004. *
  2005. * \var UBXSBASModeEnabled
  2006. * SBAS Enabled (1) / Disabled (0)
  2007. * \var UBXSBASModeTest
  2008. * SBAS Testbed: Use data anyhow (1) / Ignore data when in Test Mode (SBAS Msg 0)
  2009. */
  2010. /*!
  2011. * \enum UBXSBASUsage
  2012. * \brief UBXSBASUsage
  2013. *
  2014. * \var UBXSBASUsageRange
  2015. * Use SBAS GEOs as a ranging source (for navigation)
  2016. * \var UBXSBASUsageDiffCorr
  2017. * Use SBAS Differential Corrections
  2018. * \var UBXSBASUsageIntegrity
  2019. * Use SBAS Integrity Information
  2020. */
  2021. /*!
  2022. * \enum UBXSBASScanModes2
  2023. * \brief UBXSBASScanModes2
  2024. *
  2025. * \var UBXSBASScanModePRN152
  2026. * \var UBXSBASScanModePRN153
  2027. * \var UBXSBASScanModePRN154
  2028. * \var UBXSBASScanModePRN155
  2029. * \var UBXSBASScanModePRN156
  2030. * \var UBXSBASScanModePRN157
  2031. * \var UBXSBASScanModePRN158
  2032. */
  2033. /*!
  2034. * \enum UBXSBASScanModes1
  2035. * \brief UBXSBASScanModes1
  2036. *
  2037. * \var UBXSBASScanModePRN120
  2038. * \var UBXSBASScanModePRN121
  2039. * \var UBXSBASScanModePRN122
  2040. * \var UBXSBASScanModePRN123
  2041. * \var UBXSBASScanModePRN124
  2042. * \var UBXSBASScanModePRN125
  2043. * \var UBXSBASScanModePRN126
  2044. * \var UBXSBASScanModePRN127
  2045. * \var UBXSBASScanModePRN128
  2046. * \var UBXSBASScanModePRN129
  2047. * \var UBXSBASScanModePRN130
  2048. * \var UBXSBASScanModePRN131
  2049. * \var UBXSBASScanModePRN132
  2050. * \var UBXSBASScanModePRN133
  2051. * \var UBXSBASScanModePRN134
  2052. * \var UBXSBASScanModePRN135
  2053. * \var UBXSBASScanModePRN136
  2054. * \var UBXSBASScanModePRN137
  2055. * \var UBXSBASScanModePRN138
  2056. * \var UBXSBASScanModePRN139
  2057. * \var UBXSBASScanModePRN140
  2058. * \var UBXSBASScanModePRN141
  2059. * \var UBXSBASScanModePRN142
  2060. * \var UBXSBASScanModePRN143
  2061. * \var UBXSBASScanModePRN144
  2062. * \var UBXSBASScanModePRN145
  2063. * \var UBXSBASScanModePRN146
  2064. * \var UBXSBASScanModePRN147
  2065. * \var UBXSBASScanModePRN148
  2066. * \var UBXSBASScanModePRN149
  2067. * \var UBXSBASScanModePRN150
  2068. * \var UBXSBASScanModePRN151
  2069. */
  2070. /*!
  2071. * \enum UBXUSBFlags
  2072. * \brief UBXUSBFlags
  2073. *
  2074. * \var USBFlagReEnum
  2075. * force re-enumeration
  2076. * \var USBFlagPowerMode
  2077. * self-powered (1), bus-powered (0)
  2078. */
  2079. /*!
  2080. * \enum UBXLOGCfg
  2081. * \brief UBXLOGCfg
  2082. * \var UBXLOGCfgCircular
  2083. * Log is circular (new entries overwrite old ones in a full log) if this bit set
  2084. */
  2085. /*!
  2086. * \enum UBXLOGSize
  2087. * \brief UBXLOGSize
  2088. *
  2089. * \var UBXLOGMaximumSafeSize
  2090. * Maximum safe size\n
  2091. * \note Ensures that logging will not be interupted and enough space
  2092. * will be left avaiable for all other uses of the filestore
  2093. * \var UBXLOGMinimunSize
  2094. * Minimun size
  2095. * \var UBXLOGUserDefined
  2096. * User defined\n
  2097. * \note See UBXLOG_CREATE::userDefinedSize
  2098. */
  2099. /*!
  2100. * \enum UBXLOGStatus
  2101. * \brief UBXLOGStatus
  2102. *
  2103. * \var UBXLOGStatusRecording
  2104. * Log entry recording is currently turned on
  2105. * \var UBXLOGStatusInactive
  2106. * Logging system not active - no log present
  2107. * \var UBXLOGStatusCircular
  2108. * The current log is circular
  2109. */
  2110. /*!
  2111. * \enum UBXRETRIEVEPOSFixType
  2112. * \brief UBXRETRIEVEPOSFixType
  2113. *
  2114. * \var UBXRETRIEVEPOS2DFix
  2115. * 2D-Fix
  2116. * \var UBXRETRIEVEPOS3DFix
  2117. * 3D-Fix
  2118. */
  2119. /*!
  2120. * \enum UBXRXRFlags
  2121. * \brief UBXRXRFlags
  2122. *
  2123. * \var UBXRXRAwake
  2124. * not in Backup mode
  2125. */
  2126. /*!
  2127. * \enum UBXAOPStatus
  2128. * \brief UBXAOPStatus
  2129. *
  2130. * \var UBXAOPStatusIdle
  2131. * AOP idle
  2132. * \var UBXAOPStatusRunning
  2133. * AOP running
  2134. */
  2135. /*!
  2136. * \enum UBXAOPCfg
  2137. * \brief UBXAOPCfg
  2138. *
  2139. * \var UBXAOPCfgUseAOP
  2140. * AOP enabled flag
  2141. */
  2142. /*!
  2143. * \enum UBXGPSFix
  2144. * \brief UBXGPSFix
  2145. *
  2146. * \var UBXGPSNoFix
  2147. * No Fix
  2148. * \var UBXGPSDeadReckoning
  2149. * Dead Reckoning only
  2150. * \var UBXGPS2DFix
  2151. * 2D-Fix
  2152. * \var UBXGPS3DFix
  2153. * 3D-Fix
  2154. * \var UBXGPSGNSSDeadReckoning
  2155. * GNSS + dead reckoning combined
  2156. * \var UBXGPSTimeOnlyFix
  2157. * Time only fix
  2158. */
  2159. /*!
  2160. * \enum UBXPVTValid
  2161. * \brief UBXPVTValid
  2162. *
  2163. * \var UBXPVTValidDate
  2164. * Valid UTC Date
  2165. * \var UBXPVTValidTime
  2166. * Valid UTC Time of Day
  2167. * \var UBXPVTFullyResolved
  2168. * UTC Time of Day has been fully resolved (no seconds uncertainty)
  2169. */
  2170. /*!
  2171. * \enum UBXPVTPSMStates
  2172. * \brief UBXPVTPSMStates
  2173. *
  2174. * \var UBXPVTPSMStateNA
  2175. * n/a (i.e no PSM is active)
  2176. * \var UBXPVTPSMStateEnabled
  2177. * Enabled (an intermediate state before Acquisition state)
  2178. * \var UBXPVTPSMStateAcquisition
  2179. * Acquisition
  2180. * \var UBXPVTPSMStateTracking
  2181. * Tracking
  2182. * \var UBXPVTPSMStatePowerOptim
  2183. * Power optimized tracking
  2184. * \var UBXPVTPSMStateInactive
  2185. * Inactive
  2186. */
  2187. /*!
  2188. * \enum UBXSBASService
  2189. * \brief UBXSBASService
  2190. *
  2191. * \var UBXSBASServiceRanging
  2192. * Service ranging
  2193. * \var UBXSBASServiceCorrections
  2194. * Service corrections
  2195. * \var UBXSBASServiceIntegrity
  2196. * Service integrity
  2197. * \var UBXSBASServiceTestmode
  2198. * Service in testmode
  2199. */
  2200. /*!
  2201. * \enum UBXSBASSOLFlags
  2202. * \brief UBXSBASSOLFlags
  2203. *
  2204. {
  2205. * \var UBXSBASSOLGPSfixOK
  2206. * Fix within limits. Position and velocity valid and within DOP and ACC Masks.
  2207. * \var UBXSBASSOLDiffSoln
  2208. * DGPS used
  2209. * \var UBXSBASSOLWKNSet
  2210. * Valid GPS week number
  2211. * \var UBXSBASSOLTOWSet
  2212. * Valid GPS time of week (iTOW & fTOW)
  2213. */
  2214. /*!
  2215. * \enum UBXSVINFOChipGen
  2216. * \brief UBXSVINFOChipGen
  2217. *
  2218. * \var UBXSVINFOAntarisChip
  2219. * Antaris, Antaris 4
  2220. * \var UBXSVINFOUBlox5Chip
  2221. * u-blox© 5
  2222. * \var UBXSVINFOUBlox6Chip
  2223. * u-blox© 6
  2224. */
  2225. /*!
  2226. * \enum UBXSVINFOFlags
  2227. * \brief UBXSVINFOFlags
  2228. *
  2229. {
  2230. * \var UBXSVINFOFlagsSVUsed
  2231. * SV is used for navigation
  2232. * \var UBXSVINFOFlagsDiffCorr
  2233. * Differential correction data is available for this SV
  2234. * \var UBXSVINFOFlagsOrbitAvail
  2235. * Orbit information is available for this SV (Ephemeris or Almanac)
  2236. * \var UBXSVINFOFlagsOrbitEph
  2237. * Orbit information is Ephemeris
  2238. * \var UBXSVINFOFlagsUnhealthy
  2239. * SV is unhealthy / shall not be used
  2240. * \var UBXSVINFOFlagsOrbitAlm
  2241. * Orbit information is Almanac Plus
  2242. * \var UBXSVINFOFlagsOrbitAop
  2243. * Orbit information is AssistNow Autonomous
  2244. * \var UBXSVINFOFlagsSmoothed
  2245. * Carrier smoothed pseudorange used
  2246. */
  2247. /*!
  2248. * \enum UBXSVINFOQualityId
  2249. * \brief UBXSVINFOQualityId
  2250. *
  2251. * \var UBXSVINFOQualityChannelIdle
  2252. * This channel is idle
  2253. * \var UBXSVINFOQualityChannelSearching
  2254. * Channel is searching
  2255. * \var UBXSVINFOQualitySignalAquired
  2256. * Signal aquired
  2257. * \var UBXSVINFOQualitySignalDetected
  2258. * Signal detected but unusable
  2259. * \var UBXSVINFOQualityCodeLockOnSignal
  2260. * Code Lock on Signal
  2261. * \var UBXSVINFOQualityCodeCarrierLocked
  2262. * Code and Carrier locked
  2263. */
  2264. /*!
  2265. * \enum UBXTIMEGPSValidityFlags
  2266. * \brief UBXTIMEGPSValidityFlags
  2267. *
  2268. * \var UBXTIMEGPSTowValid
  2269. * Valid GPS time of week (iTOW & fTOW)
  2270. * \var UBXTIMEGPSWeekValid
  2271. * Valid GPS week number
  2272. * \var UBXTIMEGPSLeapSValid
  2273. * Valid GPS leap seconds
  2274. */
  2275. /*!
  2276. * \enum UBXTIMEUTCValidityFlags
  2277. * \brief UBXTIMEUTCValidityFlags
  2278. *
  2279. * \var UBXTIMEUTCValidTOW
  2280. * Valid Time of Week
  2281. * \var UBXTIMEUTCValidWKN
  2282. * Valid Week Number
  2283. * \var UBXTIMEUTCValidUTC
  2284. * Valid UTC Time
  2285. */
  2286. /*!
  2287. * \enum UBXPMREQFlags
  2288. * \brief UBXPMREQFlags
  2289. *
  2290. * \var UBXPMREQBackup
  2291. * The receiver goes into backup mode for a time period defined by duration
  2292. */
  2293. /*!
  2294. * \enum UBXTM2FlagsMode
  2295. * \brief UBXTM2FlagsMode
  2296. *
  2297. * \var UBXTM2FlagsModeSingle
  2298. * Single mode
  2299. * \var UBXTM2FlagsModeRunning
  2300. * Running mode
  2301. */
  2302. /*!
  2303. * \enum UBXTM2FlagsRun
  2304. * \brief UBXTM2FlagsRun
  2305. *
  2306. * \var UBXTM2FlagsRunArmed
  2307. * Armed
  2308. * \var UBXTM2FlagsRunStopped
  2309. * Stopped
  2310. */
  2311. /*!
  2312. * \enum UBXTM2FlagsTimeBase
  2313. * \brief UBXTM2FlagsTimeBase
  2314. *
  2315. * \var UBXTM2FlagsTimeBaseReceiverTime
  2316. * Time base is Receiver Time
  2317. * \var UBXTM2FlagsTimeBaseGPS
  2318. * Time base is GPS
  2319. * \var UBXTM2FlagsTimeBaseUTC
  2320. * Time base is UTC
  2321. */
  2322. /*!
  2323. * \enum UBXTM2FlagsUTC
  2324. * \brief UBXTM2FlagsUTC
  2325. *
  2326. * \var UBXTM2FlagsUTCNotAvailable
  2327. * UTC not available
  2328. * \var UBXTM2FlagsUTCAvailable
  2329. * UTC available
  2330. */
  2331. /*!
  2332. * \enum UBXTM2FlagsTime
  2333. * \brief UBXTM2FlagsTime
  2334. *
  2335. * \var UBXTM2FlagsTimeInvalid
  2336. * Time is not valid
  2337. * \var UBXTM2FlagsTimeValid
  2338. * Time is valid (Valid GPS fix)
  2339. */
  2340. /*!
  2341. * \enum UBXTPFlags
  2342. * \brief UBXTPFlags
  2343. *
  2344. * \var UBXTPTimeBaseUTC
  2345. * If is set time base is UTC. If not set time base is GPS
  2346. * \var UBXTPUTCAvailable
  2347. * UTC available
  2348. */
  2349. /*!
  2350. * \enum UBXVRFYFlagsSource
  2351. * \brief UBXVRFYFlagsSource
  2352. *
  2353. * \var UBXVRFYNoTimeAidingDone
  2354. * No time aiding done
  2355. * \var UBXVRFYSourceRTC
  2356. * Source was RTC
  2357. * \var UBXVRFYSourceAID_INI
  2358. * Source was AID-INI
  2359. */
  2360. /*! @} */
  2361. /*! \struct UBXHdr
  2362. * \brief This structure is UBX message header
  2363. * \var UBXHdr::msgClass
  2364. * Message class. A class is a grouping of messages which are related to each other.
  2365. * See #UBXMessageClass
  2366. * \var UBXHdr::msgId
  2367. * Message identificator. See #UBXMessageId
  2368. * \var UBXHdr::length
  2369. * Length is defined as being the length of the payload, only. It does not include
  2370. * Sync Chars, Length Field, Class, ID or CRC fields. The number format of the
  2371. * length field is an unsigned 16-Bit integer in Little Endian Format.
  2372. */
  2373. /*! \struct UBXMsg
  2374. * \brief This structure is base for every message in
  2375. * UBX protocol
  2376. * \var UBXMsg::preamble
  2377. * preable of UBX message is allways 0xB562
  2378. * \var UBXMsg::hdr
  2379. * UBX message header of #UBXHdr type.
  2380. * \var UBXMsg::payload
  2381. * Union of #UBXMsgs type that contains all possible payloads
  2382. * for current protocol version
  2383. */
  2384. /*! \struct UBXMsgBuffer
  2385. * \brief This structure is used by every message getters
  2386. * to wrap returned message data.
  2387. * \var UBXMsgBuffer::size
  2388. * size of buffer
  2389. * \var UBXMsgBuffer::data
  2390. * pointer to data heap
  2391. */
  2392. /*! \union UBXMsgs
  2393. * \brief This union contains all possible payloads
  2394. * in current protocol version
  2395. */
  2396. /*! \struct UBXAlpFileInfo
  2397. * \brief This structure contains data of alpfile
  2398. * It's simple wrapper on byte array with file id
  2399. * specification
  2400. * \var UBXAlpFileInfo::fileId
  2401. * File id used to indetificate part appurtenance
  2402. * \var UBXMsg::alpData
  2403. * Part of file data
  2404. * \var UBXMsg::dataSize
  2405. * Size of part in bytes
  2406. */
  2407. /*!
  2408. * \struct UBXAID_ALPSRV
  2409. * This message is sent by the ALP client to the ALP server in order to request data. The given
  2410. * identifier must be prepended to the requested data when submitting the data.
  2411. * \brief ALP client requests AlmanacPlus data from server
  2412. * \var UBXAID_ALPSRV::idSize
  2413. * Identifier size. This data, beginning at message start, must prepend the returned data.
  2414. * \var UBXAID_ALPSRV::type
  2415. * Requested data type. Must be different from 0xff, otherwise this is not a data request.
  2416. * \var UBXAID_ALPSRV::offset
  2417. * Requested data offset [16bit words]
  2418. * \var UBXAID_ALPSRV::size
  2419. * Requested data size [16bit words]
  2420. * \var UBXAID_ALPSRV::fileId
  2421. * Unused when requesting data, filled in when sending back the data
  2422. * \var UBXAID_ALPSRV::dataSize
  2423. * Actual data size. Unused when requesting data, filled in when sending back the data.
  2424. * \var UBXAID_ALPSRV::id1
  2425. * Identifier data
  2426. * \var UBXAID_ALPSRV::id2
  2427. * Identifier data
  2428. * \var UBXAID_ALPSRV::id3
  2429. * Identifier data
  2430. */
  2431. /*!
  2432. * \struct UBXACK_ACK
  2433. * Output upon processing of an input message
  2434. * \brief Message acknowledged
  2435. * \var UBXACK_ACK::msgClass
  2436. * Class ID of the Acknowledged Message
  2437. * \see #UBXMessageClass to fill this field
  2438. * \var UBXACK_ACK::msgId
  2439. * Message ID of the Acknowledged Message
  2440. * \see #UBXMessageId to fill this field
  2441. */
  2442. /*!
  2443. * \struct UBXACK_NACK
  2444. * Output upon processing of an input message
  2445. * \brief Message Not-Acknowledged
  2446. * \var UBXACK_NACK::msgClass
  2447. * Class ID of the Acknowledged Message
  2448. * \see #UBXMessageClass to fill this field
  2449. * \var UBXACK_NACK::msgId
  2450. * Message ID of the Acknowledged Message
  2451. * \see #UBXMessageId to fill this field
  2452. */
  2453. /*!
  2454. * \struct UBXAID_ALM_POLL
  2455. * Poll GPS Aiding Data (Almanac) for all 32 SVs by sending this message to the receiver
  2456. * without any payload. The receiver will return 32 messages of type AID-ALM as defined
  2457. * below.
  2458. * \note No payload
  2459. * \brief Poll GPS Aiding Almanac Data
  2460. */
  2461. /*!
  2462. * \struct UBXAID_ALM_POLL_OPT
  2463. * Poll GPS Aiding Data (Almanac) for an SV by sending this message to the receiver. The
  2464. * receiver will return one message of type AID-ALM as defined below.
  2465. * \brief Poll GPS Aiding Almanac Data for a SV
  2466. *
  2467. * \var UBXAID_ALM_POLL_OPT::svid
  2468. * SV ID for which the receiver shall return its
  2469. * Almanac Data (Valid Range: 1 .. 32 or 51, 56,
  2470. * 63).
  2471. */
  2472. /*!
  2473. * \struct UBXAID_ALM
  2474. * - If the WEEK Value is 0, DWRD0 to DWRD7 are not sent as the Almanac is not available
  2475. * for the given SV. This may happen even if NAV-SVINFO and RXM-SVSI are indicating
  2476. * almanac availability as the internal data may not represent the content of an original
  2477. * broadcast almanac (or only parts thereof).
  2478. * - DWORD0 to DWORD7 contain the 8 words following the Hand-Over Word ( HOW )
  2479. * from the GPS navigation message, either pages 1 to 24 of sub-frame 5 or pages 2 to 10
  2480. * of subframe 4. See IS-GPS-200 for a full description of the contents of the Almanac
  2481. * pages.
  2482. * - In DWORD0 to DWORD7, the parity bits have been removed, and the 24 bits of data are
  2483. * located in Bits 0 to 23. Bits 24 to 31 shall be ignored.
  2484. * - Example: Parameter e (Eccentricity) from Almanac Subframe 4/5, Word 3, Bits 69-84
  2485. * within the subframe can be found in DWRD0, Bits 15-0 whereas Bit 0 is the LSB.
  2486. * \brief GPS Aiding Almanac Input/Output Message
  2487. *
  2488. * \var UBXAID_ALM::svid
  2489. * SV ID for which this
  2490. * Almanac Data is (Valid Range: 1 .. 32 or 51, 56,
  2491. * 63).
  2492. * \var UBXAID_ALM::week
  2493. * Issue Date of Almanac (GPS week number)
  2494. */
  2495. /*!
  2496. * \struct UBXAID_ALM_OPT
  2497. * - If the WEEK Value is 0, DWRD0 to DWRD7 are not sent as the Almanac is not available
  2498. * for the given SV. This may happen even if NAV-SVINFO and RXM-SVSI are indicating
  2499. * almanac availability as the internal data may not represent the content of an original
  2500. * broadcast almanac (or only parts thereof).
  2501. * - DWORD0 to DWORD7 contain the 8 words following the Hand-Over Word ( HOW )
  2502. * from the GPS navigation message, either pages 1 to 24 of sub-frame 5 or pages 2 to 10
  2503. * of subframe 4. See IS-GPS-200 for a full description of the contents of the Almanac
  2504. * pages.
  2505. * - In DWORD0 to DWORD7, the parity bits have been removed, and the 24 bits of data are
  2506. * located in Bits 0 to 23. Bits 24 to 31 shall be ignored.
  2507. * - Example: Parameter e (Eccentricity) from Almanac Subframe 4/5, Word 3, Bits 69-84
  2508. * within the subframe can be found in DWRD0, Bits 15-0 whereas Bit 0 is the LSB.
  2509. * \brief GPS Aiding Almanac Input/Output Message
  2510. *
  2511. * \var UBXAID_ALM_OPT::svid
  2512. * SV ID for which this
  2513. * Almanac Data is (Valid Range: 1 .. 32 or 51, 56,
  2514. * 63).
  2515. * \var UBXAID_ALM_OPT::week
  2516. * Issue Date of Almanac (GPS week number)
  2517. * \var UBXAID_ALM_OPT::dwrd[8]
  2518. * Almanac Words
  2519. */
  2520. /*!
  2521. * \struct UBXAID_ALP
  2522. * This message is used to transfer a chunk of data from the AlmanacPlus file to the receiver.
  2523. * Upon reception of this message, the receiver will write the payload data to its internal
  2524. * non-volatile memory, eventually also erasing that part of the memory first. Make sure that
  2525. * the payload size is even sized (i.e. always a multiple of 2). Do not use payloads larger than
  2526. * ~ 700 bytes, as this would exceed the receiver's internal buffering capabilities. The receiver
  2527. * will (not-) acknowledge this message using the message alternatives given below. The host
  2528. * shall wait for an acknowledge message before sending the next chunk.
  2529. * \note This structure contains variable payload:\n
  2530. * UBXU2_t alpData ALP file data
  2531. * \brief ALP file data transfer to the receiver
  2532. */
  2533. /*!
  2534. * \struct UBXAID_ALP_END
  2535. * This message is used to indicate that all chunks have been transferred, and normal receiver
  2536. * operation can resume. Upon reception of this message, the receiver will verify all chunks
  2537. * received so far, and enable AssistNow Offline and GPS receiver operation if successful. This
  2538. * message could also be sent to cancel an incomplete download.
  2539. * \brief Mark end of data transfer
  2540. * \var UBXAID_ALP_END::dummy
  2541. * - Value is ignored if it's end of data transfer
  2542. * - If value is set to 0x01 message acknowledges a data transfer
  2543. * - If value is set to 0x00 message indicates problems with a data transfer
  2544. */
  2545. /*!
  2546. * \struct UBXAID_ALP_POLL
  2547. * \brief Poll the AlmanacPlus status
  2548. *
  2549. * \var UBXAID_ALP_POLL::predTow
  2550. * Prediction start time of week
  2551. * \var UBXAID_ALP_POLL::predDur
  2552. * Prediction duration from start of first data set to
  2553. * end of last data set
  2554. * \var UBXAID_ALP_POLL::age
  2555. * Current age of ALP data
  2556. * \var UBXAID_ALP_POLL::predWno
  2557. * Prediction start week number
  2558. * \var UBXAID_ALP_POLL::almWno
  2559. * Truncated week number of reference almanac
  2560. * \var UBXAID_ALP_POLL::reserved1
  2561. * Reserved
  2562. * \var UBXAID_ALP_POLL::svs
  2563. * Number of satellite data sets contained in the
  2564. * ALP UBXAID_ALP_POLL::data
  2565. * \var UBXAID_ALP_POLL::reserved2
  2566. * Reserved
  2567. * \var UBXAID_ALP_POLL::reserved3
  2568. * Reserved
  2569. */
  2570. /*!
  2571. * \struct UBXAID_AOP_POLL
  2572. * Poll AssistNow Autonomous aiding data for all satellits by sending this empty message. The
  2573. * receiver will return an AID-AOP message (see definition below) for each satellite for which
  2574. * data is available. For satellites for which no data is available it will return a corresponding
  2575. * AID-AOP poll request message.
  2576. * \note No payload
  2577. * \brief Poll AssistNow Autonomous data
  2578. */
  2579. /*!
  2580. * \struct UBXAID_AOP_POLL_OPT
  2581. * Poll the AssistNow Autonomous data for the specified satellite. The receiver will return a
  2582. * AID-AOP message (see definition below) if data is available for the requested satellite. If no
  2583. * data is available it will return corresponding AID-AOP poll request message (i.e. this
  2584. * message).
  2585. * \brief Poll AssistNow Autonomous data for one satellite
  2586. * \var UBXAID_AOP_POLL_OPT::svid
  2587. * GPS SV id for which the data is requested
  2588. * \note Range: 1..32
  2589. */
  2590. /*!
  2591. * \struct UBXAID_AOP
  2592. * If enabled, this message is output at irregular intervals. It is output whenever AssistNow
  2593. * Autonomous has produced new data for a satellite. Depending on the availability of the
  2594. * optional data the receiver will output either version of the message. If this message is
  2595. * polled using one of the two poll requests described above the receiver will send this
  2596. * message if AOP data is available or the corresponding poll request message if no AOP data
  2597. * is available for each satellite (i.e. svid 1..32). At the user's choice the optional data may be
  2598. * chopped from the payload of a previously polled message when sending the message back
  2599. * to the receiver. Sending a valid AID-AOP message to the receiver will automatically enable
  2600. * the AssistNow Autonomous feature on the receiver. See the section AssistNow
  2601. * Autonomous in the receiver description for details on this feature.
  2602. * \brief AssistNow Autonomous data
  2603. * \var UBXAID_AOP::svid
  2604. * GPS SV id
  2605. * \var UBXAID_AOP::data[59]
  2606. * AssistNow Autonomous data
  2607. */
  2608. /*!
  2609. * \struct UBXAID_AOP_OPT
  2610. * If enabled, this message is output at irregular intervals. It is output whenever AssistNow
  2611. * Autonomous has produced new data for a satellite. Depending on the availability of the
  2612. * optional data the receiver will output either version of the message. If this message is
  2613. * polled using one of the two poll requests described above the receiver will send this
  2614. * message if AOP data is available or the corresponding poll request message if no AOP data
  2615. * is available for each satellite (i.e. svid 1..32). At the user's choice the optional data may be
  2616. * chopped from the payload of a previously polled message when sending the message back
  2617. * to the receiver. Sending a valid AID-AOP message to the receiver will automatically enable
  2618. * the AssistNow Autonomous feature on the receiver. See the section AssistNow
  2619. * Autonomous in the receiver description for details on this feature.
  2620. * \brief AssistNow Autonomous data
  2621. * \var UBXAID_AOP_OPT::svid
  2622. * GPS SV id
  2623. * \var UBXAID_AOP_OPT::data[59]
  2624. * AssistNow Autonomous data
  2625. * \var UBXAID_AOP_OPT::optional0[48]
  2626. * Optional data chunk 1/3
  2627. * \var UBXAID_AOP_OPT::optional1[48]
  2628. * Optional data chunk 2/3
  2629. * \var UBXAID_AOP_OPT::optional2[48]
  2630. * Optional data chunk 3/3
  2631. */
  2632. /*!
  2633. * \struct UBXAID_DATA_POLL
  2634. * If this poll is received, the messages AID-INI, AID-HUI, AID-EPH and AID-ALM are sent.
  2635. * \note No payload
  2636. * \brief Polls all GPS Initial Aiding Data
  2637. */
  2638. /*!
  2639. * \struct UBXAID_EPH_POLL
  2640. * This message has an empty payload!
  2641. * Poll GPS Aiding Data (Ephemeris) for all 32 SVs by sending this message to the receivewithout any payload.
  2642. * The receiver will return 32 messages of type #UBXAID_EPH
  2643. * \note No payload
  2644. * \brief Poll GPS Aiding Ephemeris Data
  2645. *
  2646. */
  2647. /*!
  2648. * \struct UBXAID_EPH_POLL_OPT
  2649. * Poll GPS Constellation Data (Ephemeris) for an SV by sending this message to the receiver.
  2650. * The receiver will return 32 messages of type #UBXAID_EPH
  2651. * \brief Poll GPS Aiding Ephemeris Data for a SV
  2652. *
  2653. * \var UBXAID_EPH_POLL_OPT::svid
  2654. * SV ID for which the receiver shall return its
  2655. * Ephemeris Data (Valid Range: 1 .. 32).
  2656. */
  2657. /*!
  2658. * \struct UBXAID_EPH
  2659. * - SF1D0 to SF3D7 is only sent if ephemeris is available for this SV. If not, the payload may
  2660. * be reduced to 8 Bytes, or all bytes are set to zero, indicating that this SV Number does
  2661. * not have valid ephemeris for the moment. This may happen even if NAV-SVINFO and
  2662. * RXM-SVSI are indicating ephemeris availability as the internal data may not represent the
  2663. * content of an original broadcast ephemeris (or only parts thereof).
  2664. * - SF1D0 to SF3D7 contain the 24 words following the Hand-Over Word ( HOW ) from the
  2665. * GPS navigation message, subframes 1 to 3. The Truncated TOW Count is not valid and
  2666. * cannot be used. See IS-GPS-200 for a full description of the contents of the Subframes.
  2667. * - In SF1D0 to SF3D7, the parity bits have been removed, and the 24 bits of data are
  2668. * located in Bits 0 to 23. Bits 24 to 31 shall be ignored.
  2669. * - When polled, the data contained in this message does not represent the full original
  2670. * ephemeris broadcast. Some fields that are irrelevant to u-blox© receivers may be missing.
  2671. * The week number in Subframe 1 has already been modified to match the Time Of
  2672. * Ephemeris (TOE).
  2673. * \brief GPS Aiding Ephemeris Input/Output Message
  2674. * \var UBXAID_EPH::svid
  2675. * SV ID for which this ephemeris data is
  2676. * \note Range: 1..32
  2677. * \var UBXAID_EPH::how
  2678. * Hand-Over Word of first Subframe. This is
  2679. * required if data is sent to the receiver.
  2680. * 0 indicates that no Ephemeris Data is following.
  2681. */
  2682. /*!
  2683. * \struct UBXAID_EPH_OPT
  2684. * - SF1D0 to SF3D7 is only sent if ephemeris is available for this SV. If not, the payload may
  2685. * be reduced to 8 Bytes, or all bytes are set to zero, indicating that this SV Number does
  2686. * not have valid ephemeris for the moment. This may happen even if NAV-SVINFO and
  2687. * RXM-SVSI are indicating ephemeris availability as the internal data may not represent the
  2688. * content of an original broadcast ephemeris (or only parts thereof).
  2689. * - SF1D0 to SF3D7 contain the 24 words following the Hand-Over Word ( HOW ) from the
  2690. * GPS navigation message, subframes 1 to 3. The Truncated TOW Count is not valid and
  2691. * cannot be used. See IS-GPS-200 for a full description of the contents of the Subframes.
  2692. * - In SF1D0 to SF3D7, the parity bits have been removed, and the 24 bits of data are
  2693. * located in Bits 0 to 23. Bits 24 to 31 shall be ignored.
  2694. * - When polled, the data contained in this message does not represent the full original
  2695. * ephemeris broadcast. Some fields that are irrelevant to u-blox© receivers may be missing.
  2696. * The week number in Subframe 1 has already been modified to match the Time Of
  2697. * Ephemeris (TOE).
  2698. * \brief GPS Aiding Ephemeris Input/Output Message
  2699. * \var UBXAID_EPH_OPT::svid
  2700. * SV ID for which this ephemeris data is
  2701. * \note Range: 1..32
  2702. * \var UBXAID_EPH_OPT::how
  2703. * Hand-Over Word of first Subframe. This is
  2704. * required if data is sent to the receiver.
  2705. * 0 indicates that no Ephemeris Data is following.
  2706. * \var UBXAID_EPH_OPT::sf1d[8]
  2707. * Subframe 1 Words 3..10 (SF1D0..SF1D7)
  2708. * \var UBXAID_EPH_OPT::sf2d[8]
  2709. * Subframe 2 Words 3..10 (SF1D0..SF1D7)
  2710. * \var UBXAID_EPH_OPT::sf3d[8]
  2711. * Subframe 3 Words 3..10 (SF1D0..SF1D7)
  2712. */
  2713. /*!
  2714. * \struct UBXAID_HUI_POLL
  2715. * \note No payload
  2716. * \brief Poll GPS Health, UTC and ionosphere parameters
  2717. */
  2718. /*!
  2719. * \struct UBXAID_HUI
  2720. * This message contains a health bit mask, UTC time and Klobuchar parameters. For more
  2721. * information on these parameters, please see the ICD-GPS-200 documentation.
  2722. * \brief GPS Health, UTC and ionosphere parameters
  2723. * \var UBXAID_HUI::health
  2724. * Bitmask, every bit represenst a GPS SV (1-32). If
  2725. * the bit is set the SV is healthy.
  2726. * \var UBXAID_HUI::utcA0
  2727. * UTC - parameter A0
  2728. * \var UBXAID_HUI::utcA1
  2729. * UTC - parameter A1
  2730. * \var UBXAID_HUI::utcTOW
  2731. * UTC - reference time of week
  2732. * \var UBXAID_HUI::utcWNT
  2733. * UTC - reference week number
  2734. * \var UBXAID_HUI::utcLS
  2735. * UTC - time difference due to leap seconds before event
  2736. * \var UBXAID_HUI::utcWNF
  2737. * UTC - week number when next leap second event occurs
  2738. * \var UBXAID_HUI::utcDN
  2739. * UTC - day of week when next leap second event occurs
  2740. * \var UBXAID_HUI::utcLSF
  2741. * UTC - time difference due to leap seconds after event
  2742. * \var UBXAID_HUI::utcSpare
  2743. * UTC - Spare to ensure structure is a multiple of 4 bytes
  2744. * \var UBXAID_HUI::klobA0
  2745. * Klobuchar - alpha 0
  2746. * \var UBXAID_HUI::klobA1
  2747. * Klobuchar - alpha 1
  2748. * \var UBXAID_HUI::klobA2
  2749. * Klobuchar - alpha 2
  2750. * \var UBXAID_HUI::klobA3
  2751. * Klobuchar - alpha 3
  2752. * \var UBXAID_HUI::klobB0
  2753. * Klobuchar - beta 0
  2754. * \var UBXAID_HUI::klobB1
  2755. * Klobuchar - beta 1
  2756. * \var UBXAID_HUI::klobB2
  2757. * Klobuchar - beta 2
  2758. * \var UBXAID_HUI::klobB3
  2759. * Klobuchar - beta 3
  2760. * \var UBXAID_HUI::flags
  2761. * Flags.
  2762. * \see #UBXHUIFlags to fill this field
  2763. */
  2764. /*!
  2765. * \struct UBXAID_INI_POLL
  2766. * \note No payload
  2767. * \brief Poll GPS Initial Aiding Data
  2768. */
  2769. /*!
  2770. * \struct UBXAID_INI
  2771. * This message contains position, time and clock drift information. The position can be input
  2772. * in either the ECEF X/Y/Z coordinate system or as lat/lon/height. The time can either be input
  2773. * as inexact value via the standard communication interface, suffering from latency
  2774. * depending on the baudrate, or using harware time synchronization where an accuracte
  2775. * time pulse is input on the external interrupts. It is also possible to supply hardware
  2776. * frequency aiding by connecting a continuous signal to an external interrupt.
  2777. * \brief Aiding position, time, frequency, clock drift
  2778. *
  2779. * \var UBXAID_INI::ecefXOrLat
  2780. * WGS84 ECEF X coordinate or latitude, depending on UBXAID_INI::flags
  2781. * \var UBXAID_INI::ecefYOrLat
  2782. * WGS84 ECEF Y coordinate or longitude, depending on UBXAID_INI::flags
  2783. * \var UBXAID_INI::ecefZOrLat
  2784. * WGS84 ECEF Z coordinate or altitude, depending on UBXAID_INI::flags
  2785. * \var UBXAID_INI::posAcc
  2786. * Position accuracy
  2787. * \var UBXAID_INI::tmCfg
  2788. * Time mark configuration
  2789. * \see #UBXINItmCfg to fill this field
  2790. * \var UBXAID_INI::wnoOrDate
  2791. * Actual week number or yearSince2000/Month (YYMM), depending on UBXAID_INI::flags
  2792. * \var UBXAID_INI::towOrDate
  2793. * Actual time of week or
  2794. * DayOfMonth/Hour/Minute/Second
  2795. * (DDHHMMSS), depending on UBXAID_INI::flags
  2796. * \var UBXAID_INI::towNs
  2797. * Fractional part of time of week
  2798. * \var UBXAID_INI::tAccMS
  2799. * Milliseconds part of time accuracy
  2800. * \var UBXAID_INI::tAccNS
  2801. * Nanoseconds part of time accuracy
  2802. * \var UBXAID_INI::clkDOrFreq
  2803. * Clock drift or frequency, depending on UBXAID_INI::flags
  2804. * \var UBXAID_INI::clkDAccOrFreqAcc
  2805. * Accuracy of clock drift or frequency, depending on UBXAID_INI::flags
  2806. * \var UBXAID_INI::flags
  2807. * Bitmask with the flags
  2808. * \see #UBXINIFlags to fill this field
  2809. */
  2810. /*!
  2811. * \struct UBXAID_REQ
  2812. * AID-REQ is not a message but a placeholder for configuration purposes.
  2813. * If the virtual AID-REQ is configured to be output (see CFG-MSG), the receiver will output a
  2814. * request for aiding data (AID-DATA) after a start-up if its internally stored data (position,
  2815. * time) don't allow it to perform a hot start. If position and time information could be
  2816. * retrieved from internal storage, no AID-REQ will be sent, even when the receiver is missing
  2817. * valid ephemeris data. Only GPS orbits are supported for GNSS.
  2818. * \note No payload
  2819. * \brief Sends a poll UXBAID_DATA for all GPS Aiding Data
  2820. */
  2821. /*!
  2822. * \struct UBXCFG_ANT_POLL
  2823. * Sending this (empty / no-payload) message to the receiver results in the receiver returning a
  2824. * message of type #UBXCFG_ANT
  2825. * \note No payload
  2826. * \brief Poll Antenna Control Settings
  2827. */
  2828. /*!
  2829. * \struct UBXANTPins
  2830. * It describes antenna pin configuration
  2831. * \brief This sturcture is a part of #UBXCFG_ANT message
  2832. * \var UBXANTPins::UBXANTpinSwitch
  2833. * PIO-Pin used for switching antenna supply (internal to TIM-LP/TIM-LF)
  2834. * \var UBXANTPins::UBXANTpinSCD
  2835. * PIO-Pin used for detecting a short in the antenna supply
  2836. * \var UBXANTPins::UBXANTpinOCD
  2837. * PIO-Pin used for detecting open/not connected antenna
  2838. * \var UBXANTPins::UBXANTreconfig
  2839. * If set to one, and this command is sent to the receiver, the receiver will reconfigure the pins as specified
  2840. */
  2841. /*!
  2842. * \struct UBXCFG_ANT
  2843. * \brief Antenna Control Settings
  2844. * \var UBXCFG_ANT::flags
  2845. * Antenna flag mask
  2846. * \see #UBXANTFlags to fill this field
  2847. * \var UBXCFG_ANT::pins
  2848. * Antenna Pin Configuration
  2849. */
  2850. /*!
  2851. * \struct UBXCFG_CFG
  2852. * See the Receiver Configuration chapter(u-blox© official documentation) for a detailed description on how Receiver
  2853. * Configuration should be used. The three masks are made up of individual bits, each bit
  2854. * indicating the sub-section of all configurations on which the corresponding action shall be
  2855. * carried out. The reserved bits in the masks must be set to '0'. For detailed information
  2856. * please refer to the Organization of the Configuration Sections (u-blox© official documentation). Please note that commands
  2857. * can be combined. The sequence of execution is Clear, Save, Load
  2858. * \brief Clear, Save and Load configurations
  2859. *
  2860. * \var UBXCFG_CFG::clearMask
  2861. * Mask with configuration sub-sections to Clear
  2862. * \note Load Default Configurations to Permanent
  2863. * Configurations in non-volatile memory
  2864. * \see #UBXCFGMask to fill this field
  2865. * \var UBXCFG_CFG::saveMask
  2866. * Mask with configuration sub-section to Save
  2867. * \note Save Current Configuration to Non-volatile
  2868. * Memory
  2869. * \see #UBXCFGMask to fill this field
  2870. * \var UBXCFG_CFG::loadMask
  2871. * Mask with configuration sub-sections to Load
  2872. * \note Load Permanent Configurations from
  2873. * Non-volatile Memory to Current
  2874. * Configurations
  2875. * \see #UBXCFGMask to fill this field
  2876. */
  2877. /*!
  2878. * \struct UBXCFG_CFG_OPT
  2879. * See the Receiver Configuration chapter(u-blox© official documentation) for a detailed description on how Receiver
  2880. * Configuration should be used. The three masks are made up of individual bits, each bit
  2881. * indicating the sub-section of all configurations on which the corresponding action shall be
  2882. * carried out. The reserved bits in the masks must be set to '0'. For detailed information
  2883. * please refer to the Organization of the Configuration Sections (u-blox© official documentation). Please note that commands
  2884. * can be combined. The sequence of execution is Clear, Save, Load
  2885. * \brief Clear, Save and Load configurations
  2886. *
  2887. * \var UBXCFG_CFG_OPT::clearMask
  2888. * Mask with configuration sub-sections to Clear
  2889. * \note Load Default Configurations to Permanent
  2890. * Configurations in non-volatile memory
  2891. * \see #UBXCFGMask to fill this field
  2892. * \var UBXCFG_CFG_OPT::saveMask
  2893. * Mask with configuration sub-section to Save
  2894. * \note Save Current Configuration to Non-volatile
  2895. * Memory
  2896. * \see #UBXCFGMask to fill this field
  2897. * \var UBXCFG_CFG_OPT::loadMask
  2898. * Mask with configuration sub-sections to Load
  2899. * \note Load Permanent Configurations from
  2900. * Non-volatile Memory to Current
  2901. * Configurations
  2902. * \see #UBXCFGMask to fill this field
  2903. * \var UBXCFG_CFG_OPT::deviceMask
  2904. * Mask which selects the devices for this
  2905. * command
  2906. * \see #UBXCFGDeviceMask to fill this field
  2907. */
  2908. /*!
  2909. * \struct UBXCFG_DAT_POLL
  2910. * Upon sending of this message, the receiver returns UBXCFG_DAT
  2911. * \note No payload
  2912. * \brief Poll Datum Setting
  2913. */
  2914. /*!
  2915. * \struct UBXCFG_DAT_IN
  2916. * \brief Set User-defined Datum
  2917. *
  2918. * \var UBXCFG_DAT_IN::majA
  2919. * Semi-major Axis
  2920. * \note accepted range = 6,300,000.0
  2921. * to 6,500,000.0 metres
  2922. * \var UBXCFG_DAT_IN::flat
  2923. * 1.0 / Flattening
  2924. * \note accepted range is 0.0 to 500.0
  2925. * \var UBXCFG_DAT_IN::dX
  2926. * X Axis shift at the origin
  2927. * \note accepted range is +/-5000.0 metres
  2928. * \var UBXCFG_DAT_IN::dY
  2929. * Y Axis shift at the origin
  2930. * \note accepted range is +/-5000.0 metres
  2931. * \var UBXCFG_DAT_IN::dZ
  2932. * Z Axis shift at the origin
  2933. * \note accepted range is +/-5000.0 metres
  2934. * \var UBXCFG_DAT_IN::rotX
  2935. * Rotation about the X Axis
  2936. * \note accepted range is +/-20.0 milli-arc seconds
  2937. * \var UBXCFG_DAT_IN::rotY
  2938. * Rotation about the Y Axis
  2939. * \note accepted range is +/-20.0 milli-arc seconds
  2940. * \var UBXCFG_DAT_IN::rotZ
  2941. * Rotation about the Z Axis
  2942. * \note accepted range is +/-20.0 milli-arc seconds
  2943. * \var UBXCFG_DAT_IN::scale
  2944. * Scale change
  2945. * \note accepted range is 0.0 to 50.0 parts per million
  2946. */
  2947. /*!
  2948. * \struct UBXCFG_DAT_OUT
  2949. * Returns the parameters of the currently defined datum. If no user-defined datum has been
  2950. * set, this will default to WGS84.
  2951. * \brief The currently defined Datum
  2952. * \var UBXCFG_DAT_OUT::datumNum
  2953. * Datum Number: 0 = WGS84, -1 = user-defined
  2954. * \var UBXCFG_DAT_OUT::datumName[6]
  2955. * ASCII String: WGS84 or USER
  2956. * \var UBXCFG_DAT_OUT::majA
  2957. * Semi-major Axis
  2958. * \note accepted range = 6,300,000.0
  2959. * to 6,500,000.0 metres
  2960. * \var UBXCFG_DAT_OUT::flat
  2961. * 1.0 / Flattening
  2962. * \note accepted range is 0.0 to 500.0
  2963. * \var UBXCFG_DAT_OUT::dX
  2964. * X Axis shift at the origin
  2965. * \note accepted range is +/-5000.0 metres
  2966. * \var UBXCFG_DAT_OUT::dY
  2967. * Y Axis shift at the origin
  2968. * \note accepted range is +/-5000.0 metres
  2969. * \var UBXCFG_DAT_OUT::dZ
  2970. * Z Axis shift at the origin
  2971. * \note accepted range is +/-5000.0 metres
  2972. * \var UBXCFG_DAT_OUT::rotX
  2973. * Rotation about the X Axis
  2974. * \note accepted range is +/-20.0 milli-arc seconds
  2975. * \var UBXCFG_DAT_OUT::rotY
  2976. * Rotation about the Y Axis
  2977. * \note accepted range is +/-20.0 milli-arc seconds
  2978. * \var UBXCFG_DAT_OUT::rotZ
  2979. * Rotation about the Z Axis
  2980. * \note accepted range is +/-20.0 milli-arc seconds
  2981. * \var UBXCFG_DAT_OUT::scale
  2982. * Scale change
  2983. * \note accepted range is 0.0 to 50.0 parts per million
  2984. */
  2985. /*!
  2986. * \struct UBXCFG_GNSS_POLL
  2987. * Polls the configuration of the GNSS system configuration\
  2988. * \note No payload
  2989. * \brief Polls the configuration of the GNSS system configuration
  2990. */
  2991. /*!
  2992. * \struct UBXCFG_GNSS
  2993. * Gets or sets the GNSS system channel sharing configuration. The receiver will send an
  2994. * #UBXACK_ACK message if the configuration is valid, an #UBXACK_NACK if any configuration
  2995. * parameter is invalid.
  2996. * The number of tracking channels in use must not exceed the number of tracking channels
  2997. * available on hardware, and the sum of all reserved tracking channels needs to be smaller or
  2998. * equal the number of tracking channels in use. Additionally, the maximum number of
  2999. * tracking channels used for the specific GNSS system must be greater or equal to the
  3000. * number of reserved tracking channels.
  3001. * See section GNSS Configuration for a discussion of the use of this message and section
  3002. * Satellite Numbering for a description of the GNSS IDs available.
  3003. * Configuration specific to the GNSS system can be done via other messages. Configuration
  3004. * specific to SBAS can be done with #UBXCFG_SBAS.
  3005. * Note that GLONASS operation cannot be selected when the receiver is configured to
  3006. * operate in Power Save Mode (using #UBXCFG_RXM).
  3007. * \note This message contains variable payload. See #UBXCFG_GNSS_PART to add variable payload.
  3008. * \brief GNSS system configuration
  3009. *
  3010. * \var UBXCFG_GNSS::msgVer
  3011. * Message version
  3012. * \var UBXCFG_GNSS::numTrkChHw
  3013. * Number of tracking channels available in
  3014. * hardware
  3015. * \note Read only
  3016. * \var UBXCFG_GNSS::numTrkChUse
  3017. * Number of tracking channels to use
  3018. * \note Should be <= UBXCFG_GNSS::numTrkChHw
  3019. * \var UBXCFG_GNSS::numConfigBlocks
  3020. * Number of configuration blocks following
  3021. */
  3022. /*!
  3023. * \struct UBXCFG_GNSS_PART
  3024. * \brief This structure is variable payload for #UBXCFG_GNSS
  3025. * \var UBXCFG_GNSS_PART::gnssId
  3026. * GNSS identifier
  3027. * \see #UBXGNSSIds to fill this field
  3028. * \var UBXCFG_GNSS_PART::resTrkCh
  3029. * Number of reserved (minimum) tracking
  3030. * channels for this GNSS system
  3031. * \var UBXCFG_GNSS_PART::maxTrkCh
  3032. * Maximum number of tracking channels used for
  3033. * this GNSS system
  3034. * \note should be >= UBXCFG_GNSS_PART::resTrkCh
  3035. * \var UBXCFG_GNSS_PART::reserved1
  3036. * Reserved
  3037. * \var UBXCFG_GNSS_PART::flags
  3038. * Bitfield of flags.\n
  3039. * The only acceptable values:\n
  3040. * - 0 - disabled
  3041. * - 1 - enabled
  3042. */
  3043. /*!
  3044. * \struct UBXCFG_INF_POLL
  3045. * \brief Poll INF message configuration for one protocol
  3046. *
  3047. * \var protocolId
  3048. * Protocol Identifier, identifying the output
  3049. * protocol for this Poll Request.
  3050. * \see #UBXCFGProtocolIds to fill this field
  3051. */
  3052. /*!
  3053. * \struct UBXCFG_INF
  3054. * The value of infMsgMask[x] below are that each bit represents one of the INF class
  3055. * messages (Bit 0 for ERROR, Bit 1 for WARNING and so on.). For a complete list, please see
  3056. * the Message Class INF(). Several configurations can be concatenated to one input
  3057. * message. In this case the payload length can be a multiple of the normal length. Output
  3058. * messages from the module contain only one configuration unit. Please note that I/O Ports 1
  3059. * and 2 correspond to serial ports 1 and 2. I/O port 0 is DDC. I/O port 3 is USB. I/O port 4 is
  3060. * SPI. I/O port 5 is reserved for future use.
  3061. * \note This message has variable payload of #UBXCFG_INF_PART type
  3062. * \brief Information message configuration
  3063. */
  3064. /*!
  3065. * \struct UBXCFG_INF_PART
  3066. * \brief The UBXCFG_INF_PART structure is variable payload for #UBXCFG_INF message
  3067. *
  3068. * \var protocolId
  3069. * Protocol Identifier, identifying for which
  3070. * protocol the configuration is set/get
  3071. * \see #UBXCFGProtocolIds to fill this field
  3072. * \var reserved0
  3073. * Reserved
  3074. * \var reserved1
  3075. * Reserved
  3076. * \var infMsgMask[6]
  3077. * A bit mask, saying which information messages
  3078. * are enabled on each I/O port
  3079. * \see #UBXCFGInfMsgMask to fill this field
  3080. */
  3081. /*!
  3082. * \struct UBXCFG_ITFM_POLL
  3083. * \note No payload
  3084. * \brief Polls the Jamming/Interference Monitor configuration.
  3085. */
  3086. /*!
  3087. * \struct UBXITFMConfig
  3088. * \brief This structure describes bitfields of UBXCFG_ITFM::config field
  3089. * \var UBXITFMConfig::bbThreshold
  3090. * Broadband jamming detection threshold
  3091. * \note unit - dB
  3092. * \var UBXITFMConfig::cwThreshold
  3093. * CW jamming detection threshold
  3094. * \note unit - dB
  3095. * \var UBXITFMConfig::reserved1
  3096. * Reserved algorithm settings
  3097. * \note should be set to 0x16B156
  3098. * \var UBXITFMConfig::enbled
  3099. * Enable interference detection
  3100. */
  3101. /*!
  3102. * \struct UBXITFMConfig2
  3103. * \brief This structure describes bitfields of UBXCFG_ITFM::config2 field
  3104. * \var UBXITFMConfig2::reserved2
  3105. * Reserved
  3106. * \note Should be 0x31E
  3107. * \var UBXITFMConfig2::antSetting
  3108. * Antenna setting
  3109. * \see #UBXITFMAntSetting to fill this field
  3110. * \var UBXITFMConfig2::reserved3
  3111. * Reserved
  3112. * \note Should be 0x00
  3113. */
  3114. /*!
  3115. * \struct UBXCFG_ITFM
  3116. * \brief Jamming/Interference Monitor configuration
  3117. *
  3118. * \var UBXCFG_ITFM::config
  3119. * Interference config word
  3120. * \see #UBXITFMConfig to fill this field
  3121. * \var UBXCFG_ITFM::config2
  3122. * Extra settings for jamming/interference monitor
  3123. * \see #UBXITFMConfig2 to fill this field
  3124. */
  3125. /*!
  3126. * \struct UBXCFG_LOGFILTER_POLL
  3127. * Upon sending of this message, the receiver returns CFG-LOGFILTER as defined below
  3128. * \note No payload
  3129. * \brief Poll Data Logger filter Configuration
  3130. */
  3131. /*!
  3132. * \struct UBXCFG_LOGFILTER
  3133. * This message is used to enable/disable logging and to get or set the position entry filter
  3134. * settings.
  3135. * Position entries can be filtered based on time difference, position difference or current
  3136. * speed thresholds. Position and speed filtering also have a minimum time interval.
  3137. * A position is logged if any of the thresholds are exceeded. If a threshold is set to zero it is
  3138. * ignored. The maximum rate of position logging is 1Hz.
  3139. * The filter settings will only be applied if the 'applyAllFilterSettings' flag is set. This enables
  3140. * recording to be enabled/disabled without affecting the other settings.
  3141. * \brief Data Logger Configuration
  3142. *
  3143. * \var UBXCFG_LOGFILTER::version
  3144. * The version of this message
  3145. * \note Set to 1
  3146. * \var UBXCFG_LOGFILTER::flags
  3147. * Flags
  3148. * \see #UBXLOGFILTERFlags to fill this field
  3149. * \var UBXCFG_LOGFILTER::minIterval
  3150. * Minimum time interval between logged
  3151. * positions
  3152. * \note This is only applied in
  3153. * combination with the speed and/or
  3154. * position thresholds
  3155. * \note 0 - not set
  3156. * \var UBXCFG_LOGFILTER::timeThreshold
  3157. * If the time difference is greater than the
  3158. * threshold then the position is logged
  3159. * \note 0 - not set
  3160. * \var UBXCFG_LOGFILTER::speedThreshold
  3161. * If the current speed is greater than the
  3162. * threshold then the position is logged
  3163. * \note 0 - not set
  3164. * \note UBXCFG_LOGFILTER::minInterval also applies
  3165. * \var UBXCFG_LOGFILTER::positionThreshold
  3166. * If the 3D position difference is greater than the
  3167. * threshold then the position is logged
  3168. * \note 0 - not set
  3169. * \note minInterval also applies
  3170. */
  3171. /*!
  3172. * \struct UBXCFG_MSG_POLL
  3173. * \brief Poll a message configuration
  3174. *
  3175. * \var UBXCFG_MSG_POLL::msgClass
  3176. * Message Class
  3177. * \see #UBXMessageClass to fill this field
  3178. * \var UBXCFG_MSG_POLL::msgId
  3179. * Message Id
  3180. * \see #UBXMessageId to fill this field
  3181. */
  3182. /*!
  3183. * \struct UBXCFG_MSG_RATES
  3184. * Set/Get message rate configurations to/from the receiver. See also section "How to change
  3185. * between protocols" (u-blox© official documentation).
  3186. * - Send rate is relative to the event a message is registered on. For example, if the rate of a
  3187. * navigation message is set to 2, the message is sent every second navigation solution. For
  3188. * configuring NMEA messages, the section "NMEA Messages Overview" (u-blox© official documentation describes Class and
  3189. * Identifier numbers used.
  3190. * \brief Set Message Rates
  3191. * \var UBXCFG_MSG_RATES::msgClass
  3192. * Message Class
  3193. * \see #UBXMessageClass to fill this field
  3194. * \var UBXCFG_MSG_RATES::msgId
  3195. * Message Id
  3196. * \see #UBXMessageId to fill this field
  3197. * \var UBXCFG_MSG_RATES::rate[6]
  3198. * Send rate on I/O Port (6 Ports)
  3199. */
  3200. /*!
  3201. * \struct UBXCFG_MSG_RATE
  3202. * Set/Get message rate configurations to/from the receiver. See also section "How to change
  3203. * between protocols" (u-blox© official documentation).
  3204. * \brief Set Message Rate
  3205. * \var UBXCFG_MSG_RATE::msgClass
  3206. * Message Class
  3207. * \see #UBXMessageClass to fill this field
  3208. * \var UBXCFG_MSG_RATE::msgId
  3209. * Message Id
  3210. * \see #UBXMessageId to fill this field
  3211. * \var UBXCFG_MSG_RATE::rate
  3212. * Send rate on current Port
  3213. */
  3214. /*!
  3215. * \struct UBXCFG_NAV5_POLL
  3216. * \note No payload
  3217. * \brief Poll Navigation Engine Settings
  3218. */
  3219. /*!
  3220. * \struct UBXCFG_NAV5
  3221. * See the Navigation "Configuration Settings Description" (u-blox© official documentation) for a detailed description of how
  3222. * these settings affect receiver operation.
  3223. * \brief Navigation Engine Settings
  3224. *
  3225. * \var mask
  3226. * Parameters Bitmask. Only the masked parameters will be applied.
  3227. * \see #UBXNAV5Mask to fill this field
  3228. * \var UBXCFG_NAV5::dynModel
  3229. * Dynamic Platform model
  3230. * \see #UBXNAV5Model to fill this field
  3231. * \var UBXCFG_NAV5::fixMode
  3232. * Position Fixing Mode
  3233. * \see #UBXNAV5FixMode to fill this field
  3234. * \var UBXCFG_NAV5::fixedAlt
  3235. * Fixed altitude (mean sea level) for 2D fix mode
  3236. * \var UBXCFG_NAV5::fixedAltVar
  3237. * Fixed altitude variance for 2D mode
  3238. * \var UBXCFG_NAV5::minElev
  3239. * Minimum Elevation for a GNSS satellite to be
  3240. * used in NAV
  3241. * \var UBXCFG_NAV5::drLimit
  3242. * Reserved
  3243. * \var UBXCFG_NAV5::pDop
  3244. * Position DOP Mask to use
  3245. * \var UBXCFG_NAV5::tDop
  3246. * Time DOP Mask to use
  3247. * \var UBXCFG_NAV5::pAcc
  3248. * Position Accuracy Mask
  3249. * \var UBXCFG_NAV5::tAcc
  3250. * Time Accuracy Mask
  3251. * \var UBXCFG_NAV5::staticHoldThresh
  3252. * Static hold threshold
  3253. * \var UBXCFG_NAV5::dgpsTimeOut
  3254. * DGPS timeout
  3255. * \var UBXCFG_NAV5::cnoThreshNumSVs
  3256. * Number of satellites required to have C/N0
  3257. * above cnoThresh for a fix to be attempted
  3258. * \var UBXCFG_NAV5::cnoThresh
  3259. * C/N0 threshold for deciding whether to attempt
  3260. * a fix
  3261. * \var UBXCFG_NAV5::reserved2
  3262. * Reserved
  3263. * \note Set to 0
  3264. * \var UBXCFG_NAV5::reserved3
  3265. * Reserved
  3266. * \note Set to 0
  3267. * \var UBXCFG_NAV5::reserved4
  3268. * Reserved
  3269. * \note Set to 0
  3270. */
  3271. /*!
  3272. * \struct UBXCFG_NAVX5_POLL
  3273. * Sending this (empty / no-payload) message to the receiver results in the receiver returning a
  3274. * message of type CFG-NAVX5 with a payload as defined below.
  3275. * \note No payload
  3276. * \brief Poll Navigation Engine Expert Settings
  3277. */
  3278. /*!
  3279. * \struct UBXCFG_NAVX5
  3280. * \brief Navigation Engine Expert Settings
  3281. *
  3282. * \var UBXCFG_NAVX5::version
  3283. * Message version
  3284. * \note 0 for this version
  3285. * \var UBXCFG_NAVX5::mask1
  3286. * First Parameters Bitmask. Only the flagged
  3287. * parameters will be applied, unused bits must be
  3288. * set to 0
  3289. * \see #UBXNAVX5Mask to fill this field
  3290. * \var UBXCFG_NAVX5::reserved0
  3291. * Reserved
  3292. * \note Set to 0
  3293. * \var UBXCFG_NAVX5::reserved1
  3294. * Reserved
  3295. * \note Set to 0
  3296. * \var UBXCFG_NAVX5::reserved2
  3297. * Reserved
  3298. * \note Set to 0
  3299. * \var UBXCFG_NAVX5::minSVs
  3300. * Minimum number of satellites for navigation
  3301. * \var UBXCFG_NAVX5::maxSVs
  3302. * Maximum number of satellites for navigation
  3303. * \var UBXCFG_NAVX5::minCNO
  3304. * Minimum satellite signal level for navigation
  3305. * \var UBXCFG_NAVX5::reserved5
  3306. * Reserved
  3307. * \note Set to 0
  3308. * \var UBXCFG_NAVX5::iniFix3D
  3309. * Initial Fix must be 3D flag
  3310. * \note
  3311. * - 0 - false
  3312. * - 1 - true
  3313. * \var UBXCFG_NAVX5::reserved6
  3314. * Reserved
  3315. * \note Set to 0
  3316. * \var UBXCFG_NAVX5::reserved7
  3317. * Reserved
  3318. * \note Set to 0
  3319. * \var UBXCFG_NAVX5::reserved8
  3320. * Reserved
  3321. * \note Set to 0
  3322. * \var UBXCFG_NAVX5::wknRollover
  3323. * GPS week rollover number; GPS week numbers
  3324. * will be set correctly from this week up to 1024
  3325. * weeks after this week.
  3326. * \note 0 reverts to firmware default.
  3327. * \var UBXCFG_NAVX5::reserved9
  3328. * Reserved
  3329. * \note Set to 0
  3330. * \var UBXCFG_NAVX5::reserved10
  3331. * Reserved
  3332. * \note Set to 0
  3333. * \var UBXCFG_NAVX5::reserved11
  3334. * Reserved
  3335. * \note Set to 0
  3336. * \var UBXCFG_NAVX5::usePPP
  3337. * Use Precise Point Positioning flag
  3338. * \note Only supported on certain product variants
  3339. * \note
  3340. * - 0 - false
  3341. * - 1 - true
  3342. * \var UBXCFG_NAVX5::aopCFG
  3343. * AssistNow Autonomous configuration
  3344. * /note
  3345. * - 0 - disabled
  3346. * - 1 - enabled
  3347. * \var UBXCFG_NAVX5::reserved12
  3348. * \note Set to 0
  3349. * \var UBXCFG_NAVX5::reserved13
  3350. * Reserved
  3351. * \note Set to 0
  3352. * \var UBXCFG_NAVX5::aopOrbMaxErr
  3353. * maximum acceptable (modelled) AssistNow
  3354. * Autonomous orbit error
  3355. * \note valid range = 5..1000,
  3356. * \note 0 - reset to firmware default
  3357. * \var UBXCFG_NAVX5::reserved14
  3358. * Reserved
  3359. * \note Set to 0
  3360. * \var UBXCFG_NAVX5::reserved15
  3361. * Reserved
  3362. * \note Set to 0
  3363. * \var UBXCFG_NAVX5::reserved3
  3364. * Reserved
  3365. * \note Set to 0
  3366. * \var UBXCFG_NAVX5::reserved4
  3367. * Reserved
  3368. * \note Set to 0
  3369. */
  3370. /*!
  3371. * \struct UBXCFG_NMEA_POLL
  3372. * \note No payload
  3373. * \brief Poll the NMEA protocol configuration
  3374. */
  3375. /*!
  3376. * \struct UBXCFG_NMEA
  3377. * Set/Get the NMEA protocol configuration. See section "NMEA Protocol Configuration" (u-blox© official documentation) for a
  3378. * detailed description of the configuration effects on NMEA output.
  3379. * \brief NMEA protocol configuration
  3380. *
  3381. * \var UBXCFG_NMEA::filter
  3382. * Filter flags
  3383. * \see #UBXNMEAFilter to fill this field
  3384. * \var UBXCFG_NMEA::nmeaVersion
  3385. * NMEA version
  3386. * \see #UBXNMEAVersion to fill this field
  3387. * \var UBXCFG_NMEA::numSV
  3388. * Maximum Number of SVs to report in NMEA
  3389. * protocol.\n
  3390. * This does not affect the receiver's operation.
  3391. * It only limits the number of SVs reported in
  3392. * NMEA mode (this might be needed with older
  3393. * mapping applications which only support 8- or
  3394. * 12-channel receivers).
  3395. * \var UBXCFG_NMEA::flags
  3396. * Flags
  3397. * \see #UBXNMEAFlags to fill this field
  3398. * \var UBXCFG_NMEA::gnssToFilter
  3399. * Filters out satellites based on their GNSS. If a
  3400. * bitfield is enabled, the corresponding satellites
  3401. * will be not output.
  3402. * \see #UBXNMEAGNSSToFilter to fill this field
  3403. * \var UBXCFG_NMEA::svNumbering
  3404. * Configures the display of satellites that do not
  3405. * have an NMEA-defined value.
  3406. * \note This does not apply to satellites with an
  3407. * unknown ID.
  3408. * \var UBXCFG_NMEA::mainTalkerId
  3409. * By default the main Talker ID (i.e. the Talker ID
  3410. * used for all messages other than GSV) is
  3411. * determined by the GNSS assignment of the
  3412. * receiver's channels (see #UBXCFG_GNSS).
  3413. * This field enables the main Talker ID to be
  3414. * overridden.
  3415. * \var UBXCFG_NMEA::gsvTalkerId
  3416. * By default the Talker ID for GSV messages is
  3417. * GNSS specific (as defined by NMEA).
  3418. * This field enables the GSV Talker ID to be
  3419. * overridden.
  3420. * \var UBXCFG_NMEA::reserved
  3421. * Reserved
  3422. * \note Set to 0
  3423. */
  3424. /*!
  3425. * \struct UBXCFG_NVS
  3426. * Three masks are made up of individual bits that indicate which data is to be cleared, saved
  3427. * and/or loaded. The fourth mask defines on which devices the corresponding action shall be
  3428. * carried out. Please note that only one command should be flagged at once. Otherwise all
  3429. * commands are processed in the order Clear, Save, and Load. All reserved bits must be set
  3430. * to zero.
  3431. * \brief Clear, Save and Load non-volatile storage data
  3432. * \var UBXCFG_NVS::clearMask
  3433. * Mask of data to be cleared
  3434. * \see #UBXCFGMask CFG_NVS section to fill this field
  3435. * \var UBXCFG_NVS::saveMask
  3436. * Mask of data to be saved
  3437. * \see #UBXCFGMask CFG_NVS section to fill this field
  3438. * \var UBXCFG_NVS::loadMask
  3439. * Mask of data to be loaded,
  3440. * \see #UBXCFGMask CFG_NVS section to fill this field
  3441. * \var UBXCFG_NVS::deviceMask
  3442. * Mask of devices to consider
  3443. * \note Default: all devices
  3444. * \see #UBXCFGDeviceMask to fill this field
  3445. */
  3446. /*!
  3447. * \struct UBXCFG_PM2_POLL
  3448. * \note No payload
  3449. * \brief Poll extended Power Management configuration
  3450. */
  3451. /*!
  3452. * \struct UBXCFG_PM2Flags
  3453. * \brief Implements bitmask for UBXCFG_PM2::flags
  3454. * \var UBXCFG_PM2Flags::blank1
  3455. * Stub to make gap
  3456. * \var UBXCFG_PM2Flags::reserved
  3457. * Reserved
  3458. * \note Must be set to '000'
  3459. * \var UBXCFG_PM2Flags::extIntSelect
  3460. * EXTINT Pin Select
  3461. * \note
  3462. * - 0 - EXTINT0
  3463. * - 1 - EXTINT1
  3464. * \var UBXCFG_PM2Flags::extIntWake
  3465. * EXTINT Pin Control
  3466. * \note
  3467. * - 0 - disabled
  3468. * - 1 - enabled, force receiver into BACKUP mode when selected EXTINT pin is 'low'
  3469. * \var UBXCFG_PM2Flags::extIntBackup
  3470. * EXTINT Pin Control
  3471. * - 0 - disabled
  3472. * - 1 - enabled, force receiver into BACKUP mode when selected EXTINT pin is 'low'
  3473. * \var UBXCFG_PM2Flags::blank2
  3474. * Stub to make gap
  3475. * \var UBXCFG_PM2Flags::limitPeakCurr
  3476. * Limit Peak Current
  3477. * \see #UBXPM2LimitPeakCurrent to fill this field
  3478. * \var UBXCFG_PM2Flags::waitTimeFix
  3479. * Wait for Timefix
  3480. * \note
  3481. * - 0 - wait for normal Fix ok, before starting on-time
  3482. * - 1 - wait for time fix ok, before starting on-time
  3483. * \var UBXCFG_PM2Flags::updateRTC
  3484. * Update Real Time Clock
  3485. * - 0 - Do not wake-up to update RTC. RTC is updated during normal on-time.
  3486. * - 1 - Update RTC. The receiver adds extra wake-up cycles to update the RTC.
  3487. * \var UBXCFG_PM2Flags::updateEPH
  3488. * Update Ephemeris
  3489. * - 0 - Do not wake-up to update Ephemeris data
  3490. * - 1 - Update Ephemeris. The receiver adds extra wake-up cycles to update the Ephemeris data
  3491. * \var UBXCFG_PM2Flags::blank3
  3492. * Stub to make gap
  3493. * \var UBXCFG_PM2Flags::doNotEnterOff
  3494. * Behavior of receiver in case of no fix
  3495. * - 0 - receiver enters inactive for search state
  3496. * - 1 - receiver does not enter inactive for search state but keeps trying to acquire a fix instead
  3497. * \var UBXCFG_PM2Flags::mode
  3498. * Mode of operation
  3499. * \see #UBXPM2Mode to fill this field
  3500. */
  3501. /*!
  3502. * \struct UBXCFG_PM2
  3503. * \brief Extended Power Management configuration
  3504. * \var UBXCFG_PM2::version
  3505. * Message version
  3506. * \note 1 for this version
  3507. * \var UBXCFG_PM2::reserved1
  3508. * Reserved
  3509. * \var UBXCFG_PM2::reserved2
  3510. * Reserved
  3511. * \var UBXCFG_PM2::reserved3
  3512. * Reserved
  3513. * \var UBXCFG_PM2::flags
  3514. * PSM configuration flags
  3515. * \note See UBXCFG_PM2Flags to fill this field
  3516. * \var UBXCFG_PM2::updatePeriod
  3517. * Position update period.
  3518. * \note If set to 0, the receiver will never retry a fix
  3519. * \var UBXCFG_PM2::searchPeriod
  3520. * Acquisition retry period
  3521. * \note If set to 0, the receiver will never retry a startup
  3522. * \var UBXCFG_PM2::gridOffset
  3523. * Grid offset relative to GPS start of week
  3524. * \var UBXCFG_PM2::onTime
  3525. * On time after first successful fix
  3526. * \var UBXCFG_PM2::minAcqTime
  3527. * Minimal search time
  3528. * \var UBXCFG_PM2::reserved4
  3529. * Reserved
  3530. * \var UBXCFG_PM2::reserved5
  3531. * Reserved
  3532. * \var UBXCFG_PM2::reserved6
  3533. * Reserved
  3534. * \var UBXCFG_PM2::reserved7
  3535. * Reserved
  3536. * \var UBXCFG_PM2::reserved8
  3537. * Reserved
  3538. * \var UBXCFG_PM2::reserved9
  3539. * Reserved
  3540. * \var UBXCFG_PM2::reserved10
  3541. * Reserved
  3542. * \var UBXCFG_PM2::reserved11
  3543. * Reserved
  3544. */
  3545. /*!
  3546. * \struct UBXCFG_PRT_POLL
  3547. * \note No payload
  3548. * \brief Polls the configuration of the used I/O Port
  3549. */
  3550. /*!
  3551. * \struct UBXCFG_PRT_POLL_OPT
  3552. * \brief Polls the configuration for one I/O Port
  3553. *
  3554. * \var UBXCFG_PRT_POLL_OPT::portId
  3555. * Port Identifier Number
  3556. * \see #UBXCFG_PRT for valid values
  3557. */
  3558. /*!
  3559. * \struct UBXCFG_PRTTxReady
  3560. * \brief This structure described TX ready PIN configuration for UBXCFG_PRT::txReady
  3561. * \var UBXCFG_PRTTxReady::en
  3562. * Enable TX ready feature for this port
  3563. * \note
  3564. * - 0 - disable
  3565. * - 1 - enabled
  3566. * \var UBXCFG_PRTTxReady::pol
  3567. * Polarity
  3568. * - 0 - High-active
  3569. * - 1 - Low-active
  3570. * \var UBXCFG_PRTTxReady::pin
  3571. * PIO to be used
  3572. * \note must not be in use already by another function
  3573. * \var UBXCFG_PRTTxReady::thres
  3574. * Threshold
  3575. * The TX ready PIN goes active after >= thres*8 bytes are pending for the port and going inactive after the last
  3576. * pending bytes have been written to hardware (0-4 bytes before end of stream).
  3577. * \note Given value is multiplied by 8 bytes
  3578. */
  3579. /*!
  3580. * \struct UBXCFG_PRTUARTMode
  3581. * It is part of #UBXCFG_PRTMode union
  3582. * \brief This structure describes port settings for UART
  3583. * \var UBXCFG_PRTUARTMode::blank0
  3584. * Stub for gap
  3585. * \var UBXCFG_PRTUARTMode::reserved1
  3586. * Reserved
  3587. * \note Set to 1 for compatibility with A4
  3588. * \var UBXCFG_PRTUARTMode::blank1
  3589. * Stub for gap
  3590. * \var UBXCFG_PRTUARTMode::charLen
  3591. * Character Length
  3592. * \see #UBXPRTModeCharLen to fill this field
  3593. * \var UBXCFG_PRTUARTMode::blank2
  3594. * Stub for gap
  3595. * \var UBXCFG_PRTUARTMode::parity
  3596. * Parity
  3597. * \see #UBXPRTModeParity to fill this field
  3598. * \var UBXCFG_PRTUARTMode::nStopBits
  3599. * Number of Stop Bits
  3600. * \see #UBXPRTModeStopBits to fill this field
  3601. * \var UBXCFG_PRTUARTMode::blank3
  3602. * Stub for gap
  3603. */
  3604. /*!
  3605. * \struct UBXCFG_PRTSPIMode
  3606. * It is part of #UBXCFG_PRTMode union
  3607. * \brief This structure describes port settings for SPI
  3608. * \var UBXCFG_PRTSPIMode::blank0
  3609. * Stub for gap
  3610. * \var UBXCFG_PRTSPIMode::spiMode
  3611. * Mode
  3612. * \see #UBXPRTSPIMode to fill this field
  3613. * \var UBXCFG_PRTSPIMode::blank1
  3614. * Stub for gap
  3615. * \var UBXCFG_PRTSPIMode::flowControl
  3616. * Flow control
  3617. * \note
  3618. * - 0 - disabled
  3619. * - 1 - enabled
  3620. * \var UBXCFG_PRTSPIMode::blank2
  3621. * Stub for gap
  3622. * \var UBXCFG_PRTSPIMode::ffCnt
  3623. * Number of bytes containing 0xFF to receive before switching off reception.
  3624. * \note Range: 0(mechanism off)-255
  3625. * \var UBXCFG_PRTSPIMode::blank3
  3626. * Stub for gap
  3627. */
  3628. /*!
  3629. * \struct UBXCFG_PRTDDCMode
  3630. * It is part of #UBXCFG_PRTMode union
  3631. * \brief This structure describes port settings for DDC(I2C)
  3632. * \var UBXCFG_PRTDDCMode::blank0
  3633. * Stub for gap
  3634. * \var UBXCFG_PRTDDCMode::slaveAddr
  3635. * Slave address
  3636. * \note Range: 0x07 < slaveAddr < 0x78. Bit 0 shall be 0
  3637. * \var UBXCFG_PRTDDCMode::blank1
  3638. * Stub for gap
  3639. */
  3640. /*!
  3641. * \union UBXCFG_PRTMode
  3642. * It is used to fill UBXCFG_PRT::mode field
  3643. * \brief This union contains mode settings for all ports
  3644. * \var UBXCFG_PRTMode::UART
  3645. * UART mode settings
  3646. * \var UBXCFG_PRTMode::SPI
  3647. * SPI mode settings
  3648. * \var UBXCFG_PRTMode::DDC
  3649. * DDC mode settings
  3650. * \var UBXCFG_PRTMode::USB
  3651. * Reserved
  3652. * \note for USB port there are no mode settings
  3653. */
  3654. /*!
  3655. * \union UBXCFG_PRT5Option
  3656. * \brief This union used as 5-th option of #UBXCFG_PRT
  3657. * \var UBXCFG_PRT5Option::UARTbaudRate
  3658. * Setup baudrate for UART ports
  3659. * \var UBXCFG_PRT5Option::OtherReserved
  3660. * Setting is reserved for all ports except UART
  3661. */
  3662. /*!
  3663. * \struct UBXCFG_PRT
  3664. * For more detailed description please look at official u-blox© documentation
  3665. * \brief Port Configuration message scope for all ports
  3666. * \var UBXCFG_PRT::portID
  3667. * Port Identifier Number
  3668. * \var UBXCFG_PRT::reserved0
  3669. * Reserved for all ports
  3670. * \var UBXCFG_PRT::txReady
  3671. * \see #UBXCFG_PRTTxReady to fill this field
  3672. * TX ready PIN configuration
  3673. * \var UBXCFG_PRT::mode;
  3674. * A bit mask describing port mode
  3675. * \see #UBXCFG_PRTMode to fille this field
  3676. * \var UBXCFG_PRT::option;
  3677. * Optional block
  3678. * \see #UBXCFG_PRT5Option to fill this field
  3679. * \var UBXCFG_PRT::inProtoMask
  3680. * A mask describing which input protocols are
  3681. * active.
  3682. * Each bit of this mask is used for a protocol.
  3683. * \note Multiple protocols can be defined
  3684. * on a single port.
  3685. * \see #UBXPRTInProtoMask to fill this field
  3686. * \var UBXCFG_PRT::outProtoMask
  3687. * A mask describing which output protocols are
  3688. * active.
  3689. * Each bit of this mask is used for a protocol.
  3690. * \note Multiple protocols can be defined
  3691. * on a single port
  3692. * \see #UBXPRTOutProtoMask to fill this field
  3693. * \var UBXCFG_PRT::flags
  3694. * Flags bit mask
  3695. * \see #UBXPRTFlags to fill this field
  3696. * \note Shall be 0 for USB
  3697. * \var UBXCFG_PRT::reserved5
  3698. * Reserved
  3699. * \note Always set to 0
  3700. */
  3701. /*!
  3702. * \struct UBXCFG_RATE_POLL
  3703. * Sending this message to the receiver results in the receiver returning a message of type #UBXCFG_RATE
  3704. * \note No payload
  3705. * \brief Poll Navigation/Measurement Rate Settings
  3706. */
  3707. /*!
  3708. * \struct UBXCFG_RATE
  3709. * The u-blox© positioning technology supports navigation update rates higher or lower than 1
  3710. * update per second. The calculation of the navigation solution will always be aligned to the
  3711. * top of a second.
  3712. * - The update rate has a direct influence on the power consumption. The more fixes that
  3713. * are required, the more CPU power and communication resources are required.
  3714. * - For most applications a 1 Hz update rate would be sufficient.
  3715. * - When using Power Save Mode, measurement and navigation rate can differ from the
  3716. * values configured here. See "Measurement and navigation rate with Power Save Mode" (u-blox© official documentation)
  3717. * for details.
  3718. * \brief Navigation/Measurement Rate Settings
  3719. *
  3720. * \var UBXCFG_RATE::measRate
  3721. * Measurement Rate, GPS measurements are
  3722. * taken every measRate milliseconds
  3723. * \var UBXCFG_RATE::navRate
  3724. * Navigation Rate, in number of measurement
  3725. * cycles.
  3726. * \note This parameter cannot be changed, and
  3727. * must be set to 1.
  3728. * \var UBXCFG_RATE::timeRef
  3729. * Alignment to reference time.
  3730. * \note
  3731. * - 0 - UTC time
  3732. * - 1 - GPS time
  3733. */
  3734. /*!
  3735. * \struct UBXCFG_RINV_POLL
  3736. * \note No payload
  3737. * \brief Poll contents of Remote Inventory
  3738. */
  3739. /*!
  3740. * \struct UBXCFG_RINV
  3741. * \note This message has variable payload
  3742. * If size of variable payload is greater than 30, the excess bytes are discarded. In future firmware versions, this limit
  3743. * may change.
  3744. * \brief Contents of Remote Inventory
  3745. * \var UBXCFG_RINV::flags
  3746. * Flags
  3747. * \see #UBXRINVFlags to fill this field
  3748. */
  3749. /*!
  3750. * \struct UBXCFG_RST
  3751. * \brief Reset Receiver / Clear Backup Data Structures
  3752. *
  3753. * \var UBXCFG_RST::navBBRMask
  3754. * BBR Sections to clear.
  3755. * \see #UBXBBRSpecialSets for special sets
  3756. * \see #UBXBBRMask to fill this field manually
  3757. * \var UBXCFG_RST::resetMode
  3758. * Reset Type
  3759. * \see #UBXResetMode to fill this field
  3760. * \var UBXCFG_RST::reserved1
  3761. * Reserved
  3762. */
  3763. /*!
  3764. * \struct UBXCFG_RXM_POLL
  3765. * \note No payload
  3766. * \brief Poll RXM configuration
  3767. */
  3768. /*!
  3769. * \struct UBXCFG_RXM
  3770. * For a detailed description see section "Power Management"(u-blox© official documentation)
  3771. * \note Power Save Mode cannot be selected when the receiver is configured to process
  3772. * GLONASS signals using #UBXCFG_GNSS.
  3773. * \brief RXM configuration
  3774. *
  3775. * \var UBXCFG_RXM::reserved1
  3776. * Reserved
  3777. * \note Shall be set to 8
  3778. * \var UBXCFG_RXM::lpMode
  3779. * Low power mode
  3780. * \see #UBXRXMLowPowerModes to fill this field
  3781. */
  3782. /*!
  3783. * \struct UBXCFG_SBAS_POLL
  3784. * \note No payload
  3785. * \brief Poll contents of SBAS Configuration
  3786. *
  3787. */
  3788. /*!
  3789. * \struct UBXCFG_SBAS
  3790. * This message configures the SBAS receiver subsystem (i.e. WAAS, EGNOS, MSAS)
  3791. * \see "SBAS Configuration Settings Description" (u-blox© official documentation)
  3792. * for a detailed description of how these settings affect receiver operation.
  3793. * \brief SBAS Configuration
  3794. *
  3795. * \var UBXCFG_SBAS::mode
  3796. * SBAS Mode
  3797. * \see #UBXSBASModes to fill this field
  3798. * \var UBXCFG_SBAS::usage
  3799. * SBAS Usage
  3800. * \see #UBXSBASUsage to fill this field
  3801. * \var UBXCFG_SBAS::maxSBAS
  3802. * Maximum Number of SBAS prioritized tracking
  3803. * channels to use
  3804. * \note valid range: 0 - 3
  3805. * \deprecated obsolete and superseeded by #UBXCFG_GNSS in protocol
  3806. * versions 14.00+.
  3807. * \var UBXCFG_SBAS::scanmode2
  3808. * Continuation of scanmode bitmask below
  3809. * \see #UBXSBASScanModes2 to fill this field
  3810. * \var UBXCFG_SBAS::scanmode1
  3811. * Which SBAS PRN numbers to search for (Bitmask)
  3812. * If all Bits are set to zero, auto-scan (i.e. all valid
  3813. * PRNs) are searched.
  3814. * Every bit corresponds to a PRN number
  3815. * \see #UBXSBASScanModes1 to fill this field
  3816. */
  3817. /*!
  3818. * \struct UBXCFG_TP5_POLL
  3819. * Sending this message to the receiver results in the receiver returning a
  3820. * message of type #UBXCFG_TP5 with a payload for timepulse 0.
  3821. * \note No payload
  3822. * \brief Poll Time Pulse Parameters
  3823. */
  3824. /*!
  3825. * \struct UBXCFG_TP5_POLL_OPT
  3826. * Sending this message to the receiver results in the receiver returning a message of type
  3827. * #UBXCFG_TP5 with a payload for the specified time pulse.
  3828. * \brief Poll Time Pulse Parameters
  3829. * \var UBXCFG_TP5_POLL_OPT::tpIdx
  3830. * Time pulse selection
  3831. * \see #UBXCFGTimepulses to fill this field
  3832. */
  3833. /*!
  3834. * \struct UBXCFG_TP5
  3835. * This message is used to get/set time pulse parameters. For more information see section
  3836. * "Time pulse" (u-blox© official documentation).
  3837. * \brief The UBXCFG_TP5 structure is
  3838. *
  3839. * \var UBXCFG_TP5::tpIdx
  3840. * Time pulse selection
  3841. * \see #UBXCFGTimepulses to fill this field
  3842. * \var UBXCFG_TP5::reserved0
  3843. * Reserved
  3844. * \var UBXCFG_TP5::reserved1
  3845. * Reserved
  3846. * \var UBXCFG_TP5::antCableDelay
  3847. * Antenna cable delay
  3848. * \var UBXCFG_TP5::rfGroupDelay
  3849. * RF group delay
  3850. * \var UBXCFG_TP5::freqPeriod
  3851. * Frequency or period time
  3852. * \note Depending on setting of bit 'isFreq'
  3853. * \var UBXCFG_TP5::freqPeriodLock
  3854. * Frequency or period time when locked to GPS
  3855. * time
  3856. * \note Only used if 'lockedOtherSet' is set
  3857. * \var UBXCFG_TP5::pulseLenRatio
  3858. * Pulse length or duty cycle
  3859. * \note Depending on 'isLength'
  3860. * \var UBXCFG_TP5::pulseLenRatioLock
  3861. * Pulse length or duty cycle when locked to GPS
  3862. * time
  3863. * \note only used if 'lockedOtherSet' is set
  3864. * \var UBXCFG_TP5::userConfigDelay
  3865. * User configurable time pulse delay
  3866. * \var UBXCFG_TP5::flags
  3867. * Configuration flags
  3868. * \see #UBXCFGTimepulseFlags to fill this field
  3869. */
  3870. /*!
  3871. * \struct UBXCFG_USB_POLL
  3872. * \note No payload
  3873. * \brief Poll a USB configuration
  3874. */
  3875. /*!
  3876. * \struct UBXCFG_USB
  3877. * \brief USB Configuration
  3878. *
  3879. * \var UBXCFG_USB::vendorId
  3880. * Vendor ID. This field shall only be set to
  3881. * registered Vendor IDs.
  3882. * \note Changing this field
  3883. * requires special Host drivers.
  3884. * \var UBXCFG_USB::productId
  3885. * Product ID.
  3886. * \note Changing this field requires special
  3887. * Host drivers.
  3888. * \var UBXCFG_USB::reserved1
  3889. * Reserved
  3890. * \note Set to 0
  3891. * \var UBXCFG_USB::reserved2
  3892. * Reserved
  3893. * \note Set to 1
  3894. * \var UBXCFG_USB::powerConsumption
  3895. * Power consumed by the device
  3896. * \var UBXCFG_USB::flags
  3897. * Various configuration flags
  3898. * \see #UBXUSBFlags to fill this field
  3899. * \var UBXCFG_USB::vendorString[32]
  3900. * String containing the vendor name. 32 ASCII bytes
  3901. * including 0-termination.
  3902. * \var UBXCFG_USB::productString[32]
  3903. * String containing the product name. 32 ASCI bytes
  3904. * including 0-termination.
  3905. * \var UBXCFG_USB::serialNumber[32]
  3906. * String containing the serial number. 32 ASCII
  3907. * bytes including 0-termination.
  3908. * \note Changing the String fields requires special Host
  3909. * drivers.
  3910. */
  3911. /*!
  3912. * \struct UBXINF_DEBUG
  3913. * This message has a variable length payload, representing an ASCII string.
  3914. * \note This message has a variable length payload
  3915. * \brief ASCII String output, indicating debug output
  3916. */
  3917. /*!
  3918. * \struct UBXINF_ERROR
  3919. * This message has a variable length payload, representing an ASCII string.
  3920. * \note This message has a variable length payload
  3921. * \brief ASCII String output, indicating an error
  3922. */
  3923. /*!
  3924. * \struct UBXINF_NOTICE
  3925. * This message has a variable length payload, representing an ASCII string.
  3926. * \note This message has a variable length payload
  3927. * \brief ASCII String output, with informational contents
  3928. */
  3929. /*!
  3930. * \struct UBXINF_TEST
  3931. * This message has a variable length payload, representing an ASCII string.
  3932. * \note This message has a variable length payload
  3933. * \brief ASCII String output, indicating test output
  3934. */
  3935. /*!
  3936. * \struct UBXINF_WARNING
  3937. * This message has a variable length payload, representing an ASCII string.
  3938. * \note This message has a variable length payload
  3939. * \brief ASCII String output, indicating a warning
  3940. */
  3941. /*!
  3942. * \struct UBXLOG_CREATE
  3943. * This message is used to create an initial logging file and activate the logging subsystem.
  3944. * #UBXACK_ACK or #UBXACK_NACK are returned to indicate success or failure.
  3945. * This message does not handle activation of recording or filtering of log entries
  3946. * \see #UBXCFG_LOGFILTER
  3947. * \brief Create Log File
  3948. * \var UBXLOG_CREATE::version
  3949. * The version of this message.
  3950. * \note Set to 0
  3951. * \var UBXLOG_CREATE::logCfg
  3952. * Config flags
  3953. * \see #UBXLOGCfg to fill this field
  3954. * \var UBXLOG_CREATE::reserved
  3955. * Reserved
  3956. * \note Set to 0
  3957. * \var UBXLOG_CREATE::logSize
  3958. * Indicates the size of the log
  3959. * \see #UBXLOGSize to fill this field
  3960. * \var UBXLOG_CREATE::userDefinedSize
  3961. * Sets the maximum amount of space in the
  3962. * filestore that can be used by the logging task
  3963. * \note This field is only applicable if logSize is set to user defined.
  3964. */
  3965. /*!
  3966. * \struct UBXLOG_ERASE
  3967. * This message deactivates the logging system and erases all logged data.
  3968. * #UBXACK_ACK or #UBXACK_NACK are returned to indicate success or failure.
  3969. * \note No payload
  3970. * \brief Erase Logged Data
  3971. */
  3972. /*!
  3973. * \struct UBXLOG_FINDTIME_IN
  3974. * This message can be used to search a log for the index of the first entry less than or equal
  3975. * to the given time. This index can then be used with the #UBXLOG_RETRIEVE message to
  3976. * provide time-based retrieval of log entries.
  3977. * \brief Finds the index of the first log entry <= given time
  3978. *
  3979. * \var UBXLOG_FINDTIME_IN::version
  3980. * Message version
  3981. * \note Set to 0
  3982. * \var UBXLOG_FINDTIME_IN::type
  3983. * Message type
  3984. * \note 0 for request
  3985. * \var UBXLOG_FINDTIME_IN::reserved1
  3986. * Reserved
  3987. * \var UBXLOG_FINDTIME_IN::year
  3988. * Year of UTC time
  3989. * \note Range 1-65635
  3990. * \var UBXLOG_FINDTIME_IN::month
  3991. * Month of UTC time
  3992. * \note Range 1-12
  3993. * \var UBXLOG_FINDTIME_IN::day
  3994. * Day of UTC time
  3995. * \note Range 1-31
  3996. * \var UBXLOG_FINDTIME_IN::hour
  3997. * Hour of UTC time
  3998. * \note Range 0-23
  3999. * \var UBXLOG_FINDTIME_IN::minute
  4000. * Minute of UTC time
  4001. * \note Range 0-59
  4002. * \var UBXLOG_FINDTIME_IN::second
  4003. * Second of UTC time
  4004. * \note Range 0-60 - looks like mistake in official documentation
  4005. * \var UBXLOG_FINDTIME_IN::reserved2
  4006. * Reserved
  4007. */
  4008. /*!
  4009. * \struct UBXLOG_FINDTIME_OUT
  4010. * \brief This message is the response to FINDTIME request.
  4011. *
  4012. * \var UBXLOG_FINDTIME_OUT::version
  4013. * Message version
  4014. * \note Set to 1
  4015. * \var UBXLOG_FINDTIME_OUT::type
  4016. * \note Is set to 1 for response
  4017. * \var UBXLOG_FINDTIME_OUT::reserved1
  4018. * Reserved
  4019. * \var UBXLOG_FINDTIME_OUT::entryNumber
  4020. * Index of the most recent entry with time <= specified
  4021. */
  4022. /*!
  4023. * \struct UBXLOG_INFO_POLL
  4024. * \note No payload
  4025. * \brief Poll for log information
  4026. */
  4027. /*!
  4028. * \struct UBXLOG_INFO
  4029. * This message is used to report information about the logging subsystem.
  4030. * \note
  4031. * - The reported maximum log size will be smaller than that originally specified in
  4032. * LOG-CREATE due to logging and filestore implementation overheads.
  4033. * - Log entries are compressed in a variable length fashion, so it may be difficult to predict
  4034. * log space usage with any precision.
  4035. * - There may be times when the receiver does not have an accurate time (e.g. if the week
  4036. * number is not yet known), in which case some entries will not have a timestamp - this
  4037. * may result in the oldest/newest entry time values not taking account of these entries.
  4038. * \brief Log information
  4039. * \var UBXLOG_INFO::version
  4040. * The version of this message
  4041. * \note Set to 1
  4042. * \var UBXLOG_INFO::reserved1[3]
  4043. * Reserved
  4044. * \var UBXLOG_INFO::filestoreCapacity
  4045. * The capacity of the filestore
  4046. * \var UBXLOG_INFO::reserved2
  4047. * Reserved
  4048. * \var UBXLOG_INFO::reserved3
  4049. * Reserved
  4050. * \var UBXLOG_INFO::currentMaxLogSize
  4051. * The maximum size the current log is allowed to grow to
  4052. * \var UBXLOG_INFO::currentLogSize
  4053. * Approximate amount of space in log currently occupied
  4054. * \var UBXLOG_INFO::entryCount
  4055. * Number of entries in the log.
  4056. * \note For circular logs this value will decrease
  4057. * when a group of entries is deleted to make
  4058. * space for new ones.
  4059. * \var UBXLOG_INFO::oldestYear
  4060. * Oldest entry UTC year.
  4061. * \note Range 1-65635 or zero if
  4062. * there are no entries with known time
  4063. * \var UBXLOG_INFO::oldestMonth
  4064. * Oldest month
  4065. * \note Range 1-12
  4066. * \var UBXLOG_INFO::oldestDay
  4067. * Oldest day
  4068. * \note Range 1-31
  4069. * \var UBXLOG_INFO::oldestHour
  4070. * Oldest hour
  4071. * \note Range 0-23
  4072. * \var UBXLOG_INFO::oldestMinute
  4073. * Oldest minute
  4074. * \note Range 0-59
  4075. * \var UBXLOG_INFO::oldestSecond
  4076. * Oldest second
  4077. * \note Range 0-60
  4078. * \var UBXLOG_INFO::reserved4
  4079. * Reserved
  4080. * \var UBXLOG_INFO::newestYear
  4081. * Newest entry UTC year year.
  4082. * \note Range 1-65635 or zero if
  4083. * there are no entries with known time
  4084. * \var UBXLOG_INFO::newestMonth
  4085. * Newest month
  4086. * \note Range 1-12
  4087. * \var UBXLOG_INFO::newestDay
  4088. * Newest day
  4089. * \note Range 1-31
  4090. * \var UBXLOG_INFO::newestHour
  4091. * Newest hour
  4092. * \note Range 0-23
  4093. * \var UBXLOG_INFO::newestMinute
  4094. * Newest minute
  4095. * \note Range 0-59
  4096. * \var UBXLOG_INFO::newestSecond
  4097. * Newest second
  4098. * \note Range 0-60
  4099. * \var UBXLOG_INFO::reserved5
  4100. * Reserved
  4101. * \var UBXLOG_INFO::status
  4102. * Log status flags
  4103. * \see #UBXLOGStatus to fill this field
  4104. * \var UBXLOG_INFO::reserved6[3]
  4105. * Reserved
  4106. */
  4107. /*!
  4108. * \struct UBXLOG_RETRIEVEPOS
  4109. * This message is used to report a position fix log entry
  4110. * \brief Position fix log entry
  4111. * \var UBXLOG_RETRIEVEPOS::entryIndex
  4112. * The index of this log entry
  4113. * \var UBXLOG_RETRIEVEPOS::lon
  4114. * Longitude
  4115. * \var UBXLOG_RETRIEVEPOS::lat
  4116. * Latitude
  4117. * \var UBXLOG_RETRIEVEPOS::hMSL
  4118. * Height above mean sea level
  4119. * \var UBXLOG_RETRIEVEPOS::hAcc
  4120. * Horizontal accuracy estimate
  4121. * \var UBXLOG_RETRIEVEPOS::gSpeed
  4122. * Ground speed (2-D)
  4123. * \var UBXLOG_RETRIEVEPOS::heading
  4124. * Heading
  4125. * \var UBXLOG_RETRIEVEPOS::version
  4126. * The version of this message.
  4127. * \note Set to 0
  4128. * \var UBXLOG_RETRIEVEPOS::fixType
  4129. * Fix type
  4130. * \see #UBXRETRIEVEPOSFixType to fill this field
  4131. * \var UBXLOG_RETRIEVEPOS::year
  4132. * Year
  4133. * \note Range 1-65635
  4134. * \var UBXLOG_RETRIEVEPOS::month
  4135. * Month
  4136. * \note Range 1-12
  4137. * \var UBXLOG_RETRIEVEPOS::day
  4138. * Day
  4139. * \note Range 1-31
  4140. * \var UBXLOG_RETRIEVEPOS::hour
  4141. * Hour
  4142. * \note Range 0-23
  4143. * \var UBXLOG_RETRIEVEPOS::minute
  4144. * Minute
  4145. * \note Range 0-59
  4146. * \var UBXLOG_RETRIEVEPOS::second
  4147. * Second
  4148. * \note Range 0-60
  4149. * \var UBXLOG_RETRIEVEPOS::reserved1
  4150. * Reserved
  4151. * \var UBXLOG_RETRIEVEPOS::numSV
  4152. * Number of satellites used in the position fix
  4153. * \var UBXLOG_RETRIEVEPOS::reserved2
  4154. * Reserved
  4155. */
  4156. /*!
  4157. * \struct UBXLOG_RETRIEVESTRING
  4158. * This message is used to report a byte string log entry
  4159. * \note this message contains variable payload of UBXLOG_RETRIEVESTRING::byteCount size
  4160. * \brief Byte string log entry
  4161. * \var UBXLOG_RETRIEVESTRING::entryIndex
  4162. * The index of this log entry
  4163. * \var UBXLOG_RETRIEVESTRING::version
  4164. * \note Set to 0
  4165. * \var UBXLOG_RETRIEVESTRING::reserved1
  4166. * Reserved
  4167. * \var UBXLOG_RETRIEVESTRING::year
  4168. * Year
  4169. * \note Range 1-65635
  4170. * \var UBXLOG_RETRIEVESTRING::month
  4171. * Month
  4172. * \note Range 1-12
  4173. * \var UBXLOG_RETRIEVESTRING::day
  4174. * Day
  4175. * \note Range 1-31
  4176. * \var UBXLOG_RETRIEVESTRING::hour
  4177. * Hour
  4178. * \note Range 0-23
  4179. * \var UBXLOG_RETRIEVESTRING::minute
  4180. * Minute
  4181. * \note Range 0-59
  4182. * \var UBXLOG_RETRIEVESTRING::second
  4183. * Second
  4184. * \note Range 0-60
  4185. * \var UBXLOG_RETRIEVESTRING::reserved2
  4186. * Reserved
  4187. * \var UBXLOG_RETRIEVESTRING::byteCount
  4188. * Size of string in bytes
  4189. */
  4190. /*!
  4191. * \struct UBXLOG_RETRIEVE
  4192. * This message is used to request logged data.
  4193. * Log entries are returned in chronological order, using the messages
  4194. * #UBXLOG_RETRIEVEPOS and #UBXLOG_RETRIEVESTRING. The maximum number of
  4195. * entries that can be returned in response to a single UBX-LOG-RETRIEVE message is 256. If
  4196. * more entries than this are required the mesage will need to be sent multiple times with
  4197. * different startNumbers. The retrieve will be stopped if any UBX-LOG message is received.
  4198. * \note The speed of transfer can be maximised by using a high data rate and temporarily stopping
  4199. * the GPS processing see #UBXCFG_RST
  4200. * \note log recording must first be disabled see #UBXCFG_LOGFILTER
  4201. * \brief Request log data
  4202. * \var UBXLOG_RETRIEVE::startNumber
  4203. * Index of first entry to be transferred
  4204. * \var UBXLOG_RETRIEVE::entryCount
  4205. * Number of log entries to transfer. The maximum
  4206. * is 256
  4207. * \var UBXLOG_RETRIEVE::version
  4208. * The version of this message
  4209. * \note Set to 0
  4210. * \var UBXLOG_RETRIEVE::reserved[3]
  4211. * Reserved
  4212. */
  4213. /*!
  4214. * \struct UBXLOG_STRING
  4215. * This message can be used to store an arbitrary byte string in the on-board flash memory.
  4216. * The maximum length that can be stored is 256 bytes.
  4217. * \note this message has variable payload
  4218. * \brief Store arbitrary string in on-board Flash memory
  4219. */
  4220. /*!
  4221. * \struct UBXMON_HW2
  4222. * Status of different aspects of the hardware such as Imbalance, Low-Level Configuration
  4223. * and POST Results.
  4224. * The first four parameters of this message represent the complex signal from the RF front
  4225. * end. The following rules of thumb apply:
  4226. * - The smaller the absolute value of the variable ofsI and ofsQ respectively, the better.
  4227. * - Ideally, the magnitude of the I-part (UBXMON_HW2::magI) and the Q-part (UBXMON_HW2::magQ) of the complex signal
  4228. * should be the same.
  4229. * \brief Extended Hardware Status
  4230. *
  4231. * \var UBXMON_HW2::ofsI
  4232. * Imbalance of I-part of complex signal, scaled.
  4233. * \note
  4234. * - -128 - max. negative imbalance
  4235. * - 127 - max. positive imbalance
  4236. * \var UBXMON_HW2::magI
  4237. * Magnitude of I-part of complex signal, scaled
  4238. * \note
  4239. * - 0 - no signal
  4240. * - 255 = max. magnitude
  4241. * \var UBXMON_HW2::ofsQ
  4242. * Imbalance of Q-part of complex signal, scaled.
  4243. * \note
  4244. * - -128 = max. negative imbalance
  4245. * - 127 = max. positive imbalance
  4246. * \var UBXMON_HW2::magQ
  4247. * Magnitude of Q-part of complex signal, scaled
  4248. * \note
  4249. * - 0 - no signal
  4250. * - 255 = max. magnitude
  4251. * \var UBXMON_HW2::cfgSource
  4252. * Source of low-level configuration
  4253. * \todo Following values will be covered with enum in future
  4254. * - 114 - ROM
  4255. * - 111 - OTP
  4256. * - 112 - config pins
  4257. * - 102 - flash image)
  4258. * \var UBXMON_HW2::reserved0[3]
  4259. * Reserved
  4260. * \var UBXMON_HW2::lowLevCfg
  4261. * Low-level configuration
  4262. * \var UBXMON_HW2::reserved1[2]
  4263. * Reserved
  4264. * \var UBXMON_HW2::postStatus
  4265. * POST status word
  4266. * \var UBXMON_HW2::reserved2
  4267. * Reserved
  4268. */
  4269. /*!
  4270. * \struct UBXHWFlags
  4271. * \brief This structure describes UBXMON_HW::flags value
  4272. * \var UBXHWFlags::UBXHWFlagsRTCCalib
  4273. * RTC is calibrated
  4274. * \var UBXHWFlags::UBXHWFlagsSafeBoot
  4275. * SafeBoot mode
  4276. * - 0 - inactive
  4277. * - 1 - active
  4278. * \var UBXHWFlags::UBXHWFlagsJammingState
  4279. * Output from Jamming/Interference Monitor
  4280. * \todo Following values will be covered with enum in future
  4281. * - 0 - unknown or feature disabled
  4282. * - 1 - ok - no significant jamming
  4283. * - 2 - warning - interference visible but fix OK
  4284. * - 3 - critical - interference visible and no fix
  4285. */
  4286. /*!
  4287. * \struct UBXMON_HW
  4288. * Status of different aspect of the hardware, such as Antenna, PIO/Peripheral Pins, Noise
  4289. * Level, Automatic Gain Control (AGC)
  4290. * \brief Hardware Status
  4291. *
  4292. * \var UBXMON_HW::pinSel
  4293. * Mask of Pins Set as Peripheral/PIO
  4294. * \var UBXMON_HW::pinBank
  4295. * Mask of Pins Set as Bank A/B
  4296. * \var UBXMON_HW::pinDir
  4297. * Mask of Pins Set as Input/Output
  4298. * \var UBXMON_HW::pinVal
  4299. * Mask of Pins Value Low/High
  4300. * \var UBXMON_HW::noisePerMS
  4301. * Noise Level as measured by the GPS Core
  4302. * \var UBXMON_HW::agcCnt
  4303. * AGC Monitor
  4304. * \note counts SIGHI xor SIGLO
  4305. * \note Range 0 to 8191
  4306. * \var UBXMON_HW::aStatus
  4307. * Status of the Antenna Supervisor State Machine
  4308. * \todo Following values will be covered with enum in future
  4309. * - 0 - INIT
  4310. * - 1 - DONTKNOW
  4311. * - 2 - OK
  4312. * - 3 - SHORT
  4313. * - 4 - OPEN
  4314. * \var UBXMON_HW::aPower
  4315. * Current PowerStatus of Antenna
  4316. * \todo Following values will be covered with enum in future
  4317. * - 0 - OFF
  4318. * - 1 - ON
  4319. * - 2 - DONTKNOW
  4320. * \var UBXMON_HW::flags
  4321. * Flags
  4322. * \see #UBXHWFlags to fill this field
  4323. * \var UBXMON_HW::reserved1
  4324. * Reserved
  4325. * \var UBXMON_HW::usedMask
  4326. * Mask of Pins that are used by the Virtual Pin
  4327. * Manager
  4328. * \var UBXMON_HW::VP[17]
  4329. * Array of Pin Mappings for each of the 17
  4330. * Physical Pins
  4331. * \var UBXMON_HW::jamInd
  4332. * CW Jamming indicator, scaled
  4333. * \todo Following values will be covered with enum in future
  4334. * - 0 - no CW jamming
  4335. * - 255 - strong CW jamming)
  4336. * \var UBXMON_HW::reserved3
  4337. * Reserved
  4338. * \var UBXMON_HW::pinIrq
  4339. * Mask of Pins Value using the PIO Irq
  4340. * \var UBXMON_HW::pullH
  4341. * Mask of Pins Value using the PIO Pull High Resistor
  4342. * \var UBXMON_HW::pullL
  4343. * Mask of Pins Value using the PIO Pull Low Resistor
  4344. */
  4345. /*!
  4346. * \struct UBXMON_IO_PART
  4347. * This message is part of #UBXMON_IO
  4348. * \brief I/O port status
  4349. * \var UBXMON_IO_PART::rxBytes
  4350. * Number of bytes ever received
  4351. * \var UBXMON_IO_PART::txBytes
  4352. * Number of bytes ever sent
  4353. * \var UBXMON_IO_PART::parityErrs
  4354. * Number of 100ms timeslots with parity errors
  4355. * \var UBXMON_IO_PART::framingErrs
  4356. * Number of 100ms timeslots with framing errors
  4357. * \var UBXMON_IO_PART::overrunErrs
  4358. * Number of 100ms timeslots with overrun errors
  4359. * \var UBXMON_IO_PART::breakCond
  4360. * Number of 100ms timeslots with break conditions
  4361. * \var UBXMON_IO_PART::rxBusy
  4362. * Flag is receiver is busy
  4363. * \var UBXMON_IO_PART::txBusy
  4364. * Flag is transmitter is busy
  4365. * \var UBXMON_IO_PART::reserved1
  4366. * Reserved
  4367. */
  4368. /*!
  4369. * \struct UBXMON_IO
  4370. * \note The size of the message is determined by the number of ports 'N' the receiver supports, i.e.
  4371. * on u-blox 5 the number of ports is 6.
  4372. * \note this message has variable payload of #UBXMON_IO_PART type.
  4373. * It depends of UBX_IO_PORTS_NUM macro that is 6 by default.
  4374. * Redefine this macro otherwise.
  4375. * \brief I/O Subsystem Status
  4376. * \var UBXMON_IO::ioPortInfo
  4377. * I/O ports information scope
  4378. * \see #UBXMON_IO_PART to fill this filed
  4379. */
  4380. /*!
  4381. * \struct UBXMON_MSGPP
  4382. * \brief Message Parse and Process Status
  4383. *
  4384. * \var UBXMON_MSGPP::msg1[8]
  4385. * Number of successfully parsed messages for
  4386. * each protocol on port 0
  4387. * \var UBXMON_MSGPP::msg2[8]
  4388. * Number of successfully parsed messages for
  4389. * each protocol on port 1
  4390. * \var UBXMON_MSGPP::msg3[8]
  4391. * Number of successfully parsed messages for
  4392. * each protocol on port 2
  4393. * \var UBXMON_MSGPP::msg4[8]
  4394. * Number of successfully parsed messages for
  4395. * each protocol on port 3
  4396. * \var UBXMON_MSGPP::msg5[8]
  4397. * Number of successfully parsed messages for
  4398. * each protocol on port 4
  4399. * \var UBXMON_MSGPP::msg6[8]
  4400. * Number of successfully parsed messages for
  4401. * each protocol on port 5
  4402. * \var UBXMON_MSGPP::skipped[6]
  4403. * Number skipped bytes for each port
  4404. */
  4405. /*!
  4406. * \struct UBXMON_RXBUF
  4407. * \brief Receiver Buffer Status
  4408. *
  4409. * \var UBXMON_RXBUF::pending[6]
  4410. * Number of bytes pending in receiver buffer for each target
  4411. * \var UBXMON_RXBUF::usage[6]
  4412. * Maximum usage receiver buffer during the last sysmon period for each target
  4413. * \note Units %
  4414. * \var UBXMON_RXBUF::peakUsage[6]
  4415. * Maximum usage receiver buffer for each target
  4416. * \note Units %
  4417. */
  4418. /*!
  4419. * \struct UBXMON_RXR
  4420. * The receiver ready message is sent when the receiver changes from or to backup mode.
  4421. * \brief Receiver Status Information
  4422. *
  4423. * \var UBXMON_RXR::flags
  4424. * Receiver status flags
  4425. * \see #UBXRXRFlags to fill this field
  4426. */
  4427. /*!
  4428. * \struct UBXMON_TXBUF
  4429. * \brief Transmitter Buffer Status
  4430. *
  4431. * \var UBXMON_TXBUF::pending[6]
  4432. * Number of bytes pending in transmitter buffefor each target
  4433. * \var UBXMON_TXBUF::usage[6]
  4434. * Maximum usage transmitter buffer during the
  4435. * last sysmon period for each target
  4436. * \note Units %
  4437. * \var UBXMON_TXBUF::peakUsage[6]
  4438. * Maximum usage transmitter buffer for each
  4439. * target
  4440. * \note Units %
  4441. * \var UBXMON_TXBUF::tUsage
  4442. * Maximum usage of transmitter buffer during
  4443. * the last sysmon period for all targets
  4444. * \note Units %
  4445. * \var UBXMON_TXBUF::tPeakusage
  4446. * Maximum usage of transmitter buffer for all
  4447. * targets
  4448. * \var UBXMON_TXBUF::errors
  4449. * Error bitmask
  4450. * \todo Bitmask will be implemented in future
  4451. * \var UBXMON_TXBUF::reserved1
  4452. * Reserved
  4453. */
  4454. /*!
  4455. * \struct UBXMON_VER_POLL
  4456. * \note No payload
  4457. * \brief Poll Receiver/Software Version
  4458. */
  4459. /*!
  4460. * \struct UBXMON_VER
  4461. * \brief Receiver Software Version
  4462. * \note Variable payload of #UBXMON_VER_PART type
  4463. * \var UBXMON_VER::swVersion[30]
  4464. * Zero-terminated Software Version String
  4465. * \var UBXMON_VER::hwVersion[10]
  4466. * Zero-terminated Hardware Version String
  4467. */
  4468. /*!
  4469. * \struct UBXMON_VER_PART
  4470. * Extended receiver/software information.
  4471. * If the receiver's firmware is running from flash,
  4472. * the first extension field will contain the Software
  4473. * Version String of the underlying ROM.
  4474. * Additional fields may also indicate the
  4475. * supported protocol version and any product
  4476. * variants, capabilities or extensions.
  4477. * \brief This structure is variable payload for #UBXMON_VER
  4478. * \var UBXMON_VER_PART::extension[30]
  4479. * See structure descruption
  4480. */
  4481. /*!
  4482. * \struct UBXNAV_AOPSTATUS
  4483. * This message provides information on the current availability of AssistNow Autonomous
  4484. * data and the current state of the subsystem on the receiver. For example, a host application
  4485. * can determine the optimal time to shut down the receiver by monitoring the status field
  4486. * for a steady 0. See the chapter "AssistNow Autonomous"(u-blox© official documentation) in the receiver description for
  4487. * details on this feature.
  4488. * \brief AssistNow Autonomous Status
  4489. * \var UBXNAV_AOPSTATUS::iTOW
  4490. * GPS time of week of the navigation epoch.
  4491. * See the description of iTOW (u-blox© official documentation) for details.
  4492. * \var UBXNAV_AOPSTATUS::aopCfg
  4493. * AssistNow Autonomous configuration
  4494. * \see #UBXAOPCfg to fill this field
  4495. * \var UBXNAV_AOPSTATUS::status
  4496. * AssistNow Autonomous subsystem is idle or running
  4497. * \see #UBXAOPStatus to fill this field
  4498. * \var UBXNAV_AOPSTATUS::reserved0
  4499. * Reserved
  4500. * \note Set to 0
  4501. * \var UBXNAV_AOPSTATUS::reserved1
  4502. * Reserved
  4503. * \note Set to 0
  4504. * \var UBXNAV_AOPSTATUS::availGPS
  4505. * data availability mask for GPS SVs
  4506. * \note bits 0-31 correspond to GPS PRN 1-32
  4507. * \var UBXNAV_AOPSTATUS::reserved2
  4508. * Reserved
  4509. * \note Set to 0
  4510. * \var UBXNAV_AOPSTATUS::reserved3
  4511. * Reserved
  4512. * \note Set to 0
  4513. */
  4514. /*!
  4515. * \struct UBXNAV_CLOCK
  4516. * \brief Clock Solution
  4517. *
  4518. * \var UBXNAV_CLOCK::iTOW
  4519. * GPS time of week of the navigation epoch.
  4520. * See the description of iTOW (u-blox© official documentation) for details.
  4521. * \var UBXNAV_CLOCK::clkB
  4522. * Clock bias
  4523. * \var UBXNAV_CLOCK::clkD
  4524. * Clock drift
  4525. * \var UBXNAV_CLOCK::tAcc
  4526. * Time accuracy estimate
  4527. * \var UBXNAV_CLOCK::fAcc
  4528. * Frequency accuracy estimate
  4529. */
  4530. /*!
  4531. * \struct UBXNAV_DGPS
  4532. * This message outputs the DGPS correction data that has been applied to the current NAV
  4533. * Solution. See also the notes on the "RTCM protocol"(u-blox© official documentation).
  4534. * \note This message has variable payload of #UBXNAV_DGPS_PART type
  4535. * \brief DGPS Data Used for NAV
  4536. *
  4537. * \var UBXNAV_DGPS::iTOW
  4538. * GPS time of week of the navigation epoch.
  4539. * See the description of iTOW (u-blox© official documentation) for details.
  4540. * \var UBXNAV_DGPS::age
  4541. * Age of newest correction data
  4542. * \var UBXNAV_DGPS::baseId
  4543. * DGPS basestation identifier
  4544. * \var UBXNAV_DGPS::baseHealth
  4545. * DGPS basestation health status
  4546. * \var UBXNAV_DGPS::numCh
  4547. * Number of channels for which correction data is following
  4548. * \var UBXNAV_DGPS::status
  4549. * DGPS correction type status
  4550. * \todo Following values will be covered with enum in future
  4551. * - 0x00 - none
  4552. * - 0x01 - PR+PRR correction
  4553. * \var UBXNAV_DGPS::reserved1
  4554. * Reserved
  4555. */
  4556. /*!
  4557. * \struct UBXDGPSFlags
  4558. * This structure implemets UBXNAV_DGPS_PART::flags
  4559. * \brief #UBXNAV_DGPS_PART flags
  4560. * \var UBXDGPSFlags::channel
  4561. * GPS channel number this SV is on
  4562. * \var UBXDGPSFlags::dgpsUsed
  4563. * DGPS used for this SV
  4564. */
  4565. /*!
  4566. * \struct UBXNAV_DGPS_PART
  4567. * \brief This sturcture implements variable payload for #UBXNAV_DGPS
  4568. *
  4569. * \var UBXNAV_DGPS_PART::svid
  4570. * Satellite ID
  4571. * \var UBXNAV_DGPS_PART::flags
  4572. * Channel number and usage
  4573. * \var UBXNAV_DGPS_PART::ageC
  4574. * Age of latest correction data
  4575. * \var UBXNAV_DGPS_PART::prc
  4576. * Pseudorange correction
  4577. * \var UBXNAV_DGPS_PART::prrc
  4578. * Pseudorange rate correction
  4579. */
  4580. /*!
  4581. * \struct UBXNAV_DOP
  4582. * - DOP values are dimensionless.
  4583. * - All DOP values are scaled by a factor of 100. If the unit transmits a value of e.g. 156, the
  4584. * DOP value is 1.56.
  4585. * \brief Dilution of precision
  4586. *
  4587. * \var UBXNAV_DOP::iTOW
  4588. * GPS time of week of the navigation epoch.
  4589. * See the description of iTOW (u-blox© official documentation) for details.
  4590. * \var UBXNAV_DOP::gDOP
  4591. * Geometric DOP
  4592. * \var UBXNAV_DOP::pDOP
  4593. * Position DOP
  4594. * \var UBXNAV_DOP::tDOP
  4595. * Time DOP
  4596. * \var UBXNAV_DOP::vDOP
  4597. * Vertical DOP
  4598. * \var UBXNAV_DOP::hDOP
  4599. * Horizontal DOP
  4600. * \var UBXNAV_DOP::nDOP
  4601. * Northing DOP
  4602. * \var UBXNAV_DOP::eDOP
  4603. * Easting DOP
  4604. */
  4605. /*!
  4606. * \struct UBXNAV_POSECEF
  4607. * \brief Position Solution in ECEF
  4608. * \var UBXNAV_POSECEF::iTOW
  4609. * GPS time of week of the navigation epoch.
  4610. * See the description of iTOW (u-blox© official documentation) for details.
  4611. * \var UBXNAV_POSECEF::ecefX
  4612. * ECEF X coordinate
  4613. * \var UBXNAV_POSECEF::ecefY
  4614. * ECEF Y coordinate
  4615. * \var UBXNAV_POSECEF::ecefZ
  4616. * ECEF Z coordinate
  4617. * \var UBXNAV_POSECEF::pAcc
  4618. * Position Accuracy Estimate
  4619. */
  4620. /*!
  4621. * \struct UBXNAV_POSLLH
  4622. * This message outputs the Geodetic position in the currently selected ellipsoid. The default is
  4623. * the WGS84 Ellipsoid, but can be changed with the message CFG-DAT.
  4624. * \warning See important comments concerning validity of position given in section
  4625. * Navigation Output Filters(u-blox© official documentation).
  4626. * \brief Geodetic Position Solution
  4627. * GPS time of week of the navigation epoch.
  4628. * See the description of iTOW (u-blox© official documentation) for details.
  4629. * \var UBXNAV_POSLLH::iTOW
  4630. * GPS time of week of the navigation epoch.
  4631. * See the description of iTOW (u-blox© official documentation) for details.
  4632. * \var UBXNAV_POSLLH::lon
  4633. * Longitude
  4634. * \var UBXNAV_POSLLH::lat
  4635. * Latitude
  4636. * \var UBXNAV_POSLLH::height
  4637. * Height above ellipsoid
  4638. * \var UBXNAV_POSLLH::hMSL
  4639. * Height above mean sea level
  4640. * \var UBXNAV_POSLLH::hAcc
  4641. * Horizontal accuracy estimate
  4642. * \var UBXNAV_POSLLH::vAcc
  4643. * Vertical accuracy estimate
  4644. */
  4645. /*!
  4646. * \struct UBXPVTFlags
  4647. * \brief this structure implements UBXNAV_PVT::flags
  4648. * \var gnssFixOk
  4649. * A valid fix (i.e within DOP & accuracy masks)
  4650. * \var diffSoln:1
  4651. * 1 if differential corrections were applied
  4652. * \var psmState:3
  4653. * Power Save Mode state
  4654. * \see #UBXPVTPSMStates to fill this field
  4655. */
  4656. /*!
  4657. * \struct UBXNAV_PVT
  4658. * This message combines position, velocity and time solution, including accuracy figures
  4659. * \brief Navigation Position Velocity Time Solution
  4660. * \note that during a leap second there may be more (or less) than 60 seconds in a
  4661. * minute.\n
  4662. * See the description of leap seconds(u-blox© official documentation) for details.
  4663. * \var UBXNAV_PVT::iTOW
  4664. * GPS time of week of the navigation epoch.
  4665. * See the description of iTOW (u-blox© official documentation) for details.
  4666. * \var UBXNAV_PVT::year
  4667. * Year (UTC)
  4668. * \note Range 1-65635
  4669. * \var UBXNAV_PVT::month
  4670. * Month
  4671. * \note Range 1-12
  4672. * \var UBXNAV_PVT::day
  4673. * Day
  4674. * \note Range 1-31
  4675. * \var UBXNAV_PVT::hour
  4676. * Hour
  4677. * \note Range 0-23
  4678. * \var UBXNAV_PVT::minute
  4679. * Minute
  4680. * \note Range 0-59
  4681. * \var UBXNAV_PVT::second
  4682. * Second
  4683. * \note Range 0-60
  4684. * \var UBXNAV_PVT::valid
  4685. * Validity Flags
  4686. * \see #UBXPVTValid to fill this field
  4687. * \var UBXNAV_PVT::tAcc
  4688. * Time accuracy estimate
  4689. * \var UBXNAV_PVT::nano
  4690. * Fraction of second
  4691. * \note Range -1e9 .. 1e9
  4692. * \var UBXNAV_PVT::fixType
  4693. * GNSSfix Type
  4694. * \see #UBXGPSFix to fill this field
  4695. * \var UBXNAV_PVT::flags
  4696. * Fix Status Flags
  4697. * \see #UBXPVTFlags to fill this field
  4698. * \var UBXNAV_PVT::reserved1
  4699. * Reserved
  4700. * \var UBXNAV_PVT::numSV
  4701. * Number of satellites used in Nav Solution
  4702. * \var UBXNAV_PVT::lon
  4703. * Longitude
  4704. * \var UBXNAV_PVT::lat
  4705. * Latitude
  4706. * \var UBXNAV_PVT::height
  4707. * Height above Ellipsoid
  4708. * \var UBXNAV_PVT::hMSL
  4709. * Height above mean sea level
  4710. * \var UBXNAV_PVT::hAcc
  4711. * Horizontal Accuracy Estimate
  4712. * \var UBXNAV_PVT::vAcc
  4713. * Vertical Accuracy Estimate
  4714. * \var UBXNAV_PVT::velN
  4715. * NED north velocity
  4716. * \var UBXNAV_PVT::velE
  4717. * NED east velocity
  4718. * \var UBXNAV_PVT::velD
  4719. * NED down velocity
  4720. * \var UBXNAV_PVT::gSpeed
  4721. * Ground Speed (2-D)
  4722. * \var UBXNAV_PVT::heading
  4723. * Heading of motion 2-D
  4724. * \var UBXNAV_PVT::sAcc
  4725. * Speed Accuracy Estimate
  4726. * \var UBXNAV_PVT::headingAcc
  4727. * Heading Accuracy Estimate
  4728. * \var UBXNAV_PVT::pDOP
  4729. * Position DOP
  4730. * \var UBXNAV_PVT::reserved2
  4731. * Reserved
  4732. * \var UBXNAV_PVT::reserved3
  4733. * Reserved
  4734. */
  4735. /*!
  4736. * \struct UBXNAV_SBAS
  4737. * This message outputs the status of the SBAS sub system
  4738. * \note this message has variable payload of #UBXNAV_SBAS_PART type
  4739. * \brief SBAS Status Data
  4740. *
  4741. * \var UBXNAV_SBAS::iTOW
  4742. * GPS time of week of the navigation epoch.
  4743. * See the description of iTOW (u-blox© official documentation) for details.
  4744. * \var UBXNAV_SBAS::geo
  4745. * PRN Number of the GEO where correction and
  4746. * integrity data is used from
  4747. * \var UBXNAV_SBAS::mode
  4748. * SBAS Mode
  4749. * \todo Following values will be covered with enum in future
  4750. * - 0 Disabled
  4751. * - 1 Enabled Integrity
  4752. * - 3 Enabled Testmode
  4753. * \var UBXNAV_SBAS::sys
  4754. * SBAS System (WAAS/EGNOS/...)
  4755. * \todo Following values will be covered with enum in future
  4756. * - -1 Unknown
  4757. * - 0 WAAS
  4758. * - 1 EGNOS
  4759. * - 2 MSAS
  4760. * - 16 GPS
  4761. * \var UBXNAV_SBAS::service
  4762. * SBAS Services available
  4763. * \see #UBXSBASService to fill this field
  4764. * \var UBXNAV_SBAS::cnt
  4765. * Number of SV data following
  4766. * \var UBXNAV_SBAS::reserved0[3]
  4767. * Reserved
  4768. */
  4769. /*!
  4770. * \struct UBXNAV_SBAS_PART
  4771. * \brief Variable payload for #UBXNAV_SBAS
  4772. *
  4773. * \var UBXNAV_SBAS_PART::svid
  4774. * SV Id
  4775. * \var UBXNAV_SBAS_PART::flags
  4776. * Flags for this SV
  4777. * \var UBXNAV_SBAS_PART::udre
  4778. * Monitoring status
  4779. * \var UBXNAV_SBAS_PART::svSys
  4780. * System (WAAS/EGNOS/...) same as UBXNAV_SBAS::sys
  4781. * \var UBXNAV_SBAS_PART::svService
  4782. * Services available same as UBXNAV_SBAS::service
  4783. * \var UBXNAV_SBAS_PART::reserved1
  4784. * Reserved
  4785. * \var UBXNAV_SBAS_PART::prc
  4786. * Pseudo Range correction
  4787. * \var UBXNAV_SBAS_PART::reserved2
  4788. * Reserved
  4789. * \var UBXNAV_SBAS_PART::ic
  4790. * Ionosphere correction
  4791. */
  4792. /*!
  4793. * \struct UBXNAV_SOL
  4794. * This message combines position, velocity and time solution in ECEF, including accuracy figures.
  4795. * This message has only been retained for backwards compatibility; users are recommended
  4796. * to use the UBX-NAV-PVT message in preference.
  4797. * \brief Navigation Solution Information
  4798. *
  4799. * \var UBXNAV_SOL::iTOW
  4800. * GPS time of week of the navigation epoch.
  4801. * See the description of iTOW (u-blox© official documentation) for details.
  4802. * \var UBXNAV_SOL::fTOW
  4803. * Fractional part of iTOW
  4804. * The precise GPS time of week in seconds is:
  4805. * (UBXNAV_SOL::iTOW * 1e-3) + (UBXNAV_SOL::fTOW * 1e-9)
  4806. * \note Range +/-500000
  4807. * \var UBXNAV_SOL::week
  4808. * GPS week number of the navigation epoch
  4809. * \var UBXNAV_SOL::gpsFix
  4810. * GPS fix type
  4811. * \see #UBXGPSFix to fill this field
  4812. * \var UBXNAV_SOL::flags
  4813. * Fix Status Flags
  4814. * \see #UBXSBASSOLFlags to fill this field
  4815. * \var UBXNAV_SOL::ecefX
  4816. * ECEF X coordinate
  4817. * \var UBXNAV_SOL::ecefY
  4818. * ECEF Y coordinate
  4819. * \var UBXNAV_SOL::ecefZ
  4820. * ECEF Z coordinate
  4821. * \var UBXNAV_SOL::pAcc
  4822. * 3D Position Accuracy Estimate
  4823. * \var UBXNAV_SOL::ecefVX
  4824. * ECEF X velocity
  4825. * \var UBXNAV_SOL::ecefVY
  4826. * ECEF Y velocity
  4827. * \var UBXNAV_SOL::ecefVZ
  4828. * ECEF Z velocity
  4829. * \var UBXNAV_SOL::sAcc
  4830. * Speed Accuracy Estimate
  4831. * \var UBXNAV_SOL::pDOP
  4832. * Position DOP
  4833. * \var UBXNAV_SOL::reserved1
  4834. * Reserved
  4835. * \var UBXNAV_SOL::numSV
  4836. * Number of SVs used in Nav Solution
  4837. * \var UBXNAV_SOL::reserved2
  4838. * Reserved
  4839. */
  4840. /*!
  4841. * \struct UBXNAV_STATUS
  4842. * Validity of position and velocity given in.
  4843. * \warning See important comments concerningsection Navigation Output Filters(u-blox© official documentation).
  4844. * \brief Receiver Navigation Status
  4845. * \var UBXNAV_STATUS::iTOW
  4846. * GPS time of week of the navigation epoch.
  4847. * See the description of iTOW (u-blox© official documentation) for details.
  4848. * \var UBXNAV_STATUS::gpsFix
  4849. * GPSfix Type, this value does not qualify a fix as
  4850. * valid and within the limits
  4851. * \see #UBXGPSFix to fill this field
  4852. * \var UBXNAV_STATUS::flags
  4853. * Navigation Status Flags
  4854. * \see #UBXGPSFix to fill this field
  4855. * \var UBXNAV_STATUS::fixStat
  4856. * Fix Status Information
  4857. * \see #UBXSBASSOLFlags to fill this field
  4858. * \var UBXNAV_STATUS::flags2
  4859. * Further information about navigation output
  4860. * \todo Structure to fill this field will be implemtened in future
  4861. * - 0 -ACQUISITION [or when psm disabled]
  4862. * - 1 - TRACKING
  4863. * - 2 - POWER OPTIMIZED TRACKING
  4864. * - 3 - INACTIVE
  4865. * \var UBXNAV_STATUS::ttff
  4866. * Time to first fix (millisecond time tag)
  4867. * \var UBXNAV_STATUS::msss
  4868. * Milliseconds since Startup / Reset
  4869. */
  4870. /*!
  4871. * \struct UBXSVINFOGlobalFlags
  4872. * \brief Implements UBXNAV_SVINFO::globalFlags
  4873. * \var UBXSVINFOGlobalFlags::chipGen:3
  4874. * Chip hardware generation
  4875. * \see #UBXSVINFOChipGen to fill this field
  4876. */
  4877. /*!
  4878. * \struct UBXNAV_SVINFO
  4879. * \note this message has variable payload of #UBXNAV_SVINFO_PART type
  4880. * \brief Space Vehicle Information
  4881. *
  4882. * \var UBXNAV_SVINFO::iTOW
  4883. * GPS time of week of the navigation epoch.
  4884. * See the description of iTOW (u-blox© official documentation) for details.
  4885. * \var UBXNAV_SVINFO::numCh
  4886. * Number of channels
  4887. * \var UBXNAV_SVINFO::globalFlags
  4888. * Bitmask
  4889. * \var UBXNAV_SVINFO::reserved2
  4890. * Reserved
  4891. */
  4892. /*!
  4893. * \struct UBXSVINFOQuality
  4894. * \brief Implements UBXNAV_SVINFO_PART::quality
  4895. * \var UBXSVINFOQuality::qualityInd
  4896. * Signal Quality indicator
  4897. * \see #UBXSVINFOQualityId to fill this field
  4898. */
  4899. /*!
  4900. * \struct UBXNAV_SVINFO_PART
  4901. * \brief Variable payload for #UBXNAV_SVINFO
  4902. *
  4903. * \var UBXNAV_SVINFO_PART::chn
  4904. * Channel number, 255 for SVs not assigned to a channel
  4905. * \var UBXNAV_SVINFO_PART::svid
  4906. * Satellite ID, see Satellite numbering(u-blox© official documentation) for
  4907. * assignment
  4908. * \var UBXNAV_SVINFO_PART::flags
  4909. * Bitmask
  4910. * \see #UBXSVINFOFlags to fill this field
  4911. * \var UBXNAV_SVINFO_PART::quality
  4912. * Bitfield
  4913. * \see #UBXSVINFOQuality to fill this field
  4914. * \var UBXNAV_SVINFO_PART::cno
  4915. * Carrier to Noise Ratio (Signal Strength)
  4916. * \var UBXNAV_SVINFO_PART::elev
  4917. * Elevation in integer degrees
  4918. * \var UBXNAV_SVINFO_PART::azim
  4919. * Azimuth in integer degrees
  4920. * \var UBXNAV_SVINFO_PART::prRes
  4921. * Pseudo range residual in centimetres
  4922. */
  4923. /*!
  4924. * \struct UBXNAV_TIMEGPS
  4925. * This message reports the precise GPS time of the most recent navigation solution including
  4926. * validity falgs and an accuracy estimate.
  4927. * \brief GPS Time Solution
  4928. *
  4929. * \var UBXNAV_TIMEGPS::iTOW
  4930. * GPS time of week of the navigation epoch.
  4931. * See the description of iTOW (u-blox© official documentation) for details.
  4932. * \var UBXNAV_TIMEGPS::fTOW
  4933. * Fractional part of iTOW
  4934. * The precise GPS time of week in seconds is:
  4935. * (UBXNAV_SOL::iTOW * 1e-3) + (UBXNAV_SOL::fTOW * 1e-9)
  4936. * \var UBXNAV_TIMEGPS::week
  4937. * GPS week number of the navigation epoch
  4938. * \var UBXNAV_TIMEGPS::leapS
  4939. * GPS leap seconds
  4940. * \var UBXNAV_TIMEGPS::valid
  4941. * Validity Flags
  4942. * \see #UBXTIMEGPSValidityFlags to fill this field
  4943. * \var UBXNAV_TIMEGPS::tAcc
  4944. * Time Accuracy Estimate
  4945. */
  4946. /*!
  4947. * \struct UBXNAV_TIMEUTC
  4948. * Note that during a leap second there may be more (or less) than 60 seconds in a
  4949. * minute; see the description of leap seconds(u-blox© official documentation) for details.
  4950. * \brief UTC Time Solution
  4951. * \var UBXNAV_TIMEUTC::iTOW
  4952. * GPS time of week of the navigation epoch.
  4953. * See the description of iTOW (u-blox© official documentation) for details.
  4954. * \var UBXNAV_TIMEUTC::tAcc
  4955. * Time accuracy estimate (UTC)
  4956. * \var UBXNAV_TIMEUTC::nano
  4957. * Fraction of second
  4958. * \note Range -1e9 .. 1e9 (UTC)
  4959. * \var UBXNAV_TIMEUTC::year
  4960. * Year (UTC)
  4961. * \note Range 1-65635
  4962. * \var UBXNAV_TIMEUTC::month
  4963. * Month
  4964. * \note Range 1-12
  4965. * \var UBXNAV_TIMEUTC::day
  4966. * Day
  4967. * \note Range 1-31
  4968. * \var UBXNAV_TIMEUTC::hour
  4969. * Hour
  4970. * \note Range 0-23
  4971. * \var UBXNAV_TIMEUTC::minute
  4972. * Minute
  4973. * \note Range 0-59
  4974. * \var UBXNAV_TIMEUTC::second
  4975. * Second
  4976. * \var valid
  4977. * Validity Flags
  4978. * \see #UBXTIMEUTCValidityFlags to fill this field
  4979. */
  4980. /*!
  4981. * \struct UBXNAV_VELECEF
  4982. * See important comments concerning validity of velocity given in section
  4983. * Navigation Output Filters(u-blox© official documentation).
  4984. * \brief Velocity Solution in ECEF
  4985. * \var UBXNAV_VELECEF::iTOW
  4986. * GPS time of week of the navigation epoch.
  4987. * See the description of iTOW (u-blox© official documentation) for details.
  4988. * \var UBXNAV_VELECEF::ecefVX
  4989. * ECEF X velocity
  4990. * \var UBXNAV_VELECEF::ecefVY
  4991. * ECEF Y velocity
  4992. * \var UBXNAV_VELECEF::ecefVZ
  4993. * ECEF Z velocity
  4994. * \var UBXNAV_VELECEF::sAcc
  4995. * Speed accuracy estimate
  4996. */
  4997. /*!
  4998. * \struct UBXNAV_VELNED
  4999. * See important comments concerning validity of velocity given in section
  5000. * Navigation Output Filters(u-blox© official documentation).
  5001. * \brief Velocity Solution in NED
  5002. *
  5003. * \var UBXNAV_VELNED::iTOW
  5004. * GPS time of week of the navigation epoch.
  5005. * See the description of iTOW (u-blox© official documentation) for details.
  5006. * \var UBXNAV_VELNED::velN
  5007. * North velocity component
  5008. * \var UBXNAV_VELNED::velE
  5009. * East velocity component
  5010. * \var UBXNAV_VELNED::velD
  5011. * Down velocity component
  5012. * \var UBXNAV_VELNED::speed
  5013. * Speed (3-D)
  5014. * \var UBXNAV_VELNED::gSpeed
  5015. * Ground speed (2-D)
  5016. * \var UBXNAV_VELNED::heading
  5017. * Heading of motion 2-D
  5018. * \var UBXNAV_VELNED::sAcc
  5019. * Speed accuracy Estimate
  5020. * \var UBXNAV_VELNED::cAcc
  5021. * Course / Heading accuracy estimate
  5022. */
  5023. /*!
  5024. * \struct UBXRXM_ALM_POLL
  5025. * \note No payload
  5026. * \brief Poll GPS Constellation Almanac Data
  5027. */
  5028. /*!
  5029. * \struct UBXRXM_ALM_POLL_OPT
  5030. * \brief Poll GPS Constellation Almanac Data for a SV
  5031. *
  5032. * \var UBXRXM_ALM_POLL_OPT::svid
  5033. * SV ID for which the receiver shall return its Almanac Data
  5034. * \note Valid Range: 1..32
  5035. */
  5036. /*!
  5037. * \struct UBXRXM_ALM
  5038. * - If the WEEK Value is 0, DWRD0 to DWRD7 are not sent as the Almanac is not available
  5039. * for the given SV.
  5040. * - DWORD0 to DWORD7 contain the 8 words following the Hand-Over Word ( HOW )
  5041. * from the GPS navigation message, either pages 1 to 24 of sub-frame 5 or pages 2 to 10
  5042. * of subframe 4. See IS-GPS-200 for a full description of the contents of the Almanac
  5043. * pages.
  5044. * - In DWORD0 to DWORD7, the parity bits have been removed, and the 24 bits of data are
  5045. * located in Bits 0 to 23. Bits 24 to 31 shall be ignored.
  5046. * - Example: Parameter e (Eccentricity) from Almanac Subframe 4/5, Word 3, Bits 69-84
  5047. * within the subframe can be found in DWRD0, Bits 15-0 whereas Bit 0 is the LSB.
  5048. * \brief GPS Aiding Almanac Input/Output Message
  5049. *
  5050. * \deprecated This RMX messages marked as obsolete API use AID instead
  5051. * \var UBXRXM_ALM::svid
  5052. * SV ID for which this Almanac Data
  5053. * \note Valid Range: 1 .. 32 or 51, 56, 63.
  5054. * \var UBXRXM_ALM::week
  5055. * Issue Date of Almanac (GPS week number)
  5056. */
  5057. /*!
  5058. * \struct UBXRXM_ALM_OPT
  5059. * - If the WEEK Value is 0, DWRD0 to DWRD7 are not sent as the Almanac is not available
  5060. * for the given SV.
  5061. * - DWORD0 to DWORD7 contain the 8 words following the Hand-Over Word ( HOW )
  5062. * from the GPS navigation message, either pages 1 to 24 of sub-frame 5 or pages 2 to 10
  5063. * of subframe 4. See IS-GPS-200 for a full description of the contents of the Almanac
  5064. * pages.
  5065. * - In DWORD0 to DWORD7, the parity bits have been removed, and the 24 bits of data are
  5066. * located in Bits 0 to 23. Bits 24 to 31 shall be ignored.
  5067. * - Example: Parameter e (Eccentricity) from Almanac Subframe 4/5, Word 3, Bits 69-84
  5068. * within the subframe can be found in DWRD0, Bits 15-0 whereas Bit 0 is the LSB.
  5069. * \brief GPS Aiding Almanac Input/Output Message
  5070. * \deprecated This RMX messages marked as obsolete API use AID instead
  5071. * \var UBXRXM_ALM_OPT::svid
  5072. * SV ID for which this Almanac Data
  5073. * \note Valid Range: 1 .. 32 or 51, 56, 63.
  5074. * \var UBXRXM_ALM_OPT::week
  5075. * Issue Date of Almanac (GPS week number)
  5076. * \var UBXRXM_ALM_OPT::dwrd[8]
  5077. * Almanac Words
  5078. */
  5079. /*!
  5080. * \struct UBXRXM_EPH_POLL
  5081. * Poll GPS Constellation Data (Ephemeris) for all 32 SVs by sending this message to the
  5082. * receiver without any payload.
  5083. * \note No payload
  5084. * \brief Poll GPS Constellation Ephemeris Data
  5085. */
  5086. /*!
  5087. * \struct UBXRXM_EPH_POLL_OPT
  5088. * Poll GPS Constellation Data (Ephemeris) for an SV by sending this message to the receiver.
  5089. * \brief Poll GPS Constellation Ephemeris Data for a SV
  5090. *
  5091. * \var UBXRXM_EPH_POLL_OPT::svid
  5092. * SV ID for which this Almanac Data
  5093. * \note Valid Range: 1 .. 32 or 51, 56, 63.
  5094. */
  5095. /*!
  5096. * \struct UBXRXM_EPH
  5097. * - SF1D0 to SF3D7 is only sent if ephemeris is available for this SV. If not, the payload may
  5098. * be reduced to 8 Bytes, or all bytes are set to zero, indicating that this SV Number does
  5099. * not have valid ephemeris for the moment.
  5100. * - SF1D0 to SF3D7 contain the 24 words following the Hand-Over Word ( HOW ) from the
  5101. * GPS navigation message, subframes 1 to 3. See IS-GPS-200 for a full description of the
  5102. * contents of the Subframes.
  5103. * - In SF1D0 to SF3D7, the parity bits have been removed, and the 24 bits of data are
  5104. * located in Bits 0 to 23. Bits 24 to 31 shall be ignored.
  5105. * \brief GPS Aiding Ephemeris Input/Output Message
  5106. *
  5107. * \deprecated This RMX messages marked as obsolete API use AID instead
  5108. * \var UBXRXM_EPH::svid
  5109. * SV ID for which this Almanac Data
  5110. * \var UBXRXM_EPH::how
  5111. * Hand-Over Word of first Subframe. This is
  5112. * required if data is sent to the receiver.
  5113. * 0 indicates that no Ephemeris Data is following.
  5114. */
  5115. /*!
  5116. * \struct UBXRXM_EPH_OPT
  5117. * - SF1D0 to SF3D7 is only sent if ephemeris is available for this SV. If not, the payload may
  5118. * be reduced to 8 Bytes, or all bytes are set to zero, indicating that this SV Number does
  5119. * not have valid ephemeris for the moment.
  5120. * - SF1D0 to SF3D7 contain the 24 words following the Hand-Over Word ( HOW ) from the
  5121. * GPS navigation message, subframes 1 to 3. See IS-GPS-200 for a full description of the
  5122. * contents of the Subframes.
  5123. * - In SF1D0 to SF3D7, the parity bits have been removed, and the 24 bits of data are
  5124. * located in Bits 0 to 23. Bits 24 to 31 shall be ignored.
  5125. * \brief GPS Aiding Ephemeris Input/Output Message
  5126. *
  5127. * \deprecated This RMX messages marked as obsolete API use AID instead
  5128. * \var UBXRXM_EPH_OPT::svid
  5129. * SV ID for which this Almanac Data
  5130. * \var UBXRXM_EPH_OPT::how
  5131. * \var UBXRXM_EPH_OPT::sf1d[8]
  5132. * Subframe 1 Words 3..10 (SF1D0..SF1D7)
  5133. * \var UBXRXM_EPH_OPT::sf2d[8]
  5134. * Subframe 2 Words 3..10 (SF2D0..SF2D7)
  5135. * \var UBXRXM_EPH_OPT::sf3d[8]
  5136. * Subframe 3 Words 3..10 (SF3D0..SF3D7)
  5137. */
  5138. /*!
  5139. * \struct UBXRXM_PMREQ
  5140. * Request of a Power Management related task of the receiver.
  5141. * \brief Requests a Power Management task
  5142. * \var UBXRXM_PMREQ::duration
  5143. * Duration of the requested task
  5144. * \note Set to 0 for infinite duration
  5145. * \var UBXRXM_PMREQ::flags
  5146. * Task flags
  5147. * \see #UBXPMREQFlags to fill this field
  5148. */
  5149. /*!
  5150. * \struct UBXRXM_RAW
  5151. * This message contains all information needed to be able to generate a RINEX observation
  5152. * file.
  5153. * This message outputs pseudorange, doppler and carrier phase measurements for GPS
  5154. * satellites once signals have been synchronised. No other GNSS types are currently
  5155. * supported.
  5156. * \note This message has variable payload of #UBXRXM_RAW_PART type
  5157. * \brief Raw Measurement Data
  5158. *
  5159. * \var UBXRXM_RAW::rcvTow
  5160. * Measurement time of week in receiver local
  5161. * time
  5162. * \var UBXRXM_RAW::week
  5163. * Measurement week number in receiver local
  5164. * time
  5165. * \var UBXRXM_RAW::numSV
  5166. * Number of satellites following
  5167. * \var UBXRXM_RAW::reserved1
  5168. * Reserved
  5169. */
  5170. /*!
  5171. * \struct UBXRXM_RAW_PART
  5172. * \brief Variable payload for #UBXRXM_RAW
  5173. * \var UBXRXM_RAW_PART::cpMes
  5174. * Carrier phase measurement
  5175. * \var UBXRXM_RAW_PART::prMes
  5176. * Pseudorange measurement
  5177. * \var UBXRXM_RAW_PART::doMes
  5178. * Doppler measurement (positive sign for approaching satellites)
  5179. * \var UBXRXM_RAW_PART::sv
  5180. * Space Vehicle number
  5181. * \var UBXRXM_RAW_PART::mesQI
  5182. * Nav Measurements Quality Indicator:
  5183. * \note
  5184. * - >=4 - PR+DO OK
  5185. * - >=5 - PR+DO+CP OK
  5186. * - <6 - likely loss of carrier lock in previous interval
  5187. * \var UBXRXM_RAW_PART::cno
  5188. * Signal strength C/No
  5189. * \var UBXRXM_RAW_PART::lli
  5190. * Loss of lock indicator (RINEX definition)
  5191. */
  5192. /*!
  5193. * \struct UBXRXM_SFRB
  5194. * The content of one single subframe buffer
  5195. * For GPS satellites, the 10 dwrd values contain the parity checked subframe data for 10
  5196. * Words. Each dwrd has 24 Bits with valid data (Bits 23 to 0). The remaining 8 bits (31 to 24)
  5197. * have an undefined value. The direction within the Word is that the higher order bits are
  5198. * received from the SV first. Example: The Preamble can be found in dwrd[0], at bit position
  5199. * 23 down to 16. For more details on the data format please refer to the ICD-GPS-200C
  5200. * Interface document.
  5201. * For SBAS satellites, the 250 Bit message block can be found in dwrd[0] to dwrd[6] for the
  5202. * first 224 bits. The remaining 26 bits are in dwrd[7], whereas Bits 25 and 24 are the last two
  5203. * data bits, and Bits 23 down to 0 are the parity bits. For more information on SBAS data
  5204. * format, please refer to RTCA/DO-229C (MOPS), Appendix A.
  5205. * No other GNSS types are currently supported.
  5206. * \brief Subframe Buffer
  5207. * \var UBXRXM_SFRB::chn
  5208. * Channel Number
  5209. * \var UBXRXM_SFRB::svid
  5210. * ID of Satellite transmitting Subframe
  5211. * \var UBXRXM_SFRB::dwrd[10]
  5212. * Words of Data
  5213. */
  5214. /*!
  5215. * \struct UBXRXM_SVSI
  5216. * Status of the receiver manager knowledge about GPS Orbit Validity
  5217. * \note This message has variable payload of #UBXRXM_SVSI_PART type
  5218. * \brief SV Status Info
  5219. *
  5220. * \var UBXRXM_SVSI::iTOW
  5221. * GPS time of week of the navigation epoch.
  5222. * See the description of iTOW (u-blox© official documentation) for details.
  5223. * \var UBXRXM_SVSI::week
  5224. * GPS week number of the navigation epoch
  5225. * \var UBXRXM_SVSI::numVis
  5226. * Number of visible satellites
  5227. * \var UBXRXM_SVSI::numSV
  5228. * Number of per-SV data blocks following
  5229. */
  5230. /*!
  5231. * \struct UBXSVSISVFlags
  5232. * \brief Implements UBXRXM_SVSI_PART::svFlag
  5233. * \var UBXSVSISVFlags::ura
  5234. * Figure of Merit (URA)
  5235. * \note Range 0..15
  5236. * \var UBXSVSISVFlags::healthy
  5237. * SV healthy flag
  5238. * \var UBXSVSISVFlags::ephVal
  5239. * Ephemeris valid
  5240. * \var UBXSVSISVFlags::almVal
  5241. * Almanac valid
  5242. * \var UBXSVSISVFlags::notAvail
  5243. * SV not available
  5244. */
  5245. /*!
  5246. * \struct UBXSVSIAge
  5247. * \brief Implements UBXRXM_SVSI_PART::age
  5248. * \var UBXSVSIAge::almAge
  5249. * Age of ALM in days offset by 4
  5250. * i.e. the reference time may be in the future:
  5251. * ageOfAlm = (age & 0x0f) - 4
  5252. * \var UBXSVSIAge::ephAge
  5253. * Age of EPH in hours offset by 4.
  5254. * i.e. the reference time may be in the future:
  5255. * ageOfEph = ((age & 0xf0) >> 4) - 4
  5256. */
  5257. /*!
  5258. * \struct UBXRXM_SVSI_PART
  5259. * \brief Variable payload for #UBXRXM_SVSI
  5260. * \var UBXRXM_SVSI_PART::svid
  5261. * Satellite ID
  5262. * \var UBXRXM_SVSI_PART::svFlag
  5263. * Information Flags
  5264. * \see #UBXSVSISVFlags to fill this field
  5265. * \var UBXRXM_SVSI_PART::azim
  5266. * Azimuth
  5267. * \var UBXRXM_SVSI_PART::elev
  5268. * Elevation
  5269. * \var UBXRXM_SVSI_PART::age
  5270. * Age of Almanac and Ephemeris
  5271. * \see UBXSVSIAge to fill this field
  5272. */
  5273. /*!
  5274. * \struct UBXTM2Flags
  5275. * \brief Implements UBXTIM_TM2::flags
  5276. * \var UBXTM2Flags::mode
  5277. * Mode bitmask
  5278. * \see #UBXTM2FlagsMode to fill this field
  5279. * \var UBXTM2Flags::run
  5280. * Run state
  5281. * \see #UBXTM2FlagsRun to fill this field
  5282. * \var UBXTM2Flags::newFallingEdge
  5283. * New falling edge detected
  5284. * \var UBXTM2Flags::timeBase
  5285. * Time base
  5286. * \see #UBXTM2FlagsTimeBase to fill this field
  5287. * \var UBXTM2Flags::utc
  5288. * UTC availability
  5289. * \see #UBXTM2FlagsUTC to fill this field
  5290. * \var UBXTM2Flags::time
  5291. * Time is valid
  5292. * \see #UBXTM2FlagsTime to fill this field
  5293. * \var UBXTM2Flags::newRisingEdge
  5294. * New rising edge detected
  5295. */
  5296. /*!
  5297. * \struct UBXTIM_TM2
  5298. * This message contains information for high precision time stamping / pulse counting.
  5299. * The delay figures and timebase given in UBXCFG_TP5 are also applied to the time results
  5300. * output in this message.
  5301. * \brief Time mark data
  5302. *
  5303. * \var UBXTIM_TM2::ch
  5304. * Marker channel 0 or 1
  5305. * \var UBXTIM_TM2::flags
  5306. * Flags
  5307. * \see #UBXTM2Flags to fill this field
  5308. * \var UBXTIM_TM2::count
  5309. * Rising edge counter
  5310. * \var UBXTIM_TM2::wnR
  5311. * week number of last rising edge
  5312. * \var UBXTIM_TM2::wnF
  5313. * week number of last falling edge
  5314. * \var UBXTIM_TM2::towMsR
  5315. * tow of rising edge
  5316. * \var UBXTIM_TM2::towSubMsR
  5317. * millisecond fraction of tow of rising edge in
  5318. * nanoseconds
  5319. * \var UBXTIM_TM2::towMsF
  5320. * tow of falling edge
  5321. * \var UBXTIM_TM2::towSubMsF
  5322. * millisecond fraction of tow of falling edge in
  5323. * nanoseconds
  5324. * \var UBXTIM_TM2::accEst
  5325. * Accuracy estimate
  5326. */
  5327. /*!
  5328. * \struct UBXTIM_TP
  5329. * This message contains information for high precision timing. The recommended
  5330. * configuration when using this message is to set both the measurement rate (CFG-RATE)
  5331. * and the timepulse frequency (CFG-TP5) to 1Hz. For more information see section Time
  5332. * pulse.
  5333. * \brief Time Pulse Timedata
  5334. *
  5335. * \var UBXTIM_TP::towMS
  5336. * Time pulse time of week according to time base
  5337. * \var UBXTIM_TP::towSubMS
  5338. * Submillisecond part of TOWMS
  5339. * \var UBXTIM_TP::qErr
  5340. * Quantization error of time pulse.
  5341. * \var UBXTIM_TP::week
  5342. * Time pulse week number according to time
  5343. * base
  5344. * \var UBXTIM_TP::flags
  5345. * \see UBXTPFlags to fill this field
  5346. * \var UBXTIM_TP::reserved1
  5347. * Reserved
  5348. */
  5349. /*!
  5350. * \struct UBXVRFYFlags
  5351. * \brief Implements UBXTIM_VRFY::flags
  5352. *
  5353. * \var UBXVRFYFlags::src
  5354. * Aiding time source
  5355. * \see #UBXVRFYFlagsSource to fill this field
  5356. */
  5357. /*!
  5358. * \struct UBXTIM_VRFY
  5359. * \brief Sourced Time Verification
  5360. *
  5361. * \var UBXTIM_VRFY::itow
  5362. * Integer millisecond tow received by source
  5363. * \var UBXTIM_VRFY::frac
  5364. * Sub-millisecond part of tow
  5365. * \var UBXTIM_VRFY::deltaMs
  5366. * Integer milliseconds of delta time (current time minus sourced time)
  5367. * \var UBXTIM_VRFY::deltaNs
  5368. * Sub-millisecond part of delta time
  5369. * \var UBXTIM_VRFY::wno
  5370. * Week number
  5371. * \var UBXTIM_VRFY::flags
  5372. * Information flags
  5373. * \see #UBXVRFYFlags to fill this field
  5374. * \var UBXTIM_VRFY::reserved1
  5375. * Reserved
  5376. */
  5377. /*! \addtogroup Types
  5378. * @{
  5379. */
  5380. /*!
  5381. * \typedef UBXU1_t
  5382. * Unsigned char
  5383. * \note Size: 1 byte\n
  5384. * Range: 0..255
  5385. *
  5386. * \typedef UBXI1_t
  5387. * Signed char
  5388. * \note Size: 1 byte\n
  5389. * Range: -128..127
  5390. *
  5391. * \typedef UBXX1_t
  5392. * Bitfield
  5393. * \note Size: 1 byte\n
  5394. * Range: 0b00000000..0b11111111
  5395. *
  5396. * \typedef UBXU2_t
  5397. * Unsigned short
  5398. * \note Size: 2 bytes\n
  5399. * Range: 0..65535
  5400. *
  5401. * \typedef UBXI2_t
  5402. * Signed short
  5403. * \note Size: 2 bytes\n
  5404. * Range: -32768..32767
  5405. *
  5406. * \typedef UBXX2_t
  5407. * Bitfield
  5408. * \note Size: 2 bytes\n
  5409. * Range: 0b0000000000000000..0b1111111111111111
  5410. *
  5411. * \typedef UBXU4_t
  5412. * Unsigned Long
  5413. * \note Size: 4 bytes\n
  5414. * Range: 0..4294967295
  5415. *
  5416. * \typedef UBXI4_t
  5417. * Unsigned Long
  5418. * \note Size: 4 bytes\n
  5419. * Range: -2147483648..2147483647
  5420. *
  5421. * \typedef UBXX4_t
  5422. * Bitfield
  5423. * \note Size: 4 bytes\n
  5424. * Range: 0b00000000000000000000000000000000..0b11111111111111111111111111111111
  5425. *
  5426. * \typedef UBXR4_t
  5427. * IEEE 754 Single Precision
  5428. * \note Size: 4 bytes\n
  5429. * Range: -1*2^+127..2^+127
  5430. *
  5431. * \typedef UBXR8_t
  5432. * IEEE 754 Double Precision
  5433. * \note Size: 8 bytes\n
  5434. * Range: -1*2^+1023..2^+1023
  5435. *
  5436. * \typedef UBXCH_t;
  5437. * ASCII / ISO 8859.1 Encoding
  5438. * \note Size: 1 byte\n
  5439. */
  5440. /*! @} */
  5441. /*! \addtogroup Functions
  5442. * @{
  5443. */
  5444. /*!
  5445. * \fn struct UBXMsgBuffer getAID_ALPSRV(struct UBXMsg* clientMgs, const struct UBXAlpFileInfo *fileInfo)
  5446. * \brief Getter for #UBXAID_ALPSRV message
  5447. * \param clientMgs
  5448. * u-blox module original request
  5449. * \param fileInfo
  5450. * full ALP file data
  5451. * \return
  5452. * Returns full UBXMsgBuffer including header and checksum
  5453. */
  5454. /*!
  5455. * \fn struct UBXMsgBuffer getCFG_MSG_POLL(enum UBXMessageClass msgClass, enum UBXMessageId msgId)
  5456. * This function construct full buffer for #UBXCFG_MSG_POLL message.
  5457. * \brief Getter for #UBXCFG_MSG_POLL
  5458. * \param msgClass
  5459. * Message Class
  5460. * \see #UBXMessageClass to fill this field
  5461. * \param msgId
  5462. * Message Id
  5463. * \see #UBXMessageId to fill this field
  5464. * \return
  5465. * Returns full UBXMsgBuffer including header and checksum
  5466. */
  5467. /*!
  5468. * \fn struct UBXMsgBuffer getCFG_MSG_RATE(enum UBXMessageClass msgClass, enum UBXMessageId msgId, UBXU1_t rate)
  5469. * This function construct full buffer for #UBXCFG_MSG_RATE message.
  5470. * \brief Getter for #UBXCFG_MSG_RATE
  5471. * \param msgClass
  5472. * Message Class
  5473. * \see #UBXMessageClass to fill this field
  5474. * \param msgId
  5475. * Message Id
  5476. * \see #UBXMessageId to fill this field
  5477. * \param rate
  5478. * Send rate on current Port
  5479. * \return
  5480. * Returns full UBXMsgBuffer including header and checksum
  5481. */
  5482. /*!
  5483. * \fn struct UBXMsgBuffer getCFG_MSG_RATES(enum UBXMessageClass msgClass, enum UBXMessageId msgId, UBXU1_t rate[])
  5484. * This function construct full buffer for #UBXCFG_MSG_RATES message.
  5485. * \brief Getter for #UBXCFG_MSG_RATES
  5486. * \param msgClass
  5487. * Message Class
  5488. * \see #UBXMessageClass to fill this field
  5489. * \param msgId
  5490. * Message Id
  5491. * \see #UBXMessageId to fill this field
  5492. * \param rate
  5493. * Send rate on I/O Port (6 Ports)
  5494. * \return
  5495. * Returns full UBXMsgBuffer including header and checksum
  5496. */
  5497. /*!
  5498. * \fn struct UBXMsgBuffer getCFG_RST(int mode, UBXU2_t mask)
  5499. * This function construct full buffer for #UBXCFG_RST message.
  5500. * \brief Getter for #UBXCFG_RST
  5501. * \param mode
  5502. * Mode bitmask
  5503. * \see UBXResetMode to fill this field
  5504. * \param mask
  5505. * BBR Sections to clear.
  5506. * \see #UBXBBRMask to fill this field manually
  5507. * \return
  5508. * Returns full UBXMsgBuffer including header and checksum
  5509. */
  5510. /*!
  5511. * \fn struct UBXMsgBuffer getCFG_RST_OPT(int mode, enum UBXBBRSpecialSets special)
  5512. * This function construct full buffer for #UBXCFG_RST_OPT message.
  5513. * \brief Getter for #UBXCFG_RST_OPT
  5514. * \param mode
  5515. * Mode bitmask
  5516. * \see UBXResetMode to fill this field
  5517. * \param special
  5518. * BBR Sections to clear.
  5519. * \see #UBXBBRSpecialSets for special sets
  5520. * \return
  5521. * Returns full UBXMsgBuffer including header and checksum
  5522. */
  5523. /*!
  5524. * \fn struct UBXMsgBuffer getCFG_TP5_POLL_OPT(enum UBXCFGTimepulses tpIdx)
  5525. * This function construct full buffer for #UBXCFG_TP5_POLL_OPT message.
  5526. * \brief Getter for #UBXCFG_TP5_POLL_OPT
  5527. * \param tpIdx
  5528. * Time pulse selection
  5529. * \see #UBXCFGTimepulses to fill this field
  5530. * \return
  5531. * Returns full UBXMsgBuffer including header and checksum
  5532. */
  5533. /*!
  5534. * \fn struct UBXMsgBuffer getCFG_TP5(enum UBXCFGTimepulses tpIdx, int16_t antCableDelay, int16_t rfGroupDelay,
  5535. u_int32_t freqPeriod, u_int32_t freqPeriodLock, u_int32_t pulseLenRatio,
  5536. u_int32_t pulseLenRatioLock, int32_t userConfigDelay, int32_t flags)
  5537. * This function construct full buffer for #UBXCFG_TP5 message.
  5538. * \brief Getter for #UBXCFG_TP5
  5539. * \param tpIdx
  5540. * Time pulse selection
  5541. * \see #UBXCFGTimepulses to fill this field
  5542. * \param antCableDelay
  5543. * Antenna cable delay
  5544. * \param rfGroupDelay
  5545. * RF group delay
  5546. * \param freqPeriod
  5547. * Frequency or period time
  5548. * \note Depending on setting of bit 'isFreq'
  5549. * \param freqPeriodLock
  5550. * Frequency or period time when locked to GPS
  5551. * time
  5552. * \note Only used if 'lockedOtherSet' is set
  5553. * \param pulseLenRatio
  5554. * Pulse length or duty cycle
  5555. * \note Depending on 'isLength'
  5556. * \param pulseLenRatioLock
  5557. * Pulse length or duty cycle when locked to GPS
  5558. * time
  5559. * \note only used if 'lockedOtherSet' is set
  5560. * \param userConfigDelay
  5561. * User configurable time pulse delay
  5562. * \param flags
  5563. * Configuration flags
  5564. * \return
  5565. * Returns full UBXMsgBuffer including header and checksum
  5566. */
  5567. /*!
  5568. * \fn getAID_ALM_POLL
  5569. * This function construct full buffer for #UBXAID_ALM_POLL message.
  5570. * \brief Getter for #UBXAID_ALM_POLL
  5571. * \return
  5572. * Returns full UBXMsgBuffer including header and checksum
  5573. */
  5574. /*!
  5575. * \fn struct UBXMsgBuffer getAID_ALM_POLL_OPT(UBXU1_t svid)
  5576. * This function construct full buffer for #UBXAID_ALM_POLL_OPT message.
  5577. * \brief Getter for #UBXAID_ALM_POLL_OPT
  5578. * \param svid
  5579. * SV ID for which the receiver shall return its
  5580. * Almanac Data (Valid Range: 1 .. 32 or 51, 56,
  5581. * 63).
  5582. * \return
  5583. * Returns full UBXMsgBuffer including header and checksum
  5584. */
  5585. /*!
  5586. * \fn struct UBXMsgBuffer getAID_ALM(UBXU4_t svid, UBXU4_t week)
  5587. * This function construct full buffer for #UBXAID_ALM message.
  5588. * \brief Getter for #UBXAID_ALM
  5589. * \param svid
  5590. * SV ID for which the receiver shall return its
  5591. * Almanac Data (Valid Range: 1 .. 32 or 51, 56,
  5592. * 63).
  5593. * \param week
  5594. * Issue Date of Almanac (GPS week number)
  5595. * \return
  5596. * Returns full UBXMsgBuffer including header and checksum
  5597. */
  5598. /*!
  5599. * \fn struct UBXMsgBuffer getAID_ALM_OPT(UBXU4_t svid, UBXU4_t week, UBXU4_t dwrd[8])
  5600. * This function construct full buffer for #UBXAID_ALM_OPT message.
  5601. * \brief Getter for #UBXAID_ALM_OPT
  5602. * \param svid
  5603. * SV ID for which the receiver shall return its
  5604. * Almanac Data (Valid Range: 1 .. 32 or 51, 56,
  5605. * 63).
  5606. * \param week
  5607. * Issue Date of Almanac (GPS week number)
  5608. * \param dwrd
  5609. * Almanac Words
  5610. * \return
  5611. * Returns full UBXMsgBuffer including header and checksum
  5612. */
  5613. /*!
  5614. * \fn struct UBXMsgBuffer getAID_ALP_POLL(UBXU4_t predTow,
  5615. UBXU4_t predDur,
  5616. UBXI4_t age,
  5617. UBXU2_t predWno,
  5618. UBXU2_t almWno,
  5619. UBXU1_t svs)
  5620. * This function construct full buffer for #UBXAID_ALP_POLL message.
  5621. * \brief Getter for #UBXAID_ALP_POLL
  5622. * \param predTow
  5623. * Prediction start time of week
  5624. * \param predDur
  5625. * Prediction duration from start of first data set to
  5626. * end of last data set
  5627. * \param age
  5628. * Current age of ALP data
  5629. * \param predWno
  5630. * Prediction start week number
  5631. * \param almWno
  5632. * Truncated week number of reference almanac
  5633. * \param svs
  5634. * Number of satellite data sets contained in the
  5635. * ALP UBXAID_ALP_POLL::data
  5636. * \return
  5637. * Returns full UBXMsgBuffer including header and checksum
  5638. */
  5639. /*!
  5640. * \fn getAID_ALP_END
  5641. * This function construct full buffer for #UBXAID_ALP_END message.
  5642. * \brief Getter for #UBXAID_ALP_END
  5643. * \return
  5644. * Returns full UBXMsgBuffer including header and checksum
  5645. */
  5646. /*!
  5647. * \fn struct UBXMsgBuffer getAID_ALP(UBXU2_t* chunk, int chunkSize)
  5648. * This function construct full buffer for #UBXAID_ALP message.
  5649. * \brief Getter for #UBXAID_ALP
  5650. * \param chunk
  5651. * ALP data chunk
  5652. * \param chunkSize
  5653. * size of chunk
  5654. * \return
  5655. * Returns full UBXMsgBuffer including header and checksum
  5656. */
  5657. /*!
  5658. * \fn getAID_AOP_POLL
  5659. * This function construct full buffer for #UBXAID_AOP_POLL message.
  5660. * \brief Getter for #UBXAID_AOP_POLL
  5661. * \return
  5662. * Returns full UBXMsgBuffer including header and checksum
  5663. */
  5664. /*!
  5665. * \fn struct UBXMsgBuffer getAID_AOP_POLL_OPT(UBXU1_t svid)
  5666. * This function construct full buffer for #UBXAID_AOP_POLL_OPT message.
  5667. * \brief Getter for #UBXAID_AOP_POLL_OPT
  5668. * \param svid
  5669. * GPS SV id for which the data is requested (valid range: 1..32).
  5670. * \return
  5671. * Returns full UBXMsgBuffer including header and checksum
  5672. */
  5673. /*!
  5674. * \fn struct UBXMsgBuffer getAID_AOP(UBXU1_t svid, UBXU1_t data[59])
  5675. * This function construct full buffer for #UBXAID_AOP message.
  5676. * \brief Getter for #UBXAID_AOP
  5677. * \param svid
  5678. * GPS SV id
  5679. * \param data
  5680. * AssistNow Autonomous data
  5681. * \return
  5682. * Returns full UBXMsgBuffer including header and checksum
  5683. */
  5684. /*!
  5685. * \fn struct UBXMsgBuffer getAID_AOP_OPT(UBXU1_t svid, UBXU1_t data[59], UBXU1_t optional0[48], UBXU1_t optional1[48], UBXU1_t optional2[48])
  5686. * This function construct full buffer for #UBXAID_AOP_OPT message.
  5687. * \brief Getter for #UBXAID_AOP_OPT
  5688. * \param svid
  5689. * GPS SV id
  5690. * \param data
  5691. * AssistNow Autonomous data
  5692. * \param optional0
  5693. * Optional data chunk 1/3
  5694. * \param optional1
  5695. * Optional data chunk 2/3
  5696. * \param optional2
  5697. * Optional data chunk 3/3
  5698. * \return
  5699. * Returns full UBXMsgBuffer including header and checksum
  5700. */
  5701. /*!
  5702. * \fn getAID_DATA_POLL
  5703. * This function construct full buffer for #UBXAID_DATA_POLL message.
  5704. * \brief Getter for #UBXAID_DATA_POLL
  5705. * \return
  5706. * Returns full UBXMsgBuffer including header and checksum
  5707. */
  5708. /*!
  5709. * \fn getAID_EPH_POLL
  5710. * This function construct full buffer for #UBXAID_EPH_POLL message.
  5711. * \brief Getter for #UBXAID_EPH_POLL
  5712. * \return
  5713. * Returns full UBXMsgBuffer including header and checksum
  5714. */
  5715. /*!
  5716. * \fn struct UBXMsgBuffer getAID_EPH_POLL_OPT(UBXU1_t svid)
  5717. * This function construct full buffer for #UBXAID_EPH_POLL_OPT message.
  5718. * \brief Getter for #UBXAID_EPH_POLL_OPT
  5719. * \param svid
  5720. * SV ID for which the receiver shall return its
  5721. * Ephemeris Data (Valid Range: 1 .. 32).
  5722. * \return
  5723. * Returns full UBXMsgBuffer including header and checksum
  5724. */
  5725. /*!
  5726. * \fn struct UBXMsgBuffer getAID_EPH(UBXU4_t svid, UBXU4_t how)
  5727. * This function construct full buffer for #UBXAID_EPH message.
  5728. * \brief Getter for #UBXAID_EPH
  5729. * \param svid
  5730. * SV ID for which this ephemeris data is
  5731. * \note Range: 1..32
  5732. * \param how
  5733. * Hand-Over Word of first Subframe. This is
  5734. * required if data is sent to the receiver.
  5735. * 0 indicates that no Ephemeris Data is following.
  5736. * \return
  5737. * Returns full UBXMsgBuffer including header and checksum
  5738. */
  5739. /*!
  5740. * \fn struct UBXMsgBuffer getAID_EPH_OPT(UBXU4_t svid, UBXU4_t how, UBXU4_t sf1d[8], UBXU4_t sf2d[8], UBXU4_t sf3d[8])
  5741. * This function construct full buffer for #UBXAID_EPH_OPT message.
  5742. * \brief Getter for #UBXAID_EPH_OPT
  5743. * \param svid
  5744. * SV ID for which this ephemeris data is
  5745. * \note Range: 1..32
  5746. * \param how
  5747. * Hand-Over Word of first Subframe. This is
  5748. * required if data is sent to the receiver.
  5749. * 0 indicates that no Ephemeris Data is following.
  5750. * \param sf1d
  5751. * Subframe 1 Words 3..10 (SF1D0..SF1D7)
  5752. * \param sf2d
  5753. * Subframe 2 Words 3..10 (SF1D0..SF1D7)
  5754. * \param sf3d
  5755. * Subframe 3 Words 3..10 (SF1D0..SF1D7)
  5756. * \return
  5757. * Returns full UBXMsgBuffer including header and checksum
  5758. */
  5759. /*!
  5760. * \fn getAID_HUI_POLL
  5761. * This function construct full buffer for #UBXAID_HUI_POLL message.
  5762. * \brief Getter for #UBXAID_HUI_POLL
  5763. * \return
  5764. * Returns full UBXMsgBuffer including header and checksum
  5765. */
  5766. /*!
  5767. * \fn struct UBXMsgBuffer getAID_HUI(UBXI4_t health, UBXR4_t utcA0, UBXR4_t utcA1,
  5768. UBXI4_t utcTOW, UBXI2_t utcWNT, UBXI2_t utcLS,
  5769. UBXI2_t utcWNF, UBXI2_t utcDN, UBXI2_t utcLSF,
  5770. UBXI2_t utcSpare, UBXR4_t klobA0, UBXR4_t klobA1,
  5771. UBXR4_t klobA2, UBXR4_t klobA3, UBXR4_t klobB0,
  5772. UBXR4_t klobB1, UBXR4_t klobB2, UBXR4_t klobB3,
  5773. UBXX2_t flags)
  5774. * This function construct full buffer for #UBXAID_HUI message.
  5775. * \brief Getter for #UBXAID_HUI
  5776. * \param health
  5777. * Bitmask, every bit represenst a GPS SV (1-32). If
  5778. * the bit is set the SV is healthy.
  5779. * \param utcA0
  5780. * UTC - parameter A0
  5781. * \param utcA1
  5782. * UTC - parameter A1
  5783. * \param utcTOW
  5784. * UTC - reference time of week
  5785. * \param utcWNT
  5786. * UTC - reference week number
  5787. * \param utcLS
  5788. * UTC - time difference due to leap seconds before event
  5789. * \param utcWNF
  5790. * UTC - week number when next leap second event occurs
  5791. * \param utcDN
  5792. * UTC - day of week when next leap second event occurs
  5793. * \param utcLSF
  5794. * UTC - time difference due to leap seconds after event
  5795. * \param utcSpare
  5796. * UTC - Spare to ensure structure is a multiple of 4 bytes
  5797. * \param klobA0
  5798. * Klobuchar - alpha 0
  5799. * \param klobA1
  5800. * Klobuchar - alpha 1
  5801. * \param klobA2
  5802. * Klobuchar - alpha 2
  5803. * \param klobA3
  5804. * Klobuchar - alpha 3
  5805. * \param klobB0
  5806. * Klobuchar - beta 0
  5807. * \param klobB1
  5808. * Klobuchar - beta 1
  5809. * \param klobB2
  5810. * Klobuchar - beta 2
  5811. * \param klobB3
  5812. * Klobuchar - beta 3
  5813. * \param flags
  5814. * Flags.
  5815. * \see #UBXHUIFlags to fill this field
  5816. * \return
  5817. * Returns full UBXMsgBuffer including header and checksum
  5818. */
  5819. /*!
  5820. * \fn getAID_INI_POLL
  5821. * This function construct full buffer for #UBXAID_INI_POLL message.
  5822. * \brief Getter for #UBXAID_INI_POLL
  5823. * \return
  5824. * Returns full UBXMsgBuffer including header and checksum
  5825. */
  5826. /*!
  5827. * \fn struct UBXMsgBuffer getAID_INI(UBXI1_t ecefXOrLat,
  5828. UBXI1_t ecefYOrLat,
  5829. UBXI1_t ecefZOrLat,
  5830. UBXU1_t posAcc,
  5831. UBXI1_t tmCfg,
  5832. UBXU2_t wnoOrDate,
  5833. UBXU4_t towOrDate,
  5834. UBXI4_t towNs,
  5835. UBXU4_t tAccMS,
  5836. UBXU4_t tAccNS,
  5837. UBXI4_t clkDOrFreq,
  5838. UBXU4_t clkDAccOrFreqAcc,
  5839. UBXX4_t flags)
  5840. * This function construct full buffer for #UBXAID_INI message.
  5841. * \brief Getter for #UBXAID_INI
  5842. * \param ecefXOrLat
  5843. * WGS84 ECEF X coordinate or latitude
  5844. * \param ecefYOrLat
  5845. * WGS84 ECEF Y coordinate or latitude
  5846. * \param ecefZOrLat
  5847. * WGS84 ECEF Z coordinate or latitude
  5848. * \param posAcc
  5849. * Position accuracy
  5850. * \param tmCfg
  5851. * Time mark configuration
  5852. * \see #UBXINItmCfg to fill this field
  5853. * \param wnoOrDate
  5854. * Actual week number or yearSince2000/Month (YYMM), depending on UBXAID_INI::flags
  5855. * \param towOrDate
  5856. * Actual time of week or
  5857. * DayOfMonth/Hour/Minute/Second
  5858. * (DDHHMMSS), depending on UBXAID_INI::flags
  5859. * \param towNs
  5860. * Fractional part of time of week
  5861. * \param tAccMS
  5862. * Milliseconds part of time accuracy
  5863. * \param tAccNS
  5864. * Nanoseconds part of time accuracy
  5865. * \param clkDOrFreq
  5866. * Clock drift or frequency, depending on UBXAID_INI::flags
  5867. * \param clkDAccOrFreqAcc
  5868. * Accuracy of clock drift or frequency, depending on UBXAID_INI::flags
  5869. * \param flags
  5870. * Bitmask with the flags
  5871. * \return
  5872. * Returns full UBXMsgBuffer including header and checksum
  5873. */
  5874. /*!
  5875. * \fn struct UBXMsgBuffer getCFG_ANT(UBXX2_t flags, struct UBXANTPins pins)
  5876. * This function construct full buffer for #UBXCFG_ANT message.
  5877. * \brief Getter for #UBXCFG_ANT
  5878. * \param flags
  5879. * Antenna flag mask
  5880. * \see #UBXANTFlags to fill this field
  5881. * \param pins
  5882. * Antenna Pin Configuration
  5883. * \return
  5884. * Returns full UBXMsgBuffer including header and checksum
  5885. */
  5886. /*!
  5887. * \fn getCFG_ANT_POLL
  5888. * This function construct full buffer for #UBXCFG_ANT_POLL message.
  5889. * \brief Getter for #UBXCFG_ANT_POLL
  5890. * \return
  5891. * Returns full UBXMsgBuffer including header and checksum
  5892. */
  5893. /*!
  5894. * \fn struct UBXMsgBuffer getCFG_CFG(UBXX4_t clearMask, UBXX4_t saveMask, UBXX4_t loadMask)
  5895. * This function construct full buffer for #UBXCFG_CFG message.
  5896. * \brief Getter for #UBXCFG_CFG
  5897. * \param clearMask
  5898. * Mask with configuration sub-sections to Clear
  5899. * \note Load Default Configurations to Permanent
  5900. * Configurations in non-volatile memory
  5901. * \see #UBXCFGMask to fill this field
  5902. * \param saveMask
  5903. * Mask with configuration sub-section to Save
  5904. * \note Save Current Configuration to Non-volatile
  5905. * Memory
  5906. * \see #UBXCFGMask to fill this field
  5907. * \param loadMask
  5908. * Mask with configuration sub-sections to Load
  5909. * \note Load Permanent Configurations from
  5910. * Non-volatile Memory to Current
  5911. * Configurations
  5912. * \see #UBXCFGMask to fill this field
  5913. * \return
  5914. * Returns full UBXMsgBuffer including header and checksum
  5915. */
  5916. /*!
  5917. * \fn struct UBXMsgBuffer getCFG_CFG_OPT(UBXX4_t clearMask, UBXX4_t saveMask, UBXX4_t loadMask, UBXX1_t deviceMask)
  5918. * This function construct full buffer for #UBXCFG_CFG_OPT message.
  5919. * \brief Getter for #UBXCFG_CFG_OPT
  5920. * \param clearMask
  5921. * Mask with configuration sub-sections to Clear
  5922. * \note Load Default Configurations to Permanent
  5923. * Configurations in non-volatile memory
  5924. * \see #UBXCFGMask to fill this field
  5925. * \param saveMask
  5926. * Mask with configuration sub-section to Save
  5927. * \note Save Current Configuration to Non-volatile
  5928. * Memory
  5929. * \see #UBXCFGMask to fill this field
  5930. * \param loadMask
  5931. * Mask with configuration sub-sections to Load
  5932. * \note Load Permanent Configurations from
  5933. * Non-volatile Memory to Current
  5934. * Configurations
  5935. * \see #UBXCFGMask to fill this field
  5936. * \param deviceMask
  5937. * Mask which selects the devices for this
  5938. * command
  5939. * \see #UBXCFGDeviceMask to fill this field
  5940. * \return
  5941. * Returns full UBXMsgBuffer including header and checksum
  5942. */
  5943. /*!
  5944. * \fn struct UBXMsgBuffer getCFG_DAT_IN(UBXR8_t majA, UBXR8_t flat, UBXR4_t dX, UBXR4_t dY, UBXR4_t dZ, UBXR4_t rotX, UBXR4_t rotY, UBXR4_t rotZ, UBXR4_t scale)
  5945. * This function construct full buffer for #UBXCFG_DAT_IN message.
  5946. * \brief Getter for #UBXCFG_DAT_IN
  5947. * \param majA
  5948. * Semi-major Axis
  5949. * \note accepted range = 6,300,000.0 to 6,500,000.0 metres
  5950. * \param flat
  5951. * 1.0 / Flattening
  5952. * \note accepted range is 0.0 to 500.0
  5953. * \param dX
  5954. * X Axis shift at the origin
  5955. * \note accepted range is +/-5000.0 metres
  5956. * \param dY
  5957. * Y Axis shift at the origin
  5958. * \note accepted range is +/-5000.0 metres
  5959. * \param dZ
  5960. * Z Axis shift at the origin
  5961. * \note accepted range is +/-5000.0 metres
  5962. * \param rotX
  5963. * Rotation about the X Axis
  5964. * \note accepted range is +/-20.0 milli-arc seconds
  5965. * \param rotY
  5966. * Rotation about the Y Axis
  5967. * \note accepted range is +/-20.0 milli-arc seconds
  5968. * \param rotZ
  5969. * Rotation about the Z Axis
  5970. * \note accepted range is +/-20.0 milli-arc seconds
  5971. * \param scale
  5972. * Scale change
  5973. * \note accepted range is 0.0 to 50.0 parts per million
  5974. * \return
  5975. * Returns full UBXMsgBuffer including header and checksum
  5976. */
  5977. /*!
  5978. * \fn getCFG_DAT_POLL
  5979. * This function construct full buffer for #UBXCFG_DAT_POLL message.
  5980. * \brief Getter for #UBXCFG_DAT_POLL
  5981. * \return
  5982. * Returns full UBXMsgBuffer including header and checksum
  5983. */
  5984. /*!
  5985. * \fn getCFG_GNSS_POLL
  5986. * This function construct full buffer for #UBXCFG_GNSS_POLL message.
  5987. * \brief Getter for #UBXCFG_GNSS_POLL
  5988. * \return
  5989. * Returns full UBXMsgBuffer including header and checksum
  5990. */
  5991. /*!
  5992. * \fn struct UBXMsgBuffer getCFG_GNSS(UBXU1_t msgVer,
  5993. UBXU1_t numTrkChHw,
  5994. UBXU1_t numTrkChUse,
  5995. UBXU1_t numConfigBlocks,
  5996. struct UBXCFG_GNSS_PART* gnssPart)
  5997. * This function construct full buffer for #UBXCFG_GNSS message.
  5998. * \brief Getter for #UBXCFG_GNSS
  5999. * \param msgVer
  6000. * Message version
  6001. * \param numTrkChHw
  6002. * Number of tracking channels available in
  6003. * hardware
  6004. * \note Read only
  6005. * \param numTrkChUse
  6006. * Number of tracking channels to use
  6007. * \note Should be <= UBXCFG_GNSS::numTrkChHw
  6008. * \param numConfigBlocks
  6009. * Number of configuration blocks following
  6010. * \param gnssPart
  6011. * Variable payload part
  6012. * \return
  6013. * Returns full UBXMsgBuffer including header and checksum
  6014. */
  6015. /*!
  6016. * \fn struct UBXMsgBuffer getCFG_INF_POLL(UBXU1_t protocolId)
  6017. * This function construct full buffer for #UBXCFG_INF_POLL message.
  6018. * \brief Getter for #UBXCFG_INF_POLL
  6019. * \param protocolId
  6020. * Protocol Identifier, identifying the output
  6021. * protocol for this Poll Request.
  6022. * \see #UBXCFGProtocolIds to fill this field
  6023. * \return
  6024. * Returns full UBXMsgBuffer including header and checksum
  6025. */
  6026. /*!
  6027. * \fn struct UBXMsgBuffer getCFG_INF(struct UBXCFG_INF_PART* infPart, int infPartCount)
  6028. * This function construct full buffer for #UBXCFG_INF message.
  6029. * \brief Getter for #UBXCFG_INF
  6030. * \param infPart
  6031. * Variable payload
  6032. * \param infPartCount
  6033. * Variable payload count
  6034. * \return
  6035. * Returns full UBXMsgBuffer including header and checksum
  6036. */
  6037. /*!
  6038. * \fn getCFG_ITFM_POLL
  6039. * This function construct full buffer for #UBXCFG_ITFM_POLL message.
  6040. * \brief Getter for #UBXCFG_ITFM_POLL
  6041. * \return
  6042. * Returns full UBXMsgBuffer including header and checksum
  6043. */
  6044. /*!
  6045. * \fn struct UBXMsgBuffer getCFG_ITFM(struct UBXITFMConfig config,
  6046. struct UBXITFMConfig2 config2)
  6047. * This function construct full buffer for #UBXCFG_ITFM message.
  6048. * \brief Getter for #UBXCFG_ITFM
  6049. * \param config
  6050. * Interference config word
  6051. * \see #UBXITFMConfig to fill this field
  6052. * \param config2
  6053. * Extra settings for jamming/interference monitor
  6054. * \see #UBXITFMConfig2 to fill this field
  6055. * \return
  6056. * Returns full UBXMsgBuffer including header and checksum
  6057. */
  6058. /*!
  6059. * \fn getCFG_LOGFILTER_POLL
  6060. * This function construct full buffer for #UBXCFG_LOGFILTER_POLL message.
  6061. * \brief Getter for #UBXCFG_LOGFILTER_POLL
  6062. * \return
  6063. * Returns full UBXMsgBuffer including header and checksum
  6064. */
  6065. /*!
  6066. * \fn struct UBXMsgBuffer getCFG_LOGFILTER(UBXU1_t version,
  6067. UBXX1_t flags,
  6068. UBXU2_t minIterval,
  6069. UBXU2_t timeThreshold,
  6070. UBXU2_t speedThreshold,
  6071. UBXU4_t positionThreshold)
  6072. * This function construct full buffer for #UBXCFG_LOGFILTER message.
  6073. * \brief Getter for #UBXCFG_LOGFILTER
  6074. * \param version
  6075. * The version of this message
  6076. * \note Set to 1
  6077. * \param flags
  6078. * Flags
  6079. * \see #UBXLOGFILTERFlags to fill this field
  6080. * \param minIterval
  6081. * Minimum time interval between logged
  6082. * positions
  6083. * \note This is only applied in
  6084. * combination with the speed and/or
  6085. * position thresholds
  6086. * \note 0 - not set
  6087. * \param timeThreshold
  6088. * If the time difference is greater than the
  6089. * threshold then the position is logged
  6090. * \note 0 - not set
  6091. * \param speedThreshold
  6092. * If the current speed is greater than the
  6093. * threshold then the position is logged
  6094. * \note 0 - not set
  6095. * \note UBXCFG_LOGFILTER::minInterval also applies
  6096. * \param positionThreshold
  6097. * If the 3D position difference is greater than the
  6098. * threshold then the position is logged
  6099. * \note 0 - not set
  6100. * \note minInterval also applies
  6101. * \return
  6102. * Returns full UBXMsgBuffer including header and checksum
  6103. */
  6104. /*!
  6105. * \fn getCFG_NAV5_POLL
  6106. * This function construct full buffer for #UBXCFG_NAV5_POLL message.
  6107. * \brief Getter for #UBXCFG_NAV5_POLL
  6108. * \return
  6109. * Returns full UBXMsgBuffer including header and checksum
  6110. */
  6111. /*!
  6112. * \fn struct UBXMsgBuffer getCFG_NAV5(UBXX2_t mask,
  6113. enum UBXNAV5Model dynModel,
  6114. enum UBXNAV5FixMode fixMode,
  6115. UBXI4_t fixedAlt,
  6116. UBXU4_t fixedAltVar,
  6117. UBXI1_t minElev,
  6118. UBXU2_t pDop,
  6119. UBXU2_t tDop,
  6120. UBXU2_t pAcc,
  6121. UBXU2_t tAcc,
  6122. UBXU1_t staticHoldThresh,
  6123. UBXU1_t dgpsTimeOut,
  6124. UBXU1_t cnoThreshNumSVs,
  6125. UBXU1_t cnoThresh)
  6126. * This function construct full buffer for #UBXCFG_NAV5 message.
  6127. * \brief Getter for #UBXCFG_NAV5
  6128. * \param mask
  6129. * Parameters Bitmask. Only the masked parameters will be applied.
  6130. * \see #UBXNAV5Mask to fill this field
  6131. * \param dynModel
  6132. * Dynamic Platform model
  6133. * \see #UBXNAV5Model to fill this field
  6134. * \param fixMode
  6135. * Position Fixing Mode
  6136. * \see #UBXNAV5FixMode to fill this field
  6137. * \param fixedAlt
  6138. * Fixed altitude (mean sea level) for 2D fix mode
  6139. * \param fixedAltVar
  6140. * Fixed altitude variance for 2D mode
  6141. * \param minElev
  6142. * Minimum Elevation for a GNSS satellite to be
  6143. * used in NAV
  6144. * \param pDop
  6145. * Position DOP Mask to use
  6146. * \param tDop
  6147. * Time DOP Mask to use
  6148. * \param pAcc
  6149. * Position Accuracy Mask
  6150. * \param tAcc
  6151. * Time Accuracy Mask
  6152. * \param staticHoldThresh
  6153. * Static hold threshold
  6154. * \param dgpsTimeOut
  6155. * DGPS timeout
  6156. * \param cnoThreshNumSVs
  6157. * Number of satellites required to have C/N0
  6158. * above cnoThresh for a fix to be attempted
  6159. * \param cnoThresh
  6160. * C/N0 threshold for deciding whether to attempt
  6161. * a fix
  6162. * \return
  6163. * Returns full UBXMsgBuffer including header and checksum
  6164. */
  6165. /*!
  6166. * \fn getCFG_NAVX5_POLL
  6167. * This function construct full buffer for #UBXCFG_NAVX5_POLL message.
  6168. * \brief Getter for #UBXCFG_NAVX5_POLL
  6169. * \return
  6170. * Returns full UBXMsgBuffer including header and checksum
  6171. */
  6172. /*!
  6173. * \fn struct UBXMsgBuffer getCFG_NAVX5(UBXU2_t version,
  6174. UBXX2_t mask1,
  6175. UBXU1_t minSVs,
  6176. UBXU1_t maxSVs,
  6177. UBXU1_t minCNO,
  6178. UBXU1_t iniFix3D,
  6179. UBXU2_t wknRollover,
  6180. UBXU1_t usePPP,
  6181. UBXU1_t aopCFG,
  6182. UBXU1_t aopOrbMaxErr)
  6183. * This function construct full buffer for #UBXCFG_NAVX5 message.
  6184. * \brief Getter for #UBXCFG_NAVX5
  6185. * \param version
  6186. * Message version
  6187. * \note 0 for this version
  6188. * \param mask1
  6189. * First Parameters Bitmask. Only the flagged
  6190. * parameters will be applied, unused bits must be
  6191. * set to 0
  6192. * \see #UBXNAVX5Mask to fill this field
  6193. * \param minSVs
  6194. * Minimum number of satellites for navigation
  6195. * \param maxSVs
  6196. * Maximum number of satellites for navigation
  6197. * \param minCNO
  6198. * Minimum satellite signal level for navigation
  6199. * \param iniFix3D
  6200. * Initial Fix must be 3D flag
  6201. * \note
  6202. * - 0 - false
  6203. * - 1 - true
  6204. * \param wknRollover
  6205. * GPS week rollover number; GPS week numbers
  6206. * will be set correctly from this week up to 1024
  6207. * weeks after this week.
  6208. * \note 0 reverts to firmware default.
  6209. * \param usePPP
  6210. * Use Precise Point Positioning flag
  6211. * \note Only supported on certain product variants
  6212. * \note
  6213. * - 0 - false
  6214. * - 1 - true
  6215. * \param aopCFG
  6216. * AssistNow Autonomous configuration
  6217. * /note
  6218. * - 0 - disabled
  6219. * - 1 - enabled
  6220. * \param aopOrbMaxErr
  6221. * maximum acceptable (modelled) AssistNow
  6222. * Autonomous orbit error
  6223. * \note valid range = 5..1000,
  6224. * \note 0 - reset to firmware default
  6225. * \return
  6226. * Returns full UBXMsgBuffer including header and checksum
  6227. */
  6228. /*!
  6229. * \fn getCFG_NMEA_POLL
  6230. * This function construct full buffer for #UBXCFG_NMEA_POLL message.
  6231. * \brief Getter for #UBXCFG_NMEA_POLL
  6232. * \return
  6233. * Returns full UBXMsgBuffer including header and checksum
  6234. */
  6235. /*!
  6236. * \fn struct UBXMsgBuffer getCFG_NMEA(UBXX1_t filter,
  6237. UBXU1_t nmeaVersion,
  6238. UBXU1_t numSV,
  6239. UBXX1_t flags,
  6240. UBXX4_t gnssToFilter,
  6241. enum UBXNMEASVNumbering svNumbering,
  6242. enum UBXNMEATalkerIds mainTalkerId,
  6243. enum UBXNMEAGSVTalkerIds gsvTalkerId)
  6244. * This function construct full buffer for #UBXCFG_NMEA message.
  6245. * \brief Getter for #UBXCFG_NMEA
  6246. * \param filter
  6247. * Filter flags
  6248. * \see #UBXNMEAFilter to fill this field
  6249. * \param nmeaVersion
  6250. * NMEA version
  6251. * \see #UBXNMEAVersion to fill this field
  6252. * \param numSV
  6253. * Maximum Number of SVs to report in NMEA
  6254. * protocol.\n
  6255. * This does not affect the receiver's operation.
  6256. * It only limits the number of SVs reported in
  6257. * NMEA mode (this might be needed with older
  6258. * mapping applications which only support 8- or
  6259. * 12-channel receivers).
  6260. * \param flags
  6261. * Flags
  6262. * \see #UBXNMEAFlags to fill this field
  6263. * \param gnssToFilter
  6264. * Filters out satellites based on their GNSS. If a
  6265. * bitfield is enabled, the corresponding satellites
  6266. * will be not output.
  6267. * \see #UBXNMEAGNSSToFilter to fill this field
  6268. * \param svNumbering
  6269. * Configures the display of satellites that do not
  6270. * have an NMEA-defined value.
  6271. * \note This does not apply to satellites with an
  6272. * unknown ID.
  6273. * \param mainTalkerId
  6274. * By default the main Talker ID (i.e. the Talker ID
  6275. * used for all messages other than GSV) is
  6276. * determined by the GNSS assignment of the
  6277. * receiver's channels (see #UBXCFG_GNSS).
  6278. * This field enables the main Talker ID to be
  6279. * overridden.
  6280. * \param gsvTalkerId
  6281. * By default the Talker ID for GSV messages is
  6282. * GNSS specific (as defined by NMEA).
  6283. * This field enables the GSV Talker ID to be
  6284. * overridden.
  6285. * \return
  6286. * Returns full UBXMsgBuffer including header and checksum
  6287. */
  6288. /*!
  6289. * \fn struct UBXMsgBuffer getCFG_NVS(UBXX4_t clearMask,
  6290. UBXX4_t saveMask,
  6291. UBXX4_t loadMask,
  6292. UBXX1_t deviceMask)
  6293. * This function construct full buffer for #UBXCFG_NVS message.
  6294. * \brief Getter for #UBXCFG_NVS
  6295. * \param clearMask
  6296. * Mask of data to be cleared
  6297. * \see #UBXCFGMask CFG_NVS section to fill this field
  6298. * \param saveMask
  6299. * Mask of data to be saved
  6300. * \see #UBXCFGMask CFG_NVS section to fill this field
  6301. * \param loadMask
  6302. * Mask of data to be loaded,
  6303. * \see #UBXCFGMask CFG_NVS section to fill this field
  6304. * \param deviceMask
  6305. * Mask of devices to consider
  6306. * \note Default: all devices
  6307. * \see #UBXCFGDeviceMask to fill this field
  6308. * \return
  6309. * Returns full UBXMsgBuffer including header and checksum
  6310. */
  6311. /*!
  6312. * \fn getCFG_PM2_POLL
  6313. * This function construct full buffer for #UBXCFG_PM2_POLL message.
  6314. * \brief Getter for #UBXCFG_PM2_POLL
  6315. * \return
  6316. * Returns full UBXMsgBuffer including header and checksum
  6317. */
  6318. /*!
  6319. * \fn struct UBXMsgBuffer getCFG_PM2(struct UBXCFG_PM2Flags flags, UBXU4_t updatePeriod, UBXU4_t searchPeriod, UBXU4_t gridOffset, UBXU2_t onTime, UBXU2_t minAcqTime)
  6320. * This function construct full buffer for #UBXCFG_PM2 message.
  6321. * \brief Getter for #UBXCFG_PM2
  6322. * \param flags
  6323. * PSM configuration flags
  6324. * \note See UBXCFG_PM2Flags to fill this field
  6325. * \param updatePeriod
  6326. * Position update period.
  6327. * \note If set to 0, the receiver will never retry a fix
  6328. * \param searchPeriod
  6329. * Acquisition retry period
  6330. * \note If set to 0, the receiver will never retry a startup
  6331. * \param gridOffset
  6332. * Grid offset relative to GPS start of week
  6333. * \param onTime
  6334. * On time after first successful fix
  6335. * \param minAcqTime
  6336. * Minimal search time
  6337. * \return
  6338. * Returns full UBXMsgBuffer including header and checksum
  6339. */
  6340. /*!
  6341. * \fn getCFG_PRT_POLL
  6342. * This function construct full buffer for #UBXCFG_PRT_POLL message.
  6343. * \brief Getter for #UBXCFG_PRT_POLL
  6344. * \return
  6345. * Returns full UBXMsgBuffer including header and checksum
  6346. */
  6347. /*!
  6348. * \fn struct UBXMsgBuffer getCFG_PRT_POLL_OPT(UBXU1_t portId)
  6349. * This function construct full buffer for #UBXCFG_PRT_POLL_OPT message.
  6350. * \brief Getter for #UBXCFG_PRT_POLL_OPT
  6351. * \param portId
  6352. * Port Identifier Number
  6353. * \see #UBXCFG_PRT for valid values
  6354. * \return
  6355. * Returns full UBXMsgBuffer including header and checksum
  6356. */
  6357. /*!
  6358. * \fn getCFG_PRT_UART
  6359. * This function construct full buffer for #UBXCFG_PRT_UART message.
  6360. * \brief Getter for #UBXCFG_PRT_UART
  6361. * \todo Getter is not complete
  6362. * \return
  6363. * Returns full UBXMsgBuffer including header and checksum
  6364. */
  6365. /*!
  6366. * \fn getCFG_PRT_USB
  6367. * This function construct full buffer for #UBXCFG_PRT_USB message.
  6368. * \brief Getter for #UBXCFG_PRT_USB
  6369. * \todo Getter is not complete
  6370. * \return
  6371. * Returns full UBXMsgBuffer including header and checksum
  6372. */
  6373. /*!
  6374. * \fn getCFG_PRT_SPI
  6375. * This function construct full buffer for #UBXCFG_PRT_SPI message.
  6376. * \brief Getter for #UBXCFG_PRT_SPI
  6377. * \todo Getter is not complete
  6378. * \return
  6379. * Returns full UBXMsgBuffer including header and checksum
  6380. */
  6381. /*!
  6382. * \fn getCFG_PRT_DDC
  6383. * This function construct full buffer for #UBXCFG_PRT_DDC message.
  6384. * \brief Getter for #UBXCFG_PRT_DDC
  6385. * \todo Getter is not complete
  6386. * \return
  6387. * Returns full UBXMsgBuffer including header and checksum
  6388. */
  6389. /*!
  6390. * \fn getCFG_RATE_POLL
  6391. * This function construct full buffer for #UBXCFG_RATE_POLL message.
  6392. * \brief Getter for #UBXCFG_RATE_POLL
  6393. * \return
  6394. * Returns full UBXMsgBuffer including header and checksum
  6395. */
  6396. /*!
  6397. * \fn struct UBXMsgBuffer getCFG_RATE(UBXU2_t measRate, UBXU2_t navRate, UBXU2_t timeRef)
  6398. * This function construct full buffer for #UBXCFG_RATE message.
  6399. * \brief Getter for #UBXCFG_RATE
  6400. * \param measRate
  6401. * Measurement Rate, GPS measurements are
  6402. * taken every measRate milliseconds
  6403. * \param navRate
  6404. * Navigation Rate, in number of measurement
  6405. * cycles.
  6406. * \note This parameter cannot be changed, and
  6407. * must be set to 1.
  6408. * \param timeRef
  6409. * Alignment to reference time.
  6410. * \note
  6411. * - 0 - UTC time
  6412. * - 1 - GPS time
  6413. * \return
  6414. * Returns full UBXMsgBuffer including header and checksum
  6415. */
  6416. /*!
  6417. * \fn struct UBXMsgBuffer getCFG_RINV(UBXX1_t flags, UBXU1_t* data, int dataSize)
  6418. * This function construct full buffer for #UBXCFG_RINV message.
  6419. * \brief Getter for #UBXCFG_RINV
  6420. * \param flags
  6421. * Flags
  6422. * \see #UBXRINVFlags to fill this field
  6423. * \param data
  6424. * Pointer to variable payload data
  6425. * \param dataSize
  6426. * Data size
  6427. * \return
  6428. * Returns full UBXMsgBuffer including header and checksum
  6429. */
  6430. /*!
  6431. * \fn getCFG_RINV_POLL
  6432. * This function construct full buffer for #UBXCFG_RINV_POLL message.
  6433. * \brief Getter for #UBXCFG_RINV_POLL
  6434. * \return
  6435. * Returns full UBXMsgBuffer including header and checksum
  6436. */
  6437. /*!
  6438. * \fn struct UBXMsgBuffer getCFG_RXM(UBXU1_t lpMode)
  6439. * This function construct full buffer for #UBXCFG_RXM message.
  6440. * \brief Getter for #UBXCFG_RXM
  6441. * \param lpMode
  6442. * Low power mode
  6443. * \see #UBXRXMLowPowerModes to fill this field
  6444. * \return
  6445. * Returns full UBXMsgBuffer including header and checksum
  6446. */
  6447. /*!
  6448. * \fn getCFG_RXM_POLL
  6449. * This function construct full buffer for #UBXCFG_RXM_POLL message.
  6450. * \brief Getter for #UBXCFG_RXM_POLL
  6451. * \return
  6452. * Returns full UBXMsgBuffer including header and checksum
  6453. */
  6454. /*!
  6455. * \fn struct UBXMsgBuffer getCFG_SBAS(UBXX1_t mode, UBXX1_t usage, UBXU1_t maxSBAS, UBXX1_t scanmode2, UBXX4_t scanmode1)
  6456. * This function construct full buffer for #UBXCFG_SBAS message.
  6457. * \brief Getter for #UBXCFG_SBAS
  6458. * \param mode
  6459. * SBAS Mode
  6460. * \see #UBXSBASModes to fill this field
  6461. * \param usage
  6462. * SBAS Usage
  6463. * \see #UBXSBASUsage to fill this field
  6464. * \param maxSBAS
  6465. * Maximum Number of SBAS prioritized tracking
  6466. * channels to use
  6467. * \note valid range: 0 - 3
  6468. * \deprecated obsolete and superseeded by #UBXCFG_GNSS in protocol
  6469. * versions 14.00+.
  6470. * \param scanmode2
  6471. * Continuation of scanmode bitmask below
  6472. * \see #UBXSBASScanModes2 to fill this field
  6473. * \param scanmode1
  6474. * Which SBAS PRN numbers to search for (Bitmask)
  6475. * If all Bits are set to zero, auto-scan (i.e. all valid
  6476. * PRNs) are searched.
  6477. * Every bit corresponds to a PRN number
  6478. * \see #UBXSBASScanModes1 to fill this field
  6479. * \return
  6480. * Returns full UBXMsgBuffer including header and checksum
  6481. */
  6482. /*!
  6483. * \fn getCFG_SBAS_POLL
  6484. * This function construct full buffer for #UBXCFG_SBAS_POLL message.
  6485. * \brief Getter for #UBXCFG_SBAS_POLL
  6486. * \return
  6487. * Returns full UBXMsgBuffer including header and checksum
  6488. */
  6489. /*!
  6490. * \fn getCFG_TP5_POLL
  6491. * This function construct full buffer for #UBXCFG_TP5_POLL message.
  6492. * \brief Getter for #UBXCFG_TP5_POLL
  6493. * \return
  6494. * Returns full UBXMsgBuffer including header and checksum
  6495. */
  6496. /*!
  6497. * \fn getCFG_USB_POLL
  6498. * This function construct full buffer for #UBXCFG_USB_POLL message.
  6499. * \brief Getter for #UBXCFG_USB_POLL
  6500. * \return
  6501. * Returns full UBXMsgBuffer including header and checksum
  6502. */
  6503. /*!
  6504. * \fn struct UBXMsgBuffer getCFG_USB(UBXU2_t vendorId,
  6505. UBXU2_t productId,
  6506. UBXU2_t powerConsumption,
  6507. UBXX2_t flags,
  6508. UBXCH_t* vendorString,
  6509. UBXCH_t* productString,
  6510. UBXCH_t* serialNumber)
  6511. * This function construct full buffer for #UBXCFG_USB message.
  6512. * \brief Getter for #UBXCFG_USB
  6513. * \param vendorId
  6514. * Vendor ID. This field shall only be set to
  6515. * registered Vendor IDs.
  6516. * \note Changing this field
  6517. * requires special Host drivers.
  6518. * \param productId
  6519. * Product ID.
  6520. * \note Changing this field requires special
  6521. * Host drivers.
  6522. * \param powerConsumption
  6523. * Power consumed by the device
  6524. * \param flags
  6525. * Various configuration flags
  6526. * \see #UBXUSBFlags to fill this field
  6527. * \param vendorString
  6528. * String containing the vendor name. 32 ASCII bytes
  6529. * including 0-termination.
  6530. * \param productString
  6531. * String containing the product name. 32 ASCI bytes
  6532. * including 0-termination.
  6533. * \param serialNumber
  6534. * String containing the serial number. 32 ASCII
  6535. * bytes including 0-termination.
  6536. * \note Changing the String fields requires special Host
  6537. * drivers.
  6538. * \return
  6539. * Returns full UBXMsgBuffer including header and checksum
  6540. */
  6541. /*!
  6542. * \fn struct UBXMsgBuffer getLOG_CREATE(UBXU1_t version, UBXX1_t logCfg, UBXU1_t logSize, UBXU4_t userDefinedSize)
  6543. * This function construct full buffer for #UBXLOG_CREATE message.
  6544. * \brief Getter for #UBXLOG_CREATE
  6545. * \param logCfg
  6546. * Config flags
  6547. * \see #UBXLOGCfg to fill this field
  6548. * \param logSize
  6549. * Indicates the size of the log
  6550. * \see #UBXLOGSize to fill this field
  6551. * \param userDefinedSize
  6552. * Sets the maximum amount of space in the
  6553. * filestore that can be used by the logging task
  6554. * \note This field is only applicable if logSize is set to user defined.
  6555. * \return
  6556. * Returns full UBXMsgBuffer including header and checksum
  6557. */
  6558. /*!
  6559. * \fn getLOG_ERASE
  6560. * This function construct full buffer for #UBXLOG_ERASE message.
  6561. * \brief Getter for #UBXLOG_ERASE
  6562. * \return
  6563. * Returns full UBXMsgBuffer including header and checksum
  6564. */
  6565. /*!
  6566. * \fn struct UBXMsgBuffer getLOG_FINDTIME_IN(UBXU2_t year, UBXU1_t month, UBXU1_t day, UBXU1_t hour, UBXU1_t minute, UBXU1_t second)
  6567. * This function construct full buffer for #UBXLOG_FINDTIME_IN message.
  6568. * \brief Getter for #UBXLOG_FINDTIME_IN
  6569. * \param year
  6570. * Year of UTC time
  6571. * \note Range 1-65635
  6572. * \param month
  6573. * Month of UTC time
  6574. * \note Range 1-12
  6575. * \param day
  6576. * Day of UTC time
  6577. * \note Range 1-31
  6578. * \param hour
  6579. * Hour of UTC time
  6580. * \note Range 0-23
  6581. * \param minute
  6582. * Minute of UTC time
  6583. * \note Range 0-59
  6584. * \param second
  6585. * Second of UTC time
  6586. * \note Range 0-60 - looks like mistake in official documentation
  6587. * \return
  6588. * Returns full UBXMsgBuffer including header and checksum
  6589. */
  6590. /*!
  6591. * \fn getLOG_INFO_POLL
  6592. * This function construct full buffer for #UBXLOG_INFO_POLL message.
  6593. * \brief Getter for #UBXLOG_INFO_POLL
  6594. * \return
  6595. * Returns full UBXMsgBuffer including header and checksum
  6596. */
  6597. /*!
  6598. * \fn struct UBXMsgBuffer getLOG_RETRIEVE(UBXU4_t startNumber,
  6599. UBXU4_t entryCount,
  6600. UBXU1_t version)
  6601. * This function construct full buffer for #UBXLOG_RETRIEVE message.
  6602. * \brief Getter for #UBXLOG_RETRIEVE
  6603. * \param startNumber
  6604. * Index of first entry to be transferred
  6605. * \param entryCount
  6606. * Number of log entries to transfer. The maximum
  6607. * is 256
  6608. * \param version
  6609. * The version of this message
  6610. * \note Set to 0
  6611. * \return
  6612. * Returns full UBXMsgBuffer including header and checksum
  6613. */
  6614. /*!
  6615. * \fn getLOG_STRING
  6616. * This function construct full buffer for #UBXLOG_STRING message.
  6617. * \brief Getter for #UBXLOG_STRING
  6618. * \return
  6619. * Returns full UBXMsgBuffer including header and checksum
  6620. */
  6621. /*!
  6622. * \fn getMON_VER_POLL
  6623. * This function construct full buffer for #UBXMON_VER_POLL message.
  6624. * \brief Getter for #UBXMON_VER_POLL
  6625. * \return
  6626. * Returns full UBXMsgBuffer including header and checksum
  6627. */
  6628. /*!
  6629. * \fn getRXM_ALM_POLL
  6630. * This function construct full buffer for #UBXRXM_ALM_POLL message.
  6631. * \brief Getter for #UBXRXM_ALM_POLL
  6632. * \return
  6633. * Returns full UBXMsgBuffer including header and checksum
  6634. */
  6635. /*!
  6636. * \fn struct UBXMsgBuffer getRXM_ALM_POLL_OPT(UBXU1_t svid)
  6637. * This function construct full buffer for #UBXRXM_ALM_POLL_OPT message.
  6638. * \brief Getter for #UBXRXM_ALM_POLL_OPT
  6639. * \param svid
  6640. * SV ID for which the receiver shall return its Almanac Data
  6641. * \note Valid Range: 1..32
  6642. * \return
  6643. * Returns full UBXMsgBuffer including header and checksum
  6644. */
  6645. /*!
  6646. * \fn getRXM_EPH_POLL
  6647. * This function construct full buffer for #UBXRXM_EPH_POLL message.
  6648. * \brief Getter for #UBXRXM_EPH_POLL
  6649. * \return
  6650. * Returns full UBXMsgBuffer including header and checksum
  6651. */
  6652. /*!
  6653. * \fn struct UBXMsgBuffer getRXM_EPH_POLL_OPT(UBXU1_t svid)
  6654. * This function construct full buffer for #UBXRXM_EPH_POLL_OPT message.
  6655. * \brief Getter for #UBXRXM_EPH_POLL_OPT
  6656. * \param svid
  6657. * SV ID for which this Almanac Data
  6658. * \note Valid Range: 1 .. 32 or 51, 56, 63.
  6659. * \return
  6660. * Returns full UBXMsgBuffer including header and checksum
  6661. */
  6662. /*!
  6663. * \fn struct UBXMsgBuffer getRXM_PMREQ(UBXU4_t duration, UBXX4_t flags)
  6664. * This function construct full buffer for #UBXRXM_PMREQ message.
  6665. * \brief Getter for #UBXRXM_PMREQ
  6666. * \param duration
  6667. * Duration of the requested task
  6668. * \note Set to 0 for infinite duration
  6669. * \param flags
  6670. * Task flags
  6671. * \see #UBXPMREQFlags to fill this field
  6672. * \return
  6673. * Returns full UBXMsgBuffer including header and checksum
  6674. */
  6675. /*!
  6676. * \fn struct UBXMsgBuffer getRXM_SVSI(UBXU4_t iTOW,
  6677. UBXI2_t week,
  6678. UBXU1_t numVis,
  6679. UBXU1_t numSV,
  6680. struct UBXRXM_SVSI_PART* svsiPart,
  6681. int svsiPartCount)
  6682. * This function construct full buffer for #UBXRXM_SVSI message.
  6683. * \brief Getter for #UBXRXM_SVSI
  6684. * \param iTOW
  6685. * GPS time of week of the navigation epoch.
  6686. * See the description of iTOW (u-blox© official documentation) for details.
  6687. * \param week
  6688. * GPS week number of the navigation epoch
  6689. * \param numVis
  6690. * Number of visible satellites
  6691. * \param numSV
  6692. * Number of per-SV data blocks following
  6693. * \param svsiPart
  6694. * Pointer to variabl payload part
  6695. * \param svsiPartCount
  6696. * variabl payload parts count
  6697. * \return
  6698. * Returns full UBXMsgBuffer including header and checksum
  6699. */
  6700. /*! @} */