coTfsSDODownloadUploadAndCompare (Level 2)
Feature availability for your product: CANoe DE • CANoe:lite DE • CANoe4SW DEFunction Syntax
Description
This function executes a complete SDO download to write the object value and after that a SDO upload to read the written value. Depending on the number of data, this is either an expedited upload (up to 4 bytes) or a segmented transfer. Afterwards the received data is compared against the data supplied. It is not possible to fetch the received data using coTfsGetSdoUploadData after this function was called. (2) can be used for maximum 4 byte objects only.Parameters
- index: Object index
- subIndex: Object subindex
- size: Expected data length.
- downloadValue: Value that is to be written.
- downloadValueBuf[]: Data pointer for data to be written.
- valueBufSize: Buffer size in byte of downloadValueBuf.
Return Values
- error code or
- 0: data mismatch
- 1: supplied data matches received data
- 2: data length mismatch