Vector BLF
Vector::BLF::LinReceiveError2 Struct Referencefinal

LIN_RCV_ERROR2. More...

#include <LinReceiveError2.h>

Inheritance diagram for Vector::BLF::LinReceiveError2:
Vector::BLF::ObjectHeader Vector::BLF::LinDatabyteTimestampEvent Vector::BLF::ObjectHeaderBase Vector::BLF::LinMessageDescriptor Vector::BLF::LinSynchFieldEvent Vector::BLF::LinBusEvent

Public Member Functions

void read (AbstractFile &is) override
 
void write (AbstractFile &os) override
 
DWORD calculateObjectSize () const override
 
- Public Member Functions inherited from Vector::BLF::ObjectHeader
 ObjectHeader (const ObjectType objectType, const WORD objectVersion=0)
 
void read (AbstractFile &is) override
 
void write (AbstractFile &os) override
 
WORD calculateHeaderSize () const override
 
DWORD calculateObjectSize () const override
 
- Public Member Functions inherited from Vector::BLF::ObjectHeaderBase
 ObjectHeaderBase (const WORD headerVersion, const ObjectType objectType)
 
 ObjectHeaderBase (const ObjectHeaderBase &)=default
 
ObjectHeaderBaseoperator= (const ObjectHeaderBase &)=default
 
 ObjectHeaderBase (ObjectHeaderBase &&)=default
 
ObjectHeaderBaseoperator= (ObjectHeaderBase &&)=default
 
- Public Member Functions inherited from Vector::BLF::LinSynchFieldEvent
void read (AbstractFile &is) override
 
void write (AbstractFile &os) override
 
DWORD calculateObjectSize () const override
 
- Public Member Functions inherited from Vector::BLF::LinBusEvent
 LinBusEvent (const LinBusEvent &)=default
 
LinBusEventoperator= (const LinBusEvent &)=default
 
 LinBusEvent (LinBusEvent &&)=default
 
LinBusEventoperator= (LinBusEvent &&)=default
 

Public Attributes

std::array< BYTE, 8 > data {}
 data bytes.
 
BYTE fsmId {}
 
BYTE fsmState {}
 
BYTE stateReason {}
 
BYTE offendingByte {}
 
BYTE shortError {}
 
BYTE timeoutDuringDlcDetection {}
 
BYTE isEtf {}
 ETF collision flag. More...
 
BYTE hasDatabytes {}
 
DWORD respBaudrate {}
 Response baudrate of the event in bit/sec. More...
 
DWORD reservedLinReceiveError {}
 
DOUBLE exactHeaderBaudrate {}
 Exact baudrate of the header in bit/sec. More...
 
DWORD earlyStopbitOffset {}
 Early stop bit offset for UART timestamps in ns. More...
 
DWORD earlyStopbitOffsetResponse {}
 Early stop bit offset in frame response for UART timestamps in ns. More...
 
- Public Attributes inherited from Vector::BLF::ObjectHeader
DWORD objectFlags {ObjectFlags::TimeOneNans}
 object flags More...
 
WORD clientIndex {}
 client index of send node
 
WORD objectVersion {0}
 object specific version More...
 
ULONGLONG objectTimeStamp {}
 object timestamp More...
 
- Public Attributes inherited from Vector::BLF::ObjectHeaderBase
DWORD signature {ObjectSignature}
 signature (ObjectSignature) More...
 
WORD headerSize {}
 sizeof object header More...
 
WORD headerVersion {}
 header version (1) More...
 
DWORD objectSize {}
 object size More...
 
ObjectType objectType {}
 object type More...
 
- Public Attributes inherited from Vector::BLF::LinDatabyteTimestampEvent
std::array< ULONGLONG, 9 > databyteTimestamps {}
 Databyte timestamps, where d[0] = EndOfHeader, d[1]=EndOfDataByte1, ..., d[8]=EndOfDataByte8. More...
 
- Public Attributes inherited from Vector::BLF::LinMessageDescriptor
WORD supplierId {}
 LIN Sub-Identifier - Supplier ID. More...
 
WORD messageId {}
 LIN Sub-Identifier - Message ID (16 bits) More...
 
BYTE nad {}
 LIN Sub-Identifier - NAD. More...
 
BYTE id {}
 LIN ID. More...
 
BYTE dlc {}
 LIN DLC. More...
 
BYTE checksumModel {}
 LIN checksum model. More...
 
- Public Attributes inherited from Vector::BLF::LinSynchFieldEvent
ULONGLONG synchBreakLength {}
 Sync Break Length in ns. More...
 
ULONGLONG synchDelLength {}
 Sync Delimiter Length in ns. More...
 
- Public Attributes inherited from Vector::BLF::LinBusEvent
ULONGLONG sof {}
 Start Of Frame timestamp. More...
 
DWORD eventBaudrate {}
 Baudrate of the event in bit/sec. More...
 
WORD channel {}
 application channel More...
 
