IgH EtherCAT Master  1.6.9
sdo.h File Reference

EtherCAT CANopen SDO structure. More...

Go to the source code of this file.

Data Structures

struct  ec_sdo
 CANopen SDO. More...

Functions

void ec_sdo_init (ec_sdo_t *, ec_slave_t *, uint16_t)
 Constructor.
void ec_sdo_clear (ec_sdo_t *)
 SDO destructor.
ec_sdo_entry_tec_sdo_get_entry (ec_sdo_t *, uint8_t)
 Get an SDO entry from an SDO via its subindex.
const ec_sdo_entry_tec_sdo_get_entry_const (const ec_sdo_t *, uint8_t)
 Get an SDO entry from an SDO via its subindex.

Detailed Description

EtherCAT CANopen SDO structure.

Definition in file sdo.h.

Function Documentation

◆ ec_sdo_init()

void ec_sdo_init ( ec_sdo_t * sdo,
ec_slave_t * slave,
uint16_t index )

Constructor.

Parameters
sdoSDO.
slaveParent slave.
indexSDO index.

Definition at line 39 of file sdo.c.

◆ ec_sdo_clear()

void ec_sdo_clear ( ec_sdo_t * sdo)

SDO destructor.

Clears and frees an SDO object.

Parameters
sdoSDO.

Definition at line 59 of file sdo.c.

◆ ec_sdo_get_entry()

ec_sdo_entry_t * ec_sdo_get_entry ( ec_sdo_t * sdo,
uint8_t subindex )

Get an SDO entry from an SDO via its subindex.

Return values
>0Pointer to the requested SDO entry.
NULLSDO entry not found.
Parameters
sdoSDO.
subindexEntry subindex.

Definition at line 83 of file sdo.c.

◆ ec_sdo_get_entry_const()

const ec_sdo_entry_t * ec_sdo_get_entry_const ( const ec_sdo_t * sdo,
uint8_t subindex )

Get an SDO entry from an SDO via its subindex.

const version.

Return values
>0Pointer to the requested SDO entry.
NULLSDO entry not found.
Parameters
sdoSDO.
subindexEntry subindex.

Definition at line 108 of file sdo.c.