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 NyLPC_cOnchipFlashWriter.h Source File

NyLPC_cOnchipFlashWriter.h

00001 #ifndef cOnchipFlashWriter_h
00002 #define cOnchipFlashWriter_h
00003 
00004 
00005 #include "NyLPC_stdlib.h"
00006 #ifdef __cplusplus
00007 extern "C" {
00008 #endif /* __cplusplus */
00009 
00010 
00011 
00012 /**
00013  * アドレスi_destに、i_srcの内容を書き込みます。
00014  * 書き込みは、FlashROMがイレース済なものとして実行します。書込み範囲以外のデータは、変更されません。
00015  * 既に書込み済みのデータがある場合(0xFFFFFFFF以外)は、期待した結果が得られないので、注意してください。
00016  * この関数は、IAPインタフェイス経由で256バイト単位でデータを書き込みます。
00017  * IAPは0x1000000から32バイトをワークエリアとして使用します。
00018  * 関数はワークエリアの待避と復帰を行いますが、安全の為、使用前にRTOSを一旦停止させてください。
00019  * この関数はリエントラントではありません。
00020  */
00021 NyLPC_TBool NyLPC_cOnchipFlashWriter_write(const void* i_dest,const void* i_src,NyLPC_TUInt32 i_size);
00022 /**
00023  * この関数はリエントラントではありません。
00024  */
00025 NyLPC_TBool NyLPC_cOnchipFlashWriter_writeSector(NyLPC_TUInt16 i_sector,NyLPC_TUInt32 i_offset,const void* i_src,NyLPC_TUInt32 i_size);
00026 NyLPC_TBool NyLPC_cOnchipFlashWriter_elase(NyLPC_TUInt16 i_sector_s,NyLPC_TUInt16 i_sector_e);
00027 NyLPC_TBool NyLPC_cOnchipFlashWriter_isOnchipFlash(const void* i_addr);
00028 
00029 
00030 #ifdef __cplusplus
00031 }
00032 #endif /* __cplusplus */
00033 
00034 #endif