Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
drv2605.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2024 Cirrus Logic, Inc.
3 * SPDX-License-Identifier: Apache-2.0
4 */
5
6#ifndef ZEPHYR_INCLUDE_DRIVERS_HAPTICS_DRV2605_H_
7#define ZEPHYR_INCLUDE_DRIVERS_HAPTICS_DRV2605_H_
8
10#include <zephyr/types.h>
11
12#define DRV2605_WAVEFORM_SEQUENCER_MAX 8
13
23
34
50
60
66
71
83int drv2605_haptic_config(const struct device *dev, enum drv2605_haptics_source source,
84 const union drv2605_config_data *config_data);
85
86#endif
drv2605_mode
Definition drv2605.h:24
@ DRV2605_MODE_DIAGNOSTICS
Definition drv2605.h:31
@ DRV2605_MODE_PWM_ANALOG_INPUT
Definition drv2605.h:28
@ DRV2605_MODE_EXTERNAL_LEVEL_TRIGGER
Definition drv2605.h:27
@ DRV2605_MODE_INTERNAL_TRIGGER
Definition drv2605.h:25
@ DRV2605_MODE_AUTO_CAL
Definition drv2605.h:32
@ DRV2605_MODE_EXTERNAL_EDGE_TRIGGER
Definition drv2605.h:26
@ DRV2605_MODE_RTP
Definition drv2605.h:30
@ DRV2605_MODE_AUDIO_TO_VIBE
Definition drv2605.h:29
#define DRV2605_WAVEFORM_SEQUENCER_MAX
Definition drv2605.h:12
drv2605_library
Definition drv2605.h:14
@ DRV2605_LIBRARY_TS2200_B
Definition drv2605.h:17
@ DRV2605_LIBRARY_TS2200_A
Definition drv2605.h:16
@ DRV2605_LIBRARY_LRA
Definition drv2605.h:21
@ DRV2605_LIBRARY_TS2200_C
Definition drv2605.h:18
@ DRV2605_LIBRARY_TS2200_D
Definition drv2605.h:19
@ DRV2605_LIBRARY_TS2200_E
Definition drv2605.h:20
@ DRV2605_LIBRARY_EMPTY
Definition drv2605.h:15
drv2605_haptics_source
DRV2605 haptic driver signal sources.
Definition drv2605.h:38
@ DRV2605_HAPTICS_SOURCE_ROM
The playback source is device ROM.
Definition drv2605.h:40
@ DRV2605_HAPTICS_SOURCE_AUDIO
The playback source is audio.
Definition drv2605.h:44
@ DRV2605_HAPTICS_SOURCE_RTP
The playback source is the RTP buffer.
Definition drv2605.h:42
@ DRV2605_HAPTICS_SOURCE_ANALOG
The playback source is an analog signal.
Definition drv2605.h:48
@ DRV2605_HAPTICS_SOURCE_PWM
The playback source is a PWM signal.
Definition drv2605.h:46
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.
__UINT32_TYPE__ uint32_t
Definition stdint.h:90
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
Runtime device structure (in ROM) per driver instance.
Definition device.h:411
Definition drv2605.h:51
uint8_t seq_regs[8]
Definition drv2605.h:54
uint8_t overdrive_time
Definition drv2605.h:55
enum drv2605_mode trigger
Definition drv2605.h:52
uint8_t sustain_neg_time
Definition drv2605.h:57
uint8_t brake_time
Definition drv2605.h:58
enum drv2605_library library
Definition drv2605.h:53
uint8_t sustain_pos_time
Definition drv2605.h:56
Definition drv2605.h:61
uint8_t * rtp_input
Definition drv2605.h:64
uint32_t * rtp_hold_us
Definition drv2605.h:63
size_t size
Definition drv2605.h:62
Definition drv2605.h:67
struct drv2605_rom_data * rom_data
Definition drv2605.h:68
struct drv2605_rtp_data * rtp_data
Definition drv2605.h:69