pub struct Stm32Mii<'mac, 'pins, Mdio, Mdc> { /* private fields */ }
Expand description
Serial Management Interface
Borrows an EthernetMAC
and holds a mutable borrow to the SMI pins.
Implementations§
Source§impl<'eth, 'pins, Mdio, Mdc> Stm32Mii<'eth, 'pins, Mdio, Mdc>
impl<'eth, 'pins, Mdio, Mdc> Stm32Mii<'eth, 'pins, Mdio, Mdc>
Sourcepub fn new(
mac: &'eth mut EthernetMAC,
_mdio: &'pins mut Mdio,
_mdc: &'pins mut Mdc,
) -> Self
pub fn new( mac: &'eth mut EthernetMAC, _mdio: &'pins mut Mdio, _mdc: &'pins mut Mdc, ) -> Self
Create a temporary Stm32Mii
instance.
Temporarily take exclusive access to the MDIO and MDC pins to ensure they are not used elsewhere for the duration of SMI communication.
Trait Implementations§
Auto Trait Implementations§
impl<'mac, 'pins, Mdio, Mdc> Freeze for Stm32Mii<'mac, 'pins, Mdio, Mdc>
impl<'mac, 'pins, Mdio, Mdc> RefUnwindSafe for Stm32Mii<'mac, 'pins, Mdio, Mdc>where
Mdio: RefUnwindSafe,
Mdc: RefUnwindSafe,
impl<'mac, 'pins, Mdio, Mdc> Send for Stm32Mii<'mac, 'pins, Mdio, Mdc>
impl<'mac, 'pins, Mdio, Mdc> !Sync for Stm32Mii<'mac, 'pins, Mdio, Mdc>
impl<'mac, 'pins, Mdio, Mdc> Unpin for Stm32Mii<'mac, 'pins, Mdio, Mdc>
impl<'mac, 'pins, Mdio, Mdc> !UnwindSafe for Stm32Mii<'mac, 'pins, Mdio, Mdc>
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