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