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

ROM data configuration. More...

#include <drv2605.h>

Data Fields

enum drv2605_mode trigger
 Mode of operation for triggering the ROM effects.
 
enum drv2605_library library
 Effect library to use for playback.
 
uint8_t seq_regs [8]
 Waveform sequencer contents.
 
uint8_t overdrive_time
 Overdrive time offset.
 
uint8_t sustain_pos_time
 Sustain positive time offset.
 
uint8_t sustain_neg_time
 Sustain negative time offset.
 
uint8_t brake_time
 Brake time offset.
 

Detailed Description

ROM data configuration.

This structure contains configuration data for when the DRV2605 is using the internal ROM as the haptic source (DRV2605_HAPTICS_SOURCE_ROM).

Field Documentation

◆ brake_time

uint8_t drv2605_rom_data::brake_time

Brake time offset.

A signed 8-bit value that adds a time offset to the braking portion of the waveform. The offset is brake_time * 5 ms.

See Table 13 of the DRV2605 datasheet.

◆ library

enum drv2605_library drv2605_rom_data::library

Effect library to use for playback.

◆ overdrive_time

uint8_t drv2605_rom_data::overdrive_time

Overdrive time offset.

A signed 8-bit value that adds a time offset to the overdrive portion of the waveform. The offset is overdrive_time * 5 ms.

See Table 10 of the DRV2605 datasheet.

◆ seq_regs

uint8_t drv2605_rom_data::seq_regs[8]

Waveform sequencer contents.

This array contains the register values for the sequencer registers (0x04 to 0x0B). Each byte can describe either:

  • A waveform identifier (1 to 123) from the selected library to be played.
  • A wait time, if the MSB is set. The lower 7 bits are a multiple of 10 ms. Playback stops at the first zero entry.

See Table 8 of the DRV2605 datasheet.

◆ sustain_neg_time

uint8_t drv2605_rom_data::sustain_neg_time

Sustain negative time offset.

A signed 8-bit value that adds a time offset to the negative sustain portion of the waveform. The offset is sustain_neg_time * 5 ms.

See Table 12 of the DRV2605 datasheet.

◆ sustain_pos_time

uint8_t drv2605_rom_data::sustain_pos_time

Sustain positive time offset.

A signed 8-bit value that adds a time offset to the positive sustain portion of the waveform. The offset is sustain_pos_time * 5 ms.

See Table 11 of the DRV2605 datasheet.

◆ trigger

enum drv2605_mode drv2605_rom_data::trigger

Mode of operation for triggering the ROM effects.


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