![]() |
|
|||
File indexing completed on 2025-05-11 08:23:43
0001 #ifndef I2C_2B_EEPROM_DRIVER_H 0002 #define I2C_2B_EEPROM_DRIVER_H 0003 0004 /* Trivial i2c driver for reading and writing "2-byte eeproms". 0005 * On 'open' the file-pointer is reset to 0, subsequent 0006 * read/write operations slurp/write data from there... 0007 */ 0008 0009 /* 0010 * Authorship 0011 * ---------- 0012 * This software was created by 0013 * Till Straumann <strauman@slac.stanford.edu>, 2005, 0014 * Stanford Linear Accelerator Center, Stanford University. 0015 * 0016 * Acknowledgement of sponsorship 0017 * ------------------------------ 0018 * This software was produced by 0019 * the Stanford Linear Accelerator Center, Stanford University, 0020 * under Contract DE-AC03-76SFO0515 with the Department of Energy. 0021 * 0022 * Government disclaimer of liability 0023 * ---------------------------------- 0024 * Neither the United States nor the United States Department of Energy, 0025 * nor any of their employees, makes any warranty, express or implied, or 0026 * assumes any legal liability or responsibility for the accuracy, 0027 * completeness, or usefulness of any data, apparatus, product, or process 0028 * disclosed, or represents that its use would not infringe privately owned 0029 * rights. 0030 * 0031 * Stanford disclaimer of liability 0032 * -------------------------------- 0033 * Stanford University makes no representations or warranties, express or 0034 * implied, nor assumes any liability for the use of this software. 0035 * 0036 * Stanford disclaimer of copyright 0037 * -------------------------------- 0038 * Stanford University, owner of the copyright, hereby disclaims its 0039 * copyright and all other rights in this software. Hence, anyone may 0040 * freely use it for any purpose without restriction. 0041 * 0042 * Maintenance of notices 0043 * ---------------------- 0044 * In the interest of clarity regarding the origin and status of this 0045 * SLAC software, this and all the preceding Stanford University notices 0046 * are to remain affixed to any copy or derivative of this software made 0047 * or distributed by the recipient and are to be affixed to any copy of 0048 * software made or distributed by the recipient that contains a copy or 0049 * derivative of this software. 0050 * 0051 * ------------------ SLAC Software Notices, Set 4 OTT.002a, 2004 FEB 03 0052 */ 0053 0054 0055 #include <rtems.h> 0056 #include <rtems/libi2c.h> 0057 0058 #ifdef __cplusplus 0059 extern "C" { 0060 #endif 0061 0062 /* pass one of these to rtems_libi2c_register_drv() */ 0063 0064 /* These ops provide no write access */ 0065 extern rtems_libi2c_drv_t *i2c_2b_eeprom_ro_driver_descriptor; 0066 0067 /* Use these for writing and reading */ 0068 extern rtems_libi2c_drv_t *i2c_2b_eeprom_driver_descriptor; 0069 0070 #ifdef __cplusplus 0071 } 0072 #endif 0073 0074 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
![]() ![]() |