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 'TwoPhaseForStuck'.
9 *
10 * Model version : 1.138
11 * Simulink Coder version : 9.0 (R2018b) 24-May-2018
12 * C/C++ source code generated on : Tue Dec 8 01:36:02 2020
13 *
14 * Target selection: ert.tlc
15 * Embedded hardware selection: Texas Instruments->C2000
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: Texas Instruments->C2000
37 * Number of bits: char: 16 short: 16 int: 16
38 * long: 32 long long: 64
39 * native word size: 16
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 * *
52 * Note: Because the specified hardware does not have native support *
53 * for all data sizes, some data types are actually typedef'ed *
54 * from larger native data sizes. The following data types are *
55 * not in the ideal native data types: *
56 * *
57 * int8_T, uint8_T *
58 *=======================================================================*/
59typedef int int8_T;
60typedef unsigned int uint8_T;
61typedef int int16_T;
62typedef unsigned int uint16_T;
63typedef long int32_T;
64typedef unsigned long uint32_T;
65typedef long long int64_T;
66typedef unsigned long long uint64_T;
67typedef float real32_T;
68typedef double real64_T;
69
70/*===========================================================================*
71 * Generic type definitions: boolean_T, char_T, byte_T, int_T, uint_T, *
72 * real_T, time_T, ulong_T, ulonglong_T. *
73 *===========================================================================*/
74typedef double real_T;
75typedef double time_T;
76typedef unsigned int boolean_T;
77typedef int int_T;
78typedef unsigned int uint_T;
79typedef unsigned long ulong_T;
80typedef unsigned long long ulonglong_T;
81typedef char char_T;
82typedef unsigned char uchar_T;
83typedef char_T byte_T;
84
85/*===========================================================================*
86 * Complex number type definitions *
87 *===========================================================================*/
88#define CREAL_T
89
90typedef struct {
91 real32_T re;
92 real32_T im;
93} creal32_T;
94
95typedef struct {
96 real64_T re;
97 real64_T im;
98} creal64_T;
99
100typedef struct {
101 real_T re;
102 real_T im;
103} creal_T;
104
105#define CINT8_T
106
107typedef struct {
108 int8_T re;
109 int8_T im;
110} cint8_T;
111
112#define CUINT8_T
113
114typedef struct {
115 uint8_T re;
116 uint8_T im;
117} cuint8_T;
118
119#define CINT16_T
120
121typedef struct {
122 int16_T re;
123 int16_T im;
124} cint16_T;
125
126#define CUINT16_T
127
128typedef struct {
129 uint16_T re;
130 uint16_T im;
131} cuint16_T;
132
133#define CINT32_T
134
135typedef struct {
136 int32_T re;
137 int32_T im;
138} cint32_T;
139
140#define CUINT32_T
141
142typedef struct {
143 uint32_T re;
144 uint32_T im;
145} cuint32_T;
146
147#define CINT64_T
148
149typedef struct {
150 int64_T re;
151 int64_T im;
152} cint64_T;
153
154#define CUINT64_T
155
156typedef struct {
157 uint64_T re;
158 uint64_T im;
159} cuint64_T;
160
161/*=======================================================================*
162 * Min and Max: *
163 * int8_T, int16_T, int32_T - signed 8, 16, or 32 bit integers *
164 * uint8_T, uint16_T, uint32_T - unsigned 8, 16, or 32 bit integers *
165 *=======================================================================*/
166#define MAX_int8_T ((int8_T)(127))
167#define MIN_int8_T ((int8_T)(-128))
168#define MAX_uint8_T ((uint8_T)(255U))
169#define MAX_int16_T ((int16_T)(32767))
170#define MIN_int16_T ((int16_T)(-32768))
171#define MAX_uint16_T ((uint16_T)(65535U))
172#define MAX_int32_T ((int32_T)(2147483647L))
173#define MIN_int32_T ((int32_T)(-2147483647L-1L))
174#define MAX_uint32_T ((uint32_T)(0xFFFFFFFFUL))
175#define MAX_int64_T ((int64_T)(9223372036854775807LL))
176#define MIN_int64_T ((int64_T)(-9223372036854775807LL-1LL))
177#define MAX_uint64_T ((uint64_T)(0xFFFFFFFFFFFFFFFFULL))
178
179/* Block D-Work pointer type */
180typedef void * pointer_T;
181
182#endif /* RTWTYPES_H */
183
184/*
185 * File trailer for generated code.
186 *
187 * [EOF]
188 */
189