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
stepper_fake.h File Reference
#include <zephyr/drivers/stepper.h>
#include <zephyr/fff.h>

Go to the source code of this file.

Functions

 DECLARE_FAKE_VALUE_FUNC (int, fake_stepper_enable, const struct device *, bool)
 
 DECLARE_FAKE_VALUE_FUNC (int, fake_stepper_move_by, const struct device *, int32_t)
 
 DECLARE_FAKE_VALUE_FUNC (int, fake_stepper_set_microstep_interval, const struct device *, uint64_t)
 
 DECLARE_FAKE_VALUE_FUNC (int, fake_stepper_set_micro_step_res, const struct device *, enum stepper_micro_step_resolution)
 
 DECLARE_FAKE_VALUE_FUNC (int, fake_stepper_get_micro_step_res, const struct device *, enum stepper_micro_step_resolution *)
 
 DECLARE_FAKE_VALUE_FUNC (int, fake_stepper_set_reference_position, const struct device *, int32_t)
 
 DECLARE_FAKE_VALUE_FUNC (int, fake_stepper_get_actual_position, const struct device *, int32_t *)
 
 DECLARE_FAKE_VALUE_FUNC (int, fake_stepper_move_to, const struct device *, int32_t)
 
 DECLARE_FAKE_VALUE_FUNC (int, fake_stepper_is_moving, const struct device *, bool *)
 
 DECLARE_FAKE_VALUE_FUNC (int, fake_stepper_run, const struct device *, enum stepper_direction)
 
 DECLARE_FAKE_VALUE_FUNC (int, fake_stepper_stop, const struct device *)
 
 DECLARE_FAKE_VALUE_FUNC (int, fake_stepper_set_event_callback, const struct device *, stepper_event_callback_t, void *)
 

Function Documentation

◆ DECLARE_FAKE_VALUE_FUNC() [1/12]

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

◆ DECLARE_FAKE_VALUE_FUNC() [2/12]

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

◆ DECLARE_FAKE_VALUE_FUNC() [3/12]

DECLARE_FAKE_VALUE_FUNC ( int ,
fake_stepper_get_micro_step_res ,
const struct device * ,
enum stepper_micro_step_resolution *  )

◆ DECLARE_FAKE_VALUE_FUNC() [4/12]

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

◆ DECLARE_FAKE_VALUE_FUNC() [5/12]

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

◆ DECLARE_FAKE_VALUE_FUNC() [6/12]

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

◆ DECLARE_FAKE_VALUE_FUNC() [7/12]

DECLARE_FAKE_VALUE_FUNC ( int ,
fake_stepper_run ,
const struct device * ,
enum stepper_direction )

◆ DECLARE_FAKE_VALUE_FUNC() [8/12]

DECLARE_FAKE_VALUE_FUNC ( int ,
fake_stepper_set_event_callback ,
const struct device * ,
stepper_event_callback_t ,
void *  )

◆ DECLARE_FAKE_VALUE_FUNC() [9/12]

DECLARE_FAKE_VALUE_FUNC ( int ,
fake_stepper_set_micro_step_res ,
const struct device * ,
enum stepper_micro_step_resolution )

◆ DECLARE_FAKE_VALUE_FUNC() [10/12]

DECLARE_FAKE_VALUE_FUNC ( int ,
fake_stepper_set_microstep_interval ,
const struct device * ,
uint64_t  )

◆ DECLARE_FAKE_VALUE_FUNC() [11/12]

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

◆ DECLARE_FAKE_VALUE_FUNC() [12/12]

DECLARE_FAKE_VALUE_FUNC ( int ,
fake_stepper_stop ,
const struct device *  )