A board support package for the LPC4088 Display Module.

Dependencies:   DM_HttpServer DM_USBHost

Dependents:   lpc4088_displaymodule_emwin lpc4088_displaymodule_demo_sphere sampleGUI sampleEmptyGUI ... more

Fork of DMSupport by EmbeddedArtists AB

Embed: (wiki syntax)

« Back to documentation index

<title>InternalEEPROM Class Reference</title>

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 145 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:
addrthe offset to read from
databuffer to store the read data in
sizenumber of bytes to read
Returns:
The number of bytes read

Definition at line 150 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:
addrthe offset to write to
datathe data to write
sizenumber of bytes to write
Returns:
The number of bytes written

Definition at line 186 of file InternalEEPROM.cpp.