#[repr(u8)]pub enum Ph1 {
PH1_0 = 0,
PH1_1 = 1,
}Variants§
PH1_0 = 0
Use the standard quadrature decoder, where PHASEA and PHASEB represent a two-phase quadrature signal.
PH1_1 = 1
Bypass the quadrature decoder. A positive transition of the PHASEA input generates a count signal. The PHASEB input and the REV bit control the counter direction: If CTRL[REV] = 0, PHASEB = 0, then count up If CTRL[REV] = 1, PHASEB = 1, then count up If CTRL[REV] = 0, PHASEB = 1, then count down If CTRL[REV] = 1, PHASEB = 0, then count 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