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