#[repr(transparent)]pub struct Sm3ctrl2(pub u16);Expand description
Control 2 Register
Tuple Fields§
§0: u16Implementations§
Source§impl Sm3ctrl2
impl Sm3ctrl2
Sourcepub const fn clk_sel(&self) -> Sm3ctrl2ClkSel
pub const fn clk_sel(&self) -> Sm3ctrl2ClkSel
Clock Source Select
Sourcepub const fn set_clk_sel(&mut self, val: Sm3ctrl2ClkSel)
pub const fn set_clk_sel(&mut self, val: Sm3ctrl2ClkSel)
Clock Source Select
Sourcepub const fn reload_sel(&self) -> Sm3ctrl2ReloadSel
pub const fn reload_sel(&self) -> Sm3ctrl2ReloadSel
Reload Source Select
Sourcepub const fn set_reload_sel(&mut self, val: Sm3ctrl2ReloadSel)
pub const fn set_reload_sel(&mut self, val: Sm3ctrl2ReloadSel)
Reload Source Select
Sourcepub const fn force_sel(&self) -> Sm3ctrl2ForceSel
pub const fn force_sel(&self) -> Sm3ctrl2ForceSel
Force Select
Sourcepub const fn set_force_sel(&mut self, val: Sm3ctrl2ForceSel)
pub const fn set_force_sel(&mut self, val: Sm3ctrl2ForceSel)
Force Select
Sourcepub const fn init_sel(&self) -> Sm3ctrl2InitSel
pub const fn init_sel(&self) -> Sm3ctrl2InitSel
Initialization Control Select
Sourcepub const fn set_init_sel(&mut self, val: Sm3ctrl2InitSel)
pub const fn set_init_sel(&mut self, val: Sm3ctrl2InitSel)
Initialization Control Select
Sourcepub const fn set_pwmx_init(&mut self, val: bool)
pub const fn set_pwmx_init(&mut self, val: bool)
PWM_X Initial Value
Sourcepub const fn pwm45_init(&self) -> bool
pub const fn pwm45_init(&self) -> bool
PWM45 Initial Value
Sourcepub const fn set_pwm45_init(&mut self, val: bool)
pub const fn set_pwm45_init(&mut self, val: bool)
PWM45 Initial Value
Sourcepub const fn pwm23_init(&self) -> bool
pub const fn pwm23_init(&self) -> bool
PWM23 Initial Value
Sourcepub const fn set_pwm23_init(&mut self, val: bool)
pub const fn set_pwm23_init(&mut self, val: bool)
PWM23 Initial Value
Sourcepub const fn indep(&self) -> Sm3ctrl2Indep
pub const fn indep(&self) -> Sm3ctrl2Indep
Independent or Complementary Pair Operation
Sourcepub const fn set_indep(&mut self, val: Sm3ctrl2Indep)
pub const fn set_indep(&mut self, val: Sm3ctrl2Indep)
Independent or Complementary Pair Operation
Trait Implementations§
impl Copy for Sm3ctrl2
impl Eq for Sm3ctrl2
impl StructuralPartialEq for Sm3ctrl2
Auto Trait Implementations§
impl Freeze for Sm3ctrl2
impl RefUnwindSafe for Sm3ctrl2
impl Send for Sm3ctrl2
impl Sync for Sm3ctrl2
impl Unpin for Sm3ctrl2
impl UnwindSafe for Sm3ctrl2
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more