123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 |
- #ifndef RTWTYPES_H
- #define RTWTYPES_H
- #if (!defined(__cplusplus))
- #ifndef false
- #define false (0U)
- #endif
- #ifndef true
- #define true (1U)
- #endif
- #endif
- typedef signed char int8_T;
- typedef unsigned char uint8_T;
- typedef short int16_T;
- typedef unsigned short uint16_T;
- typedef int int32_T;
- typedef unsigned int uint32_T;
- typedef float real32_T;
- typedef double real64_T;
- typedef double real_T;
- typedef double time_T;
- typedef unsigned char boolean_T;
- typedef int int_T;
- typedef unsigned int uint_T;
- typedef unsigned long ulong_T;
- typedef char char_T;
- typedef unsigned char uchar_T;
- typedef char_T byte_T;
- #define CREAL_T
- typedef struct {
- real32_T re;
- real32_T im;
- } creal32_T;
- typedef struct {
- real64_T re;
- real64_T im;
- } creal64_T;
- typedef struct {
- real_T re;
- real_T im;
- } creal_T;
- #define CINT8_T
- typedef struct {
- int8_T re;
- int8_T im;
- } cint8_T;
- #define CUINT8_T
- typedef struct {
- uint8_T re;
- uint8_T im;
- } cuint8_T;
- #define CINT16_T
- typedef struct {
- int16_T re;
- int16_T im;
- } cint16_T;
- #define CUINT16_T
- typedef struct {
- uint16_T re;
- uint16_T im;
- } cuint16_T;
- #define CINT32_T
- typedef struct {
- int32_T re;
- int32_T im;
- } cint32_T;
- #define CUINT32_T
- typedef struct {
- uint32_T re;
- uint32_T im;
- } cuint32_T;
- #define MAX_int8_T ((int8_T)(127))
- #define MIN_int8_T ((int8_T)(-128))
- #define MAX_uint8_T ((uint8_T)(255U))
- #define MAX_int16_T ((int16_T)(32767))
- #define MIN_int16_T ((int16_T)(-32768))
- #define MAX_uint16_T ((uint16_T)(65535U))
- #define MAX_int32_T ((int32_T)(2147483647))
- #define MIN_int32_T ((int32_T)(-2147483647-1))
- #define MAX_uint32_T ((uint32_T)(0xFFFFFFFFU))
- typedef void * pointer_T;
- #endif
|