pub struct Pwm(pub *mut u8);
Expand description
Simple PWM
Tuple Fields§
§0: *mut u8
Implementations§
Source§impl Pwm
impl Pwm
pub fn ch(self, n: usize) -> Channel
Sourcepub fn en(self) -> Reg<En, RW>
pub fn en(self) -> Reg<En, RW>
This register aliases the CSR_EN bits for all channels. Writing to this register allows multiple channels to be enabled or disabled simultaneously, so they can run in perfect sync. For each channel, there is only one physical EN register bit, which can be accessed through here or CHx_CSR.
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