IgH EtherCAT Master  1.6.2
cdev.h File Reference

EtherCAT master character device. More...

Go to the source code of this file.

Data Structures

struct  ec_cdev_t
 EtherCAT master character device. More...
 

Functions

int ec_cdev_init (ec_cdev_t *, ec_master_t *, dev_t)
 Constructor. More...
 
void ec_cdev_clear (ec_cdev_t *)
 Destructor.
 

Detailed Description

EtherCAT master character device.

Definition in file cdev.h.

Function Documentation

◆ ec_cdev_init()

int ec_cdev_init ( ec_cdev_t cdev,
ec_master_t master,
dev_t  dev_num 
)

Constructor.

Returns
0 in case of success, else < 0
Parameters
cdevEtherCAT master character device.
masterParent master.
dev_numDevice number.

Definition at line 100 of file cdev.c.