21 #ifndef PLUGINS_SHOWNET_SHOWNETPACKETS_H_
22 #define PLUGINS_SHOWNET_SHOWNETPACKETS_H_
35 enum { SHOWNET_MAC_LENGTH = 6 };
36 enum { SHOWNET_NAME_LENGTH = 9 };
37 enum { SHOWNET_SPARE_LENGTH = 22 };
40 enum { SHOWNET_DMX_DATA_LENGTH = 512 };
42 enum { SHOWNET_COMPRESSED_DATA_LENGTH = 1269 };
44 enum ShowNetPacketType {
46 COMPRESSED_DMX_PACKET = 0x808f,
59 uint16_t spare[SHOWNET_SPARE_LENGTH];
60 uint8_t dmx_data[SHOWNET_DMX_DATA_LENGTH];
61 } __attribute__((packed));
70 uint16_t indexBlock[5];
76 char name[SHOWNET_NAME_LENGTH];
77 uint8_t data[SHOWNET_COMPRESSED_DATA_LENGTH];
78 } __attribute__((packed));
95 #endif // PLUGINS_SHOWNET_SHOWNETPACKETS_H_