add definition for slot count
This commit is contained in:
parent
00d825ccf8
commit
ce8baafcf3
|
@ -36,6 +36,13 @@ namespace DMX {
|
|||
static const uint8_t E111_ASC_MANUFACTURER = 145;
|
||||
static const uint8_t E111_ASC_SIP = 207;
|
||||
|
||||
/// \cite DMX
|
||||
/// 8.1 Data Protocol: Format
|
||||
/// DMX512 slots shall be transmitted sequentially in asynchronous serial
|
||||
/// format, beginning with slot 0 and ending with the last implemented slot,
|
||||
/// up to slot 512 (a maximum total of 513 slots).
|
||||
static const std::size_t E111_LAST_SLOT = 512;
|
||||
|
||||
/// \cite DMX
|
||||
/// 8.5.3.1 Alternate START code refresh interval
|
||||
/// A DMX512 transmitter interleaving NULL START Code packets with
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
namespace DMX {
|
||||
|
||||
class Universe; // forward declare the Univserse class
|
||||
using DimmerData = std::array<uint8_t, 513>;
|
||||
using DimmerData = std::array<uint8_t, E111_LAST_SLOT + 1>;
|
||||
using DataHandler = std::function<void(Universe *)>;
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue