1
0
Fork 0

add definition for slot count

This commit is contained in:
Kevin Matz 2022-06-04 10:29:00 -04:00
parent 00d825ccf8
commit ce8baafcf3
2 changed files with 8 additions and 1 deletions

View File

@ -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

View File

@ -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 *)>;
/**