BLC.h 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. /*
  2. * File: BLC.h
  3. *
  4. * Code generated for Simulink model 'BLC'.
  5. *
  6. * Model version : 1.50
  7. * Simulink Coder version : 9.4 (R2020b) 29-Jul-2020
  8. * C/C++ source code generated on : Thu Sep 9 17:18:08 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_BLC_h_
  16. #define RTW_HEADER_BLC_h_
  17. #include <string.h>
  18. #ifndef BLC_COMMON_INCLUDES_
  19. #define BLC_COMMON_INCLUDES_
  20. #include "rtwtypes.h"
  21. #endif /* BLC_COMMON_INCLUDES_ */
  22. #include "BLC_types.h"
  23. /* Includes for objects with custom storage classes. */
  24. #include "BCUCal.h"
  25. #include "BCUDisp.h"
  26. /* Block signals for model 'BLC' */
  27. #ifndef BLC_MDLREF_HIDE_CHILD_
  28. typedef struct {
  29. uint32_T blcv_Q_totalCpEE_Merge[28]; /* '<S2>/blcv_Q_totalCpEE_Merge' */
  30. uint16_T blcn_Q_reqCpNow_j[28]; /* '<S6>/Chart' */
  31. uint16_T blcv_Q_reqCpEE_Merge[28]; /* '<S2>/blcv_Q_reqCpEE_Merge' */
  32. boolean_T blcn_flg_stop[28]; /* '<S7>/Chart' */
  33. boolean_T blcn_flg_pause[28]; /* '<S4>/Chart' */
  34. boolean_T in; /* '<S12>/in' */
  35. } B_BLC_c_T;
  36. #endif /*BLC_MDLREF_HIDE_CHILD_*/
  37. /* Block states (default storage) for model 'BLC' */
  38. #ifndef BLC_MDLREF_HIDE_CHILD_
  39. typedef struct {
  40. uint32_T blcCap[28]; /* '<S5>/Chart' */
  41. uint16_T reqCp_reset_DSTATE[28]; /* '<S1>/reqCp_reset' */
  42. uint16_T QL; /* '<S6>/Chart1' */
  43. boolean_T UnitDelay1_DSTATE; /* '<S11>/Unit Delay1' */
  44. boolean_T UnitDelay1_DSTATE_a; /* '<S1>/Unit Delay1' */
  45. uint8_T i_close; /* '<S4>/Chart' */
  46. uint8_T i_open; /* '<S4>/Chart' */
  47. boolean_T FristFlg; /* '<S6>/Chart1' */
  48. boolean_T FristFlg_b; /* '<S6>/Chart' */
  49. } DW_BLC_f_T;
  50. #endif /*BLC_MDLREF_HIDE_CHILD_*/
  51. #ifndef BLC_MDLREF_HIDE_CHILD_
  52. /* Real-time Model Data Structure */
  53. struct tag_RTM_BLC_T {
  54. const char_T **errorStatus;
  55. };
  56. #endif /*BLC_MDLREF_HIDE_CHILD_*/
  57. #ifndef BLC_MDLREF_HIDE_CHILD_
  58. typedef struct {
  59. RT_MODEL_BLC_T rtm;
  60. } MdlrefDW_BLC_T;
  61. #endif /*BLC_MDLREF_HIDE_CHILD_*/
  62. extern void BLC_Init(void);
  63. extern void BLC(void);
  64. /* Model reference registration function */
  65. extern void BLC_initialize(const char_T **rt_errorStatus);
  66. #ifndef BLC_MDLREF_HIDE_CHILD_
  67. extern MdlrefDW_BLC_T BLC_MdlrefDW;
  68. #endif /*BLC_MDLREF_HIDE_CHILD_*/
  69. #ifndef BLC_MDLREF_HIDE_CHILD_
  70. /* Block signals (default storage) */
  71. extern B_BLC_c_T BLC_B;
  72. /* Block states (default storage) */
  73. extern DW_BLC_f_T BLC_DW;
  74. #endif /*BLC_MDLREF_HIDE_CHILD_*/
  75. /*-
  76. * The generated code includes comments that allow you to trace directly
  77. * back to the appropriate location in the model. The basic format
  78. * is <system>/block_name, where system is the system number (uniquely
  79. * assigned by Simulink) and block_name is the name of the block.
  80. *
  81. * Use the MATLAB hilite_system command to trace the generated code back
  82. * to the model. For example,
  83. *
  84. * hilite_system('<S3>') - opens system 3
  85. * hilite_system('<S3>/Kp') - opens and selects block Kp which resides in S3
  86. *
  87. * Here is the system hierarchy for this model
  88. *
  89. * '<Root>' : 'BLC'
  90. * '<S1>' : 'BLC/BLC'
  91. * '<S2>' : 'BLC/BLC/EE'
  92. * '<S3>' : 'BLC/BLC/Enalbe'
  93. * '<S4>' : 'BLC/BLC/pause'
  94. * '<S5>' : 'BLC/BLC/record'
  95. * '<S6>' : 'BLC/BLC/reqCpNow_Count'
  96. * '<S7>' : 'BLC/BLC/stop'
  97. * '<S8>' : 'BLC/BLC/EE/If Action Subsystem'
  98. * '<S9>' : 'BLC/BLC/EE/If Action Subsystem1'
  99. * '<S10>' : 'BLC/BLC/EE/Subsystem'
  100. * '<S11>' : 'BLC/BLC/Enalbe/Frist Keep'
  101. * '<S12>' : 'BLC/BLC/Enalbe/Frist Keep/Subsystem3'
  102. * '<S13>' : 'BLC/BLC/pause/Chart'
  103. * '<S14>' : 'BLC/BLC/record/Chart'
  104. * '<S15>' : 'BLC/BLC/reqCpNow_Count/Chart'
  105. * '<S16>' : 'BLC/BLC/reqCpNow_Count/Chart1'
  106. * '<S17>' : 'BLC/BLC/stop/Chart'
  107. */
  108. #endif /* RTW_HEADER_BLC_h_ */
  109. /*
  110. * File trailer for generated code.
  111. *
  112. * [EOF]
  113. */