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§
- 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).
- 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.
- A robust quadrature decoder with support for multiple step-modes, based on which channel (A vs. B) is leading the other.
- A robust indexed quadrature decoder with support for multiple step-modes, based on which channel (A vs. B) is leading the other.
- 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§
- The change detected by a quadrature decoder.
- An error indicating an invalid quadrature signal sequence.
Traits§
- A quadrature-based decoder’s step mode.