LedSetMessage.h
Go to the documentation of this file.
1 
40 #ifndef LibMultiSense_LedSetMessage
41 #define LibMultiSense_LedSetMessage
42 
44 
45 namespace crl {
46 namespace multisense {
47 namespace details {
48 namespace wire {
49 
50 class LedSet {
51 public:
54 
55  //
56  // Bit mask selecting which LEDs to update
57 
58  uint8_t mask;
59 
60  //
61  // 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  LedSet() : mask(0), flash(0) {};
75 
76  //
77  // Serialization routine
78 
79  template <class Archiver>
80  void serialize(Archiver& archive,
81  const VersionType version)
82  {
83  (void) version;
84  archive & mask;
85  for(uint32_t i=0; i<lighting::MAX_LIGHTS; i++)
86  archive & intensity[i];
87  archive & flash;
88  }
89 };
90 
91 }}}} // namespaces
92 
93 #endif
static CRL_CONSTEXPR IdType ID
Definition: LedSetMessage.h:52
static CRL_CONSTEXPR VersionType VERSION
Definition: LedSetMessage.h:53
Definition: channel.cc:56
void serialize(Archiver &archive, const VersionType version)
Definition: LedSetMessage.h:80
LedSet(utility::BufferStreamReader &r, VersionType v)
Definition: LedSetMessage.h:73
static CRL_CONSTEXPR uint32_t MAX_LIGHTS
static CRL_CONSTEXPR IdType ID_CMD_LED_SET
Definition: Protocol.h:166
uint8_t intensity[lighting::MAX_LIGHTS]
Definition: LedSetMessage.h:63
#define CRL_CONSTEXPR
Definition: Portability.hh:51


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