pub struct GoReg(pub u8);
This bit is used to fire processes in the DRV2605 device. The process
fired by the GO bit is selected by the MODE[2:0] bit (register 0x01). The
primary function of this bit is to fire playback of the waveform identifiers in
the waveform sequencer (registers 0x04 to 0x0B), in which case, this bit
can be thought of a software trigger for haptic waveforms. The GO bit
remains high until the playback of the haptic waveform sequence is
complete. Clearing the GO bit during waveform playback cancels the
waveform sequence. Using one of the external trigger modes can cause
the GO bit to be set or cleared by the external trigger pin. This bit can also
be used to fire the auto-calibration process or the diagnostic process.
pub fn set_go(&mut self, value: bool) | |
This bit is used to fire processes in the DRV2605 device. The process
fired by the GO bit is selected by the MODE[2:0] bit (register 0x01). The
primary function of this bit is to fire playback of the waveform identifiers in
the waveform sequencer (registers 0x04 to 0x0B), in which case, this bit
can be thought of a software trigger for haptic waveforms. The GO bit
remains high until the playback of the haptic waveform sequence is
complete. Clearing the GO bit during waveform playback cancels the
waveform sequence. Using one of the external trigger modes can cause
the GO bit to be set or cleared by the external trigger pin. This bit can also
be used to fire the auto-calibration process or the diagnostic process.
fn bit_range(&self, msb: usize, lsb: usize) -> T | |
Formats the value using the given formatter. Read more