File: C:\Users\amir\Documents\My Dropbox\Projects\simulink_lecture\Final_2\matlab_coder\codegen\lib\myFunc\rtwtypes.h1 /* 2 * rtwtypes.h 3 * 4 * Code generation for function 'myFunc' 5 * 6 * C source code generated on: Thu Mar 29 12:55:12 2012 7 * 8 */ 9 10 #ifndef __RTWTYPES_H__ 11 #define __RTWTYPES_H__ 12 #ifndef TRUE 13 # define TRUE (1U) 14 #endif 15 #ifndef FALSE 16 # define FALSE (0U) 17 #endif 18 #ifndef __TMWTYPES__ 19 #define __TMWTYPES__ 20 21 #include <limits.h> 22 23 /*=======================================================================* 24 * Target hardware information 25 * Device type: Generic->MATLAB Host Computer 26 * Number of bits: char: 8 short: 16 int: 32 27 * long: 32 native word size: 32 28 * Byte ordering: LittleEndian 29 * Signed integer division rounds to: Zero 30 * Shift right on a signed integer as arithmetic shift: on 31 *=======================================================================*/ 32 33 /*=======================================================================* 34 * Fixed width word size data types: * 35 * int8_T, int16_T, int32_T - signed 8, 16, or 32 bit integers * 36 * uint8_T, uint16_T, uint32_T - unsigned 8, 16, or 32 bit integers * 37 * real32_T, real64_T - 32 and 64 bit floating point numbers * 38 *=======================================================================*/ 39 40 typedef signed char int8_T; 41 typedef unsigned char uint8_T; 42 typedef short int16_T; 43 typedef unsigned short uint16_T; 44 typedef int int32_T; 45 typedef unsigned int uint32_T; 46 typedef float real32_T; 47 typedef double real64_T; 48 49 /*===========================================================================* 50 * Generic type definitions: real_T, time_T, boolean_T, int_T, uint_T, * 51 * ulong_T, char_T and byte_T. * 52 *===========================================================================*/ 53 54 typedef double real_T; 55 typedef double time_T; 56 typedef unsigned char boolean_T; 57 typedef int int_T; 58 typedef unsigned int uint_T; 59 typedef unsigned long ulong_T; 60 typedef char char_T; 61 typedef char_T byte_T; 62 63 /*===========================================================================* 64 * Complex number type definitions * 65 *===========================================================================*/ 66 #define CREAL_T 67 typedef struct { 68 real32_T re; 69 real32_T im; 70 } creal32_T; 71 72 typedef struct { 73 real64_T re; 74 real64_T im; 75 } creal64_T; 76 77 typedef struct { 78 real_T re; 79 real_T im; 80 } creal_T; 81 82 typedef struct { 83 int8_T re; 84 int8_T im; 85 } cint8_T; 86 87 typedef struct { 88 uint8_T re; 89 uint8_T im; 90 } cuint8_T; 91 92 typedef struct { 93 int16_T re; 94 int16_T im; 95 } cint16_T; 96 97 typedef struct { 98 uint16_T re; 99 uint16_T im; 100 } cuint16_T; 101 102 typedef struct { 103 int32_T re; 104 int32_T im; 105 } cint32_T; 106 107 typedef struct { 108 uint32_T re; 109 uint32_T im; 110 } cuint32_T; 111 112 113 /*=======================================================================* 114 * Min and Max: * 115 * int8_T, int16_T, int32_T - signed 8, 16, or 32 bit integers * 116 * uint8_T, uint16_T, uint32_T - unsigned 8, 16, or 32 bit integers * 117 *=======================================================================*/ 118 119 #define MAX_int8_T ((int8_T)(127)) 120 #define MIN_int8_T ((int8_T)(-128)) 121 #define MAX_uint8_T ((uint8_T)(255)) 122 #define MIN_uint8_T ((uint8_T)(0)) 123 #define MAX_int16_T ((int16_T)(32767)) 124 #define MIN_int16_T ((int16_T)(-32768)) 125 #define MAX_uint16_T ((uint16_T)(65535)) 126 #define MIN_uint16_T ((uint16_T)(0)) 127 #define MAX_int32_T ((int32_T)(2147483647)) 128 #define MIN_int32_T ((int32_T)(-2147483647-1)) 129 #define MAX_uint32_T ((uint32_T)(0xFFFFFFFFU)) 130 #define MIN_uint32_T ((uint32_T)(0)) 131 132 /* Logical type definitions */ 133 #if !defined(__cplusplus) && !defined(__true_false_are_keywords) 134 # ifndef false 135 # define false (0U) 136 # endif 137 # ifndef true 138 # define true (1U) 139 # endif 140 #endif 141 142 /* 143 * MATLAB for code generation assumes the code is compiled on a target using a 2's compliment representation 144 * for signed integer values. 145 */ 146 #if ((SCHAR_MIN + 1) != -SCHAR_MAX) 147 #error "This code must be compiled using a 2's complement representation for signed integer values" 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 /* End of code generation (rtwtypes.h) */ 160 |