MIP_SDK  latest-2-g34f3e39
MicroStrain Communications Library for embedded systems
data_shared.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 data_shared {
17 
24 
26 // Descriptors
28 
29 enum
30 {
32 
33 
35  DATA_TICKS = 0xD1,
37  DATA_GPS_TIME = 0xD3,
44 };
45 
47 // Shared Type Definitions
49 
50 static constexpr const uint8_t MIP_DATA_DESC_SHARED_START = 0xD0;
51 
53 // Mip Fields
55 
64 
66 {
68  uint8_t trigger_id = 0;
69 
71  static constexpr const uint8_t DESCRIPTOR_SET = ::mip::data_shared::DESCRIPTOR_SET;
72  static constexpr const uint8_t FIELD_DESCRIPTOR = ::mip::data_shared::DATA_EVENT_SOURCE;
74  static constexpr const char* NAME = "EventSource";
75  static constexpr const char* DOC_NAME = "EventSource";
76  static constexpr const bool HAS_FUNCTION_SELECTOR = false;
77 
78  auto asTuple() const
79  {
80  return std::make_tuple(trigger_id);
81  }
82 
83  auto asTuple()
84  {
85  return std::make_tuple(std::ref(trigger_id));
86  }
87 
89  void insert(Serializer& serializer) const;
90  void extract(Serializer& serializer);
91 
92 };
93 
104 
105 struct Ticks
106 {
108  uint32_t ticks = 0;
109 
111  static constexpr const uint8_t DESCRIPTOR_SET = ::mip::data_shared::DESCRIPTOR_SET;
112  static constexpr const uint8_t FIELD_DESCRIPTOR = ::mip::data_shared::DATA_TICKS;
114  static constexpr const char* NAME = "Ticks";
115  static constexpr const char* DOC_NAME = "Ticks";
116  static constexpr const bool HAS_FUNCTION_SELECTOR = false;
117 
118  auto asTuple() const
119  {
120  return std::make_tuple(ticks);
121  }
122 
123  auto asTuple()
124  {
125  return std::make_tuple(std::ref(ticks));
126  }
127 
129  void insert(Serializer& serializer) const;
130  void extract(Serializer& serializer);
131 
132 };
133 
145 
147 {
149  uint32_t ticks = 0;
150 
152  static constexpr const uint8_t DESCRIPTOR_SET = ::mip::data_shared::DESCRIPTOR_SET;
153  static constexpr const uint8_t FIELD_DESCRIPTOR = ::mip::data_shared::DATA_DELTA_TICKS;
155  static constexpr const char* NAME = "DeltaTicks";
156  static constexpr const char* DOC_NAME = "DeltaTicks";
157  static constexpr const bool HAS_FUNCTION_SELECTOR = false;
158 
159  auto asTuple() const
160  {
161  return std::make_tuple(ticks);
162  }
163 
164  auto asTuple()
165  {
166  return std::make_tuple(std::ref(ticks));
167  }
168 
170  void insert(Serializer& serializer) const;
171  void extract(Serializer& serializer);
172 
173 };
174 
185 
187 {
188  struct ValidFlags : Bitfield<ValidFlags>
189  {
190  typedef uint16_t Type;
191  enum _enumType : uint16_t
192  {
193  NONE = 0x0000,
194  TOW = 0x0001,
195  WEEK_NUMBER = 0x0002,
196  TIME_VALID = 0x0003,
197  ALL = 0x0003,
198  };
199  uint16_t value = NONE;
200 
202  ValidFlags(int val) : value((uint16_t)val) {}
203  operator uint16_t() const { return value; }
204  ValidFlags& operator=(uint16_t val) { value = val; return *this; }
205  ValidFlags& operator=(int val) { value = uint16_t(val); return *this; }
206  ValidFlags& operator|=(uint16_t val) { return *this = value | val; }
207  ValidFlags& operator&=(uint16_t val) { return *this = value & val; }
208 
209  bool tow() const { return (value & TOW) > 0; }
210  void tow(bool val) { value &= ~TOW; if(val) value |= TOW; }
211  bool weekNumber() const { return (value & WEEK_NUMBER) > 0; }
212  void weekNumber(bool val) { value &= ~WEEK_NUMBER; if(val) value |= WEEK_NUMBER; }
213  uint16_t timeValid() const { return (value & TIME_VALID) >> 0; }
214  void timeValid(uint16_t val) { value = (value & ~TIME_VALID) | (val << 0); }
215  bool allSet() const { return value == ALL; }
216  void setAll() { value |= ALL; }
217  };
219  double tow = 0;
220  uint16_t week_number = 0;
222 
224  static constexpr const uint8_t DESCRIPTOR_SET = ::mip::data_shared::DESCRIPTOR_SET;
225  static constexpr const uint8_t FIELD_DESCRIPTOR = ::mip::data_shared::DATA_GPS_TIME;
227  static constexpr const char* NAME = "GpsTimestamp";
228  static constexpr const char* DOC_NAME = "GpsTimestamp";
229  static constexpr const bool HAS_FUNCTION_SELECTOR = false;
230 
231  auto asTuple() const
232  {
233  return std::make_tuple(tow,week_number,valid_flags);
234  }
235 
236  auto asTuple()
237  {
238  return std::make_tuple(std::ref(tow),std::ref(week_number),std::ref(valid_flags));
239  }
240 
242  void insert(Serializer& serializer) const;
243  void extract(Serializer& serializer);
244 
245 };
246 
263 
264 struct DeltaTime
265 {
267  double seconds = 0;
268 
270  static constexpr const uint8_t DESCRIPTOR_SET = ::mip::data_shared::DESCRIPTOR_SET;
271  static constexpr const uint8_t FIELD_DESCRIPTOR = ::mip::data_shared::DATA_DELTA_TIME;
273  static constexpr const char* NAME = "DeltaTime";
274  static constexpr const char* DOC_NAME = "DeltaTime";
275  static constexpr const bool HAS_FUNCTION_SELECTOR = false;
276 
277  auto asTuple() const
278  {
279  return std::make_tuple(seconds);
280  }
281 
282  auto asTuple()
283  {
284  return std::make_tuple(std::ref(seconds));
285  }
286 
288  void insert(Serializer& serializer) const;
289  void extract(Serializer& serializer);
290 
291 };
292 
307 
309 {
311  uint64_t nanoseconds = 0;
312 
314  static constexpr const uint8_t DESCRIPTOR_SET = ::mip::data_shared::DESCRIPTOR_SET;
317  static constexpr const char* NAME = "ReferenceTimestamp";
318  static constexpr const char* DOC_NAME = "ReferenceTimestamp";
319  static constexpr const bool HAS_FUNCTION_SELECTOR = false;
320 
321  auto asTuple() const
322  {
323  return std::make_tuple(nanoseconds);
324  }
325 
326  auto asTuple()
327  {
328  return std::make_tuple(std::ref(nanoseconds));
329  }
330 
332  void insert(Serializer& serializer) const;
333  void extract(Serializer& serializer);
334 
335 };
336 
353 
355 {
357  uint64_t dt_nanos = 0;
358 
360  static constexpr const uint8_t DESCRIPTOR_SET = ::mip::data_shared::DESCRIPTOR_SET;
363  static constexpr const char* NAME = "ReferenceTimeDelta";
364  static constexpr const char* DOC_NAME = "ReferenceTimeDelta";
365  static constexpr const bool HAS_FUNCTION_SELECTOR = false;
366 
367  auto asTuple() const
368  {
369  return std::make_tuple(dt_nanos);
370  }
371 
372  auto asTuple()
373  {
374  return std::make_tuple(std::ref(dt_nanos));
375  }
376 
378  void insert(Serializer& serializer) const;
379  void extract(Serializer& serializer);
380 
381 };
382 
398 
400 {
401  struct ValidFlags : Bitfield<ValidFlags>
402  {
403  typedef uint16_t Type;
404  enum _enumType : uint16_t
405  {
406  NONE = 0x0000,
407  NANOSECONDS = 0x0001,
408  ALL = 0x0001,
409  };
410  uint16_t value = NONE;
411 
413  ValidFlags(int val) : value((uint16_t)val) {}
414  operator uint16_t() const { return value; }
415  ValidFlags& operator=(uint16_t val) { value = val; return *this; }
416  ValidFlags& operator=(int val) { value = uint16_t(val); return *this; }
417  ValidFlags& operator|=(uint16_t val) { return *this = value | val; }
418  ValidFlags& operator&=(uint16_t val) { return *this = value & val; }
419 
420  bool nanoseconds() const { return (value & NANOSECONDS) > 0; }
421  void nanoseconds(bool val) { value &= ~NANOSECONDS; if(val) value |= NANOSECONDS; }
422  bool allSet() const { return value == ALL; }
423  void setAll() { value |= ALL; }
424  };
426  uint64_t nanoseconds = 0;
428 
430  static constexpr const uint8_t DESCRIPTOR_SET = ::mip::data_shared::DESCRIPTOR_SET;
433  static constexpr const char* NAME = "ExternalTimestamp";
434  static constexpr const char* DOC_NAME = "ExternalTimestamp";
435  static constexpr const bool HAS_FUNCTION_SELECTOR = false;
436 
437  auto asTuple() const
438  {
439  return std::make_tuple(nanoseconds,valid_flags);
440  }
441 
442  auto asTuple()
443  {
444  return std::make_tuple(std::ref(nanoseconds),std::ref(valid_flags));
445  }
446 
448  void insert(Serializer& serializer) const;
449  void extract(Serializer& serializer);
450 
451 };
452 
472 
474 {
475  struct ValidFlags : Bitfield<ValidFlags>
476  {
477  typedef uint16_t Type;
478  enum _enumType : uint16_t
479  {
480  NONE = 0x0000,
481  DT_NANOS = 0x0001,
482  ALL = 0x0001,
483  };
484  uint16_t value = NONE;
485 
487  ValidFlags(int val) : value((uint16_t)val) {}
488  operator uint16_t() const { return value; }
489  ValidFlags& operator=(uint16_t val) { value = val; return *this; }
490  ValidFlags& operator=(int val) { value = uint16_t(val); return *this; }
491  ValidFlags& operator|=(uint16_t val) { return *this = value | val; }
492  ValidFlags& operator&=(uint16_t val) { return *this = value & val; }
493 
494  bool dtNanos() const { return (value & DT_NANOS) > 0; }
495  void dtNanos(bool val) { value &= ~DT_NANOS; if(val) value |= DT_NANOS; }
496  bool allSet() const { return value == ALL; }
497  void setAll() { value |= ALL; }
498  };
500  uint64_t dt_nanos = 0;
502 
504  static constexpr const uint8_t DESCRIPTOR_SET = ::mip::data_shared::DESCRIPTOR_SET;
507  static constexpr const char* NAME = "ExternalTimeDelta";
508  static constexpr const char* DOC_NAME = "ExternalTimeDelta";
509  static constexpr const bool HAS_FUNCTION_SELECTOR = false;
510 
511  auto asTuple() const
512  {
513  return std::make_tuple(dt_nanos,valid_flags);
514  }
515 
516  auto asTuple()
517  {
518  return std::make_tuple(std::ref(dt_nanos),std::ref(valid_flags));
519  }
520 
522  void insert(Serializer& serializer) const;
523  void extract(Serializer& serializer);
524 
525 };
526 
529 
534 } // namespace data_shared
535 } // namespace mip
536 
mip::data_shared::DeltaTime::asTuple
auto asTuple() const
Definition: data_shared.hpp:277
mip::data_shared::ExternalTimestamp::asTuple
auto asTuple()
Definition: data_shared.hpp:442
mip::data_shared::ExternalTimestamp::ValidFlags::value
uint16_t value
Definition: data_shared.hpp:410
mip::data_shared::GpsTimestamp::NAME
static constexpr const char * NAME
Definition: data_shared.hpp:227
mip::data_shared::ReferenceTimestamp::DESCRIPTOR_SET
static constexpr const uint8_t DESCRIPTOR_SET
Descriptors.
Definition: data_shared.hpp:314
mip::data_shared::ExternalTimeDelta::asTuple
auto asTuple() const
Definition: data_shared.hpp:511
mip::data_shared::ExternalTimeDelta::insert
void insert(Serializer &serializer) const
Serialization.
Definition: data_shared.cpp:123
mip::data_shared::ExternalTimestamp::ValidFlags
Definition: data_shared.hpp:401
mip
A collection of C++ classes and functions covering the full mip api.
Definition: commands_3dm.c:11
mip::data_shared::GpsTimestamp::HAS_FUNCTION_SELECTOR
static constexpr const bool HAS_FUNCTION_SELECTOR
Definition: data_shared.hpp:229
mip::data_shared::ReferenceTimestamp
Definition: data_shared.hpp:308
mip::data_shared::ExternalTimestamp::NAME
static constexpr const char * NAME
Definition: data_shared.hpp:433
mip::data_shared::GpsTimestamp::extract
void extract(Serializer &serializer)
Definition: data_shared.cpp:65
mip::data_shared::GpsTimestamp::asTuple
auto asTuple() const
Definition: data_shared.hpp:231
mip::data_shared::Ticks::DOC_NAME
static constexpr const char * DOC_NAME
Definition: data_shared.hpp:115
mip::data_shared::EventSource::HAS_FUNCTION_SELECTOR
static constexpr const bool HAS_FUNCTION_SELECTOR
Definition: data_shared.hpp:76
mip::data_shared::ExternalTimeDelta::ValidFlags::ValidFlags
ValidFlags(int val)
Definition: data_shared.hpp:487
mip_descriptors.hpp
mip::data_shared::DeltaTime::DESCRIPTOR_SET
static constexpr const uint8_t DESCRIPTOR_SET
Descriptors.
Definition: data_shared.hpp:270
mip::data_shared::ExternalTimestamp::ValidFlags::operator|=
ValidFlags & operator|=(uint16_t val)
Definition: data_shared.hpp:417
mip::data_shared::ExternalTimestamp::DESCRIPTOR
static constexpr const CompositeDescriptor DESCRIPTOR
Definition: data_shared.hpp:432
mip::data_shared::EventSource::extract
void extract(Serializer &serializer)
Definition: data_shared.cpp:28
microstrain::Serializer
Serializes or deserializes data to/from a byte buffer.
Definition: serializer.hpp:125
mip::data_shared::ReferenceTimeDelta::dt_nanos
uint64_t dt_nanos
Parameters.
Definition: data_shared.hpp:357
mip::data_shared::ExternalTimeDelta::dt_nanos
uint64_t dt_nanos
Parameters.
Definition: data_shared.hpp:500
mip::data_shared::GpsTimestamp::ValidFlags::ALL
@ ALL
Definition: data_shared.hpp:197
mip::data_shared::ExternalTimestamp::ValidFlags::setAll
void setAll()
Definition: data_shared.hpp:423
mip::data_shared::ReferenceTimestamp::FIELD_DESCRIPTOR
static constexpr const uint8_t FIELD_DESCRIPTOR
Definition: data_shared.hpp:315
mip::data_shared::ExternalTimeDelta::asTuple
auto asTuple()
Definition: data_shared.hpp:516
mip::data_shared::GpsTimestamp::ValidFlags::value
uint16_t value
Definition: data_shared.hpp:199
mip::data_shared::GpsTimestamp::asTuple
auto asTuple()
Definition: data_shared.hpp:236
mip::data_shared::ReferenceTimeDelta::DESCRIPTOR
static constexpr const CompositeDescriptor DESCRIPTOR
Definition: data_shared.hpp:362
mip::data_shared::ExternalTimeDelta::ValidFlags::dtNanos
void dtNanos(bool val)
Definition: data_shared.hpp:495
mip::data_shared::ExternalTimeDelta::ValidFlags::operator&=
ValidFlags & operator&=(uint16_t val)
Definition: data_shared.hpp:492
mip::data_shared::EventSource::trigger_id
uint8_t trigger_id
Parameters.
Definition: data_shared.hpp:68
mip::data_shared::ExternalTimestamp::valid_flags
ValidFlags valid_flags
Definition: data_shared.hpp:427
mip::data_shared::DATA_DEBUG_TICKS
@ DATA_DEBUG_TICKS
Definition: data_shared.hpp:43
mip::data_shared::DATA_TICKS
@ DATA_TICKS
Definition: data_shared.hpp:35
mip::data_shared::ReferenceTimeDelta::HAS_FUNCTION_SELECTOR
static constexpr const bool HAS_FUNCTION_SELECTOR
Definition: data_shared.hpp:365
mip::data_shared::DATA_REFERENCE_TIME
@ DATA_REFERENCE_TIME
Definition: data_shared.hpp:39
mip::data_shared::ExternalTimeDelta::NAME
static constexpr const char * NAME
Definition: data_shared.hpp:507
mip::data_shared::ExternalTimeDelta::ValidFlags::DT_NANOS
@ DT_NANOS
Definition: data_shared.hpp:481
mip::data_shared::Ticks::HAS_FUNCTION_SELECTOR
static constexpr const bool HAS_FUNCTION_SELECTOR
Definition: data_shared.hpp:116
mip::data_shared::Ticks::DESCRIPTOR
static constexpr const CompositeDescriptor DESCRIPTOR
Definition: data_shared.hpp:113
mip::data_shared::DeltaTicks
Definition: data_shared.hpp:146
mip::data_shared::ExternalTimestamp::ValidFlags::operator=
ValidFlags & operator=(int val)
Definition: data_shared.hpp:416
mip::data_shared::EventSource::insert
void insert(Serializer &serializer) const
Serialization.
Definition: data_shared.cpp:23
mip::data_shared::ExternalTimestamp::ValidFlags::nanoseconds
bool nanoseconds() const
Definition: data_shared.hpp:420
mip::data_shared::ExternalTimeDelta::DESCRIPTOR_SET
static constexpr const uint8_t DESCRIPTOR_SET
Descriptors.
Definition: data_shared.hpp:504
mip::data_shared::GpsTimestamp::ValidFlags::timeValid
uint16_t timeValid() const
Definition: data_shared.hpp:213
mip::data_shared::EventSource::NAME
static constexpr const char * NAME
Definition: data_shared.hpp:74
mip::data_shared::ExternalTimestamp::ValidFlags::ValidFlags
ValidFlags(int val)
Definition: data_shared.hpp:413
mip::C::mip_interface
struct mip::C::mip_interface mip_interface
State of the interface for communicating with a MIP device.
mip::data_shared::DeltaTicks::insert
void insert(Serializer &serializer) const
Serialization.
Definition: data_shared.cpp:45
mip::data_shared::DeltaTime
Definition: data_shared.hpp:264
mip::data_shared::DeltaTime::extract
void extract(Serializer &serializer)
Definition: data_shared.cpp:80
mip::data_shared::ExternalTimestamp
Definition: data_shared.hpp:399
mip::data_shared::GpsTimestamp::ValidFlags::ValidFlags
ValidFlags()
Definition: data_shared.hpp:201
mip::data_shared::GpsTimestamp::FIELD_DESCRIPTOR
static constexpr const uint8_t FIELD_DESCRIPTOR
Definition: data_shared.hpp:225
mip::data_shared::ReferenceTimeDelta::DESCRIPTOR_SET
static constexpr const uint8_t DESCRIPTOR_SET
Descriptors.
Definition: data_shared.hpp:360
mip::data_shared::ExternalTimeDelta::ValidFlags::operator|=
ValidFlags & operator|=(uint16_t val)
Definition: data_shared.hpp:491
mip::data_shared::ExternalTimeDelta::extract
void extract(Serializer &serializer)
Definition: data_shared.cpp:130
mip::data_shared::DESCRIPTOR_SET
@ DESCRIPTOR_SET
Definition: data_shared.hpp:31
mip::data_shared::ExternalTimeDelta::ValidFlags::NONE
@ NONE
Definition: data_shared.hpp:480
mip::data_shared::ExternalTimestamp::DESCRIPTOR_SET
static constexpr const uint8_t DESCRIPTOR_SET
Descriptors.
Definition: data_shared.hpp:430
mip::data_shared::ExternalTimeDelta::ValidFlags::Type
uint16_t Type
Definition: data_shared.hpp:477
mip::data_shared::Ticks::asTuple
auto asTuple()
Definition: data_shared.hpp:123
mip::data_shared::GpsTimestamp
Definition: data_shared.hpp:186
mip::data_shared::DeltaTicks::DESCRIPTOR
static constexpr const CompositeDescriptor DESCRIPTOR
Definition: data_shared.hpp:154
mip::data_shared::ExternalTimeDelta::ValidFlags::ALL
@ ALL
Definition: data_shared.hpp:482
mip::data_shared::DeltaTime::HAS_FUNCTION_SELECTOR
static constexpr const bool HAS_FUNCTION_SELECTOR
Definition: data_shared.hpp:275
mip::data_shared::Ticks
Definition: data_shared.hpp:105
mip::data_shared::ExternalTimestamp::insert
void insert(Serializer &serializer) const
Serialization.
Definition: data_shared.cpp:108
mip::data_shared::GpsTimestamp::ValidFlags::operator=
ValidFlags & operator=(int val)
Definition: data_shared.hpp:205
mip::data_shared::ExternalTimeDelta::ValidFlags
Definition: data_shared.hpp:475
mip::data_shared::GpsTimestamp::ValidFlags
Definition: data_shared.hpp:188
mip::data_shared::ExternalTimestamp::ValidFlags::operator&=
ValidFlags & operator&=(uint16_t val)
Definition: data_shared.hpp:418
mip::data_shared::GpsTimestamp::ValidFlags::operator|=
ValidFlags & operator|=(uint16_t val)
Definition: data_shared.hpp:206
mip::data_shared::ExternalTimestamp::nanoseconds
uint64_t nanoseconds
Parameters.
Definition: data_shared.hpp:426
mip::data_shared::Ticks::FIELD_DESCRIPTOR
static constexpr const uint8_t FIELD_DESCRIPTOR
Definition: data_shared.hpp:112
mip::data_shared::ExternalTimestamp::DOC_NAME
static constexpr const char * DOC_NAME
Definition: data_shared.hpp:434
mip::data_shared::Ticks::NAME
static constexpr const char * NAME
Definition: data_shared.hpp:114
mip::data_shared::DeltaTicks::extract
void extract(Serializer &serializer)
Definition: data_shared.cpp:50
mip::data_shared::ExternalTimeDelta::ValidFlags::_enumType
_enumType
Definition: data_shared.hpp:478
mip::data_shared::ExternalTimestamp::ValidFlags::ALL
@ ALL
Definition: data_shared.hpp:408
mip::data_shared::ExternalTimeDelta::DOC_NAME
static constexpr const char * DOC_NAME
Definition: data_shared.hpp:508
mip::data_shared::GpsTimestamp::ValidFlags::ValidFlags
ValidFlags(int val)
Definition: data_shared.hpp:202
mip::data_shared::EventSource::asTuple
auto asTuple()
Definition: data_shared.hpp:83
mip::data_shared::ReferenceTimeDelta
Definition: data_shared.hpp:354
mip::data_shared::GpsTimestamp::ValidFlags::tow
bool tow() const
Definition: data_shared.hpp:209
mip::data_shared::EventSource::asTuple
auto asTuple() const
Definition: data_shared.hpp:78
mip::data_shared::DeltaTime::NAME
static constexpr const char * NAME
Definition: data_shared.hpp:273
mip::data_shared::ReferenceTimestamp::asTuple
auto asTuple()
Definition: data_shared.hpp:326
mip::data_shared::ReferenceTimestamp::extract
void extract(Serializer &serializer)
Definition: data_shared.cpp:91
mip::data_shared::ExternalTimestamp::ValidFlags::NANOSECONDS
@ NANOSECONDS
Definition: data_shared.hpp:407
mip::data_shared::ReferenceTimeDelta::NAME
static constexpr const char * NAME
Definition: data_shared.hpp:363
mip::data_shared::GpsTimestamp::ValidFlags::weekNumber
bool weekNumber() const
Definition: data_shared.hpp:211
mip::data_shared::ExternalTimeDelta::FIELD_DESCRIPTOR
static constexpr const uint8_t FIELD_DESCRIPTOR
Definition: data_shared.hpp:505
mip::data_shared::ExternalTimeDelta::DESCRIPTOR
static constexpr const CompositeDescriptor DESCRIPTOR
Definition: data_shared.hpp:506
mip::data_shared::EventSource::DESCRIPTOR
static constexpr const CompositeDescriptor DESCRIPTOR
Definition: data_shared.hpp:73
mip::data_shared::GpsTimestamp::ValidFlags::operator=
ValidFlags & operator=(uint16_t val)
Definition: data_shared.hpp:204
mip::data_shared::DeltaTicks::DOC_NAME
static constexpr const char * DOC_NAME
Definition: data_shared.hpp:156
mip::data_shared::ExternalTimestamp::ValidFlags::ValidFlags
ValidFlags()
Definition: data_shared.hpp:412
mip::data_shared::ReferenceTimeDelta::DOC_NAME
static constexpr const char * DOC_NAME
Definition: data_shared.hpp:364
mip::data_shared::DATA_EVENT_SOURCE
@ DATA_EVENT_SOURCE
Definition: data_shared.hpp:34
mip::data_shared::DATA_EXTERNAL_TIME
@ DATA_EXTERNAL_TIME
Definition: data_shared.hpp:41
mip::data_shared::ExternalTimeDelta::HAS_FUNCTION_SELECTOR
static constexpr const bool HAS_FUNCTION_SELECTOR
Definition: data_shared.hpp:509
mip::data_shared::GpsTimestamp::week_number
uint16_t week_number
GPS Week Number since 1980 [weeks].
Definition: data_shared.hpp:220
mip::data_shared::DeltaTime::asTuple
auto asTuple()
Definition: data_shared.hpp:282
mip::data_shared::ExternalTimestamp::FIELD_DESCRIPTOR
static constexpr const uint8_t FIELD_DESCRIPTOR
Definition: data_shared.hpp:431
mip::data_shared::ExternalTimestamp::extract
void extract(Serializer &serializer)
Definition: data_shared.cpp:115
mip::data_shared::DATA_DELTA_TIME
@ DATA_DELTA_TIME
Definition: data_shared.hpp:38
mip::data_shared::GpsTimestamp::ValidFlags::allSet
bool allSet() const
Definition: data_shared.hpp:215
mip::data_shared::ReferenceTimestamp::DOC_NAME
static constexpr const char * DOC_NAME
Definition: data_shared.hpp:318
mip::data_shared::GpsTimestamp::ValidFlags::TOW
@ TOW
Whole number seconds TOW has been set.
Definition: data_shared.hpp:194
mip::data_shared::ReferenceTimeDelta::asTuple
auto asTuple() const
Definition: data_shared.hpp:367
mip::data_shared::ExternalTimeDelta::ValidFlags::operator=
ValidFlags & operator=(int val)
Definition: data_shared.hpp:490
mip::data_shared::ExternalTimestamp::ValidFlags::nanoseconds
void nanoseconds(bool val)
Definition: data_shared.hpp:421
mip::data_shared::Ticks::insert
void insert(Serializer &serializer) const
Serialization.
Definition: data_shared.cpp:34
mip::data_shared::GpsTimestamp::ValidFlags::TIME_VALID
@ TIME_VALID
Both TOW and Week Number have been set.
Definition: data_shared.hpp:196
mip::data_shared::ExternalTimestamp::ValidFlags::allSet
bool allSet() const
Definition: data_shared.hpp:422
mip::data_shared::DeltaTicks::NAME
static constexpr const char * NAME
Definition: data_shared.hpp:155
mip::data_shared::DeltaTime::DOC_NAME
static constexpr const char * DOC_NAME
Definition: data_shared.hpp:274
mip::data_shared::ReferenceTimeDelta::insert
void insert(Serializer &serializer) const
Serialization.
Definition: data_shared.cpp:97
mip::data_shared::DeltaTicks::HAS_FUNCTION_SELECTOR
static constexpr const bool HAS_FUNCTION_SELECTOR
Definition: data_shared.hpp:157
mip::data_shared::ReferenceTimeDelta::FIELD_DESCRIPTOR
static constexpr const uint8_t FIELD_DESCRIPTOR
Definition: data_shared.hpp:361
mip::data_shared::ReferenceTimestamp::asTuple
auto asTuple() const
Definition: data_shared.hpp:321
mip::data_shared::ReferenceTimeDelta::extract
void extract(Serializer &serializer)
Definition: data_shared.cpp:102
mip::data_shared::ReferenceTimestamp::HAS_FUNCTION_SELECTOR
static constexpr const bool HAS_FUNCTION_SELECTOR
Definition: data_shared.hpp:319
mip::data_shared::DeltaTime::seconds
double seconds
Parameters.
Definition: data_shared.hpp:267
mip::data_shared::DeltaTicks::ticks
uint32_t ticks
Parameters.
Definition: data_shared.hpp:149
mip::data_shared::DeltaTicks::DESCRIPTOR_SET
static constexpr const uint8_t DESCRIPTOR_SET
Descriptors.
Definition: data_shared.hpp:152
mip::data_shared::ExternalTimeDelta::ValidFlags::value
uint16_t value
Definition: data_shared.hpp:484
mip::data_shared::ReferenceTimestamp::nanoseconds
uint64_t nanoseconds
Parameters.
Definition: data_shared.hpp:311
mip::data_shared::Ticks::asTuple
auto asTuple() const
Definition: data_shared.hpp:118
mip::data_shared::DeltaTicks::asTuple
auto asTuple() const
Definition: data_shared.hpp:159
mip_interface.hpp
mip::data_shared::ExternalTimeDelta
Definition: data_shared.hpp:473
mip::data_shared::DeltaTime::FIELD_DESCRIPTOR
static constexpr const uint8_t FIELD_DESCRIPTOR
Definition: data_shared.hpp:271
mip::data_shared::ExternalTimestamp::ValidFlags::NONE
@ NONE
Definition: data_shared.hpp:406
mip::data_shared::ExternalTimestamp::ValidFlags::_enumType
_enumType
Definition: data_shared.hpp:404
mip::data_shared::ExternalTimeDelta::ValidFlags::allSet
bool allSet() const
Definition: data_shared.hpp:496
mip::data_shared::GpsTimestamp::ValidFlags::tow
void tow(bool val)
Definition: data_shared.hpp:210
mip::data_shared::EventSource::FIELD_DESCRIPTOR
static constexpr const uint8_t FIELD_DESCRIPTOR
Definition: data_shared.hpp:72
mip::data_shared::ExternalTimeDelta::valid_flags
ValidFlags valid_flags
Definition: data_shared.hpp:501
mip::data_shared::GpsTimestamp::insert
void insert(Serializer &serializer) const
Serialization.
Definition: data_shared.cpp:56
mip::data_shared::EventSource::DESCRIPTOR_SET
static constexpr const uint8_t DESCRIPTOR_SET
Descriptors.
Definition: data_shared.hpp:71
mip::data_shared::DATA_SYS_TIME_DELTA
@ DATA_SYS_TIME_DELTA
Definition: data_shared.hpp:42
mip::data_shared::DATA_GPS_TIME
@ DATA_GPS_TIME
Definition: data_shared.hpp:37
mip::data_shared::ExternalTimeDelta::ValidFlags::ValidFlags
ValidFlags()
Definition: data_shared.hpp:486
mip::data_shared::ExternalTimestamp::ValidFlags::Type
uint16_t Type
Definition: data_shared.hpp:403
mip::data_shared::ExternalTimeDelta::ValidFlags::operator=
ValidFlags & operator=(uint16_t val)
Definition: data_shared.hpp:489
mip::data_shared::GpsTimestamp::valid_flags
ValidFlags valid_flags
Definition: data_shared.hpp:221
mip::data_shared::Ticks::DESCRIPTOR_SET
static constexpr const uint8_t DESCRIPTOR_SET
Descriptors.
Definition: data_shared.hpp:111
mip::data_shared::DeltaTime::DESCRIPTOR
static constexpr const CompositeDescriptor DESCRIPTOR
Definition: data_shared.hpp:272
mip::data_shared::GpsTimestamp::DESCRIPTOR
static constexpr const CompositeDescriptor DESCRIPTOR
Definition: data_shared.hpp:226
mip::data_shared::GpsTimestamp::ValidFlags::weekNumber
void weekNumber(bool val)
Definition: data_shared.hpp:212
mip::data_shared::DATA_DELTA_TICKS
@ DATA_DELTA_TICKS
Definition: data_shared.hpp:36
mip::data_shared::GpsTimestamp::ValidFlags::operator&=
ValidFlags & operator&=(uint16_t val)
Definition: data_shared.hpp:207
mip::data_shared::GpsTimestamp::ValidFlags::setAll
void setAll()
Definition: data_shared.hpp:216
mip::data_shared::GpsTimestamp::DESCRIPTOR_SET
static constexpr const uint8_t DESCRIPTOR_SET
Descriptors.
Definition: data_shared.hpp:224
mip::data_shared::GpsTimestamp::ValidFlags::WEEK_NUMBER
@ WEEK_NUMBER
Week number has been set.
Definition: data_shared.hpp:195
mip::CompositeDescriptor
Convenience struct holding both descriptor set and field descriptor.
Definition: mip_descriptors.hpp:21
mip::data_shared::ExternalTimeDelta::ValidFlags::dtNanos
bool dtNanos() const
Definition: data_shared.hpp:494
mip::data_shared::ExternalTimestamp::asTuple
auto asTuple() const
Definition: data_shared.hpp:437
mip::data_shared::ExternalTimeDelta::ValidFlags::setAll
void setAll()
Definition: data_shared.hpp:497
mip::data_shared::EventSource::DOC_NAME
static constexpr const char * DOC_NAME
Definition: data_shared.hpp:75
mip::data_shared::GpsTimestamp::ValidFlags::NONE
@ NONE
Definition: data_shared.hpp:193
mip::data_shared::ExternalTimestamp::HAS_FUNCTION_SELECTOR
static constexpr const bool HAS_FUNCTION_SELECTOR
Definition: data_shared.hpp:435
mip::data_shared::DeltaTicks::asTuple
auto asTuple()
Definition: data_shared.hpp:164
mip::Bitfield
A dummy struct which is used to mark bitfield objects.
Definition: mip_descriptors.hpp:61
mip::data_shared::Ticks::ticks
uint32_t ticks
Parameters.
Definition: data_shared.hpp:108
mip::data_shared::ReferenceTimestamp::DESCRIPTOR
static constexpr const CompositeDescriptor DESCRIPTOR
Definition: data_shared.hpp:316
mip::data_shared::DATA_REF_TIME_DELTA
@ DATA_REF_TIME_DELTA
Definition: data_shared.hpp:40
mip::data_shared::GpsTimestamp::tow
double tow
Parameters.
Definition: data_shared.hpp:219
mip::data_shared::DeltaTime::insert
void insert(Serializer &serializer) const
Serialization.
Definition: data_shared.cpp:75
mip::data_shared::GpsTimestamp::ValidFlags::timeValid
void timeValid(uint16_t val)
Definition: data_shared.hpp:214
mip::data_shared::ReferenceTimestamp::NAME
static constexpr const char * NAME
Definition: data_shared.hpp:317
mip::data_shared::GpsTimestamp::ValidFlags::Type
uint16_t Type
Definition: data_shared.hpp:190
mip::data_shared::EventSource
Definition: data_shared.hpp:65
mip::data_shared::DeltaTicks::FIELD_DESCRIPTOR
static constexpr const uint8_t FIELD_DESCRIPTOR
Definition: data_shared.hpp:153
mip::data_shared::Ticks::extract
void extract(Serializer &serializer)
Definition: data_shared.cpp:39
common.hpp
mip_result.hpp
mip::data_shared::GpsTimestamp::ValidFlags::_enumType
_enumType
Definition: data_shared.hpp:191
mip::data_shared::ReferenceTimeDelta::asTuple
auto asTuple()
Definition: data_shared.hpp:372
mip::data_shared::GpsTimestamp::DOC_NAME
static constexpr const char * DOC_NAME
Definition: data_shared.hpp:228
mip::data_shared::ExternalTimestamp::ValidFlags::operator=
ValidFlags & operator=(uint16_t val)
Definition: data_shared.hpp:415
mip::data_shared::ReferenceTimestamp::insert
void insert(Serializer &serializer) const
Serialization.
Definition: data_shared.cpp:86