7#ifndef ZEPHYR_INCLUDE_DRIVERS_HAPTICS_H_
8#define ZEPHYR_INCLUDE_DRIVERS_HAPTICS_H_
54static inline int z_impl_haptics_start_output(
const struct device *dev)
58 return api->start_output(dev);
71static inline int z_impl_haptics_stop_output(
const struct device *dev)
75 return api->stop_output(dev);
86#include <syscalls/haptics.h>
int haptics_stop_output(const struct device *dev)
Set the haptic device to stop output for a playback event.
int haptics_start_output(const struct device *dev)
Set the haptic device to start output for a playback event.
int(* haptics_start_output_t)(const struct device *dev)
Set the haptic device to start output for a playback event.
Definition haptics.h:34
int(* haptics_stop_output_t)(const struct device *dev)
Set the haptic device to stop output.
Definition haptics.h:28
Runtime device structure (in ROM) per driver instance.
Definition device.h:411
const void * api
Address of the API structure exposed by the device instance.
Definition device.h:417
Haptic device API.
Definition haptics.h:39
haptics_start_output_t start_output
Definition haptics.h:40
haptics_stop_output_t stop_output
Definition haptics.h:41