41#ifndef LIBETHERCAT_HW_STM32_H
42#define LIBETHERCAT_HW_STM32_H
53 ETH_TxPacketConfig TxConfig;
61#define HTONS(x) (((x) << 8) | ((x) >> 8))
62#define htons(x) (((x) << 8) | ((x) >> 8))
66#define htons(x) ((((x) & 0xFF00) >> 8) | (((x) & 0x00FF) << 8))
79int hw_device_stm32_recv(
struct hw_common *phw);
enum pooltype pooltype_t
Flag to distinguish the pool types during processing.
hardware access functions
int hw_device_stm32_open(struct hw_stm32 *phw, struct ec *pec)
Opens EtherCAT hw device.
ethercat master structure
Definition ec.h:188
hardware structure
Definition hw.h:126
struct ec * pec
Pointer to EtherCAT master structure.
Definition hw.h:127
osal_uint8_t recv_frame[ETH_FRAME_LEN]
Static receive frame.
Definition hw_stm32.h:56
osal_uint8_t send_frame[ETH_FRAME_LEN]
Static send frame.
Definition hw_stm32.h:55