29 #ifndef __EC_MAILBOX_H__ 30 #define __EC_MAILBOX_H__ 38 #define EC_MBOX_HEADER_SIZE 6 45 EC_MBOX_TYPE_EOE = 0x02,
46 EC_MBOX_TYPE_COE = 0x03,
47 EC_MBOX_TYPE_FOE = 0x04,
48 EC_MBOX_TYPE_SOE = 0x05,
49 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.
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.