#[repr(u8)]pub enum Opmode {
OPMODE0 = 0,
OPMODE1 = 1,
}Variants§
OPMODE0 = 0
Decode Mode: Input nodes INDEX/PRESET and HOME/ENABLE are assigned to function of INDEX and HOME.
OPMODE1 = 1
Count Mode: Input nodes INDEX/PRESET and HOME/ENABLE are assigned to functions of PRESET and ENABLE. In this mode: (1)only when ENABLE=1, all counters (position/position difference/revolution/watchdog) can run, when ENABLE=0, all counters (position/position difference/revolution/watchdog) can’t run. (2) the rising edge of PRESET input can initialize position/revolution/watchdog counters (position counter initialization also need referring to bit CTRL[REV]).
Implementations§
Trait Implementations§
Source§impl Ord for Opmode
impl Ord for Opmode
Source§impl PartialOrd for Opmode
impl PartialOrd for Opmode
impl Copy for Opmode
impl Eq for Opmode
impl StructuralPartialEq for Opmode
Auto Trait Implementations§
impl Freeze for Opmode
impl RefUnwindSafe for Opmode
impl Send for Opmode
impl Sync for Opmode
impl Unpin for Opmode
impl UnwindSafe for Opmode
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