LibMultiSense
LibMultiSense Documentation
Loading...
Searching...
No Matches
PtpStatusResponseMessage.hh
Go to the documentation of this file.
1
39#ifndef LibMultiSense_PtpStatusResponseMessage
40#define LibMultiSense_PtpStatusResponseMessage
41
43#include <iostream>
44#include <cstring>
45
46namespace crl {
47namespace multisense {
48namespace details {
49namespace wire {
50
52public:
55
56 //
57 // Camera PTP status parameters
58 //
59 uint8_t gm_present;
60 int64_t gm_offset;
61
62 //
63 // Estimated delay of syncronization messages from master in nanosec
64
65 int64_t path_delay;
66
67 //
68 // Number of network hops from GM to local clock
69
70 uint16_t steps_removed;
71
72 //
73 // GM Clock identity (8 bytes, 0xXXXXXX.XXXX.XXXXXX)
74 //
75 uint8_t gm_id[8];
76
77 //
78 // Constructors
79
82 gm_offset(0),
83 path_delay(0),
85 {
86 memset(gm_id, 0, sizeof(gm_id));
87 };
88
89 //
90 // Serialization routine
91
92 template<class Archive>
93 void serialize(Archive& message,
94 const VersionType version)
95 {
96 (void) version;
97 message & gm_present;
98 message & gm_offset;
99 message & path_delay;
100 message & steps_removed;
101 message & gm_id;
102 }
103};
104
105}}}} // namespaces
106
107#endif
Macros and symbols to help portability between different compiler versions.
#define CRL_CONSTEXPR
PtpStatusResponse(utility::BufferStreamReader &r, VersionType v)
void serialize(Archive &message, const VersionType version)
static CRL_CONSTEXPR IdType ID_DATA_PTP_STATUS
Definition Protocol.hh:239