pub struct Encoder<T, PINS> { /* private fields */ }

Implementations

Get the ARR (Auto Reload Register) value.

Set ARR (Auto Reload Register) value.

ARR may only be set when timer is enabled.

Listen for over/underflow interrupts

Listen for over/underflow interrupts, as well as IO triggers.

Get the current encoder status.

Note that calling clear_irq before this method will clear the did_overflow flag.

Clear all interrupts

Get the ARR (Auto Reload Register) value.

Set ARR (Auto Reload Register) value.

ARR may only be set when timer is enabled.

Listen for over/underflow interrupts

Listen for over/underflow interrupts, as well as IO triggers.

Get the current encoder status.

Note that calling clear_irq before this method will clear the did_overflow flag.

Clear all interrupts

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.