Zephyr API Documentation 4.5.0-rc1
A Scalable Open Source RTOS
Loading...
Searching...
No Matches

Fake CAN controller driver API functions. More...

#include <zephyr/drivers/can.h>
#include <zephyr/fff.h>

Go to the source code of this file.

Functions

int fake_can_start (const struct device *)
 Fake implementation of the can_driver_api::start driver operation.
int fake_can_stop (const struct device *)
 Fake implementation of the can_driver_api::stop driver operation.
int fake_can_set_timing (const struct device *, const struct can_timing *)
 Fake implementation of the can_driver_api::set_timing driver operation.
int fake_can_set_timing_data (const struct device *, const struct can_timing *)
 Fake implementation of the can_driver_api::set_timing_data driver operation.
int fake_can_get_capabilities (const struct device *, can_mode_t *)
 Fake implementation of the can_driver_api::get_capabilities driver operation.
int fake_can_set_mode (const struct device *, can_mode_t)
 Fake implementation of the can_driver_api::set_mode driver operation.
int fake_can_send (const struct device *, const struct can_frame *, k_timeout_t, can_tx_callback_t, void *)
 Fake implementation of the can_driver_api::send driver operation.
int fake_can_add_rx_filter (const struct device *, can_rx_callback_t, void *, const struct can_filter *)
 Fake implementation of the can_driver_api::add_rx_filter driver operation.
void fake_can_remove_rx_filter (const struct device *, int)
 Fake implementation of the can_driver_api::remove_rx_filter driver operation.
int fake_can_recover (const struct device *, k_timeout_t)
 Fake implementation of the can_driver_api::recover driver operation.
int fake_can_get_state (const struct device *, enum can_state *, struct can_bus_err_cnt *)
 Fake implementation of the can_driver_api::get_state driver operation.
int fake_can_state_change_callbacks_enabled (const struct device *, bool)
 Fake implementation of the can_driver_api::state_change_callbacks_enabled driver operation.
int fake_can_get_max_filters (const struct device *, bool)
 Fake implementation of the can_driver_api::get_max_filters driver operation.
int fake_can_get_core_clock (const struct device *, uint32_t *)
 Fake implementation of the can_driver_api::get_core_clock driver operation.

Detailed Description

Fake CAN controller driver API functions.