37 #ifndef __EC_MAILBOX_H__ 38 #define __EC_MAILBOX_H__ 46 #define EC_MBOX_HEADER_SIZE 6 51 EC_MBOX_TYPE_EOE = 0x02,
52 EC_MBOX_TYPE_COE = 0x03,
53 EC_MBOX_TYPE_FOE = 0x04,
54 EC_MBOX_TYPE_SOE = 0x05,
55 EC_MBOX_TYPE_VOE = 0x0f,
EtherCAT slave structure.
int ec_slave_mbox_prepare_fetch(const ec_slave_t *, ec_datagram_t *)
Prepares a datagram to fetch mailbox data.
int ec_slave_mbox_prepare_check(const ec_slave_t *, ec_datagram_t *)
Prepares a datagram for checking the mailbox state.
ec_mbox_types
Mailbox types.
uint8_t * ec_slave_mbox_prepare_send(const ec_slave_t *, ec_datagram_t *, uint8_t, size_t)
Prepares a mailbox-send datagram.
int ec_slave_mbox_check(const ec_datagram_t *)
Processes a mailbox state checking datagram.
uint8_t * ec_slave_mbox_fetch(const ec_slave_t *, const ec_datagram_t *, uint8_t *, size_t *)
Processes received mailbox data.