datatype.hpp

来自「ABis无线接口全套资料」· HPP 代码 · 共 104 行

HPP
104
字号
/* ======================================================================== *\ | | |  JOYIT Communication Technology |  Copyright (C)  2002-2003,  All Right Reserved. | |  System: Programmable Signaling Gateway |  Sub-system:
LAYER3 |  Filename: datatype.hpp |  Environment:    LINUX -- Red Hat 7.2 & GNU C/C++ Compiler 2.96 |                vxWorks -- Tornado 2.0 & vxWorks 5.4 |  Function description: This file declare the common data type |           for the system. |\* ======================================================================== */#ifndef _DATATYPE_HPP#define _DATATYPE_HPP                                                                                                 // ---------------------------------------------------------------------------// Declare common data type.//#ifndef __VXWORKS__enum BOOL { // Declare the boolean type.    FALSE = 0,    TRUE  = 1};#endif  // # ifndef __VXWORKS__                                                                                                 #ifndef UCHARTYPE#define UCHARTYPEtypedef unsigned char   uchar;#endif#ifndef __VXWORKS__                                                                                                 #ifndef USHORTTYPE#define USHORTTYPEtypedef unsigned short  ushort;#endif                                                                                                 #ifndef UINTTYPE#define INTTYPEtypedef unsigned int    uint;#endif                                                                                                 #ifndef ULONGTYPE#define ULONGTYPEtypedef unsigned long   ulong;#endif                                                                                                 #ifndef BYTE#define BYTE        uchar#endif                                                                                                 #ifndef WORD#define WORD        ushort#endif                                                                                                 #ifndef DWORD#define DWORD       ulong#endif                                                                                                 typedef char            INT8;typedef unsigned char   UINT8;typedef short           INT16;typedef unsigned short  UINT16;typedef long            INT32;typedef unsigned long   UINT32;#endif  // #ifndef __VXWORKS__typedef unsigned short  ERRCOD_T;   // Error codetypedef unsigned short  timerid_t;  // Timer idtypedef unsigned short  nodeid_t;   // Node idtypedef unsigned short  lmi_t;      // Logical module idtypedef unsigned long   rmi_t;      // Real module idtypedef unsigned long	ModuleID;		// type of module identifierstruct RealModuleId{	lmi_t		ac  : 4;	lmi_t		lmi : 12;	nodeid_t	ni;};#endif// ------------------------------------------------------------------------// //  Revision list.//  ==============////  1.0,        2003-04-18,     Wu jianjin//      Initial version.//  1.1,       2003-04-18,      Wu jianjin//      Ported to vxWorks.//// ------------------------------------------------------------------------

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?