Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of libMiMic by
core/net/NyLPC_cNet.h@3:0a94993be1f6, 2013-04-04 (annotated)
- Committer:
- nyatla
- Date:
- Thu Apr 04 08:22:57 2013 +0000
- Revision:
- 3:0a94993be1f6
- Parent:
- 2:b96c1e90d120
- Child:
- 12:efe841863fc8
add modules;
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| nyatla | 2:b96c1e90d120 | 1 | #ifndef NYLPC_CNET_H_ |
| nyatla | 2:b96c1e90d120 | 2 | #define NYLPC_CNET_H_ |
| nyatla | 2:b96c1e90d120 | 3 | |
| nyatla | 2:b96c1e90d120 | 4 | #include "NyLPC_stdlib.h" |
| nyatla | 2:b96c1e90d120 | 5 | #include "NyLPC_uipService.h" |
| nyatla | 2:b96c1e90d120 | 6 | #include "NyLPC_cNetConfig.h" |
| nyatla | 2:b96c1e90d120 | 7 | |
| nyatla | 2:b96c1e90d120 | 8 | /** |
| nyatla | 2:b96c1e90d120 | 9 | * クラス型を定義します。 |
| nyatla | 2:b96c1e90d120 | 10 | */ |
| nyatla | 2:b96c1e90d120 | 11 | typedef struct NyLPC_TcNet NyLPC_TcNet_t; |
| nyatla | 2:b96c1e90d120 | 12 | |
| nyatla | 2:b96c1e90d120 | 13 | /** |
| nyatla | 2:b96c1e90d120 | 14 | * Platformを示す文字列 |
| nyatla | 2:b96c1e90d120 | 15 | */ |
| nyatla | 2:b96c1e90d120 | 16 | extern const char* NyLPC_cNet_PlatformName; |
| nyatla | 2:b96c1e90d120 | 17 | |
| nyatla | 2:b96c1e90d120 | 18 | |
| nyatla | 2:b96c1e90d120 | 19 | struct NyLPC_TcNet |
| nyatla | 2:b96c1e90d120 | 20 | { |
| nyatla | 2:b96c1e90d120 | 21 | int dummy; |
| nyatla | 2:b96c1e90d120 | 22 | }; |
| nyatla | 2:b96c1e90d120 | 23 | |
| nyatla | 2:b96c1e90d120 | 24 | /** |
| nyatla | 2:b96c1e90d120 | 25 | * ネットワークを初期化する。 |
| nyatla | 2:b96c1e90d120 | 26 | */ |
| nyatla | 2:b96c1e90d120 | 27 | void NyLPC_cNet_initialize(NyLPC_TcNet_t* i_inst); |
| nyatla | 3:0a94993be1f6 | 28 | |
| nyatla | 3:0a94993be1f6 | 29 | #define NyLPC_cNet_finalize(inst) |
| nyatla | 3:0a94993be1f6 | 30 | |
| nyatla | 2:b96c1e90d120 | 31 | /** |
| nyatla | 2:b96c1e90d120 | 32 | * 関数は、ネットワークアダプタの値を元にNyLPC_cMiMicEnv_PlatformName変数の値を更新します。 |
| nyatla | 2:b96c1e90d120 | 33 | * @param i_ref_config |
| nyatla | 2:b96c1e90d120 | 34 | * Networkコンフィギュレーション変数。このオブジェクトはcNetをstopするまで維持すること。 |
| nyatla | 2:b96c1e90d120 | 35 | */ |
| nyatla | 2:b96c1e90d120 | 36 | void NyLPC_cNet_start(NyLPC_TcNet_t* i_inst,const NyLPC_TcNetConfig_t* i_ref_config); |
| nyatla | 2:b96c1e90d120 | 37 | |
| nyatla | 2:b96c1e90d120 | 38 | |
| nyatla | 2:b96c1e90d120 | 39 | #endif /* NYLPC_CNET_H_ */ |
