2013-07-15 16:29:37 +02:00
|
|
|
#ifndef __EEPROMREAD_H
|
|
|
|
#define __EEPROMREAD_H
|
|
|
|
|
2013-11-10 18:06:27 +01:00
|
|
|
enum device_types { I2C_DEVICE, EEPROM_DEVICE };
|
|
|
|
#define DEFAULT_DEVICE I2C_DEVICE
|
|
|
|
|
2013-07-15 16:29:37 +02:00
|
|
|
int eeprom_read(int fd, i2c_addr_t addr, uint16_t memaddr, void *buf,
|
2013-11-10 18:06:27 +01:00
|
|
|
size_t buflen, int flags, enum device_types device_type);
|
|
|
|
|
|
|
|
int board_info(int fd, i2c_addr_t address, int flags,
|
|
|
|
enum device_types device_type);
|
2013-07-15 16:29:37 +02:00
|
|
|
|
|
|
|
#endif /* __EEPROMREAD_H */
|