// Unfortunately, the 16-bit addressing on the EEPROM chews up one of those bytes, and further downgrades the max transfer size to 16 bytes of data (since we have to stay power of 2 aligned)
#define MAX_PAGE_SIZE 16
structeeprom
{
char*dev;// device file i.e. /dev/i2c-N
...
...
@@ -52,7 +58,7 @@ int eeprom_read_current_byte(struct eeprom *e);
* writes [data] at memory address [mem_addr]
* Note: eeprom must have been selected by ioctl(fd,I2C_SLAVE,address)