MIP_SDK
latest-2-g34f3e39
MicroStrain Communications Library for embedded systems
|
Go to the documentation of this file.
16 namespace commands_gnss {
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;
89 static constexpr
const char*
NAME =
"ReceiverInfo";
90 static constexpr
const char*
DOC_NAME =
"ReceiverInfo";
95 return std::make_tuple();
100 return std::make_tuple();
117 static constexpr
const char*
NAME =
"ReceiverInfo::Response";
118 static constexpr
const char*
DOC_NAME =
"ReceiverInfo Response";
162 static constexpr
const char*
NAME =
"SignalConfiguration";
163 static constexpr
const char*
DOC_NAME =
"SignalConfiguration";
200 static constexpr
const char*
NAME =
"SignalConfiguration::Response";
201 static constexpr
const char*
DOC_NAME =
"SignalConfiguration Response";
255 static constexpr
const char*
NAME =
"SpartnConfiguration";
256 static constexpr
const char*
DOC_NAME =
"SpartnConfiguration";
296 static constexpr
const char*
NAME =
"SpartnConfiguration::Response";
297 static constexpr
const char*
DOC_NAME =
"SpartnConfiguration Response";
342 static constexpr
const char*
NAME =
"RtkDongleConfiguration";
343 static constexpr
const char*
DOC_NAME =
"RtkDongleConfiguration";
377 static constexpr
const char*
NAME =
"RtkDongleConfiguration::Response";
378 static constexpr
const char*
DOC_NAME =
"RtkDongleConfiguration Response";
FunctionSelector function
Parameters.
Definition: commands_gnss.hpp:334
uint32_t next_key_tow
The GPS time of week the next key is valid until.
Definition: commands_gnss.hpp:247
char description[32]
Ascii description of receiver. Contains the following info (comma-delimited): Module name/model Fir...
Definition: commands_gnss.hpp:78
static constexpr const char * DOC_NAME
Definition: commands_gnss.hpp:343
auto asTuple()
Definition: commands_gnss.hpp:264
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
static constexpr const CompositeDescriptor DESCRIPTOR
Definition: commands_gnss.hpp:161
static constexpr const uint8_t FIELD_DESCRIPTOR
Definition: commands_gnss.hpp:160
@ CMD_RTK_DONGLE_CONFIGURATION
Definition: commands_gnss.hpp:35
void extract(Serializer &serializer)
Definition: commands_gnss.cpp:461
static constexpr const uint8_t FIELD_DESCRIPTOR
Definition: commands_gnss.hpp:375
static constexpr const uint8_t DESCRIPTOR_SET
Descriptors.
Definition: commands_gnss.hpp:252
static constexpr const bool HAS_FUNCTION_SELECTOR
Definition: commands_gnss.hpp:257
A collection of C++ classes and functions covering the full mip api.
Definition: commands_3dm.c:11
FunctionSelector function
Parameters.
Definition: commands_gnss.hpp:241
static constexpr const CompositeDescriptor DESCRIPTOR
Definition: commands_gnss.hpp:199
static constexpr const uint8_t DESCRIPTOR_SET
Descriptors.
Definition: commands_gnss.hpp:114
auto asTuple()
Definition: commands_gnss.hpp:171
auto asTuple() const
Definition: commands_gnss.hpp:121
uint16_t current_key_week
The GPS week number the current key is valid until.
Definition: commands_gnss.hpp:245
uint8_t reserved[3]
Definition: commands_gnss.hpp:371
static constexpr const uint8_t DESCRIPTOR_SET
Descriptors.
Definition: commands_gnss.hpp:293
static constexpr const uint8_t DESCRIPTOR_SET
Descriptors.
Definition: commands_gnss.hpp:86
Serializes or deserializes data to/from a byte buffer.
Definition: serializer.hpp:125
uint8_t type
Connection type (0 - None, 1 = Network, 2 = L-Band)
Definition: commands_gnss.hpp:284
void insert(Serializer &serializer) const
Serialization.
Definition: commands_gnss.cpp:246
static constexpr const uint8_t DESCRIPTOR_SET
Descriptors.
Definition: commands_gnss.hpp:197
auto asTuple()
Definition: commands_gnss.hpp:386
void insert(Serializer &serializer) const
Serialization.
Definition: commands_gnss.cpp:448
void extract(Serializer &serializer)
Definition: commands_gnss.cpp:272
uint16_t next_key_week
The GPS week number the next key is valid until.
Definition: commands_gnss.hpp:248
void extract(Serializer &serializer)
Definition: commands_gnss.cpp:33
@ REPLY_RTK_DONGLE_CONFIGURATION
Definition: commands_gnss.hpp:40
uint8_t galileo_enable
Bitfield 0: Enable E1, 1: Enable E5B, 2: Enable E5A.
Definition: commands_gnss.hpp:154
static constexpr const CompositeDescriptor DESCRIPTOR
Definition: commands_gnss.hpp:376
static constexpr const char * NAME
Definition: commands_gnss.hpp:89
TypedResult< SignalConfiguration > loadSignalConfiguration(C::mip_interface &device)
Definition: commands_gnss.cpp:226
Definition: commands_gnss.hpp:280
static constexpr const uint8_t FIELD_DESCRIPTOR
Definition: commands_gnss.hpp:340
static constexpr const bool HAS_FUNCTION_SELECTOR
Definition: commands_gnss.hpp:91
static constexpr const CompositeDescriptor DESCRIPTOR
Definition: commands_gnss.hpp:254
uint8_t reserved[4]
Definition: commands_gnss.hpp:194
auto asTuple()
Definition: commands_gnss.hpp:209
auto asTuple() const
Definition: commands_gnss.hpp:381
uint8_t reserved[4]
Definition: commands_gnss.hpp:156
static constexpr const char * NAME
Definition: commands_gnss.hpp:342
void insert(Serializer &serializer) const
Serialization.
Definition: commands_gnss.cpp:53
static constexpr const CompositeDescriptor DESCRIPTOR
Definition: commands_gnss.hpp:295
static constexpr const uint8_t FIELD_DESCRIPTOR
Definition: commands_gnss.hpp:115
uint32_t current_key_tow
The GPS time of week the current key is valid until.
Definition: commands_gnss.hpp:285
static constexpr const uint8_t FIELD_DESCRIPTOR
Definition: commands_gnss.hpp:87
void extract(Serializer &serializer)
Definition: commands_gnss.cpp:61
struct mip::C::mip_interface mip_interface
State of the interface for communicating with a MIP device.
FunctionSelector function
Parameters.
Definition: commands_gnss.hpp:151
Definition: commands_gnss.hpp:367
static constexpr const uint8_t DESCRIPTOR_SET
Descriptors.
Definition: commands_gnss.hpp:159
uint8_t enable
Parameters.
Definition: commands_gnss.hpp:370
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
static constexpr const CompositeDescriptor DESCRIPTOR
Definition: commands_gnss.hpp:88
static constexpr const char * DOC_NAME
Definition: commands_gnss.hpp:297
auto asTuple() const
Definition: commands_gnss.hpp:346
uint8_t num_receivers
Parameters.
Definition: commands_gnss.hpp:110
uint32_t current_key_tow
The GPS time of week the current key is valid until.
Definition: commands_gnss.hpp:244
uint8_t galileo_enable
Bitfield 0: Enable E1, 1: Enable E5B, 2: Enable E5A.
Definition: commands_gnss.hpp:192
static constexpr const uint8_t DESCRIPTOR_SET
Descriptors.
Definition: commands_gnss.hpp:339
@ REPLY_SPARTN_CONFIGURATION
Definition: commands_gnss.hpp:41
static constexpr const char * NAME
Definition: commands_gnss.hpp:296
TypedResult< SignalConfiguration > defaultSignalConfiguration(C::mip_interface &device)
Definition: commands_gnss.cpp:236
TypedResult< RtkDongleConfiguration > readRtkDongleConfiguration(C::mip_interface &device, uint8_t *enableOut, uint8_t *reservedOut)
Definition: commands_gnss.cpp:508
uint8_t type
Connection type (0 - None, 1 = Network, 2 = L-Band)
Definition: commands_gnss.hpp:243
static constexpr const char * NAME
Definition: commands_gnss.hpp:255
uint8_t reserved[3]
Definition: commands_gnss.hpp:336
@ DESCRIPTOR_SET
Definition: commands_gnss.hpp:31
void insert(Serializer &serializer) const
Serialization.
Definition: commands_gnss.cpp:44
auto asTuple()
Definition: commands_gnss.hpp:305
auto asTuple()
Definition: commands_gnss.hpp:126
Info receiver_info[5]
Definition: commands_gnss.hpp:111
static constexpr const uint8_t FIELD_DESCRIPTOR
Definition: commands_gnss.hpp:253
@ CMD_SPARTN_CONFIGURATION
Definition: commands_gnss.hpp:36
@ CMD_LIST_RECEIVERS
Definition: commands_gnss.hpp:33
Definition: commands_gnss.hpp:187
uint8_t enable
Enable/Disable the SPARTN subsystem (0 = Disabled, 1 = Enabled)
Definition: commands_gnss.hpp:242
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
Definition: commands_gnss.hpp:71
TypedResult< RtkDongleConfiguration > loadRtkDongleConfiguration(C::mip_interface &device)
Definition: commands_gnss.cpp:545
void extract(Serializer &serializer)
Definition: commands_gnss.cpp:483
FunctionSelector
Definition: mip_descriptors.hpp:66
Definition: commands_gnss.hpp:238
static constexpr const CompositeDescriptor DESCRIPTOR
Definition: commands_gnss.hpp:116
static constexpr const bool HAS_FUNCTION_SELECTOR
Definition: commands_gnss.hpp:164
static SignalConfiguration create_sld_all(::mip::FunctionSelector function)
Definition: commands_gnss.hpp:176
@ REPLY_LIST_RECEIVERS
Definition: commands_gnss.hpp:38
static constexpr const char * NAME
Definition: commands_gnss.hpp:117
static constexpr const bool HAS_FUNCTION_SELECTOR
Definition: commands_gnss.hpp:202
TypedResult< SpartnConfiguration > loadSpartnConfiguration(C::mip_interface &device)
Definition: commands_gnss.cpp:428
uint16_t next_key_week
The GPS week number the next key is valid until.
Definition: commands_gnss.hpp:289
static constexpr const uint8_t FIELD_DESCRIPTOR
Definition: commands_gnss.hpp:294
void insert(Serializer &serializer) const
Serialization.
Definition: commands_gnss.cpp:475
static constexpr const char * DOC_NAME
Definition: commands_gnss.hpp:201
static constexpr const uint8_t DESCRIPTOR_SET
Descriptors.
Definition: commands_gnss.hpp:374
static constexpr const char * DOC_NAME
Definition: commands_gnss.hpp:256
static constexpr const char * DOC_NAME
Definition: commands_gnss.hpp:163
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
auto asTuple() const
Definition: commands_gnss.hpp:93
TypedResult< RtkDongleConfiguration > saveRtkDongleConfiguration(C::mip_interface &device)
Definition: commands_gnss.cpp:535
uint8_t beidou_enable
Bitfield 0: Enable B1, 1: Enable B2, 2: Enable B2A.
Definition: commands_gnss.hpp:193
void extract(Serializer &serializer)
Definition: commands_gnss.cpp:143
static constexpr const char * DOC_NAME
Definition: commands_gnss.hpp:90
State of the interface for communicating with a MIP device.
Definition: mip_interface.h:44
static constexpr const uint8_t FIELD_DESCRIPTOR
Definition: commands_gnss.hpp:198
auto asTuple() const
Definition: commands_gnss.hpp:259
Definition: commands_gnss.hpp:331
void extract(Serializer &serializer)
Definition: commands_gnss.cpp:109
static constexpr const bool HAS_FUNCTION_SELECTOR
Definition: commands_gnss.hpp:379
void extract(Serializer &serializer)
Definition: commands_gnss.cpp:320
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
void extract(Serializer &serializer)
Definition: commands_gnss.cpp:48
auto asTuple() const
Definition: commands_gnss.hpp:204
static constexpr const char * NAME
Definition: commands_gnss.hpp:162
Definition: commands_gnss.hpp:73
static constexpr const CompositeDescriptor DESCRIPTOR
Definition: commands_gnss.hpp:341
auto asTuple()
Definition: commands_gnss.hpp:351
TypedResult< RtkDongleConfiguration > writeRtkDongleConfiguration(C::mip_interface &device, uint8_t enable, const uint8_t *reserved)
Definition: commands_gnss.cpp:492
uint8_t mip_data_descriptor_set
MIP descriptor set associated with this receiver.
Definition: commands_gnss.hpp:77
static RtkDongleConfiguration create_sld_all(::mip::FunctionSelector function)
Definition: commands_gnss.hpp:356
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
static constexpr const char * DOC_NAME
Definition: commands_gnss.hpp:378
TypedResult< SpartnConfiguration > defaultSpartnConfiguration(C::mip_interface &device)
Definition: commands_gnss.cpp:438
auto asTuple() const
Definition: commands_gnss.hpp:300
static constexpr const bool HAS_FUNCTION_SELECTOR
Definition: commands_gnss.hpp:344
void insert(Serializer &serializer) const
Serialization.
Definition: commands_gnss.cpp:23
uint8_t glonass_enable
Bitfield 0: Enable L1OF, 1: Enable L2OF.
Definition: commands_gnss.hpp:153
uint8_t gps_enable
Parameters.
Definition: commands_gnss.hpp:190
uint8_t gps_enable
Bitfield 0: Enable L1CA, 1: Enable L2C, 2: Enable L5.
Definition: commands_gnss.hpp:152
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
TypedResult< SpartnConfiguration > saveSpartnConfiguration(C::mip_interface &device)
Definition: commands_gnss.cpp:418
auto asTuple() const
Definition: commands_gnss.hpp:166
TypedResult< RtkDongleConfiguration > defaultRtkDongleConfiguration(C::mip_interface &device)
Definition: commands_gnss.cpp:555
uint8_t enable
Parameters.
Definition: commands_gnss.hpp:283
auto asTuple()
Definition: commands_gnss.hpp:98
void insert(Serializer &serializer) const
Serialization.
Definition: commands_gnss.cpp:90
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
Convenience struct holding both descriptor set and field descriptor.
Definition: mip_descriptors.hpp:21
static constexpr const bool HAS_FUNCTION_SELECTOR
Definition: commands_gnss.hpp:119
Definition: commands_gnss.hpp:107
static constexpr const bool HAS_FUNCTION_SELECTOR
Definition: commands_gnss.hpp:298
TypedResult< SignalConfiguration > saveSignalConfiguration(C::mip_interface &device)
Definition: commands_gnss.cpp:216
static SpartnConfiguration create_sld_all(::mip::FunctionSelector function)
Definition: commands_gnss.hpp:269
@ CMD_SIGNAL_CONFIGURATION
Definition: commands_gnss.hpp:34
TypedResult< ReceiverInfo > receiverInfo(C::mip_interface &device, uint8_t *numReceiversOut, uint8_t numReceiversOutMax, ReceiverInfo::Info *receiverInfoOut)
Definition: commands_gnss.cpp:69
uint8_t glonass_enable
Bitfield 0: Enable L1OF, 1: Enable L2OF.
Definition: commands_gnss.hpp:191
static constexpr const char * NAME
Definition: commands_gnss.hpp:200
Definition: commands_gnss.hpp:148
uint8_t beidou_enable
Bitfield 0: Enable B1, 1: Enable B2, 2: Enable B2A.
Definition: commands_gnss.hpp:155
uint32_t next_key_tow
The GPS time of week the next key is valid until.
Definition: commands_gnss.hpp:288
uint8_t receiver_id
Parameters.
Definition: commands_gnss.hpp:76
void insert(Serializer &serializer) const
Serialization.
Definition: commands_gnss.cpp:129
A CmdResult that knows the corresponding command type.
Definition: mip_descriptors.hpp:97
@ REPLY_SIGNAL_CONFIGURATION
Definition: commands_gnss.hpp:39
static constexpr const char * DOC_NAME
Definition: commands_gnss.hpp:118
uint16_t current_key_week
The GPS week number the current key is valid until.
Definition: commands_gnss.hpp:286
uint8_t enable
0 - Disabled, 1- Enabled
Definition: commands_gnss.hpp:335
void insert(Serializer &serializer) const
Serialization.
Definition: commands_gnss.cpp:299
static constexpr const char * NAME
Definition: commands_gnss.hpp:377