coTfsEmcyGetErrorCode (Level 2)
Valid for: CANoe DE • CANoe:lite DE • CANoe4SW DEFunction Syntax
Description
This function transmits as return value the number of received emergency messages for the CANopen® node labeled withnodeID.
Each emergency message can only be called up once. The return value contains the number of received messages including the emergency message returned with the function call. All data pointers are only valid if there is at least one message present.
It is possible to omit the nodeID parameter. In this case, the internally-stored value set with coTfsSetNodeId is used.
Parameters
- nodeID: The function transmits emergency messages from the selected node-ID. If node-ID is set to 0, the messages of all nodes are transmitted.
- outCanId: CAN-ID data field.
- outTimeStamp: Data field on the time stamp of the transmitted emergency message in ms.
- outEmcyCode: Emergency code data field.
- outErrorReg: Error register data field.
- outMsCodeBuf[]: Manufacturer-specific error code (data field).
- msCodeBufSize: Size of buffer in byte of
outMsCodeBuf.