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,
52 struct shownet_dmx_s {
60 uint16_t spare[SHOWNET_SPARE_LENGTH];
61 uint8_t dmx_data[SHOWNET_DMX_DATA_LENGTH];
64 typedef struct shownet_dmx_s shownet_dmx;
69 struct shownet_compressed_dmx_s {
72 uint16_t indexBlock[5];
78 char name[SHOWNET_NAME_LENGTH];
79 uint8_t data[SHOWNET_COMPRESSED_DATA_LENGTH];
82 typedef struct shownet_compressed_dmx_s shownet_compressed_dmx;
90 shownet_compressed_dmx compressed_dmx;
97 #endif // PLUGINS_SHOWNET_SHOWNETPACKETS_H_