17 #include <sys/ioctl.h> 21 #include <linux/i2c.h> 22 #include <linux/i2c-dev.h> 29 #define I2C_DRIVER "/dev/i2c-1" 31 #define AT24C32_SUCCESS 0 32 #define AT24C32_SIZE 4096 100 unsigned char at24c32CurrentAddressRead(
int);
void at24c32SetDebug(bool)
switches debug mode on or off
Definition: at24c32Debug.c:22
include file with inline access routines to talk to the i2c driver
int at24c32ByteWrite(int, unsigned short, unsigned char)
writes a byte to the EEPROM
Definition: at24c32Write.c:28
unsigned char * at24c32BlockRead(int, unsigned short, unsigned short)
reads a block of data from the EEPROM
Definition: at24c32Read.c:56
unsigned char at24c32ByteRead(int, unsigned short)
reads a byte from the EEPROM
Definition: at24c32Read.c:25
int at24c32BlockWrite(int, unsigned short, unsigned short, unsigned char *)
writes a block of data to the EEPROM
Definition: at24c32Write.c:66
int at24c32Open(void)
Definition: at24c32Open.c:23
int at24c32Close(int)
closes the i2c driver
Definition: at24c32Open.c:68