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

SOCK_RAW hardware access functions. More...

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

Go to the source code of this file.

Data Structures

struct  hw_sock_raw_mmaped
 

Typedefs

typedef struct hw_sock_raw_mmaped hw_sock_raw_mmaped_t
 

Functions

int hw_device_sock_raw_mmaped_open (struct hw_sock_raw_mmaped *phw_sock_raw_mmaped, ec_t *pec, const osal_char_t *devname, int prio, int cpumask)
 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_mmaped_open()

int hw_device_sock_raw_mmaped_open ( struct hw_sock_raw_mmaped phw_sock_raw_mmaped,
ec_t pec,
const osal_char_t *  devname,
int  prio,
int  cpumask 
)

Opens EtherCAT hw device.

Parameters
[in]phw_sock_raw_mmapedPointer to sock_raw_mmmaped hw handle.
[in]pecPointer to master struct.
[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