File: /Users/peter/svn/azumio/trunk/iOSCommon/heartrate/lib/rtwtypes.h

    1   /*
    2    * rtwtypes.h
    3    *
    4    * Code generation for function 'filterForDisplay'
    5    *
    6    * C source code generated on: Sun Jan 27 20:19:03 2013
    7    *
    8    */
    9   
   10   #ifndef __RTWTYPES_H__
   11   #define __RTWTYPES_H__
   12   #ifndef TRUE
   13   # define TRUE (1U)
   14   #endif
   15   #ifndef FALSE
   16   # define FALSE (0U)
   17   #endif
   18   #ifndef __TMWTYPES__
   19   #define __TMWTYPES__
   20   
   21   #include <limits.h>
   22   
   23   /*=======================================================================* 
   24    * Target hardware information
   25    *   Device type: Generic->MATLAB Host Computer
   26    *   Number of bits:     char:   8    short:   16    int:  32
   27    *                       long:  64      native word size:  64
   28    *   Byte ordering: LittleEndian
   29    *   Signed integer division rounds to: Zero
   30    *   Shift right on a signed integer as arithmetic shift: on
   31    *=======================================================================*/
   32   
   33   /*=======================================================================* 
   34    * Fixed width word size data types:                                     * 
   35    *   int8_T, int16_T, int32_T     - signed 8, 16, or 32 bit integers     * 
   36    *   uint8_T, uint16_T, uint32_T  - unsigned 8, 16, or 32 bit integers   * 
   37    *   real32_T, real64_T           - 32 and 64 bit floating point numbers * 
   38    *=======================================================================*/
   39   
   40   typedef signed char int8_T;
   41   typedef unsigned char uint8_T;
   42   typedef short int16_T;
   43   typedef unsigned short uint16_T;
   44   typedef int int32_T;
   45   typedef unsigned int uint32_T;
   46   typedef long int64_T;
   47   typedef unsigned long uint64_T;
   48   typedef float real32_T;
   49   typedef double real64_T;
   50   
   51   /*===========================================================================* 
   52    * Generic type definitions: real_T, time_T, boolean_T, int_T, uint_T,       * 
   53    *                           ulong_T, char_T and byte_T.                     * 
   54    *===========================================================================*/
   55   
   56   typedef double real_T;
   57   typedef double time_T;
   58   typedef unsigned char boolean_T;
   59   typedef int int_T;
   60   typedef unsigned uint_T;
   61   typedef unsigned long ulong_T;
   62   typedef char char_T;
   63   typedef char_T byte_T;
   64   
   65   /*===========================================================================* 
   66    * Complex number type definitions                                           * 
   67    *===========================================================================*/
   68   #define CREAL_T	
   69      typedef struct {  
   70        real32_T re;  
   71        real32_T im;  
   72      } creal32_T;  
   73   
   74      typedef struct {  
   75        real64_T re;  
   76        real64_T im;  
   77      } creal64_T;  
   78   
   79      typedef struct {  
   80        real_T re;  
   81        real_T im;  
   82      } creal_T;  
   83   
   84      typedef struct {  
   85        int8_T re;  
   86        int8_T im;  
   87      } cint8_T;  
   88   
   89      typedef struct {  
   90        uint8_T re;  
   91        uint8_T im;  
   92      } cuint8_T;  
   93   
   94      typedef struct {  
   95        int16_T re;  
   96        int16_T im;  
   97      } cint16_T;  
   98   
   99      typedef struct {  
  100        uint16_T re;  
  101        uint16_T im;  
  102      } cuint16_T;  
  103   
  104      typedef struct {  
  105        int32_T re;  
  106        int32_T im;  
  107      } cint32_T;  
  108   
  109      typedef struct {  
  110        uint32_T re;  
  111        uint32_T im;  
  112      } cuint32_T;  
  113   
  114      typedef struct {  
  115        int64_T re;  
  116        int64_T im;  
  117      } cint64_T;  
  118   
  119      typedef struct {  
  120        uint64_T re;  
  121        uint64_T im;  
  122      } cuint64_T;  
  123   
  124   
  125   /*=======================================================================* 
  126    * Min and Max:                                                          * 
  127    *   int8_T, int16_T, int32_T     - signed 8, 16, or 32 bit integers     * 
  128    *   uint8_T, uint16_T, uint32_T  - unsigned 8, 16, or 32 bit integers   * 
  129    *=======================================================================*/
  130   
  131   #define MAX_int8_T  	((int8_T)(127))
  132   #define MIN_int8_T  	((int8_T)(-128))
  133   #define MAX_uint8_T 	((uint8_T)(255))
  134   #define MIN_uint8_T 	((uint8_T)(0))
  135   #define MAX_int16_T 	((int16_T)(32767))
  136   #define MIN_int16_T 	((int16_T)(-32768))
  137   #define MAX_uint16_T	((uint16_T)(65535))
  138   #define MIN_uint16_T	((uint16_T)(0))
  139   #define MAX_int32_T 	((int32_T)(2147483647))
  140   #define MIN_int32_T 	((int32_T)(-2147483647-1))
  141   #define MAX_uint32_T	((uint32_T)(0xFFFFFFFFU))
  142   #define MIN_uint32_T	((uint32_T)(0))
  143   #define MAX_int64_T	((int64_T)(9223372036854775807L))
  144   #define MIN_int64_T	((int64_T)(-9223372036854775807L-1L))
  145   #define MAX_uint64_T	((uint64_T)(0xFFFFFFFFFFFFFFFFUL))
  146   #define MIN_uint64_T	((uint64_T)(0UL))
  147   
  148   /* Logical type definitions */
  149   #if !defined(__cplusplus) && !defined(__true_false_are_keywords)
  150   #  ifndef false
  151   #   define false (0U)
  152   #  endif
  153   #  ifndef true
  154   #   define true (1U)
  155   #  endif
  156   #endif
  157   
  158   /*
  159    * MATLAB for code generation assumes the code is compiled on a target using a 2's compliment representation
  160    * for signed integer values.
  161    */
  162   #if ((SCHAR_MIN + 1) != -SCHAR_MAX)
  163   #error "This code must be compiled using a 2's complement representation for signed integer values"
  164   #endif
  165   
  166   /*
  167    * Maximum length of a MATLAB identifier (function/variable)
  168    * including the null-termination character. Referenced by
  169    * rt_logging.c and rt_matrx.c.
  170    */
  171   #define TMW_NAME_LENGTH_MAX	64
  172   
  173   #endif
  174   #endif
  175   /* End of code generation (rtwtypes.h) */
  176