IgH EtherCAT Master
1.5.3
|
EtherCAT device structure. More...
Go to the source code of this file.
Data Structures | |
struct | ec_device |
EtherCAT device. More... | |
Macros | |
#define | EC_TX_RING_SIZE 2 |
Size of the transmit ring. More... | |
Functions | |
int | ec_device_init (ec_device_t *, ec_master_t *) |
Constructor. More... | |
void | ec_device_clear (ec_device_t *) |
Destructor. | |
void | ec_device_attach (ec_device_t *, struct net_device *, ec_pollfunc_t, struct module *) |
Associate with net_device. | |
void | ec_device_detach (ec_device_t *) |
Disconnect from net_device. | |
int | ec_device_open (ec_device_t *) |
Opens the EtherCAT device. More... | |
int | ec_device_close (ec_device_t *) |
Stops the EtherCAT device. More... | |
void | ec_device_poll (ec_device_t *) |
Calls the poll function of the assigned net_device. More... | |
uint8_t * | ec_device_tx_data (ec_device_t *) |
Returns a pointer to the device's transmit memory. More... | |
void | ec_device_send (ec_device_t *, size_t) |
Sends the content of the transmit socket buffer. More... | |
void | ec_device_clear_stats (ec_device_t *) |
Clears the frame statistics. | |
void | ec_device_update_stats (ec_device_t *) |
Update device statistics. | |
EtherCAT device structure.
Definition in file device.h.
#define EC_TX_RING_SIZE 2 |
int ec_device_init | ( | ec_device_t * | device, |
ec_master_t * | master | ||
) |
int ec_device_open | ( | ec_device_t * | device | ) |
int ec_device_close | ( | ec_device_t * | device | ) |
void ec_device_poll | ( | ec_device_t * | device | ) |
Calls the poll function of the assigned net_device.
The master itself works without using interrupts. Therefore the processing of received data and status changes of the network device has to be done by the master calling the ISR "manually".
device | EtherCAT device |
uint8_t* ec_device_tx_data | ( | ec_device_t * | device | ) |
void ec_device_send | ( | ec_device_t * | device, |
size_t | size | ||
) |