pub struct UsbClock { /* private fields */ }Expand description
USB reference clock.
Must be 48MHz.
Trait Implementations§
Source§impl Clock for UsbClock
impl Clock for UsbClock
Source§fn configure_clock<S>(
&mut self,
src: &S,
freq: Rate<u32, 1, 1>,
) -> Result<(), ClockError>
fn configure_clock<S>( &mut self, src: &S, freq: Rate<u32, 1, 1>, ) -> Result<(), ClockError>
Configure UsbClock
Source§type Variant = ClkUsbSrcType
type Variant = ClkUsbSrcType
Enum with valid source clocks register values for
ClockSource§impl ClockSource for UsbClock
impl ClockSource for UsbClock
Source§impl StoppableClock for UsbClock
impl StoppableClock for UsbClock
Source§impl ValidSrc<GpioOutput0Clock> for UsbClock
impl ValidSrc<GpioOutput0Clock> for UsbClock
Source§impl ValidSrc<GpioOutput1Clock> for UsbClock
impl ValidSrc<GpioOutput1Clock> for UsbClock
Source§impl ValidSrc<GpioOutput2Clock> for UsbClock
impl ValidSrc<GpioOutput2Clock> for UsbClock
Source§impl ValidSrc<GpioOutput3Clock> for UsbClock
impl ValidSrc<GpioOutput3Clock> for UsbClock
Auto Trait Implementations§
impl Freeze for UsbClock
impl RefUnwindSafe for UsbClock
impl Send for UsbClock
impl Sync for UsbClock
impl Unpin for UsbClock
impl UnwindSafe for UsbClock
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
Source§impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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