www.pudn.com > rtems.rar > i2c-2b-eeprom.h


/* $Id: i2c-2b-eeprom.h,v 1.1 2005/11/03 02:52:40 strauman Exp $ */
#ifndef I2C_2B_EEPROM_DRIVER_H
#define I2C_2B_EEPROM_DRIVER_H

/* Trivial i2c driver for reading and writing "2-byte eeproms".
 * On 'open' the file-pointer is reset to 0, subsequent
 * read/write operations slurp/write data from there...
 */

/* Author: Till Straumann, 2005 */


#include 
#include 

#ifdef __cplusplus
extern "C" {
#endif

/* pass one of these to rtems_libi2c_register_drv() */

/* These ops provide no write access */
extern rtems_libi2c_drv_t *i2c_2b_eeprom_ro_driver_descriptor;

/* Use these for writing and reading */
extern rtems_libi2c_drv_t *i2c_2b_eeprom_driver_descriptor;

#ifdef __cplusplus
}
#endif

#endif