RTEMS 6.1-rc4
Loading...
Searching...
No Matches
i2c-2b-eeprom.h
1#ifndef I2C_2B_EEPROM_DRIVER_H
2#define I2C_2B_EEPROM_DRIVER_H
3
4/* Trivial i2c driver for reading and writing "2-byte eeproms".
5 * On 'open' the file-pointer is reset to 0, subsequent
6 * read/write operations slurp/write data from there...
7 */
8
9/*
10 * Authorship
11 * ----------
12 * This software was created by
13 * Till Straumann <strauman@slac.stanford.edu>, 2005,
14 * Stanford Linear Accelerator Center, Stanford University.
15 *
16 * Acknowledgement of sponsorship
17 * ------------------------------
18 * This software was produced by
19 * the Stanford Linear Accelerator Center, Stanford University,
20 * under Contract DE-AC03-76SFO0515 with the Department of Energy.
21 *
22 * Government disclaimer of liability
23 * ----------------------------------
24 * Neither the United States nor the United States Department of Energy,
25 * nor any of their employees, makes any warranty, express or implied, or
26 * assumes any legal liability or responsibility for the accuracy,
27 * completeness, or usefulness of any data, apparatus, product, or process
28 * disclosed, or represents that its use would not infringe privately owned
29 * rights.
30 *
31 * Stanford disclaimer of liability
32 * --------------------------------
33 * Stanford University makes no representations or warranties, express or
34 * implied, nor assumes any liability for the use of this software.
35 *
36 * Stanford disclaimer of copyright
37 * --------------------------------
38 * Stanford University, owner of the copyright, hereby disclaims its
39 * copyright and all other rights in this software. Hence, anyone may
40 * freely use it for any purpose without restriction.
41 *
42 * Maintenance of notices
43 * ----------------------
44 * In the interest of clarity regarding the origin and status of this
45 * SLAC software, this and all the preceding Stanford University notices
46 * are to remain affixed to any copy or derivative of this software made
47 * or distributed by the recipient and are to be affixed to any copy of
48 * software made or distributed by the recipient that contains a copy or
49 * derivative of this software.
50 *
51 * ------------------ SLAC Software Notices, Set 4 OTT.002a, 2004 FEB 03
52 */
53
54
55#include <rtems.h>
56#include <rtems/libi2c.h>
57
58#ifdef __cplusplus
59extern "C" {
60#endif
61
62/* pass one of these to rtems_libi2c_register_drv() */
63
64/* These ops provide no write access */
65extern rtems_libi2c_drv_t *i2c_2b_eeprom_ro_driver_descriptor;
66
67/* Use these for writing and reading */
68extern rtems_libi2c_drv_t *i2c_2b_eeprom_driver_descriptor;
69
70#ifdef __cplusplus
71}
72#endif
73
74#endif
Legacy I2C Library.
This header file defines the RTEMS Classic API.
Definition: libi2c.h:297