#[repr(u8)]pub enum Ph1 {
USE = 0,
BYPASS = 1,
}Variants§
USE = 0
Uses the standard quadrature decoder, where PHASEA and PHASEB represent a two-phase quadrature signal.
BYPASS = 1
Bypasses the quadrature decoder. A positive transition of the PHASEA input generates a count signal. PHASEB input and CTRL[REV] controls the counter direction. If the value of CTRL[REV] and PHASEB are identical; then count is up. If the value of CTRL[REV] and PHASEB is different, then count is down.
Implementations§
Trait Implementations§
Source§impl Ord for Ph1
impl Ord for Ph1
Source§impl PartialOrd for Ph1
impl PartialOrd for Ph1
impl Copy for Ph1
impl Eq for Ph1
impl StructuralPartialEq for Ph1
Auto Trait Implementations§
impl Freeze for Ph1
impl RefUnwindSafe for Ph1
impl Send for Ph1
impl Sync for Ph1
impl Unpin for Ph1
impl UnwindSafe for Ph1
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more