Crates.io | eeprom25aa02e48 |
lib.rs | eeprom25aa02e48 |
version | 1.0.1 |
source | src |
created_at | 2020-09-12 23:58:37.639051 |
updated_at | 2024-01-22 00:56:49.273464 |
description | Platform-agnostic Rust driver for the 25AA02E48 EEPROM. |
homepage | https://github.com/newAM/eeprom25aa02e48-rs |
repository | https://github.com/newAM/eeprom25aa02e48-rs |
max_upload_size | |
id | 287943 |
size | 28,122 |
Inspired by eeprom24x-rs, this is a driver for the Microchip 25AA02E48
SPI EEPROM, based on the embedded-hal
traits.
This EEPROM is unique because it has an EUI-48 MAC address programmed into the EEPROM, which is convenient for creating internet connected devices with valid MAC addresses.
use eeprom25aa02e48::Eeprom25aa02e48;
let mut eeprom = Eeprom25aa02e48::new(spi);
let eui48: [u8; 6] = eeprom.read_eui48()?;