Struct stm32_eth::mac::EthernetMAC
source · 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>where
Mdio: MdioPin,
Mdc: MdcPin,
pub fn mii<'eth, 'pins, Mdio, Mdc>( &'eth mut self, mdio: &'pins mut Mdio, mdc: &'pins mut Mdc ) -> Stm32Mii<'eth, 'pins, Mdio, Mdc>where Mdio: MdioPin, Mdc: MdcPin,
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>where
MDIO: MdioPin,
MDC: MdcPin,
pub fn with_mii<MDIO, MDC>( self, mdio: MDIO, mdc: MDC ) -> EthernetMACWithMii<MDIO, MDC>where MDIO: MdioPin, MDC: MdcPin,
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 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