#[repr(transparent)]pub struct Sm2captctrlb(pub u16);Expand description
Capture Control B Register.
Tuple Fields§
§0: u16Implementations§
Source§impl Sm2captctrlb
impl Sm2captctrlb
Sourcepub const fn armb(&self) -> bool
pub const fn armb(&self) -> bool
Arm B. Raw bit values: false (0) = Disabled: Input capture operation is disabled.; true (1) = Enabled: Input capture operation as specified by CAPTCTRLB[EDGBx] is enabled.
Sourcepub const fn set_armb(&mut self, val: bool)
pub const fn set_armb(&mut self, val: bool)
Arm B. Raw bit values: false (0) = Disabled: Input capture operation is disabled.; true (1) = Enabled: Input capture operation as specified by CAPTCTRLB[EDGBx] is enabled.
Sourcepub const fn oneshotb(&self) -> bool
pub const fn oneshotb(&self) -> bool
One Shot Mode B. Raw bit values: false (0) = FreeRunning: Free Running.; true (1) = OneShot: One Shot.
Sourcepub const fn set_oneshotb(&mut self, val: bool)
pub const fn set_oneshotb(&mut self, val: bool)
One Shot Mode B. Raw bit values: false (0) = FreeRunning: Free Running.; true (1) = OneShot: One Shot.
Sourcepub const fn edgb0(&self) -> SmcaptctrlxEdgx
pub const fn edgb0(&self) -> SmcaptctrlxEdgx
Edge B 0.
Sourcepub const fn set_edgb0(&mut self, val: SmcaptctrlxEdgx)
pub const fn set_edgb0(&mut self, val: SmcaptctrlxEdgx)
Edge B 0.
Sourcepub const fn edgb1(&self) -> SmcaptctrlxEdgx
pub const fn edgb1(&self) -> SmcaptctrlxEdgx
Edge B 1.
Sourcepub const fn set_edgb1(&mut self, val: SmcaptctrlxEdgx)
pub const fn set_edgb1(&mut self, val: SmcaptctrlxEdgx)
Edge B 1.
Sourcepub const fn inp_selb(&self) -> bool
pub const fn inp_selb(&self) -> bool
Input Select B. Raw bit values: false (0) = PwmB: Raw PWM_B input signal selected as source.; true (1) = EdgeCounter: Edge Counter.
Sourcepub const fn set_inp_selb(&mut self, val: bool)
pub const fn set_inp_selb(&mut self, val: bool)
Input Select B. Raw bit values: false (0) = PwmB: Raw PWM_B input signal selected as source.; true (1) = EdgeCounter: Edge Counter.
Sourcepub const fn edgcntb_en(&self) -> bool
pub const fn edgcntb_en(&self) -> bool
Edge Counter B Enable. Raw bit values: false (0) = Disabled: Edge counter disabled and held in reset.; true (1) = Enabled: Edge counter enabled.
Sourcepub const fn set_edgcntb_en(&mut self, val: bool)
pub const fn set_edgcntb_en(&mut self, val: bool)
Edge Counter B Enable. Raw bit values: false (0) = Disabled: Edge counter disabled and held in reset.; true (1) = Enabled: Edge counter enabled.
Sourcepub const fn set_cb0cnt(&mut self, val: u8)
pub const fn set_cb0cnt(&mut self, val: u8)
Capture B0 FIFO Word Count.
Sourcepub const fn set_cb1cnt(&mut self, val: u8)
pub const fn set_cb1cnt(&mut self, val: u8)
Capture B1 FIFO Word Count.
Trait Implementations§
Source§impl Clone for Sm2captctrlb
impl Clone for Sm2captctrlb
Source§fn clone(&self) -> Sm2captctrlb
fn clone(&self) -> Sm2captctrlb
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more