Zephyr API Documentation  3.6.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
can_fake.h File Reference
#include <zephyr/drivers/can.h>
#include <zephyr/fff.h>

Go to the source code of this file.

Functions

 DECLARE_FAKE_VALUE_FUNC (int, fake_can_start, const struct device *)
 
 DECLARE_FAKE_VALUE_FUNC (int, fake_can_stop, const struct device *)
 
 DECLARE_FAKE_VALUE_FUNC (int, fake_can_set_timing, const struct device *, const struct can_timing *)
 
 DECLARE_FAKE_VALUE_FUNC (int, fake_can_set_timing_data, const struct device *, const struct can_timing *)
 
 DECLARE_FAKE_VALUE_FUNC (int, fake_can_get_capabilities, const struct device *, can_mode_t *)
 
 DECLARE_FAKE_VALUE_FUNC (int, fake_can_set_mode, const struct device *, can_mode_t)
 
 DECLARE_FAKE_VALUE_FUNC (int, fake_can_send, const struct device *, const struct can_frame *, k_timeout_t, can_tx_callback_t, void *)
 
 DECLARE_FAKE_VALUE_FUNC (int, fake_can_add_rx_filter, const struct device *, can_rx_callback_t, void *, const struct can_filter *)
 
 DECLARE_FAKE_VOID_FUNC (fake_can_remove_rx_filter, const struct device *, int)
 
 DECLARE_FAKE_VALUE_FUNC (int, fake_can_recover, const struct device *, k_timeout_t)
 
 DECLARE_FAKE_VALUE_FUNC (int, fake_can_get_state, const struct device *, enum can_state *, struct can_bus_err_cnt *)
 
 DECLARE_FAKE_VOID_FUNC (fake_can_set_state_change_callback, const struct device *, can_state_change_callback_t, void *)
 
 DECLARE_FAKE_VALUE_FUNC (int, fake_can_get_max_filters, const struct device *, bool)
 
 DECLARE_FAKE_VALUE_FUNC (int, fake_can_get_core_clock, const struct device *, uint32_t *)
 

Function Documentation

◆ DECLARE_FAKE_VALUE_FUNC() [1/12]

DECLARE_FAKE_VALUE_FUNC ( int  ,
fake_can_add_rx_filter  ,
const struct device ,
can_rx_callback_t  ,
void *  ,
const struct can_filter  
)

◆ DECLARE_FAKE_VALUE_FUNC() [2/12]

DECLARE_FAKE_VALUE_FUNC ( int  ,
fake_can_get_capabilities  ,
const struct device ,
can_mode_t  
)

◆ DECLARE_FAKE_VALUE_FUNC() [3/12]

DECLARE_FAKE_VALUE_FUNC ( int  ,
fake_can_get_core_clock  ,
const struct device ,
uint32_t  
)

◆ DECLARE_FAKE_VALUE_FUNC() [4/12]

DECLARE_FAKE_VALUE_FUNC ( int  ,
fake_can_get_max_filters  ,
const struct device ,
bool   
)

◆ DECLARE_FAKE_VALUE_FUNC() [5/12]

DECLARE_FAKE_VALUE_FUNC ( int  ,
fake_can_get_state  ,
const struct device ,
enum can_state ,
struct can_bus_err_cnt  
)

◆ DECLARE_FAKE_VALUE_FUNC() [6/12]

DECLARE_FAKE_VALUE_FUNC ( int  ,
fake_can_recover  ,
const struct device ,
k_timeout_t   
)

◆ DECLARE_FAKE_VALUE_FUNC() [7/12]

DECLARE_FAKE_VALUE_FUNC ( int  ,
fake_can_send  ,
const struct device ,
const struct can_frame ,
k_timeout_t  ,
can_tx_callback_t  ,
void *   
)

◆ DECLARE_FAKE_VALUE_FUNC() [8/12]

DECLARE_FAKE_VALUE_FUNC ( int  ,
fake_can_set_mode  ,
const struct device ,
can_mode_t   
)

◆ DECLARE_FAKE_VALUE_FUNC() [9/12]

DECLARE_FAKE_VALUE_FUNC ( int  ,
fake_can_set_timing  ,
const struct device ,
const struct can_timing  
)

◆ DECLARE_FAKE_VALUE_FUNC() [10/12]

DECLARE_FAKE_VALUE_FUNC ( int  ,
fake_can_set_timing_data  ,
const struct device ,
const struct can_timing  
)

◆ DECLARE_FAKE_VALUE_FUNC() [11/12]

DECLARE_FAKE_VALUE_FUNC ( int  ,
fake_can_start  ,
const struct device  
)

◆ DECLARE_FAKE_VALUE_FUNC() [12/12]

DECLARE_FAKE_VALUE_FUNC ( int  ,
fake_can_stop  ,
const struct device  
)

◆ DECLARE_FAKE_VOID_FUNC() [1/2]

DECLARE_FAKE_VOID_FUNC ( fake_can_remove_rx_filter  ,
const struct device ,
int   
)

◆ DECLARE_FAKE_VOID_FUNC() [2/2]

DECLARE_FAKE_VOID_FUNC ( fake_can_set_state_change_callback  ,
const struct device ,
can_state_change_callback_t  ,
void *   
)