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_ #define PACK(__Declaration__)
Pack structures.
Definition: Macro.h:170
Constants used throughout OLA.
Definition: Constants.h:36
Represents an IPv4 Address.
The namespace containing all OLA symbols.
Definition: Credentials.cpp:44
Represents a MAC Address.
Definition: ShowNetPackets.h:88