Skip to content

W5500-hl-rs

W5500-hl-rs

Components

Hardware components

WIZnet parts

Project description

https://github.com/newAM/w5500-hl-rs for high level socket with platform agnostic feature low level registers drivers are contained in https://github.com/newAM/w5500-ll-rs Examples UDP sockets use w5500_hl::ll::{ net::{Ipv4Addr, SocketAddrV4}, Registers, Socket::Socket0, }; use w5500_hl::Udp; // open Socket0 as a UDP socket on port 1234 w5500.udp_bind(Socket0, 1234)?; // send 4 bytes to 192.168.2.4:8080, and get the number of bytes transmitted let data: [u8; 4] = [0, 1, 2, 3]; let destination = SocketAddrV4::new(Ipv4Addr::new(192, 168, 2, 4), 8080); let tx_bytes = w5500.udp_send_to(Socket0…

Keep reading with a free account

Guests can read 15 projects per visit. Log in or create a free account to read the full description, open the documents and join the comments.

Similar projects you might like