Enum drv2605::Mode [−][src]
pub enum Mode { InternalTrigger, ExternalTriggerRisingEdge, ExternalTriggerLevelMode, PwmInputAndAnalogInput, AudioToVibe, RealTimePlayback, Diagnostics, AutoCalibration, }
Variants
InternalTrigger
Waveforms are fired by setting the GO bit in register 0x0C.
ExternalTriggerRisingEdge
A rising edge on the IN/TRIG pin sets the GO Bit. A second rising edge on the IN/TRIG pin cancels the waveform if the second rising edge occurs before the GO bit has cleared.
ExternalTriggerLevelMode
The GO bit follows the state of the external trigger. A rising edge on the IN/TRIG pin sets the GO bit, and a falling edge sends a cancel. If the GO bit is already in the appropriate state, no change occurs.
PwmInputAndAnalogInput
A PWM or analog signal is accepted at the IN/TRIG pin and used as the driving source. The device actively drives the actuator while in this mode. The PWM or analog input selection occurs by using the N_PWM_ANALOG bit.
AudioToVibe
An AC-coupled audio signal is accepted at the IN/TRIG pin. The device converts the audio signal into meaningful haptic vibration. The AC_COUPLE and N_PWM_ANALOG bits should also be set.
RealTimePlayback
The device actively drives the actuator with the contents of the RTP_INPUT[7:0] bit in register 0x02.
Diagnostics
Set the device in this mode to perform a diagnostic test on the actuator. The user must set the GO bit to start the test. The test is complete when the GO bit self-clears. Results are stored in the DIAG_RESULT bit in register 0x00.
AutoCalibration
Set the device in this mode to auto calibrate the device for the actuator. Before starting the calibration, the user must set the all required input parameters. The user must set the GO bit to start the calibration. Calibration is complete when the GO bit self-clears.
Trait Implementations
impl Debug for Mode
[src]
impl Debug for Mode
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Mode
[src]
impl Clone for Mode
fn clone(&self) -> Mode
[src]
fn clone(&self) -> Mode
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Copy for Mode
[src]
impl Copy for Mode
impl From<u8> for Mode
[src]
impl From<u8> for Mode