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
All features are disabled by default.
async
: Nightly only. Enables the asynchronousaio::Registers
trait.defmt
: Enable formatting most types withdefmt
.eh0
: Enables theeh0
module which contains implementations of theRegisters
trait using theembedded-hal
version 0.2 traits.eh1
: Enables theeh1
module which contains implementations of theRegisters
trait using theembedded-hal
version 1 traits.eha0a
: Nightly only. Implements theaio::Registers
trait for types in theeh1
module using theembedded-hal-async
alpha traits.ip_in_core
: Nightly only. Usecore::net
types forIpv4Addr
andSocketAddrV4
.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.