#[repr(transparent)]pub struct Ctrl3(pub u16);Expand description
Control.
Tuple Fields§
§0: u16Implementations§
Source§impl Ctrl3
impl Ctrl3
Sourcepub const fn cmpie(&self) -> bool
pub const fn cmpie(&self) -> bool
Compare Interrupt Enable. Raw bit values: false (0) = Disabled: Disable.; true (1) = Enabled: Enable.
Sourcepub const fn set_cmpie(&mut self, val: bool)
pub const fn set_cmpie(&mut self, val: bool)
Compare Interrupt Enable. Raw bit values: false (0) = Disabled: Disable.; true (1) = Enabled: Enable.
Sourcepub const fn cmpirq(&self) -> bool
pub const fn cmpirq(&self) -> bool
Compare Interrupt Request. Raw bit values: false (0) = Nomat: No match has occurred.; true (1) = Mat: COMP match has occurred.
Sourcepub const fn set_cmpirq(&mut self, val: bool)
pub const fn set_cmpirq(&mut self, val: bool)
Compare Interrupt Request. Raw bit values: false (0) = Nomat: No match has occurred.; true (1) = Mat: COMP match has occurred.
Sourcepub const fn wde(&self) -> bool
pub const fn wde(&self) -> bool
Watchdog Enable. Raw bit values: false (0) = Disabled: Disable.; true (1) = Enabled: Enable.
Sourcepub const fn set_wde(&mut self, val: bool)
pub const fn set_wde(&mut self, val: bool)
Watchdog Enable. Raw bit values: false (0) = Disabled: Disable.; true (1) = Enabled: Enable.
Sourcepub const fn die(&self) -> bool
pub const fn die(&self) -> bool
Watchdog Timeout Interrupt Enable. Raw bit values: false (0) = Disabled: Disable.; true (1) = Enabled: Enable.
Sourcepub const fn set_die(&mut self, val: bool)
pub const fn set_die(&mut self, val: bool)
Watchdog Timeout Interrupt Enable. Raw bit values: false (0) = Disabled: Disable.; true (1) = Enabled: Enable.
Sourcepub const fn dirq(&self) -> bool
pub const fn dirq(&self) -> bool
Watchdog Timeout Interrupt Request. Raw bit values: false (0) = Noint: Not occurred.; true (1) = Int: Occurred.
Sourcepub const fn set_dirq(&mut self, val: bool)
pub const fn set_dirq(&mut self, val: bool)
Watchdog Timeout Interrupt Request. Raw bit values: false (0) = Noint: Not occurred.; true (1) = Int: Occurred.
Sourcepub const fn xne(&self) -> bool
pub const fn xne(&self) -> bool
Select Positive and Negative Edge of INDEX Pulse. Raw bit values: false (0) = Xne0: Use positive edge.; true (1) = Xne1: Use negative edge.
Sourcepub const fn set_xne(&mut self, val: bool)
pub const fn set_xne(&mut self, val: bool)
Select Positive and Negative Edge of INDEX Pulse. Raw bit values: false (0) = Xne0: Use positive edge.; true (1) = Xne1: Use negative edge.
Sourcepub const fn xip(&self) -> bool
pub const fn xip(&self) -> bool
INDEX Triggered Initialization of Position Counters UPOS and LPOS. Raw bit values: false (0) = Noint: Does not initialize.; true (1) = Int: Initializes.
Sourcepub const fn set_xip(&mut self, val: bool)
pub const fn set_xip(&mut self, val: bool)
INDEX Triggered Initialization of Position Counters UPOS and LPOS. Raw bit values: false (0) = Noint: Does not initialize.; true (1) = Int: Initializes.
Sourcepub const fn xie(&self) -> bool
pub const fn xie(&self) -> bool
INDEX Pulse Interrupt Enable. Raw bit values: false (0) = Disabled: Disable.; true (1) = Enabled: Enable.
Sourcepub const fn set_xie(&mut self, val: bool)
pub const fn set_xie(&mut self, val: bool)
INDEX Pulse Interrupt Enable. Raw bit values: false (0) = Disabled: Disable.; true (1) = Enabled: Enable.
Sourcepub const fn xirq(&self) -> bool
pub const fn xirq(&self) -> bool
INDEX Pulse Interrupt Request. Raw bit values: false (0) = Noind: Not occurred.; true (1) = Index: Occurred.
Sourcepub const fn set_xirq(&mut self, val: bool)
pub const fn set_xirq(&mut self, val: bool)
INDEX Pulse Interrupt Request. Raw bit values: false (0) = Noind: Not occurred.; true (1) = Index: Occurred.
Sourcepub const fn ph1(&self) -> bool
pub const fn ph1(&self) -> bool
Enable Signal Phase Count Mode. Raw bit values: false (0) = Use: Uses the standard quadrature decoder, where PHASEA and PHASEB represent a two-phase quadrature signal.; true (1) = Bypass: Bypasses the quadrature decoder. A positive transition of the PHASEA input generates a count signal. PHASEB input and CTRL[REV] controls the counter direction. If the value of CTRL[REV] and PHASEB are identical; then count is up. If the value of CTRL[REV] and PHASEB is different, then count is down.
Sourcepub const fn set_ph1(&mut self, val: bool)
pub const fn set_ph1(&mut self, val: bool)
Enable Signal Phase Count Mode. Raw bit values: false (0) = Use: Uses the standard quadrature decoder, where PHASEA and PHASEB represent a two-phase quadrature signal.; true (1) = Bypass: Bypasses the quadrature decoder. A positive transition of the PHASEA input generates a count signal. PHASEB input and CTRL[REV] controls the counter direction. If the value of CTRL[REV] and PHASEB are identical; then count is up. If the value of CTRL[REV] and PHASEB is different, then count is down.
Sourcepub const fn rev(&self) -> bool
pub const fn rev(&self) -> bool
Enable Reverse Direction Counting. Raw bit values: false (0) = Normal: Counts normally.; true (1) = Reverse: Counts in the reverse direction.
Sourcepub const fn set_rev(&mut self, val: bool)
pub const fn set_rev(&mut self, val: bool)
Enable Reverse Direction Counting. Raw bit values: false (0) = Normal: Counts normally.; true (1) = Reverse: Counts in the reverse direction.
Sourcepub const fn swip(&self) -> bool
pub const fn swip(&self) -> bool
Software-Triggered Initialization of Position Counters UPOS and LPOS. Raw bit values: false (0) = Noaction: No action.; true (1) = Init: Initialize position counter.
Sourcepub const fn set_swip(&mut self, val: bool)
pub const fn set_swip(&mut self, val: bool)
Software-Triggered Initialization of Position Counters UPOS and LPOS. Raw bit values: false (0) = Noaction: No action.; true (1) = Init: Initialize position counter.
Sourcepub const fn hne(&self) -> bool
pub const fn hne(&self) -> bool
Use Negative Edge of HOME Input. Raw bit values: false (0) = Pos: Use positive-going edge-to-trigger initialization of position counters UPOS and LPOS.; true (1) = Neg: Use negative-going edge-to-trigger initialization of position counters UPOS and LPOS.
Sourcepub const fn set_hne(&mut self, val: bool)
pub const fn set_hne(&mut self, val: bool)
Use Negative Edge of HOME Input. Raw bit values: false (0) = Pos: Use positive-going edge-to-trigger initialization of position counters UPOS and LPOS.; true (1) = Neg: Use negative-going edge-to-trigger initialization of position counters UPOS and LPOS.
Sourcepub const fn hip(&self) -> bool
pub const fn hip(&self) -> bool
Enable HOME to Initialize Position Counters UPOS and LPOS. Raw bit values: false (0) = Noaction: No action.; true (1) = Home: HOME signal initializes the position counter.
Sourcepub const fn set_hip(&mut self, val: bool)
pub const fn set_hip(&mut self, val: bool)
Enable HOME to Initialize Position Counters UPOS and LPOS. Raw bit values: false (0) = Noaction: No action.; true (1) = Home: HOME signal initializes the position counter.
Sourcepub const fn hie(&self) -> bool
pub const fn hie(&self) -> bool
HOME Interrupt Enable. Raw bit values: false (0) = Disabled: Disable.; true (1) = Enabled: Enable.
Sourcepub const fn set_hie(&mut self, val: bool)
pub const fn set_hie(&mut self, val: bool)
HOME Interrupt Enable. Raw bit values: false (0) = Disabled: Disable.; true (1) = Enabled: Enable.