MIP_SDK  latest-2-g34f3e39
MicroStrain Communications Library for embedded systems
commands_gnss.hpp
Go to the documentation of this file.
1 #pragma once
2 
5 #include <mip/mip_result.hpp>
6 #include <mip/mip_interface.hpp>
7 
8 #include <stdint.h>
9 #include <stddef.h>
10 
11 namespace mip {
12 namespace C {
13 struct mip_interface;
14 } // namespace C
15 
16 namespace commands_gnss {
17 
24 
26 // Descriptors
28 
29 enum
30 {
32 
37 
42 };
43 
45 // Shared Type Definitions
47 
48 static constexpr const uint16_t GNSS_GPS_ENABLE_L1CA = 0x0001;
49 static constexpr const uint16_t GNSS_GPS_ENABLE_L2C = 0x0002;
50 static constexpr const uint16_t GNSS_GPS_ENABLE_L5 = 0x0004;
51 static constexpr const uint16_t GNSS_GLONASS_ENABLE_L1OF = 0x0001;
52 static constexpr const uint16_t GNSS_GLONASS_ENABLE_L2OF = 0x0002;
53 static constexpr const uint16_t GNSS_GALILEO_ENABLE_E1 = 0x0001;
54 static constexpr const uint16_t GNSS_GALILEO_ENABLE_E5B = 0x0002;
55 static constexpr const uint16_t GNSS_GALILEO_ENABLE_E5A = 0x0004;
56 static constexpr const uint16_t GNSS_BEIDOU_ENABLE_B1 = 0x0001;
57 static constexpr const uint16_t GNSS_BEIDOU_ENABLE_B2 = 0x0002;
58 static constexpr const uint16_t GNSS_BEIDOU_ENABLE_B2A = 0x0004;
59 
61 // Mip Fields
63 
70 
72 {
73  struct Info
74  {
76  uint8_t receiver_id = 0;
78  char description[32] = {0};
79 
81  void insert(Serializer& serializer) const;
82  void extract(Serializer& serializer);
83 
84  };
86  static constexpr const uint8_t DESCRIPTOR_SET = ::mip::commands_gnss::DESCRIPTOR_SET;
89  static constexpr const char* NAME = "ReceiverInfo";
90  static constexpr const char* DOC_NAME = "ReceiverInfo";
91  static constexpr const bool HAS_FUNCTION_SELECTOR = false;
92 
93  auto asTuple() const
94  {
95  return std::make_tuple();
96  }
97 
98  auto asTuple()
99  {
100  return std::make_tuple();
101  }
102 
104  void insert(Serializer& serializer) const;
105  void extract(Serializer& serializer);
106 
107  struct Response
108  {
110  uint8_t num_receivers = 0;
112 
114  static constexpr const uint8_t DESCRIPTOR_SET = ::mip::commands_gnss::DESCRIPTOR_SET;
117  static constexpr const char* NAME = "ReceiverInfo::Response";
118  static constexpr const char* DOC_NAME = "ReceiverInfo Response";
119  static constexpr const bool HAS_FUNCTION_SELECTOR = false;
120 
121  auto asTuple() const
122  {
123  return std::make_tuple(num_receivers,receiver_info);
124  }
125 
126  auto asTuple()
127  {
128  return std::make_tuple(std::ref(num_receivers),std::ref(receiver_info));
129  }
130 
132  void insert(Serializer& serializer) const;
133  void extract(Serializer& serializer);
134 
135  };
136 };
137 TypedResult<ReceiverInfo> receiverInfo(C::mip_interface& device, uint8_t* numReceiversOut, uint8_t numReceiversOutMax, ReceiverInfo::Info* receiverInfoOut);
138 
147 
149 {
151  FunctionSelector function = static_cast<FunctionSelector>(0);
152  uint8_t gps_enable = 0;
153  uint8_t glonass_enable = 0;
154  uint8_t galileo_enable = 0;
155  uint8_t beidou_enable = 0;
156  uint8_t reserved[4] = {0};
157 
159  static constexpr const uint8_t DESCRIPTOR_SET = ::mip::commands_gnss::DESCRIPTOR_SET;
162  static constexpr const char* NAME = "SignalConfiguration";
163  static constexpr const char* DOC_NAME = "SignalConfiguration";
164  static constexpr const bool HAS_FUNCTION_SELECTOR = true;
165 
166  auto asTuple() const
167  {
169  }
170 
171  auto asTuple()
172  {
173  return std::make_tuple(std::ref(gps_enable),std::ref(glonass_enable),std::ref(galileo_enable),std::ref(beidou_enable),std::ref(reserved));
174  }
175 
177  {
179  cmd.function = function;
180  return cmd;
181  }
182 
184  void insert(Serializer& serializer) const;
185  void extract(Serializer& serializer);
186 
187  struct Response
188  {
190  uint8_t gps_enable = 0;
191  uint8_t glonass_enable = 0;
192  uint8_t galileo_enable = 0;
193  uint8_t beidou_enable = 0;
194  uint8_t reserved[4] = {0};
195 
197  static constexpr const uint8_t DESCRIPTOR_SET = ::mip::commands_gnss::DESCRIPTOR_SET;
200  static constexpr const char* NAME = "SignalConfiguration::Response";
201  static constexpr const char* DOC_NAME = "SignalConfiguration Response";
202  static constexpr const bool HAS_FUNCTION_SELECTOR = false;
203 
204  auto asTuple() const
205  {
207  }
208 
209  auto asTuple()
210  {
211  return std::make_tuple(std::ref(gps_enable),std::ref(glonass_enable),std::ref(galileo_enable),std::ref(beidou_enable),std::ref(reserved));
212  }
213 
215  void insert(Serializer& serializer) const;
216  void extract(Serializer& serializer);
217 
218  };
219 };
220 TypedResult<SignalConfiguration> writeSignalConfiguration(C::mip_interface& device, uint8_t gpsEnable, uint8_t glonassEnable, uint8_t galileoEnable, uint8_t beidouEnable, const uint8_t* reserved);
221 TypedResult<SignalConfiguration> readSignalConfiguration(C::mip_interface& device, uint8_t* gpsEnableOut, uint8_t* glonassEnableOut, uint8_t* galileoEnableOut, uint8_t* beidouEnableOut, uint8_t* reservedOut);
225 
237 
239 {
241  FunctionSelector function = static_cast<FunctionSelector>(0);
242  uint8_t enable = 0;
243  uint8_t type = 0;
244  uint32_t current_key_tow = 0;
245  uint16_t current_key_week = 0;
246  uint8_t current_key[32] = {0};
247  uint32_t next_key_tow = 0;
248  uint16_t next_key_week = 0;
249  uint8_t next_key[32] = {0};
250 
252  static constexpr const uint8_t DESCRIPTOR_SET = ::mip::commands_gnss::DESCRIPTOR_SET;
255  static constexpr const char* NAME = "SpartnConfiguration";
256  static constexpr const char* DOC_NAME = "SpartnConfiguration";
257  static constexpr const bool HAS_FUNCTION_SELECTOR = true;
258 
259  auto asTuple() const
260  {
262  }
263 
264  auto asTuple()
265  {
266  return std::make_tuple(std::ref(enable),std::ref(type),std::ref(current_key_tow),std::ref(current_key_week),std::ref(current_key),std::ref(next_key_tow),std::ref(next_key_week),std::ref(next_key));
267  }
268 
270  {
272  cmd.function = function;
273  return cmd;
274  }
275 
277  void insert(Serializer& serializer) const;
278  void extract(Serializer& serializer);
279 
280  struct Response
281  {
283  uint8_t enable = 0;
284  uint8_t type = 0;
285  uint32_t current_key_tow = 0;
286  uint16_t current_key_week = 0;
287  uint8_t current_key[32] = {0};
288  uint32_t next_key_tow = 0;
289  uint16_t next_key_week = 0;
290  uint8_t next_key[32] = {0};
291 
293  static constexpr const uint8_t DESCRIPTOR_SET = ::mip::commands_gnss::DESCRIPTOR_SET;
296  static constexpr const char* NAME = "SpartnConfiguration::Response";
297  static constexpr const char* DOC_NAME = "SpartnConfiguration Response";
298  static constexpr const bool HAS_FUNCTION_SELECTOR = false;
299 
300  auto asTuple() const
301  {
303  }
304 
305  auto asTuple()
306  {
307  return std::make_tuple(std::ref(enable),std::ref(type),std::ref(current_key_tow),std::ref(current_key_week),std::ref(current_key),std::ref(next_key_tow),std::ref(next_key_week),std::ref(next_key));
308  }
309 
311  void insert(Serializer& serializer) const;
312  void extract(Serializer& serializer);
313 
314  };
315 };
316 TypedResult<SpartnConfiguration> writeSpartnConfiguration(C::mip_interface& device, uint8_t enable, uint8_t type, uint32_t currentKeyTow, uint16_t currentKeyWeek, const uint8_t* currentKey, uint32_t nextKeyTow, uint16_t nextKeyWeek, const uint8_t* nextKey);
317 TypedResult<SpartnConfiguration> readSpartnConfiguration(C::mip_interface& device, uint8_t* enableOut, uint8_t* typeOut, uint32_t* currentKeyTowOut, uint16_t* currentKeyWeekOut, uint8_t* currentKeyOut, uint32_t* nextKeyTowOut, uint16_t* nextKeyWeekOut, uint8_t* nextKeyOut);
321 
330 
332 {
334  FunctionSelector function = static_cast<FunctionSelector>(0);
335  uint8_t enable = 0;
336  uint8_t reserved[3] = {0};
337 
339  static constexpr const uint8_t DESCRIPTOR_SET = ::mip::commands_gnss::DESCRIPTOR_SET;
342  static constexpr const char* NAME = "RtkDongleConfiguration";
343  static constexpr const char* DOC_NAME = "RtkDongleConfiguration";
344  static constexpr const bool HAS_FUNCTION_SELECTOR = true;
345 
346  auto asTuple() const
347  {
348  return std::make_tuple(enable,reserved);
349  }
350 
351  auto asTuple()
352  {
353  return std::make_tuple(std::ref(enable),std::ref(reserved));
354  }
355 
357  {
359  cmd.function = function;
360  return cmd;
361  }
362 
364  void insert(Serializer& serializer) const;
365  void extract(Serializer& serializer);
366 
367  struct Response
368  {
370  uint8_t enable = 0;
371  uint8_t reserved[3] = {0};
372 
374  static constexpr const uint8_t DESCRIPTOR_SET = ::mip::commands_gnss::DESCRIPTOR_SET;
377  static constexpr const char* NAME = "RtkDongleConfiguration::Response";
378  static constexpr const char* DOC_NAME = "RtkDongleConfiguration Response";
379  static constexpr const bool HAS_FUNCTION_SELECTOR = false;
380 
381  auto asTuple() const
382  {
383  return std::make_tuple(enable,reserved);
384  }
385 
386  auto asTuple()
387  {
388  return std::make_tuple(std::ref(enable),std::ref(reserved));
389  }
390 
392  void insert(Serializer& serializer) const;
393  void extract(Serializer& serializer);
394 
395  };
396 };
397 TypedResult<RtkDongleConfiguration> writeRtkDongleConfiguration(C::mip_interface& device, uint8_t enable, const uint8_t* reserved);
398 TypedResult<RtkDongleConfiguration> readRtkDongleConfiguration(C::mip_interface& device, uint8_t* enableOut, uint8_t* reservedOut);
402 
405 
410 } // namespace commands_gnss
411 } // namespace mip
412 
mip::commands_gnss::RtkDongleConfiguration::function
FunctionSelector function
Parameters.
Definition: commands_gnss.hpp:334
mip::commands_gnss::SpartnConfiguration::next_key_tow
uint32_t next_key_tow
The GPS time of week the next key is valid until.
Definition: commands_gnss.hpp:247
mip::commands_gnss::ReceiverInfo::Info::description
char description[32]
Ascii description of receiver. Contains the following info (comma-delimited): Module name/model Fir...
Definition: commands_gnss.hpp:78
mip::commands_gnss::RtkDongleConfiguration::DOC_NAME
static constexpr const char * DOC_NAME
Definition: commands_gnss.hpp:343
mip::commands_gnss::SpartnConfiguration::asTuple
auto asTuple()
Definition: commands_gnss.hpp:264
mip::commands_gnss::SpartnConfiguration::next_key
uint8_t next_key[32]
32 character string of ASCII hex valuesfor the next key (e.g. "bc" for 0xBC)
Definition: commands_gnss.hpp:249
mip::commands_gnss::SignalConfiguration::DESCRIPTOR
static constexpr const CompositeDescriptor DESCRIPTOR
Definition: commands_gnss.hpp:161
mip::commands_gnss::SignalConfiguration::FIELD_DESCRIPTOR
static constexpr const uint8_t FIELD_DESCRIPTOR
Definition: commands_gnss.hpp:160
mip::commands_gnss::CMD_RTK_DONGLE_CONFIGURATION
@ CMD_RTK_DONGLE_CONFIGURATION
Definition: commands_gnss.hpp:35
mip::commands_gnss::RtkDongleConfiguration::extract
void extract(Serializer &serializer)
Definition: commands_gnss.cpp:461
mip::commands_gnss::RtkDongleConfiguration::Response::FIELD_DESCRIPTOR
static constexpr const uint8_t FIELD_DESCRIPTOR
Definition: commands_gnss.hpp:375
mip::commands_gnss::SpartnConfiguration::DESCRIPTOR_SET
static constexpr const uint8_t DESCRIPTOR_SET
Descriptors.
Definition: commands_gnss.hpp:252
mip::commands_gnss::SpartnConfiguration::HAS_FUNCTION_SELECTOR
static constexpr const bool HAS_FUNCTION_SELECTOR
Definition: commands_gnss.hpp:257
mip
A collection of C++ classes and functions covering the full mip api.
Definition: commands_3dm.c:11
mip::commands_gnss::SpartnConfiguration::function
FunctionSelector function
Parameters.
Definition: commands_gnss.hpp:241
mip::commands_gnss::SignalConfiguration::Response::DESCRIPTOR
static constexpr const CompositeDescriptor DESCRIPTOR
Definition: commands_gnss.hpp:199
mip::commands_gnss::ReceiverInfo::Response::DESCRIPTOR_SET
static constexpr const uint8_t DESCRIPTOR_SET
Descriptors.
Definition: commands_gnss.hpp:114
mip::commands_gnss::SignalConfiguration::asTuple
auto asTuple()
Definition: commands_gnss.hpp:171
mip::commands_gnss::ReceiverInfo::Response::asTuple
auto asTuple() const
Definition: commands_gnss.hpp:121
mip_descriptors.hpp
mip::commands_gnss::SpartnConfiguration::current_key_week
uint16_t current_key_week
The GPS week number the current key is valid until.
Definition: commands_gnss.hpp:245
mip::commands_gnss::RtkDongleConfiguration::Response::reserved
uint8_t reserved[3]
Definition: commands_gnss.hpp:371
mip::commands_gnss::SpartnConfiguration::Response::DESCRIPTOR_SET
static constexpr const uint8_t DESCRIPTOR_SET
Descriptors.
Definition: commands_gnss.hpp:293
mip::commands_gnss::ReceiverInfo::DESCRIPTOR_SET
static constexpr const uint8_t DESCRIPTOR_SET
Descriptors.
Definition: commands_gnss.hpp:86
microstrain::Serializer
Serializes or deserializes data to/from a byte buffer.
Definition: serializer.hpp:125
mip::commands_gnss::SpartnConfiguration::Response::type
uint8_t type
Connection type (0 - None, 1 = Network, 2 = L-Band)
Definition: commands_gnss.hpp:284
mip::commands_gnss::SpartnConfiguration::insert
void insert(Serializer &serializer) const
Serialization.
Definition: commands_gnss.cpp:246
mip::commands_gnss::SignalConfiguration::Response::DESCRIPTOR_SET
static constexpr const uint8_t DESCRIPTOR_SET
Descriptors.
Definition: commands_gnss.hpp:197
mip::commands_gnss::RtkDongleConfiguration::Response::asTuple
auto asTuple()
Definition: commands_gnss.hpp:386
mip::commands_gnss::RtkDongleConfiguration::insert
void insert(Serializer &serializer) const
Serialization.
Definition: commands_gnss.cpp:448
mip::commands_gnss::SpartnConfiguration::extract
void extract(Serializer &serializer)
Definition: commands_gnss.cpp:272
mip::commands_gnss::SpartnConfiguration::next_key_week
uint16_t next_key_week
The GPS week number the next key is valid until.
Definition: commands_gnss.hpp:248
mip::commands_gnss::ReceiverInfo::Info::extract
void extract(Serializer &serializer)
Definition: commands_gnss.cpp:33
mip::commands_gnss::REPLY_RTK_DONGLE_CONFIGURATION
@ REPLY_RTK_DONGLE_CONFIGURATION
Definition: commands_gnss.hpp:40
mip::commands_gnss::SignalConfiguration::galileo_enable
uint8_t galileo_enable
Bitfield 0: Enable E1, 1: Enable E5B, 2: Enable E5A.
Definition: commands_gnss.hpp:154
mip::commands_gnss::RtkDongleConfiguration::Response::DESCRIPTOR
static constexpr const CompositeDescriptor DESCRIPTOR
Definition: commands_gnss.hpp:376
mip::commands_gnss::ReceiverInfo::NAME
static constexpr const char * NAME
Definition: commands_gnss.hpp:89
mip::commands_gnss::loadSignalConfiguration
TypedResult< SignalConfiguration > loadSignalConfiguration(C::mip_interface &device)
Definition: commands_gnss.cpp:226
mip::commands_gnss::SpartnConfiguration::Response
Definition: commands_gnss.hpp:280
mip::commands_gnss::RtkDongleConfiguration::FIELD_DESCRIPTOR
static constexpr const uint8_t FIELD_DESCRIPTOR
Definition: commands_gnss.hpp:340
mip::commands_gnss::ReceiverInfo::HAS_FUNCTION_SELECTOR
static constexpr const bool HAS_FUNCTION_SELECTOR
Definition: commands_gnss.hpp:91
mip::commands_gnss::SpartnConfiguration::DESCRIPTOR
static constexpr const CompositeDescriptor DESCRIPTOR
Definition: commands_gnss.hpp:254
mip::commands_gnss::SignalConfiguration::Response::reserved
uint8_t reserved[4]
Definition: commands_gnss.hpp:194
mip::commands_gnss::SignalConfiguration::Response::asTuple
auto asTuple()
Definition: commands_gnss.hpp:209
mip::commands_gnss::RtkDongleConfiguration::Response::asTuple
auto asTuple() const
Definition: commands_gnss.hpp:381
mip::commands_gnss::SignalConfiguration::reserved
uint8_t reserved[4]
Definition: commands_gnss.hpp:156
mip::commands_gnss::RtkDongleConfiguration::NAME
static constexpr const char * NAME
Definition: commands_gnss.hpp:342
mip::commands_gnss::ReceiverInfo::Response::insert
void insert(Serializer &serializer) const
Serialization.
Definition: commands_gnss.cpp:53
mip::commands_gnss::SpartnConfiguration::Response::DESCRIPTOR
static constexpr const CompositeDescriptor DESCRIPTOR
Definition: commands_gnss.hpp:295
mip::commands_gnss::ReceiverInfo::Response::FIELD_DESCRIPTOR
static constexpr const uint8_t FIELD_DESCRIPTOR
Definition: commands_gnss.hpp:115
mip::commands_gnss::SpartnConfiguration::Response::current_key_tow
uint32_t current_key_tow
The GPS time of week the current key is valid until.
Definition: commands_gnss.hpp:285
mip::commands_gnss::ReceiverInfo::FIELD_DESCRIPTOR
static constexpr const uint8_t FIELD_DESCRIPTOR
Definition: commands_gnss.hpp:87
mip::commands_gnss::ReceiverInfo::Response::extract
void extract(Serializer &serializer)
Definition: commands_gnss.cpp:61
mip::C::mip_interface
struct mip::C::mip_interface mip_interface
State of the interface for communicating with a MIP device.
mip::commands_gnss::SignalConfiguration::function
FunctionSelector function
Parameters.
Definition: commands_gnss.hpp:151
mip::commands_gnss::RtkDongleConfiguration::Response
Definition: commands_gnss.hpp:367
mip::commands_gnss::SignalConfiguration::DESCRIPTOR_SET
static constexpr const uint8_t DESCRIPTOR_SET
Descriptors.
Definition: commands_gnss.hpp:159
mip::commands_gnss::RtkDongleConfiguration::Response::enable
uint8_t enable
Parameters.
Definition: commands_gnss.hpp:370
mip::commands_gnss::SpartnConfiguration::current_key
uint8_t current_key[32]
32 character string of ASCII hex values for the current key (e.g. "bc" for 0xBC)
Definition: commands_gnss.hpp:246
mip::commands_gnss::ReceiverInfo::DESCRIPTOR
static constexpr const CompositeDescriptor DESCRIPTOR
Definition: commands_gnss.hpp:88
mip::commands_gnss::SpartnConfiguration::Response::DOC_NAME
static constexpr const char * DOC_NAME
Definition: commands_gnss.hpp:297
mip::commands_gnss::RtkDongleConfiguration::asTuple
auto asTuple() const
Definition: commands_gnss.hpp:346
mip::commands_gnss::ReceiverInfo::Response::num_receivers
uint8_t num_receivers
Parameters.
Definition: commands_gnss.hpp:110
mip::commands_gnss::SpartnConfiguration::current_key_tow
uint32_t current_key_tow
The GPS time of week the current key is valid until.
Definition: commands_gnss.hpp:244
mip::commands_gnss::SignalConfiguration::Response::galileo_enable
uint8_t galileo_enable
Bitfield 0: Enable E1, 1: Enable E5B, 2: Enable E5A.
Definition: commands_gnss.hpp:192
mip::commands_gnss::RtkDongleConfiguration::DESCRIPTOR_SET
static constexpr const uint8_t DESCRIPTOR_SET
Descriptors.
Definition: commands_gnss.hpp:339
mip::commands_gnss::REPLY_SPARTN_CONFIGURATION
@ REPLY_SPARTN_CONFIGURATION
Definition: commands_gnss.hpp:41
mip::commands_gnss::SpartnConfiguration::Response::NAME
static constexpr const char * NAME
Definition: commands_gnss.hpp:296
mip::commands_gnss::defaultSignalConfiguration
TypedResult< SignalConfiguration > defaultSignalConfiguration(C::mip_interface &device)
Definition: commands_gnss.cpp:236
mip::commands_gnss::readRtkDongleConfiguration
TypedResult< RtkDongleConfiguration > readRtkDongleConfiguration(C::mip_interface &device, uint8_t *enableOut, uint8_t *reservedOut)
Definition: commands_gnss.cpp:508
mip::commands_gnss::SpartnConfiguration::type
uint8_t type
Connection type (0 - None, 1 = Network, 2 = L-Band)
Definition: commands_gnss.hpp:243
mip::commands_gnss::SpartnConfiguration::NAME
static constexpr const char * NAME
Definition: commands_gnss.hpp:255
mip::commands_gnss::RtkDongleConfiguration::reserved
uint8_t reserved[3]
Definition: commands_gnss.hpp:336
mip::commands_gnss::DESCRIPTOR_SET
@ DESCRIPTOR_SET
Definition: commands_gnss.hpp:31
mip::commands_gnss::ReceiverInfo::insert
void insert(Serializer &serializer) const
Serialization.
Definition: commands_gnss.cpp:44
mip::commands_gnss::SpartnConfiguration::Response::asTuple
auto asTuple()
Definition: commands_gnss.hpp:305
mip::commands_gnss::ReceiverInfo::Response::asTuple
auto asTuple()
Definition: commands_gnss.hpp:126
mip::commands_gnss::ReceiverInfo::Response::receiver_info
Info receiver_info[5]
Definition: commands_gnss.hpp:111
mip::commands_gnss::SpartnConfiguration::FIELD_DESCRIPTOR
static constexpr const uint8_t FIELD_DESCRIPTOR
Definition: commands_gnss.hpp:253
mip::commands_gnss::CMD_SPARTN_CONFIGURATION
@ CMD_SPARTN_CONFIGURATION
Definition: commands_gnss.hpp:36
mip::commands_gnss::CMD_LIST_RECEIVERS
@ CMD_LIST_RECEIVERS
Definition: commands_gnss.hpp:33
mip::commands_gnss::SignalConfiguration::Response
Definition: commands_gnss.hpp:187
mip::commands_gnss::SpartnConfiguration::enable
uint8_t enable
Enable/Disable the SPARTN subsystem (0 = Disabled, 1 = Enabled)
Definition: commands_gnss.hpp:242
mip::commands_gnss::SpartnConfiguration::Response::current_key
uint8_t current_key[32]
32 character string of ASCII hex values for the current key (e.g. "bc" for 0xBC)
Definition: commands_gnss.hpp:287
mip::commands_gnss::ReceiverInfo
Definition: commands_gnss.hpp:71
mip::commands_gnss::loadRtkDongleConfiguration
TypedResult< RtkDongleConfiguration > loadRtkDongleConfiguration(C::mip_interface &device)
Definition: commands_gnss.cpp:545
mip::commands_gnss::RtkDongleConfiguration::Response::extract
void extract(Serializer &serializer)
Definition: commands_gnss.cpp:483
mip::FunctionSelector
FunctionSelector
Definition: mip_descriptors.hpp:66
mip::commands_gnss::SpartnConfiguration
Definition: commands_gnss.hpp:238
mip::commands_gnss::ReceiverInfo::Response::DESCRIPTOR
static constexpr const CompositeDescriptor DESCRIPTOR
Definition: commands_gnss.hpp:116
mip::commands_gnss::SignalConfiguration::HAS_FUNCTION_SELECTOR
static constexpr const bool HAS_FUNCTION_SELECTOR
Definition: commands_gnss.hpp:164
mip::commands_gnss::SignalConfiguration::create_sld_all
static SignalConfiguration create_sld_all(::mip::FunctionSelector function)
Definition: commands_gnss.hpp:176
mip::commands_gnss::REPLY_LIST_RECEIVERS
@ REPLY_LIST_RECEIVERS
Definition: commands_gnss.hpp:38
mip::commands_gnss::ReceiverInfo::Response::NAME
static constexpr const char * NAME
Definition: commands_gnss.hpp:117
mip::commands_gnss::SignalConfiguration::Response::HAS_FUNCTION_SELECTOR
static constexpr const bool HAS_FUNCTION_SELECTOR
Definition: commands_gnss.hpp:202
mip::commands_gnss::loadSpartnConfiguration
TypedResult< SpartnConfiguration > loadSpartnConfiguration(C::mip_interface &device)
Definition: commands_gnss.cpp:428
mip::commands_gnss::SpartnConfiguration::Response::next_key_week
uint16_t next_key_week
The GPS week number the next key is valid until.
Definition: commands_gnss.hpp:289
mip::commands_gnss::SpartnConfiguration::Response::FIELD_DESCRIPTOR
static constexpr const uint8_t FIELD_DESCRIPTOR
Definition: commands_gnss.hpp:294
mip::commands_gnss::RtkDongleConfiguration::Response::insert
void insert(Serializer &serializer) const
Serialization.
Definition: commands_gnss.cpp:475
mip::commands_gnss::SignalConfiguration::Response::DOC_NAME
static constexpr const char * DOC_NAME
Definition: commands_gnss.hpp:201
mip::commands_gnss::RtkDongleConfiguration::Response::DESCRIPTOR_SET
static constexpr const uint8_t DESCRIPTOR_SET
Descriptors.
Definition: commands_gnss.hpp:374
mip::commands_gnss::SpartnConfiguration::DOC_NAME
static constexpr const char * DOC_NAME
Definition: commands_gnss.hpp:256
mip::commands_gnss::SignalConfiguration::DOC_NAME
static constexpr const char * DOC_NAME
Definition: commands_gnss.hpp:163
mip::commands_gnss::writeSignalConfiguration
TypedResult< SignalConfiguration > writeSignalConfiguration(C::mip_interface &device, uint8_t gpsEnable, uint8_t glonassEnable, uint8_t galileoEnable, uint8_t beidouEnable, const uint8_t *reserved)
Definition: commands_gnss.cpp:158
mip::commands_gnss::ReceiverInfo::asTuple
auto asTuple() const
Definition: commands_gnss.hpp:93
mip::commands_gnss::saveRtkDongleConfiguration
TypedResult< RtkDongleConfiguration > saveRtkDongleConfiguration(C::mip_interface &device)
Definition: commands_gnss.cpp:535
mip::commands_gnss::SignalConfiguration::Response::beidou_enable
uint8_t beidou_enable
Bitfield 0: Enable B1, 1: Enable B2, 2: Enable B2A.
Definition: commands_gnss.hpp:193
mip::commands_gnss::SignalConfiguration::Response::extract
void extract(Serializer &serializer)
Definition: commands_gnss.cpp:143
mip::commands_gnss::ReceiverInfo::DOC_NAME
static constexpr const char * DOC_NAME
Definition: commands_gnss.hpp:90
mip::C::mip_interface
State of the interface for communicating with a MIP device.
Definition: mip_interface.h:44
mip::commands_gnss::SignalConfiguration::Response::FIELD_DESCRIPTOR
static constexpr const uint8_t FIELD_DESCRIPTOR
Definition: commands_gnss.hpp:198
mip::commands_gnss::SpartnConfiguration::asTuple
auto asTuple() const
Definition: commands_gnss.hpp:259
mip::commands_gnss::RtkDongleConfiguration
Definition: commands_gnss.hpp:331
mip::commands_gnss::SignalConfiguration::extract
void extract(Serializer &serializer)
Definition: commands_gnss.cpp:109
mip::commands_gnss::RtkDongleConfiguration::Response::HAS_FUNCTION_SELECTOR
static constexpr const bool HAS_FUNCTION_SELECTOR
Definition: commands_gnss.hpp:379
mip::commands_gnss::SpartnConfiguration::Response::extract
void extract(Serializer &serializer)
Definition: commands_gnss.cpp:320
mip::commands_gnss::readSpartnConfiguration
TypedResult< SpartnConfiguration > readSpartnConfiguration(C::mip_interface &device, uint8_t *enableOut, uint8_t *typeOut, uint32_t *currentKeyTowOut, uint16_t *currentKeyWeekOut, uint8_t *currentKeyOut, uint32_t *nextKeyTowOut, uint16_t *nextKeyWeekOut, uint8_t *nextKeyOut)
Definition: commands_gnss.cpp:372
mip::commands_gnss::ReceiverInfo::extract
void extract(Serializer &serializer)
Definition: commands_gnss.cpp:48
mip::commands_gnss::SignalConfiguration::Response::asTuple
auto asTuple() const
Definition: commands_gnss.hpp:204
mip::commands_gnss::SignalConfiguration::NAME
static constexpr const char * NAME
Definition: commands_gnss.hpp:162
mip_interface.hpp
mip::commands_gnss::ReceiverInfo::Info
Definition: commands_gnss.hpp:73
mip::commands_gnss::RtkDongleConfiguration::DESCRIPTOR
static constexpr const CompositeDescriptor DESCRIPTOR
Definition: commands_gnss.hpp:341
mip::commands_gnss::RtkDongleConfiguration::asTuple
auto asTuple()
Definition: commands_gnss.hpp:351
mip::commands_gnss::writeRtkDongleConfiguration
TypedResult< RtkDongleConfiguration > writeRtkDongleConfiguration(C::mip_interface &device, uint8_t enable, const uint8_t *reserved)
Definition: commands_gnss.cpp:492
mip::commands_gnss::ReceiverInfo::Info::mip_data_descriptor_set
uint8_t mip_data_descriptor_set
MIP descriptor set associated with this receiver.
Definition: commands_gnss.hpp:77
mip::commands_gnss::RtkDongleConfiguration::create_sld_all
static RtkDongleConfiguration create_sld_all(::mip::FunctionSelector function)
Definition: commands_gnss.hpp:356
mip::commands_gnss::writeSpartnConfiguration
TypedResult< SpartnConfiguration > writeSpartnConfiguration(C::mip_interface &device, uint8_t enable, uint8_t type, uint32_t currentKeyTow, uint16_t currentKeyWeek, const uint8_t *currentKey, uint32_t nextKeyTow, uint16_t nextKeyWeek, const uint8_t *nextKey)
Definition: commands_gnss.cpp:342
mip::commands_gnss::RtkDongleConfiguration::Response::DOC_NAME
static constexpr const char * DOC_NAME
Definition: commands_gnss.hpp:378
mip::commands_gnss::defaultSpartnConfiguration
TypedResult< SpartnConfiguration > defaultSpartnConfiguration(C::mip_interface &device)
Definition: commands_gnss.cpp:438
mip::commands_gnss::SpartnConfiguration::Response::asTuple
auto asTuple() const
Definition: commands_gnss.hpp:300
mip::commands_gnss::RtkDongleConfiguration::HAS_FUNCTION_SELECTOR
static constexpr const bool HAS_FUNCTION_SELECTOR
Definition: commands_gnss.hpp:344
mip::commands_gnss::ReceiverInfo::Info::insert
void insert(Serializer &serializer) const
Serialization.
Definition: commands_gnss.cpp:23
mip::commands_gnss::SignalConfiguration::glonass_enable
uint8_t glonass_enable
Bitfield 0: Enable L1OF, 1: Enable L2OF.
Definition: commands_gnss.hpp:153
mip::commands_gnss::SignalConfiguration::Response::gps_enable
uint8_t gps_enable
Parameters.
Definition: commands_gnss.hpp:190
mip::commands_gnss::SignalConfiguration::gps_enable
uint8_t gps_enable
Bitfield 0: Enable L1CA, 1: Enable L2C, 2: Enable L5.
Definition: commands_gnss.hpp:152
mip::commands_gnss::SpartnConfiguration::Response::next_key
uint8_t next_key[32]
32 character string of ASCII hex valuesfor the next key (e.g. "bc" for 0xBC)
Definition: commands_gnss.hpp:290
mip::commands_gnss::saveSpartnConfiguration
TypedResult< SpartnConfiguration > saveSpartnConfiguration(C::mip_interface &device)
Definition: commands_gnss.cpp:418
mip::commands_gnss::SignalConfiguration::asTuple
auto asTuple() const
Definition: commands_gnss.hpp:166
mip::commands_gnss::defaultRtkDongleConfiguration
TypedResult< RtkDongleConfiguration > defaultRtkDongleConfiguration(C::mip_interface &device)
Definition: commands_gnss.cpp:555
mip::commands_gnss::SpartnConfiguration::Response::enable
uint8_t enable
Parameters.
Definition: commands_gnss.hpp:283
mip::commands_gnss::ReceiverInfo::asTuple
auto asTuple()
Definition: commands_gnss.hpp:98
mip::commands_gnss::SignalConfiguration::insert
void insert(Serializer &serializer) const
Serialization.
Definition: commands_gnss.cpp:90
mip::commands_gnss::readSignalConfiguration
TypedResult< SignalConfiguration > readSignalConfiguration(C::mip_interface &device, uint8_t *gpsEnableOut, uint8_t *glonassEnableOut, uint8_t *galileoEnableOut, uint8_t *beidouEnableOut, uint8_t *reservedOut)
Definition: commands_gnss.cpp:180
mip::CompositeDescriptor
Convenience struct holding both descriptor set and field descriptor.
Definition: mip_descriptors.hpp:21
mip::commands_gnss::ReceiverInfo::Response::HAS_FUNCTION_SELECTOR
static constexpr const bool HAS_FUNCTION_SELECTOR
Definition: commands_gnss.hpp:119
mip::commands_gnss::ReceiverInfo::Response
Definition: commands_gnss.hpp:107
mip::commands_gnss::SpartnConfiguration::Response::HAS_FUNCTION_SELECTOR
static constexpr const bool HAS_FUNCTION_SELECTOR
Definition: commands_gnss.hpp:298
mip::commands_gnss::saveSignalConfiguration
TypedResult< SignalConfiguration > saveSignalConfiguration(C::mip_interface &device)
Definition: commands_gnss.cpp:216
mip::commands_gnss::SpartnConfiguration::create_sld_all
static SpartnConfiguration create_sld_all(::mip::FunctionSelector function)
Definition: commands_gnss.hpp:269
mip::commands_gnss::CMD_SIGNAL_CONFIGURATION
@ CMD_SIGNAL_CONFIGURATION
Definition: commands_gnss.hpp:34
mip::commands_gnss::receiverInfo
TypedResult< ReceiverInfo > receiverInfo(C::mip_interface &device, uint8_t *numReceiversOut, uint8_t numReceiversOutMax, ReceiverInfo::Info *receiverInfoOut)
Definition: commands_gnss.cpp:69
mip::commands_gnss::SignalConfiguration::Response::glonass_enable
uint8_t glonass_enable
Bitfield 0: Enable L1OF, 1: Enable L2OF.
Definition: commands_gnss.hpp:191
mip::commands_gnss::SignalConfiguration::Response::NAME
static constexpr const char * NAME
Definition: commands_gnss.hpp:200
mip::commands_gnss::SignalConfiguration
Definition: commands_gnss.hpp:148
mip::commands_gnss::SignalConfiguration::beidou_enable
uint8_t beidou_enable
Bitfield 0: Enable B1, 1: Enable B2, 2: Enable B2A.
Definition: commands_gnss.hpp:155
mip::commands_gnss::SpartnConfiguration::Response::next_key_tow
uint32_t next_key_tow
The GPS time of week the next key is valid until.
Definition: commands_gnss.hpp:288
mip::commands_gnss::ReceiverInfo::Info::receiver_id
uint8_t receiver_id
Parameters.
Definition: commands_gnss.hpp:76
mip::commands_gnss::SignalConfiguration::Response::insert
void insert(Serializer &serializer) const
Serialization.
Definition: commands_gnss.cpp:129
mip::TypedResult
A CmdResult that knows the corresponding command type.
Definition: mip_descriptors.hpp:97
mip::commands_gnss::REPLY_SIGNAL_CONFIGURATION
@ REPLY_SIGNAL_CONFIGURATION
Definition: commands_gnss.hpp:39
common.hpp
mip::commands_gnss::ReceiverInfo::Response::DOC_NAME
static constexpr const char * DOC_NAME
Definition: commands_gnss.hpp:118
mip::commands_gnss::SpartnConfiguration::Response::current_key_week
uint16_t current_key_week
The GPS week number the current key is valid until.
Definition: commands_gnss.hpp:286
mip_result.hpp
mip::commands_gnss::RtkDongleConfiguration::enable
uint8_t enable
0 - Disabled, 1- Enabled
Definition: commands_gnss.hpp:335
mip::commands_gnss::SpartnConfiguration::Response::insert
void insert(Serializer &serializer) const
Serialization.
Definition: commands_gnss.cpp:299
mip::commands_gnss::RtkDongleConfiguration::Response::NAME
static constexpr const char * NAME
Definition: commands_gnss.hpp:377