Struct Pllcfgr
#[repr(transparent)]pub struct Pllcfgr(pub u32);Expand description
RCC PLL clock source selection register
Tuple Fields§
§0: u32Implementations§
§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 PLLxSRC must be set to ‘00’. 00: no clock send to DIVMx divider and PLLs (default after reset).
pub const fn set_pllsrc(&mut self, val: Pllsrc)
pub const 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 PLLxSRC 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
PLLx input frequency range Set and reset by software to select the proper reference frequency range used for PLLx. This bit must be written before enabling the PLLx.
pub const fn set_pllrge(&mut self, val: Pllrge)
pub const fn set_pllrge(&mut self, val: Pllrge)
PLLx input frequency range Set and reset by software to select the proper reference frequency range used for PLLx. This bit must be written before enabling the PLLx.
pub const fn pllfracen(&self) -> bool
pub const fn pllfracen(&self) -> bool
PLLx fractional latch enable Set and reset by software to latch the content of FRACNx into the sigma-delta modulator. In order to latch the FRACNx value into the sigma-delta modulator, PLLxFRACEN must be set to 0, then set to 1. The transition 0 to 1 transfers the content of FRACNx into the modulator.
pub const fn set_pllfracen(&mut self, val: bool)
pub const fn set_pllfracen(&mut self, val: bool)
PLLx fractional latch enable Set and reset by software to latch the content of FRACNx into the sigma-delta modulator. In order to latch the FRACNx value into the sigma-delta modulator, PLLxFRACEN must be set to 0, then set to 1. The transition 0 to 1 transfers the content of FRACNx into the modulator.
pub const fn pllvcosel(&self) -> Pllvcosel
pub const fn pllvcosel(&self) -> Pllvcosel
PLLx VCO selection Set and reset by software to select the proper VCO frequency range used for PLLx. This bit must be written before enabling the PLLx.
pub const fn set_pllvcosel(&mut self, val: Pllvcosel)
pub const fn set_pllvcosel(&mut self, val: Pllvcosel)
PLLx VCO selection Set and reset by software to select the proper VCO frequency range used for PLLx. This bit must be written before enabling the PLLx.
pub const fn pllm(&self) -> Pllm
pub const fn pllm(&self) -> Pllm
prescaler for PLLx Set and cleared by software to configure the prescaler of the PLLx. The hardware does not allow any modification of this prescaler when PLLx is enabled (PLLxON = 1 or PLLxRDY = 1). In order to save power when PLLx is not used, the value of DIVMx must be set to 0. … …
pub const fn set_pllm(&mut self, val: Pllm)
pub const fn set_pllm(&mut self, val: Pllm)
prescaler for PLLx Set and cleared by software to configure the prescaler of the PLLx. The hardware does not allow any modification of this prescaler when PLLx is enabled (PLLxON = 1 or PLLxRDY = 1). In order to save power when PLLx is not used, the value of DIVMx must be set to 0. … …
pub const fn pllpen(&self) -> bool
pub const fn pllpen(&self) -> bool
PLLx DIVP divider output enable Set and reset by software to enable the pllx_p_ck output of the PLLx. This bit can be written only when the PLLx is disabled (PLLxON = 0 and PLLxRDY = 0). In order to save power, when the pllx_p_ck output of the PLLx is not used, the pllx_p_ck must be disabled.
pub const fn set_pllpen(&mut self, val: bool)
pub const fn set_pllpen(&mut self, val: bool)
PLLx DIVP divider output enable Set and reset by software to enable the pllx_p_ck output of the PLLx. This bit can be written only when the PLLx is disabled (PLLxON = 0 and PLLxRDY = 0). In order to save power, when the pllx_p_ck output of the PLLx is not used, the pllx_p_ck must be disabled.
pub const fn pllqen(&self) -> bool
pub const fn pllqen(&self) -> bool
PLLx DIVQ divider output enable Set and reset by software to enable the pllx_q_ck output of the PLLx. In order to save power, when the pllx_q_ck output of the PLLx is not used, the pllx_q_ck must be disabled. This bit can be written only when the PLLx is disabled (PLLxON = 0 and PLLxRDY = 0).
pub const fn set_pllqen(&mut self, val: bool)
pub const fn set_pllqen(&mut self, val: bool)
PLLx DIVQ divider output enable Set and reset by software to enable the pllx_q_ck output of the PLLx. In order to save power, when the pllx_q_ck output of the PLLx is not used, the pllx_q_ck must be disabled. This bit can be written only when the PLLx is disabled (PLLxON = 0 and PLLxRDY = 0).
pub const fn pllren(&self) -> bool
pub const fn pllren(&self) -> bool
PLLx DIVR divider output enable Set and reset by software to enable the pllx_r_ck output of the PLLx. To save power, DIVRxEN and DIVRx bits must be set to 0 when the pllx_r_ck is not used. This bit can be written only when the PLLx is disabled (PLLxON = 0 and PLLxRDY = 0).
pub const fn set_pllren(&mut self, val: bool)
pub const fn set_pllren(&mut self, val: bool)
PLLx DIVR divider output enable Set and reset by software to enable the pllx_r_ck output of the PLLx. To save power, DIVRxEN and DIVRx bits must be set to 0 when the pllx_r_ck is not used. This bit can be written only when the PLLx is disabled (PLLxON = 0 and PLLxRDY = 0).