Struct Icscr1
#[repr(transparent)]pub struct Icscr1(pub u32);Expand description
RCC internal clock sources calibration register 1
Tuple Fields§
§0: u32Implementations§
§impl Icscr1
impl Icscr1
pub const fn msical(&self, n: usize) -> u8
pub const fn msical(&self, n: usize) -> u8
MSIRCx clock calibration for MSI ranges 4x to 4x+3 (x = 0..3) These bits are initialized at startup with the factory-programmed MSIRCx calibration trim value for ranges 4x to 4x+3 (x = 0..3). When MSITRIMx is written, MSICALx is updated with the sum of MSITRIMx[4:0] and the factory-programmed calibration trim value MSIRCx[4:0].
pub const fn set_msical(&mut self, n: usize, val: u8)
pub const fn set_msical(&mut self, n: usize, val: u8)
MSIRCx clock calibration for MSI ranges 4x to 4x+3 (x = 0..3) These bits are initialized at startup with the factory-programmed MSIRCx calibration trim value for ranges 4x to 4x+3 (x = 0..3). When MSITRIMx is written, MSICALx is updated with the sum of MSITRIMx[4:0] and the factory-programmed calibration trim value MSIRCx[4:0].
pub const fn msibias(&self) -> Msibias
pub const fn msibias(&self) -> Msibias
MSI bias mode selection Set by software to select the MSI bias mode. By default, the MSI bias is in continuous mode in order to maintain the output clocks accuracy. Setting this bit reduces the MSI consumption under range 4 but decrease its accuracy.
pub const fn set_msibias(&mut self, val: Msibias)
pub const fn set_msibias(&mut self, val: Msibias)
MSI bias mode selection Set by software to select the MSI bias mode. By default, the MSI bias is in continuous mode in order to maintain the output clocks accuracy. Setting this bit reduces the MSI consumption under range 4 but decrease its accuracy.
pub const fn msirgsel(&self) -> Msirgsel
pub const fn msirgsel(&self) -> Msirgsel
MSI clock range selection Set by software to select the MSIS and MSIK clocks range with MSISRANGE[3:0] and MSIKRANGE[3:0]. Write 0 has no effect. After exiting Standby or Shutdown mode, or after a reset, this bit is at 0 and the MSIS and MSIK ranges are provided by MSISSRANGE[3:0] and MSIKSRANGE[3:0] in RCC_CSR.
pub const fn set_msirgsel(&mut self, val: Msirgsel)
pub const fn set_msirgsel(&mut self, val: Msirgsel)
MSI clock range selection Set by software to select the MSIS and MSIK clocks range with MSISRANGE[3:0] and MSIKRANGE[3:0]. Write 0 has no effect. After exiting Standby or Shutdown mode, or after a reset, this bit is at 0 and the MSIS and MSIK ranges are provided by MSISSRANGE[3:0] and MSIKSRANGE[3:0] in RCC_CSR.
pub const fn msikrange(&self) -> Msirange
pub const fn msikrange(&self) -> Msirange
MSIK clock ranges These bits are configured by software to choose the frequency range of MSIK oscillator when MSIRGSEL is set. 16 frequency ranges are available: Note: MSIKRANGE can be modified when MSIK is OFF (MSISON = 0) or when MSIK is ready (MSIKRDY = 1). MSIKRANGE must NOT be modified when MSIK is ON and NOT ready (MSIKON = 1 and MSIKRDY = 0) MSIKRANGE is kept when the device wakes up from Stop mode, except when the MSIK range is above 24 MHz. In this case MSIKRANGE is changed by hardware into Range 2 (24 MHz).
pub const fn set_msikrange(&mut self, val: Msirange)
pub const fn set_msikrange(&mut self, val: Msirange)
MSIK clock ranges These bits are configured by software to choose the frequency range of MSIK oscillator when MSIRGSEL is set. 16 frequency ranges are available: Note: MSIKRANGE can be modified when MSIK is OFF (MSISON = 0) or when MSIK is ready (MSIKRDY = 1). MSIKRANGE must NOT be modified when MSIK is ON and NOT ready (MSIKON = 1 and MSIKRDY = 0) MSIKRANGE is kept when the device wakes up from Stop mode, except when the MSIK range is above 24 MHz. In this case MSIKRANGE is changed by hardware into Range 2 (24 MHz).
pub const fn msisrange(&self) -> Msirange
pub const fn msisrange(&self) -> Msirange
MSIS clock ranges These bits are configured by software to choose the frequency range of MSIS oscillator when MSIRGSEL is set. 16 frequency ranges are available: Note: MSISRANGE can be modified when MSIS is OFF (MSISON = 0) or when MSIS is ready (MSISRDY = 1). MSISRANGE must NOT be modified when MSIS is ON and NOT ready (MSISON = 1 and MSISRDY = 0) MSISRANGE is kept when the device wakes up from Stop mode, except when the MSIS range is above 24 MHz. In this case MSISRANGE is changed by hardware into Range 2 (24 MHz).
pub const fn set_msisrange(&mut self, val: Msirange)
pub const fn set_msisrange(&mut self, val: Msirange)
MSIS clock ranges These bits are configured by software to choose the frequency range of MSIS oscillator when MSIRGSEL is set. 16 frequency ranges are available: Note: MSISRANGE can be modified when MSIS is OFF (MSISON = 0) or when MSIS is ready (MSISRDY = 1). MSISRANGE must NOT be modified when MSIS is ON and NOT ready (MSISON = 1 and MSISRDY = 0) MSISRANGE is kept when the device wakes up from Stop mode, except when the MSIS range is above 24 MHz. In this case MSISRANGE is changed by hardware into Range 2 (24 MHz).