rtwtypes.h 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. /*
  2. * File: rtwtypes.h
  3. *
  4. * Code generated for Simulink model 'SFM'.
  5. *
  6. * Model version : 1.71
  7. * Simulink Coder version : 9.4 (R2020b) 29-Jul-2020
  8. * C/C++ source code generated on : Thu Sep 9 17:17:31 2021
  9. */
  10. #ifndef RTWTYPES_H
  11. #define RTWTYPES_H
  12. /* Logical type definitions */
  13. #if (!defined(__cplusplus))
  14. #ifndef false
  15. #define false (0U)
  16. #endif
  17. #ifndef true
  18. #define true (1U)
  19. #endif
  20. #endif
  21. /*=======================================================================*
  22. * Target hardware information
  23. * Device type: Intel->x86-64 (Windows64)
  24. * Number of bits: char: 8 short: 16 int: 32
  25. * long: 32
  26. * native word size: 64
  27. * Byte ordering: LittleEndian
  28. * Signed integer division rounds to: Zero
  29. * Shift right on a signed integer as arithmetic shift: on
  30. *=======================================================================*/
  31. /*=======================================================================*
  32. * Fixed width word size data types: *
  33. * int8_T, int16_T, int32_T - signed 8, 16, or 32 bit integers *
  34. * uint8_T, uint16_T, uint32_T - unsigned 8, 16, or 32 bit integers *
  35. * real32_T, real64_T - 32 and 64 bit floating point numbers *
  36. *=======================================================================*/
  37. typedef signed char int8_T;
  38. typedef unsigned char uint8_T;
  39. typedef short int16_T;
  40. typedef unsigned short uint16_T;
  41. typedef int int32_T;
  42. typedef unsigned int uint32_T;
  43. typedef float real32_T;
  44. typedef double real64_T;
  45. /*===========================================================================*
  46. * Generic type definitions: boolean_T, char_T, byte_T, int_T, uint_T, *
  47. * real_T, time_T, ulong_T. *
  48. *===========================================================================*/
  49. typedef double real_T;
  50. typedef double time_T;
  51. typedef unsigned char boolean_T;
  52. typedef int int_T;
  53. typedef unsigned int uint_T;
  54. typedef unsigned long ulong_T;
  55. typedef char char_T;
  56. typedef unsigned char uchar_T;
  57. typedef char_T byte_T;
  58. /*===========================================================================*
  59. * Complex number type definitions *
  60. *===========================================================================*/
  61. #define CREAL_T
  62. typedef struct
  63. {
  64. real32_T re;
  65. real32_T im;
  66. } creal32_T;
  67. typedef struct
  68. {
  69. real64_T re;
  70. real64_T im;
  71. } creal64_T;
  72. typedef struct
  73. {
  74. real_T re;
  75. real_T im;
  76. } creal_T;
  77. #define CINT8_T
  78. typedef struct
  79. {
  80. int8_T re;
  81. int8_T im;
  82. } cint8_T;
  83. #define CUINT8_T
  84. typedef struct
  85. {
  86. uint8_T re;
  87. uint8_T im;
  88. } cuint8_T;
  89. #define CINT16_T
  90. typedef struct
  91. {
  92. int16_T re;
  93. int16_T im;
  94. } cint16_T;
  95. #define CUINT16_T
  96. typedef struct
  97. {
  98. uint16_T re;
  99. uint16_T im;
  100. } cuint16_T;
  101. #define CINT32_T
  102. typedef struct
  103. {
  104. int32_T re;
  105. int32_T im;
  106. } cint32_T;
  107. #define CUINT32_T
  108. typedef struct
  109. {
  110. uint32_T re;
  111. uint32_T im;
  112. } cuint32_T;
  113. /*=======================================================================*
  114. * Min and Max: *
  115. * int8_T, int16_T, int32_T - signed 8, 16, or 32 bit integers *
  116. * uint8_T, uint16_T, uint32_T - unsigned 8, 16, or 32 bit integers *
  117. *=======================================================================*/
  118. #define MAX_int8_T ((int8_T)(127))
  119. #define MIN_int8_T ((int8_T)(-128))
  120. #define MAX_uint8_T ((uint8_T)(255U))
  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 MAX_int32_T ((int32_T)(2147483647))
  125. #define MIN_int32_T ((int32_T)(-2147483647 - 1))
  126. #define MAX_uint32_T ((uint32_T)(0xFFFFFFFFU))
  127. /* Block D-Work pointer type */
  128. typedef void *pointer_T;
  129. #endif /* RTWTYPES_H */
  130. /*
  131. * File trailer for generated code.
  132. *
  133. * [EOF]
  134. */