pub struct RotaryEncoder<DT, CLK> { /* private fields */ }
Expand description

Rotary Encoder

Implementations

Initiates a new Rotary Encoder, taking two InputPins InputPin.

Set the sensitivity of the rotary encoder

Borrow a mutable reference to the underlying InputPins. This is useful for clearing hardware interrupts.

Release the underying resources such as the InputPins back to the initiator

Update the state machine of the RotaryEncoder. This should be called ideally from an interrupt vector when either the DT or CLK pins state changes. This function will update the RotaryEncoder’s Direction

Returns the current Direction of the RotaryEncoder

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.