BLC.h 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. /*
  2. * File: BLC.h
  3. *
  4. * Code generated for Simulink model 'BLC'.
  5. *
  6. * Model version : 1.42
  7. * Simulink Coder version : 9.4 (R2020b) 29-Jul-2020
  8. * C/C++ source code generated on : Fri Aug 20 13:55:26 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. } B_BLC_c_T;
  35. #endif /*BLC_MDLREF_HIDE_CHILD_*/
  36. /* Block states (default storage) for model 'BLC' */
  37. #ifndef BLC_MDLREF_HIDE_CHILD_
  38. typedef struct {
  39. uint32_T blcCap[28]; /* '<S5>/Chart' */
  40. uint16_T UnitDelay_DSTATE[28]; /* '<S1>/Unit Delay' */
  41. uint16_T QL; /* '<S6>/Chart1' */
  42. boolean_T UnitDelay1_DSTATE; /* '<S1>/Unit Delay1' */
  43. uint8_T i_close; /* '<S4>/Chart' */
  44. uint8_T i_open; /* '<S4>/Chart' */
  45. boolean_T FristFlg; /* '<S6>/Chart1' */
  46. boolean_T FristFlg_b; /* '<S6>/Chart' */
  47. } DW_BLC_f_T;
  48. #endif /*BLC_MDLREF_HIDE_CHILD_*/
  49. #ifndef BLC_MDLREF_HIDE_CHILD_
  50. /* Real-time Model Data Structure */
  51. struct tag_RTM_BLC_T {
  52. const char_T **errorStatus;
  53. };
  54. #endif /*BLC_MDLREF_HIDE_CHILD_*/
  55. #ifndef BLC_MDLREF_HIDE_CHILD_
  56. typedef struct {
  57. RT_MODEL_BLC_T rtm;
  58. } MdlrefDW_BLC_T;
  59. #endif /*BLC_MDLREF_HIDE_CHILD_*/
  60. extern void BLC_Init(void);
  61. extern void BLC(void);
  62. /* Model reference registration function */
  63. extern void BLC_initialize(const char_T **rt_errorStatus);
  64. #ifndef BLC_MDLREF_HIDE_CHILD_
  65. extern MdlrefDW_BLC_T BLC_MdlrefDW;
  66. #endif /*BLC_MDLREF_HIDE_CHILD_*/
  67. #ifndef BLC_MDLREF_HIDE_CHILD_
  68. /* Block signals (default storage) */
  69. extern B_BLC_c_T BLC_B;
  70. /* Block states (default storage) */
  71. extern DW_BLC_f_T BLC_DW;
  72. #endif /*BLC_MDLREF_HIDE_CHILD_*/
  73. /*-
  74. * These blocks were eliminated from the model due to optimizations:
  75. *
  76. * Block '<S5>/Display' : Unused code path elimination
  77. * Block '<S5>/Scope' : Unused code path elimination
  78. */
  79. /*-
  80. * The generated code includes comments that allow you to trace directly
  81. * back to the appropriate location in the model. The basic format
  82. * is <system>/block_name, where system is the system number (uniquely
  83. * assigned by Simulink) and block_name is the name of the block.
  84. *
  85. * Use the MATLAB hilite_system command to trace the generated code back
  86. * to the model. For example,
  87. *
  88. * hilite_system('<S3>') - opens system 3
  89. * hilite_system('<S3>/Kp') - opens and selects block Kp which resides in S3
  90. *
  91. * Here is the system hierarchy for this model
  92. *
  93. * '<Root>' : 'BLC'
  94. * '<S1>' : 'BLC/Subsystem'
  95. * '<S2>' : 'BLC/Subsystem/EE'
  96. * '<S3>' : 'BLC/Subsystem/Enalbe'
  97. * '<S4>' : 'BLC/Subsystem/pause'
  98. * '<S5>' : 'BLC/Subsystem/record'
  99. * '<S6>' : 'BLC/Subsystem/reqCpNow_Count'
  100. * '<S7>' : 'BLC/Subsystem/stop'
  101. * '<S8>' : 'BLC/Subsystem/EE/If Action Subsystem'
  102. * '<S9>' : 'BLC/Subsystem/EE/If Action Subsystem1'
  103. * '<S10>' : 'BLC/Subsystem/EE/Subsystem'
  104. * '<S11>' : 'BLC/Subsystem/pause/Chart'
  105. * '<S12>' : 'BLC/Subsystem/record/Chart'
  106. * '<S13>' : 'BLC/Subsystem/reqCpNow_Count/Chart'
  107. * '<S14>' : 'BLC/Subsystem/reqCpNow_Count/Chart1'
  108. * '<S15>' : 'BLC/Subsystem/stop/Chart'
  109. */
  110. #endif /* RTW_HEADER_BLC_h_ */
  111. /*
  112. * File trailer for generated code.
  113. *
  114. * [EOF]
  115. */