COSA
An Object-Oriented Platform for Arduino Programming
|
#include <AT24CXX.hh>
Public Member Functions | |
AT24C32 (uint8_t addr=0) | |
virtual bool | is_ready () |
virtual int | read (void *dest, const void *src, size_t size) |
virtual int | write (void *dest, const void *src, size_t size) |
Public Attributes | |
const size_t | SIZE |
const uint16_t | PAGE_MAX |
Static Public Attributes | |
static Device | eeprom |
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
Definition at line 135 of file AT24CXX.hh.
|
inline |
Definition at line 137 of file AT24CXX.hh.
|
virtualinherited |
Return true(1) if the device is ready, write cycle is completed, otherwise false(0).
Reimplemented from EEPROM::Device.
Definition at line 47 of file AT24CXX.cpp.
|
virtualinherited |
Read rom 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 rom. |
[in] | src | address in rom to read from. |
[in] | size | number of bytes to read. |
Reimplemented from EEPROM::Device.
Definition at line 57 of file AT24CXX.cpp.
|
virtualinherited |
Write rom block at given address with the contents from the buffer. Return number of bytes written or negative error code.
[in] | dest | address in rom to read write to. |
[in] | src | buffer to write to rom. |
[in] | size | number of bytes to write. |
Reimplemented from EEPROM::Device.
Definition at line 66 of file AT24CXX.cpp.
|
staticinherited |
|
inherited |
Number of bytes in max write page size.
Definition at line 58 of file AT24CXX.hh.
|
inherited |
Number of bytes on device.
Definition at line 53 of file AT24CXX.hh.