NexMotion  1.4.0
Open Robots & Machines [WIP]
nex_type.h
Go to the documentation of this file.
1 
7 #ifndef __NEX_TYPE_H
8 #define __NEX_TYPE_H
9 
10 /*****************************************************************
11 Copyright (c) NEXCOM International Co., Ltd. All Rights Reserved.
12 Variable type define. For cross compile
13 *******************************************************************/
14 
15 #include <inttypes.h>
16 
17 typedef int BOOL_T;
18 typedef unsigned char U8_T;
19 typedef unsigned short U16_T;
20 typedef unsigned int U32_T;
21 #if (_MSC_VER)
22 typedef unsigned __int64 U64_T;
23 #else
24 typedef unsigned long long U64_T;
25 #endif
26 
27 typedef char I8_T;
28 typedef short I16_T;
29 typedef int I32_T;
30 #if (_MSC_VER)
31 typedef __int64 I64_T;
32 #else
33 typedef long long I64_T;
34 #endif
35 
36 typedef float F32_T;
37 typedef double F64_T;
38 
39 typedef I32_T RTN_ERR;
40 
41 
42 #define I32_T_MAX ( 2147483647)
43 #define I32_T_MIN (-2147483648)
44 
45 #define BOOL_TRUE (1)
46 #define BOOL_FALSE (0)
47 
48 
49 #define _opt_null_
50 
51 #endif
52 
unsigned short U16_T
0 ~ 65535
Definition: nex_type.h:19
unsigned char U8_T
0 ~ 255
Definition: nex_type.h:18
int BOOL_T
0:False, else:True
Definition: nex_type.h:17
int I32_T
-2147483648 ~ 2147483647
Definition: nex_type.h:29
I32_T RTN_ERR
Return code.
Definition: nex_type.h:39
unsigned long long U64_T
0 ~ 18446744073709551615
Definition: nex_type.h:24
short I16_T
-32768 ~ 32767
Definition: nex_type.h:28
unsigned int U32_T
0 ~ 4294967295
Definition: nex_type.h:20
float F32_T
Single precision floating point.
Definition: nex_type.h:36
long long I64_T
-9223372036854775808 ~ 9223372036854775807
Definition: nex_type.h:33
char I8_T
-128 ~ 127
Definition: nex_type.h:27
double F64_T
Double precision floating point.
Definition: nex_type.h:37