21 #ifndef PLUGINS_SHOWNET_SHOWNETPACKETS_H_
22 #define PLUGINS_SHOWNET_SHOWNETPACKETS_H_
38 enum { SHOWNET_MAC_LENGTH = ola::network::MACAddress::LENGTH };
39 enum { SHOWNET_NAME_LENGTH = 9 };
40 enum { SHOWNET_SPARE_LENGTH = 22 };
45 enum { SHOWNET_COMPRESSED_DATA_LENGTH = 1269 };
47 enum ShowNetPacketType {
49 COMPRESSED_DMX_PACKET = 0x808f,
55 struct shownet_dmx_s {
63 uint16_t spare[SHOWNET_SPARE_LENGTH];
64 uint8_t dmx_data[SHOWNET_DMX_DATA_LENGTH];
67 typedef struct shownet_dmx_s shownet_dmx;
72 struct shownet_compressed_dmx_s {
75 uint16_t indexBlock[5];
81 char name[SHOWNET_NAME_LENGTH];
82 uint8_t data[SHOWNET_COMPRESSED_DATA_LENGTH];
85 typedef struct shownet_compressed_dmx_s shownet_compressed_dmx;
90 uint8_t ip[ola::network::IPV4Address::LENGTH];
93 shownet_compressed_dmx compressed_dmx;
100 #endif // PLUGINS_SHOWNET_SHOWNETPACKETS_H_