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

no-std eeprom25aa02e48

Platform-agnostic Rust driver for the 25AA02E48 EEPROM

2 unstable releases

0.2.0 Feb 15, 2021
0.1.0 Sep 12, 2020

#412 in Embedded development

Download history 38/week @ 2021-02-20 57/week @ 2021-02-27 39/week @ 2021-03-06 35/week @ 2021-03-13 37/week @ 2021-03-20 33/week @ 2021-03-27 32/week @ 2021-04-03 33/week @ 2021-04-10 30/week @ 2021-04-17 40/week @ 2021-04-24 39/week @ 2021-05-01 69/week @ 2021-05-08 51/week @ 2021-05-15 33/week @ 2021-05-22 30/week @ 2021-05-29 32/week @ 2021-06-05

177 downloads per month

MIT license

15KB
104 lines

Maintenance crates.io docs.rs Build Status

eeprom25aa02e48

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 convient for creating internet connected devices with valid MAC addresses.

Example

use eeprom25aa02e48::Eeprom25aa02e48;

let mut eeprom = Eeprom25aa02e48::new(spi, pin);
let eui48: [u8; 6] = eeprom.read_eui48()?;

Dependencies

~82KB