Zephyr API Documentation 4.3.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
stepper_fake.h File Reference

Go to the source code of this file.

Functions

 DECLARE_FAKE_VALUE_FUNC (int, fake_stepper_driver_enable, const struct device *)
 DECLARE_FAKE_VALUE_FUNC (int, fake_stepper_driver_disable, const struct device *)
 DECLARE_FAKE_VALUE_FUNC (int, fake_stepper_driver_set_micro_step_res, const struct device *, enum stepper_micro_step_resolution)
 DECLARE_FAKE_VALUE_FUNC (int, fake_stepper_driver_get_micro_step_res, const struct device *, enum stepper_micro_step_resolution *)
 DECLARE_FAKE_VALUE_FUNC (int, fake_stepper_driver_set_event_cb, const struct device *, stepper_event_cb_t, void *)
 DECLARE_FAKE_VALUE_FUNC (int, fake_stepper_ctrl_move_by, const struct device *, int32_t)
 DECLARE_FAKE_VALUE_FUNC (int, fake_stepper_ctrl_set_microstep_interval, const struct device *, uint64_t)
 DECLARE_FAKE_VALUE_FUNC (int, fake_stepper_ctrl_set_reference_position, const struct device *, int32_t)
 DECLARE_FAKE_VALUE_FUNC (int, fake_stepper_ctrl_get_actual_position, const struct device *, int32_t *)
 DECLARE_FAKE_VALUE_FUNC (int, fake_stepper_ctrl_move_to, const struct device *, int32_t)
 DECLARE_FAKE_VALUE_FUNC (int, fake_stepper_ctrl_is_moving, const struct device *, bool *)
 DECLARE_FAKE_VALUE_FUNC (int, fake_stepper_ctrl_run, const struct device *, enum stepper_ctrl_direction)
 DECLARE_FAKE_VALUE_FUNC (int, fake_stepper_ctrl_stop, const struct device *)
 DECLARE_FAKE_VALUE_FUNC (int, fake_stepper_ctrl_set_event_cb, const struct device *, stepper_ctrl_event_callback_t, void *)

Function Documentation

◆ DECLARE_FAKE_VALUE_FUNC() [1/14]

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

◆ DECLARE_FAKE_VALUE_FUNC() [2/14]

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

◆ DECLARE_FAKE_VALUE_FUNC() [3/14]

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

◆ DECLARE_FAKE_VALUE_FUNC() [4/14]

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

◆ DECLARE_FAKE_VALUE_FUNC() [5/14]

DECLARE_FAKE_VALUE_FUNC ( int ,
fake_stepper_ctrl_run ,
const struct device * ,
enum stepper_ctrl_direction )

◆ DECLARE_FAKE_VALUE_FUNC() [6/14]

DECLARE_FAKE_VALUE_FUNC ( int ,
fake_stepper_ctrl_set_event_cb ,
const struct device * ,
stepper_ctrl_event_callback_t ,
void *  )

◆ DECLARE_FAKE_VALUE_FUNC() [7/14]

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

◆ DECLARE_FAKE_VALUE_FUNC() [8/14]

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

◆ DECLARE_FAKE_VALUE_FUNC() [9/14]

DECLARE_FAKE_VALUE_FUNC ( int ,
fake_stepper_ctrl_stop ,
const struct device *  )

◆ DECLARE_FAKE_VALUE_FUNC() [10/14]

DECLARE_FAKE_VALUE_FUNC ( int ,
fake_stepper_driver_disable ,
const struct device *  )

◆ DECLARE_FAKE_VALUE_FUNC() [11/14]

DECLARE_FAKE_VALUE_FUNC ( int ,
fake_stepper_driver_enable ,
const struct device *  )

◆ DECLARE_FAKE_VALUE_FUNC() [12/14]

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

◆ DECLARE_FAKE_VALUE_FUNC() [13/14]

DECLARE_FAKE_VALUE_FUNC ( int ,
fake_stepper_driver_set_event_cb ,
const struct device * ,
stepper_event_cb_t ,
void *  )

◆ DECLARE_FAKE_VALUE_FUNC() [14/14]

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