stm32-metapac

Crates

git

Versions

stm32h5e5vk

Flavors

Skip to main content

Pllcfgr

Struct Pllcfgr 

#[repr(transparent)]
pub struct Pllcfgr(pub u32);
Expand description

RCC PLL clock source selection register

Tuple Fields§

§0: u32

Implementations§

§

impl Pllcfgr

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)

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

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)

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

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)

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

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)

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

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)

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

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)

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

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)

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

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)

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).

Trait Implementations§

§

impl Clone for Pllcfgr

§

fn clone(&self) -> Pllcfgr

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Copy for Pllcfgr

§

impl Default for Pllcfgr

§

fn default() -> Pllcfgr

Returns the “default value” for a type. Read more
§

impl Eq for Pllcfgr

§

impl PartialEq for Pllcfgr

§

fn eq(&self, other: &Pllcfgr) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
§

impl StructuralPartialEq for Pllcfgr

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.