|
Arduino-TWI
Two-Wire Interface (TWI) library for Arduino
|
#include <AT24CXX.h>


Public Member Functions | |
| AT24C32 (TWI &twi, uint8_t subaddr=0) | |
| bool | is_ready () |
| int | read (void *dest, uint16_t src, size_t count) |
| int | write (uint16_t dest, const void *src, size_t count) |
Public Attributes | |
| const uint16_t | PAGE_MAX |
| const uint16_t | PAGE_MASK |
| const size_t | SIZE |
Protected Member Functions | |
| int | read (void *buf, size_t count) |
| int | write (const void *buf, size_t count) |
| int | write (iovec_t *vp) |
| bool | acquire () |
| bool | release () |
Protected Attributes | |
| TWI & | m_twi |
| uint8_t | m_addr |
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 |
|
inlineinherited |
Read eeprom block with the given size into the buffer from the address. Return number of bytes read or negative error code.
| [in] | dest | buffer to read from eeprom. |
| [in] | src | address in eeprom to read from. |
| [in] | count | number of bytes to read. |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Write eeprom block at given address with the contents from the buffer. Return number of bytes written or negative error code.
| [in] | dest | address in eeprom to read write to. |
| [in] | src | buffer to write to eeprom. |
| [in] | count | number of bytes to write. |
|
protectedinherited |
|
protectedinherited |
|
inherited |
|
inherited |
|
inherited |