#[repr(transparent)]pub struct PllUsb2(pub u32);Expand description
Analog USB2 480MHz PLL Control Register
Tuple Fields§
§0: u32Implementations§
Source§impl PllUsb2
impl PllUsb2
Sourcepub const fn div_select(&self) -> bool
pub const fn div_select(&self) -> bool
This field controls the PLL loop divider. 0 - Fout=Fref20; 1 - Fout=Fref22.
Sourcepub const fn set_div_select(&mut self, val: bool)
pub const fn set_div_select(&mut self, val: bool)
This field controls the PLL loop divider. 0 - Fout=Fref20; 1 - Fout=Fref22.
Sourcepub const fn en_usb_clks(&self) -> bool
pub const fn en_usb_clks(&self) -> bool
0: 8-phase PLL outputs for USBPHY1 are powered down
Sourcepub const fn set_en_usb_clks(&mut self, val: bool)
pub const fn set_en_usb_clks(&mut self, val: bool)
0: 8-phase PLL outputs for USBPHY1 are powered down
Sourcepub const fn power(&self) -> bool
pub const fn power(&self) -> bool
Powers up the PLL. This bit will be set automatically when USBPHY1 remote wakeup event happens.
Sourcepub const fn set_power(&mut self, val: bool)
pub const fn set_power(&mut self, val: bool)
Powers up the PLL. This bit will be set automatically when USBPHY1 remote wakeup event happens.
Sourcepub const fn set_enable(&mut self, val: bool)
pub const fn set_enable(&mut self, val: bool)
Enable the PLL clock output.
Sourcepub const fn bypass_clk_src(&self) -> PllUsb2BypassClkSrc
pub const fn bypass_clk_src(&self) -> PllUsb2BypassClkSrc
Determines the bypass source.
Sourcepub const fn set_bypass_clk_src(&mut self, val: PllUsb2BypassClkSrc)
pub const fn set_bypass_clk_src(&mut self, val: PllUsb2BypassClkSrc)
Determines the bypass source.
Sourcepub const fn set_bypass(&mut self, val: bool)
pub const fn set_bypass(&mut self, val: bool)
Bypass the PLL.
Trait Implementations§
impl Copy for PllUsb2
impl Eq for PllUsb2
impl StructuralPartialEq for PllUsb2
Auto Trait Implementations§
impl Freeze for PllUsb2
impl RefUnwindSafe for PllUsb2
impl Send for PllUsb2
impl Sync for PllUsb2
impl Unpin for PllUsb2
impl UnwindSafe for PllUsb2
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more