fn socket_cmd_recv(&mut self, sn: Sn) -> io::Result<()> {
        let socket = self.socket_mut(sn);
        socket.regs.rx_rsr = {
            if socket.regs.rx_wr >= socket.regs.rx_rd {
                socket.regs.rx_wr - socket.regs.rx_rd
            } else {
                u16::try_from(socket.regs.rxbuf_size.size_in_bytes()).unwrap() - socket.regs.rx_wr
                    + socket.regs.rx_rd
            }
        };

        Ok(())
    }
/// The RECV command is used to indicate that the microcontroller has read
/// an amount of data from the W5500, as indicated by the `sn_rx_rd`
/// pointer.
The RECV command is used to indicate that the microcontroller has read
an amount of data from the W5500, as indicated by the `sn_rx_rd`
pointer.
The RECV command is used to indicate that the microcontroller has read an amount of data from the W5500 as indicated by the ` sn_rx_rd ` pointer .
fn socket_cmd_recv(&mut self, sn: Sn) -> io::Result<()> {
        let socket = self.socket_mut(sn);
        socket.regs.rx_rsr = {
            if socket.regs.rx_wr >= socket.regs.rx_rd {
                socket.regs.rx_wr - socket.regs.rx_rd
            } else {
                u16::try_from(socket.regs.rxbuf_size.size_in_bytes()).unwrap() - socket.regs.rx_wr
                    + socket.regs.rx_rd
            }
        };
        Ok(())
    }
fn socket_cmd_recv ( & mut self , sn : Sn ) -> io :: Result < ( ) > { let socket = self . socket_mut ( sn ) ; socket . regs . rx_rsr = { if socket . regs . rx_wr >= socket . regs . rx_rd { socket . regs . rx_wr - socket . regs . rx_rd } else { u16 :: try_from ( socket . regs . rxbuf_size . size_in_bytes ( ) ) . unwrap ( ) - socket . regs . rx_wr + socket . regs . rx_rd } } ; Ok ( ( ) ) }
The RECV command is used to indicate that the microcontroller has read
an amount of data from the W5500, as indicated by the `sn_rx_rd`
pointer.
The RECV command is used to indicate that the microcontroller has read an amount of data from the W5500 as indicated by the ` sn_rx_rd ` pointer .
&mut self
sn
Sn
&mut self
sn
Sn