#[repr(transparent)]pub struct Flexpwm1Sm0ctrl2(pub u16);Expand description
Control 2 Register.
Tuple Fields§
§0: u16Implementations§
Source§impl Flexpwm1Sm0ctrl2
impl Flexpwm1Sm0ctrl2
Sourcepub const fn clk_sel(&self) -> Sm0ctrl2ClkSel
pub const fn clk_sel(&self) -> Sm0ctrl2ClkSel
Clock Source Select.
Sourcepub const fn set_clk_sel(&mut self, val: Sm0ctrl2ClkSel)
pub const fn set_clk_sel(&mut self, val: Sm0ctrl2ClkSel)
Clock Source Select.
Sourcepub const fn reload_sel(&self) -> bool
pub const fn reload_sel(&self) -> bool
Reload Source Select. Raw bit values: false (0) = Local: The local RELOAD signal is used to reload registers.; true (1) = Master: The master RELOAD signal (from submodule 0) is used to reload registers. This setting should not be used in submodule 0 as it forces the RELOAD signal to logic 0.
Sourcepub const fn set_reload_sel(&mut self, val: bool)
pub const fn set_reload_sel(&mut self, val: bool)
Reload Source Select. Raw bit values: false (0) = Local: The local RELOAD signal is used to reload registers.; true (1) = Master: The master RELOAD signal (from submodule 0) is used to reload registers. This setting should not be used in submodule 0 as it forces the RELOAD signal to logic 0.
Sourcepub const fn force_sel(&self) -> Sm0ctrl2ForceSel
pub const fn force_sel(&self) -> Sm0ctrl2ForceSel
Force Select.
Sourcepub const fn set_force_sel(&mut self, val: Sm0ctrl2ForceSel)
pub const fn set_force_sel(&mut self, val: Sm0ctrl2ForceSel)
Force Select.
Sourcepub const fn init_sel(&self) -> Sm0ctrl2InitSel
pub const fn init_sel(&self) -> Sm0ctrl2InitSel
Initialization Control Select.
Sourcepub const fn set_init_sel(&mut self, val: Sm0ctrl2InitSel)
pub const fn set_init_sel(&mut self, val: Sm0ctrl2InitSel)
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) -> bool
pub const fn indep(&self) -> bool
Independent or Complementary Pair Operation. Raw bit values: false (0) = Complementary: PWM_A and PWM_B form a complementary PWM pair.; true (1) = Independent: PWM_A and PWM_B outputs are independent PWMs.
Sourcepub const fn set_indep(&mut self, val: bool)
pub const fn set_indep(&mut self, val: bool)
Independent or Complementary Pair Operation. Raw bit values: false (0) = Complementary: PWM_A and PWM_B form a complementary PWM pair.; true (1) = Independent: PWM_A and PWM_B outputs are independent PWMs.
Sourcepub const fn waiten(&self) -> bool
pub const fn waiten(&self) -> bool
WAIT Enable (PWM1 only; F40 RM Rev.2 §33.5.4). Raw bit values: false (0) = Disabled: PWM is disabled in Wait mode.; true (1) = Enabled: PWM is enabled in Wait mode.
Sourcepub const fn set_waiten(&mut self, val: bool)
pub const fn set_waiten(&mut self, val: bool)
WAIT Enable (PWM1 only; F40 RM Rev.2 §33.5.4). Raw bit values: false (0) = Disabled: PWM is disabled in Wait mode.; true (1) = Enabled: PWM is enabled in Wait mode.
Trait Implementations§
Source§impl Clone for Flexpwm1Sm0ctrl2
impl Clone for Flexpwm1Sm0ctrl2
Source§fn clone(&self) -> Flexpwm1Sm0ctrl2
fn clone(&self) -> Flexpwm1Sm0ctrl2
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more