pub struct DpllToken<D: DpllId> { /* private fields */ }
Expand description
Singleton token that can be exchanged for a Dpll
As explained in the clock
module documentation, instances of
various Token
types can be exchanged for actual clock types. They
typically represent clocks that are disabled at power-on reset.
DpllToken
s are no different. Both Dpll
s are disabled at power-on
reset. To use a Dpll
, you must first exchange the token for an actual
clock with Dpll::from_pclk
, Dpll::from_xosc
or
Dpll::from_xosc32k
.
DpllToken
is generic over the DpllId
, where each corresponding token
represents one of the two respective Dpll
s.
Auto Trait Implementations
impl<D> RefUnwindSafe for DpllToken<D>where
D: RefUnwindSafe,
impl<D> Send for DpllToken<D>where
D: Send,
impl<D> Sync for DpllToken<D>where
D: Sync,
impl<D> Unpin for DpllToken<D>where
D: Unpin,
impl<D> UnwindSafe for DpllToken<D>where
D: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more