File: rtwtypes.h1 /* 2 * File: rtwtypes.h 3 * 4 * MATLAB Coder version : 2.6 5 * C/C++ source code generated on : 02-Apr-2014 12:52:38 6 */ 7 8 #ifndef __RTWTYPES_H__ 9 #define __RTWTYPES_H__ 10 #ifndef __TMWTYPES__ 11 #define __TMWTYPES__ 12 13 /*=======================================================================* 14 * Target hardware information 15 * Device type: Generic->MATLAB Host Computer 16 * Number of bits: char: 8 short: 16 int: 32 17 * long: 32 long long: 64 18 * native word size: 32 19 * Byte ordering: LittleEndian 20 * Signed integer division rounds to: Zero 21 * Shift right on a signed integer as arithmetic shift: on 22 *=======================================================================*/ 23 24 /*=======================================================================* 25 * Fixed width word size data types: * 26 * int8_T, int16_T, int32_T - signed 8, 16, or 32 bit integers * 27 * uint8_T, uint16_T, uint32_T - unsigned 8, 16, or 32 bit integers * 28 * real32_T, real64_T - 32 and 64 bit floating point numbers * 29 *=======================================================================*/ 30 31 typedef signed char int8_T; 32 typedef unsigned char uint8_T; 33 typedef short int16_T; 34 typedef unsigned short uint16_T; 35 typedef int int32_T; 36 typedef unsigned int uint32_T; 37 typedef long long int64_T; 38 typedef unsigned long long uint64_T; 39 typedef float real32_T; 40 typedef double real64_T; 41 42 /*===========================================================================* 43 * Generic type definitions: real_T, time_T, boolean_T, int_T, uint_T, * 44 * ulong_T, ulonglong_T, char_T and byte_T. * 45 *===========================================================================*/ 46 47 typedef double real_T; 48 typedef double time_T; 49 typedef unsigned char boolean_T; 50 typedef int int_T; 51 typedef unsigned int uint_T; 52 typedef unsigned long ulong_T; 53 typedef unsigned long long ulonglong_T; 54 typedef char char_T; 55 typedef char_T byte_T; 56 57 /*===========================================================================* 58 * Complex number type definitions * 59 *===========================================================================*/ 60 #define CREAL_T 61 typedef struct { 62 real32_T re; 63 real32_T im; 64 } creal32_T; 65 66 typedef struct { 67 real64_T re; 68 real64_T im; 69 } creal64_T; 70 71 typedef struct { 72 real_T re; 73 real_T im; 74 } creal_T; 75 76 typedef struct { 77 int8_T re; 78 int8_T im; 79 } cint8_T; 80 81 typedef struct { 82 uint8_T re; 83 uint8_T im; 84 } cuint8_T; 85 86 typedef struct { 87 int16_T re; 88 int16_T im; 89 } cint16_T; 90 91 typedef struct { 92 uint16_T re; 93 uint16_T im; 94 } cuint16_T; 95 96 typedef struct { 97 int32_T re; 98 int32_T im; 99 } cint32_T; 100 101 typedef struct { 102 uint32_T re; 103 uint32_T im; 104 } cuint32_T; 105 106 typedef struct { 107 int64_T re; 108 int64_T im; 109 } cint64_T; 110 111 typedef struct { 112 uint64_T re; 113 uint64_T im; 114 } cuint64_T; 115 116 117 /*=======================================================================* 118 * Min and Max: * 119 * int8_T, int16_T, int32_T - signed 8, 16, or 32 bit integers * 120 * uint8_T, uint16_T, uint32_T - unsigned 8, 16, or 32 bit integers * 121 *=======================================================================*/ 122 123 #define MAX_int8_T ((int8_T)(127)) 124 #define MIN_int8_T ((int8_T)(-128)) 125 #define MAX_uint8_T ((uint8_T)(255)) 126 #define MIN_uint8_T ((uint8_T)(0)) 127 #define MAX_int16_T ((int16_T)(32767)) 128 #define MIN_int16_T ((int16_T)(-32768)) 129 #define MAX_uint16_T ((uint16_T)(65535)) 130 #define MIN_uint16_T ((uint16_T)(0)) 131 #define MAX_int32_T ((int32_T)(2147483647)) 132 #define MIN_int32_T ((int32_T)(-2147483647-1)) 133 #define MAX_uint32_T ((uint32_T)(0xFFFFFFFFU)) 134 #define MIN_uint32_T ((uint32_T)(0)) 135 #define MAX_int64_T ((int64_T)(9223372036854775807LL)) 136 #define MIN_int64_T ((int64_T)(-9223372036854775807LL-1LL)) 137 #define MAX_uint64_T ((uint64_T)(0xFFFFFFFFFFFFFFFFULL)) 138 #define MIN_uint64_T ((uint64_T)(0ULL)) 139 140 /* Logical type definitions */ 141 #if !defined(__cplusplus) && !defined(__true_false_are_keywords) 142 # ifndef false 143 # define false (0U) 144 # endif 145 # ifndef true 146 # define true (1U) 147 # endif 148 #endif 149 150 /* 151 * Maximum length of a MATLAB identifier (function/variable) 152 * including the null-termination character. Referenced by 153 * rt_logging.c and rt_matrx.c. 154 */ 155 #define TMW_NAME_LENGTH_MAX 64 156 157 #endif 158 #endif 159 /* 160 * File trailer for rtwtypes.h 161 * 162 * [EOF] 163 */ 164 |