This is Webservice SDK for mbed. LPCXpresso1769/LPC1768/FRDM-K64F/LPC4088
Fork of libMiMic by
core/flash/NyLPC_cMiMicConfiglation.h@11:c82a7b2899b0, 2013-04-20 (annotated)
- Committer:
- nyatla
- Date:
- Sat Apr 20 03:47:14 2013 +0000
- Revision:
- 11:c82a7b2899b0
- Parent:
- 2:b96c1e90d120
- Child:
- 12:efe841863fc8
update under os/ files.
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 | 2:b96c1e90d120 | 12 | |
nyatla | 2:b96c1e90d120 | 13 | /** |
nyatla | 2:b96c1e90d120 | 14 | * IPアドレスはネットワークオーダーで格納する。 |
nyatla | 2:b96c1e90d120 | 15 | */ |
nyatla | 2:b96c1e90d120 | 16 | struct NyLPC_TMimicConfigulation{ |
nyatla | 2:b96c1e90d120 | 17 | /** |
nyatla | 2:b96c1e90d120 | 18 | * ROM焼検出用。0xFFFFFFFFを書く |
nyatla | 2:b96c1e90d120 | 19 | */ |
nyatla | 2:b96c1e90d120 | 20 | NyLPC_TUInt32 fast_boot; |
nyatla | 2:b96c1e90d120 | 21 | NyLPC_TUInt32 mac_00_01_02_03; |
nyatla | 2:b96c1e90d120 | 22 | NyLPC_TUInt32 mac_04_05_xx_xx; |
nyatla | 2:b96c1e90d120 | 23 | NyLPC_TUInt32 ipv4_addr_net; |
nyatla | 2:b96c1e90d120 | 24 | NyLPC_TUInt32 ipv4_mask_net; |
nyatla | 2:b96c1e90d120 | 25 | NyLPC_TUInt32 ipv4_drut_net; |
nyatla | 2:b96c1e90d120 | 26 | NyLPC_TUInt32 ipv4_port; |
nyatla | 2:b96c1e90d120 | 27 | NyLPC_TUInt32 accessmode; |
nyatla | 2:b96c1e90d120 | 28 | }; |
nyatla | 2:b96c1e90d120 | 29 | |
nyatla | 2:b96c1e90d120 | 30 | /** |
nyatla | 2:b96c1e90d120 | 31 | * ユーザコンフィギュレーションを更新する。 |
nyatla | 2:b96c1e90d120 | 32 | * この関数は、RTOSが停止中に実行すること。 |
nyatla | 2:b96c1e90d120 | 33 | * この関数は384バイト程度のスタックが必要です。 |
nyatla | 2:b96c1e90d120 | 34 | */ |
nyatla | 2:b96c1e90d120 | 35 | NyLPC_TBool NyLPC_cMiMicConfiglation_updateConfigulation(const struct NyLPC_TMimicConfigulation* i_congfiglation); |
nyatla | 2:b96c1e90d120 | 36 | /** |
nyatla | 2:b96c1e90d120 | 37 | * コンフィギュレーション値を返す。 |
nyatla | 2:b96c1e90d120 | 38 | * この関数は、RTOSが停止中に実行すること。 |
nyatla | 2:b96c1e90d120 | 39 | */ |
nyatla | 11:c82a7b2899b0 | 40 | const struct NyLPC_TMimicConfigulation* NyLPC_cMiMicConfiglation_loadFromFlash(void); |
nyatla | 11:c82a7b2899b0 | 41 | const struct NyLPC_TMimicConfigulation* NyLPC_cMiMicConfiglation_loadFactoryDefault(void); |
nyatla | 2:b96c1e90d120 | 42 | |
nyatla | 2:b96c1e90d120 | 43 | #endif /* CCONFIGLATIONSTORAGE_H_ */ |