21#ifndef PLUGINS_ESPNET_ESPNETPACKETS_H_
22#define PLUGINS_ESPNET_ESPNETPACKETS_H_
27#include <netinet/in.h>
37enum { ESPNET_NAME_LENGTH = 10 };
38enum { ESPNET_DATA_LENGTH = 200 };
44enum espnet_packet_type_e {
45 ESPNET_POLL =
'E' << 24 |
'S' << 16 |
'P' << 8 |
'P',
46 ESPNET_REPLY =
'E' << 24 |
'S' << 16 |
'P' << 8 |
'R',
47 ESPNET_DMX =
'E' << 24 |
'S' << 16 |
'D' << 8 |
'D',
48 ESPNET_ACK =
'E' << 24 |
'S' << 16 |
'A' << 8 |
'P'
53} __attribute__((packed));
56typedef enum espnet_packet_type_e espnet_packet_type_t;
67typedef struct espnet_poll_s espnet_poll_t;
85struct espnet_poll_reply_s {
87 uint8_t mac[ola::network::MACAddress::LENGTH];
91 uint8_t name[ESPNET_NAME_LENGTH];
98typedef struct espnet_poll_reply_s espnet_poll_reply_t;
110typedef struct espnet_ack_s espnet_ack_t;
116struct espnet_data_s {
125typedef struct espnet_data_s espnet_data_t;
136 espnet_poll_reply_t reply;
Constants used throughout OLA.
Represents a MAC Address.
#define PACK(__Declaration__)
Pack structures.
Definition Macro.h:171
The namespace containing all OLA symbols.
Definition Credentials.cpp:44
@ DMX_UNIVERSE_SIZE
Definition Constants.h:36
Definition EspNetPackets.h:73
Definition EspNetPackets.h:134