#### File: D:\bobes\0 skola\_car4\my matlab\HIL - PID speed\firmware\Vejlupek_Car4_HIL_PIDSpeed_dspic\sources\rtwtypes.h
        1   /*
        2    * File: rtwtypes.h
        3    *
        4    * Definitions required by Real-Time Workshop generated code.
        5    *
        6    * Real-Time Workshop version: 7.3
        7    * Generated on: 2010-04-30 16:12:47
        8    */
        9
       10   #ifndef __RTWTYPES_H__
       11   #define __RTWTYPES_H__
       12   #ifndef TRUE
       13   # define TRUE                          (1U)
       14   #endif
       15
       16   #ifndef FALSE
       17   # define FALSE                         (0U)
       18   #endif
       19
       20   #ifndef __TMWTYPES__
       21   #define __TMWTYPES__
       22   #include <limits.h>
       23
       24   /*=======================================================================*
       25    * Target hardware information
       26    *   Device type: 16-bit Generic
       27    *   Number of bits:     char:   8    short:   16    int:  16
       28    *                       long:  32      native word size:  16
       29    *   Byte ordering: LittleEndian
       30    *   Signed integer division rounds to: Undefined
       31    *   Shift right on a signed integer as arithmetic shift: on
       32    *=======================================================================*/
       33
       34   /*=======================================================================*
       35    * Fixed width word size data types:                                     *
       36    *   int8_T, int16_T, int32_T     - signed 8, 16, or 32 bit integers     *
       37    *   uint8_T, uint16_T, uint32_T  - unsigned 8, 16, or 32 bit integers   *
       38    *   real32_T, real64_T           - 32 and 64 bit floating point numbers *
       39    *=======================================================================*/
       40   typedef signed char int8_T;
       41   typedef unsigned char uint8_T;
       42   typedef int int16_T;
       43   typedef unsigned int uint16_T;
       44   typedef long int32_T;
       45   typedef unsigned long uint32_T;
       46   typedef float real32_T;
       47   typedef double real64_T;
       48
       49   /*===========================================================================*
       50    * Generic type definitions: real_T, time_T, boolean_T, int_T, uint_T,       *
       51    *                           ulong_T, char_T and byte_T.                     *
       52    *===========================================================================*/
       53   typedef double real_T;
       54   typedef double time_T;
       55   typedef unsigned char boolean_T;
       56   typedef int int_T;
       57   typedef unsigned int uint_T;
       58   typedef unsigned long ulong_T;
       59   typedef char char_T;
       60   typedef char_T byte_T;
       61
       62   /*===========================================================================*
       63    * Complex number type definitions                                           *
       64    *===========================================================================*/
       65   #define CREAL_T
       66
       67   typedef struct {
       68     real32_T re;
       69     real32_T im;
       70   } creal32_T;
       71
       72   typedef struct {
       73     real64_T re;
       74     real64_T im;
       75   } creal64_T;
       76
       77   typedef struct {
       78     real_T re;
       79     real_T im;
       80   } creal_T;
       81
       82   typedef struct {
       83     int8_T re;
       84     int8_T im;
       85   } cint8_T;
       86
       87   typedef struct {
       88     uint8_T re;
       89     uint8_T im;
       90   } cuint8_T;
       91
       92   typedef struct {
       93     int16_T re;
       94     int16_T im;
       95   } cint16_T;
       96
       97   typedef struct {
       98     uint16_T re;
       99     uint16_T im;
      100   } cuint16_T;
      101
      102   typedef struct {
      103     int32_T re;
      104     int32_T im;
      105   } cint32_T;
      106
      107   typedef struct {
      108     uint32_T re;
      109     uint32_T im;
      110   } cuint32_T;
      111
      112   /*=======================================================================*
      113    * Min and Max:                                                          *
      114    *   int8_T, int16_T, int32_T     - signed 8, 16, or 32 bit integers     *
      115    *   uint8_T, uint16_T, uint32_T  - unsigned 8, 16, or 32 bit integers   *
      116    *=======================================================================*/
      117   #define MAX_int8_T                     ((int8_T)(127))
      118   #define MIN_int8_T                     ((int8_T)(-128))
      119   #define MAX_uint8_T                    ((uint8_T)(255U))
      120   #define MIN_uint8_T                    ((uint8_T)(0U))
      121   #define MAX_int16_T                    ((int16_T)(32767))
      122   #define MIN_int16_T                    ((int16_T)(-32768))
      123   #define MAX_uint16_T                   ((uint16_T)(65535U))
      124   #define MIN_uint16_T                   ((uint16_T)(0U))
      125   #define MAX_int32_T                    ((int32_T)(2147483647))
      126   #define MIN_int32_T                    ((int32_T)(-2147483647-1))
      127   #define MAX_uint32_T                   ((uint32_T)(0xFFFFFFFFU))
      128   #define MIN_uint32_T                   ((uint32_T)(0U))
      129
      130   /* Logical type definitions */
      131   #if !defined(__cplusplus) && !defined(__true_false_are_keywords)
      132   #  ifndef false
      133   #   define false                       (0U)
      134   #  endif
      135
      136   #  ifndef true
      137   #   define true                        (1U)
      138   #  endif
      139   #endif
      140
      141   /*
      142    * Real-Time Workshop assumes the code is compiled on a target using a 2's compliment representation
      143    * for signed integer values.
      144    */
      145   #if ((SCHAR_MIN + 1) != -SCHAR_MAX)
      146   #error "This code must be compiled using a 2's complement representation for signed integer values"
      147   #endif
      148
      149   /*
      150    * Maximum length of a MATLAB identifier (function/variable/model)
      151    * including the null-termination character. Referenced by
      152    * rt_logging.c and rt_matrx.c.
      153    */
      154   #define TMW_NAME_LENGTH_MAX            64
      155
      156   /* This ID is used to detect inclusion of an incompatible rtwtypes.h */
      157   #define RTWTYPES_ID_C08S16I16L32N16F1
      158   #else                                  /* __TMWTYPES__ */
      159   #define TMWTYPES_PREVIOUSLY_INCLUDED
      160   #endif                                 /* __TMWTYPES__ */
      161
      162   /* Block D-Work pointer type */
      163   typedef void * pointer_T;
      164
      165   /*
      166    * MultiWord supporting definitions
      167    */
      168   typedef long int long_T;
      169
      170   /*
      171    * MultiWord types
      172    */
      173   typedef struct {
      174     uint32_T chunks[2];
      175   } int64m_T;
      176
      177   typedef struct {
      178     int64m_T re;
      179     int64m_T im;
      180   } cint64m_T;
      181
      182   typedef struct {
      183     uint32_T chunks[2];
      184   } uint64m_T;
      185
      186   typedef struct {
      187     uint64m_T re;
      188     uint64m_T im;
      189   } cuint64m_T;
      190
      191   typedef struct {
      192     uint32_T chunks[3];
      193   } int96m_T;
      194
      195   typedef struct {
      196     int96m_T re;
      197     int96m_T im;
      198   } cint96m_T;
      199
      200   typedef struct {
      201     uint32_T chunks[3];
      202   } uint96m_T;
      203
      204   typedef struct {
      205     uint96m_T re;
      206     uint96m_T im;
      207   } cuint96m_T;
      208
      209   typedef struct {
      210     uint32_T chunks[4];
      211   } int128m_T;
      212
      213   typedef struct {
      214     int128m_T re;
      215     int128m_T im;
      216   } cint128m_T;
      217
      218   typedef struct {
      219     uint32_T chunks[4];
      220   } uint128m_T;
      221
      222   typedef struct {
      223     uint128m_T re;
      224     uint128m_T im;
      225   } cuint128m_T;
      226
      227   typedef struct {
      228     uint32_T chunks[5];
      229   } int160m_T;
      230
      231   typedef struct {
      232     int160m_T re;
      233     int160m_T im;
      234   } cint160m_T;
      235
      236   typedef struct {
      237     uint32_T chunks[5];
      238   } uint160m_T;
      239
      240   typedef struct {
      241     uint160m_T re;
      242     uint160m_T im;
      243   } cuint160m_T;
      244
      245   typedef struct {
      246     uint32_T chunks[6];
      247   } int192m_T;
      248
      249   typedef struct {
      250     int192m_T re;
      251     int192m_T im;
      252   } cint192m_T;
      253
      254   typedef struct {
      255     uint32_T chunks[6];
      256   } uint192m_T;
      257
      258   typedef struct {
      259     uint192m_T re;
      260     uint192m_T im;
      261   } cuint192m_T;
      262
      263   typedef struct {
      264     uint32_T chunks[7];
      265   } int224m_T;
      266
      267   typedef struct {
      268     int224m_T re;
      269     int224m_T im;
      270   } cint224m_T;
      271
      272   typedef struct {
      273     uint32_T chunks[7];
      274   } uint224m_T;
      275
      276   typedef struct {
      277     uint224m_T re;
      278     uint224m_T im;
      279   } cuint224m_T;
      280
      281   typedef struct {
      282     uint32_T chunks[8];
      283   } int256m_T;
      284
      285   typedef struct {
      286     int256m_T re;
      287     int256m_T im;
      288   } cint256m_T;
      289
      290   typedef struct {
      291     uint32_T chunks[8];
      292   } uint256m_T;
      293
      294   typedef struct {
      295     uint256m_T re;
      296     uint256m_T im;
      297   } cuint256m_T;
      298
      299   /* Simulink specific types */
      300   #ifndef __SIMSTRUC_TYPES_H__
      301   #define __SIMSTRUC_TYPES_H__
      302
      303   /* States of an enabled subsystem */
      304   typedef enum {
      305     SUBSYS_DISABLED = 0,
      306     SUBSYS_ENABLED = 2,
      307     SUBSYS_TRIGGERED = 16
      308   } CondStates;
      309
      310   /* Trigger directions: falling, either, and rising */
      311   typedef enum {
      312     FALLING_ZERO_CROSSING = -1,
      313     ANY_ZERO_CROSSING = 0,
      314     RISING_ZERO_CROSSING = 1
      315   } ZCDirection;
      316
      317   /* Previous state of a trigger signal */
      318   typedef uint8_T ZCSigState;
      319
      320   /* Initial value of a trigger zero crossing signal */
      321   #define UNINITIALIZED_ZCSIG            0x03U
      322   #define NEG_ZCSIG                      0x02U
      323   #define POS_ZCSIG                      0x01U
      324   #define ZERO_ZCSIG                     0x00U
      325
      326   /* Current state of a trigger signal */
      327   typedef enum {
      328     FALLING_ZCEVENT = -1,
      329     NO_ZCEVENT = 0,
      330     RISING_ZCEVENT = 1
      331   } ZCEventType;
      332
      333   /* Enumeration of built-in data types */
      334   typedef enum {
      335     SS_DOUBLE = 0,                       /* real_T    */
      336     SS_SINGLE = 1,                       /* real32_T  */
      337     SS_INT8 = 2,                         /* int8_T    */
      338     SS_UINT8 = 3,                        /* uint8_T   */
      339     SS_INT16 = 4,                        /* int16_T   */
      340     SS_UINT16 = 5,                       /* uint16_T  */
      341     SS_INT32 = 6,                        /* int32_T   */
      342     SS_UINT32 = 7,                       /* uint32_T  */
      343     SS_BOOLEAN = 8                       /* boolean_T */
      344   } BuiltInDTypeId;
      345
      346   #define SS_NUM_BUILT_IN_DTYPE          ((int_T)SS_BOOLEAN+1)
      347
      348   /* Enumeration for MAT-file logging code */
      349   typedef int_T DTypeId;
      350
      351   #endif                                 /* __SIMSTRUC_TYPES_H__ */
      352   #endif                                 /* __RTWTYPES_H__ */