coTfsTPDOGetDataByEventTimer (Level 2)
Valid for: CANoe DE • CANoe:lite DE • CANoe4SW DEFunction Syntax
Description
This function reads the TPDO data via an event timer mechanism. Test sequence- The transmission type of the TPDO is checked, the values 0xFF (asynchronous, device profile specific) and 0xFE (asynchronous, manufacturer specific) are accepted. If another value is read, 0xFF is set.
- It is checked if the TPDO is active.
- The test module must be in state operational, this is checked with heartbeat and guarding functions. If a heartbeat producer is active, it is overwritten and deactivated.
- The event timer is set to 20 ms.
- The test module waits for the transmission of the first PDO for synchronization purposes. Afterwards the event timer evaluation starts with a tolerance of 20 ms.
- If the process is successful (return value 1), the read data are written in outLength[] and outValueBuf[].
- If necessary, the original transmission type is set.
Parameters
- index: Index of TPDO.
- outLength[]: Size of the TPDO in bytes.
- outValueBuf[]: Data of the TPDO, the array size should be 8 bytes.
- valueBufSize: Size of buffer.