libethercat - an embeddable realtime EtherCAT-master library
Communicate with EtherCAT slaves attached to a Network interface.
Loading...
Searching...
No Matches
hw_stm32.h File Reference

file/char device hardware access functions More...

#include "eth.h"
#include <libethercat/hw.h>

Go to the source code of this file.

Data Structures

struct  hw_stm32
 

Macros

#define htons(x)   ((((x) & 0xFF00) >> 8) | (((x) & 0x00FF) << 8))
 

Typedefs

typedef struct hw_stm32 hw_stm32_t
 

Functions

int hw_device_stm32_open (struct hw_stm32 *phw, struct ec *pec)
 Opens EtherCAT hw device.
 
int hw_device_stm32_send (struct hw_common *phw, ec_frame_t *pframe, pooltype_t pool_type)
 
int hw_device_stm32_recv (struct hw_common *phw)
 

Detailed Description

file/char device hardware access functions

Author
Robert Burger rober.nosp@m.t.bu.nosp@m.rger@.nosp@m.dlr..nosp@m.de
Marcel Beausencourt marce.nosp@m.l.be.nosp@m.ausen.nosp@m.cour.nosp@m.t@dlr.nosp@m..de
Date
26 Nov 2024

Function Documentation

◆ hw_device_stm32_open()

int hw_device_stm32_open ( struct hw_stm32 phw,
struct ec pec 
)

Opens EtherCAT hw device.

Parameters
[in]phwPointer to hw handle.
[in]pecPointer to EtherCAT master structure.
Returns
0 or negative error code