Struct rp2040_pac2::pwm::regs::En[][src]

#[repr(transparent)]pub struct En(pub u32);

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]

impl Copy for En[src]

impl Default for En[src]

Auto Trait Implementations

impl Send for En

impl Sync for En

impl Unpin for En

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.