pub struct EthernetMAC { /* private fields */ }
Expand description
Ethernet media access control (MAC).
Implementations§
Source§impl EthernetMAC
impl EthernetMAC
Sourcepub fn mii<'eth, 'pins, Mdio, Mdc>(
&'eth mut self,
mdio: &'pins mut Mdio,
mdc: &'pins mut Mdc,
) -> Stm32Mii<'eth, 'pins, Mdio, Mdc>
pub fn mii<'eth, 'pins, Mdio, Mdc>( &'eth mut self, mdio: &'pins mut Mdio, mdc: &'pins mut Mdc, ) -> Stm32Mii<'eth, 'pins, Mdio, Mdc>
Borrow access to the MAC’s SMI.
Allows for controlling and monitoring any PHYs that may be accessible via the MDIO/MDC pins.
Exclusive access to the MDIO
and MDC
is required to ensure that are not used elsewhere
for the duration of Mii communication.
Sourcepub fn with_mii<MDIO, MDC>(
self,
mdio: MDIO,
mdc: MDC,
) -> EthernetMACWithMii<MDIO, MDC>
pub fn with_mii<MDIO, MDC>( self, mdio: MDIO, mdc: MDC, ) -> EthernetMACWithMii<MDIO, MDC>
Turn this EthernetMAC
into an EthernetMACWithMii
Sourcepub fn set_speed(&mut self, speed: Speed)
pub fn set_speed(&mut self, speed: Speed)
Set the Ethernet Speed at which the MAC communicates
Note that this does not affect the PHY in any way. To
configure the PHY, use EthernetMACWithMii
(see: Self::with_mii
)
or Stm32Mii
(see: Self::mii
)
Auto Trait Implementations§
impl Freeze for EthernetMAC
impl RefUnwindSafe for EthernetMAC
impl Send for EthernetMAC
impl !Sync for EthernetMAC
impl Unpin for EthernetMAC
impl UnwindSafe for EthernetMAC
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