IgH EtherCAT Master
1.6.2
|
EtherCAT CoE emergency ring buffer methods. More...
Go to the source code of this file.
Functions | |
void | ec_coe_emerg_ring_init (ec_coe_emerg_ring_t *ring, ec_slave_config_t *sc) |
Emergency ring buffer constructor. More... | |
void | ec_coe_emerg_ring_clear (ec_coe_emerg_ring_t *ring) |
Emergency ring buffer destructor. More... | |
int | ec_coe_emerg_ring_size (ec_coe_emerg_ring_t *ring, size_t size) |
Set the ring size. More... | |
void | ec_coe_emerg_ring_push (ec_coe_emerg_ring_t *ring, const u8 *msg) |
Add a new emergency message. More... | |
int | ec_coe_emerg_ring_pop (ec_coe_emerg_ring_t *ring, u8 *msg) |
Remove an emergency message from the ring. More... | |
int | ec_coe_emerg_ring_clear_ring (ec_coe_emerg_ring_t *ring) |
Clear the ring. More... | |
int | ec_coe_emerg_ring_overruns (const ec_coe_emerg_ring_t *ring) |
Read the number of overruns. More... | |
EtherCAT CoE emergency ring buffer methods.
Definition in file coe_emerg_ring.c.
void ec_coe_emerg_ring_init | ( | ec_coe_emerg_ring_t * | ring, |
ec_slave_config_t * | sc | ||
) |
Emergency ring buffer constructor.
ring | Emergency ring. |
sc | Slave configuration. |
Definition at line 38 of file coe_emerg_ring.c.
void ec_coe_emerg_ring_clear | ( | ec_coe_emerg_ring_t * | ring | ) |
Emergency ring buffer destructor.
ring | Emergency ring. |
Definition at line 55 of file coe_emerg_ring.c.
int ec_coe_emerg_ring_size | ( | ec_coe_emerg_ring_t * | ring, |
size_t | size | ||
) |
Set the ring size.
ring | Emergency ring. |
size | Maximum number of messages in the ring. |
Definition at line 70 of file coe_emerg_ring.c.
void ec_coe_emerg_ring_push | ( | ec_coe_emerg_ring_t * | ring, |
const u8 * | msg | ||
) |
Add a new emergency message.
ring | Emergency ring. |
msg | Emergency message. |
Definition at line 105 of file coe_emerg_ring.c.
int ec_coe_emerg_ring_pop | ( | ec_coe_emerg_ring_t * | ring, |
u8 * | msg | ||
) |
Remove an emergency message from the ring.
ring | Emergency ring. |
msg | Memory to store the emergency message. |
Definition at line 127 of file coe_emerg_ring.c.
int ec_coe_emerg_ring_clear_ring | ( | ec_coe_emerg_ring_t * | ring | ) |
Clear the ring.
ring | Emergency ring. |
Definition at line 147 of file coe_emerg_ring.c.
int ec_coe_emerg_ring_overruns | ( | const ec_coe_emerg_ring_t * | ring | ) |
Read the number of overruns.
ring | Emergency ring. |
Definition at line 162 of file coe_emerg_ring.c.