Struct stm32_metapac::rcc::regs::Pllcfgr
#[repr(transparent)]pub struct Pllcfgr(pub u32);
Expand description
RCC PLL clock source selection register
Tuple Fields§
§0: u32
Implementations§
§impl Pllcfgr
impl Pllcfgr
pub const fn pllsrc(&self) -> Pllsrc
pub const fn pllsrc(&self) -> Pllsrc
DIVMx and PLLs clock source selection Set and reset by software to select the PLL clock source. These bits can be written only when all PLLs are disabled. In order to save power, when no PLL is used, the value of PLL1SRC must be set to ‘00’. 00: no clock send to DIVMx divider and PLLs (default after reset).
pub fn set_pllsrc(&mut self, val: Pllsrc)
pub fn set_pllsrc(&mut self, val: Pllsrc)
DIVMx and PLLs clock source selection Set and reset by software to select the PLL clock source. These bits can be written only when all PLLs are disabled. In order to save power, when no PLL is used, the value of PLL1SRC must be set to ‘00’. 00: no clock send to DIVMx divider and PLLs (default after reset).
pub const fn pllrge(&self) -> Pllrge
pub const fn pllrge(&self) -> Pllrge
PLL1 input frequency range Set and reset by software to select the proper reference frequency range used for PLL1. This bit must be written before enabling the PLL1.
pub fn set_pllrge(&mut self, val: Pllrge)
pub fn set_pllrge(&mut self, val: Pllrge)
PLL1 input frequency range Set and reset by software to select the proper reference frequency range used for PLL1. This bit must be written before enabling the PLL1.
pub const fn pllfracen(&self) -> bool
pub const fn pllfracen(&self) -> bool
PLL1 fractional latch enable Set and reset by software to latch the content of FRACN1 into the sigma-delta modulator. In order to latch the FRACN1 value into the sigma-delta modulator, PLL1FRACEN must be set to 0, then set to 1. The transition 0 to 1 transfers the content of FRACN1 into the modulator.
pub fn set_pllfracen(&mut self, val: bool)
pub fn set_pllfracen(&mut self, val: bool)
PLL1 fractional latch enable Set and reset by software to latch the content of FRACN1 into the sigma-delta modulator. In order to latch the FRACN1 value into the sigma-delta modulator, PLL1FRACEN must be set to 0, then set to 1. The transition 0 to 1 transfers the content of FRACN1 into the modulator.
pub const fn pllvcosel(&self) -> Pllvcosel
pub const fn pllvcosel(&self) -> Pllvcosel
PLL1 VCO selection Set and reset by software to select the proper VCO frequency range used for PLL1. This bit must be written before enabling the PLL1.
pub fn set_pllvcosel(&mut self, val: Pllvcosel)
pub fn set_pllvcosel(&mut self, val: Pllvcosel)
PLL1 VCO selection Set and reset by software to select the proper VCO frequency range used for PLL1. This bit must be written before enabling the PLL1.
pub const fn divm(&self) -> Pllm
pub const fn divm(&self) -> Pllm
prescaler for PLL1 Set and cleared by software to configure the prescaler of the PLL1. The hardware does not allow any modification of this prescaler when PLL1 is enabled (PLL1ON = 1 or PLL1RDY = 1). In order to save power when PLL1 is not used, the value of DIVM1 must be set to 0. … …
pub fn set_divm(&mut self, val: Pllm)
pub fn set_divm(&mut self, val: Pllm)
prescaler for PLL1 Set and cleared by software to configure the prescaler of the PLL1. The hardware does not allow any modification of this prescaler when PLL1 is enabled (PLL1ON = 1 or PLL1RDY = 1). In order to save power when PLL1 is not used, the value of DIVM1 must be set to 0. … …
pub const fn pllpen(&self) -> bool
pub const fn pllpen(&self) -> bool
PLL1 DIVP divider output enable Set and reset by software to enable the pll1_p_ck output of the PLL1. This bit can be written only when the PLL1 is disabled (PLL1ON = 0 and PLL1RDY = 0). In order to save power, when the pll1_p_ck output of the PLL1 is not used, the pll1_p_ck must be disabled.
pub fn set_pllpen(&mut self, val: bool)
pub fn set_pllpen(&mut self, val: bool)
PLL1 DIVP divider output enable Set and reset by software to enable the pll1_p_ck output of the PLL1. This bit can be written only when the PLL1 is disabled (PLL1ON = 0 and PLL1RDY = 0). In order to save power, when the pll1_p_ck output of the PLL1 is not used, the pll1_p_ck must be disabled.
pub const fn pllqen(&self) -> bool
pub const fn pllqen(&self) -> bool
PLL1 DIVQ divider output enable Set and reset by software to enable the pll1_q_ck output of the PLL1. In order to save power, when the pll1_q_ck output of the PLL1 is not used, the pll1_q_ck must be disabled. This bit can be written only when the PLL1 is disabled (PLL1ON = 0 and PLL1RDY = 0).
pub fn set_pllqen(&mut self, val: bool)
pub fn set_pllqen(&mut self, val: bool)
PLL1 DIVQ divider output enable Set and reset by software to enable the pll1_q_ck output of the PLL1. In order to save power, when the pll1_q_ck output of the PLL1 is not used, the pll1_q_ck must be disabled. This bit can be written only when the PLL1 is disabled (PLL1ON = 0 and PLL1RDY = 0).
pub const fn pllren(&self) -> bool
pub const fn pllren(&self) -> bool
PLL1 DIVR divider output enable Set and reset by software to enable the pll1_r_ck output of the PLL1. To save power, DIVR1EN and DIVR1 bits must be set to 0 when the pll1_r_ck is not used. This bit can be written only when the PLL1 is disabled (PLL1ON = 0 and PLL1RDY = 0).
pub fn set_pllren(&mut self, val: bool)
pub fn set_pllren(&mut self, val: bool)
PLL1 DIVR divider output enable Set and reset by software to enable the pll1_r_ck output of the PLL1. To save power, DIVR1EN and DIVR1 bits must be set to 0 when the pll1_r_ck is not used. This bit can be written only when the PLL1 is disabled (PLL1ON = 0 and PLL1RDY = 0).
Trait Implementations§
impl Copy for Pllcfgr
impl Eq for Pllcfgr
impl StructuralPartialEq for Pllcfgr
Auto Trait Implementations§
impl Freeze for Pllcfgr
impl RefUnwindSafe for Pllcfgr
impl Send for Pllcfgr
impl Sync for Pllcfgr
impl Unpin for Pllcfgr
impl UnwindSafe for Pllcfgr
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
)