#[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: u32Implementations§
Source§impl PllSic
impl PllSic
Sourcepub const fn misc2_control0(&self) -> bool
pub const fn misc2_control0(&self) -> bool
Miscellaneous Control. Raw encoding: 0b - Power up PLL; 1b - Power down PLL.
Sourcepub const fn set_misc2_control0(&mut self, val: bool)
pub const fn set_misc2_control0(&mut self, val: bool)
Miscellaneous Control. Raw encoding: 0b - Power up PLL; 1b - Power down PLL.
Sourcepub const fn pll_en_usb_clks(&self) -> bool
pub const fn pll_en_usb_clks(&self) -> bool
PLL Multi-Phase Clock Outputs Enable. Raw encoding: 0b - Disable; 1b - Enable.
Sourcepub const fn set_pll_en_usb_clks(&mut self, val: bool)
pub const fn set_pll_en_usb_clks(&mut self, val: bool)
PLL Multi-Phase Clock Outputs Enable. Raw encoding: 0b - Disable; 1b - Enable.
Sourcepub const fn pll_power(&self) -> bool
pub const fn pll_power(&self) -> bool
USB PLL Powerup Control. Raw encoding: 0b - Power down; 1b - Allow powerup.
Sourcepub const fn set_pll_power(&mut self, val: bool)
pub const fn set_pll_power(&mut self, val: bool)
USB PLL Powerup Control. Raw encoding: 0b - Power down; 1b - Allow powerup.
Sourcepub const fn pll_enable(&self) -> bool
pub const fn pll_enable(&self) -> bool
PLL Output Clock Enable. Raw encoding: 0b - Disable; 1b - Enable.
Sourcepub const fn set_pll_enable(&mut self, val: bool)
pub const fn set_pll_enable(&mut self, val: bool)
PLL Output Clock Enable. Raw encoding: 0b - Disable; 1b - Enable.
Sourcepub const fn pll_bypass(&self) -> bool
pub const fn pll_bypass(&self) -> bool
Bypass USB PLL. Raw encoding: 0b - 480 MHz output clock; 1b - Input reference clock.
Sourcepub const fn set_pll_bypass(&mut self, val: bool)
pub const fn set_pll_bypass(&mut self, val: bool)
Bypass USB PLL. Raw encoding: 0b - 480 MHz output clock; 1b - Input reference clock.
Sourcepub const fn refbias_pwd_sel(&self) -> bool
pub const fn refbias_pwd_sel(&self) -> bool
Reference Bias Power Control. Raw encoding: 0b - PLL_POWER internal state signal; 1b - REFBIAS_PWD.
Sourcepub const fn set_refbias_pwd_sel(&mut self, val: bool)
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.
Sourcepub const fn refbias_pwd(&self) -> bool
pub const fn refbias_pwd(&self) -> bool
Power Down Reference Bias. Raw encoding: 0b - Enable; 1b - Disable or power down.
Sourcepub const fn set_refbias_pwd(&mut self, val: bool)
pub const fn set_refbias_pwd(&mut self, val: bool)
Power Down Reference Bias. Raw encoding: 0b - Enable; 1b - Disable or power down.
Sourcepub const fn pll_reg_enable(&self) -> bool
pub const fn pll_reg_enable(&self) -> bool
Enable PLL Regulator. Raw encoding: 0b - Disable; 1b - Enable.
Sourcepub const fn set_pll_reg_enable(&mut self, val: bool)
pub const fn set_pll_reg_enable(&mut self, val: bool)
Enable PLL Regulator. Raw encoding: 0b - Disable; 1b - Enable.
Sourcepub const fn pll_div_sel(&self) -> u8
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).
Sourcepub const fn set_pll_div_sel(&mut self, val: u8)
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).
Sourcepub const fn pll_prediv(&self) -> bool
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.
Sourcepub const fn set_pll_prediv(&mut self, val: bool)
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.
Sourcepub const fn pll_lock(&self) -> bool
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.
Sourcepub const fn set_pll_lock(&mut self, val: bool)
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.