#include <AT24CXX.h>
|
| | AT24C128 (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) |
| |
The AT24C128 provides 131,072 bits of serial electrically erasable and programmable read only memory (EEPROM) organized as 16,384 words of 8 bits each. 64-Byte page write mode.
See Atmel Product description (Rev. 0670T–SEEPR–3/07), http://www.atmel.com/Images/doc0670.pdf
Definition at line 204 of file AT24CXX.h.
| AT24C128::AT24C128 |
( |
TWI & |
twi, |
|
|
uint8_t |
subaddr = 0 |
|
) |
| |
|
inline |
| bool TWI::Device::acquire |
( |
| ) |
|
|
inlineinherited |
Start transaction. Return true(1) if successful otherwise false(0).
- Returns
- bool.
Definition at line 51 of file TWI.h.
| bool AT24CXX::is_ready |
( |
| ) |
|
|
inlineinherited |
Return true(1) if the device is ready, write cycle is completed, otherwise false(0).
- Returns
- bool.
Definition at line 82 of file AT24CXX.h.
| int TWI::Device::read |
( |
void * |
buf, |
|
|
size_t |
count |
|
) |
| |
|
inlineinherited |
Read data from device to given buffer.
- Parameters
-
| [in] | buf | buffer pointer. |
| [in] | count | buffer size in bytes. |
- Returns
- number of bytes read or negative error code.
Definition at line 72 of file TWI.h.
| int AT24CXX::read |
( |
void * |
dest, |
|
|
uint16_t |
src, |
|
|
size_t |
count |
|
) |
| |
|
inlineinherited |
Read eeprom block with the given size into the buffer from the address. Return number of bytes read or negative error code.
- Parameters
-
| [in] | dest | buffer to read from eeprom. |
| [in] | src | address in eeprom to read from. |
| [in] | count | number of bytes to read. |
- Returns
- number of bytes or negative error code.
Definition at line 98 of file AT24CXX.h.
| bool TWI::Device::release |
( |
| ) |
|
|
inlineinherited |
Stop transaction. Return true(1) if successful otherwise false(0).
- Returns
- bool.
Definition at line 61 of file TWI.h.
| int TWI::Device::write |
( |
const void * |
buf, |
|
|
size_t |
count |
|
) |
| |
|
inlineinherited |
Write data from the given buffer to device.
- Parameters
-
| [in] | buf | buffer pointer. |
| [in] | count | buffer size in bytes. |
- Returns
- number of bytes written or negative error code.
Definition at line 83 of file TWI.h.
| int TWI::Device::write |
( |
iovec_t * |
vp | ) |
|
|
inlineinherited |
Write data to device with from given io vector.
- Parameters
-
- Returns
- number of bytes written or negative error code.
Definition at line 93 of file TWI.h.
| int AT24CXX::write |
( |
uint16_t |
dest, |
|
|
const void * |
src, |
|
|
size_t |
count |
|
) |
| |
|
inlineinherited |
Write eeprom block at given address with the contents from the buffer. Return number of bytes written or negative error code.
- Parameters
-
| [in] | dest | address in eeprom to read write to. |
| [in] | src | buffer to write to eeprom. |
| [in] | count | number of bytes to write. |
- Returns
- number of bytes or negative error code.
Definition at line 124 of file AT24CXX.h.
| uint8_t TWI::Device::m_addr |
|
protectedinherited |
Two-Wire Interface Manager.
Definition at line 100 of file TWI.h.
| const uint16_t AT24CXX::PAGE_MASK |
|
inherited |
Memory addres page mask.
Definition at line 54 of file AT24CXX.h.
| const uint16_t AT24CXX::PAGE_MAX |
|
inherited |
Number of bytes in max write page size.
Definition at line 51 of file AT24CXX.h.
| const size_t AT24CXX::SIZE |
|
inherited |
Number of bytes on device.
Definition at line 57 of file AT24CXX.h.
The documentation for this class was generated from the following file: