|
Zephyr Project API 4.0.0
A Scalable Open Source RTOS
|
Haptics Interface. More...
Data Structures | |
| struct | haptics_driver_api |
| Haptic device API. More... | |
Typedefs | |
| typedef int(* | haptics_stop_output_t) (const struct device *dev) |
| Set the haptic device to stop output. | |
| typedef int(* | haptics_start_output_t) (const struct device *dev) |
| Set the haptic device to start output for a playback event. | |
Functions | |
| int | haptics_start_output (const struct device *dev) |
| Set the haptic device to start output for a playback event. | |
| int | haptics_stop_output (const struct device *dev) |
| Set the haptic device to stop output for a playback event. | |
Haptics Interface.
| haptics_start_output_t |
#include <include/zephyr/drivers/haptics.h>
Set the haptic device to start output for a playback event.
| haptics_stop_output_t |
#include <include/zephyr/drivers/haptics.h>
Set the haptic device to stop output.
| dev | Pointer to the device structure for haptic device instance |
| int haptics_start_output | ( | const struct device * | dev | ) |
#include <include/zephyr/drivers/haptics.h>
Set the haptic device to start output for a playback event.
| dev | Pointer to the device structure for haptic device instance |
| 0 | if successful |
| <0 | if failed |
| int haptics_stop_output | ( | const struct device * | dev | ) |
#include <include/zephyr/drivers/haptics.h>
Set the haptic device to stop output for a playback event.
| dev | Pointer to the device structure for haptic device instance |
| 0 | if successful |
| <0 | if failed |