Skip to main contentOpen topic with navigation
CAPL Functions » LIN » linReceiveError Selectors
linReceiveError Selectors
Valid for: CANoe DE • CANoe4SW DE
Table of Selectors
-
Keyword: Time
- Description: Time stamp synchronized with the global time base on the computer (CAN hardware or PC system clock). Unit: 10µs
- Type: dword
- Access Limitations: read only
-
Keyword: Time_ns
- Description: Time stamp synchronized with the global time base on the computer (CAN hardware or PC system clock). Unit: nanoseconds
- Type: int64
- Access Limitations: read only
-
Keyword: MsgOrigTime
- Description: Time stamp generated by the LIN hardware. This time stamp is unsynchronized with the global time base on the computer and thus still original. It can be used to compare the time of two LIN hardware generated events. Unit: 10µs
- Type: dword
- Access Limitations: read only
-
Keyword: MsgTimeStampStatus
- Description: Status of MsgOrigTime:
- Bit 0 set: Time stamp is valid
- Bit 0 not set: Time stamp is invalid
- Bit 1 set: Time stamp was generated by software
- Bit 1 not set: Time stamp was generated by hardware
- Bit 4: Has a bus-specific meaning; not currently in use for LIN
- Type: byte
- Access Limitations: read only
-
Keyword: LIN_HeaderTime
- Description: Frame header transmission time. Unit: bit time
- Type: byte
- Access Limitations: read only
-
Keyword: LIN_Fulltime
- Description: Entire event transmission time (transmission of the frame header by the master and waiting for the maximum frame duration). Unit: bit time
- Type: byte
- Access Limitations: read only
-
Keyword: ID
- Description: LIN Frame identifier (6 bits). Value range: 0..63
- Type: byte
- Access Limitations: read only
-
Keyword: DLC
- Description: Number of data bytes expected in the frame (Data Length Code). Only valid if lin_ShortError is not set. Value range: 0..8
- Type: byte
- Access Limitations:
-
Keyword: MsgChannel
- Description: Transmission channel. Value range: 1..32
- Type: word
- Access Limitations: read only
-
Keyword: lin_ShortError
- Description: Specifies the detail level of the event. Most selectors are not valid unless this selector is set.
- Type: byte
- Access Limitations: read only
-
Keyword: lin_StateReason
- Description: The lower 4 bits indicate the LIN hardware state at the time the error has occurred, while the upper 4 bits indicate the reason of the error.
- Values for the state:
- 0: Bus idle
- 1: Waiting for SynchBreak
- 2: Waiting for SynchField
- 3: Waiting for frame ID
- 4-12: Waiting for data byte or checksum byte depending on the frame DLC.
- 14: Consecutive event (i.e. event resulting from further data interpretation, after already notified error for first offending byte).
- 15: SleepMode. Only possible if the LIN hardware is in Master mode. In Slave mode, the LIN hardware can be wakened by any type of bus traffic.
- Values for the reason:
- 0: Timeout
- 1: Received an unexpected byte violating protocol. In this case, lin_OffendingByte contains its value.
- 2: Received a byte with framing error (with dominant stop bit). In this case, lin_OffendingByte contains its value.
- 3: Unexpected Break field.
- 4: Unidentified error.
- Type: byte
- Access Limitations: read only
-
Keyword: lin_OffendingByte
- Description: The byte that resulted the protocol violation. Only valid for certain values of lin_StateReason.
- Type: byte
- Access Limitations: read only
-
Keyword: lin_FsmID
- Description: Identifier of the FSM that transmitted the frame response. Only valid if lin_FSMState
<> 255 and lin_ShortError is not set. Value range: 0..63
- Type: byte
- Access Limitations: read only
-
Keyword: breaklen
- Description: Length of the sync break in ns
- Type: int64
- Access Limitations: read only
-
Keyword: delimiterlen
- Description: Length of the sync delimiter in ns
- Type: int64
- Access Limitations: read only
-
Keyword: EOH
- Description: End of header time stamp in ns
- Type: int64
- Access Limitations: read only
-
Keyword: EOB[i]
- Description: End of byte time stamp of databyte
<i> in ns. Possible indexes: 0..7
- Type: int64
- Access Limitations: read only
-
Keyword: SOF
- Description: Start of Frame time stamp in ns
- Type: int64
- Access Limitations: read only
-
Keyword: HeaderBaudrate
- Description: The measured baudrate of the LIN header of this event. Unit: Bit/s
- Type: double
- Access Limitations: read only
-
Keyword: lin_FsmState
- Description: The status, in which the FSM transmitted the frame. Only valid if lin_ShortError is not set. Value range: 0..255. If lin_FsmState = 255 no FSM was configured to response to this frame. The value of lin_FSMId is thus also invalid.
- Type: byte
- Access Limitations: read only