Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: DM_FATFileSystem EthernetInterface HTTPClient mbed-rtos mbed-src
Fork of DMSupport by
InternalEEPROM Class Reference
Internal EEPROM Driver. More...
#include <InternalEEPROM.h>
Public Member Functions | |
| void | init () | 
| Initializes the EEPROM.   | |
| void | powerDown () | 
| Put the internal EEPROM in a low power state.   | |
| int | read (uint32_t addr, uint8_t *data, uint32_t size) | 
| Reads size bytes from offset addr.   | |
| int | write (uint32_t addr, const uint8_t *data, uint32_t size) | 
| Writes size bytes to offset addr.   | |
| uint32_t | memorySize () | 
| Returns the size (in bytes) of the internal EEPROM.   | |
Detailed Description
Internal EEPROM Driver.
Definition at line 25 of file InternalEEPROM.h.
Member Function Documentation
| void init | ( | ) | 
Initializes the EEPROM.
- Returns:
 - Ok on success An error code on failure
 
Definition at line 123 of file InternalEEPROM.cpp.
| uint32_t memorySize | ( | ) | 
Returns the size (in bytes) of the internal EEPROM.
- Returns:
 - The size in bytes
 
Definition at line 82 of file InternalEEPROM.h.
| void powerDown | ( | ) | 
Put the internal EEPROM in a low power state.
Definition at line 144 of file InternalEEPROM.cpp.
| int read | ( | uint32_t | addr, | 
| uint8_t * | data, | ||
| uint32_t | size | ||
| ) | 
Reads size bytes from offset addr.
Note that this function will power up the EEPROM so it is recommended to call powerDown() when finished reading.
- Parameters:
 - 
  
addr the offset to read from data buffer to store the read data in size number of bytes to read  
- Returns:
 - The number of bytes read
 
Definition at line 149 of file InternalEEPROM.cpp.
| int write | ( | uint32_t | addr, | 
| const uint8_t * | data, | ||
| uint32_t | size | ||
| ) | 
Writes size bytes to offset addr.
Note that this function will power up the EEPROM so it is recommended to call powerDown() when finished writing.
- Parameters:
 - 
  
addr the offset to write to data the data to write size number of bytes to write  
- Returns:
 - The number of bytes written
 
Definition at line 185 of file InternalEEPROM.cpp.
Generated on Thu Jul 14 2022 15:41:14 by
 1.7.2 
    