Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
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_max_velocity, const struct device *, uint32_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, uint32_t)
 
 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/11]

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

◆ DECLARE_FAKE_VALUE_FUNC() [2/11]

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

◆ DECLARE_FAKE_VALUE_FUNC() [3/11]

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

◆ DECLARE_FAKE_VALUE_FUNC() [4/11]

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

◆ DECLARE_FAKE_VALUE_FUNC() [5/11]

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

◆ DECLARE_FAKE_VALUE_FUNC() [6/11]

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

◆ DECLARE_FAKE_VALUE_FUNC() [7/11]

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

◆ DECLARE_FAKE_VALUE_FUNC() [8/11]

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

◆ DECLARE_FAKE_VALUE_FUNC() [9/11]

DECLARE_FAKE_VALUE_FUNC ( int ,
fake_stepper_set_max_velocity ,
const struct device * ,
uint32_t  )

◆ DECLARE_FAKE_VALUE_FUNC() [10/11]

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

◆ DECLARE_FAKE_VALUE_FUNC() [11/11]

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