#[repr(transparent)]pub struct Ctrl(pub u16);Expand description
Control Register.
Tuple Fields§
§0: u16Implementations§
Source§impl Ctrl
impl Ctrl
Sourcepub const fn ldok(&self) -> Ldok
pub const fn ldok(&self) -> Ldok
Load buffered compare/init/modulus values according to LDMOD. Do not write the outer buffers while LDOK=1.
Sourcepub const fn set_ldok(&mut self, val: Ldok)
pub const fn set_ldok(&mut self, val: Ldok)
Load buffered compare/init/modulus values according to LDMOD. Do not write the outer buffers while LDOK=1.
Sourcepub const fn set_dmaen(&mut self, val: Dmaen)
pub const fn set_dmaen(&mut self, val: Dmaen)
Sticky DMA enable. Once set, writing zero cannot clear it.
Sourcepub const fn wdirq(&self) -> Wdirq
pub const fn wdirq(&self) -> Wdirq
Watchdog Timeout Interrupt Request. Write one to clear; zero does not acknowledge the flag.
Sourcepub const fn set_wdirq(&mut self, val: Wdirq)
pub const fn set_wdirq(&mut self, val: Wdirq)
Watchdog Timeout Interrupt Request. Write one to clear; zero does not acknowledge the flag.
Sourcepub const fn xip(&self) -> Xip
pub const fn xip(&self) -> Xip
INDEX Triggered Initialization of Position Counters UPOS and LPOS.
Sourcepub const fn set_xip(&mut self, val: Xip)
pub const fn set_xip(&mut self, val: Xip)
INDEX Triggered Initialization of Position Counters UPOS and LPOS.
Sourcepub const fn xirq(&self) -> Xirq
pub const fn xirq(&self) -> Xirq
INDEX/PRESET Pulse Interrupt Request. Write one to clear; zero does not acknowledge the flag.
Sourcepub const fn set_xirq(&mut self, val: Xirq)
pub const fn set_xirq(&mut self, val: Xirq)
INDEX/PRESET Pulse Interrupt Request. Write one to clear; zero does not acknowledge the flag.
Sourcepub const fn swip(&self) -> Swip
pub const fn swip(&self) -> Swip
Software-Triggered Initialization of Position Counters UPOS and LPOS. Command reads as zero.
Sourcepub const fn set_swip(&mut self, val: Swip)
pub const fn set_swip(&mut self, val: Swip)
Software-Triggered Initialization of Position Counters UPOS and LPOS. Command reads as zero.
Sourcepub const fn set_hip(&mut self, val: Hip)
pub const fn set_hip(&mut self, val: Hip)
Enable HOME to Initialize Position Counter UPOS/LPOS.