Arduino-Storage
External Memory Storage library for Arduino
|
#include <AT24CXX.h>
Public Member Functions | |
AT24C32 (TWI &twi, uint8_t subaddr=0) | |
bool | is_ready () |
virtual int | read (void *dst, uint32_t src, size_t count) |
virtual int | write (uint32_t dst, const void *src, size_t count) |
uint32_t | room () |
uint32_t | alloc (size_t count) |
void | free (uint32_t addr) |
Public Attributes | |
const uint16_t | PAGE_MAX |
const uint32_t | SIZE |
Protected Attributes | |
const uint16_t | PAGE_MASK |
uint32_t | m_addr |
Static Protected Attributes | |
static const uint8_t | RETRY_MAX = 20 |
static const uint8_t | RETRY_DELAY_MS = 1 |
The AT24C32 provides 32,768 bits of serial electrically erasable and programmable read only memory (EEPROM) organized as 4096 words of 8 bits each. 32-Byte page write mode.
See Atmel Product description (Rev. 0336K-SEEPR-7/03), www.atmel.com/images/doc0336.pdf
|
inline |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlinevirtualinherited |
Read eeprom block with the given size into the buffer from the address. Return number of bytes read or negative error code.
[in] | dst | buffer to read from eeprom. |
[in] | src | address in eeprom to read from. |
[in] | count | number of bytes to read. |
Implements Storage.
|
inlineinherited |
|
inlinevirtualinherited |
Write eeprom block at given address with the contents from the buffer. Return number of bytes written or negative error code.
[in] | dst | address in eeprom to read write to. |
[in] | src | buffer to write to eeprom. |
[in] | count | number of bytes to write. |
Implements Storage.
|
protectedinherited |
|
protectedinherited |
|
inherited |
|
staticprotectedinherited |
|
staticprotectedinherited |
|
inherited |