1 #ifndef NYLPC_CNETCONFIG_H_
\r
2 #define NYLPC_CNETCONFIG_H_
\r
4 #include "NyLPC_stdlib.h"
\r
5 #include "NyLPC_uipService.h"
\r
7 #define NyLPC_cNetConfig_INTERFACE_TYPE_ETHERNET 1
\r
11 * NyLPC_cNetConfigクラスは、NyLPC_NetConfigの初期化データを保持します。
\r
12 * 初期化データのロード・セーブ機能を提供します。
\r
14 typedef struct NyLPC_TcNetConfig NyLPC_TcNetConfig_t;
\r
18 * NyLPC_TcFifoBufferクラスの構造体です。
\r
20 struct NyLPC_TcNetConfig
\r
23 NyLPC_TUInt16 version;
\r
25 NyLPC_TUInt16 interface_type;
\r
28 /** Ethernet mac address */
\r
29 NyLPC_TcIPv4Config_t ethernet;
\r
32 // struct NyLPC_TEthAddr mac_addr;
\r
35 // /** ip addressの設定*/
\r
37 // struct NyLPC_TIPv4Addr ip;
\r
38 // struct NyLPC_TIPv4Addr mask;
\r
39 // struct NyLPC_TIPv4Addr gateway;
\r
47 void NyLPC_cNetConfig_initialize(NyLPC_TcNetConfig_t* i_inst);
\r
51 #define NyLPC_cNetConfig_finalize(i_inst);
\r
53 * オンチップフラッシュメモリから、ネットワーク設定値を読み出します。
\r
55 NyLPC_TBool NyLPC_cNetConfig_loadFromOnchipFlash(NyLPC_TcNetConfig_t* i_inst);
\r
57 * オンチップフラッシュメモリへ、ネットワーク設定値を保存します。
\r
59 NyLPC_TBool NyLPC_cNetConfig_saveToOnchipFlash(NyLPC_TcNetConfig_t* i_inst);
\r
61 void NyLPC_cNetConfig_loadFactoryDefault(NyLPC_TcNetConfig_t* i_inst);
\r
63 #endif /* NYLPC_CNETCONFIG_H_ */
\r