This is Webservice SDK for mbed. LPCXpresso1769/LPC1768/FRDM-K64F/LPC4088

Dependents:   MbedFileServer_1768MiniDK2 RedWireBridge IssueDebug_gcc MiMicRemoteMCU-for-Mbed ... more

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers LPC17xx_IAP.h Source File

LPC17xx_IAP.h

00001 #ifndef LPC17xx_IAP_h
00002 #define LPC17xx_IAP_h
00003 
00004 #include <string.h>
00005 #ifdef __cplusplus
00006 extern "C" {
00007 #endif /* __cplusplus */
00008 
00009 #define LPC17xx_IAP_TRUE (0==0)
00010 #define LPC17xx_IAP_FALSE (0!=0)
00011 //Command is executed successfully.
00012 #define LPC17xx_IAP_CMD_SUCCESS 0
00013 
00014 int LPC17xx_IAP_addr2Sector(const void* addr,unsigned long* o_sector);
00015 int LPC17xx_IAP_sector2Addr(unsigned int i_sector,void** o_addr);
00016 
00017 unsigned long LPC17xx_IAP_getSectorSize(unsigned int i_sector);
00018 unsigned long LPC17xx_IAP_prepare(unsigned long i_start,unsigned long i_end);
00019 unsigned long LPC17xx_IAP_copyRam2Flash(const void* i_flash_addr,const void* i_src_addr,unsigned long i_size);
00020 unsigned long LPC17xx_IAP_erase(unsigned long i_start,unsigned long i_end);
00021 
00022 #ifdef __cplusplus
00023 }
00024 #endif /* __cplusplus */
00025 
00026 #endif