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@12:efe841863fc8, 2013-04-20 (annotated)
- Committer:
- nyatla
- Date:
- Sat Apr 20 05:03:57 2013 +0000
- Revision:
- 12:efe841863fc8
- Parent:
- 3:0a94993be1f6
- Child:
- 37:fc4b4fd6a649
MiMic r218
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 | 12:efe841863fc8 | 7 | #ifdef __cplusplus |
| nyatla | 12:efe841863fc8 | 8 | extern "C" { |
| nyatla | 12:efe841863fc8 | 9 | #endif /* __cplusplus */ |
| nyatla | 2:b96c1e90d120 | 10 | /** |
| nyatla | 2:b96c1e90d120 | 11 | * クラス型を定義します。 |
| nyatla | 2:b96c1e90d120 | 12 | */ |
| nyatla | 2:b96c1e90d120 | 13 | typedef struct NyLPC_TcNet NyLPC_TcNet_t; |
| nyatla | 2:b96c1e90d120 | 14 | |
| nyatla | 2:b96c1e90d120 | 15 | /** |
| nyatla | 2:b96c1e90d120 | 16 | * Platformを示す文字列 |
| nyatla | 2:b96c1e90d120 | 17 | */ |
| nyatla | 2:b96c1e90d120 | 18 | extern const char* NyLPC_cNet_PlatformName; |
| nyatla | 2:b96c1e90d120 | 19 | |
| nyatla | 2:b96c1e90d120 | 20 | |
| nyatla | 2:b96c1e90d120 | 21 | struct NyLPC_TcNet |
| nyatla | 2:b96c1e90d120 | 22 | { |
| nyatla | 2:b96c1e90d120 | 23 | int dummy; |
| nyatla | 2:b96c1e90d120 | 24 | }; |
| nyatla | 2:b96c1e90d120 | 25 | |
| nyatla | 2:b96c1e90d120 | 26 | /** |
| nyatla | 2:b96c1e90d120 | 27 | * ネットワークを初期化する。 |
| nyatla | 2:b96c1e90d120 | 28 | */ |
| nyatla | 2:b96c1e90d120 | 29 | void NyLPC_cNet_initialize(NyLPC_TcNet_t* i_inst); |
| nyatla | 3:0a94993be1f6 | 30 | |
| nyatla | 12:efe841863fc8 | 31 | #define NyLPC_cNet_finalize(inst) |
| nyatla | 2:b96c1e90d120 | 32 | /** |
| nyatla | 2:b96c1e90d120 | 33 | * 関数は、ネットワークアダプタの値を元にNyLPC_cMiMicEnv_PlatformName変数の値を更新します。 |
| nyatla | 2:b96c1e90d120 | 34 | * @param i_ref_config |
| nyatla | 2:b96c1e90d120 | 35 | * Networkコンフィギュレーション変数。このオブジェクトはcNetをstopするまで維持すること。 |
| nyatla | 2:b96c1e90d120 | 36 | */ |
| nyatla | 2:b96c1e90d120 | 37 | void NyLPC_cNet_start(NyLPC_TcNet_t* i_inst,const NyLPC_TcNetConfig_t* i_ref_config); |
| nyatla | 2:b96c1e90d120 | 38 | |
| nyatla | 12:efe841863fc8 | 39 | #ifdef __cplusplus |
| nyatla | 12:efe841863fc8 | 40 | } |
| nyatla | 12:efe841863fc8 | 41 | #endif /* __cplusplus */ |
| nyatla | 2:b96c1e90d120 | 42 | #endif /* NYLPC_CNET_H_ */ |
