Zephyr API Documentation 4.1.0-rc2
A Scalable Open Source RTOS
|
|
4.1.0-rc2 |
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 .
typedef int(* haptics_start_output_t) (const struct device *dev) |
#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 <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 <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 <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 |