#[repr(transparent)]pub struct Currentfreq(pub u32);
Expand description
Current speed of MCU power domain, including CPU
Tuple Fields§
§0: u32
Implementations§
Source§impl Currentfreq
impl Currentfreq
Sourcepub const fn currentfreq(&self) -> Currentfreq
pub const fn currentfreq(&self) -> Currentfreq
Active CPU speed
Sourcepub fn set_currentfreq(&mut self, val: Currentfreq)
pub fn set_currentfreq(&mut self, val: Currentfreq)
Active CPU speed
Trait Implementations§
Source§impl Clone for Currentfreq
impl Clone for Currentfreq
Source§fn clone(&self) -> Currentfreq
fn clone(&self) -> Currentfreq
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for Currentfreq
impl Default for Currentfreq
Source§fn default() -> Currentfreq
fn default() -> Currentfreq
Returns the “default value” for a type. Read more
Source§impl PartialEq for Currentfreq
impl PartialEq for Currentfreq
impl Copy for Currentfreq
impl Eq for Currentfreq
impl StructuralPartialEq for Currentfreq
Auto Trait Implementations§
impl Freeze for Currentfreq
impl RefUnwindSafe for Currentfreq
impl Send for Currentfreq
impl Sync for Currentfreq
impl Unpin for Currentfreq
impl UnwindSafe for Currentfreq
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
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)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)