#[repr(transparent)]pub struct Sm2frctrl(pub u16);Expand description
Fractional Control Register.
Tuple Fields§
§0: u16Implementations§
Source§impl Sm2frctrl
impl Sm2frctrl
Sourcepub const fn frac1_en(&self) -> bool
pub const fn frac1_en(&self) -> bool
Fractional Cycle PWM Period Enable. Raw bit values: false (0) = Disabled: Disable fractional cycle length for the PWM period.; true (1) = Enabled: Enable fractional cycle length for the PWM period.
Sourcepub const fn set_frac1_en(&mut self, val: bool)
pub const fn set_frac1_en(&mut self, val: bool)
Fractional Cycle PWM Period Enable. Raw bit values: false (0) = Disabled: Disable fractional cycle length for the PWM period.; true (1) = Enabled: Enable fractional cycle length for the PWM period.
Sourcepub const fn frac23_en(&self) -> bool
pub const fn frac23_en(&self) -> bool
Fractional Cycle Placement Enable for PWM_A. Raw bit values: false (0) = Disabled: Disable fractional cycle placement for PWM_A.; true (1) = Enabled: Enable fractional cycle placement for PWM_A.
Sourcepub const fn set_frac23_en(&mut self, val: bool)
pub const fn set_frac23_en(&mut self, val: bool)
Fractional Cycle Placement Enable for PWM_A. Raw bit values: false (0) = Disabled: Disable fractional cycle placement for PWM_A.; true (1) = Enabled: Enable fractional cycle placement for PWM_A.
Sourcepub const fn frac45_en(&self) -> bool
pub const fn frac45_en(&self) -> bool
Fractional Cycle Placement Enable for PWM_B. Raw bit values: false (0) = Disabled: Disable fractional cycle placement for PWM_B.; true (1) = Enabled: Enable fractional cycle placement for PWM_B.
Sourcepub const fn set_frac45_en(&mut self, val: bool)
pub const fn set_frac45_en(&mut self, val: bool)
Fractional Cycle Placement Enable for PWM_B. Raw bit values: false (0) = Disabled: Disable fractional cycle placement for PWM_B.; true (1) = Enabled: Enable fractional cycle placement for PWM_B.