21#ifndef PLUGINS_PATHPORT_PATHPORTPACKETS_H_
22#define PLUGINS_PATHPORT_PATHPORTPACKETS_H_
40enum pathport_packet_type_e {
41 PATHPORT_DATA = 0x0100,
42 PATHPORT_PATCH = 0x0200,
43 PATHPORT_PATCHREP = 0x0210,
44 PATHPORT_GET = 0x0222,
45 PATHPORT_GET_REPLY = 0x0223,
46 PATHPORT_ARP_REQUEST = 0x0301,
47 PATHPORT_ARP_REPLY = 0x0302,
48 PATHPORT_SET = 0x0400,
53} __attribute__((packed));
56typedef enum pathport_packet_type_e pathport_packet_type_t;
63struct pathport_pdu_data_s {
65 uint16_t channel_count;
72typedef struct pathport_pdu_data_s pathport_pdu_data;
79struct pathport_pdu_get_s {
83typedef struct pathport_pdu_get_s pathport_pdu_get;
90struct pathport_pdu_getrep_s {
94typedef struct pathport_pdu_getrep_s pathport_pdu_getrep;
109struct pathport_pdu_arp_reply_s {
111 uint8_t ip[ola::network::IPV4Address::LENGTH];
112 uint8_t manufacturer_code;
113 uint8_t device_class;
115 uint8_t component_count;
118typedef struct pathport_pdu_arp_reply_s pathport_pdu_arp_reply;
121struct pathport_pdu_header_s {
126typedef struct pathport_pdu_header_s pathport_pdu_header;
132struct pathport_packet_pdu_s {
133 pathport_pdu_header head;
135 pathport_pdu_data data;
136 pathport_pdu_get get;
137 pathport_pdu_getrep getrep;
138 pathport_pdu_arp_reply arp_reply;
142typedef struct pathport_packet_pdu_s pathport_packet_pdu;
149struct pathport_packet_header_s {
151 uint8_t version_major;
152 uint8_t version_minor;
156 uint32_t destination;
159typedef struct pathport_packet_header_s pathport_packet_header;
166struct pathport_packet_s {
167 pathport_packet_header header;
170 pathport_packet_pdu pdu;
Represents an IPv4 Address.
#define PACK(__Declaration__)
Pack structures.
Definition Macro.h:171
The namespace containing all OLA symbols.
Definition Credentials.cpp:44
Definition PathportPackets.h:97