Zephyr API Documentation 4.0.0
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 *, const bool)
 
 DECLARE_FAKE_VALUE_FUNC (int, fake_stepper_move, const struct device *, const int32_t)
 
 DECLARE_FAKE_VALUE_FUNC (int, fake_stepper_set_max_velocity, const struct device *, const uint32_t)
 
 DECLARE_FAKE_VALUE_FUNC (int, fake_stepper_set_micro_step_res, const struct device *, const 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_actual_position, const struct device *, const int32_t)
 
 DECLARE_FAKE_VALUE_FUNC (int, fake_stepper_get_actual_position, const struct device *, int32_t *)
 
 DECLARE_FAKE_VALUE_FUNC (int, fake_stepper_set_target_position, const struct device *, const int32_t)
 
 DECLARE_FAKE_VALUE_FUNC (int, fake_stepper_is_moving, const struct device *, bool *)
 
 DECLARE_FAKE_VALUE_FUNC (int, fake_stepper_enable_constant_velocity_mode, const struct device *, const enum stepper_direction, const 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 * ,
const bool  )

◆ DECLARE_FAKE_VALUE_FUNC() [2/11]

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

◆ DECLARE_FAKE_VALUE_FUNC() [3/11]

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

◆ DECLARE_FAKE_VALUE_FUNC() [4/11]

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

◆ DECLARE_FAKE_VALUE_FUNC() [5/11]

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

◆ DECLARE_FAKE_VALUE_FUNC() [6/11]

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

◆ DECLARE_FAKE_VALUE_FUNC() [7/11]

DECLARE_FAKE_VALUE_FUNC ( int ,
fake_stepper_set_actual_position ,
const struct device * ,
const int32_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 * ,
const uint32_t  )

◆ DECLARE_FAKE_VALUE_FUNC() [10/11]

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

◆ DECLARE_FAKE_VALUE_FUNC() [11/11]

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