Constant w5500_ll::VERSION[][src]

pub const VERSION: u8 = 0x04;

Value of the W5500 VERSIONR register.

This is very useful as a sanity check to ensure the W5500 is out of reset and responding correctly to register reads.

Example

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

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