Zephyr API Documentation 4.0.0-rc2
A Scalable Open Source RTOS
|
Go to the source code of this file.
Data Structures | |
struct | drv2605_rom_data |
struct | drv2605_rtp_data |
union | drv2605_config_data |
Macros | |
#define | DRV2605_WAVEFORM_SEQUENCER_MAX 8 |
Enumerations | |
enum | drv2605_library { DRV2605_LIBRARY_EMPTY = 0 , DRV2605_LIBRARY_TS2200_A , DRV2605_LIBRARY_TS2200_B , DRV2605_LIBRARY_TS2200_C , DRV2605_LIBRARY_TS2200_D , DRV2605_LIBRARY_TS2200_E , DRV2605_LIBRARY_LRA } |
enum | drv2605_mode { DRV2605_MODE_INTERNAL_TRIGGER = 0 , DRV2605_MODE_EXTERNAL_EDGE_TRIGGER , DRV2605_MODE_EXTERNAL_LEVEL_TRIGGER , DRV2605_MODE_PWM_ANALOG_INPUT , DRV2605_MODE_AUDIO_TO_VIBE , DRV2605_MODE_RTP , DRV2605_MODE_DIAGNOSTICS , DRV2605_MODE_AUTO_CAL } |
enum | drv2605_haptics_source { DRV2605_HAPTICS_SOURCE_ROM , DRV2605_HAPTICS_SOURCE_RTP , DRV2605_HAPTICS_SOURCE_AUDIO , DRV2605_HAPTICS_SOURCE_PWM , DRV2605_HAPTICS_SOURCE_ANALOG } |
DRV2605 haptic driver signal sources. More... | |
Functions | |
int | drv2605_haptic_config (const struct device *dev, enum drv2605_haptics_source source, const union drv2605_config_data *config_data) |
Configure the DRV2605 device for a particular signal source. | |
#define DRV2605_WAVEFORM_SEQUENCER_MAX 8 |
DRV2605 haptic driver signal sources.
enum drv2605_library |
enum drv2605_mode |
int drv2605_haptic_config | ( | const struct device * | dev, |
enum drv2605_haptics_source | source, | ||
const union drv2605_config_data * | config_data ) |
Configure the DRV2605 device for a particular signal source.
dev | Pointer to the device structure for haptic device instance |
source | The type of haptic signal source desired |
config_data | Pointer to the configuration data union for the source |
0 | if successful |
-ENOTSUP | if the signal source is not supported |
<0 | if failed |