Crate eeprom25aa02e48[−][src]
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()?;
Modules
instruction | EEPROM instructions. |
Structs
Eeprom25aa02e48 | Microchip 25AA02E48 driver. |
Enums
Error | Error type. |
Constants
EUI48_BYTES | Number of bytes in an EUI48 MAC address. |
EUI48_MEMORY_ADDRESS | EPPROM memory address of the EUI48 address. |
PAGE_SIZE | EEPROM page size in bytes. |