48 #include <linux/netdevice.h> 64 struct module *module);
void ecdev_close(ec_device_t *device)
Makes the master leave IDLE phase and closes the network device.
int ecdev_open(ec_device_t *device)
Opens the network device and makes the master enter IDLE phase.
void(* ec_pollfunc_t)(struct net_device *)
Device poll function type.
uint8_t ecdev_get_link(const ec_device_t *device)
Reads the link state.
void ecdev_receive(ec_device_t *device, const void *data, size_t size)
Accepts a received frame.
ec_device_t * ecdev_offer(struct net_device *net_dev, ec_pollfunc_t poll, struct module *module)
Offers an EtherCAT device to a certain master.
void ecdev_set_link(ec_device_t *device, uint8_t state)
Sets a new link state.
void ecdev_withdraw(ec_device_t *device)
Withdraws an EtherCAT device from the master.