#eeprom #spi-driver #driver #spi #microchip #embedded-hal-driver #mac-address

no-std eeprom25aa02e48

Platform-agnostic Rust driver for the 25AA02E48 EEPROM

4 releases (2 stable)

1.0.1 Jan 22, 2024
0.2.0 Feb 15, 2021
0.1.0 Sep 12, 2020

#1581 in Embedded development

28 downloads per month

MIT license

70 lines

crates.io docs.rs Build Status


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()?;