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

EtherCAT eoe functions. More...

#include <libosal/types.h>
#include <libosal/semaphore.h>
#include "libethercat/common.h"

Go to the source code of this file.

Data Structures

struct  ec_eoe_slave_config
 
struct  ec_eoe
 

Macros

#define LEC_EOE_MAC_LEN   (6u)
 
#define LEC_EOE_IP_ADDRESS_LEN   (4u)
 
#define LEC_EOE_SUBNET_LEN   (4u)
 
#define LEC_EOE_GATEWAY_LEN   (4u)
 
#define LEC_EOE_DNS_LEN   (4u)
 
#define LEC_EOE_DNS_NAME_LEN   (128u)
 

Typedefs

typedef struct ec_eoe_slave_config ec_eoe_slave_config_t
 
typedef struct ec_eoe ec_eoe_t
 

Functions

void ec_eoe_init (ec_t *pec, osal_uint16_t slave)
 initialize EoE structure
 
void ec_eoe_deinit (ec_t *pec, osal_uint16_t slave)
 deinitialize EoE structure
 
void ec_eoe_enqueue (ec_t *pec, osal_uint16_t slave, pool_entry_t *p_entry)
 Enqueue EoE message received from slave.
 
int ec_eoe_set_ip_parameter (ec_t *pec, osal_uint16_t slave, osal_uint8_t *mac, osal_uint8_t *ip_address, osal_uint8_t *subnet, osal_uint8_t *gateway, osal_uint8_t *dns, osal_char_t *dns_name)
 Set IP parameters to slave with EoE support.
 
int ec_eoe_send_frame (ec_t *pec, osal_uint16_t slave, osal_uint8_t *frame, osal_size_t frame_len)
 
int ec_eoe_setup_tun (ec_t *pec)
 
void ec_eoe_destroy_tun (ec_t *pec)
 

Detailed Description

EtherCAT eoe functions.

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

Implementaion of the Ethernet over EtherCAT mailbox protocol