pub type OpmodeR = BitReader<Opmode>;Expand description
Field OPMODE reader - Operation Mode Select
Aliased Type§
pub struct OpmodeR { /* private fields */ }Implementations§
Source§impl OpmodeR
impl OpmodeR
Sourcepub fn is_opmode0(&self) -> bool
pub fn is_opmode0(&self) -> bool
Decode Mode: Input nodes INDEX/PRESET and HOME/ENABLE are assigned to function of INDEX and HOME.
Sourcepub fn is_opmode1(&self) -> bool
pub fn is_opmode1(&self) -> bool
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]).