Skip to main content

coTfsSDOGetUploadData (Level 1,2)

Valid for: CANoe DE • CANoe:lite DE • CANoe4SW DE Note
Before using this function you have to call coTfsSetNodeId to set the internal node ID.

Function Syntax

long coTfsSDOGetUploadData( byte outValueBuf[], dword valueBufSize );

Description

This function makes available the data of the last successful SDO upload procedure. This can be an expedited, segmented or block transfer. The data field outValueBuf must always be able to accommodate the received data.

Parameters

  • outValueBuf[]
    Received SDO upload data. Take care that this data field is of appropriate size depending on the use case!
  • valueBufSize
    Buffer size in byte of outValueBuf.

Return Values

  • !0
    number of received bytes
  • 0
    data not available or data buffer outValueBuf too small

Example

See example of coTfsSDOInit