This is Webservice SDK for mbed. LPCXpresso1769/LPC1768/FRDM-K64F/LPC4088
Fork of libMiMic by
core/flash/NyLPC_cMiMicConfiglation.h@12:efe841863fc8, 2013-04-20 (annotated)
- Committer:
- nyatla
- Date:
- Sat Apr 20 05:03:57 2013 +0000
- Revision:
- 12:efe841863fc8
- Parent:
- 11:c82a7b2899b0
- Child:
- 27:eb66b517efe6
MiMic r218
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
nyatla | 2:b96c1e90d120 | 1 | /* |
nyatla | 2:b96c1e90d120 | 2 | * cConfiglationStorage.h |
nyatla | 2:b96c1e90d120 | 3 | * |
nyatla | 2:b96c1e90d120 | 4 | * Created on: 2011/10/18 |
nyatla | 2:b96c1e90d120 | 5 | * Author: nyatla |
nyatla | 2:b96c1e90d120 | 6 | */ |
nyatla | 2:b96c1e90d120 | 7 | |
nyatla | 2:b96c1e90d120 | 8 | #include "NyLPC_stdlib.h" |
nyatla | 2:b96c1e90d120 | 9 | #ifndef NYLPC_CCONFIGLATIONSTORAGE_H_ |
nyatla | 2:b96c1e90d120 | 10 | #define NYLPC_CCONFIGLATIONSTORAGE_H_ |
nyatla | 2:b96c1e90d120 | 11 | |
nyatla | 12:efe841863fc8 | 12 | #ifdef __cplusplus |
nyatla | 12:efe841863fc8 | 13 | extern "C" { |
nyatla | 12:efe841863fc8 | 14 | #endif /* __cplusplus */ |
nyatla | 2:b96c1e90d120 | 15 | |
nyatla | 2:b96c1e90d120 | 16 | /** |
nyatla | 2:b96c1e90d120 | 17 | * IPアドレスはネットワークオーダーで格納する。 |
nyatla | 2:b96c1e90d120 | 18 | */ |
nyatla | 2:b96c1e90d120 | 19 | struct NyLPC_TMimicConfigulation{ |
nyatla | 2:b96c1e90d120 | 20 | /** |
nyatla | 2:b96c1e90d120 | 21 | * ROM焼検出用。0xFFFFFFFFを書く |
nyatla | 2:b96c1e90d120 | 22 | */ |
nyatla | 2:b96c1e90d120 | 23 | NyLPC_TUInt32 fast_boot; |
nyatla | 2:b96c1e90d120 | 24 | NyLPC_TUInt32 mac_00_01_02_03; |
nyatla | 2:b96c1e90d120 | 25 | NyLPC_TUInt32 mac_04_05_xx_xx; |
nyatla | 2:b96c1e90d120 | 26 | NyLPC_TUInt32 ipv4_addr_net; |
nyatla | 2:b96c1e90d120 | 27 | NyLPC_TUInt32 ipv4_mask_net; |
nyatla | 2:b96c1e90d120 | 28 | NyLPC_TUInt32 ipv4_drut_net; |
nyatla | 2:b96c1e90d120 | 29 | NyLPC_TUInt32 ipv4_port; |
nyatla | 2:b96c1e90d120 | 30 | NyLPC_TUInt32 accessmode; |
nyatla | 2:b96c1e90d120 | 31 | }; |
nyatla | 2:b96c1e90d120 | 32 | |
nyatla | 2:b96c1e90d120 | 33 | /** |
nyatla | 2:b96c1e90d120 | 34 | * ユーザコンフィギュレーションを更新する。 |
nyatla | 2:b96c1e90d120 | 35 | * この関数は、RTOSが停止中に実行すること。 |
nyatla | 2:b96c1e90d120 | 36 | * この関数は384バイト程度のスタックが必要です。 |
nyatla | 2:b96c1e90d120 | 37 | */ |
nyatla | 2:b96c1e90d120 | 38 | NyLPC_TBool NyLPC_cMiMicConfiglation_updateConfigulation(const struct NyLPC_TMimicConfigulation* i_congfiglation); |
nyatla | 2:b96c1e90d120 | 39 | /** |
nyatla | 2:b96c1e90d120 | 40 | * コンフィギュレーション値を返す。 |
nyatla | 2:b96c1e90d120 | 41 | * この関数は、RTOSが停止中に実行すること。 |
nyatla | 2:b96c1e90d120 | 42 | */ |
nyatla | 11:c82a7b2899b0 | 43 | const struct NyLPC_TMimicConfigulation* NyLPC_cMiMicConfiglation_loadFromFlash(void); |
nyatla | 11:c82a7b2899b0 | 44 | const struct NyLPC_TMimicConfigulation* NyLPC_cMiMicConfiglation_loadFactoryDefault(void); |
nyatla | 2:b96c1e90d120 | 45 | |
nyatla | 12:efe841863fc8 | 46 | #ifdef __cplusplus |
nyatla | 12:efe841863fc8 | 47 | } |
nyatla | 12:efe841863fc8 | 48 | #endif /* __cplusplus */ |
nyatla | 12:efe841863fc8 | 49 | |
nyatla | 2:b96c1e90d120 | 50 | #endif /* CCONFIGLATIONSTORAGE_H_ */ |