aboutsummaryrefslogtreecommitdiff
path: root/src/modules/position_estimator_mc/codegen/rtwtypes.h
blob: 8916e8572cd186cc3f23073acd1ef80848da498d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
/*
 * rtwtypes.h
 *
 * Code generation for function 'kalman_dlqe2'
 *
 * C source code generated on: Thu Feb 14 12:52:29 2013
 *
 */

#ifndef __RTWTYPES_H__
#define __RTWTYPES_H__
#ifndef TRUE
# define TRUE (1U)
#endif
#ifndef FALSE
# define FALSE (0U)
#endif
#ifndef __TMWTYPES__
#define __TMWTYPES__

#include <limits.h>

/*=======================================================================* 
 * Target hardware information
 *   Device type: Generic->MATLAB Host Computer
 *   Number of bits:     char:   8    short:   16    int:  32
 *                       long:  32      native word size:  32
 *   Byte ordering: LittleEndian
 *   Signed integer division rounds to: Undefined
 *   Shift right on a signed integer as arithmetic shift: off
 *=======================================================================*/

/*=======================================================================* 
 * Fixed width word size data types:                                     * 
 *   int8_T, int16_T, int32_T     - signed 8, 16, or 32 bit integers     * 
 *   uint8_T, uint16_T, uint32_T  - unsigned 8, 16, or 32 bit integers   * 
 *   real32_T, real64_T           - 32 and 64 bit floating point numbers * 
 *=======================================================================*/

typedef signed char int8_T;
typedef unsigned char uint8_T;
typedef short int16_T;
typedef unsigned short uint16_T;
typedef int int32_T;
typedef unsigned int uint32_T;
typedef float real32_T;
typedef double real64_T;

/*===========================================================================* 
 * Generic type definitions: real_T, time_T, boolean_T, int_T, uint_T,       * 
 *                           ulong_T, char_T and byte_T.                     * 
 *===========================================================================*/

typedef double real_T;
typedef double time_T;
typedef unsigned char boolean_T;
typedef int int_T;
typedef unsigned int uint_T;
typedef unsigned long ulong_T;
typedef char char_T;
typedef char_T byte_T;

/*===========================================================================* 
 * Complex number type definitions                                           * 
 *===========================================================================*/
#define CREAL_T	
   typedef struct {  
     real32_T re;  
     real32_T im;  
   } creal32_T;  

   typedef struct {  
     real64_T re;  
     real64_T im;  
   } creal64_T;  

   typedef struct {  
     real_T re;  
     real_T im;  
   } creal_T;  

   typedef struct {  
     int8_T re;  
     int8_T im;  
   } cint8_T;  

   typedef struct {  
     uint8_T re;  
     uint8_T im;  
   } cuint8_T;  

   typedef struct {  
     int16_T re;  
     int16_T im;  
   } cint16_T;  

   typedef struct {  
     uint16_T re;  
     uint16_T im;  
   } cuint16_T;  

   typedef struct {  
     int32_T re;  
     int32_T im;  
   } cint32_T;  

   typedef struct {  
     uint32_T re;  
     uint32_T im;  
   } cuint32_T;  


/*=======================================================================* 
 * Min and Max:                                                          * 
 *   int8_T, int16_T, int32_T     - signed 8, 16, or 32 bit integers     * 
 *   uint8_T, uint16_T, uint32_T  - unsigned 8, 16, or 32 bit integers   * 
 *=======================================================================*/

#define MAX_int8_T  	((int8_T)(127))
#define MIN_int8_T  	((int8_T)(-128))
#define MAX_uint8_T 	((uint8_T)(255))
#define MIN_uint8_T 	((uint8_T)(0))
#define MAX_int16_T 	((int16_T)(32767))
#define MIN_int16_T 	((int16_T)(-32768))
#define MAX_uint16_T	((uint16_T)(65535))
#define MIN_uint16_T	((uint16_T)(0))
#define MAX_int32_T 	((int32_T)(2147483647))
#define MIN_int32_T 	((int32_T)(-2147483647-1))
#define MAX_uint32_T	((uint32_T)(0xFFFFFFFFU))
#define MIN_uint32_T	((uint32_T)(0))

/* Logical type definitions */
#if !defined(__cplusplus) && !defined(__true_false_are_keywords)
#  ifndef false
#   define false (0U)
#  endif
#  ifndef true
#   define true (1U)
#  endif
#endif

/*
 * MATLAB for code generation assumes the code is compiled on a target using a 2's compliment representation
 * for signed integer values.
 */
#if ((SCHAR_MIN + 1) != -SCHAR_MAX)
#error "This code must be compiled using a 2's complement representation for signed integer values"
#endif

/*
 * Maximum length of a MATLAB identifier (function/variable)
 * including the null-termination character. Referenced by
 * rt_logging.c and rt_matrx.c.
 */
#define TMW_NAME_LENGTH_MAX	64

#endif
#endif
/* End of code generation (rtwtypes.h) */