Crate quadrature_encoder
source ·Expand description
An efficient no_std
-compatible implementation of a quadrature encoder driver,
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 incremental encoder with support for multiple step-modes.
- A robust incremental encoder with support for multiple step-modes.
- The mode of a linear quadrature encoder.
- 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.
- The mode of a rotary quadrature encoder.
Enums§
- An error indicating quadrature or input pin issues.
- An error indicating an input pin issue.
- The movement detected by a linear quadrature encoder.
- An error indicating an invalid quadrature signal sequence.
- The movement detected by a rotary quadrature encoder.
Traits§
- The mode of physical operation of a quadrature encoder.
Type Aliases§
- Linear encoder.
- Rotary encoder.
- Linear encoder.
- Rotary encoder.