#[repr(transparent)]pub struct ChCsr(pub u32);
Expand description
Control and status register
Tuple Fields§
§0: u32
Implementations§
source§impl ChCsr
impl ChCsr
sourcepub const fn ph_correct(&self) -> bool
pub const fn ph_correct(&self) -> bool
1: Enable phase-correct modulation. 0: Trailing-edge
sourcepub fn set_ph_correct(&mut self, val: bool)
pub fn set_ph_correct(&mut self, val: bool)
1: Enable phase-correct modulation. 0: Trailing-edge
pub const fn divmode(&self) -> Divmode
pub fn set_divmode(&mut self, val: Divmode)
sourcepub const fn ph_ret(&self) -> bool
pub const fn ph_ret(&self) -> bool
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.
sourcepub fn set_ph_ret(&mut self, val: bool)
pub fn set_ph_ret(&mut self, val: bool)
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.
sourcepub const fn ph_adv(&self) -> bool
pub const fn ph_adv(&self) -> bool
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)
sourcepub fn set_ph_adv(&mut self, val: bool)
pub fn set_ph_adv(&mut self, val: bool)
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)
Trait Implementations§
impl Copy for ChCsr
impl Eq for ChCsr
impl StructuralPartialEq for ChCsr
Auto Trait Implementations§
impl Freeze for ChCsr
impl RefUnwindSafe for ChCsr
impl Send for ChCsr
impl Sync for ChCsr
impl Unpin for ChCsr
impl UnwindSafe for ChCsr
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)