File: rtwtypes.h

    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    * rtwtypes.h
    7    *
    8    * Code generation for function 'calculateTransformations'
    9    *
   10    */
   11   
   12   #ifndef __RTWTYPES_H__
   13   #define __RTWTYPES_H__
   14   #ifndef __TMWTYPES__
   15   #define __TMWTYPES__
   16   
   17   /*=======================================================================*
   18    * Target hardware information
   19    *   Device type: Generic->MATLAB Host Computer
   20    *   Number of bits:     char:   8    short:   16    int:  32
   21    *                       long:  32
   22    *                       native word size:  32
   23    *   Byte ordering: LittleEndian
   24    *   Signed integer division rounds to: Zero
   25    *   Shift right on a signed integer as arithmetic shift: on
   26    *=======================================================================*/
   27   
   28   /*=======================================================================*
   29    * Fixed width word size data types:                                     *
   30    *   int8_T, int16_T, int32_T     - signed 8, 16, or 32 bit integers     *
   31    *   uint8_T, uint16_T, uint32_T  - unsigned 8, 16, or 32 bit integers   *
   32    *   real32_T, real64_T           - 32 and 64 bit floating point numbers *
   33    *=======================================================================*/
   34   typedef signed char int8_T;
   35   typedef unsigned char uint8_T;
   36   typedef short int16_T;
   37   typedef unsigned short uint16_T;
   38   typedef int int32_T;
   39   typedef unsigned int uint32_T;
   40   typedef float real32_T;
   41   typedef double real64_T;
   42   
   43   /*===========================================================================*
   44    * Generic type definitions: real_T, time_T, boolean_T, int_T, uint_T,       *
   45    *                           ulong_T, char_T and byte_T.                     *
   46    *===========================================================================*/
   47   typedef double real_T;
   48   typedef double time_T;
   49   typedef unsigned char boolean_T;
   50   typedef int int_T;
   51   typedef unsigned int uint_T;
   52   typedef unsigned long ulong_T;
   53   typedef char char_T;
   54   typedef char_T byte_T;
   55   
   56   /*===========================================================================*
   57    * Complex number type definitions                                           *
   58    *===========================================================================*/
   59   #define CREAL_T
   60   
   61   typedef struct {
   62     real32_T re;
   63     real32_T im;
   64   } creal32_T;
   65   
   66   typedef struct {
   67     real64_T re;
   68     real64_T im;
   69   } creal64_T;
   70   
   71   typedef struct {
   72     real_T re;
   73     real_T im;
   74   } creal_T;
   75   
   76   typedef struct {
   77     int8_T re;
   78     int8_T im;
   79   } cint8_T;
   80   
   81   typedef struct {
   82     uint8_T re;
   83     uint8_T im;
   84   } cuint8_T;
   85   
   86   typedef struct {
   87     int16_T re;
   88     int16_T im;
   89   } cint16_T;
   90   
   91   typedef struct {
   92     uint16_T re;
   93     uint16_T im;
   94   } cuint16_T;
   95   
   96   typedef struct {
   97     int32_T re;
   98     int32_T im;
   99   } cint32_T;
  100   
  101   typedef struct {
  102     uint32_T re;
  103     uint32_T im;
  104   } cuint32_T;
  105   
  106   /*=======================================================================*
  107    * Min and Max:                                                          *
  108    *   int8_T, int16_T, int32_T     - signed 8, 16, or 32 bit integers     *
  109    *   uint8_T, uint16_T, uint32_T  - unsigned 8, 16, or 32 bit integers   *
  110    *=======================================================================*/
  111   #define MAX_int8_T                     ((int8_T)(127))
  112   #define MIN_int8_T                     ((int8_T)(-128))
  113   #define MAX_uint8_T                    ((uint8_T)(255))
  114   #define MIN_uint8_T                    ((uint8_T)(0))
  115   #define MAX_int16_T                    ((int16_T)(32767))
  116   #define MIN_int16_T                    ((int16_T)(-32768))
  117   #define MAX_uint16_T                   ((uint16_T)(65535))
  118   #define MIN_uint16_T                   ((uint16_T)(0))
  119   #define MAX_int32_T                    ((int32_T)(2147483647))
  120   #define MIN_int32_T                    ((int32_T)(-2147483647-1))
  121   #define MAX_uint32_T                   ((uint32_T)(0xFFFFFFFFU))
  122   #define MIN_uint32_T                   ((uint32_T)(0))
  123   
  124   /* Logical type definitions */
  125   #if !defined(__cplusplus) && !defined(__true_false_are_keywords)
  126   #  ifndef false
  127   #   define false                       (0U)
  128   #  endif
  129   
  130   #  ifndef true
  131   #   define true                        (1U)
  132   #  endif
  133   #endif
  134   
  135   /*
  136    * Maximum length of a MATLAB identifier (function/variable)
  137    * including the null-termination character. Referenced by
  138    * rt_logging.c and rt_matrx.c.
  139    */
  140   #define TMW_NAME_LENGTH_MAX            64
  141   #endif
  142   #endif
  143   
  144   /* End of code generation (rtwtypes.h) */
  145