Skip to main content

OpmodeW

Type Alias OpmodeW 

Source
pub type OpmodeW<'a, REG> = BitWriter<'a, REG, Opmode>;
Expand description

Field OPMODE writer - Operation Mode Select

Aliased Type§

pub struct OpmodeW<'a, REG> { /* private fields */ }

Implementations§

Source§

impl<'a, REG> OpmodeW<'a, REG>
where REG: Writable + RegisterSpec,

Source

pub fn opmode0(self) -> &'a mut W<REG>

Decode Mode: Input nodes INDEX/PRESET and HOME/ENABLE are assigned to function of INDEX and HOME.

Source

pub fn opmode1(self) -> &'a mut W<REG>

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]).