|
Zephyr API Documentation 4.4.0-rc1
A Scalable Open Source RTOS
|
Driver Operations Stepper Hardware Driver driver operations More...
#include <zephyr/drivers/stepper/stepper.h>
Data Fields | |
| stepper_enable_t | enable |
| REQ Enable stepper hardware driver. | |
| stepper_disable_t | disable |
| REQ Disable stepper hardware driver. | |
| stepper_set_micro_step_res_t | set_micro_step_res |
| REQ Set the micro-step resolution in stepper hardware driver. | |
| stepper_get_micro_step_res_t | get_micro_step_res |
| REQ Get the micro-step resolution in stepper hardware driver. | |
| stepper_set_event_cb_t | set_event_cb |
| OPT Set the callback function to be called when a stepper_event occurs. | |
Driver Operations Stepper Hardware Driver driver operations
This is the driver API structure any Stepper Hardware Driver driver needs to define. It contains function pointers to the operations the driver implements, as well as any other driver-specific constant data.
Members marked with REQ MUST be set by the driver, whereas those marked with OPT are optional.
| stepper_disable_t stepper_driver_api::disable |
REQ Disable stepper hardware driver.
| stepper_enable_t stepper_driver_api::enable |
REQ Enable stepper hardware driver.
| stepper_get_micro_step_res_t stepper_driver_api::get_micro_step_res |
REQ Get the micro-step resolution in stepper hardware driver.
| stepper_set_event_cb_t stepper_driver_api::set_event_cb |
OPT Set the callback function to be called when a stepper_event occurs.
| stepper_set_micro_step_res_t stepper_driver_api::set_micro_step_res |
REQ Set the micro-step resolution in stepper hardware driver.