OSDN Git Service

update libMiMic
[mimic/MiMicSDK.git] / lib / src / utils / NyLPC_cUuid.h
1 /*********************************************************************************\r
2  * PROJECT: MiMic\r
3  * --------------------------------------------------------------------------------\r
4  *\r
5  * This file is part of MiMic\r
6  * Copyright (C)2011 Ryo Iizuka\r
7  *\r
8  * MiMic is free software: you can redistribute it and/or modify\r
9  * it under the terms of the GNU Lesser General Public License as published\r
10  * by the Free Software Foundation, either version 3 of the License, or\r
11  * (at your option) any later version.\r
12  *\r
13  * This program is distributed in the hope that it will be useful,\r
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
16  * GNU General Public License for more details.\r
17  *\r
18  * You should have received a copy of the GNU Lesser General Public License\r
19  * along with this program.  If not, see <http://www.gnu.org/licenses/>.\r
20  *\r
21  * For further information please contact.\r
22  *  http://nyatla.jp/\r
23  *  <airmail(at)ebony.plala.or.jp> or <nyatla(at)nyatla.jp>\r
24  *\r
25  *********************************************************************************/\r
26 #ifndef NYLPC_CUUID_H_\r
27 #define NYLPC_CUUID_H_\r
28 #include "NyLPC_stdlib.h"\r
29 #include "NyLPC_netif.h"\r
30 \r
31 \r
32 #ifdef __cplusplus\r
33 extern "C" {\r
34 #endif /* __cplusplus */\r
35 \r
36 \r
37 typedef struct NyLPC_TcUuid NyLPC_TcUuid_t;\r
38 struct NyLPC_TcUuid\r
39 {\r
40     NyLPC_TUInt32 f1;   //time-L\r
41     NyLPC_TUInt16 f2;   //time-M\r
42     NyLPC_TUInt16 f3;   //time-H version\r
43     NyLPC_TUInt8  f4;   //SQ-H RES\r
44     NyLPC_TUInt8  f5;   //SQ-L\r
45     NyLPC_TUInt8  f6[6];//NODE\r
46 };\r
47 void NyLPC_cUuid_initialize(NyLPC_TcUuid_t* i_inst);\r
48 #define NyLPC_cUuid_finalize(i_inst)\r
49 \r
50 void NyLPC_cUuid_setTimeBase(NyLPC_TcUuid_t* i_inst,NyLPC_TUInt32 i_time_l,NyLPC_TUInt32 i_time_h,NyLPC_TUInt16 i_seq,struct NyLPC_TEthAddr* eth_mac);\r
51 \r
52 void NyLPC_cUuid_toString(NyLPC_TcUuid_t* i_inst,NyLPC_TChar* i_buf);\r
53 \r
54 \r
55 \r
56 #ifdef __cplusplus\r
57 }\r
58 #endif /* __cplusplus */\r
59 \r
60 #endif /* NYLPC_CUUID_H_ */\r