|
Zephyr Project API 4.3.0
A Scalable Open Source RTOS
|
Interfaces for haptic devices. More...
Topics | |
| Device-specific Haptics API extensions | |
Files | |
| file | haptics.h |
| Main header file for haptics driver API. | |
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. | |
Interfaces for haptic devices.
| typedef int(* haptics_start_output_t) (const struct device *dev) |
#include </__w/bridle/bridle/workspace/zephyr/include/zephyr/drivers/haptics.h>
Set the haptic device to start output for a playback event.
| typedef int(* haptics_stop_output_t) (const struct device *dev) |
#include </__w/bridle/bridle/workspace/zephyr/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 </__w/bridle/bridle/workspace/zephyr/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 </__w/bridle/bridle/workspace/zephyr/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 |