pub struct Pwm { /* private fields */ }Expand description
PWM.
Implementations§
Source§impl Pwm
impl Pwm
pub const unsafe fn from_ptr(ptr: *mut ()) -> Self
pub const fn as_ptr(&self) -> *mut ()
Sourcepub const fn sm(self, n: usize) -> Sm
pub const fn sm(self, n: usize) -> Sm
Array of registers: SMCAPTCOMPA, SMCAPTCOMPB, SMCAPTCOMPX, SMCAPTCTRLA, SMCAPTCTRLB, SMCAPTCTRLX, SMCNT, SMCTRL, SMCTRL2, SMCVAL0, SMCVAL0CYC, SMCVAL1, SMCVAL1CYC, SMCVAL2, SMCVAL2CYC, SMCVAL3, SMCVAL3CYC, SMCVAL4, SMCVAL4CYC, SMCVAL5, SMCVAL5CYC, SMDISMAP0, SMDMAEN, SMDTCNT0, SMDTCNT1, SMFRACVAL1, SMFRACVAL2, SMFRACVAL3, SMFRACVAL4, SMFRACVAL5, SMFRCTRL, SMINIT, SMINTEN, SMOCTRL, SMSTS, SMTCTRL, SMVAL0, SMVAL1, SMVAL2, SMVAL3, SMVAL4, SMVAL5.
Trait Implementations§
impl Copy for Pwm
impl Eq for Pwm
impl Send for Pwm
impl StructuralPartialEq for Pwm
impl Sync for Pwm
Auto Trait Implementations§
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