Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef __RTWTYPES_H__
00011 #define __RTWTYPES_H__
00012 #ifndef TRUE
00013 # define TRUE (1U)
00014 #endif
00015 #ifndef FALSE
00016 # define FALSE (0U)
00017 #endif
00018 #ifndef __TMWTYPES__
00019 #define __TMWTYPES__
00020
00021 #include <limits.h>
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040 typedef signed char int8_T;
00041 typedef unsigned char uint8_T;
00042 typedef short int16_T;
00043 typedef unsigned short uint16_T;
00044 typedef int int32_T;
00045 typedef unsigned int uint32_T;
00046 typedef float real32_T;
00047 typedef double real64_T;
00048
00049
00050
00051
00052
00053
00054 typedef double real_T;
00055 typedef double time_T;
00056 typedef unsigned char boolean_T;
00057 typedef int int_T;
00058 typedef unsigned int uint_T;
00059 typedef unsigned long ulong_T;
00060 typedef char char_T;
00061 typedef char_T byte_T;
00062
00063
00064
00065
00066 #define CREAL_T
00067 typedef struct {
00068 real32_T re;
00069 real32_T im;
00070 } creal32_T;
00071
00072 typedef struct {
00073 real64_T re;
00074 real64_T im;
00075 } creal64_T;
00076
00077 typedef struct {
00078 real_T re;
00079 real_T im;
00080 } creal_T;
00081
00082 typedef struct {
00083 int8_T re;
00084 int8_T im;
00085 } cint8_T;
00086
00087 typedef struct {
00088 uint8_T re;
00089 uint8_T im;
00090 } cuint8_T;
00091
00092 typedef struct {
00093 int16_T re;
00094 int16_T im;
00095 } cint16_T;
00096
00097 typedef struct {
00098 uint16_T re;
00099 uint16_T im;
00100 } cuint16_T;
00101
00102 typedef struct {
00103 int32_T re;
00104 int32_T im;
00105 } cint32_T;
00106
00107 typedef struct {
00108 uint32_T re;
00109 uint32_T im;
00110 } cuint32_T;
00111
00112
00113
00114
00115
00116
00117
00118
00119 #define MAX_int8_T ((int8_T)(127))
00120 #define MIN_int8_T ((int8_T)(-128))
00121 #define MAX_uint8_T ((uint8_T)(255))
00122 #define MIN_uint8_T ((uint8_T)(0))
00123 #define MAX_int16_T ((int16_T)(32767))
00124 #define MIN_int16_T ((int16_T)(-32768))
00125 #define MAX_uint16_T ((uint16_T)(65535))
00126 #define MIN_uint16_T ((uint16_T)(0))
00127 #define MAX_int32_T ((int32_T)(2147483647))
00128 #define MIN_int32_T ((int32_T)(-2147483647-1))
00129 #define MAX_uint32_T ((uint32_T)(0xFFFFFFFFU))
00130 #define MIN_uint32_T ((uint32_T)(0))
00131
00132
00133 #if !defined(__cplusplus) && !defined(__true_false_are_keywords)
00134 # ifndef false
00135 # define false (0U)
00136 # endif
00137 # ifndef true
00138 # define true (1U)
00139 # endif
00140 #endif
00141
00142
00143
00144
00145
00146 #if ((SCHAR_MIN + 1) != -SCHAR_MAX)
00147 #error "This code must be compiled using a 2's complement representation for signed integer values"
00148 #endif
00149
00150
00151
00152
00153
00154
00155 #define TMW_NAME_LENGTH_MAX 64
00156
00157 #endif
00158 #endif
00159