Struct stm32_metapac::rcc::regs::Pll1fracr
#[repr(transparent)]pub struct Pll1fracr(pub u32);
Expand description
RCC PLL1 fractional divider register
Tuple Fields§
§0: u32
Implementations§
§impl Pll1fracr
impl Pll1fracr
pub const fn pllfracn(&self) -> u16
pub const fn pllfracn(&self) -> u16
Fractional part of the multiplication factor for PLL1 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 PLL1 VCO. VCO output frequency = Fref1_ck x [multiplication factor for PLL1 VCO + (PLL1FRACN / 213)], with: Multiplication factor for PLL1 VCO must be between 4 and 512. PLL1FRACN can be between 0 and 213- 1. The input frequency Fref1_ck must be between 4 and 16 MHz. To change the used fractional value on-the-fly even if the PLL1 is enabled, the application must proceed as follows: Set the bit PLL1FRACEN to 0. Write the new fractional value into PLL1FRACN. Set the bit PLL1FRACEN to 1.
pub fn set_pllfracn(&mut self, val: u16)
pub fn set_pllfracn(&mut self, val: u16)
Fractional part of the multiplication factor for PLL1 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 PLL1 VCO. VCO output frequency = Fref1_ck x [multiplication factor for PLL1 VCO + (PLL1FRACN / 213)], with: Multiplication factor for PLL1 VCO must be between 4 and 512. PLL1FRACN can be between 0 and 213- 1. The input frequency Fref1_ck must be between 4 and 16 MHz. To change the used fractional value on-the-fly even if the PLL1 is enabled, the application must proceed as follows: Set the bit PLL1FRACEN to 0. Write the new fractional value into PLL1FRACN. Set the bit PLL1FRACEN to 1.
Trait Implementations§
impl Copy for Pll1fracr
impl Eq for Pll1fracr
impl StructuralPartialEq for Pll1fracr
Auto Trait Implementations§
impl Freeze for Pll1fracr
impl RefUnwindSafe for Pll1fracr
impl Send for Pll1fracr
impl Sync for Pll1fracr
impl Unpin for Pll1fracr
impl UnwindSafe for Pll1fracr
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
)