w5500-ll
Platform agnostic rust driver for the Wiznet W5500 SPI internet offload chip.
This is a low-level (ll) crate. The scope of this crate is:
- Register accessors.
- Networking data types.
Higher level functionality (such as socket operations) should be built on-top of what is provided here.
Example
Reading the VERSIONR register (a constant value).
use ;
let mut w5500 = W5500 new;
let version: u8 = w5500.version?;
assert_eq!;
Feature Flags
By default only the embedded-hal
feature is enabled.
embedded-hal
: Enables theblocking
module which contains implementations of theRegisters
trait using theembedded-hal
traits.std
: Enables conversion betweenstd::net
andw5500_ll::net
types. This is for testing purposes only, thestd
flag will not work on embedded systems because it uses the standard library.
Related Crates
- w5500-hl - Higher level socket operations.
- w5500-regsim - Register simulation using
std::net
.