ubxaid.h 4.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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: ubxaid.h
  25. */
  26. #ifndef UBLOXAID_H
  27. #define UBLOXAID_H
  28. #include "ubxmessage.h"
  29. #ifdef __cplusplus
  30. extern "C"
  31. {
  32. #endif
  33. extern struct UBXMsgBuffer getAID_ALM_POLL();
  34. extern struct UBXMsgBuffer getAID_ALM_POLL_OPT(UBXU1_t svid);
  35. extern struct UBXMsgBuffer getAID_ALM(UBXU4_t svid, UBXU4_t week);
  36. extern struct UBXMsgBuffer getAID_ALM_OPT(UBXU4_t svid, UBXU4_t week, UBXU4_t dwrd[8]);
  37. extern struct UBXMsgBuffer getAID_ALPSRV(struct UBXMsg* clientMgs, const struct UBXAlpFileInfo *fileInfo);
  38. extern struct UBXMsgBuffer getAID_ALP_POLL(UBXU4_t predTow, UBXU4_t predDur, UBXI4_t age, UBXU2_t predWno, UBXU2_t almWno, UBXU1_t svs);
  39. extern struct UBXMsgBuffer getAID_ALP_END();
  40. extern struct UBXMsgBuffer getAID_ALP(UBXU2_t *chunk, int chunkSize);
  41. extern struct UBXMsgBuffer getAID_AOP_POLL();
  42. extern struct UBXMsgBuffer getAID_AOP_POLL_OPT(UBXU1_t svid);
  43. extern struct UBXMsgBuffer getAID_AOP(UBXU1_t svid, UBXU1_t data[59]);
  44. extern struct UBXMsgBuffer getAID_AOP_OPT(UBXU1_t svid, UBXU1_t data[59], UBXU1_t optional0[48], UBXU1_t optional1[48], UBXU1_t optional2[48]);
  45. extern struct UBXMsgBuffer getAID_DATA_POLL();
  46. extern struct UBXMsgBuffer getAID_EPH_POLL();
  47. extern struct UBXMsgBuffer getAID_EPH_POLL_OPT(UBXU1_t svid);
  48. extern struct UBXMsgBuffer getAID_EPH(UBXU4_t svid, UBXU4_t how);
  49. extern struct UBXMsgBuffer getAID_EPH_OPT(UBXU4_t svid, UBXU4_t how, UBXU4_t sf1d[8], UBXU4_t sf2d[8], UBXU4_t sf3d[8]);
  50. extern struct UBXMsgBuffer getAID_HUI_POLL();
  51. extern struct UBXMsgBuffer getAID_HUI(UBXI4_t health,
  52. UBXR4_t utcA0,
  53. UBXR4_t utcA1,
  54. UBXI4_t utcTOW,
  55. UBXI2_t utcWNT,
  56. UBXI2_t utcLS,
  57. UBXI2_t utcWNF,
  58. UBXI2_t utcDN,
  59. UBXI2_t utcLSF,
  60. UBXI2_t utcSpare,
  61. UBXR4_t klobA0,
  62. UBXR4_t klobA1,
  63. UBXR4_t klobA2,
  64. UBXR4_t klobA3,
  65. UBXR4_t klobB0,
  66. UBXR4_t klobB1,
  67. UBXR4_t klobB2,
  68. UBXR4_t klobB3,
  69. UBXX2_t flags //See UBXHUIFlags to fill this field
  70. );
  71. extern struct UBXMsgBuffer getAID_INI_POLL();
  72. extern struct UBXMsgBuffer getAID_INI(UBXI1_t ecefXOrLat,
  73. UBXI1_t ecefYOrLat,
  74. UBXI1_t ecefZOrLat,
  75. UBXU1_t posAcc,
  76. UBXI1_t tmCfg, //See UBXINItmCfg to fill this field
  77. UBXU2_t wnoOrDate,
  78. UBXU4_t towOrDate,
  79. UBXI4_t towNs,
  80. UBXU4_t tAccMS,
  81. UBXU4_t tAccNS,
  82. UBXI4_t clkDOrFreq,
  83. UBXU4_t clkDAccOrFreqAcc,
  84. UBXX4_t flags //See UBXINIFlags to fill this field
  85. );
  86. #ifdef __cplusplus
  87. }
  88. #endif
  89. #endif // UBLOXAID_H