PhaseLockedLoop

Struct PhaseLockedLoop 

Source
pub struct PhaseLockedLoop<S, D>{ /* private fields */ }
Expand description

A PLL.

Implementations§

Source§

impl<S, D> PhaseLockedLoop<S, D>

Source

pub fn free(self) -> D

Releases the underlying device.

Source§

impl<D> PhaseLockedLoop<Disabled, D>

Source

pub fn new( dev: D, xosc_frequency: Rate<u32, 1, 1>, config: PLLConfig, ) -> Result<PhaseLockedLoop<Disabled, D>, Error>

Instantiates a new Phase-Locked-Loop device.

Source

pub fn initialize(self, resets: &mut RESETS) -> PhaseLockedLoop<Locking, D>

Configures and starts the PLL : it switches to Locking state.

Source§

impl<D> PhaseLockedLoop<Locking, D>

Source

pub fn await_lock(&self) -> Result<LockedPLLToken<D>, Error<Infallible>>

Awaits locking of the PLL.

Source

pub fn get_locked(self, _token: LockedPLLToken<D>) -> PhaseLockedLoop<Locked, D>

Exchanges a token for a Locked PLL.

Source§

impl<D> PhaseLockedLoop<Locked, D>

Source

pub fn operating_frequency(&self) -> Rate<u32, 1, 1>

Get the operating frequency for the PLL

Source

pub fn disable(self) -> PhaseLockedLoop<Disabled, D>

Shut down the PLL. The returned PLL is configured the same as it was originally.

Trait Implementations§

Source§

impl ClockSource for PhaseLockedLoop<Locked, PLL_SYS>

Source§

fn get_freq(&self) -> Rate<u32, 1, 1>

Get the operating frequency for this source Read more
Source§

impl ClockSource for PhaseLockedLoop<Locked, PLL_USB>

Source§

fn get_freq(&self) -> Rate<u32, 1, 1>

Get the operating frequency for this source Read more
Source§

impl ValidSrc<AdcClock> for PhaseLockedLoop<Locked, PLL_SYS>

Source§

fn is_aux(&self) -> bool

Is this a ClockSource for src or aux?
Source§

fn variant(&self) -> ClkAdcSrcType

Get register value for this ClockSource
Source§

impl ValidSrc<AdcClock> for PhaseLockedLoop<Locked, PLL_USB>

Source§

fn is_aux(&self) -> bool

Is this a ClockSource for src or aux?
Source§

fn variant(&self) -> ClkAdcSrcType

Get register value for this ClockSource
Source§

impl ValidSrc<GpioOutput0Clock> for PhaseLockedLoop<Locked, PLL_SYS>

Source§

fn is_aux(&self) -> bool

Is this a ClockSource for src or aux?
Source§

fn variant(&self) -> ClkGpout0SrcType

Get register value for this ClockSource
Source§

impl ValidSrc<GpioOutput0Clock> for PhaseLockedLoop<Locked, PLL_USB>

Source§

fn is_aux(&self) -> bool

Is this a ClockSource for src or aux?
Source§

fn variant(&self) -> ClkGpout0SrcType

Get register value for this ClockSource
Source§

impl ValidSrc<GpioOutput1Clock> for PhaseLockedLoop<Locked, PLL_SYS>

Source§

fn is_aux(&self) -> bool

Is this a ClockSource for src or aux?
Source§

fn variant(&self) -> ClkGpout1SrcType

Get register value for this ClockSource
Source§

impl ValidSrc<GpioOutput1Clock> for PhaseLockedLoop<Locked, PLL_USB>

Source§

fn is_aux(&self) -> bool

Is this a ClockSource for src or aux?
Source§

fn variant(&self) -> ClkGpout1SrcType

Get register value for this ClockSource
Source§

impl ValidSrc<GpioOutput2Clock> for PhaseLockedLoop<Locked, PLL_SYS>

Source§

fn is_aux(&self) -> bool

Is this a ClockSource for src or aux?
Source§

fn variant(&self) -> ClkGpout2SrcType

Get register value for this ClockSource
Source§

impl ValidSrc<GpioOutput2Clock> for PhaseLockedLoop<Locked, PLL_USB>

Source§

fn is_aux(&self) -> bool

Is this a ClockSource for src or aux?
Source§

fn variant(&self) -> ClkGpout2SrcType

Get register value for this ClockSource
Source§

impl ValidSrc<GpioOutput3Clock> for PhaseLockedLoop<Locked, PLL_SYS>

Source§

fn is_aux(&self) -> bool

Is this a ClockSource for src or aux?
Source§

