Struct rp2040_pac2::pwm::regs::Ch2Csr [−][src]
Control and status register
Implementations
impl Ch2Csr
[src]
pub const fn ph_adv(&self) -> bool
[src]
Advance the phase of the counter by 1 count, while it is running. Self-clearing. Write a 1, and poll until low. Counter must be running at less than full speed (div_int + div_frac / 16 > 1)
pub fn set_ph_adv(&mut self, val: bool)
[src]
Advance the phase of the counter by 1 count, while it is running. Self-clearing. Write a 1, and poll until low. Counter must be running at less than full speed (div_int + div_frac / 16 > 1)
pub const fn ph_ret(&self) -> bool
[src]
Retard the phase of the counter by 1 count, while it is running. Self-clearing. Write a 1, and poll until low. Counter must be running.
pub fn set_ph_ret(&mut self, val: bool)
[src]
Retard the phase of the counter by 1 count, while it is running. Self-clearing. Write a 1, and poll until low. Counter must be running.
pub const fn divmode(&self) -> Divmode
[src]
pub fn set_divmode(&mut self, val: Divmode)
[src]
pub const fn b_inv(&self) -> bool
[src]
Invert output B
pub fn set_b_inv(&mut self, val: bool)
[src]
Invert output B
pub const fn a_inv(&self) -> bool
[src]
Invert output A
pub fn set_a_inv(&mut self, val: bool)
[src]
Invert output A
pub const fn ph_correct(&self) -> bool
[src]
1: Enable phase-correct modulation. 0: Trailing-edge
pub fn set_ph_correct(&mut self, val: bool)
[src]
1: Enable phase-correct modulation. 0: Trailing-edge
pub const fn en(&self) -> bool
[src]
Enable the PWM channel.
pub fn set_en(&mut self, val: bool)
[src]
Enable the PWM channel.
Trait Implementations
impl Clone for Ch2Csr
[src]
fn clone(&self) -> Ch2Csr
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for Ch2Csr
[src]
impl Default for Ch2Csr
[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>,