rtwtypes.h
Go to the documentation of this file.
00001 /*
00002  * rtwtypes.h
00003  *
00004  * Embedded MATLAB Coder code generation for function 'autogen_ekf_propagation'
00005  *
00006  * C source code generated on: Wed Aug 24 18:34:48 2011
00007  *
00008  */
00009 
00010 #ifndef __RTWTYPES_H__
00011 #define __RTWTYPES_H__
00012 #ifndef TRUE
00013 # define TRUE (1U)
00014 #endif
00015 #ifndef FALSE
00016 # define FALSE (0U)
00017 #endif
00018 #ifndef __TMWTYPES__
00019 #define __TMWTYPES__
00020 
00021 #include <limits.h>
00022 
00023 /*=======================================================================* 
00024  * Target hardware information
00025  *   Device type: ARM Compatible->ARM 7
00026  *   Number of bits:     char:   8    short:   16    int:  32
00027  *                       long:  32      native word size:  32
00028  *   Byte ordering: LittleEndian
00029  *   Signed integer division rounds to: Floor
00030  *   Shift right on a signed integer as arithmetic shift: on
00031  *=======================================================================*/
00032 
00033 /*=======================================================================* 
00034  * Fixed width word size data types:                                     * 
00035  *   int8_T, int16_T, int32_T     - signed 8, 16, or 32 bit integers     * 
00036  *   uint8_T, uint16_T, uint32_T  - unsigned 8, 16, or 32 bit integers   * 
00037  *   real32_T, real64_T           - 32 and 64 bit floating point numbers * 
00038  *=======================================================================*/
00039 
00040 typedef signed char int8_T;
00041 typedef unsigned char uint8_T;
00042 typedef short int16_T;
00043 typedef unsigned short uint16_T;
00044 typedef int int32_T;
00045 typedef unsigned int uint32_T;
00046 typedef float real32_T;
00047 typedef double real64_T;
00048 
00049 /*===========================================================================* 
00050  * Generic type definitions: real_T, time_T, boolean_T, int_T, uint_T,       * 
00051  *                           ulong_T, char_T and byte_T.                     * 
00052  *===========================================================================*/
00053 
00054 typedef double real_T;
00055 typedef double time_T;
00056 typedef unsigned char boolean_T;
00057 typedef int int_T;
00058 typedef unsigned int uint_T;
00059 typedef unsigned long ulong_T;
00060 typedef char char_T;
00061 typedef char_T byte_T;
00062 
00063 /*===========================================================================* 
00064  * Complex number type definitions                                           * 
00065  *===========================================================================*/
00066 #define CREAL_T 
00067    typedef struct {  
00068      real32_T re;  
00069      real32_T im;  
00070    } creal32_T;  
00071 
00072    typedef struct {  
00073      real64_T re;  
00074      real64_T im;  
00075    } creal64_T;  
00076 
00077    typedef struct {  
00078      real_T re;  
00079      real_T im;  
00080    } creal_T;  
00081 
00082    typedef struct {  
00083      int8_T re;  
00084      int8_T im;  
00085    } cint8_T;  
00086 
00087    typedef struct {  
00088      uint8_T re;  
00089      uint8_T im;  
00090    } cuint8_T;  
00091 
00092    typedef struct {  
00093      int16_T re;  
00094      int16_T im;  
00095    } cint16_T;  
00096 
00097    typedef struct {  
00098      uint16_T re;  
00099      uint16_T im;  
00100    } cuint16_T;  
00101 
00102    typedef struct {  
00103      int32_T re;  
00104      int32_T im;  
00105    } cint32_T;  
00106 
00107    typedef struct {  
00108      uint32_T re;  
00109      uint32_T im;  
00110    } cuint32_T;  
00111 
00112 
00113 /*=======================================================================* 
00114  * Min and Max:                                                          * 
00115  *   int8_T, int16_T, int32_T     - signed 8, 16, or 32 bit integers     * 
00116  *   uint8_T, uint16_T, uint32_T  - unsigned 8, 16, or 32 bit integers   * 
00117  *=======================================================================*/
00118 
00119 #define MAX_int8_T      ((int8_T)(127))
00120 #define MIN_int8_T      ((int8_T)(-128))
00121 #define MAX_uint8_T     ((uint8_T)(255))
00122 #define MIN_uint8_T     ((uint8_T)(0))
00123 #define MAX_int16_T     ((int16_T)(32767))
00124 #define MIN_int16_T     ((int16_T)(-32768))
00125 #define MAX_uint16_T    ((uint16_T)(65535))
00126 #define MIN_uint16_T    ((uint16_T)(0))
00127 #define MAX_int32_T     ((int32_T)(2147483647))
00128 #define MIN_int32_T     ((int32_T)(-2147483647-1))
00129 #define MAX_uint32_T    ((uint32_T)(0xFFFFFFFFU))
00130 #define MIN_uint32_T    ((uint32_T)(0))
00131 
00132 /* Logical type definitions */
00133 #if !defined(__cplusplus) && !defined(__true_false_are_keywords)
00134 #  ifndef false
00135 #   define false (0U)
00136 #  endif
00137 #  ifndef true
00138 #   define true (1U)
00139 #  endif
00140 #endif
00141 
00142 /*
00143  * Real-Time Workshop assumes the code is compiled on a target using a 2's compliment representation
00144  * for signed integer values.
00145  */
00146 #if ((SCHAR_MIN + 1) != -SCHAR_MAX)
00147 #error "This code must be compiled using a 2's complement representation for signed integer values"
00148 #endif
00149 
00150 /*
00151  * Maximum length of a MATLAB identifier (function/variable)
00152  * including the null-termination character. Referenced by
00153  * rt_logging.c and rt_matrx.c.
00154  */
00155 #define TMW_NAME_LENGTH_MAX     64
00156 
00157 #endif
00158 #endif
00159 /* End of Embedded MATLAB Coder code generation (rtwtypes.h) */


asctec_hl_firmware
Author(s): Markus Achtelik, Michael Achtelik, Stephan Weiss, Laurent Kneip
autogenerated on Tue Dec 17 2013 11:39:27