Giter VIP home page Giter VIP logo

24aa's Introduction

Abstraction layer for EEPROM ICs like 24AA/24LC.

1. DESCRIPTION

This library designed to work on top of ChibiOS/RT. It abstracts access to
EEPROM like a regular file(s).

2. LIMITATIONS

* Only I2C.
* Maximum capacity of EEPROM is 65536 bytes.
* No 'RAID' like combining

3. USAGE 
3.1. C

* Include eeprom.h file to your project.
* Create eeprom_conf.h (sample included) in your project.
* Define file object of a EepromFileStream type
  and config structure for it.
* Open them with EepromOpen() function.

Now you can access to EEPROM array like to a regular file with functions:
- chFileStreamRead()
- chFileStreamWrite()
- chFileStreamGetPosition()
- chFileStreamSeek()
etc. 

Examples of usage and checking the returning parameter you can found in
eeprom_testsuit.c

3.2. CPP 
Example of CPP code you can find in 'cpp_example' directory. Also 
check 'eeprom_testsuit.cpp'.

Note! You have to provide fucntions eeprom_led_on() and eeprom_led_off()
in your eeprom_mtd_conf.h If you do not need such functionality just 
define empty macros. 


Author: Uladzimir Pylinski aka barthess ([email protected]). 
06.02.2012 

24aa's People

Contributors

barthess avatar

Watchers

Nikhil Upadhye avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.