rtwtypes.h 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  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. real32_T re;
  64. real32_T im;
  65. } creal32_T;
  66. typedef struct {
  67. real64_T re;
  68. real64_T im;
  69. } creal64_T;
  70. typedef struct {
  71. real_T re;
  72. real_T im;
  73. } creal_T;
  74. #define CINT8_T
  75. typedef struct {
  76. int8_T re;
  77. int8_T im;
  78. } cint8_T;
  79. #define CUINT8_T
  80. typedef struct {
  81. uint8_T re;
  82. uint8_T im;
  83. } cuint8_T;
  84. #define CINT16_T
  85. typedef struct {
  86. int16_T re;
  87. int16_T im;
  88. } cint16_T;
  89. #define CUINT16_T
  90. typedef struct {
  91. uint16_T re;
  92. uint16_T im;
  93. } cuint16_T;
  94. #define CINT32_T
  95. typedef struct {
  96. int32_T re;
  97. int32_T im;
  98. } cint32_T;
  99. #define CUINT32_T
  100. typedef struct {
  101. uint32_T re;
  102. uint32_T im;
  103. } cuint32_T;
  104. /*=======================================================================*
  105. * Min and Max: *
  106. * int8_T, int16_T, int32_T - signed 8, 16, or 32 bit integers *
  107. * uint8_T, uint16_T, uint32_T - unsigned 8, 16, or 32 bit integers *
  108. *=======================================================================*/
  109. #define MAX_int8_T ((int8_T)(127))
  110. #define MIN_int8_T ((int8_T)(-128))
  111. #define MAX_uint8_T ((uint8_T)(255U))
  112. #define MAX_int16_T ((int16_T)(32767))
  113. #define MIN_int16_T ((int16_T)(-32768))
  114. #define MAX_uint16_T ((uint16_T)(65535U))
  115. #define MAX_int32_T ((int32_T)(2147483647))
  116. #define MIN_int32_T ((int32_T)(-2147483647-1))
  117. #define MAX_uint32_T ((uint32_T)(0xFFFFFFFFU))
  118. /* Block D-Work pointer type */
  119. typedef void * pointer_T;
  120. #endif /* RTWTYPES_H */
  121. /*
  122. * File trailer for generated code.
  123. *
  124. * [EOF]
  125. */