#[repr(transparent)]pub struct Sm3octrl(pub u16);Expand description
Output Control Register.
Tuple Fields§
§0: u16Implementations§
Source§impl Sm3octrl
impl Sm3octrl
Sourcepub const fn pwmxfs(&self) -> SmoctrlPwmxfs
pub const fn pwmxfs(&self) -> SmoctrlPwmxfs
PWM_X Fault State.
Sourcepub const fn set_pwmxfs(&mut self, val: SmoctrlPwmxfs)
pub const fn set_pwmxfs(&mut self, val: SmoctrlPwmxfs)
PWM_X Fault State.
Sourcepub const fn pwmbfs(&self) -> SmoctrlPwmxfs
pub const fn pwmbfs(&self) -> SmoctrlPwmxfs
PWM_B Fault State.
Sourcepub const fn set_pwmbfs(&mut self, val: SmoctrlPwmxfs)
pub const fn set_pwmbfs(&mut self, val: SmoctrlPwmxfs)
PWM_B Fault State.
Sourcepub const fn pwmafs(&self) -> SmoctrlPwmxfs
pub const fn pwmafs(&self) -> SmoctrlPwmxfs
PWM_A Fault State.
Sourcepub const fn set_pwmafs(&mut self, val: SmoctrlPwmxfs)
pub const fn set_pwmafs(&mut self, val: SmoctrlPwmxfs)
PWM_A Fault State.
Sourcepub const fn polx(&self) -> bool
pub const fn polx(&self) -> bool
PWM_X Output Polarity. Raw bit values: false (0) = NotInverted: PWM_X output not inverted. A high level on the PWM_X pin represents the “on” or “active” state.; true (1) = Inverted: PWM_X output inverted. A low level on the PWM_X pin represents the “on” or “active” state.
Sourcepub const fn set_polx(&mut self, val: bool)
pub const fn set_polx(&mut self, val: bool)
PWM_X Output Polarity. Raw bit values: false (0) = NotInverted: PWM_X output not inverted. A high level on the PWM_X pin represents the “on” or “active” state.; true (1) = Inverted: PWM_X output inverted. A low level on the PWM_X pin represents the “on” or “active” state.
Sourcepub const fn polb(&self) -> bool
pub const fn polb(&self) -> bool
PWM_B Output Polarity. Raw bit values: false (0) = NotInverted: PWM_B output not inverted. A high level on the PWM_B pin represents the “on” or “active” state.; true (1) = Inverted: PWM_B output inverted. A low level on the PWM_B pin represents the “on” or “active” state.
Sourcepub const fn set_polb(&mut self, val: bool)
pub const fn set_polb(&mut self, val: bool)
PWM_B Output Polarity. Raw bit values: false (0) = NotInverted: PWM_B output not inverted. A high level on the PWM_B pin represents the “on” or “active” state.; true (1) = Inverted: PWM_B output inverted. A low level on the PWM_B pin represents the “on” or “active” state.
Sourcepub const fn pola(&self) -> bool
pub const fn pola(&self) -> bool
PWM_A Output Polarity. Raw bit values: false (0) = NotInverted: PWM_A output not inverted. A high level on the PWM_A pin represents the “on” or “active” state.; true (1) = Inverted: PWM_A output inverted. A low level on the PWM_A pin represents the “on” or “active” state.
Sourcepub const fn set_pola(&mut self, val: bool)
pub const fn set_pola(&mut self, val: bool)
PWM_A Output Polarity. Raw bit values: false (0) = NotInverted: PWM_A output not inverted. A high level on the PWM_A pin represents the “on” or “active” state.; true (1) = Inverted: PWM_A output inverted. A low level on the PWM_A pin represents the “on” or “active” state.
Sourcepub const fn set_pwmx_in(&mut self, val: bool)
pub const fn set_pwmx_in(&mut self, val: bool)
PWM_X Input.
Sourcepub const fn set_pwmb_in(&mut self, val: bool)
pub const fn set_pwmb_in(&mut self, val: bool)
PWM_B Input.
Sourcepub const fn set_pwma_in(&mut self, val: bool)
pub const fn set_pwma_in(&mut self, val: bool)
PWM_A Input.