|
| int | ec_device_init (ec_device_t *device, ec_master_t *master) |
| | Constructor. More...
|
| |
| void | ec_device_clear (ec_device_t *device) |
| | Destructor. More...
|
| |
| void | ec_device_attach (ec_device_t *device, struct net_device *net_dev, ec_pollfunc_t poll, struct module *module) |
| | Associate with net_device. More...
|
| |
| void | ec_device_detach (ec_device_t *device) |
| | Disconnect from net_device. More...
|
| |
| int | ec_device_open (ec_device_t *device) |
| | Opens the EtherCAT device. More...
|
| |
| int | ec_device_close (ec_device_t *device) |
| | Stops the EtherCAT device. More...
|
| |
| static void | pcap_record (ec_device_t *device, const void *data, size_t size) |
| | Records a packet in the master's pcap buffer, if there is room. More...
|
| |
| uint8_t * | ec_device_tx_data (ec_device_t *device) |
| | Returns a pointer to the device's transmit memory. More...
|
| |
| void | ec_device_send (ec_device_t *device, size_t size) |
| | Sends the content of the transmit socket buffer. More...
|
| |
| void | ec_device_clear_stats (ec_device_t *device) |
| | Clears the frame statistics. More...
|
| |
|
static void | do_gettimeofday (struct timeval *tv) |
| |
| void | ec_device_poll (ec_device_t *device) |
| | Calls the poll function of the assigned net_device. More...
|
| |
| void | ec_device_update_stats (ec_device_t *device) |
| | Update device statistics. More...
|
| |
| void | ecdev_withdraw (ec_device_t *device) |
| | Withdraws an EtherCAT device from the master. More...
|
| |
| int | ecdev_open (ec_device_t *device) |
| | Opens the network device and makes the master enter IDLE phase. More...
|
| |
| void | ecdev_close (ec_device_t *device) |
| | Makes the master leave IDLE phase and closes the network device. More...
|
| |
| void | ecdev_receive (ec_device_t *device, const void *data, size_t size) |
| | Accepts a received frame. More...
|
| |
| void | ecdev_set_link (ec_device_t *device, uint8_t state) |
| | Sets a new link state. More...
|
| |
| uint8_t | ecdev_get_link (const ec_device_t *device) |
| | Reads the link state. More...
|
| |
EtherCAT device methods.
Definition in file device.c.