Struct qei::QeiManager[][src]

pub struct QeiManager<T> { /* fields omitted */ }

Extend a Qei peripherals by tracking overflows and underflows.

Methods

impl<T, K> QeiManager<T> where
    T: Qei<Count = K>,
    K: Into<u16>, 
[src]

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

Trait Implementations

impl<T: Debug> Debug for QeiManager<T>
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<T> Send for QeiManager<T> where
    T: Send

impl<T> Sync for QeiManager<T> where
    T: Sync