Open topic with navigation CAPL Functions » LIN » linMeasEdgeTimeDiffsDocumentation Index
Fetch the complete documentation index at: https://notevil.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
linMeasEdgeTimeDiffs
Valid for: CANoe DEFunction Syntax
dword linMeasEdgeTimeDiffs(dword numIndices, long indices[]); // form 1dword linMeasEdgeTimeDiffs(dword numIndices, long indices[], dword id); // form 2
Description
This function activates the measurement of the falling edges of the specified bytes in the next frame with the correct id if specified. If the first form is used (without specifying an id), or by specifying the id 0xff/-1, the measurement takes place in the next frame. The measured values can be queried with linGetMeasEdgeTimeDiffs. The bitrates of the measured bytes can be queried via linGetMeasByteBitRates.Parameters
- numIndices: The number of specified byte indices. A pending measurement may be canceled by specifying numIndices=0, before the frame to be measured occurs on the bus. A pending, uncompleted measurement must be canceled, before a new measurement can be activated.
-
indices: An array containing the indices of the bytes to be measured. Note that the minimum size for this array is numIndices. The array is sorted ascending internally. Therefore, the results of the measurement are sorted as well from the lowest to the highest byte index. Furthermore, duplicate entries are ignored.
- Index range:
- -2…N, where N = length [in bytes] of specified LIN frame
- -2: Sync field
- -1: PID byte
- 0…N-1: Data bytes 1…N
- N: Checksum byte
- Index range:
- id: The LIN identifier of the frame to be measured. Value range: 0..63 Note: If the function is configured to measure header bytes (index < 0) on interfaces of the XL family, the measurement always takes place in the next frame regardless of the specified id.