Struct w5500_regsim::W5500 [−][src]
Simulated W5500.
Implementations
impl W5500
[src]
Trait Implementations
impl Default for W5500
[src]
impl Registers for W5500
[src]
type Error = Error
Register accessor error type.
fn set_mr(&mut self, mode: Mode) -> Result<()>
[src]
fn gar(&mut self) -> Result<Ipv4Addr>
[src]
fn set_gar(&mut self, gar: &Ipv4Addr) -> Result<()>
[src]
fn subr(&mut self) -> Result<Ipv4Addr>
[src]
fn set_subr(&mut self, subr: &Ipv4Addr) -> Result<()>
[src]
fn shar(&mut self) -> Result<Eui48Addr>
[src]
fn set_shar(&mut self, shar: &Eui48Addr) -> Result<()>
[src]
fn sipr(&mut self) -> Result<Ipv4Addr>
[src]
fn set_sipr(&mut self, sipr: &Ipv4Addr) -> Result<()>
[src]
fn set_sn_cr(&mut self, socket: Socket, cmd: SocketCommand) -> Result<()>
[src]
fn set_sn_tx_wr(&mut self, socket: Socket, ptr: u16) -> Result<(), Self::Error>
[src]
fn sn_ir(&mut self, socket: Socket) -> Result<SocketInterrupt, Self::Error>
[src]
fn set_sn_ir<T: Into<u8>>(
&mut self,
socket: Socket,
ir: T
) -> Result<(), Self::Error>
[src]
&mut self,
socket: Socket,
ir: T
) -> Result<(), Self::Error>
fn sn_rx_rsr(&mut self, socket: Socket) -> Result<u16, Self::Error>
[src]
fn read(
&mut self,
address: u16,
block: u8,
data: &mut [u8]
) -> Result<(), Self::Error>
[src]
&mut self,
address: u16,
block: u8,
data: &mut [u8]
) -> Result<(), Self::Error>
Read from the W5500.
fn write(
&mut self,
address: u16,
block: u8,
data: &[u8]
) -> Result<(), Self::Error>
[src]
&mut self,
address: u16,
block: u8,
data: &[u8]
) -> Result<(), Self::Error>
Write to the W5500.
pub fn mr(&mut self) -> Result<Mode, Self::Error>
[src]
pub fn intlevel(&mut self) -> Result<u16, Self::Error>
[src]
pub fn set_intlevel(&mut self, intlevel: u16) -> Result<(), Self::Error>
[src]
pub fn ir(&mut self) -> Result<Interrupt, Self::Error>
[src]
pub fn set_ir(&mut self, interrupt: Interrupt) -> Result<(), Self::Error>
[src]
pub fn imr(&mut self) -> Result<Interrupt, Self::Error>
[src]
pub fn set_imr(&mut self, mask: Interrupt) -> Result<(), Self::Error>
[src]
pub fn sir(&mut self) -> Result<u8, Self::Error>
[src]
pub fn simr(&mut self) -> Result<u8, Self::Error>
[src]
pub fn set_simr(&mut self, simr: u8) -> Result<(), Self::Error>
[src]
pub fn rtr(&mut self) -> Result<u16, Self::Error>
[src]
pub fn set_rtr(&mut self, rtr: u16) -> Result<(), Self::Error>
[src]
pub fn rcr(&mut self) -> Result<u8, Self::Error>
[src]
pub fn set_rcr(&mut self, rcr: u8) -> Result<(), Self::Error>
[src]
pub fn ptimer(&mut self) -> Result<u8, Self::Error>
[src]
pub fn set_ptimer(&mut self, ptimer: u8) -> Result<(), Self::Error>
[src]
pub fn pmagic(&mut self) -> Result<u8, Self::Error>
[src]
pub fn set_pmagic(&mut self, pmagic: u8) -> Result<(), Self::Error>
[src]
pub fn phar(&mut self) -> Result<Eui48Addr, Self::Error>
[src]
pub fn set_phar(&mut self, phar: &Eui48Addr) -> Result<(), Self::Error>
[src]
pub fn psid(&mut self) -> Result<u16, Self::Error>
[src]
pub fn set_psid(&mut self, psid: u16) -> Result<(), Self::Error>
[src]
pub fn pmru(&mut self) -> Result<u16, Self::Error>
[src]
pub fn set_pmru(&mut self, pmru: u16) -> Result<(), Self::Error>
[src]
pub fn uipr(&mut self) -> Result<Ipv4Addr, Self::Error>
[src]
pub fn uportr(&mut self) -> Result<u16, Self::Error>
[src]
pub fn phycfgr(&mut self) -> Result<PhyCfg, Self::Error>
[src]
pub fn set_phycfgr(&mut self, phycfg: PhyCfg) -> Result<(), Self::Error>
[src]
pub fn version(&mut self) -> Result<u8, Self::Error>
[src]
pub fn sn_mr(&mut self, socket: Socket) -> Result<SocketMode, Self::Error>
[src]
pub fn set_sn_mr(
&mut self,
socket: Socket,
mode: SocketMode
) -> Result<(), Self::Error>
[src]
&mut self,
socket: Socket,
mode: SocketMode
) -> Result<(), Self::Error>
pub fn sn_cr(&mut self, socket: Socket) -> Result<u8, Self::Error>
[src]
pub fn sn_sr(
&mut self,
socket: Socket
) -> Result<Result<SocketStatus, u8>, Self::Error>
[src]
&mut self,
socket: Socket
) -> Result<Result<SocketStatus, u8>, Self::Error>
pub fn sn_port(&mut self, socket: Socket) -> Result<u16, Self::Error>
[src]
pub fn set_sn_port(
&mut self,
socket: Socket,
port: u16
) -> Result<(), Self::Error>
[src]
&mut self,
socket: Socket,
port: u16
) -> Result<(), Self::Error>
pub fn sn_dhar(&mut self, socket: Socket) -> Result<Eui48Addr, Self::Error>
[src]
pub fn set_sn_dhar(
&mut self,
socket: Socket,
dhar: &Eui48Addr
) -> Result<(), Self::Error>
[src]
&mut self,
socket: Socket,
dhar: &Eui48Addr
) -> Result<(), Self::Error>
pub fn sn_dipr(&mut self, socket: Socket) -> Result<Ipv4Addr, Self::Error>
[src]
pub fn set_sn_dipr(
&mut self,
socket: Socket,
dipr: &Ipv4Addr
) -> Result<(), Self::Error>
[src]
&mut self,
socket: Socket,
dipr: &Ipv4Addr
) -> Result<(), Self::Error>
pub fn sn_dport(&mut self, socket: Socket) -> Result<u16, Self::Error>
[src]
pub fn set_sn_dport(
&mut self,
socket: Socket,
port: u16
) -> Result<(), Self::Error>
[src]
&mut self,
socket: Socket,
port: u16
) -> Result<(), Self::Error>
pub fn sn_dest(&mut self, socket: Socket) -> Result<SocketAddrV4, Self::Error>
[src]
pub fn set_sn_dest(
&mut self,
socket: Socket,
addr: &SocketAddrV4
) -> Result<(), Self::Error>
[src]
&mut self,
socket: Socket,
addr: &SocketAddrV4
) -> Result<(), Self::Error>
pub fn sn_mssr(&mut self, socket: Socket) -> Result<u16, Self::Error>
[src]
pub fn set_sn_mssr(
&mut self,
socket: Socket,
mssr: u16
) -> Result<(), Self::Error>
[src]
&mut self,
socket: Socket,
mssr: u16
) -> Result<(), Self::Error>
pub fn sn_tos(&mut self, socket: Socket) -> Result<u8, Self::Error>
[src]
pub fn set_sn_tos(&mut self, socket: Socket, tos: u8) -> Result<(), Self::Error>
[src]
pub fn sn_ttl(&mut self, socket: Socket) -> Result<u8, Self::Error>
[src]
pub fn set_sn_ttl(&mut self, socket: Socket, ttl: u8) -> Result<(), Self::Error>
[src]
pub fn sn_rxbuf_size(
&mut self,
socket: Socket
) -> Result<Result<BufferSize, u8>, Self::Error>
[src]
&mut self,
socket: Socket
) -> Result<Result<BufferSize, u8>, Self::Error>
pub fn set_sn_rxbuf_size(
&mut self,
socket: Socket,
size: BufferSize
) -> Result<(), Self::Error>
[src]
&mut self,
socket: Socket,
size: BufferSize
) -> Result<(), Self::Error>
pub fn sn_txbuf_size(
&mut self,
socket: Socket
) -> Result<Result<BufferSize, u8>, Self::Error>
[src]
&mut self,
socket: Socket
) -> Result<Result<BufferSize, u8>, Self::Error>
pub fn set_sn_txbuf_size(
&mut self,
socket: Socket,
size: BufferSize
) -> Result<(), Self::Error>
[src]
&mut self,
socket: Socket,
size: BufferSize
) -> Result<(), Self::Error>
pub fn sn_tx_fsr(&mut self, socket: Socket) -> Result<u16, Self::Error>
[src]
pub fn sn_tx_rd(&mut self, socket: Socket) -> Result<u16, Self::Error>
[src]
pub fn sn_tx_wr(&mut self, socket: Socket) -> Result<u16, Self::Error>
[src]
pub fn sn_rx_rd(&mut self, socket: Socket) -> Result<u16, Self::Error>
[src]
pub fn set_sn_rx_rd(
&mut self,
socket: Socket,
ptr: u16
) -> Result<(), Self::Error>
[src]
&mut self,
socket: Socket,
ptr: u16
) -> Result<(), Self::Error>
pub fn sn_rx_wr(&mut self, socket: Socket) -> Result<u16, Self::Error>
[src]
pub fn sn_imr(
&mut self,
socket: Socket
) -> Result<SocketInterruptMask, Self::Error>
[src]
&mut self,
socket: Socket
) -> Result<SocketInterruptMask, Self::Error>
pub fn set_sn_imr(
&mut self,
socket: Socket,
mask: SocketInterruptMask
) -> Result<(), Self::Error>
[src]
&mut self,
socket: Socket,
mask: SocketInterruptMask
) -> Result<(), Self::Error>
pub fn sn_frag(&mut self, socket: Socket) -> Result<u16, Self::Error>
[src]
pub fn set_sn_frag(
&mut self,
socket: Socket,
frag: u16
) -> Result<(), Self::Error>
[src]
&mut self,
socket: Socket,
frag: u16
) -> Result<(), Self::Error>
pub fn sn_kpalvtr(&mut self, socket: Socket) -> Result<u8, Self::Error>
[src]
pub fn set_sn_kpalvtr(
&mut self,
socket: Socket,
kpalvtr: u8
) -> Result<(), Self::Error>
[src]
&mut self,
socket: Socket,
kpalvtr: u8
) -> Result<(), Self::Error>
pub fn set_sn_tx_buf(
&mut self,
socket: Socket,
ptr: u16,
buf: &[u8]
) -> Result<(), Self::Error>
[src]
&mut self,
socket: Socket,
ptr: u16,
buf: &[u8]
) -> Result<(), Self::Error>
pub fn sn_rx_buf(
&mut self,
socket: Socket,
ptr: u16,
buf: &mut [u8]
) -> Result<(), Self::Error>
[src]
&mut self,
socket: Socket,
ptr: u16,
buf: &mut [u8]
) -> Result<(), Self::Error>
Auto Trait Implementations
impl RefUnwindSafe for W5500
[src]
impl Send for W5500
[src]
impl Sync for W5500
[src]
impl Unpin for W5500
[src]
impl UnwindSafe for W5500
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,