Skip to main content

InternalRefClock

Struct InternalRefClock 

Source
pub struct InternalRefClock<POut, PIn> { /* private fields */ }
Expand description

RMII reference clock derived from the ESP32-P4 MPLL at 50 MHz.

The MPLL output is driven out on a REF_50M_CLK output pad (GPIO23 or GPIO39) and must be looped back externally into one of the EMAC_RMII_CLK input pads (GPIO32, GPIO44, or GPIO50).

Implementations§

Source§

impl<POut, PIn> InternalRefClock<POut, PIn>

Source

pub fn new(ref_clk_out: POut, ref_clk_in: PIn) -> Self

Creates an internal MPLL clock configuration.

  • ref_clk_out — the pad that will output the 50 MHz REF_50M_CLK signal (GPIO23 or GPIO39).
  • ref_clk_in — the pad that receives the looped-back signal (GPIO32, GPIO44, or GPIO50).

Trait Implementations§

Source§

impl<POut: RmiiClkOut, PIn: RmiiClkIn> RmiiClockConfig for InternalRefClock<POut, PIn>

Available on crate feature unstable only.
Source§

fn configure(self)

Configures the hardware for RMII, including the clock input/output GPIO pad. Read more

Auto Trait Implementations§

§

impl<POut, PIn> Freeze for InternalRefClock<POut, PIn>
where POut: Freeze, PIn: Freeze,

§

impl<POut, PIn> RefUnwindSafe for InternalRefClock<POut, PIn>
where POut: RefUnwindSafe, PIn: RefUnwindSafe,

§

impl<POut, PIn> Send for InternalRefClock<POut, PIn>
where POut: Send, PIn: Send,

§

impl<POut, PIn> Sync for InternalRefClock<POut, PIn>
where POut: Sync, PIn: Sync,

§

impl<POut, PIn> Unpin for InternalRefClock<POut, PIn>
where POut: Unpin, PIn: Unpin,

§

impl<POut, PIn> UnsafeUnpin for InternalRefClock<POut, PIn>
where POut: UnsafeUnpin, PIn: UnsafeUnpin,

§

impl<POut, PIn> UnwindSafe for InternalRefClock<POut, PIn>
where POut: UnwindSafe, PIn: UnwindSafe,

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

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> Same for T

Source§

type Output = T

Should always be Self
§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.