Definition in file datagram.h.
Go to the source code of this file.
Data Structures | |
| union | ec_address_t |
| EtherCAT address. More... | |
| struct | ec_datagram_t |
| EtherCAT datagram. More... | |
Enumerations | |
| enum | ec_datagram_type_t { EC_DATAGRAM_NONE = 0x00, EC_DATAGRAM_APRD = 0x01, EC_DATAGRAM_APWR = 0x02, EC_DATAGRAM_NPRD = 0x04, EC_DATAGRAM_NPWR = 0x05, EC_DATAGRAM_BRD = 0x07, EC_DATAGRAM_BWR = 0x08, EC_DATAGRAM_LRW = 0x0C } |
| EtherCAT datagram type. More... | |
| enum | ec_datagram_state_t { EC_DATAGRAM_INIT, EC_DATAGRAM_QUEUED, EC_DATAGRAM_SENT, EC_DATAGRAM_RECEIVED, EC_DATAGRAM_TIMED_OUT, EC_DATAGRAM_ERROR } |
| EtherCAT datagram state. More... | |
Functions | |
| void | ec_datagram_init (ec_datagram_t *) |
| Datagram constructor. | |
| void | ec_datagram_clear (ec_datagram_t *) |
| Datagram destructor. | |
| int | ec_datagram_prealloc (ec_datagram_t *, size_t) |
| Allocates datagram data memory. | |
| int | ec_datagram_nprd (ec_datagram_t *, uint16_t, uint16_t, size_t) |
| Initializes an EtherCAT NPRD datagram. | |
| int | ec_datagram_npwr (ec_datagram_t *, uint16_t, uint16_t, size_t) |
| Initializes an EtherCAT NPWR datagram. | |
| int | ec_datagram_aprd (ec_datagram_t *, uint16_t, uint16_t, size_t) |
| Initializes an EtherCAT APRD datagram. | |
| int | ec_datagram_apwr (ec_datagram_t *, uint16_t, uint16_t, size_t) |
| Initializes an EtherCAT APWR datagram. | |
| int | ec_datagram_brd (ec_datagram_t *, uint16_t, size_t) |
| Initializes an EtherCAT BRD datagram. | |
| int | ec_datagram_bwr (ec_datagram_t *, uint16_t, size_t) |
| Initializes an EtherCAT BWR datagram. | |
| int | ec_datagram_lrw (ec_datagram_t *, uint32_t, size_t) |
| Initializes an EtherCAT LRW datagram. | |
|
|
EtherCAT datagram type.
Definition at line 56 of file datagram.h. |
|
|
EtherCAT datagram state.
Definition at line 73 of file datagram.h. |
|
||||||||||||
|
Allocates datagram data memory. If the allocated memory is already larger than requested, nothing ist done.
Definition at line 102 of file datagram.c. |
|
||||||||||||||||||||
|
Initializes an EtherCAT NPRD datagram. Node-adressed physical read.
Definition at line 131 of file datagram.c. |
|
||||||||||||||||||||
|
Initializes an EtherCAT NPWR datagram. Node-adressed physical write.
Definition at line 159 of file datagram.c. |
|
||||||||||||||||||||
|
Initializes an EtherCAT APRD datagram. Autoincrement physical read.
Definition at line 187 of file datagram.c. |
|
||||||||||||||||||||
|
Initializes an EtherCAT APWR datagram. Autoincrement physical write.
Definition at line 212 of file datagram.c. |
|
||||||||||||||||
|
Initializes an EtherCAT BRD datagram. Broadcast read.
Definition at line 237 of file datagram.c. |
|
||||||||||||||||
|
Initializes an EtherCAT BWR datagram. Broadcast write.
Definition at line 260 of file datagram.c. |
|
||||||||||||||||
|
Initializes an EtherCAT LRW datagram. Logical read write.
Definition at line 283 of file datagram.c. |
1.4.6