Zephyr Project API 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
can_driver_config Struct Reference

Common CAN controller driver configuration. More...

#include <can.h>

Data Fields

const struct devicephy
 Pointer to the device structure for the associated CAN transceiver device or NULL.
uint32_t min_bitrate
 The minimum bitrate supported by the CAN controller/transceiver combination.
uint32_t max_bitrate
 The maximum bitrate supported by the CAN controller/transceiver combination.
uint32_t bitrate
 Initial CAN classic/CAN FD arbitration phase bitrate.
uint16_t sample_point
 Initial CAN classic/CAN FD arbitration phase sample point in permille.
uint16_t sample_point_data
 Initial CAN FD data phase sample point in permille.
uint32_t bitrate_data
 Initial CAN FD data phase bitrate.

Detailed Description

Common CAN controller driver configuration.

This structure is common to all CAN controller drivers and is expected to be the first element in the object pointed to by the config field in the device structure.

Field Documentation

◆ bitrate

uint32_t can_driver_config::bitrate

Initial CAN classic/CAN FD arbitration phase bitrate.

◆ bitrate_data

uint32_t can_driver_config::bitrate_data

Initial CAN FD data phase bitrate.

Attention
Available only when the following Kconfig option is enabled:
CONFIG_CAN_FD_MODE 
.

◆ max_bitrate

uint32_t can_driver_config::max_bitrate

The maximum bitrate supported by the CAN controller/transceiver combination.

◆ min_bitrate

uint32_t can_driver_config::min_bitrate

The minimum bitrate supported by the CAN controller/transceiver combination.

◆ phy

const struct device* can_driver_config::phy

Pointer to the device structure for the associated CAN transceiver device or NULL.

◆ sample_point

uint16_t can_driver_config::sample_point

Initial CAN classic/CAN FD arbitration phase sample point in permille.

◆ sample_point_data

uint16_t can_driver_config::sample_point_data

Initial CAN FD data phase sample point in permille.

Attention
Available only when the following Kconfig option is enabled:
CONFIG_CAN_FD_MODE 
.

The documentation for this struct was generated from the following file:
  • include/zephyr/drivers/can.h