Enum drv2605::Mode[][src]

pub enum Mode {
    InternalTrigger,
    ExternalTriggerRisingEdge,
    ExternalTriggerLevelMode,
    PwmInputAndAnalogInput,
    AudioToVibe,
    RealTimePlayback,
    Diagnostics,
    AutoCalibration,
}

Variants

Waveforms are fired by setting the GO bit in register 0x0C.

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.

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.

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.

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.

The device actively drives the actuator with the contents of the RTP_INPUT[7:0] bit in register 0x02.

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.

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]

Formats the value using the given formatter. Read more

impl Clone for Mode
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Mode
[src]

impl From<u8> for Mode
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for Mode

impl Sync for Mode