1 /*********************************************************************************
\r
3 * --------------------------------------------------------------------------------
\r
5 * This file is part of MiMic
\r
6 * Copyright (C)2011 Ryo Iizuka
\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
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
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
21 * For further information please contact.
\r
23 * <airmail(at)ebony.plala.or.jp> or <nyatla(at)nyatla.jp>
\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
34 #endif /* __cplusplus */
\r
37 typedef struct NyLPC_TcUuid NyLPC_TcUuid_t;
\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
47 void NyLPC_cUuid_initialize(NyLPC_TcUuid_t* i_inst);
\r
48 #define NyLPC_cUuid_finalize(i_inst)
\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
52 void NyLPC_cUuid_toString(NyLPC_TcUuid_t* i_inst,NyLPC_TChar* i_buf);
\r
58 #endif /* __cplusplus */
\r
60 #endif /* NYLPC_CUUID_H_ */
\r