Code for the ESPNet protocol.
|
| enum | espnet_node_type {
ESPNET_NODE_TYPE_SINGLE_OUT = 0x0001
, ESPNET_NODE_TYPE_SINGLE_IN = 0x0002
, ESPNET_NODE_TYPE_RS232 = 0x0060
, ESPNET_NODE_TYPE_IO = 0x0061
,
ESPNET_NODE_TYPE_LONWORKS = 0x0100
} |
| |
| enum | { ESPNET_MAX_UNIVERSES = 512
} |
| |
| enum | { ESPNET_NAME_LENGTH = 10
} |
| |
| enum | { ESPNET_DATA_LENGTH = 200
} |
| |
| enum | espnet_packet_type_e { ESPNET_POLL = 'E' << 24 | 'S' << 16 | 'P' << 8 | 'P'
, ESPNET_REPLY = 'E' << 24 | 'S' << 16 | 'P' << 8 | 'R'
, ESPNET_DMX = 'E' << 24 | 'S' << 16 | 'D' << 8 | 'D'
, ESPNET_ACK = 'E' << 24 | 'S' << 16 | 'A' << 8 | 'P'
} |
| |
| enum | { PORTS_PER_DEVICE = 5
} |
| |
|
|
enum ola::plugin::espnet::espnet_packet_type_e | __attribute__ ((packed)) |
| |
|
| PACK (struct espnet_poll_s { uint32_t head;uint8_t type;}) |
| |
|
| PACK (struct espnet_poll_reply_s { uint32_t head;uint8_t mac[ola::network::MACAddress::LENGTH];uint16_t type;uint8_t version;uint8_t sw;uint8_t name[ESPNET_NAME_LENGTH];uint8_t option;uint8_t tos;uint8_t ttl;espnet_node_config_t config;}) |
| |
|
| PACK (struct espnet_ack_s { uint32_t head;uint8_t status;uint8_t crc;}) |
| |
|
| PACK (struct espnet_data_s { uint32_t head;uint8_t universe;uint8_t start;uint8_t type;uint16_t size;uint8_t data[DMX_UNIVERSE_SIZE];}) |
| |
|
uint16_t | HostToNetwork (uint16_t value) |
| | 16-bit unsigned host to network conversion.
|
| |
|
uint16_t | NetworkToHost (uint16_t value) |
| | 16-bit unsigned network to host conversion.
|
| |