Zephyr Project API 4.2.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches

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_trtp_hold_us
 Pointer to an array of hold times.
 
uint8_trtp_input
 Pointer to an array of RTP amplitude values.
 

Detailed Description

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.

Field Documentation

◆ rtp_hold_us

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.

◆ rtp_input

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

size_t drv2605_rtp_data::size

The number of entries in the rtp_hold_us and rtp_input arrays.


The documentation for this struct was generated from the following file: