#[repr(transparent)]pub struct ClockN(pub u32);Tuple Fields§
§0: u32Implementations§
Source§impl ClockN
impl ClockN
Sourcepub const fn clock_unit(&self) -> bool
pub const fn clock_unit(&self) -> bool
Raw bit values: false (0) = Kilohertz: kHz,4..1023.; true (1) = Megahertz: MHz,1..1023.
Sourcepub const fn set_clock_unit(&mut self, val: bool)
pub const fn set_clock_unit(&mut self, val: bool)
Raw bit values: false (0) = Kilohertz: kHz,4..1023.; true (1) = Megahertz: MHz,1..1023.
Sourcepub const fn clock_speed(&self) -> u16
pub const fn clock_speed(&self) -> u16
Clock speed:1..1023MHz or4..1023kHz, according to CLOCK_UNIT. Configure to the actual system clock frequency before START; the reset encoding is not a measurement of the live clock.
Sourcepub const fn set_clock_speed(&mut self, val: u16)
pub const fn set_clock_speed(&mut self, val: u16)
Clock speed:1..1023MHz or4..1023kHz, according to CLOCK_UNIT. Configure to the actual system clock frequency before START; the reset encoding is not a measurement of the live clock.
Trait Implementations§
impl Copy for ClockN
impl Eq for ClockN
impl StructuralPartialEq for ClockN
Auto Trait Implementations§
impl Freeze for ClockN
impl RefUnwindSafe for ClockN
impl Send for ClockN
impl Sync for ClockN
impl Unpin for ClockN
impl UnwindSafe for ClockN
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