This is Webservice SDK for mbed. LPCXpresso1769/LPC1768/FRDM-K64F/LPC4088
Fork of libMiMic by
core/flash/NyLPC_cMiMicConfiglation.h
- Committer:
- nyatla
- Date:
- 2013-05-02
- Revision:
- 27:eb66b517efe6
- Parent:
- 12:efe841863fc8
- Child:
- 37:fc4b4fd6a649
File content as of revision 27:eb66b517efe6:
/* * cConfiglationStorage.h * * Created on: 2011/10/18 * Author: nyatla */ #include "NyLPC_stdlib.h" #ifndef NYLPC_CCONFIGLATIONSTORAGE_H_ #define NYLPC_CCONFIGLATIONSTORAGE_H_ #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ /** * IPアドレスはネットワークオーダーで格納する。 * 構造体は4バイトアライメントであること。 */ 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; }; /** * ユーザー定義コンフィギュレーションを持つ場合にtrue * falseなら初期設定と捉えることも出来ます。 */ NyLPC_TBool NyLPC_cMiMicConfiglation_hasUserConfigulation(void); /** * ユーザコンフィギュレーションを更新する。 * この関数は、RTOSが停止中に実行すること。 * この関数は384バイト程度のスタックが必要です。 */ NyLPC_TBool NyLPC_cMiMicConfiglation_updateConfigulation(const struct NyLPC_TMimicConfigulation* i_congfiglation); /** * コンフィギュレーション値を返す。 * この関数は、RTOSが停止中に実行すること。 */ const struct NyLPC_TMimicConfigulation* NyLPC_cMiMicConfiglation_loadFromFlash(void); const struct NyLPC_TMimicConfigulation* NyLPC_cMiMicConfiglation_loadFactoryDefault(void); #ifdef __cplusplus } #endif /* __cplusplus */ #endif /* CCONFIGLATIONSTORAGE_H_ */