Struct w5500_ll::eh1::vdm::W5500

source ·
pub struct W5500<SPI> { /* private fields */ }
Available on crate feature eh1 only.
Expand description

W5500 blocking variable data length implementation.

Implementations§

source§

impl<SPI, E> W5500<SPI>where SPI: SpiDevice<Error = E>,

source

pub fn new(spi: SPI) -> Self

Creates a new W5500 driver from a SPI device.

Example
use w5500_ll::eh1::vdm::W5500;

let mut w5500: W5500<_> = W5500::new(spi);
source

pub fn free(self) -> SPI

Free the SPI device.

Example
use w5500_ll::eh1::vdm::W5500;

let mut w5500 = W5500::new(spi);
let mut spi = w5500.free();

Trait Implementations§

source§

impl<SPI: Debug> Debug for W5500<SPI>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<SPI> Format for W5500<SPI>where SPI: Format,

source§

fn format(&self, f: Formatter<'_>)

Writes the defmt representation of self to fmt.
source§

impl<SPI> Registers for W5500<SPI>where SPI: SpiDevice,

Available on crate feature eha0a only.
§

type Error = <SPI as ErrorType>::Error

Available on crate feature async only.

SPI IO error type.

source§

async fn read( &mut self, address: u16, block: u8, data: &mut [u8] ) -> Result<(), <SPI as ErrorType>::Error>

Available on crate feature async only.

Read from the W5500 asynchronously.

source§

async fn write( &mut self, address: u16, block: u8, data: &[u8] ) -> Result<(), <SPI as ErrorType>::Error>

Available on crate feature async only.

Write to the W5500 asynchronously.

source§

async fn mr(&mut self) -> Result<Mode, Self::Error>

Available on crate feature async only.
Get the mode register. Read more
source§

async fn set_mr(&mut self, mode: Mode) -> Result<(), Self::Error>

Available on crate feature async only.
Set the mode register. Read more
source§

async fn gar(&mut self) -> Result<Ipv4Addr, Self::Error>

Available on crate feature async only.
Get the gateway IP address. Read more
source§

async fn set_gar(&mut self, gar: &Ipv4Addr) -> Result<(), Self::Error>

Available on crate feature async only.
Set the gateway IP address. Read more
source§

async fn subr(&mut self) -> Result<Ipv4Addr, Self::Error>

Available on crate feature async only.
Get the subnet mask. Read more
source§

async fn set_subr(&mut self, subr: &Ipv4Addr) -> Result<(), Self::Error>

Available on crate feature async only.
Set the subnet mask. Read more
source§

async fn shar(&mut self) -> Result<Eui48Addr, Self::Error>

Available on crate feature async only.
Get the source hardware address. Read more
source§

async fn set_shar(&mut self, shar: &Eui48Addr) -> Result<(), Self::Error>

Available on crate feature async only.
Set the source hardware address. Read more
source§

async fn sipr(&mut self) -> Result<Ipv4Addr, Self::Error>

Available on crate feature async only.
Get the source (client) IP address. Read more
source§

async fn set_sipr(&mut self, sipr: &Ipv4Addr) -> Result<(), Self::Error>

Available on crate feature async only.
Set the source (client) IP address. Read more
source§

async fn intlevel(&mut self) -> Result<u16, Self::Error>

Available on crate feature async only.
Get the interrupt low level time. Read more
source§

async fn set_intlevel(&mut self, intlevel: u16) -> Result<(), Self::Error>

Available on crate feature async only.
Set the interrupt low level time. Read more
source§

async fn ir(&mut self) -> Result<Interrupt, Self::Error>

Available on crate feature async only.
Get the interrupt status. Read more
source§

async fn set_ir(&mut self, interrupt: Interrupt) -> Result<(), Self::Error>

Available on crate feature async only.
Set the interrupt status. Read more
source§

async fn imr(&mut self) -> Result<Interrupt, Self::Error>

Available on crate feature async only.
Get the interrupt mask. Read more
source§

async fn set_imr(&mut self, mask: Interrupt) -> Result<(), Self::Error>

Available on crate feature async only.
Set the interrupt mask. Read more
source§

async fn sir(&mut self) -> Result<u8, Self::Error>

Available on crate feature async only.
Get the socket interrupt status. Read more
source§

async fn simr(&mut self) -> Result<u8, Self::Error>

Available on crate feature async only.
Get the socket interrupt mask. Read more
source§

async fn set_simr(&mut self, simr: u8) -> Result<(), Self::Error>

Available on crate feature async only.
Set the socket interrupt mask. Read more
source§

async fn rtr(&mut self) -> Result<u16, Self::Error>

Available on crate feature async only.
Get the retry time. Read more
source§

async fn set_rtr(&mut self, rtr: u16) -> Result<(), Self::Error>

Available on crate feature async only.
Set the retry time. Read more
source§

async fn rcr(&mut self) -> Result<u8, Self::Error>

Available on crate feature async only.
Get the retry count. Read more
source§

async fn set_rcr(&mut self, rcr: u8) -> Result<(), Self::Error>

Available on crate feature async only.
Set the retry count. Read more
source§

async fn ptimer(&mut self) -> Result<u8, Self::Error>

Available on crate feature async only.
Get the PPP link control protocol request timer. Read more
source§

async fn set_ptimer(&mut self, ptimer: u8) -> Result<(), Self::Error>

Available on crate feature async only.
Set the PPP link control protocol request timer. Read more
source§

async fn pmagic(&mut self) -> Result<u8, Self::Error>

Available on crate feature async only.
Get the PPP link control protocol magic number. Read more
source§

async fn set_pmagic(&mut self, pmagic: u8) -> Result<(), Self::Error>

Available on crate feature async only.
Set the PPP link control protocol magic number. Read more
source§

async fn phar(&mut self) -> Result<Eui48Addr, Self::Error>

Available on crate feature async only.
Get the destination hardware address in PPPoE mode. Read more
source§

async fn set_phar(&mut self, phar: &Eui48Addr) -> Result<(), Self::Error>

Available on crate feature async only.
Set the destination hardware address in PPPoE mode. Read more
source§

async fn psid(&mut self) -> Result<u16, Self::Error>

Available on crate feature async only.
Get the session ID in PPPoE mode. Read more
source§

async fn set_psid(&mut self, psid: u16) -> Result<(), Self::Error>

Available on crate feature async only.
Set the session ID in PPPoE mode. Read more
source§

async fn pmru(&mut self) -> Result<u16, Self::Error>

Available on crate feature async only.
Get the maximum receive unit in PPPoE mode. Read more
source§

async fn set_pmru(&mut self, pmru: u16) -> Result<(), Self::Error>

Available on crate feature async only.
Set the maximum receive unit in PPPoE mode. Read more
source§

async fn uipr(&mut self) -> Result<Ipv4Addr, Self::Error>

Available on crate feature async only.
Get the unreachable IP address. Read more
source§

async fn uportr(&mut self) -> Result<u16, Self::Error>

Available on crate feature async only.
Get the unreachable port. Read more
source§

async fn phycfgr(&mut self) -> Result<PhyCfg, Self::Error>

Available on crate feature async only.
Get the PHY configuration. Read more
source§

async fn set_phycfgr(&mut self, phycfg: PhyCfg) -> Result<(), Self::Error>

Available on crate feature async only.
Set the PHY configuration. Read more
source§

async fn version(&mut self) -> Result<u8, Self::Error>

Available on crate feature async only.
Get the version. Read more
source§

async fn sn_mr(&mut self, sn: Sn) -> Result<SocketMode, Self::Error>

Available on crate feature async only.
Get the socket mode. Read more
source§

async fn set_sn_mr( &mut self, sn: Sn, mode: SocketMode ) -> Result<(), Self::Error>

Available on crate feature async only.
Set the socket mode. Read more
source§

async fn sn_cr(&mut self, sn: Sn) -> Result<u8, Self::Error>

Available on crate feature async only.
Get the socket command. Read more
source§

async fn set_sn_cr( &mut self, sn: Sn, cmd: SocketCommand ) -> Result<(), Self::Error>

Available on crate feature async only.
Set the socket command. Read more
source§

async fn sn_ir(&mut self, sn: Sn) -> Result<SocketInterrupt, Self::Error>

Available on crate feature async only.
Get the socket interrupt status. Read more
source§

async fn set_sn_ir(&mut self, sn: Sn, sn_ir: u8) -> Result<(), Self::Error>

Available on crate feature async only.
Set the socket interrupt status. Read more
source§

async fn sn_sr( &mut self, sn: Sn ) -> Result<Result<SocketStatus, u8>, Self::Error>

Available on crate feature async only.
Get the socket status. Read more
source§

async fn sn_port(&mut self, sn: Sn) -> Result<u16, Self::Error>

Available on crate feature async only.
Get the socket source port. Read more
source§

async fn set_sn_port(&mut self, sn: Sn, port: u16) -> Result<(), Self::Error>

Available on crate feature async only.
Set the socket source port. Read more
source§

async fn sn_dhar(&mut self, sn: Sn) -> Result<Eui48Addr, Self::Error>

Available on crate feature async only.
Get the socket destination hardware address. Read more
source§

async fn set_sn_dhar( &mut self, sn: Sn, dhar: &Eui48Addr ) -> Result<(), Self::Error>

Available on crate feature async only.
Set the socket destination hardware address. Read more
source§

async fn sn_dipr(&mut self, sn: Sn) -> Result<Ipv4Addr, Self::Error>

Available on crate feature async only.
Get the socket destination IP address. Read more
source§

async fn set_sn_dipr( &mut self, sn: Sn, dipr: &Ipv4Addr ) -> Result<(), Self::Error>

Available on crate feature async only.
Set the socket destination IP address. Read more
source§

async fn sn_dport(&mut self, sn: Sn) -> Result<u16, Self::Error>

Available on crate feature async only.
Get the socket destination port. Read more
source§

async fn set_sn_dport(&mut self, sn: Sn, port: u16) -> Result<(), Self::Error>

Available on crate feature async only.
Set the socket destination port. Read more
source§

async fn sn_dest(&mut self, sn: Sn) -> Result<SocketAddrV4, Self::Error>

Available on crate feature async only.
Get the socket destination IPv4 and port. Read more
source§

async fn set_sn_dest( &mut self, sn: Sn, addr: &SocketAddrV4 ) -> Result<(), Self::Error>

Available on crate feature async only.
Set the socket destination IPv4 and port. Read more
source§

async fn sn_mssr(&mut self, sn: Sn) -> Result<u16, Self::Error>

Available on crate feature async only.
Get the socket maximum segment size. Read more
source§

async fn set_sn_mssr(&mut self, sn: Sn, mssr: u16) -> Result<(), Self::Error>

Available on crate feature async only.
Set the socket maximum segment size. Read more
source§

async fn sn_tos(&mut self, sn: Sn) -> Result<u8, Self::Error>

Available on crate feature async only.
Get the IP type of service. Read more
source§

async fn set_sn_tos(&mut self, sn: Sn, tos: u8) -> Result<(), Self::Error>

Available on crate feature async only.
Set the IP type of service. Read more
source§

async fn sn_ttl(&mut self, sn: Sn) -> Result<u8, Self::Error>

Available on crate feature async only.
Get the time to live. Read more
source§

async fn set_sn_ttl(&mut self, sn: Sn, ttl: u8) -> Result<(), Self::Error>

Available on crate feature async only.
Set the time to live. Read more
source§

async fn sn_rxbuf_size( &mut self, sn: Sn ) -> Result<Result<BufferSize, u8>, Self::Error>

Available on crate feature async only.
Get the socket RX buffer size. Read more
source§

async fn set_sn_rxbuf_size( &mut self, sn: Sn, size: BufferSize ) -> Result<(), Self::Error>

Available on crate feature async only.
Set the socket RX buffer size. Read more
source§

async fn sn_txbuf_size( &mut self, sn: Sn ) -> Result<Result<BufferSize, u8>, Self::Error>

Available on crate feature async only.
Get the socket TX buffer size. Read more
source§

async fn set_sn_txbuf_size( &mut self, sn: Sn, size: BufferSize ) -> Result<(), Self::Error>

Available on crate feature async only.
Set the socket TX buffer size. Read more
source§

async fn sn_tx_fsr(&mut self, sn: Sn) -> Result<u16, Self::Error>

Available on crate feature async only.
Get transmit buffer free size. Read more
source§

async fn sn_tx_rd(&mut self, sn: Sn) -> Result<u16, Self::Error>

Available on crate feature async only.
Get the socket TX read pointer. Read more
source§

async fn sn_tx_wr(&mut self, sn: Sn) -> Result<u16, Self::Error>

Available on crate feature async only.
Get the socket TX write pointer. Read more
source§

async fn set_sn_tx_wr(&mut self, sn: Sn, ptr: u16) -> Result<(), Self::Error>

Available on crate feature async only.
Set the socket TX write pointer. Read more
source§

async fn sn_tx_ptrs(&mut self, sn: Sn) -> Result<TxPtrs, Self::Error>

Available on crate feature async only.
Get the socket TX free size and write pointer Read more
source§

async fn sn_rx_rsr(&mut self, sn: Sn) -> Result<u16, Self::Error>

Available on crate feature async only.
Get the socket received data size. Read more
source§

async fn sn_rx_rd(&mut self, sn: Sn) -> Result<u16, Self::Error>

Available on crate feature async only.
Get the socket read data pointer. Read more
source§

async fn set_sn_rx_rd(&mut self, sn: Sn, ptr: u16) -> Result<(), Self::Error>

Available on crate feature async only.
Set the socket read data pointer. Read more
source§

async fn sn_rx_wr(&mut self, sn: Sn) -> Result<u16, Self::Error>

Available on crate feature async only.
Get the socket RX write pointer. Read more
source§

async fn sn_rx_ptrs(&mut self, sn: Sn) -> Result<RxPtrs, Self::Error>

Available on crate feature async only.
Get the socket RX recieved size size and write pointer Read more
source§

async fn sn_imr(&mut self, sn: Sn) -> Result<SocketInterruptMask, Self::Error>

Available on crate feature async only.
Get the socket interrupt mask. Read more
source§

async fn set_sn_imr( &mut self, sn: Sn, mask: SocketInterruptMask ) -> Result<(), Self::Error>

Available on crate feature async only.
Set the socket interrupt mask. Read more
source§

async fn sn_frag(&mut self, sn: Sn) -> Result<u16, Self::Error>

Available on crate feature async only.
Get the socket fragment. Read more
source§

async fn set_sn_frag(&mut self, sn: Sn, frag: u16) -> Result<(), Self::Error>

Available on crate feature async only.
Set the socket fragment. Read more
source§

async fn sn_kpalvtr(&mut self, sn: Sn) -> Result<u8, Self::Error>

Available on crate feature async only.
Get the socket keep alive time. Read more
source§

async fn set_sn_kpalvtr( &mut self, sn: Sn, kpalvtr: u8 ) -> Result<(), Self::Error>

Available on crate feature async only.
Set the socket keep alive time. Read more
source§

async fn set_sn_tx_buf( &mut self, sn: Sn, ptr: u16, buf: &[u8] ) -> Result<(), Self::Error>

Available on crate feature async only.
Write the socket TX buffer. Read more
source§

async fn sn_tx_buf( &mut self, sn: Sn, ptr: u16, buf: &mut [u8] ) -> Result<(), Self::Error>

Available on crate feature async only.
Read the socket TX buffer. Read more
source§

async fn sn_rx_buf( &mut self, sn: Sn, ptr: u16, buf: &mut [u8] ) -> Result<(), Self::Error>

Available on crate feature async only.
Read the socket RX buffer. Read more
source§

async fn set_sn_rx_buf( &mut self, sn: Sn, ptr: u16, buf: &[u8] ) -> Result<(), Self::Error>

Available on crate feature async only.
Write the socket RX buffer. Read more
source§

impl<SPI> Registers for W5500<SPI>where SPI: SpiDevice,

§

type Error = <SPI as ErrorType>::Error

SPI IO error type.

source§

fn read( &mut self, address: u16, block: u8, data: &mut [u8] ) -> Result<(), <SPI as ErrorType>::Error>

Read from the W5500.

source§

fn write( &mut self, address: u16, block: u8, data: &[u8] ) -> Result<(), <SPI as ErrorType>::Error>

Write to the W5500.

source§

fn mr(&mut self) -> Result<Mode, Self::Error>

Get the mode register. Read more
source§

fn set_mr(&mut self, mode: Mode) -> Result<(), Self::Error>

Set the mode register. Read more
source§

fn gar(&mut self) -> Result<Ipv4Addr, Self::Error>

Get the gateway IP address. Read more
source§

fn set_gar(&mut self, gar: &Ipv4Addr) -> Result<(), Self::Error>

Set the gateway IP address. Read more
source§

fn subr(&mut self) -> Result<Ipv4Addr, Self::Error>

Get the subnet mask. Read more
source§

fn set_subr(&mut self, subr: &Ipv4Addr) -> Result<(), Self::Error>

Set the subnet mask. Read more
source§

fn shar(&mut self) -> Result<Eui48Addr, Self::Error>

Get the source hardware address. Read more
source§

fn set_shar(&mut self, shar: &Eui48Addr) -> Result<(), Self::Error>

Set the source hardware address. Read more
source§

fn sipr(&mut self) -> Result<Ipv4Addr, Self::Error>

Get the source (client) IP address. Read more
source§

fn set_sipr(&mut self, sipr: &Ipv4Addr) -> Result<(), Self::Error>

Set the source (client) IP address. Read more
source§

fn intlevel(&mut self) -> Result<u16, Self::Error>

Get the interrupt low level time. Read more
source§

fn set_intlevel(&mut self, intlevel: u16) -> Result<(), Self::Error>

Set the interrupt low level time. Read more
source§

fn ir(&mut self) -> Result<Interrupt, Self::Error>

Get the interrupt status. Read more
source§

fn set_ir(&mut self, interrupt: Interrupt) -> Result<(), Self::Error>

Set the interrupt status. Read more
source§

fn imr(&mut self) -> Result<Interrupt, Self::Error>

Get the interrupt mask. Read more
source§

fn set_imr(&mut self, mask: Interrupt) -> Result<(), Self::Error>

Set the interrupt mask. Read more
source§

fn sir(&mut self) -> Result<u8, Self::Error>

Get the socket interrupt status. Read more
source§

fn simr(&mut self) -> Result<u8, Self::Error>

Get the socket interrupt mask. Read more
source§

fn set_simr(&mut self, simr: u8) -> Result<(), Self::Error>

Set the socket interrupt mask. Read more
source§

fn rtr(&mut self) -> Result<u16, Self::Error>

Get the retry time. Read more
source§

fn set_rtr(&mut self, rtr: u16) -> Result<(), Self::Error>

Set the retry time. Read more
source§

fn rcr(&mut self) -> Result<u8, Self::Error>

Get the retry count. Read more
source§

fn set_rcr(&mut self, rcr: u8) -> Result<(), Self::Error>

Set the retry count. Read more
source§

fn ptimer(&mut self) -> Result<u8, Self::Error>

Get the PPP link control protocol request timer. Read more
source§

fn set_ptimer(&mut self, ptimer: u8) -> Result<(), Self::Error>

Set the PPP link control protocol request timer. Read more
source§

fn pmagic(&mut self) -> Result<u8, Self::Error>

Get the PPP link control protocol magic number. Read more
source§

fn set_pmagic(&mut self, pmagic: u8) -> Result<(), Self::Error>

Set the PPP link control protocol magic number. Read more
source§

fn phar(&mut self) -> Result<Eui48Addr, Self::Error>

Get the destination hardware address in PPPoE mode. Read more
source§

fn set_phar(&mut self, phar: &Eui48Addr) -> Result<(), Self::Error>

Set the destination hardware address in PPPoE mode. Read more
source§

fn psid(&mut self) -> Result<u16, Self::Error>

Get the session ID in PPPoE mode. Read more
source§

fn set_psid(&mut self, psid: u16) -> Result<(), Self::Error>

Set the session ID in PPPoE mode. Read more
source§

fn pmru(&mut self) -> Result<u16, Self::Error>

Get the maximum receive unit in PPPoE mode. Read more
source§

fn set_pmru(&mut self, pmru: u16) -> Result<(), Self::Error>

Set the maximum receive unit in PPPoE mode. Read more
source§

fn uipr(&mut self) -> Result<Ipv4Addr, Self::Error>

Get the unreachable IP address. Read more
source§

fn uportr(&mut self) -> Result<u16, Self::Error>

Get the unreachable port. Read more
source§

fn phycfgr(&mut self) -> Result<PhyCfg, Self::Error>

Get the PHY configuration. Read more
source§

fn set_phycfgr(&mut self, phycfg: PhyCfg) -> Result<(), Self::Error>

Set the PHY configuration. Read more
source§

fn version(&mut self) -> Result<u8, Self::Error>

Get the version. Read more
source§

fn sn_mr(&mut self, sn: Sn) -> Result<SocketMode, Self::Error>

Get the socket mode. Read more
source§

fn set_sn_mr(&mut self, sn: Sn, mode: SocketMode) -> Result<(), Self::Error>

Set the socket mode. Read more
source§

fn sn_cr(&mut self, sn: Sn) -> Result<u8, Self::Error>

Get the socket command. Read more
source§

fn set_sn_cr(&mut self, sn: Sn, cmd: SocketCommand) -> Result<(), Self::Error>

Set the socket command. Read more
source§

fn sn_ir(&mut self, sn: Sn) -> Result<SocketInterrupt, Self::Error>

Get the socket interrupt status. Read more
source§

fn set_sn_ir<T: Into<u8>>( &mut self, sn: Sn, sn_ir: T ) -> Result<(), Self::Error>

Set the socket interrupt status. Read more
source§

fn sn_sr(&mut self, sn: Sn) -> Result<Result<SocketStatus, u8>, Self::Error>

Get the socket status. Read more
source§

fn sn_port(&mut self, sn: Sn) -> Result<u16, Self::Error>

Get the socket source port. Read more
source§

fn set_sn_port(&mut self, sn: Sn, port: u16) -> Result<(), Self::Error>

Set the socket source port. Read more
source§

fn sn_dhar(&mut self, sn: Sn) -> Result<Eui48Addr, Self::Error>

Get the socket destination hardware address. Read more
source§

fn set_sn_dhar(&mut self, sn: Sn, dhar: &Eui48Addr) -> Result<(), Self::Error>

Set the socket destination hardware address. Read more
source§

fn sn_dipr(&mut self, sn: Sn) -> Result<Ipv4Addr, Self::Error>

Get the socket destination IP address. Read more
source§

fn set_sn_dipr(&mut self, sn: Sn, dipr: &Ipv4Addr) -> Result<(), Self::Error>

Set the socket destination IP address. Read more
source§

fn sn_dport(&mut self, sn: Sn) -> Result<u16, Self::Error>

Get the socket destination port. Read more
source§

fn set_sn_dport(&mut self, sn: Sn, port: u16) -> Result<(), Self::Error>

Set the socket destination port. Read more
source§

fn sn_dest(&mut self, sn: Sn) -> Result<SocketAddrV4, Self::Error>

Get the socket destination IPv4 and port. Read more
source§

fn set_sn_dest( &mut self, sn: Sn, addr: &SocketAddrV4 ) -> Result<(), Self::Error>

Set the socket destination IPv4 and port. Read more
source§

fn sn_mssr(&mut self, sn: Sn) -> Result<u16, Self::Error>

Get the socket maximum segment size. Read more
source§

fn set_sn_mssr(&mut self, sn: Sn, mssr: u16) -> Result<(), Self::Error>

Set the socket maximum segment size. Read more
source§

fn sn_tos(&mut self, sn: Sn) -> Result<u8, Self::Error>

Get the IP type of service. Read more
source§

fn set_sn_tos(&mut self, sn: Sn, tos: u8) -> Result<(), Self::Error>

Set the IP type of service. Read more
source§

fn sn_ttl(&mut self, sn: Sn) -> Result<u8, Self::Error>

Get the time to live. Read more
source§

fn set_sn_ttl(&mut self, sn: Sn, ttl: u8) -> Result<(), Self::Error>

Set the time to live. Read more
source§

fn sn_rxbuf_size( &mut self, sn: Sn ) -> Result<Result<BufferSize, u8>, Self::Error>

Get the socket RX buffer size. Read more
source§

fn set_sn_rxbuf_size( &mut self, sn: Sn, size: BufferSize ) -> Result<(), Self::Error>

Set the socket RX buffer size. Read more
source§

fn sn_txbuf_size( &mut self, sn: Sn ) -> Result<Result<BufferSize, u8>, Self::Error>

Get the socket TX buffer size. Read more
source§

fn set_sn_txbuf_size( &mut self, sn: Sn, size: BufferSize ) -> Result<(), Self::Error>

Set the socket TX buffer size. Read more
source§

fn sn_tx_fsr(&mut self, sn: Sn) -> Result<u16, Self::Error>

Get transmit buffer free size. Read more
source§

fn sn_tx_rd(&mut self, sn: Sn) -> Result<u16, Self::Error>

Get the socket TX read pointer. Read more
source§

fn sn_tx_wr(&mut self, sn: Sn) -> Result<u16, Self::Error>

Get the socket TX write pointer. Read more
source§

fn set_sn_tx_wr(&mut self, sn: Sn, ptr: u16) -> Result<(), Self::Error>

Set the socket TX write pointer. Read more
source§

fn sn_tx_ptrs(&mut self, sn: Sn) -> Result<TxPtrs, Self::Error>

Get the socket TX free size and write pointer Read more
source§

fn sn_rx_rsr(&mut self, sn: Sn) -> Result<u16, Self::Error>

Get the socket received data size. Read more
source§

fn sn_rx_rd(&mut self, sn: Sn) -> Result<u16, Self::Error>

Get the socket read data pointer. Read more
source§

fn set_sn_rx_rd(&mut self, sn: Sn, ptr: u16) -> Result<(), Self::Error>

Set the socket read data pointer. Read more
source§

fn sn_rx_wr(&mut self, sn: Sn) -> Result<u16, Self::Error>

Get the socket RX write pointer. Read more
source§

fn sn_rx_ptrs(&mut self, sn: Sn) -> Result<RxPtrs, Self::Error>

Get the socket RX recieved size size and write pointer Read more
source§

fn sn_imr(&mut self, sn: Sn) -> Result<SocketInterruptMask, Self::Error>

Get the socket interrupt mask. Read more
source§

fn set_sn_imr( &mut self, sn: Sn, mask: SocketInterruptMask ) -> Result<(), Self::Error>

Set the socket interrupt mask. Read more
source§

fn sn_frag(&mut self, sn: Sn) -> Result<u16, Self::Error>

Get the socket fragment. Read more
source§

fn set_sn_frag(&mut self, sn: Sn, frag: u16) -> Result<(), Self::Error>

Set the socket fragment. Read more
source§

fn sn_kpalvtr(&mut self, sn: Sn) -> Result<u8, Self::Error>

Get the socket keep alive time. Read more
source§

fn set_sn_kpalvtr(&mut self, sn: Sn, kpalvtr: u8) -> Result<(), Self::Error>

Set the socket keep alive time. Read more
source§

fn set_sn_tx_buf( &mut self, sn: Sn, ptr: u16, buf: &[u8] ) -> Result<(), Self::Error>

Write the socket TX buffer. Read more
source§

fn sn_tx_buf( &mut self, sn: Sn, ptr: u16, buf: &mut [u8] ) -> Result<(), Self::Error>

Read the socket TX buffer. Read more
source§

fn sn_rx_buf( &mut self, sn: Sn, ptr: u16, buf: &mut [u8] ) -> Result<(), Self::Error>

Read the socket RX buffer. Read more
source§

fn set_sn_rx_buf( &mut self, sn: Sn, ptr: u16, buf: &[u8] ) -> Result<(), Self::Error>

Write the socket RX buffer. Read more

Auto Trait Implementations§

§

impl<SPI> RefUnwindSafe for W5500<SPI>where SPI: RefUnwindSafe,

§

impl<SPI> Send for W5500<SPI>where SPI: Send,

§

impl<SPI> Sync for W5500<SPI>where SPI: Sync,

§

impl<SPI> Unpin for W5500<SPI>where SPI: Unpin,

§

impl<SPI> UnwindSafe for W5500<SPI>where SPI: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.