Zephyr Project API 4.2.99
A Scalable Open Source RTOS
|
Real-Time Playback (RTP) data configuration. More...
#include <drv2605.h>
Data Fields | |
size_t | size |
The number of entries in the rtp_hold_us and rtp_input arrays. | |
uint32_t * | rtp_hold_us |
Pointer to an array of hold times. | |
uint8_t * | rtp_input |
Pointer to an array of RTP amplitude values. | |
Real-Time Playback (RTP) data configuration.
This structure contains configuration data for when the DRV2605 is in RTP mode (DRV2605_HAPTICS_SOURCE_RTP). It allows for streaming custom haptic waveforms.
uint32_t* drv2605_rtp_data::rtp_hold_us |
Pointer to an array of hold times.
Each value specifies the duration in microseconds to hold the corresponding amplitude from the rtp_input
array.
uint8_t* drv2605_rtp_data::rtp_input |
Pointer to an array of RTP amplitude values.
Each value is an 8-bit amplitude that will be written to the RTP input register (0x02). These values can be signed or unsigned depending on device configuration.
size_t drv2605_rtp_data::size |
The number of entries in the rtp_hold_us and rtp_input arrays.