Interfaces for haptic devices.
More...
|
| file | haptics.h |
| | Main header file for haptics driver API.
|
Interfaces for haptic devices.
◆ haptics_start_output_t
| typedef int(* haptics_start_output_t) (const struct device *dev) |
◆ haptics_stop_output_t
| typedef int(* haptics_stop_output_t) (const struct device *dev) |
#include <zephyr/drivers/haptics.h>
Set the haptic device to stop output.
- Parameters
-
| dev | Pointer to the device structure for haptic device instance |
◆ haptics_start_output()
| int haptics_start_output |
( |
const struct device * | dev | ) |
|
#include <zephyr/drivers/haptics.h>
Set the haptic device to start output for a playback event.
- Parameters
-
| dev | Pointer to the device structure for haptic device instance |
- Return values
-
| 0 | if successful |
| <0 | if failed |
◆ haptics_stop_output()
| int haptics_stop_output |
( |
const struct device * | dev | ) |
|
#include <zephyr/drivers/haptics.h>
Set the haptic device to stop output for a playback event.
- Parameters
-
| dev | Pointer to the device structure for haptic device instance |
- Return values
-
| 0 | if successful |
| <0 | if failed |