1
0
Fork 0

globally configurable Art-Net OEM value

This commit is contained in:
Kevin Matz 2022-06-09 16:51:14 -04:00
parent 27e668457f
commit 1904dacea9
3 changed files with 8 additions and 2 deletions

View File

@ -204,8 +204,13 @@ struct TalkToMe {
* Bit 15 high indicates extended features available.
*/
struct OEM {
/**
* @brief OEM
* @param value
*/
OEM(uint16_t value = oem_unknown) : word(value) {}
union {
uint16_t word = oem_unknown;
uint16_t word;
struct {
uint16_t manufacturer : 15;
bool extended_features : 1;

View File

@ -76,6 +76,7 @@ struct pollreply_data
{
pollreply_data()
: udp_port(UDP_PORT)
, oem(MY_ARTNET_MANUFACTUER_ID)
, esta_manufacturer(MY_ESTA_MANUFACTURER_ID)
{};

View File

@ -40,7 +40,7 @@ static constexpr char LIB_VERSION_LABEL [] = "0.1.1";
// THIS IS MINE! Use your own!
static const uint16_t MY_ESTA_MANUFACTURER_ID = 0x0235;
static constexpr char MY_ESTA_MANUFACTURER_LABEL [] = "Company 235, LLC";
static const uint16_t MY_ARTNET_MANUFACTUER_ID = 0x00ff; // OEM Unknown
#if defined(__clang__)
#if __has_feature(cxx_rtti)