| ||||||
Files | |
| file | eeprom.h |
RobotC EEPROM Driver. | |
Defines | |
| #define | EEPROM_I2C_ADDR 0xA0 |
| #define | EEPROM_PAGE_SIZE 128 |
Functions | |
| bool | EEPROMreadBytes (tSensors link, long address, tByteArray &data, int numbytes) |
| bool | EEPROMwriteBytes (tSensors link, long address, tByteArray &data, int numbytes) |
| bool | _EEPROMwriteDummy (tSensors link, long address) |
Variables | |
| tByteArray | EEPROM_I2CRequest |
| tByteArray | EEPROM_I2CReply |
Generic I2C EEPROM
| bool _EEPROMwriteDummy | ( | tSensors | link, |
| long | address | ||
| ) |
| bool EEPROMreadBytes | ( | tSensors | link, |
| long | address, | ||
| tByteArray & | data, | ||
| int | numbytes | ||
| ) |
Read a number of bytes from address
| link | the EEPROM |
| address | the address to read from |
| data | the byte array to store read result in |
| numbytes | the number of bytes to read (limited to 16 at a time) |
| bool EEPROMwriteBytes | ( | tSensors | link, |
| long | address, | ||
| tByteArray & | data, | ||
| int | numbytes | ||
| ) |
Write a single byte to address
| link | the EEPROM |
| address | the address to write to |
| data | the byte array to write |
| numbytes | the number of bytes to write (limited to 13 at a time) |
1.7.2