pub struct BoardConfig {
pub rmii_pins: RmiiPinConfig,
pub mdio_pins: MdioPinConfig,
pub phy_reset: PhyResetPinConfig,
pub ref_clock: RefClockPin,
pub phy_addr: u8,
}Expand description
Top-level hardware description used by the EMAC bring-up path.
Fields§
§rmii_pins: RmiiPinConfigRMII data-plane pin assignment (TXD0/1, RXD0/1, TX_EN, CRS_DV).
mdio_pins: MdioPinConfigMDIO management bus pin assignment (MDC, MDIO).
phy_reset: PhyResetPinConfigPHY hardware reset pin (active level encoded in the struct).
ref_clock: RefClockPinPad that receives the 50 MHz RMII reference clock from the PHY.
phy_addr: u8MDIO address strap for the PHY (0..31).
Implementations§
Source§impl BoardConfig
impl BoardConfig
Sourcepub const WAVESHARE_P4_ETH: Self
pub const WAVESHARE_P4_ETH: Self
Layout used by the Waveshare ESP32-P4-ETH dev board (IP101GRI PHY).
- RMII data: TXD0=GPIO34, TXD1=GPIO35, TX_EN=GPIO49, RXD0=GPIO30, RXD1=GPIO29, CRS_DV=GPIO28
- MDIO: MDC=GPIO31, MDIO=GPIO52
- PHY reset: GPIO51 (active low)
- Reference clock input: GPIO50
- PHY MDIO address: 1 (Waveshare strap)
Trait Implementations§
Source§impl Clone for BoardConfig
impl Clone for BoardConfig
Source§fn clone(&self) -> BoardConfig
fn clone(&self) -> BoardConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BoardConfig
impl Debug for BoardConfig
impl Copy for BoardConfig
Auto Trait Implementations§
impl Freeze for BoardConfig
impl RefUnwindSafe for BoardConfig
impl Send for BoardConfig
impl Sync for BoardConfig
impl Unpin for BoardConfig
impl UnsafeUnpin for BoardConfig
impl UnwindSafe for BoardConfig
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