4 #include "../mip_result.h"
17 namespace commands_rtk {
113 operator uint32_t()
const {
return value; }
142 operator uint32_t()
const {
return value; }
364 void insert(
Serializer& serializer,
const GetModemFirmwareVersion::Response&
self);
430 operator uint8_t()
const {
return value; }
Serialization class.
Definition: serialization.h:145
CmdResult loadConnectedDeviceType(C::mip_interface &device)
Definition: commands_rtk.cpp:282
CmdResult saveConnectedDeviceType(C::mip_interface &device)
Definition: commands_rtk.cpp:272
CmdResult defaultConnectedDeviceType(C::mip_interface &device)
Definition: commands_rtk.cpp:292
CmdResult readConnectedDeviceType(C::mip_interface &device, ConnectedDeviceType::Type *devtypeOut)
Definition: commands_rtk.cpp:249
CmdResult writeConnectedDeviceType(C::mip_interface &device, ConnectedDeviceType::Type devtype)
Definition: commands_rtk.cpp:237
CmdResult getActCode(C::mip_interface &device, char *activationcodeOut)
Definition: commands_rtk.cpp:326
CmdResult getIccid(C::mip_interface &device, char *iccidOut)
Definition: commands_rtk.cpp:185
CmdResult getImei(C::mip_interface &device, char *imeiOut)
Definition: commands_rtk.cpp:97
CmdResult getImsi(C::mip_interface &device, char *imsiOut)
Definition: commands_rtk.cpp:141
CmdResult getModemFirmwareVersion(C::mip_interface &device, char *modemfirmwareversionOut)
Definition: commands_rtk.cpp:370
void extract(Serializer &serializer, GetStatusFlags &self)
Definition: commands_rtk.cpp:37
CmdResult getStatusFlags(C::mip_interface &device, GetStatusFlags::StatusFlags *flagsOut)
Definition: commands_rtk.cpp:54
void insert(Serializer &serializer, const GetStatusFlags &self)
Definition: commands_rtk.cpp:32
CmdResult ledControl(C::mip_interface &device, const uint8_t *primarycolor, const uint8_t *altcolor, LedAction act, uint32_t period)
Definition: commands_rtk.cpp:567
CmdResult modemHardReset(C::mip_interface &device)
Definition: commands_rtk.cpp:599
CmdResult prodEraseStorage(C::mip_interface &device, MediaSelector media)
Definition: commands_rtk.cpp:529
CmdResult serviceStatus(C::mip_interface &device, uint32_t reserved1, uint32_t reserved2, ServiceStatus::ServiceFlags *flagsOut, uint32_t *recievedbytesOut, uint32_t *lastbytesOut, uint64_t *lastbytestimeOut)
Definition: commands_rtk.cpp:483
struct mip::C::mip_interface mip_interface
State of the interface for communicating with a MIP device.
LedAction
Definition: commands_rtk.hpp:69
MediaSelector
Definition: commands_rtk.hpp:63
@ CMD_GET_STATUS_FLAGS
Definition: commands_rtk.hpp:34
@ REPLY_SERVICE_STATUS
Definition: commands_rtk.hpp:55
@ CMD_PROD_ERASE_STORAGE
Definition: commands_rtk.hpp:43
@ REPLY_GET_MODEM_FIRMWARE_VERSION
Definition: commands_rtk.hpp:53
@ REPLY_GET_ACT_CODE
Definition: commands_rtk.hpp:52
@ CMD_CONTROL
Definition: commands_rtk.hpp:44
@ CMD_GET_IMEI
Definition: commands_rtk.hpp:35
@ REPLY_GET_IMEI
Definition: commands_rtk.hpp:48
@ CMD_GET_MODEM_FIRMWARE_VERSION
Definition: commands_rtk.hpp:41
@ CMD_GET_ICCID
Definition: commands_rtk.hpp:37
@ REPLY_GET_ICCID
Definition: commands_rtk.hpp:50
@ CMD_MODEM_HARD_RESET
Definition: commands_rtk.hpp:45
@ REPLY_GET_RSSI
Definition: commands_rtk.hpp:54
@ DESCRIPTOR_SET
Definition: commands_rtk.hpp:32
@ REPLY_GET_IMSI
Definition: commands_rtk.hpp:49
@ CMD_SERVICE_STATUS
Definition: commands_rtk.hpp:42
@ REPLY_CONNECTED_DEVICE_TYPE
Definition: commands_rtk.hpp:51
@ CMD_GET_IMSI
Definition: commands_rtk.hpp:36
@ CMD_CONNECTED_DEVICE_TYPE
Definition: commands_rtk.hpp:39
@ REPLY_GET_STATUS_FLAGS
Definition: commands_rtk.hpp:47
@ CMD_GET_RSSI
Definition: commands_rtk.hpp:38
@ CMD_GET_ACT_CODE
Definition: commands_rtk.hpp:40
A collection of C++ classes and functions covering the full mip api.
Definition: commands_3dm.c:11
FunctionSelector
Definition: descriptors.h:102
A dummy struct which is used to mark bitfield objects.
Definition: descriptors.h:95
State of the interface for communicating with a MIP device.
Definition: mip_interface.h:52
Represents the status of a MIP command.
Definition: mip_result.h:67
Definition: commands_rtk.hpp:287
Type devType
Definition: commands_rtk.hpp:291
static const uint8_t DESCRIPTOR_SET
Definition: commands_rtk.hpp:288
static const uint8_t FIELD_DESCRIPTOR
Definition: commands_rtk.hpp:289
Definition: commands_rtk.hpp:267
static const bool HAS_WRITE_FUNCTION
Definition: commands_rtk.hpp:271
static const bool HAS_RESET_FUNCTION
Definition: commands_rtk.hpp:275
Type devType
Definition: commands_rtk.hpp:284
static const bool HAS_LOAD_FUNCTION
Definition: commands_rtk.hpp:274
Type
Definition: commands_rtk.hpp:278
static const uint8_t DESCRIPTOR_SET
Definition: commands_rtk.hpp:268
static const uint8_t FIELD_DESCRIPTOR
Definition: commands_rtk.hpp:269
static const bool HAS_READ_FUNCTION
Definition: commands_rtk.hpp:272
static const bool HAS_SAVE_FUNCTION
Definition: commands_rtk.hpp:273
Definition: commands_rtk.hpp:322
static const uint8_t DESCRIPTOR_SET
Definition: commands_rtk.hpp:323
char ActivationCode[32]
Definition: commands_rtk.hpp:326
static const uint8_t FIELD_DESCRIPTOR
Definition: commands_rtk.hpp:324
Definition: commands_rtk.hpp:314
static const uint8_t DESCRIPTOR_SET
Definition: commands_rtk.hpp:315
static const uint8_t FIELD_DESCRIPTOR
Definition: commands_rtk.hpp:316
static const bool HAS_FUNCTION_SELECTOR
Definition: commands_rtk.hpp:318
Definition: commands_rtk.hpp:244
static const uint8_t DESCRIPTOR_SET
Definition: commands_rtk.hpp:245
char ICCID[32]
Definition: commands_rtk.hpp:248
static const uint8_t FIELD_DESCRIPTOR
Definition: commands_rtk.hpp:246
Definition: commands_rtk.hpp:236
static const uint8_t FIELD_DESCRIPTOR
Definition: commands_rtk.hpp:238
static const bool HAS_FUNCTION_SELECTOR
Definition: commands_rtk.hpp:240
static const uint8_t DESCRIPTOR_SET
Definition: commands_rtk.hpp:237
Definition: commands_rtk.hpp:182
static const uint8_t DESCRIPTOR_SET
Definition: commands_rtk.hpp:183
static const uint8_t FIELD_DESCRIPTOR
Definition: commands_rtk.hpp:184
char IMEI[32]
Definition: commands_rtk.hpp:186
Definition: commands_rtk.hpp:174
static const bool HAS_FUNCTION_SELECTOR
Definition: commands_rtk.hpp:178
static const uint8_t DESCRIPTOR_SET
Definition: commands_rtk.hpp:175
static const uint8_t FIELD_DESCRIPTOR
Definition: commands_rtk.hpp:176
Definition: commands_rtk.hpp:213
static const uint8_t DESCRIPTOR_SET
Definition: commands_rtk.hpp:214
static const uint8_t FIELD_DESCRIPTOR
Definition: commands_rtk.hpp:215
char IMSI[32]
Definition: commands_rtk.hpp:217
Definition: commands_rtk.hpp:205
static const uint8_t FIELD_DESCRIPTOR
Definition: commands_rtk.hpp:207
static const bool HAS_FUNCTION_SELECTOR
Definition: commands_rtk.hpp:209
static const uint8_t DESCRIPTOR_SET
Definition: commands_rtk.hpp:206
Definition: commands_rtk.hpp:353
static const uint8_t FIELD_DESCRIPTOR
Definition: commands_rtk.hpp:355
char ModemFirmwareVersion[32]
Definition: commands_rtk.hpp:357
static const uint8_t DESCRIPTOR_SET
Definition: commands_rtk.hpp:354
Definition: commands_rtk.hpp:345
static const uint8_t DESCRIPTOR_SET
Definition: commands_rtk.hpp:346
static const bool HAS_FUNCTION_SELECTOR
Definition: commands_rtk.hpp:349
static const uint8_t FIELD_DESCRIPTOR
Definition: commands_rtk.hpp:347
Definition: commands_rtk.hpp:385
bool valid
Definition: commands_rtk.hpp:389
static const uint8_t DESCRIPTOR_SET
Definition: commands_rtk.hpp:386
int32_t signalQuality
Definition: commands_rtk.hpp:391
static const uint8_t FIELD_DESCRIPTOR
Definition: commands_rtk.hpp:387
int32_t rssi
Definition: commands_rtk.hpp:390
Definition: commands_rtk.hpp:377
static const uint8_t FIELD_DESCRIPTOR
Definition: commands_rtk.hpp:379
static const uint8_t DESCRIPTOR_SET
Definition: commands_rtk.hpp:378
static const bool HAS_FUNCTION_SELECTOR
Definition: commands_rtk.hpp:381
Definition: commands_rtk.hpp:151
static const uint8_t FIELD_DESCRIPTOR
Definition: commands_rtk.hpp:153
static const uint8_t DESCRIPTOR_SET
Definition: commands_rtk.hpp:152
StatusFlags flags
Model number dependent. See above structures.
Definition: commands_rtk.hpp:155
Definition: commands_rtk.hpp:121
StatusFlags(int val)
Definition: commands_rtk.hpp:141
StatusFlags()
Definition: commands_rtk.hpp:140
StatusFlags & operator|=(uint32_t val)
Definition: commands_rtk.hpp:145
uint32_t value
Definition: commands_rtk.hpp:138
StatusFlags & operator=(uint32_t val)
Definition: commands_rtk.hpp:143
_enumType
Definition: commands_rtk.hpp:123
@ TOWER_CHANGE_INDICATOR
Definition: commands_rtk.hpp:129
@ NMEA_TIMEOUT
Definition: commands_rtk.hpp:130
@ RTCM_TIMEOUT
Definition: commands_rtk.hpp:132
@ VERSION
Definition: commands_rtk.hpp:136
@ CONNECTION_TYPE
Definition: commands_rtk.hpp:126
@ RESERVED
Definition: commands_rtk.hpp:135
@ SERVER_TIMEOUT
Definition: commands_rtk.hpp:131
@ DEVICE_OUT_OF_RANGE
Definition: commands_rtk.hpp:133
@ MODEM_STATE
Definition: commands_rtk.hpp:125
@ SIGNAL_QUALITY
Definition: commands_rtk.hpp:128
@ NONE
Definition: commands_rtk.hpp:124
@ CORRECTIONS_UNAVAILABLE
Definition: commands_rtk.hpp:134
@ RSSI
Definition: commands_rtk.hpp:127
StatusFlags & operator&=(uint32_t val)
Definition: commands_rtk.hpp:146
StatusFlags & operator=(int val)
Definition: commands_rtk.hpp:144
Definition: commands_rtk.hpp:93
StatusFlagsLegacy & operator|=(uint32_t val)
Definition: commands_rtk.hpp:116
StatusFlagsLegacy & operator&=(uint32_t val)
Definition: commands_rtk.hpp:117
StatusFlagsLegacy(int val)
Definition: commands_rtk.hpp:112
_enumType
Definition: commands_rtk.hpp:95
@ CONTROLLERSTATE
Definition: commands_rtk.hpp:97
@ CONTROLLERSTATUSCODE
Definition: commands_rtk.hpp:99
@ RESERVED
Definition: commands_rtk.hpp:103
@ PLATFORMSTATE
Definition: commands_rtk.hpp:98
@ NONE
Definition: commands_rtk.hpp:96
@ RESETCODE
Definition: commands_rtk.hpp:101
@ RSRQ
Definition: commands_rtk.hpp:106
@ RSRP
Definition: commands_rtk.hpp:105
@ SINR
Definition: commands_rtk.hpp:107
@ PLATFORMSTATUSCODE
Definition: commands_rtk.hpp:100
@ RSSI
Definition: commands_rtk.hpp:104
@ SIGNALQUALITY
Definition: commands_rtk.hpp:102
StatusFlagsLegacy & operator=(uint32_t val)
Definition: commands_rtk.hpp:114
StatusFlagsLegacy()
Definition: commands_rtk.hpp:111
uint32_t value
Definition: commands_rtk.hpp:109
StatusFlagsLegacy & operator=(int val)
Definition: commands_rtk.hpp:115
Definition: commands_rtk.hpp:86
static const bool HAS_FUNCTION_SELECTOR
Definition: commands_rtk.hpp:90
static const uint8_t FIELD_DESCRIPTOR
Definition: commands_rtk.hpp:88
static const uint8_t DESCRIPTOR_SET
Definition: commands_rtk.hpp:87
Definition: commands_rtk.hpp:491
LedAction act
Definition: commands_rtk.hpp:499
static const uint8_t FIELD_DESCRIPTOR
Definition: commands_rtk.hpp:493
uint32_t period
Definition: commands_rtk.hpp:500
uint8_t altColor[3]
Definition: commands_rtk.hpp:498
static const bool HAS_FUNCTION_SELECTOR
Definition: commands_rtk.hpp:495
static const uint8_t DESCRIPTOR_SET
Definition: commands_rtk.hpp:492
uint8_t primaryColor[3]
Definition: commands_rtk.hpp:497
Definition: commands_rtk.hpp:517
static const uint8_t FIELD_DESCRIPTOR
Definition: commands_rtk.hpp:519
static const uint8_t DESCRIPTOR_SET
Definition: commands_rtk.hpp:518
static const bool HAS_FUNCTION_SELECTOR
Definition: commands_rtk.hpp:521
Definition: commands_rtk.hpp:469
static const uint8_t FIELD_DESCRIPTOR
Definition: commands_rtk.hpp:471
static const uint8_t DESCRIPTOR_SET
Definition: commands_rtk.hpp:470
static const bool HAS_FUNCTION_SELECTOR
Definition: commands_rtk.hpp:473
MediaSelector media
Definition: commands_rtk.hpp:475
Definition: commands_rtk.hpp:441
static const uint8_t FIELD_DESCRIPTOR
Definition: commands_rtk.hpp:443
uint32_t recievedBytes
Definition: commands_rtk.hpp:446
uint32_t lastBytes
Definition: commands_rtk.hpp:447
uint64_t lastBytesTime
Definition: commands_rtk.hpp:448
static const uint8_t DESCRIPTOR_SET
Definition: commands_rtk.hpp:442
ServiceFlags flags
Definition: commands_rtk.hpp:445
Definition: commands_rtk.hpp:418
ServiceFlags()
Definition: commands_rtk.hpp:428
ServiceFlags & operator|=(uint8_t val)
Definition: commands_rtk.hpp:433
ServiceFlags & operator=(int val)
Definition: commands_rtk.hpp:432
_enumType
Definition: commands_rtk.hpp:420
@ RESERVED
Definition: commands_rtk.hpp:424
@ THROTTLE
Definition: commands_rtk.hpp:422
@ NONE
Definition: commands_rtk.hpp:421
@ CORRECTIONS_UNAVAILABLE
Definition: commands_rtk.hpp:423
ServiceFlags(int val)
Definition: commands_rtk.hpp:429
ServiceFlags & operator&=(uint8_t val)
Definition: commands_rtk.hpp:434
ServiceFlags & operator=(uint8_t val)
Definition: commands_rtk.hpp:431
uint8_t value
Definition: commands_rtk.hpp:426
Definition: commands_rtk.hpp:411
uint32_t reserved1
Definition: commands_rtk.hpp:437
static const uint8_t FIELD_DESCRIPTOR
Definition: commands_rtk.hpp:413
uint32_t reserved2
Definition: commands_rtk.hpp:438
static const bool HAS_FUNCTION_SELECTOR
Definition: commands_rtk.hpp:415
static const uint8_t DESCRIPTOR_SET
Definition: commands_rtk.hpp:412