IgH EtherCAT Master  1.6.2
sdo.c File Reference

CANopen SDO functions. More...

Go to the source code of this file.

Functions

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

Detailed Description

CANopen SDO functions.

Definition in file sdo.c.

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.