Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/newam/eeprom25aa02e48-rs
Platform agnostic Rust driver for the 25AA02E48 serial EEPROM device using embedded-hal traits.
https://github.com/newam/eeprom25aa02e48-rs
driver eeprom rust rust-embedded
Last synced: 17 days ago
JSON representation
Platform agnostic Rust driver for the 25AA02E48 serial EEPROM device using embedded-hal traits.
- Host: GitHub
- URL: https://github.com/newam/eeprom25aa02e48-rs
- Owner: newAM
- License: mit
- Created: 2020-04-13T02:28:21.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-06-01T21:23:14.000Z (5 months ago)
- Last Synced: 2024-10-18T05:18:44.686Z (18 days ago)
- Topics: driver, eeprom, rust, rust-embedded
- Language: Rust
- Homepage:
- Size: 42 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
[![crates.io](https://img.shields.io/crates/v/eeprom25aa02e48.svg)](https://crates.io/crates/eeprom25aa02e48)
[![docs.rs](https://docs.rs/eeprom25aa02e48/badge.svg)](https://docs.rs/eeprom25aa02e48/)
[![Build Status](https://github.com/newAM/eeprom25aa02e48-rs/workflows/CI/badge.svg)](https://github.com/newAM/eeprom25aa02e48-rs/actions)# 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 convenient for creating internet connected devices
with valid MAC addresses.## Example
```rust
use eeprom25aa02e48::Eeprom25aa02e48;let mut eeprom = Eeprom25aa02e48::new(spi);
let eui48: [u8; 6] = eeprom.read_eui48()?;
```[`embedded-hal`]: https://github.com/rust-embedded/embedded-hal
[eeprom24x-rs]: https://github.com/eldruin/eeprom24x-rs
[Microchip 25AA02E48]: http://ww1.microchip.com/downloads/en/DeviceDoc/25AA02E48-25AA02E64-2K-SPI-Bus-Serial-EEPROM-Data%20Sheet_DS20002123G.pdf