Struct stm32_eth::EthernetMAC
source · [−]pub struct EthernetMAC { /* private fields */ }
Expand description
Ethernet media access control (MAC).
Implementations
sourceimpl EthernetMAC
impl EthernetMAC
sourcepub fn smi<'eth, 'pins, Mdio, Mdc>(
&'eth mut self,
mdio: &'pins mut Mdio,
mdc: &'pins mut Mdc
) -> Smi<'eth, 'pins, Mdio, Mdc> where
Mdio: MdioPin,
Mdc: MdcPin,
pub fn smi<'eth, 'pins, Mdio, Mdc>(
&'eth mut self,
mdio: &'pins mut Mdio,
mdc: &'pins mut Mdc
) -> Smi<'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 SMI communication.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more