WORD reservedLinBusEvent {}
 

Additional Inherited Members

- Public Types inherited from Vector::BLF::ObjectHeader
enum  ObjectFlags : DWORD { TimeTenMics = 0x00000001 , TimeOneNans = 0x00000002 }
 

Detailed Description

LIN_RCV_ERROR2.

This event may have a wide variety of causes. An external Master can cause a receive error event:

  • by transmitting sync break that is too short,
  • by not returning the correct value 0x55 in the sync field,
  • by assigning an incorrect parity to the frame identifier. Other reasons:
  • Slave transmitting an illegal character during a Bus Idle phase (e.g. because it did not finish transmission quickly enough and the checksum byte of the response was sent during the Bus Idle phase),
  • Faulty (dominant) stop bit (i.e. framing error),
  • LIN hardware receives a character that is different from the character sent during transmission
  • LIN hardware only receives part of a frame, at the start of a measurement (in a correctly functioning system).

Member Function Documentation

◆ calculateObjectSize()

DWORD Vector::BLF::LinReceiveError2::calculateObjectSize ( ) const
overridevirtual

Calculates the objectSize

Returns
object size

Reimplemented from Vector::BLF::LinDatabyteTimestampEvent.

◆ read()

void Vector::BLF::LinReceiveError2::read ( AbstractFile is)
overridevirtual

Read the data of this object

Parameters
isinput stream

Reimplemented from Vector::BLF::LinDatabyteTimestampEvent.

◆ write()

void Vector::BLF::LinReceiveError2::write ( AbstractFile os)
overridevirtual

Write the data of this object

Parameters
osoutput stream

Reimplemented from Vector::BLF::LinDatabyteTimestampEvent.

Member Data Documentation

◆ earlyStopbitOffset

DWORD Vector::BLF::LinReceiveError2::earlyStopbitOffset {}

Early stop bit offset for UART timestamps in ns.

Early stop bit offset in frame header for UART timestamps [in ns]

◆ earlyStopbitOffsetResponse

DWORD Vector::BLF::LinReceiveError2::earlyStopbitOffsetResponse {}

Early stop bit offset in frame response for UART timestamps in ns.

Early stop bit offset in frame response for UART timestamps [in ns]

◆ exactHeaderBaudrate

DOUBLE Vector::BLF::LinReceiveError2::exactHeaderBaudrate {}

Exact baudrate of the header in bit/sec.

Event's baudrate measured in header [in bits/sec]

◆ fsmId

BYTE Vector::BLF::LinReceiveError2::fsmId {}

Slave Identifier in the Final State Machine (obsolete)

◆ fsmState

BYTE Vector::BLF::LinReceiveError2::fsmState {}

State Identifier of a Slave in the Final State Machine (obsolete)

◆ hasDatabytes

BYTE Vector::BLF::LinReceiveError2::hasDatabytes {}

Flag indicating whether at least one data byte value is valid

◆ isEtf

BYTE Vector::BLF::LinReceiveError2::isEtf {}

ETF collision flag.

Flag indicating whether this frame is Event-Triggered one:

  • 0: not ETF
  • 1: ETF

◆ offendingByte

BYTE Vector::BLF::LinReceiveError2::offendingByte {}

Byte value that resulted the protocol violation. Only valid for certain values of mStateReason

◆ reservedLinReceiveError

DWORD Vector::BLF::LinReceiveError2::reservedLinReceiveError {}

reserved

◆ respBaudrate

DWORD Vector::BLF::LinReceiveError2::respBaudrate {}

Response baudrate of the event in bit/sec.

Event's baudrate measured in response [in bits/sec]

◆ shortError

BYTE Vector::BLF::LinReceiveError2::shortError {}

Specifies the detail level of the event. Following values are possible:

  • 0: short
  • 1: full Most members are not valid unless this member is 1

◆ stateReason

BYTE Vector::BLF::LinReceiveError2::stateReason {}

The lower 4 bits indicate the LIN hard-ware state at the time the error has occurred, while the upper 4 bits indicate the reason of the error

Value 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 length. E.g. value 4 for FrameLength=0, value 12 for FrameLength=8
  • 14: Consecutive event (i.e. event resulting from further data interpretation, after already notified error for first offending byte)
  • 15: Not expected event (i.e. not WakeupRequest) during sleep mode. Occurs for LIN hardware in Master mode only

Values for the reason:

  • 0: Timeout
  • 1: Received an unexpected byte violating protocol. In this case, mOffendingByte member contains its value
  • 2: Received a byte with framing error (with dominant stop bit). In this case, mOffendingByte member contains its value
  • 3: Unexpected Break field
  • 4: Unidentified error

◆ timeoutDuringDlcDetection

BYTE Vector::BLF::LinReceiveError2::timeoutDuringDlcDetection {}

Flag indicating if the error is a result of an attempt to resolve frame length. Following values are possible:

  • 0: False
  • 1: True

The documentation for this struct was generated from the following files: