#[repr(transparent)]pub struct Sm2captctrla(pub u16);Expand description
Capture Control A Register.
Tuple Fields§
§0: u16Implementations§
Source§impl Sm2captctrla
impl Sm2captctrla
Sourcepub const fn arma(&self) -> bool
pub const fn arma(&self) -> bool
Arm A. Raw bit values: false (0) = Disabled: Input capture operation is disabled.; true (1) = Enabled: Input capture operation as specified by CAPTCTRLA[EDGAx] is enabled.
Sourcepub const fn set_arma(&mut self, val: bool)
pub const fn set_arma(&mut self, val: bool)
Arm A. Raw bit values: false (0) = Disabled: Input capture operation is disabled.; true (1) = Enabled: Input capture operation as specified by CAPTCTRLA[EDGAx] is enabled.
Sourcepub const fn oneshota(&self) -> bool
pub const fn oneshota(&self) -> bool
One Shot Mode A. Raw bit values: false (0) = FreeRunning: Free Running.; true (1) = OneShot: One Shot.
Sourcepub const fn set_oneshota(&mut self, val: bool)
pub const fn set_oneshota(&mut self, val: bool)
One Shot Mode A. Raw bit values: false (0) = FreeRunning: Free Running.; true (1) = OneShot: One Shot.
Sourcepub const fn edga0(&self) -> SmcaptctrlxEdgx
pub const fn edga0(&self) -> SmcaptctrlxEdgx
Edge A 0.
Sourcepub const fn set_edga0(&mut self, val: SmcaptctrlxEdgx)
pub const fn set_edga0(&mut self, val: SmcaptctrlxEdgx)
Edge A 0.
Sourcepub const fn edga1(&self) -> SmcaptctrlxEdgx
pub const fn edga1(&self) -> SmcaptctrlxEdgx
Edge A 1.
Sourcepub const fn set_edga1(&mut self, val: SmcaptctrlxEdgx)
pub const fn set_edga1(&mut self, val: SmcaptctrlxEdgx)
Edge A 1.
Sourcepub const fn inp_sela(&self) -> bool
pub const fn inp_sela(&self) -> bool
Input Select A. Raw bit values: false (0) = PwmA: Raw PWM_A input signal selected as source.; true (1) = EdgeCounter: Edge Counter.
Sourcepub const fn set_inp_sela(&mut self, val: bool)
pub const fn set_inp_sela(&mut self, val: bool)
Input Select A. Raw bit values: false (0) = PwmA: Raw PWM_A input signal selected as source.; true (1) = EdgeCounter: Edge Counter.
Sourcepub const fn edgcnta_en(&self) -> bool
pub const fn edgcnta_en(&self) -> bool
Edge Counter A Enable. Raw bit values: false (0) = Disabled: Edge counter disabled and held in reset.; true (1) = Enabled: Edge counter enabled.
Sourcepub const fn set_edgcnta_en(&mut self, val: bool)
pub const fn set_edgcnta_en(&mut self, val: bool)
Edge Counter A Enable. Raw bit values: false (0) = Disabled: Edge counter disabled and held in reset.; true (1) = Enabled: Edge counter enabled.
Sourcepub const fn set_ca0cnt(&mut self, val: u8)
pub const fn set_ca0cnt(&mut self, val: u8)
Capture A0 FIFO Word Count.
Sourcepub const fn set_ca1cnt(&mut self, val: u8)
pub const fn set_ca1cnt(&mut self, val: u8)
Capture A1 FIFO Word Count.
Trait Implementations§
Source§impl Clone for Sm2captctrla
impl Clone for Sm2captctrla
Source§fn clone(&self) -> Sm2captctrla
fn clone(&self) -> Sm2captctrla
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more