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  archive & mask;
84  for(uint32_t i=0; i<lighting::MAX_LIGHTS; i++)
85  archive & intensity[i];
86  archive & flash;
87  }
88 };
89 
90 }}}}; // namespaces
91 
92 #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:157
uint8_t intensity[lighting::MAX_LIGHTS]
Definition: LedSetMessage.h:63
#define CRL_CONSTEXPR
Definition: Portability.hh:38


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