#[repr(transparent)]pub struct Sm2captctrlx(pub u16);Expand description
Capture Control X Register.
Tuple Fields§
§0: u16Implementations§
Source§impl Sm2captctrlx
impl Sm2captctrlx
Sourcepub const fn armx(&self) -> bool
pub const fn armx(&self) -> bool
Arm X. Raw bit values: false (0) = Disabled: Input capture operation is disabled.; true (1) = Enabled: Input capture operation as specified by CAPTCTRLX[EDGXx] is enabled.
Sourcepub const fn set_armx(&mut self, val: bool)
pub const fn set_armx(&mut self, val: bool)
Arm X. Raw bit values: false (0) = Disabled: Input capture operation is disabled.; true (1) = Enabled: Input capture operation as specified by CAPTCTRLX[EDGXx] is enabled.
Sourcepub const fn oneshotx(&self) -> bool
pub const fn oneshotx(&self) -> bool
One Shot Mode Aux. Raw bit values: false (0) = FreeRunning: Free Running.; true (1) = OneShot: One Shot.
Sourcepub const fn set_oneshotx(&mut self, val: bool)
pub const fn set_oneshotx(&mut self, val: bool)
One Shot Mode Aux. Raw bit values: false (0) = FreeRunning: Free Running.; true (1) = OneShot: One Shot.
Sourcepub const fn edgx0(&self) -> SmcaptctrlxEdgx
pub const fn edgx0(&self) -> SmcaptctrlxEdgx
Edge X 0.
Sourcepub const fn set_edgx0(&mut self, val: SmcaptctrlxEdgx)
pub const fn set_edgx0(&mut self, val: SmcaptctrlxEdgx)
Edge X 0.
Sourcepub const fn edgx1(&self) -> SmcaptctrlxEdgx
pub const fn edgx1(&self) -> SmcaptctrlxEdgx
Edge X 1.
Sourcepub const fn set_edgx1(&mut self, val: SmcaptctrlxEdgx)
pub const fn set_edgx1(&mut self, val: SmcaptctrlxEdgx)
Edge X 1.
Sourcepub const fn inp_selx(&self) -> bool
pub const fn inp_selx(&self) -> bool
Input Select X. Raw bit values: false (0) = PwmX: Raw PWM_X input signal selected as source.; true (1) = EdgeCounter: Edge Counter.
Sourcepub const fn set_inp_selx(&mut self, val: bool)
pub const fn set_inp_selx(&mut self, val: bool)
Input Select X. Raw bit values: false (0) = PwmX: Raw PWM_X input signal selected as source.; true (1) = EdgeCounter: Edge Counter.
Sourcepub const fn edgcntx_en(&self) -> bool
pub const fn edgcntx_en(&self) -> bool
Edge Counter X Enable. Raw bit values: false (0) = Disabled: Edge counter disabled and held in reset.; true (1) = Enabled: Edge counter enabled.
Sourcepub const fn set_edgcntx_en(&mut self, val: bool)
pub const fn set_edgcntx_en(&mut self, val: bool)
Edge Counter X Enable. Raw bit values: false (0) = Disabled: Edge counter disabled and held in reset.; true (1) = Enabled: Edge counter enabled.
Sourcepub const fn set_cx0cnt(&mut self, val: u8)
pub const fn set_cx0cnt(&mut self, val: u8)
Capture X0 FIFO Word Count.
Sourcepub const fn set_cx1cnt(&mut self, val: u8)
pub const fn set_cx1cnt(&mut self, val: u8)
Capture X1 FIFO Word Count.
Trait Implementations§
Source§impl Clone for Sm2captctrlx
impl Clone for Sm2captctrlx
Source§fn clone(&self) -> Sm2captctrlx
fn clone(&self) -> Sm2captctrlx
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more