37 #ifndef __EC_COE_EMERG_RING_H__ 38 #define __EC_COE_EMERG_RING_H__ unsigned int write_index
Write index.
ec_coe_emerg_msg_t * msgs
Message ring.
int ec_coe_emerg_ring_size(ec_coe_emerg_ring_t *, size_t)
Set the ring size.
void ec_coe_emerg_ring_clear(ec_coe_emerg_ring_t *)
Emergency ring buffer destructor.
EtherCAT CoE emergency ring buffer.
int ec_coe_emerg_ring_overruns(ec_coe_emerg_ring_t *)
Read the number of overruns.
Global definitions and macros.
int ec_coe_emerg_ring_clear_ring(ec_coe_emerg_ring_t *)
Clear the ring.
EtherCAT CoE emergency message record.
void ec_coe_emerg_ring_init(ec_coe_emerg_ring_t *, ec_slave_config_t *)
Emergency ring buffer constructor.
int ec_coe_emerg_ring_pop(ec_coe_emerg_ring_t *, u8 *)
Remove an emergency message from the ring.
void ec_coe_emerg_ring_push(ec_coe_emerg_ring_t *, const u8 *)
Add a new emergency message.
unsigned int overruns
Number of overruns since last reset.
unsigned int read_index
Read index.
ec_slave_config_t * sc
Slave configuration owning the ring.
EtherCAT slave configuration.
#define EC_COE_EMERGENCY_MSG_SIZE
Size of a CoE emergency message in byte.