LPCOpen Platform  v1.03
LPCOpen Platform for NXP LPC Microcontrollers
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
flash_001.h File Reference
#include "sys_config.h"
#include "cmsis.h"

Go to the source code of this file.

Data Structures

struct  FLASH_COMMAND_T
 Command parameter table structure. More...
 
struct  FLASH_OUTPUT_T
 Command result table structure. More...
 
struct  FLASH_PREPARE_SECTORS_COMMAND_T
 [Prepare sectors] command parameter table structure More...
 
struct  FLASH_PREPARE_SECTORS_OUTPUT_T
 [Prepare sectors] command result table structure More...
 
struct  FLASH_COPY_RAM_TO_FLASH_COMMAND_T
 [Copy Ram to Flash] command parameter table structure More...
 
struct  FLASH_COPY_RAM_TO_FLASH_OUTPUT_T
 [Copy Ram to Flash] command result table structure More...
 
struct  FLASH_ERASE_SECTORS_COMMAND_T
 [Erase Sector(s)] command parameter table structure More...
 
struct  FLASH_ERASE_SECTORS_OUTPUT_T
 [Erase Sector(s)] command result table structure More...
 
struct  FLASH_BLANK_CHECK_SECTORS_COMMAND_T
 [Blank check sector(s)] command parameter table structure More...
 
struct  FLASH_BLANK_CHECK_SECTORS_OUTPUT_T
 [Blank check sector(s)] command result table structure More...
 
struct  FLASH_READ_PART_ID_COMMAND_T
 [Read Part Identification number] command parameter table structure More...
 
struct  FLASH_READ_PART_ID_OUTPUT_T
 [Read Part Identification number] command result table structure More...
 
struct  FLASH_READ_BOOTCODE_VER_COMMAND_T
 [Read Boot code version number] command parameter table structure More...
 
struct  FLASH_READ_BOOTCODE_VER_OUTPUT_T
 [Read Boot code version number] command result table structure More...
 
struct  FLASH_COMPARE_MEM_COMMAND_T
 [Compare memory] command parameter table structure More...
 
struct  FLASH_COMPARE_MEM_OUTPUT_T
 [Compare memory] command result table structure More...
 
struct  FLASH_REINVOKE_ISP_COMMAND_T
 [Reinvoke ISP] command parameter table structure More...
 
struct  FLASH_REINVOKE_ISP_OUTPUT_T
 [Reinvoke ISP] command result table structure More...
 
struct  FLASH_READ_UID_COMMAND_T
 [ReadUID] command parameter table structure More...
 
struct  FLASH_READ_UID_OUTPUT_T
 [ReadUID] command result table structure More...
 

Macros

#define FLASH_PARAMETER_NUM   (5)
 
#define FLASH_RESULT_NUM   (4)
 

Typedefs

typedef void(* FLASH_ENTRY_T )(unsigned int[], unsigned int[])
 

Enumerations

enum  FLASH_CMD_CODE_T {
  FLASH_PREPARE = 50, FLASH_COPY_RAM_TO_FLASH = 51, FLASH_ERASE = 52, FLASH_BLANK_CHECK = 53,
  FLASH_READ_PART_ID = 54, FLASH_READ_BOOT_VER = 55, FLASH_COMPARE = 56, FLASH_REINVOKE_ISP = 57,
  FLASH_READ_UID = 58
}
 Flash command code definitions. More...
 
enum  FLASH_STATUS_CODE_T {
  CMD_SUCCESS, INVALID_COMMAND, SRC_ADDR_ERROR, DST_ADDR_ERROR,
  SRC_ADDR_NOT_MAPPED, DST_ADDR_NOT_MAPPED, COUNT_ERROR, INVALID_SECTOR,
  SECTOR_NOT_BLANK, SECTOR_NOT_PREPARED_FOR_WRITE_OPERATION, COMPARE_ERROR, BUSY
}
 Flash status code definitions. More...
 

Functions

STATIC INLINE void IP_FLASH_Execute (FLASH_ENTRY_T entry, FLASH_COMMAND_T *pCommand, FLASH_OUTPUT_T *pOutput)
 Execute flash programming command.