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 'TEMP_SPI'. |
9 | * |
10 | * Model version : 1.3 |
11 | * Simulink Coder version : 8.12 (R2017a) 16-Feb-2017 |
12 | * C/C++ source code generated on : Mon Jan 08 21:01:45 2018 |
13 | * |
14 | * Target selection: ert.tlc |
15 | * Embedded hardware selection: Atmel->AVR |
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: Atmel->AVR |
37 | * Number of bits: char: 8 short: 16 int: 16 |
38 | * long: 32 |
39 | * native word size: 8 |
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 int int16_T; |
54 | typedef unsigned int uint16_T; |
55 | typedef long int32_T; |
56 | typedef unsigned long uint32_T; |
57 | typedef float real32_T; |
58 | typedef double real64_T; |
59 | |
60 | /*===========================================================================* |
61 | * Generic type definitions: boolean_T, char_T, byte_T, int_T, uint_T, * |
62 | * real_T, time_T, ulong_T. * |
63 | *===========================================================================*/ |
64 | typedef double real_T; |
65 | typedef double time_T; |
66 | typedef unsigned char boolean_T; |
67 | typedef int int_T; |
68 | typedef unsigned int uint_T; |
69 | typedef unsigned long ulong_T; |
70 | typedef char char_T; |
71 | typedef unsigned char uchar_T; |
72 | typedef char_T byte_T; |
73 | |
74 | /*===========================================================================* |
75 | * Complex number type definitions * |
76 | *===========================================================================*/ |
77 | #define CREAL_T |
78 | |
79 | typedef struct { |
80 | real32_T re; |
81 | real32_T im; |
82 | } creal32_T; |
83 | |
84 | typedef struct { |
85 | real64_T re; |
86 | real64_T im; |
87 | } creal64_T; |
88 | |
89 | typedef struct { |
90 | real_T re; |
91 | real_T im; |
92 | } creal_T; |
93 | |
94 | #define CINT8_T |
95 | |
96 | typedef struct { |
97 | int8_T re; |
98 | int8_T im; |
99 | } cint8_T; |
100 | |
101 | #define CUINT8_T |
102 | |
103 | typedef struct { |
104 | uint8_T re; |
105 | uint8_T im; |
106 | } cuint8_T; |
107 | |
108 | #define CINT16_T |
109 | |
110 | typedef struct { |
111 | int16_T re; |
112 | int16_T im; |
113 | } cint16_T; |
114 | |
115 | #define CUINT16_T |
116 | |
117 | typedef struct { |
118 | uint16_T re; |
119 | uint16_T im; |
120 | } cuint16_T; |
121 | |
122 | #define CINT32_T |
123 | |
124 | typedef struct { |
125 | int32_T re; |
126 | int32_T im; |
127 | } cint32_T; |
128 | |
129 | #define CUINT32_T |
130 | |
131 | typedef struct { |
132 | uint32_T re; |
133 | uint32_T im; |
134 | } cuint32_T; |
135 | |
136 | /*=======================================================================* |
137 | * Min and Max: * |
138 | * int8_T, int16_T, int32_T - signed 8, 16, or 32 bit integers * |
139 | * uint8_T, uint16_T, uint32_T - unsigned 8, 16, or 32 bit integers * |
140 | *=======================================================================*/ |
141 | #define MAX_int8_T ((int8_T)(127)) |
142 | #define MIN_int8_T ((int8_T)(-128)) |
143 | #define MAX_uint8_T ((uint8_T)(255U)) |
144 | #define MAX_int16_T ((int16_T)(32767)) |
145 | #define MIN_int16_T ((int16_T)(-32768)) |
146 | #define MAX_uint16_T ((uint16_T)(65535U)) |
147 | #define MAX_int32_T ((int32_T)(2147483647L)) |
148 | #define MIN_int32_T ((int32_T)(-2147483647L-1L)) |
149 | #define MAX_uint32_T ((uint32_T)(0xFFFFFFFFUL)) |
150 | |
151 | /* Block D-Work pointer type */ |
152 | typedef void * pointer_T; |
153 | |
154 | #endif /* RTWTYPES_H */ |
155 | |
156 | /* |
157 | * File trailer for generated code. |
158 | * |
159 | * [EOF] |
160 | */ |
161 | |