Crate quadrature_decoder

Source
Expand description

An efficient no_std-compatible implementation of a quadrature decoder, based on a finite-state-transducer with support for different step-modes.

Structs§

FullStep
A step mode that is able to detect a “change” (e.g. movement) for every stable full cycle (i.e. 1 change per quadrature cycle).
HalfStep
A step mode that is able to detect a “change” (e.g. movement) (e.g. movement) for every stable half cycle (i.e. 2 changes per quadrature cycle), resulting in an effective 2× resolution multiplication.
IncrementalDecoder
A robust quadrature decoder with support for multiple step-modes, based on which channel (A vs. B) is leading the other.
IndexedIncrementalDecoder
A robust indexed quadrature decoder with support for multiple step-modes, based on which channel (A vs. B) is leading the other.
QuadStep
A step mode that is able to detect a “change” (e.g. movement) for every stable quarter cycle (i.e. 4 change per quadrature cycle), resulting in an effective 4× resolution multiplication.

Enums§

Change
The change detected by a quadrature decoder.
Error
An error indicating an invalid quadrature signal sequence.

Traits§

StepMode
A quadrature-based decoder’s step mode.