CHAILink SDK  Version 1.3
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
PlatformTypes.h
Go to the documentation of this file.
1 //*********************************************************
2 // File: PlatformTypes.h
3 // Project: CopperLan CHAILink SDK Common Part
4 // For Client & Server
5 // Version: 1.0
6 //*********************************************************
7 // This is a template file.
8 
9 #ifndef __PLATFORMTYPES_H__
10 #define __PLATFORMTYPES_H__
11 
12 #define CHAI_API
13 
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17 
18 //=========================================================================
19 // Simple types
20 //=========================================================================
21 
22 //---------------------------------------------------------------------
23 // Signed types
24 //---------------------------------------------------------------------
26  typedef signed char CPINT8;
27 
29 typedef signed short CPINT16;
30 
32 typedef signed long CPINT32;
33 
35 typedef signed long long CPINT64;
36 
37 //---------------------------------------------------------------------
38 // Unsigned types
39 //---------------------------------------------------------------------
40 
42 typedef unsigned char CPUINT8;
43 
45 typedef unsigned short CPUINT16;
46 
48 typedef unsigned long CPUINT32;
49 
51 typedef unsigned long long CPUINT64;
52 
53 //---------------------------------------------------------------------
54 // Float types
55 //---------------------------------------------------------------------
57 typedef float CPFLOAT32;
58 
60 typedef double CPFLOAT64;
61 
62 //---------------------------------------------------------------------
63 // Character types
64 //---------------------------------------------------------------------
66 typedef char CPCHAR8;
67 
69 typedef unsigned short CPCHAR16;
70 
71 #ifdef __cplusplus
72 }
73 #endif
74 
75 #endif // __PLATFORMTYPES_H__
signed long CPINT32
Long Integer (32 bit signed)
Definition: PlatformTypes.h:32
char CPCHAR8
Character Type (8 bit signed)
Definition: PlatformTypes.h:66
unsigned char CPUINT8
Byte Integer (8 bit unsigned)
Definition: PlatformTypes.h:42
unsigned short CPUINT16
Word Integer (16 bit unsigned)
Definition: PlatformTypes.h:45
unsigned long CPUINT32
Double Word Integer (32 bit unsigned)
Definition: PlatformTypes.h:48
signed short CPINT16
Short Integer (16 bit signed)
Definition: PlatformTypes.h:29
signed long long CPINT64
Long Long Interger (64 bit signed)
Definition: PlatformTypes.h:35
unsigned short CPCHAR16
Unicode char (16 bit unsigned)
Definition: PlatformTypes.h:69
signed char CPINT8
Char Integer (8 bit signed)
Definition: PlatformTypes.h:26
double CPFLOAT64
A standard 64 bit float value as defined in the IEEE754r revision of the ANSI/IEEE Std 754-1985 docum...
Definition: PlatformTypes.h:60
float CPFLOAT32
A standard 32 bit float value as defined in the IEEE754r revision of the ANSI/IEEE Std 754-1985 docum...
Definition: PlatformTypes.h:57
unsigned long long CPUINT64
Quad Word Integer (64 bit unsigned)
Definition: PlatformTypes.h:51