Zephyr API Documentation 4.1.99
A Scalable Open Source RTOS
 4.1.99
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
fake.h File Reference

Go to the source code of this file.

Functions

 DECLARE_FAKE_VALUE_FUNC (int, regulator_fake_enable, const struct device *)
 
 DECLARE_FAKE_VALUE_FUNC (int, regulator_fake_disable, const struct device *)
 
 DECLARE_FAKE_VALUE_FUNC (unsigned int, regulator_fake_count_voltages, const struct device *)
 
 DECLARE_FAKE_VALUE_FUNC (int, regulator_fake_list_voltage, const struct device *, unsigned int, int32_t *)
 
 DECLARE_FAKE_VALUE_FUNC (int, regulator_fake_set_voltage, const struct device *, int32_t, int32_t)
 
 DECLARE_FAKE_VALUE_FUNC (int, regulator_fake_get_voltage, const struct device *, int32_t *)
 
 DECLARE_FAKE_VALUE_FUNC (unsigned int, regulator_fake_count_current_limits, const struct device *)
 
 DECLARE_FAKE_VALUE_FUNC (int, regulator_fake_list_current_limit, const struct device *, unsigned int, int32_t *)
 
 DECLARE_FAKE_VALUE_FUNC (int, regulator_fake_set_current_limit, const struct device *, int32_t, int32_t)
 
 DECLARE_FAKE_VALUE_FUNC (int, regulator_fake_get_current_limit, const struct device *, int32_t *)
 
 DECLARE_FAKE_VALUE_FUNC (int, regulator_fake_set_mode, const struct device *, regulator_mode_t)
 
 DECLARE_FAKE_VALUE_FUNC (int, regulator_fake_get_mode, const struct device *, regulator_mode_t *)
 
 DECLARE_FAKE_VALUE_FUNC (int, regulator_fake_set_active_discharge, const struct device *, bool)
 
 DECLARE_FAKE_VALUE_FUNC (int, regulator_fake_get_active_discharge, const struct device *, bool *)
 
 DECLARE_FAKE_VALUE_FUNC (int, regulator_fake_get_error_flags, const struct device *, regulator_error_flags_t *)
 
 DECLARE_FAKE_VALUE_FUNC (int, regulator_parent_fake_dvs_state_set, const struct device *, regulator_dvs_state_t)
 
 DECLARE_FAKE_VALUE_FUNC (int, regulator_parent_fake_ship_mode, const struct device *)
 

Function Documentation

◆ DECLARE_FAKE_VALUE_FUNC() [1/17]

DECLARE_FAKE_VALUE_FUNC ( int ,
regulator_fake_disable ,
const struct device *  )

◆ DECLARE_FAKE_VALUE_FUNC() [2/17]

DECLARE_FAKE_VALUE_FUNC ( int ,
regulator_fake_enable ,
const struct device *  )

◆ DECLARE_FAKE_VALUE_FUNC() [3/17]

DECLARE_FAKE_VALUE_FUNC ( int ,
regulator_fake_get_active_discharge ,
const struct device * ,
bool *  )

◆ DECLARE_FAKE_VALUE_FUNC() [4/17]

DECLARE_FAKE_VALUE_FUNC ( int ,
regulator_fake_get_current_limit ,
const struct device * ,
int32_t *  )

◆ DECLARE_FAKE_VALUE_FUNC() [5/17]

DECLARE_FAKE_VALUE_FUNC ( int ,
regulator_fake_get_error_flags ,
const struct device * ,
regulator_error_flags_t *  )

◆ DECLARE_FAKE_VALUE_FUNC() [6/17]

DECLARE_FAKE_VALUE_FUNC ( int ,
regulator_fake_get_mode ,
const struct device * ,
regulator_mode_t *  )

◆ DECLARE_FAKE_VALUE_FUNC() [7/17]

DECLARE_FAKE_VALUE_FUNC ( int ,
regulator_fake_get_voltage ,
const struct device * ,
int32_t *  )

◆ DECLARE_FAKE_VALUE_FUNC() [8/17]

DECLARE_FAKE_VALUE_FUNC ( int ,
regulator_fake_list_current_limit ,
const struct device * ,
unsigned int ,
int32_t *  )

◆ DECLARE_FAKE_VALUE_FUNC() [9/17]

DECLARE_FAKE_VALUE_FUNC ( int ,
regulator_fake_list_voltage ,
const struct device * ,
unsigned int ,
int32_t *  )

◆ DECLARE_FAKE_VALUE_FUNC() [10/17]

DECLARE_FAKE_VALUE_FUNC ( int ,
regulator_fake_set_active_discharge ,
const struct device * ,
bool  )

◆ DECLARE_FAKE_VALUE_FUNC() [11/17]

DECLARE_FAKE_VALUE_FUNC ( int ,
regulator_fake_set_current_limit ,
const struct device * ,
int32_t ,
int32_t  )

◆ DECLARE_FAKE_VALUE_FUNC() [12/17]

DECLARE_FAKE_VALUE_FUNC ( int ,
regulator_fake_set_mode ,
const struct device * ,
regulator_mode_t  )

◆ DECLARE_FAKE_VALUE_FUNC() [13/17]

DECLARE_FAKE_VALUE_FUNC ( int ,
regulator_fake_set_voltage ,
const struct device * ,
int32_t ,
int32_t  )

◆ DECLARE_FAKE_VALUE_FUNC() [14/17]

DECLARE_FAKE_VALUE_FUNC ( int ,
regulator_parent_fake_dvs_state_set ,
const struct device * ,
regulator_dvs_state_t  )

◆ DECLARE_FAKE_VALUE_FUNC() [15/17]

DECLARE_FAKE_VALUE_FUNC ( int ,
regulator_parent_fake_ship_mode ,
const struct device *  )

◆ DECLARE_FAKE_VALUE_FUNC() [16/17]

DECLARE_FAKE_VALUE_FUNC ( unsigned int ,
regulator_fake_count_current_limits ,
const struct device *  )

◆ DECLARE_FAKE_VALUE_FUNC() [17/17]

DECLARE_FAKE_VALUE_FUNC ( unsigned int ,
regulator_fake_count_voltages ,
const struct device *  )