---
title: "w5500-ll"
url: "https://maker.wiznet.io/teddy/projects/w5500ll/"
markdown_url: "https://maker.wiznet.io/teddy/projects/w5500ll/md"
type: "UCC: User Created Content"
author: "teddy"
author_url: "https://maker.wiznet.io/teddy/"
original_author: "teddy"
original_url: "https://lib.rs/crates/w5500-ll"
published: "2022-03-02"
language: "en"
likes: 0
views: 189
comments: 0
source: "WIZnet Makers (https://maker.wiznet.io/)"
---

# w5500-ll

> w5500-ll

Original author: teddy (source: https://lib.rs/crates/w5500-ll)

## Components

- Software: **w5500-ll-rs**: git hub

## Article

## w5500-ll

Platform agnostic rust driver for the?[Wiznet W5500](https://www.wiznet.io/product-item/w5500/)?SPI internet offload chip.

This is a low-level (ll) crate. The scope of this crate is:

1. Register accessors.

2. Networking data types.

Higher level functionality (such as socket operations) should be built on-top of what is provided here.

### <https://github.com/newam/w5500-ll-rs#example>Example

Reading the VERSIONR register (a constant value).

```
use w5500_ll::{blocking::vdm::W5500, Registers};

let mut w5500 = W5500::new(spi, pin);
let version: u8 = w5500.version()?;
assert_eq!(version, 0x04);
```

### <https://github.com/newam/w5500-ll-rs#feature-flags>Feature Flags

All features are disabled by default.

- `defmt`: Enable formatting most types with?`defmt`.

- `embedded-hal`: Enables the?[`blocking`](https://docs.rs/w5500-ll/0.10.1/w5500_ll/blocking/index.html)?module which contains implementations of the?[`Registers`](https://docs.rs/w5500-ll/0.10.1/w5500_ll/trait.Registers.html)?trait using the?`embedded-hal`?traits.

- `std`: Enables conversion between?[`std::net`](https://doc.rust-lang.org/std/net/index.html)?and?[`w5500_ll::net`](https://docs.rs/w5500-ll/0.10.1/w5500_ll/net/index.html)?types. This is for testing purposes only, the?`std`?flag will not work on embedded systems because it uses the standard library.

### <https://github.com/newam/w5500-ll-rs#related-crates>Related Crates

- [w5500-hl](https://github.com/newAM/w5500-hl-rs)?- Higher level socket operations.

- [w5500-regsim](https://github.com/newAM/w5500-regsim-rs)?- Register simulation using?[`std::net`](https://doc.rust-lang.org/std/net/index.html).

---

Source: https://maker.wiznet.io/teddy/projects/w5500ll/
