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

SOCK_RAW hardware access functions. More...

#include <libethercat/hw.h>
#include <libethercat/ec.h>
#include <libosal/task.h>

Go to the source code of this file.

Data Structures

struct  hw_sock_raw
 

Typedefs

typedef struct hw_sock_raw hw_sock_raw_t
 

Functions

int hw_device_sock_raw_open (struct hw_sock_raw *phw, struct ec *pec, const osal_char_t *devname, int prio, int cpu_mask)
 Opens EtherCAT hw device.
 

Detailed Description

SOCK_RAW hardware access functions.

Author
Robert Burger rober.nosp@m.t.bu.nosp@m.rger@.nosp@m.dlr..nosp@m.de
Date
24 Nov 2016

Function Documentation

◆ hw_device_sock_raw_open()

int hw_device_sock_raw_open ( struct hw_sock_raw phw,
struct ec pec,
const osal_char_t *  devname,
int  prio,
int  cpu_mask 
)

Opens EtherCAT hw device.

Parameters
[in]phwPointer to hw handle.
[in]pecPointer to master structure.
[in]devnameNull-terminated string to EtherCAT hw device name.
[in]prioPriority for receiver thread.
[in]cpu_maskCPU mask for receiver thread.
Returns
0 or negative error code