Struct stm32_metapac::rcc::regs::Hsicfgr
#[repr(transparent)]pub struct Hsicfgr(pub u32);
Expand description
RCC HSI calibration register.
Tuple Fields§
§0: u32
Implementations§
§impl Hsicfgr
impl Hsicfgr
pub const fn hsical(&self) -> u16
pub const fn hsical(&self) -> u16
HSI clock calibration Set by hardware by option byte loading. Adjusted by software through trimming bits HSITRIM. This field represents the sum of engineering option byte calibration value and HSITRIM bits value.
pub fn set_hsical(&mut self, val: u16)
pub fn set_hsical(&mut self, val: u16)
HSI clock calibration Set by hardware by option byte loading. Adjusted by software through trimming bits HSITRIM. This field represents the sum of engineering option byte calibration value and HSITRIM bits value.
pub const fn hsitrim(&self) -> u8
pub const fn hsitrim(&self) -> u8
HSI clock trimming Set by software to adjust calibration. HSITRIM field is added to the engineering option bytes loaded during reset phase (FLASH_HSI_opt) in order to form the calibration trimming value. HSICAL = HSITRIM + FLASH_HSI_opt. Note: The reset value of the field is 0x40.
pub fn set_hsitrim(&mut self, val: u8)
pub fn set_hsitrim(&mut self, val: u8)
HSI clock trimming Set by software to adjust calibration. HSITRIM field is added to the engineering option bytes loaded during reset phase (FLASH_HSI_opt) in order to form the calibration trimming value. HSICAL = HSITRIM + FLASH_HSI_opt. Note: The reset value of the field is 0x40.
Trait Implementations§
impl Copy for Hsicfgr
impl Eq for Hsicfgr
impl StructuralPartialEq for Hsicfgr
Auto Trait Implementations§
impl Freeze for Hsicfgr
impl RefUnwindSafe for Hsicfgr
impl Send for Hsicfgr
impl Sync for Hsicfgr
impl Unpin for Hsicfgr
impl UnwindSafe for Hsicfgr
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
)