LPC1549 EEPROM

Embed: (wiki syntax)

« Back to documentation index

eeprom.cpp File Reference

eeprom.cpp File Reference

Go to the source code of this file.

Functions

int write_eeprom (char *source_addr, char *target_addr, int size)
 Copy RAM to EEPROM (LPC11U24)
int read_eeprom (char *source_addr, char *target_addr, int size)
 Copy EEPROM to RAM (LPC11U24)

Detailed Description

Definition in file eeprom.cpp.


Function Documentation

int read_eeprom ( char *  source_addr,
char *  target_addr,
int  size 
)

Copy EEPROM to RAM (LPC11U24)

Parameters:
source_addrSource EEPROM address from which data bytes are to be read.
target_addrDestination RAM address where data bytes are to be written.
sizeNumber of bytes to be written.
Returns:
error code: CMD_SUCCESS | SRC_ADDR_NOT_MAPPED | DST_ADDR_NOT_MAPPED Remark: The top 64 bytes of the EEPROM memory are reserved and cannot be written to.

Definition at line 52 of file eeprom.cpp.

int write_eeprom ( char *  source_addr,
char *  target_addr,
int  size 
)

Copy RAM to EEPROM (LPC11U24)

Parameters:
source_addrSource RAM address from which data bytes are to be read.
target_addrDestination EEPROM address where data bytes are to be written.
sizeNumber of bytes to be written.
Returns:
error code: CMD_SUCCESS | SRC_ADDR_NOT_MAPPED | DST_ADDR_NOT_MAPPED Remark: The top 64 bytes of the EEPROM memory are reserved and cannot be written to.

Definition at line 32 of file eeprom.cpp.