Struct rp2040_pac2::pwm::regs::En [−][src]
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.
Implementations
impl En
[src]
pub const fn ch7(&self) -> bool
[src]
pub fn set_ch7(&mut self, val: bool)
[src]
pub const fn ch6(&self) -> bool
[src]
pub fn set_ch6(&mut self, val: bool)
[src]
pub const fn ch5(&self) -> bool
[src]
pub fn set_ch5(&mut self, val: bool)
[src]
pub const fn ch4(&self) -> bool
[src]
pub fn set_ch4(&mut self, val: bool)
[src]
pub const fn ch3(&self) -> bool
[src]
pub fn set_ch3(&mut self, val: bool)
[src]
pub const fn ch2(&self) -> bool
[src]
pub fn set_ch2(&mut self, val: bool)
[src]
pub const fn ch1(&self) -> bool
[src]
pub fn set_ch1(&mut self, val: bool)
[src]
pub const fn ch0(&self) -> bool
[src]
pub fn set_ch0(&mut self, val: bool)
[src]
Trait Implementations
impl Clone for En
[src]
fn clone(&self) -> En
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for En
[src]
impl Default for En
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,