nxp-pac

Crates

git

Versions

mcxa537

Flavors

PllSic

Struct PllSic 

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

PLL SIC. F70RM 42.7.10 (text line 104936). Preserve reserved reset values; PLL_LOCK is read-only. PLL_DIV_SEL legal codes 0,1,2,4,5,6,7 select 32,30,24,20,19.2,16,12 MHz; 3 is unusable for USB and 7 may have marginal jitter. PLL_PREDIV optionally divides reference by 2. Enable regulator at least 15 us before PLL_POWER. Main and multiphase clock outputs require PLL_POWER first.

Tuple Fields§

§0: u32

Implementations§

Source§

impl PllSic

Source

pub const fn misc2_control0(&self) -> bool

Miscellaneous Control. Raw encoding: 0b - Power up PLL; 1b - Power down PLL.

Source

pub const fn set_misc2_control0(&mut self, val: bool)

Miscellaneous Control. Raw encoding: 0b - Power up PLL; 1b - Power down PLL.

Source

pub const fn pll_en_usb_clks(&self) -> bool

PLL Multi-Phase Clock Outputs Enable. Raw encoding: 0b - Disable; 1b - Enable.

Source

pub const fn set_pll_en_usb_clks(&mut self, val: bool)

PLL Multi-Phase Clock Outputs Enable. Raw encoding: 0b - Disable; 1b - Enable.

Source

pub const fn pll_power(&self) -> bool

USB PLL Powerup Control. Raw encoding: 0b - Power down; 1b - Allow powerup.

Source

pub const fn set_pll_power(&mut self, val: bool)

USB PLL Powerup Control. Raw encoding: 0b - Power down; 1b - Allow powerup.

Source

pub const fn pll_enable(&self) -> bool

PLL Output Clock Enable. Raw encoding: 0b - Disable; 1b - Enable.

Source

pub const fn set_pll_enable(&mut self, val: bool)

PLL Output Clock Enable. Raw encoding: 0b - Disable; 1b - Enable.

Source

pub const fn pll_bypass(&self) -> bool

Bypass USB PLL. Raw encoding: 0b - 480 MHz output clock; 1b - Input reference clock.

Source

pub const fn set_pll_bypass(&mut self, val: bool)

Bypass USB PLL. Raw encoding: 0b - 480 MHz output clock; 1b - Input reference clock.

Source

pub const fn refbias_pwd_sel(&self) -> bool

Reference Bias Power Control. Raw encoding: 0b - PLL_POWER internal state signal; 1b - REFBIAS_PWD.

Source

pub const fn set_refbias_pwd_sel(&mut self, val: bool)

Reference Bias Power Control. Raw encoding: 0b - PLL_POWER internal state signal; 1b - REFBIAS_PWD.

Source

pub const fn refbias_pwd(&self) -> bool

Power Down Reference Bias. Raw encoding: 0b - Enable; 1b - Disable or power down.

Source

pub const fn set_refbias_pwd(&mut self, val: bool)

Power Down Reference Bias. Raw encoding: 0b - Enable; 1b - Disable or power down.

Source

pub const fn pll_reg_enable(&self) -> bool

Enable PLL Regulator. Raw encoding: 0b - Disable; 1b - Enable.

Source

pub const fn set_pll_reg_enable(&mut self, val: bool)

Enable PLL Regulator. Raw encoding: 0b - Disable; 1b - Enable.

Source

pub const fn pll_div_sel(&self) -> u8

PLL Divider Value Configuration. Raw encoding: 000b - Configure for a 32 MHz input clock (divide by 15); 001b - Configure for a 30 MHz input clock (divide by 16); 010b - Configure for a 24 MHz input clock (divide by 20); 011b - Reserved, not usable for USB operation (divide by 22); 100b - Configure for a 20 MHz input clock (divide by 24); 101b - Configure for a 19.2 MHz input clock (divide by 25); 110b - Configure for a 16 MHz input clock (divide by 30); 111b - Configure for a 12 MHz input clock (divide by 40).

Source

pub const fn set_pll_div_sel(&mut self, val: u8)

PLL Divider Value Configuration. Raw encoding: 000b - Configure for a 32 MHz input clock (divide by 15); 001b - Configure for a 30 MHz input clock (divide by 16); 010b - Configure for a 24 MHz input clock (divide by 20); 011b - Reserved, not usable for USB operation (divide by 22); 100b - Configure for a 20 MHz input clock (divide by 24); 101b - Configure for a 19.2 MHz input clock (divide by 25); 110b - Configure for a 16 MHz input clock (divide by 30); 111b - Configure for a 12 MHz input clock (divide by 40).

Source

pub const fn pll_prediv(&self) -> bool

PLL Pre-Divider. Raw encoding: 0b - Uses the undivided reference clock for PLL loop; 1b - Divides the reference clock by two for PLL loop.

Source

pub const fn set_pll_prediv(&mut self, val: bool)

PLL Pre-Divider. Raw encoding: 0b - Uses the undivided reference clock for PLL loop; 1b - Divides the reference clock by two for PLL loop.

Source

pub const fn pll_lock(&self) -> bool

USB PLL Lock Status Indicator. Read-only status/value; writes do not configure this field. Raw encoding: 0b - Not locked; 1b - Locked.

Source

pub const fn set_pll_lock(&mut self, val: bool)

USB PLL Lock Status Indicator. Read-only status/value; writes do not configure this field. Raw encoding: 0b - Not locked; 1b - Locked.

Trait Implementations§

Source§

impl Clone for PllSic

Source§

fn clone(&self) -> PllSic

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for PllSic

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for PllSic

Source§

fn default() -> PllSic

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

impl PartialEq for PllSic

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for PllSic

Source§

impl Eq for PllSic

Source§

impl StructuralPartialEq for PllSic

Auto Trait Implementations§

§

impl Freeze for PllSic

§

impl RefUnwindSafe for PllSic

§

impl Send for PllSic

§

impl Sync for PllSic

§

impl Unpin for PllSic

§

impl UnwindSafe for PllSic

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