File: rtwtypes.h

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