1 /*
2 * File: rtwtypes.h
3 *
4 * Code generated for Simulink model 'SteerController'.
5 *
6 * Model version : 1.68
7 * Simulink Coder version : 8.6 (R2014a) 27-Dec-2013
8 * C/C++ source code generated on : Wed Dec 31 17:53:45 2014
9 *
10 * Target selection: ert.tlc
11 * Embedded hardware selection: ARM Compatible->ARM Cortex
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 #define __TMWTYPES__
31
32 /*=======================================================================*
33 * Target hardware information
34 * Device type: ARM Compatible->ARM Cortex
35 * Number of bits: char: 8 short: 16 int: 32
36 * long: 32
37 * native word size: 32
38 * Byte ordering: Unspecified
39 * Signed integer division rounds to: Undefined
40 * Shift right on a signed integer as arithmetic shift: on
41 *=======================================================================*/
42
43 /*=======================================================================*
44 * Fixed width word size data types: *
45 * int8_T, int16_T, int32_T - signed 8, 16, or 32 bit integers *
46 * uint8_T, uint16_T, uint32_T - unsigned 8, 16, or 32 bit integers *
47 * real32_T, real64_T - 32 and 64 bit floating point numbers *
48 *=======================================================================*/
49 typedef signed char int8_T;
50 typedef unsigned char uint8_T;
51 typedef short int16_T;
52 typedef unsigned short uint16_T;
53 typedef int int32_T;
54 typedef unsigned int uint32_T;
55 typedef float real32_T;
56 typedef double real64_T;
57
58 /*===========================================================================*
59 * Generic type definitions: real_T, time_T, boolean_T, int_T, uint_T, *
60 * ulong_T, char_T and byte_T. *
61 *===========================================================================*/
62 typedef double real_T;
63 typedef double time_T;
64 typedef unsigned char boolean_T;
65 typedef int int_T;
66 typedef unsigned int uint_T;
67 typedef unsigned long ulong_T;
68 typedef char char_T;
69 typedef unsigned char uchar_T;
70 typedef char_T byte_T;
71
72 /*===========================================================================*
73 * Complex number type definitions *
74 *===========================================================================*/
75 #define CREAL_T
76
77 typedef struct
78 {
79 real32_T re;
80 real32_T im;
81 }
82
83 creal32_T;
84
85 typedef struct
86 {
87 real64_T re;
88 real64_T im;
89 }
90
91 creal64_T;
92
93 typedef struct
94 {
95 real_T re;
96 real_T im;
97 }
98
99 creal_T;
100
101 #define CINT8_T
102
103 typedef struct
104 {
105 int8_T re;
106 int8_T im;
107 }
108
109 cint8_T;
110
111 #define CUINT8_T
112
113 typedef struct
114 {
115 uint8_T re;
116 uint8_T im;
117 }
118
119 cuint8_T;
120
121 #define CINT16_T
122
123 typedef struct
124 {
125 int16_T re;
126 int16_T im;
127 }
128
129 cint16_T;
130
131 #define CUINT16_T
132
133 typedef struct
134 {
135 uint16_T re;
136 uint16_T im;
137 }
138
139 cuint16_T;
140
141 #define CINT32_T
142
143 typedef struct
144 {
145 int32_T re;
146 int32_T im;
147 }
148
149 cint32_T;
150
151 #define CUINT32_T
152
153 typedef struct
154 {
155 uint32_T re;
156 uint32_T im;
157 }
158
159 cuint32_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 MIN_uint8_T ((uint8_T)(0U))
170 #define MAX_int16_T ((int16_T)(32767))
171 #define MIN_int16_T ((int16_T)(-32768))
172 #define MAX_uint16_T ((uint16_T)(65535U))
173 #define MIN_uint16_T ((uint16_T)(0U))
174 #define MAX_int32_T ((int32_T)(2147483647))
175 #define MIN_int32_T ((int32_T)(-2147483647-1))
176 #define MAX_uint32_T ((uint32_T)(0xFFFFFFFFU))
177 #define MIN_uint32_T ((uint32_T)(0U))
178
179 /* Block D-Work pointer type */
180 typedef void * pointer_T;
181
182 /* Simulink specific types */
183 #ifndef __ZERO_CROSSING_TYPES__
184 #define __ZERO_CROSSING_TYPES__
185
186 /* Trigger directions: falling, either, and rising */
187 typedef enum
188 {
189 FALLING_ZERO_CROSSING = -1,
190 ANY_ZERO_CROSSING = 0,
191 RISING_ZERO_CROSSING = 1
192 }
193
194 ZCDirection;
195
196 /* Previous state of a trigger signal */
197 typedef uint8_T ZCSigState;
198
199 /* Initial value of a trigger zero crossing signal */
200 #define UNINITIALIZED_ZCSIG 0x03U
201 #define NEG_ZCSIG 0x02U
202 #define POS_ZCSIG 0x01U
203 #define ZERO_ZCSIG 0x00U
204
205 /* Current state of a trigger signal */
206 typedef enum
207 {
208 FALLING_ZCEVENT = -1,
209 NO_ZCEVENT = 0,
210 RISING_ZCEVENT = 1
211 }
212
213 ZCEventType;
214
215 #endif /* __ZERO_CROSSING_TYPES__ */
216 #endif /* __RTWTYPES_H__ */
217
218 /*
219 * File trailer for generated code.
220 *
221 * [EOF]
222 */
223
|