|
Zephyr API Documentation 4.3.99
A Scalable Open Source RTOS
|
Driver Operations Haptics driver operations More...
#include <zephyr/drivers/haptics.h>
Data Fields | |
| haptics_start_output_t | start_output |
| REQ Set the haptic device to start output for a playback event. | |
| haptics_stop_output_t | stop_output |
| REQ Set the haptic device to stop output for a playback event. | |
| haptics_register_error_callback_t | register_error_callback |
| OPT Register a callback function for haptics errors. | |
Driver Operations Haptics driver operations
This is the driver API structure any Haptics 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.
| haptics_register_error_callback_t haptics_driver_api::register_error_callback |
OPT Register a callback function for haptics errors.
| haptics_start_output_t haptics_driver_api::start_output |
REQ Set the haptic device to start output for a playback event.
| haptics_stop_output_t haptics_driver_api::stop_output |
REQ Set the haptic device to stop output for a playback event.