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  message & available;
84  for(uint32_t i=0; i<lighting::MAX_LIGHTS; i++)
85  message & intensity[i];
86  message & flash;
87  }
88 };
89 
90 }}}}; // namespaces
91 
92 #endif
static CRL_CONSTEXPR IdType ID_DATA_LED_STATUS
Definition: Protocol.h:188
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:38


multisense_lib
Author(s):
autogenerated on Sat Apr 6 2019 02:16:46