Struct qei::QeiManager

source ·
pub struct QeiManager<T> { /* private fields */ }
Expand description

Extend a Qei peripherals by tracking overflows and underflows.

Implementations§

Create a new Qei from an existing one. The implemntation assume that the counter can’t change for more than (2^16-1)/2, because otherwise we can’t detect overflows/underflows

Take a new sample from the Qei and update the internal counter.

Take a new sample from the Qei and update the internal counter, unwrapping all errors.

Returns the internal counter value

Resets the internal counter

Trait Implementations§

Formats the value using the given formatter. Read more

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.