IgH EtherCAT Master  1.5.3
ecdev.h File Reference

EtherCAT interface for EtherCAT device drivers. More...

Go to the source code of this file.

Typedefs

typedef struct ec_device ec_device_t
 
typedef void(* ec_pollfunc_t) (struct net_device *)
 Device poll function type.
 

Functions

ec_device_tecdev_offer (struct net_device *net_dev, ec_pollfunc_t poll, struct module *module)
 Offers an EtherCAT device to a certain master. 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...
 

Detailed Description

EtherCAT interface for EtherCAT device drivers.

Definition in file ecdev.h.

Typedef Documentation

◆ ec_device_t

typedef struct ec_device ec_device_t
See also
ec_device

Definition at line 53 of file ecdev.h.