SFM_private.h 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. /*
  2. * File: SFM_private.h
  3. *
  4. * Code generated for Simulink model 'SFM'.
  5. *
  6. * Model version : 1.73
  7. * Simulink Coder version : 9.4 (R2020b) 29-Jul-2020
  8. * C/C++ source code generated on : Thu Sep 9 18:18:17 2021
  9. *
  10. * Target selection: ert.tlc
  11. * Embedded hardware selection: Intel->x86-64 (Windows64)
  12. * Code generation objectives: Unspecified
  13. * Validation result: Not run
  14. */
  15. #ifndef RTW_HEADER_SFM_private_h_
  16. #define RTW_HEADER_SFM_private_h_
  17. #include "rtwtypes.h"
  18. #ifndef UCHAR_MAX
  19. #include <limits.h>
  20. #endif
  21. #if ( UCHAR_MAX != (0xFFU) ) || ( SCHAR_MAX != (0x7F) )
  22. #error Code was generated for compiler with different sized uchar/char. \
  23. Consider adjusting Test hardware word size settings on the \
  24. Hardware Implementation pane to match your compiler word sizes as \
  25. defined in limits.h of the compiler. Alternatively, you can \
  26. select the Test hardware is the same as production hardware option and \
  27. select the Enable portable word sizes option on the Code Generation > \
  28. Verification pane for ERT based targets, which will disable the \
  29. preprocessor word size checks.
  30. #endif
  31. #if ( USHRT_MAX != (0xFFFFU) ) || ( SHRT_MAX != (0x7FFF) )
  32. #error Code was generated for compiler with different sized ushort/short. \
  33. Consider adjusting Test hardware word size settings on the \
  34. Hardware Implementation pane to match your compiler word sizes as \
  35. defined in limits.h of the compiler. Alternatively, you can \
  36. select the Test hardware is the same as production hardware option and \
  37. select the Enable portable word sizes option on the Code Generation > \
  38. Verification pane for ERT based targets, which will disable the \
  39. preprocessor word size checks.
  40. #endif
  41. #if ( UINT_MAX != (0xFFFFFFFFU) ) || ( INT_MAX != (0x7FFFFFFF) )
  42. #error Code was generated for compiler with different sized uint/int. \
  43. Consider adjusting Test hardware word size settings on the \
  44. Hardware Implementation pane to match your compiler word sizes as \
  45. defined in limits.h of the compiler. Alternatively, you can \
  46. select the Test hardware is the same as production hardware option and \
  47. select the Enable portable word sizes option on the Code Generation > \
  48. Verification pane for ERT based targets, which will disable the \
  49. preprocessor word size checks.
  50. #endif
  51. #if ( ULONG_MAX != (0xFFFFFFFFU) ) || ( LONG_MAX != (0x7FFFFFFF) )
  52. #error Code was generated for compiler with different sized ulong/long. \
  53. Consider adjusting Test hardware word size settings on the \
  54. Hardware Implementation pane to match your compiler word sizes as \
  55. defined in limits.h of the compiler. Alternatively, you can \
  56. select the Test hardware is the same as production hardware option and \
  57. select the Enable portable word sizes option on the Code Generation > \
  58. Verification pane for ERT based targets, which will disable the \
  59. preprocessor word size checks.
  60. #endif
  61. /* Macros for accessing real-time model data structure */
  62. #ifndef rtmGetErrorStatus
  63. #define rtmGetErrorStatus(rtm) (*((rtm)->errorStatus))
  64. #endif
  65. #ifndef rtmSetErrorStatus
  66. #define rtmSetErrorStatus(rtm, val) (*((rtm)->errorStatus) = (val))
  67. #endif
  68. #ifndef rtmGetErrorStatusPointer
  69. #define rtmGetErrorStatusPointer(rtm) (rtm)->errorStatus
  70. #endif
  71. #ifndef rtmSetErrorStatusPointer
  72. #define rtmSetErrorStatusPointer(rtm, val) ((rtm)->errorStatus = (val))
  73. #endif
  74. #endif /* RTW_HEADER_SFM_private_h_ */
  75. /*
  76. * File trailer for generated code.
  77. *
  78. * [EOF]
  79. */