#[repr(transparent)]pub struct Clock(pub u32);Expand description
Clock register
Tuple Fields§
§0: u32Implementations§
Source§impl Clock
impl Clock
Sourcepub const fn clock_unit(&self) -> ClockUnit
pub const fn clock_unit(&self) -> ClockUnit
Unit of Measurement Encoding for Clock Speed
Sourcepub const fn set_clock_unit(&mut self, val: ClockUnit)
pub const fn set_clock_unit(&mut self, val: ClockUnit)
Unit of Measurement Encoding for Clock Speed
Sourcepub const fn clock_speed(&self) -> u16
pub const fn clock_speed(&self) -> u16
Numerical Value of Clock Speed in Binary
Sourcepub const fn set_clock_speed(&mut self, val: u16)
pub const fn set_clock_speed(&mut self, val: u16)
Numerical Value of Clock Speed in Binary
Trait Implementations§
impl Copy for Clock
impl Eq for Clock
impl StructuralPartialEq for Clock
Auto Trait Implementations§
impl Freeze for Clock
impl RefUnwindSafe for Clock
impl Send for Clock
impl Sync for Clock
impl Unpin for Clock
impl UnwindSafe for Clock
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