MIP_SDK
v3.0.0
MicroStrain Communications Library for embedded systems
|
Go to the documentation of this file.
16 namespace data_shared {
50 static constexpr
const uint8_t MIP_DATA_DESC_SHARED_START = 0xD0;
74 static constexpr
const char*
NAME =
"EventSource";
75 static constexpr
const char*
DOC_NAME =
"EventSource";
114 static constexpr
const char*
NAME =
"Ticks";
120 return std::make_tuple(
ticks);
125 return std::make_tuple(std::ref(
ticks));
155 static constexpr
const char*
NAME =
"DeltaTicks";
156 static constexpr
const char*
DOC_NAME =
"DeltaTicks";
161 return std::make_tuple(
ticks);
166 return std::make_tuple(std::ref(
ticks));
203 operator uint16_t()
const {
return value; }
227 static constexpr
const char*
NAME =
"GpsTimestamp";
228 static constexpr
const char*
DOC_NAME =
"GpsTimestamp";
273 static constexpr
const char*
NAME =
"DeltaTime";
274 static constexpr
const char*
DOC_NAME =
"DeltaTime";
279 return std::make_tuple(
seconds);
284 return std::make_tuple(std::ref(
seconds));
317 static constexpr
const char*
NAME =
"ReferenceTimestamp";
318 static constexpr
const char*
DOC_NAME =
"ReferenceTimestamp";
363 static constexpr
const char*
NAME =
"ReferenceTimeDelta";
364 static constexpr
const char*
DOC_NAME =
"ReferenceTimeDelta";
374 return std::make_tuple(std::ref(
dt_nanos));
414 operator uint16_t()
const {
return value; }
433 static constexpr
const char*
NAME =
"ExternalTimestamp";
434 static constexpr
const char*
DOC_NAME =
"ExternalTimestamp";
488 operator uint16_t()
const {
return value; }
507 static constexpr
const char*
NAME =
"ExternalTimeDelta";
508 static constexpr
const char*
DOC_NAME =
"ExternalTimeDelta";
auto asTuple() const
Definition: data_shared.hpp:277
auto asTuple()
Definition: data_shared.hpp:442
uint16_t value
Definition: data_shared.hpp:410
static constexpr const char * NAME
Definition: data_shared.hpp:227
static constexpr const uint8_t DESCRIPTOR_SET
Descriptors.
Definition: data_shared.hpp:314
auto asTuple() const
Definition: data_shared.hpp:511
void insert(Serializer &serializer) const
Serialization.
Definition: data_shared.cpp:123
Definition: data_shared.hpp:401
A collection of C++ classes and functions covering the full mip api.
Definition: commands_3dm.c:11
static constexpr const bool HAS_FUNCTION_SELECTOR
Definition: data_shared.hpp:229
Definition: data_shared.hpp:308
static constexpr const char * NAME
Definition: data_shared.hpp:433
void extract(Serializer &serializer)
Definition: data_shared.cpp:65
auto asTuple() const
Definition: data_shared.hpp:231
static constexpr const char * DOC_NAME
Definition: data_shared.hpp:115
static constexpr const bool HAS_FUNCTION_SELECTOR
Definition: data_shared.hpp:76
ValidFlags(int val)
Definition: data_shared.hpp:487
static constexpr const uint8_t DESCRIPTOR_SET
Descriptors.
Definition: data_shared.hpp:270
ValidFlags & operator|=(uint16_t val)
Definition: data_shared.hpp:417
static constexpr const CompositeDescriptor DESCRIPTOR
Definition: data_shared.hpp:432
void extract(Serializer &serializer)
Definition: data_shared.cpp:28
Serializes or deserializes data to/from a byte buffer.
Definition: serializer.hpp:125
uint64_t dt_nanos
Parameters.
Definition: data_shared.hpp:357
uint64_t dt_nanos
Parameters.
Definition: data_shared.hpp:500
@ ALL
Definition: data_shared.hpp:197
void setAll()
Definition: data_shared.hpp:423
static constexpr const uint8_t FIELD_DESCRIPTOR
Definition: data_shared.hpp:315
auto asTuple()
Definition: data_shared.hpp:516
uint16_t value
Definition: data_shared.hpp:199
auto asTuple()
Definition: data_shared.hpp:236
static constexpr const CompositeDescriptor DESCRIPTOR
Definition: data_shared.hpp:362
void dtNanos(bool val)
Definition: data_shared.hpp:495
ValidFlags & operator&=(uint16_t val)
Definition: data_shared.hpp:492
uint8_t trigger_id
Parameters.
Definition: data_shared.hpp:68
ValidFlags valid_flags
Definition: data_shared.hpp:427
@ DATA_DEBUG_TICKS
Definition: data_shared.hpp:43
@ DATA_TICKS
Definition: data_shared.hpp:35
static constexpr const bool HAS_FUNCTION_SELECTOR
Definition: data_shared.hpp:365
@ DATA_REFERENCE_TIME
Definition: data_shared.hpp:39
static constexpr const char * NAME
Definition: data_shared.hpp:507
@ DT_NANOS
Definition: data_shared.hpp:481
static constexpr const bool HAS_FUNCTION_SELECTOR
Definition: data_shared.hpp:116
static constexpr const CompositeDescriptor DESCRIPTOR
Definition: data_shared.hpp:113
Definition: data_shared.hpp:146
ValidFlags & operator=(int val)
Definition: data_shared.hpp:416
void insert(Serializer &serializer) const
Serialization.
Definition: data_shared.cpp:23
bool nanoseconds() const
Definition: data_shared.hpp:420
static constexpr const uint8_t DESCRIPTOR_SET
Descriptors.
Definition: data_shared.hpp:504
uint16_t timeValid() const
Definition: data_shared.hpp:213
static constexpr const char * NAME
Definition: data_shared.hpp:74
ValidFlags(int val)
Definition: data_shared.hpp:413
struct mip::C::mip_interface mip_interface
State of the interface for communicating with a MIP device.
void insert(Serializer &serializer) const
Serialization.
Definition: data_shared.cpp:45
Definition: data_shared.hpp:264
void extract(Serializer &serializer)
Definition: data_shared.cpp:80
Definition: data_shared.hpp:399
ValidFlags()
Definition: data_shared.hpp:201
static constexpr const uint8_t FIELD_DESCRIPTOR
Definition: data_shared.hpp:225
static constexpr const uint8_t DESCRIPTOR_SET
Descriptors.
Definition: data_shared.hpp:360
ValidFlags & operator|=(uint16_t val)
Definition: data_shared.hpp:491
void extract(Serializer &serializer)
Definition: data_shared.cpp:130
@ DESCRIPTOR_SET
Definition: data_shared.hpp:31
@ NONE
Definition: data_shared.hpp:480
static constexpr const uint8_t DESCRIPTOR_SET
Descriptors.
Definition: data_shared.hpp:430
uint16_t Type
Definition: data_shared.hpp:477
auto asTuple()
Definition: data_shared.hpp:123
Definition: data_shared.hpp:186
static constexpr const CompositeDescriptor DESCRIPTOR
Definition: data_shared.hpp:154
@ ALL
Definition: data_shared.hpp:482
static constexpr const bool HAS_FUNCTION_SELECTOR
Definition: data_shared.hpp:275
Definition: data_shared.hpp:105
void insert(Serializer &serializer) const
Serialization.
Definition: data_shared.cpp:108
ValidFlags & operator=(int val)
Definition: data_shared.hpp:205
Definition: data_shared.hpp:475
Definition: data_shared.hpp:188
ValidFlags & operator&=(uint16_t val)
Definition: data_shared.hpp:418
ValidFlags & operator|=(uint16_t val)
Definition: data_shared.hpp:206
uint64_t nanoseconds
Parameters.
Definition: data_shared.hpp:426
static constexpr const uint8_t FIELD_DESCRIPTOR
Definition: data_shared.hpp:112
static constexpr const char * DOC_NAME
Definition: data_shared.hpp:434
static constexpr const char * NAME
Definition: data_shared.hpp:114
void extract(Serializer &serializer)
Definition: data_shared.cpp:50
_enumType
Definition: data_shared.hpp:478
@ ALL
Definition: data_shared.hpp:408
static constexpr const char * DOC_NAME
Definition: data_shared.hpp:508
ValidFlags(int val)
Definition: data_shared.hpp:202
auto asTuple()
Definition: data_shared.hpp:83
Definition: data_shared.hpp:354
bool tow() const
Definition: data_shared.hpp:209
auto asTuple() const
Definition: data_shared.hpp:78
static constexpr const char * NAME
Definition: data_shared.hpp:273
auto asTuple()
Definition: data_shared.hpp:326
void extract(Serializer &serializer)
Definition: data_shared.cpp:91
@ NANOSECONDS
Definition: data_shared.hpp:407
static constexpr const char * NAME
Definition: data_shared.hpp:363
bool weekNumber() const
Definition: data_shared.hpp:211
static constexpr const uint8_t FIELD_DESCRIPTOR
Definition: data_shared.hpp:505
static constexpr const CompositeDescriptor DESCRIPTOR
Definition: data_shared.hpp:506
static constexpr const CompositeDescriptor DESCRIPTOR
Definition: data_shared.hpp:73
ValidFlags & operator=(uint16_t val)
Definition: data_shared.hpp:204
static constexpr const char * DOC_NAME
Definition: data_shared.hpp:156
ValidFlags()
Definition: data_shared.hpp:412
static constexpr const char * DOC_NAME
Definition: data_shared.hpp:364
@ DATA_EVENT_SOURCE
Definition: data_shared.hpp:34
@ DATA_EXTERNAL_TIME
Definition: data_shared.hpp:41
static constexpr const bool HAS_FUNCTION_SELECTOR
Definition: data_shared.hpp:509
uint16_t week_number
GPS Week Number since 1980 [weeks].
Definition: data_shared.hpp:220
auto asTuple()
Definition: data_shared.hpp:282
static constexpr const uint8_t FIELD_DESCRIPTOR
Definition: data_shared.hpp:431
void extract(Serializer &serializer)
Definition: data_shared.cpp:115
@ DATA_DELTA_TIME
Definition: data_shared.hpp:38
bool allSet() const
Definition: data_shared.hpp:215
static constexpr const char * DOC_NAME
Definition: data_shared.hpp:318
@ TOW
Whole number seconds TOW has been set.
Definition: data_shared.hpp:194
auto asTuple() const
Definition: data_shared.hpp:367
ValidFlags & operator=(int val)
Definition: data_shared.hpp:490
void nanoseconds(bool val)
Definition: data_shared.hpp:421
void insert(Serializer &serializer) const
Serialization.
Definition: data_shared.cpp:34
@ TIME_VALID
Both TOW and Week Number have been set.
Definition: data_shared.hpp:196
bool allSet() const
Definition: data_shared.hpp:422
static constexpr const char * NAME
Definition: data_shared.hpp:155
static constexpr const char * DOC_NAME
Definition: data_shared.hpp:274
void insert(Serializer &serializer) const
Serialization.
Definition: data_shared.cpp:97
static constexpr const bool HAS_FUNCTION_SELECTOR
Definition: data_shared.hpp:157
static constexpr const uint8_t FIELD_DESCRIPTOR
Definition: data_shared.hpp:361
auto asTuple() const
Definition: data_shared.hpp:321
void extract(Serializer &serializer)
Definition: data_shared.cpp:102
static constexpr const bool HAS_FUNCTION_SELECTOR
Definition: data_shared.hpp:319
double seconds
Parameters.
Definition: data_shared.hpp:267
uint32_t ticks
Parameters.
Definition: data_shared.hpp:149
static constexpr const uint8_t DESCRIPTOR_SET
Descriptors.
Definition: data_shared.hpp:152
uint16_t value
Definition: data_shared.hpp:484
uint64_t nanoseconds
Parameters.
Definition: data_shared.hpp:311
auto asTuple() const
Definition: data_shared.hpp:118
auto asTuple() const
Definition: data_shared.hpp:159
Definition: data_shared.hpp:473
static constexpr const uint8_t FIELD_DESCRIPTOR
Definition: data_shared.hpp:271
@ NONE
Definition: data_shared.hpp:406
_enumType
Definition: data_shared.hpp:404
bool allSet() const
Definition: data_shared.hpp:496
void tow(bool val)
Definition: data_shared.hpp:210
static constexpr const uint8_t FIELD_DESCRIPTOR
Definition: data_shared.hpp:72
ValidFlags valid_flags
Definition: data_shared.hpp:501
void insert(Serializer &serializer) const
Serialization.
Definition: data_shared.cpp:56
static constexpr const uint8_t DESCRIPTOR_SET
Descriptors.
Definition: data_shared.hpp:71
@ DATA_SYS_TIME_DELTA
Definition: data_shared.hpp:42
@ DATA_GPS_TIME
Definition: data_shared.hpp:37
ValidFlags()
Definition: data_shared.hpp:486
uint16_t Type
Definition: data_shared.hpp:403
ValidFlags & operator=(uint16_t val)
Definition: data_shared.hpp:489
ValidFlags valid_flags
Definition: data_shared.hpp:221
static constexpr const uint8_t DESCRIPTOR_SET
Descriptors.
Definition: data_shared.hpp:111
static constexpr const CompositeDescriptor DESCRIPTOR
Definition: data_shared.hpp:272
static constexpr const CompositeDescriptor DESCRIPTOR
Definition: data_shared.hpp:226
void weekNumber(bool val)
Definition: data_shared.hpp:212
@ DATA_DELTA_TICKS
Definition: data_shared.hpp:36
ValidFlags & operator&=(uint16_t val)
Definition: data_shared.hpp:207
void setAll()
Definition: data_shared.hpp:216
static constexpr const uint8_t DESCRIPTOR_SET
Descriptors.
Definition: data_shared.hpp:224
@ WEEK_NUMBER
Week number has been set.
Definition: data_shared.hpp:195
Convenience struct holding both descriptor set and field descriptor.
Definition: mip_descriptors.hpp:22
bool dtNanos() const
Definition: data_shared.hpp:494
auto asTuple() const
Definition: data_shared.hpp:437
void setAll()
Definition: data_shared.hpp:497
static constexpr const char * DOC_NAME
Definition: data_shared.hpp:75
@ NONE
Definition: data_shared.hpp:193
static constexpr const bool HAS_FUNCTION_SELECTOR
Definition: data_shared.hpp:435
auto asTuple()
Definition: data_shared.hpp:164
A dummy struct which is used to mark bitfield objects.
Definition: mip_descriptors.hpp:62
uint32_t ticks
Parameters.
Definition: data_shared.hpp:108
static constexpr const CompositeDescriptor DESCRIPTOR
Definition: data_shared.hpp:316
@ DATA_REF_TIME_DELTA
Definition: data_shared.hpp:40
double tow
Parameters.
Definition: data_shared.hpp:219
void insert(Serializer &serializer) const
Serialization.
Definition: data_shared.cpp:75
void timeValid(uint16_t val)
Definition: data_shared.hpp:214
static constexpr const char * NAME
Definition: data_shared.hpp:317
uint16_t Type
Definition: data_shared.hpp:190
Definition: data_shared.hpp:65
static constexpr const uint8_t FIELD_DESCRIPTOR
Definition: data_shared.hpp:153
void extract(Serializer &serializer)
Definition: data_shared.cpp:39
_enumType
Definition: data_shared.hpp:191
auto asTuple()
Definition: data_shared.hpp:372
static constexpr const char * DOC_NAME
Definition: data_shared.hpp:228
ValidFlags & operator=(uint16_t val)
Definition: data_shared.hpp:415
void insert(Serializer &serializer) const
Serialization.
Definition: data_shared.cpp:86