globally configurable Art-Net OEM value
This commit is contained in:
parent
27e668457f
commit
1904dacea9
|
@ -204,8 +204,13 @@ struct TalkToMe {
|
||||||
* Bit 15 high indicates extended features available.
|
* Bit 15 high indicates extended features available.
|
||||||
*/
|
*/
|
||||||
struct OEM {
|
struct OEM {
|
||||||
|
/**
|
||||||
|
* @brief OEM
|
||||||
|
* @param value
|
||||||
|
*/
|
||||||
|
OEM(uint16_t value = oem_unknown) : word(value) {}
|
||||||
union {
|
union {
|
||||||
uint16_t word = oem_unknown;
|
uint16_t word;
|
||||||
struct {
|
struct {
|
||||||
uint16_t manufacturer : 15;
|
uint16_t manufacturer : 15;
|
||||||
bool extended_features : 1;
|
bool extended_features : 1;
|
||||||
|
|
|
@ -76,6 +76,7 @@ struct pollreply_data
|
||||||
{
|
{
|
||||||
pollreply_data()
|
pollreply_data()
|
||||||
: udp_port(UDP_PORT)
|
: udp_port(UDP_PORT)
|
||||||
|
, oem(MY_ARTNET_MANUFACTUER_ID)
|
||||||
, esta_manufacturer(MY_ESTA_MANUFACTURER_ID)
|
, esta_manufacturer(MY_ESTA_MANUFACTURER_ID)
|
||||||
{};
|
{};
|
||||||
|
|
||||||
|
|
|
@ -40,7 +40,7 @@ static constexpr char LIB_VERSION_LABEL [] = "0.1.1";
|
||||||
// THIS IS MINE! Use your own!
|
// THIS IS MINE! Use your own!
|
||||||
static const uint16_t MY_ESTA_MANUFACTURER_ID = 0x0235;
|
static const uint16_t MY_ESTA_MANUFACTURER_ID = 0x0235;
|
||||||
static constexpr char MY_ESTA_MANUFACTURER_LABEL [] = "Company 235, LLC";
|
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 defined(__clang__)
|
||||||
#if __has_feature(cxx_rtti)
|
#if __has_feature(cxx_rtti)
|
||||||
|
|
Loading…
Reference in New Issue