CANpie FD
CAN programming interface environment - Version 3.08
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Friends Macros Modules Pages
Data Fields
CpHdi_s Struct Reference

Detailed Description

The Hardware Description Interface provides a method to gather information about the CAN hardware and the functionality of the driver. The hardware description structure is available for every physical CAN channel.

Data Fields

uint8_t ubVersionMajor
 
uint8_t ubVersionMinor
 
uint8_t ubCanFeatures
 
uint8_t ubDriverFeatures
 
uint8_t ubBufferMax
 
uint8_t ubDriverMajor
 
uint8_t ubDriverMinor
 
uint8_t ubReserved [1]
 
uint32_t ulTimeStampRes
 
uint32_t ulCanClock
 
uint32_t ulBitRateMin
 
uint32_t ulBitRateMax
 
int32_t slNomBitRate
 
int32_t slDatBitRate
 

Field Documentation

◆ slDatBitRate

int32_t CpHdi_s::slDatBitRate

The element slDatBitRate is only valid for ISO CAN FD controller. The value defines the actual configured bit-rate of the data phase in bits-per-second (bps).

◆ slNomBitRate

int32_t CpHdi_s::slNomBitRate

The element slNomBitRate defines the actual configured bit-rate of the CAN controller in bits-per-second (bps). For ISO CAN FD the value defines the bit-rate of the arbitration phase.

◆ ubBufferMax

uint8_t CpHdi_s::ubBufferMax

The element ubBufferMax defines the total number of CAN message buffers (mailboxes).

◆ ubCanFeatures

uint8_t CpHdi_s::ubCanFeatures

The element ubCanFeatures defines the capabilities of the CAN controller. Reserved bit values are read as 0.

  • Bit 0: 0 = 2.0A support, 1 = 2.0B support
  • Bit 1: 0 = Classic CAN , 1 = ISO CAN FD
  • Bit 2: reserved
  • Bit 3: reserved
  • Bit 4: reserved
  • Bit 5: reserved
  • Bit 6: reserved
  • Bit 7: reserved

◆ ubDriverFeatures

uint8_t CpHdi_s::ubDriverFeatures

The element ubDriverFeatures defines the capabilities of the software driver. Reserved bit values are read as 0.

  • Bit 0: 0 = no time stamp, 1 = time stamp support
  • Bit 1: 0 = no user data , 1 = user data support
  • Bit 2: reserved
  • Bit 3: reserved
  • Bit 4: reserved
  • Bit 5: reserved
  • Bit 6: reserved
  • Bit 7: reserved

◆ ubDriverMajor

uint8_t CpHdi_s::ubDriverMajor

Major version number of driver

◆ ubDriverMinor

uint8_t CpHdi_s::ubDriverMinor

Minor version number of driver

◆ ubReserved

uint8_t CpHdi_s::ubReserved[1]

reserved element (alignment)

◆ ubVersionMajor

uint8_t CpHdi_s::ubVersionMajor

Major version number of CANpie API

◆ ubVersionMinor

uint8_t CpHdi_s::ubVersionMinor

Minor version number of CANpie API

◆ ulBitRateMax

uint32_t CpHdi_s::ulBitRateMax

The element ulBitRateMax defines the highest configurable bit-rate in bits-per-second (bps). The value is specified through the used CAN transceiver.

◆ ulBitRateMin

uint32_t CpHdi_s::ulBitRateMin

The element ulBitRateMin defines the lowest configurable bit-rate in bits-per-second (bps). The value is specified through the used CAN transceiver.

◆ ulCanClock

uint32_t CpHdi_s::ulCanClock

Clock rate of CAN controller in Hertz.

◆ ulTimeStampRes

uint32_t CpHdi_s::ulTimeStampRes

Resolution of optional time stamp in nano-seconds.