File: rtwtypes.h1 /* 2 * File: rtwtypes.h 3 * 4 * Code generated for Simulink model 'bh_f14'. 5 * 6 * Model version : 1.18 7 * Simulink Coder version : 8.10 (R2016a) 10-Feb-2016 8 * C/C++ source code generated on : Wed Jun 22 07:56:08 2016 9 * 10 * Target selection: ert.tlc 11 * Embedded hardware selection: 32-bit Generic 12 * Code generation objectives: Unspecified 13 * Validation result: Not run 14 */ 15 16 #ifndef RTWTYPES_H 17 #define RTWTYPES_H 18 19 /* Logical type definitions */ 20 #if (!defined(__cplusplus)) 21 # ifndef false 22 # define false (0U) 23 # endif 24 25 # ifndef true 26 # define true (1U) 27 # endif 28 #endif 29 30 /*=======================================================================* 31 * Target hardware information 32 * Device type: 32-bit Generic 33 * Number of bits: char: 8 short: 16 int: 32 34 * long: 32 35 * native word size: 32 36 * Byte ordering: Unspecified 37 * Signed integer division rounds to: Undefined 38 * Shift right on a signed integer as arithmetic shift: on 39 *=======================================================================*/ 40 41 /*=======================================================================* 42 * Fixed width word size data types: * 43 * int8_T, int16_T, int32_T - signed 8, 16, or 32 bit integers * 44 * uint8_T, uint16_T, uint32_T - unsigned 8, 16, or 32 bit integers * 45 * real32_T, real64_T - 32 and 64 bit floating point numbers * 46 *=======================================================================*/ 47 typedef signed char int8_T; 48 typedef unsigned char uint8_T; 49 typedef short int16_T; 50 typedef unsigned short uint16_T; 51 typedef int int32_T; 52 typedef unsigned int uint32_T; 53 typedef float real32_T; 54 typedef double real64_T; 55 56 /*===========================================================================* 57 * Generic type definitions: boolean_T, char_T, byte_T, int_T, uint_T, * 58 * real_T, time_T, ulong_T. * 59 *===========================================================================*/ 60 typedef double real_T; 61 typedef double time_T; 62 typedef unsigned char boolean_T; 63 typedef int int_T; 64 typedef unsigned int uint_T; 65 typedef unsigned long ulong_T; 66 typedef char char_T; 67 typedef unsigned char uchar_T; 68 typedef char_T byte_T; 69 70 /*===========================================================================* 71 * Complex number type definitions * 72 *===========================================================================*/ 73 #define CREAL_T 74 75 typedef struct { 76 real32_T re; 77 real32_T im; 78 } creal32_T; 79 80 typedef struct { 81 real64_T re; 82 real64_T im; 83 } creal64_T; 84 85 typedef struct { 86 real_T re; 87 real_T im; 88 } creal_T; 89 90 #define CINT8_T 91 92 typedef struct { 93 int8_T re; 94 int8_T im; 95 } cint8_T; 96 97 #define CUINT8_T 98 99 typedef struct { 100 uint8_T re; 101 uint8_T im; 102 } cuint8_T; 103 104 #define CINT16_T 105 106 typedef struct { 107 int16_T re; 108 int16_T im; 109 } cint16_T; 110 111 #define CUINT16_T 112 113 typedef struct { 114 uint16_T re; 115 uint16_T im; 116 } cuint16_T; 117 118 #define CINT32_T 119 120 typedef struct { 121 int32_T re; 122 int32_T im; 123 } cint32_T; 124 125 #define CUINT32_T 126 127 typedef struct { 128 uint32_T re; 129 uint32_T im; 130 } cuint32_T; 131 132 /*=======================================================================* 133 * Min and Max: * 134 * int8_T, int16_T, int32_T - signed 8, 16, or 32 bit integers * 135 * uint8_T, uint16_T, uint32_T - unsigned 8, 16, or 32 bit integers * 136 *=======================================================================*/ 137 #define MAX_int8_T ((int8_T)(127)) 138 #define MIN_int8_T ((int8_T)(-128)) 139 #define MAX_uint8_T ((uint8_T)(255U)) 140 #define MAX_int16_T ((int16_T)(32767)) 141 #define MIN_int16_T ((int16_T)(-32768)) 142 #define MAX_uint16_T ((uint16_T)(65535U)) 143 #define MAX_int32_T ((int32_T)(2147483647)) 144 #define MIN_int32_T ((int32_T)(-2147483647-1)) 145 #define MAX_uint32_T ((uint32_T)(0xFFFFFFFFU)) 146 147 /* Block D-Work pointer type */ 148 typedef void * pointer_T; 149 150 #endif /* RTWTYPES_H */ 151 152 /* 153 * File trailer for generated code. 154 * 155 * [EOF] 156 */ 157 |