#[repr(transparent)]pub struct Pwmc(pub u32);Expand description
PWM Control Register. The PWMCON enables PWM mode for the external match pins.
Tuple Fields§
§0: u32Implementations§
Source§impl Pwmc
impl Pwmc
Sourcepub const fn set_pwmen0(&mut self, val: Pwmen0)
pub const fn set_pwmen0(&mut self, val: Pwmen0)
PWM mode enable for channel0.
Sourcepub const fn set_pwmen1(&mut self, val: Pwmen1)
pub const fn set_pwmen1(&mut self, val: Pwmen1)
PWM mode enable for channel1.
Sourcepub const fn set_pwmen2(&mut self, val: Pwmen2)
pub const fn set_pwmen2(&mut self, val: Pwmen2)
PWM mode enable for channel2.
Sourcepub const fn pwmen3(&self) -> Pwmen3
pub const fn pwmen3(&self) -> Pwmen3
PWM mode enable for channel3. Note: It is recommended to use match channel 3 to set the PWM cycle.
Sourcepub const fn set_pwmen3(&mut self, val: Pwmen3)
pub const fn set_pwmen3(&mut self, val: Pwmen3)
PWM mode enable for channel3. Note: It is recommended to use match channel 3 to set the PWM cycle.
Trait Implementations§
impl Copy for Pwmc
impl Eq for Pwmc
impl StructuralPartialEq for Pwmc
Auto Trait Implementations§
impl Freeze for Pwmc
impl RefUnwindSafe for Pwmc
impl Send for Pwmc
impl Sync for Pwmc
impl Unpin for Pwmc
impl UnwindSafe for Pwmc
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