![]() |
MySensors Library & Examples
2.3.2-62-ge298769
|
I2CEeprom class
Definition at line 72 of file I2CEeprom.h.
#include <I2CEeprom.h>
Inheritance diagram for I2CEeprom:
Collaboration diagram for I2CEeprom:Public Member Functions | |
| I2CEeprom (uint8_t addr) | |
| Constructor. | |
| bool | initialize () |
| setup | |
| uint8_t | readByte (uint32_t addr) |
| read 1 byte from flash memory | |
| void | readBytes (uint32_t addr, void *buf, uint16_t len) |
| read multiple bytes | |
| void | writeByte (uint32_t addr, uint8_t byt) |
| Write 1 byte to flash memory. | |
| void | writeBytes (uint32_t addr, const void *buf, uint16_t len) |
| write multiple bytes to flash memory (up to 64K), if define SPIFLASH_SST25TYPE is set AAI Word Programming will be used | |
| bool | busy () |
| check if the chip is busy erasing/writing | |
| uint16_t | readDeviceId () |
| dummy function for SPI flash compatibility | |
| void | chipErase () |
| dummy function for SPI flash compatibility | |
| void | blockErase4K (uint32_t address) |
| dummy function for SPI flash compatibility | |
| void | blockErase32K (uint32_t address) |
| dummy function for SPI flash compatibility | |
| void | sleep () |
| dummy function for SPI flash compatibility | |
| void | wakeup () |
| dummy function for SPI flash compatibility | |
| void | end () |
| dummy function for SPI flash compatibility | |
Protected Attributes | |
| uint8_t | m_addr |
| I2C address for busy() | |