Alex exoskeleton
ALEX SoftwareDocumentation
Functions
CO_master.c File Reference
#include "CO_master.h"
Include dependency graph for CO_master.c:

Go to the source code of this file.

Functions

int sdoClientUpload (CO_SDOclient_t *SDOclient, uint8_t nodeID, uint16_t idx, uint8_t subidx, uint8_t *dataRx, uint32_t dataRxSize, uint32_t *dataRxLen, uint32_t *SDOabortCode, uint16_t SDOtimeoutTime, uint8_t blockTransferEnable)
 
int sdoClientDownload (CO_SDOclient_t *SDOclient, uint8_t nodeID, uint16_t idx, uint8_t subidx, uint8_t *dataTx, uint32_t dataTxLen, uint32_t *SDOabortCode, uint16_t SDOtimeoutTime, uint8_t blockTransferEnable)
 

Function Documentation

int sdoClientDownload ( CO_SDOclient_t *  SDOclient,
uint8_t  nodeID,
uint16_t  idx,
uint8_t  subidx,
uint8_t dataTx,
uint32_t  dataTxLen,
uint32_t SDOabortCode,
uint16_t  SDOtimeoutTime,
uint8_t  blockTransferEnable 
)

Sdo client download.

For further details see CANopenNode/stack/CO_master.h file. This is blocking function.

Parameters
SDOclientPointer to CANopen SDO client object.
nodeIDNode-ID of the remote node.
idxIndex of object in object dictionary in remote node.
subidxSubindex of object in object dictionary in remote node.
dataTxPointer to data buffer, which contains the data.
dataTxLenLength of data in dataTx.
SDOabortCodeReturn variable - SDO abort code.
SDOtimeoutTimeSDO timeout time in milliseconds.
blockTransferEnableIf true, try to initiate block transfer.
Returns
0 on success.

Definition at line 96 of file CO_master.c.

int sdoClientUpload ( CO_SDOclient_t *  SDOclient,
uint8_t  nodeID,
uint16_t  idx,
uint8_t  subidx,
uint8_t dataRx,
uint32_t  dataRxSize,
uint32_t dataRxLen,
uint32_t SDOabortCode,
uint16_t  SDOtimeoutTime,
uint8_t  blockTransferEnable 
)

Sdo client upload.

For further details see CANopenNode/stack/CO_master.h file. This is blocking function.

Parameters
SDOclientPointer to CANopen SDO client object.
nodeIDNode-ID of the remote node.
idxIndex of object in object dictionary in remote node.
subidxSubindex of object in object dictionary in remote node.
dataRxPointer to data buffer, into which received data will be written.
dataRxSizeMaximum size of dataRx.
dataRxLenReturn variable - actual data length in dataRx.
SDOabortCodeReturn variable - SDO abort code.
SDOtimeoutTimeSDO timeout time in milliseconds.
blockTransferEnableIf true, try to initiate block transfer.
Returns
0 on success.

Definition at line 32 of file CO_master.c.