IgH EtherCAT Master  1.5.3
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. More...
 
ec_sdo_entry_tec_sdo_get_entry (ec_sdo_t *, uint8_t)
 Get an SDO entry from an SDO via its subindex. More...
 
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. More...
 

Detailed Description

EtherCAT CANopen SDO structure.

Definition in file sdo.h.

Function Documentation

◆ ec_sdo_clear()

void ec_sdo_clear ( ec_sdo_t sdo)

SDO destructor.

Clears and frees an SDO object.

Parameters
sdoSDO.

Definition at line 67 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 91 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 116 of file sdo.c.