Struct nrf52832_hal::qdec::Qdec[][src]

pub struct Qdec { /* fields omitted */ }
Expand description

A safe wrapper around the QDEC peripheral with associated pins.

Implementations

Takes ownership of the QDEC peripheral and associated pins, returning a safe wrapper.

Enables/disables input debounce filters.

LED output pin polarity.

Time period the LED is switched ON prior to sampling (0..511 us).

Marks the interrupt trigger event as handled.

Triggers the QDEC interrupt on the specified number of non-zero samples.

Disables the QDEC interrupt triggering.

Enables the quadrature decoder.

Disables the quadrature decoder.

Returns the accumulated change since last read (-1024..1023).

Consumes self and returns back the raw QDEC peripheral.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Casts the value.

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Casts the value.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Casts the value.

Should always be Self

Casts the value.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Casts the value.

Casts the value.