Struct stm32_metapac::rcc::regs::Icscr
#[repr(transparent)]pub struct Icscr(pub u32);
Expand description
RCC internal clock source calibration register
Tuple Fields§
§0: u32
Implementations§
§impl Icscr
impl Icscr
pub const fn hsical(&self) -> u8
pub const fn hsical(&self) -> u8
HSI clock calibration This bitfield directly acts on the HSI clock frequency. Its value is a sum of an internal factory-programmed number and the value of the HSITRIM[6:0] bitfield. In the factory, the internal number is set to calibrate the HSI clock frequency to 48 MHz (with HSITRIM[6:0] left at its reset value). Refer to the device datasheet for HSI calibration accuracy and for the frequency trimming granularity. Note: The trimming effect presents discontinuities at HSICAL[7:0] multiples of 64.
pub fn set_hsical(&mut self, val: u8)
pub fn set_hsical(&mut self, val: u8)
HSI clock calibration This bitfield directly acts on the HSI clock frequency. Its value is a sum of an internal factory-programmed number and the value of the HSITRIM[6:0] bitfield. In the factory, the internal number is set to calibrate the HSI clock frequency to 48 MHz (with HSITRIM[6:0] left at its reset value). Refer to the device datasheet for HSI calibration accuracy and for the frequency trimming granularity. Note: The trimming effect presents discontinuities at HSICAL[7:0] multiples of 64.
pub const fn hsitrim(&self) -> u8
pub const fn hsitrim(&self) -> u8
HSI clock trimming The value of this bitfield contributes to the HSICAL[7:0] bitfield value. It allows HSI clock frequency user trimming. The HSI frequency accuracy as stated in the device datasheet applies when this bitfield is left at its reset value.
pub fn set_hsitrim(&mut self, val: u8)
pub fn set_hsitrim(&mut self, val: u8)
HSI clock trimming The value of this bitfield contributes to the HSICAL[7:0] bitfield value. It allows HSI clock frequency user trimming. The HSI frequency accuracy as stated in the device datasheet applies when this bitfield is left at its reset value.
Trait Implementations§
impl Copy for Icscr
impl Eq for Icscr
impl StructuralPartialEq for Icscr
Auto Trait Implementations§
impl Freeze for Icscr
impl RefUnwindSafe for Icscr
impl Send for Icscr
impl Sync for Icscr
impl Unpin for Icscr
impl UnwindSafe for Icscr
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
)