TestWaitForDiagResponseStart
Valid for: CANoe DE • CANoe4SW DE NoteThis function can only be called within a test module!
Function Syntax
Description
Waits for the arrival of the response to a sent request, e.g. the so-called “First Frame” in ISO TP transmissions. One way this function might be triggered is byDiag_FirstFrameInd() at the CAPL Callback Interface, but only if this has been implemented suitably. When other protocols or interfaces are used this call might be omitted. Then the function rolls back after the response has been fully received.
Parameters
- request: Sent request
- timeout [ms]: Maximum time that should be waited [ms]. Transmission of 0: no timeout controlling.
Return Values
- < 0: An internal error occurred, e.g. a faulty configuration of the Diagnostic Layer.
- 0: The timeout was reached, i.e. the event of interest did not occur within the specified time.
- 1: The event occurred.