This is Webservice SDK for mbed. LPCXpresso1769/LPC1768/FRDM-K64F/LPC4088
Fork of libMiMic by
Diff: core/flash/NyLPC_cMiMicConfiglation.h
- Revision:
- 2:b96c1e90d120
- Child:
- 11:c82a7b2899b0
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/core/flash/NyLPC_cMiMicConfiglation.h Wed Mar 27 12:07:47 2013 +0000 @@ -0,0 +1,43 @@ +/* + * cConfiglationStorage.h + * + * Created on: 2011/10/18 + * Author: nyatla + */ + +#include "NyLPC_stdlib.h" +#ifndef NYLPC_CCONFIGLATIONSTORAGE_H_ +#define NYLPC_CCONFIGLATIONSTORAGE_H_ + + +/** + * IPアドレスはネットワークオーダーで格納する。 + */ +struct NyLPC_TMimicConfigulation{ + /** + * ROM焼検出用。0xFFFFFFFFを書く + */ + NyLPC_TUInt32 fast_boot; + NyLPC_TUInt32 mac_00_01_02_03; + NyLPC_TUInt32 mac_04_05_xx_xx; + NyLPC_TUInt32 ipv4_addr_net; + NyLPC_TUInt32 ipv4_mask_net; + NyLPC_TUInt32 ipv4_drut_net; + NyLPC_TUInt32 ipv4_port; + NyLPC_TUInt32 accessmode; +}; + +/** + * ユーザコンフィギュレーションを更新する。 + * この関数は、RTOSが停止中に実行すること。 + * この関数は384バイト程度のスタックが必要です。 + */ +NyLPC_TBool NyLPC_cMiMicConfiglation_updateConfigulation(const struct NyLPC_TMimicConfigulation* i_congfiglation); +/** + * コンフィギュレーション値を返す。 + * この関数は、RTOSが停止中に実行すること。 + */ +const struct NyLPC_TMimicConfigulation* NyLPC_cMiMicConfiglation_loadMiMicConfigulation(void); + + +#endif /* CCONFIGLATIONSTORAGE_H_ */