blob: e5c72554c38378eb796a8820028b8e18e64ba008 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
/* $Id$ */
#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 <rtems.h>
#include <rtems/libi2c.h>
#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
|