Documentation PDF

MUXDLL  V6.55
tCanEvent Struct Reference

Event. More...

Data Fields

uint8_t bData [CAN_MAX_DATA]
 
uint32_t dwIdent
 
uint32_t dwReserved1
 
uint32_t dwReserved2
 
uint32_t dwTimeStamp
 
tCanChipState eChipState
 
tCanService eService
 
tMuxTypeEvent eTypeEvent
 
tCanTypeId eTypeId
 
uint16_t wBus
 
uint16_t wBusLoad
 
uint16_t wDataLen
 
uint16_t wError
 
uint16_t wHandleMsg
 
uint16_t wLineState
 
uint16_t wTimePrecision
 

Detailed Description

Event.

Field Documentation

◆ bData

uint8_t bData[CAN_MAX_DATA]

Data buffer

◆ dwIdent

uint32_t dwIdent

Identifier of the message

  • [0-0x7FF] if standard identifier
  • [0x1FFFFFFF] if extended identifier

◆ dwReserved1

uint32_t dwReserved1

Reserved for future use

◆ dwReserved2

uint32_t dwReserved2

Reserved for future use

◆ dwTimeStamp

uint32_t dwTimeStamp

Time of event in 0.1 milliseconds

◆ eChipState

tCanChipState eChipState

Chip state

◆ eService

tCanService eService

Request services

◆ eTypeEvent

tMuxTypeEvent eTypeEvent

Event type

  • EVENT_EMPTY: No event
  • EVENT_CAN_MSGTX: End of correct transmission of a message
  • EVENT_CAN_MSGRX: Correct reception of a message
  • EVENT_CAN_ERROR: Network error
  • EVENT_CAN_BUSCHANGE: Change in the protocol controller status
  • EVENT_CAN_BUSLOAD: Bus charge
  • EVENT_TIMER: Applicable timer
  • EVENT_TIMEERROR: Loss of IT timer
  • EVENT_FIFO_OVF: Bit indicating that one or several events after such bit are lost because the FIFO reception was full

◆ eTypeId

tCanTypeId eTypeId

Identifier type

◆ wBus

uint16_t wBus

Bus number

◆ wBusLoad

uint16_t wBusLoad

Bus load value in percentage

◆ wDataLen

uint16_t wDataLen

Data length [0-8]

◆ wError

uint16_t wError

Error type

  • Bit 7 to 6 type of error:
    • 0: Bit error
    • 1: Format error
    • 2: Stuffing error
    • 3: Another type of error
  • Bit 5 Direction when the error takes place
    • 0: During transmission
    • 1: During reception
  • Bit 4 at 0 Field where the error has taken place
    • 0x02 : ID20 to ID21
    • 0x03: Start of frame
    • 0x04: SRTR bit
    • 0x05: IDE bit
    • 0x06: ID20 to ID18
    • 0x07: ID17 to ID13
    • 0x08: CRC field
    • 0x09: Bit reserved 0
    • 0x0A: DATA field
    • 0x0B: DLC field
    • 0x0C: RTR bit
    • 0x0D: Bit reserved 1
    • 0x0E: ID4 to ID0
    • 0x0F: ID12 to ID5
    • 0x11: Active error flag
    • 0x12: Intermission
    • 0x13: Dominant bits
    • 0x16: Passive error flag
    • 0x17: Error delimiter
    • 0x18: CRC delimiter
    • 0x19: Acknowledge slot
    • 0x1A: End of frame
    • 0x1B: Acknowledge delimiter
    • 0x1C: Overload flag

◆ wHandleMsg

uint16_t wHandleMsg

Communication handle returned by DLL

◆ wLineState

uint16_t wLineState

Low speed line interface state

  • Bit 0: Status of ERR bit in low speed line interface
    • 1 : Communication in nominal mode.
    • 0 : Communication in degraded mode.
  • Bit 1: Status of INH line in the low speed interface (PCI-MUX-CAN and PCI-MUX-MultiCAN cards only)
    • 1 : INH output is active
    • 0 : INH output is inactive

◆ wTimePrecision

uint16_t wTimePrecision

Precision of dwTimeStamp in 0.1 ms