fn variant(&self) -> ClkGpout3SrcType

Get register value for this ClockSource
Source§

impl ValidSrc<GpioOutput3Clock> for PhaseLockedLoop<Locked, PLL_USB>

Source§

fn is_aux(&self) -> bool

Is this a ClockSource for src or aux?
Source§

fn variant(&self) -> ClkGpout3SrcType

Get register value for this ClockSource
Source§

impl ValidSrc<HstxClock> for PhaseLockedLoop<Locked, PLL_SYS>

Source§

fn is_aux(&self) -> bool

Is this a ClockSource for src or aux?
Source§

fn variant(&self) -> ClkHstxSrcType

Get register value for this ClockSource
Source§

impl ValidSrc<HstxClock> for PhaseLockedLoop<Locked, PLL_USB>

Source§

fn is_aux(&self) -> bool

Is this a ClockSource for src or aux?
Source§

fn variant(&self) -> ClkHstxSrcType

Get register value for this ClockSource
Source§

impl ValidSrc<PeripheralClock> for PhaseLockedLoop<Locked, PLL_SYS>

Source§

fn is_aux(&self) -> bool

Is this a ClockSource for src or aux?
Source§

fn variant(&self) -> ClkPeriSrcType

Get register value for this ClockSource
Source§

impl ValidSrc<PeripheralClock> for PhaseLockedLoop<Locked, PLL_USB>

Source§

fn is_aux(&self) -> bool

Is this a ClockSource for src or aux?
Source§

fn variant(&self) -> ClkPeriSrcType

Get register value for this ClockSource
Source§

impl ValidSrc<ReferenceClock> for PhaseLockedLoop<Locked, PLL_USB>

Source§

fn is_aux(&self) -> bool

Is this a ClockSource for src or aux?
Source§

fn variant(&self) -> ClkRefSrcType

Get register value for this ClockSource
Source§

impl ValidSrc<SystemClock> for PhaseLockedLoop<Locked, PLL_SYS>

Source§

fn is_aux(&self) -> bool

Is this a ClockSource for src or aux?
Source§

fn variant(&self) -> ClkSysSrcType

Get register value for this ClockSource
Source§

impl ValidSrc<SystemClock> for PhaseLockedLoop<Locked, PLL_USB>

Source§

fn is_aux(&self) -> bool

Is this a ClockSource for src or aux?
Source§

fn variant(&self) -> ClkSysSrcType

Get register value for this ClockSource
Source§

impl ValidSrc<UsbClock> for PhaseLockedLoop<Locked, PLL_SYS>

Source§

fn is_aux(&self) -> bool

Is this a ClockSource for src or aux?
Source§

fn variant(&self) -> ClkUsbSrcType

Get register value for this ClockSource
Source§

impl ValidSrc<UsbClock> for PhaseLockedLoop<Locked, PLL_USB>

Source§

fn is_aux(&self) -> bool

Is this a ClockSource for src or aux?
Source§

fn variant(&self) -> ClkUsbSrcType

Get register value for this ClockSource

Auto Trait Implementations§

§

impl<S, D> Freeze for PhaseLockedLoop<S, D>
where D: Freeze, S: Freeze,

§

impl<S, D> RefUnwindSafe for PhaseLockedLoop<S, D>

§

impl<S, D> Send for PhaseLockedLoop<S, D>
where D: Send, S: Send,

§

impl<S, D> Sync for PhaseLockedLoop<S, D>
where D: Sync, S: Sync,

§

impl<S, D> Unpin for PhaseLockedLoop<S, D>
where D: Unpin, S: Unpin,

§

impl<S, D> UnwindSafe for PhaseLockedLoop<S, D>
where D: UnwindSafe, S: UnwindSafe,

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<Choices> CoproductSubsetter<CNil, HNil> for Choices

Source§

type Remainder = Choices

Source§

fn subset( self, ) -> Result<CNil, <Choices as CoproductSubsetter<CNil, HNil>>::Remainder>

Extract a subset of the possible types in a coproduct (or get the remaining possibilities) 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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Is for T
where T: Sealed + Borrow<T> + BorrowMut<T>,

Source§

type Type = T

Source§

impl<T, U, I> LiftInto<U, I> for T
where U: LiftFrom<T, I>,

Source§

fn lift_into(self) -> U

Performs the indexed conversion.
Source§

impl<Source> Sculptor<HNil, HNil> for Source

Source§

type Remainder = Source

Source§

fn sculpt(self) -> (HNil, <Source as Sculptor<HNil, HNil>>::Remainder)

Consumes the current HList and returns an HList with the requested shape. Read more
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.