LedStatusMessage.h
Go to the documentation of this file.
1 
40 #ifndef LibMultiSense_LedStatusMessage
41 #define LibMultiSense_LedStatusMessage
42 
44 
45 namespace crl {
46 namespace multisense {
47 namespace details {
48 namespace wire {
49 
50 class LedStatus {
51 public:
54 
55  //
56  // Bit mask indicating which LEDs are implemented
57 
58  uint8_t available;
59 
60  //
61  // Current LED duty cycles; 0 = off; 255 = 100%
62 
64 
65  //
66  // If non-zero, LEDs are only on while sensors are exposing
67 
68  uint8_t flash;
69 
70  //
71  // Constructors
72 
74  LedStatus() : available(0), flash(0) {};
75 
76  //
77  // Serialization routine
78 
79  template<class Archive>
80  void serialize(Archive& message,
81  const VersionType version)
82  {
83  (void) version;
84  message & available;
85  for(uint32_t i=0; i<lighting::MAX_LIGHTS; i++)
86  message & intensity[i];
87  message & flash;
88  }
89 };
90 
91 }}}} // namespaces
92 
93 #endif
static CRL_CONSTEXPR IdType ID_DATA_LED_STATUS
Definition: Protocol.h:199
uint8_t intensity[lighting::MAX_LIGHTS]
static CRL_CONSTEXPR VersionType VERSION
void serialize(Archive &message, const VersionType version)
Definition: channel.cc:56
static CRL_CONSTEXPR uint32_t MAX_LIGHTS
LedStatus(utility::BufferStreamReader &r, VersionType v)
#define CRL_CONSTEXPR
Definition: Portability.hh:51


multisense_lib
Author(s):
autogenerated on Sun Mar 14 2021 02:34:50