pub trait Phase {
// Required method
fn direction(&mut self, s: u8) -> Direction;
}
Expand description
Allows customizing which Quadrature Phases should be considered movements and in which direction or ignored.
Required Methods§
Implementors§
impl Phase for DefaultPhase
The useful values of s
are:
- 0b0001 | 0b0111 | 0b1000 | 0b1110
- 0b0010 | 0b0100 | 0b1011 | 0b1101