Zephyr API Documentation 4.3.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
can_driver_data Struct Reference

Common CAN controller driver data. More...

#include <zephyr/drivers/can.h>

Data Fields

can_mode_t mode
 Current CAN controller mode.
bool started
 True if the CAN controller is started, false otherwise.
can_state_change_callback_t state_change_cb
 State change callback function pointer or NULL.
void * state_change_cb_user_data
 State change callback user data pointer or NULL.

Detailed Description

Common CAN controller driver data.

This structure is common to all CAN controller drivers and is expected to be the first element in the driver's struct driver_data declaration.

Field Documentation

◆ mode

can_mode_t can_driver_data::mode

Current CAN controller mode.

◆ started

bool can_driver_data::started

True if the CAN controller is started, false otherwise.

◆ state_change_cb

can_state_change_callback_t can_driver_data::state_change_cb

State change callback function pointer or NULL.

◆ state_change_cb_user_data

void* can_driver_data::state_change_cb_user_data

State change callback user data pointer or NULL.


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