Struct PllCfg

Source
pub struct PllCfg {
    pub enabled: bool,
    pub pllr_en: bool,
    pub pllq_en: bool,
    pub pllp_en: bool,
    pub divm: Pllm,
    pub divn: u8,
    pub divr: Pllr,
    pub divq: Pllr,
    pub divp: Pllp,
    pub pdiv: u8,
}
Expand description

Configures the speeds, and enable status of an individual PLL (PLL1, or SAIPLL). Note that the enable field has no effect for PLL1.

Fields§

§enabled: bool

Only relevant for PLLSAI1.

§pllr_en: bool§pllq_en: bool§pllp_en: bool§divm: Pllm

Only relevant for The main PLL.

§divn: u8§divr: Pllr§divq: Pllr§divp: Pllp§pdiv: u8

Defaults to 0, which causes the PLLP setting to take effect (of 7 or 17), instead of this field. Unused on “wb”, “wl”, “l4x5”, and “l4x3” variants.

Implementations§

Source§

impl PllCfg

Source

pub fn disabled() -> Self

Source

pub fn pvalue(&self) -> u8

Trait Implementations§

Source§

impl Default for PllCfg

Source§

fn default() -> Self

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

Auto Trait Implementations§

§

impl Freeze for PllCfg

§

impl RefUnwindSafe for PllCfg

§

impl Send for PllCfg

§

impl Sync for PllCfg

§

impl Unpin for PllCfg

§

impl UnwindSafe for PllCfg

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> 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 = Infallible

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.