40#ifndef LIBETHERCAT_HW_FILE_H
41#define LIBETHERCAT_HW_FILE_H
44#include <libosal/task.h>
61 uint64_t rx_timeout_ns;
enum pooltype pooltype_t
Flag to distinguish the pool types during processing.
hardware access functions
int hw_device_file_open(struct hw_file *phw, struct ec *pec, const osal_char_t *devname, int prio, int cpu_mask)
Opens EtherCAT hw device.
ethercat master structure
Definition ec.h:197
hardware structure
Definition hw.h:121
struct ec * pec
Pointer to EtherCAT master structure.
Definition hw.h:122
osal_uint8_t send_frame[EC_ETH_FRAME_LEN]
Static send frame.
Definition hw_file.h:51
int fd
file descriptor
Definition hw_file.h:49
osal_uint8_t recv_frame[EC_ETH_FRAME_LEN]
Static receive frame.
Definition hw_file.h:52
osal_task_t rxthread
receiver thread handle
Definition hw_file.h:56
osal_bool_t polling_mode
Special interrupt-less polling-mode flag.
Definition hw_file.h:53
int rxthreadrunning
receiver thread running flag
Definition hw_file.h:57