Zephyr Project API 4.2.99
A Scalable Open Source RTOS
|
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. | |
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).
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.
enum drv2605_library drv2605_rom_data::library |
Effect library to use for playback.
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.
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:
See Table 8 of the DRV2605 datasheet.
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.
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.
enum drv2605_mode drv2605_rom_data::trigger |
Mode of operation for triggering the ROM effects.