#[repr(transparent)]pub struct Clkdiv(pub u32);Expand description
ADCx clock divider control.
Tuple Fields§
§0: u32Implementations§
Source§impl Clkdiv
impl Clkdiv
Sourcepub const fn reset(&self) -> bool
pub const fn reset(&self) -> bool
Reset divider counter. Raw bit values: false (0) = On: Divider isn’t reset.; true (1) = Off: Divider is reset.
Sourcepub const fn set_reset(&mut self, val: bool)
pub const fn set_reset(&mut self, val: bool)
Reset divider counter. Raw bit values: false (0) = On: Divider isn’t reset.; true (1) = Off: Divider is reset.
Sourcepub const fn halt(&self) -> bool
pub const fn halt(&self) -> bool
Halt divider counter. Raw bit values: false (0) = On: Divider clock is running.; true (1) = Off: Divider clock is stopped.
Sourcepub const fn set_halt(&mut self, val: bool)
pub const fn set_halt(&mut self, val: bool)
Halt divider counter. Raw bit values: false (0) = On: Divider clock is running.; true (1) = Off: Divider clock is stopped.
Sourcepub const fn unstab(&self) -> bool
pub const fn unstab(&self) -> bool
Divider status flag. Raw bit values: false (0) = On: Divider clock is stable.; true (1) = Off: Clock frequency isn’t stable.
Sourcepub const fn set_unstab(&mut self, val: bool)
pub const fn set_unstab(&mut self, val: bool)
Divider status flag. Raw bit values: false (0) = On: Divider clock is stable.; true (1) = Off: Clock frequency isn’t stable.
Trait Implementations§
impl Copy for Clkdiv
impl Eq for Clkdiv
impl StructuralPartialEq for Clkdiv
Auto Trait Implementations§
impl Freeze for Clkdiv
impl RefUnwindSafe for Clkdiv
impl Send for Clkdiv
impl Sync for Clkdiv
impl Unpin for Clkdiv
impl UnwindSafe for Clkdiv
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