Zephyr API Documentation 4.2.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
stepper_fake.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2024 Fabian Blatz <fabianblatz@gmail.com>
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#ifndef ZEPHYR_INCLUDE_DRIVERS_STEPPER_STEPPER_FAKE_H_
8#define ZEPHYR_INCLUDE_DRIVERS_STEPPER_STEPPER_FAKE_H_
9
11#include <zephyr/fff.h>
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
18
20
22
24
27
30
32
34
36
38
40
42
44 stepper_event_callback_t, void *);
45
46#ifdef __cplusplus
47}
48#endif
49
50#endif /* ZEPHYR_INCLUDE_DRIVERS_STEPPER_STEPPER_FAKE_H_ */
#define DECLARE_FAKE_VALUE_FUNC(...)
Definition fff.h:8684
stepper_direction
Stepper Motor direction options.
Definition stepper.h:73
stepper_micro_step_resolution
Stepper Motor micro-step resolution options.
Definition stepper.h:36
__INT32_TYPE__ int32_t
Definition stdint.h:74
__UINT64_TYPE__ uint64_t
Definition stdint.h:91
Main header file for stepper driver API.
int fake_stepper_set_microstep_interval(const struct device *arg0, uint64_t arg1)
int fake_stepper_set_micro_step_res(const struct device *arg0, enum stepper_micro_step_resolution arg1)
int fake_stepper_disable(const struct device *arg0)
int fake_stepper_enable(const struct device *arg0)
int fake_stepper_set_event_callback(const struct device *arg0, stepper_event_callback_t arg1, void *arg2)
int fake_stepper_set_reference_position(const struct device *arg0, int32_t arg1)
int fake_stepper_stop(const struct device *arg0)
int fake_stepper_move_to(const struct device *arg0, int32_t arg1)
int fake_stepper_get_actual_position(const struct device *arg0, int32_t *arg1)
int fake_stepper_run(const struct device *arg0, enum stepper_direction arg1)
int fake_stepper_move_by(const struct device *arg0, int32_t arg1)
int fake_stepper_get_micro_step_res(const struct device *arg0, enum stepper_micro_step_resolution *arg1)
int fake_stepper_is_moving(const struct device *arg0, bool *arg1)
Runtime device structure (in ROM) per driver instance.
Definition device.h:510