pub struct ADIN1110<SPI> { /* private fields */ }
Expand description
ADIN1110 embassy-net driver
Implementations§
source§impl<SPI: SpiDevice> ADIN1110<SPI>
impl<SPI: SpiDevice> ADIN1110<SPI>
sourcepub fn new(spi: SPI, spi_crc: bool, append_fcs_on_tx: bool) -> Self
pub fn new(spi: SPI, spi_crc: bool, append_fcs_on_tx: bool) -> Self
Create a new ADIN1110 instance.
sourcepub async fn write_reg(
&mut self,
reg: sr,
value: u32,
) -> AEResult<(), SPI::Error>
pub async fn write_reg( &mut self, reg: sr, value: u32, ) -> AEResult<(), SPI::Error>
Write a SPI register
sourcepub async fn read_fifo(
&mut self,
frame: &mut [u8],
) -> AEResult<usize, SPI::Error>
pub async fn read_fifo( &mut self, frame: &mut [u8], ) -> AEResult<usize, SPI::Error>
Read out fifo ethernet packet memory received via the wire.
Trait Implementations§
source§impl<SPI: SpiDevice> MdioBus for ADIN1110<SPI>
impl<SPI: SpiDevice> MdioBus for ADIN1110<SPI>
source§async fn read_cl22(&mut self, phy_id: u8, reg: u8) -> Result<u16, Self::Error>
async fn read_cl22(&mut self, phy_id: u8, reg: u8) -> Result<u16, Self::Error>
Read from the PHY Registers as Clause 22.
source§async fn read_cl45(
&mut self,
phy_id: u8,
regc45: (u8, u16),
) -> Result<u16, Self::Error>
async fn read_cl45( &mut self, phy_id: u8, regc45: (u8, u16), ) -> Result<u16, Self::Error>
Read from the PHY Registers as Clause 45.
source§async fn write_cl22(
&mut self,
phy_id: u8,
reg: u8,
val: u16,
) -> Result<(), Self::Error>
async fn write_cl22( &mut self, phy_id: u8, reg: u8, val: u16, ) -> Result<(), Self::Error>
Write to the PHY Registers as Clause 22.
Auto Trait Implementations§
impl<SPI> Freeze for ADIN1110<SPI>where
SPI: Freeze,
impl<SPI> RefUnwindSafe for ADIN1110<SPI>where
SPI: RefUnwindSafe,
impl<SPI> Send for ADIN1110<SPI>where
SPI: Send,
impl<SPI> Sync for ADIN1110<SPI>where
SPI: Sync,
impl<SPI> Unpin for ADIN1110<SPI>where
SPI: Unpin,
impl<SPI> UnwindSafe for ADIN1110<SPI>where
SPI: UnwindSafe,
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