Struct Pllfracr
#[repr(transparent)]pub struct Pllfracr(pub u32);Expand description
RCC PLLx fractional divider register
Tuple Fields§
§0: u32Implementations§
§impl Pllfracr
impl Pllfracr
pub const fn pllfracn(&self) -> u16
pub const fn pllfracn(&self) -> u16
fractional part of the multiplication factor for PLLx VCO Set and reset by software to control the fractional part of the multiplication factor of the VCO. These bits can be written at any time, allowing dynamic fine-tuning of the PLLx VCO. The software must set correctly these bits to insure that the VCO output frequency is between its valid frequency range, that is: * 128 to 560 MHz if PLLxVCOSEL = 0 * 150 to 420 MHz if PLLxVCOSEL = 1 VCO output frequency = Frefx_ck x (PLLxN + (PLLxFRACN / 213)), with * PLLxN between 8 and 420 * PLLxFRACN can be between 0 and 213- 1 * The input frequency Frefx_ck must be between 1 and 16 MHz. To change the PLLxFRACN value on-the-fly even if the PLL is enabled, the application must proceed as follows: * Set the bit PLLxFRACEN to 0 * Write the new fractional value into PLLxFRACN * Set the bit PLLxFRACEN to 1
pub const fn set_pllfracn(&mut self, val: u16)
pub const fn set_pllfracn(&mut self, val: u16)
fractional part of the multiplication factor for PLLx VCO Set and reset by software to control the fractional part of the multiplication factor of the VCO. These bits can be written at any time, allowing dynamic fine-tuning of the PLLx VCO. The software must set correctly these bits to insure that the VCO output frequency is between its valid frequency range, that is: * 128 to 560 MHz if PLLxVCOSEL = 0 * 150 to 420 MHz if PLLxVCOSEL = 1 VCO output frequency = Frefx_ck x (PLLxN + (PLLxFRACN / 213)), with * PLLxN between 8 and 420 * PLLxFRACN can be between 0 and 213- 1 * The input frequency Frefx_ck must be between 1 and 16 MHz. To change the PLLxFRACN value on-the-fly even if the PLL is enabled, the application must proceed as follows: * Set the bit PLLxFRACEN to 0 * Write the new fractional value into PLLxFRACN * Set the bit PLLxFRACEN to 1