COSA
An Object-Oriented Platform for Arduino Programming
|
#include <EEPROM.hh>
Public Member Functions | |
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) |
Static Public Attributes | |
static Device | eeprom |
EEPROM Device abstraction; default device is the processors internal EEPROM data memory. New devices should sub-class and implement virtual methods.
|
virtual |
Return true(1) if the device is ready, write cycle is completed, otherwise false(0).
Reimplemented in AT24CXX.
Definition at line 24 of file EEPROM.cpp.
|
virtual |
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 into. |
[in] | src | address in rom to read from. |
[in] | size | number of bytes to read. |
Reimplemented in AT24CXX.
Definition at line 30 of file EEPROM.cpp.
|
virtual |
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 write to. |
[in] | src | buffer to write to rom. |
[in] | size | number of bytes to write. |
Reimplemented in AT24CXX.
Definition at line 40 of file EEPROM.cpp.
|
static |