BCU1.h 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. /*
  2. * File: BCU.h
  3. *
  4. * Code generated for Simulink model 'BCU'.
  5. *
  6. * Model version : 1.19
  7. * Simulink Coder version : 9.4 (R2020b) 29-Jul-2020
  8. * C/C++ source code generated on : Fri Aug 20 13:49:53 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_BCU_h_
  16. #define RTW_HEADER_BCU_h_
  17. #ifndef BCU_COMMON_INCLUDES_
  18. #define BCU_COMMON_INCLUDES_
  19. #include "rtwtypes.h"
  20. #include "commontypedef.h"
  21. #include "AppSignal.h"
  22. #include "zero_crossing_types.h"
  23. #endif /* BCU_COMMON_INCLUDES_ */
  24. #include "BCU_types.h"
  25. #define PROC_BCU_TASK_STACK_SIZE (2048)
  26. typedef enum
  27. {
  28. PROCESS_STATE_INIT = 0,
  29. PROCESS_STATE_IDLE,
  30. PROCESS_STATE_WORK,
  31. PROCESS_STATE_SLEEP
  32. }process_Bcu;
  33. /* Child system includes */
  34. //=======================================================================
  35. /* Child system includes */
  36. #define SOH_MDLREF_HIDE_CHILD_
  37. #include "SOH.h"
  38. #define SOC_MDLREF_HIDE_CHILD_
  39. #include "SOC.h"
  40. #define BLC_MDLREF_HIDE_CHILD_
  41. #include "BLC.h"
  42. #define SFM_MDLREF_HIDE_CHILD_
  43. extern uint16_T Time;
  44. /* Includes for objects with custom storage classes. */
  45. #include "BCUCal.h"
  46. #include "BCUDisp.h"
  47. /* Macros for accessing real-time model data structure */
  48. #ifndef rtmGetErrorStatus
  49. #define rtmGetErrorStatus(rtm) ((rtm)->errorStatus)
  50. #endif
  51. #ifndef rtmSetErrorStatus
  52. #define rtmSetErrorStatus(rtm, val) ((rtm)->errorStatus = (val))
  53. #endif
  54. #ifndef rtmGetErrorStatusPointer
  55. #define rtmGetErrorStatusPointer(rtm) ((const char_T **)(&((rtm)->errorStatus)))
  56. #endif
  57. /* Real-time Model Data Structure */
  58. struct tag_RTM_BCU_T {
  59. const char_T *errorStatus;
  60. };
  61. /* Model entry point functions */
  62. extern void BCU_initialize(void);
  63. extern void BCU_step(void);
  64. extern void BCU_terminate(void);
  65. /* Real-time Model object */
  66. extern RT_MODEL_BCU_T *const BCU_M;
  67. /*-
  68. * The generated code includes comments that allow you to trace directly
  69. * back to the appropriate location in the model. The basic format
  70. * is <system>/block_name, where system is the system number (uniquely
  71. * assigned by Simulink) and block_name is the name of the block.
  72. *
  73. * Use the MATLAB hilite_system command to trace the generated code back
  74. * to the model. For example,
  75. *
  76. * hilite_system('<S3>') - opens system 3
  77. * hilite_system('<S3>/Kp') - opens and selects block Kp which resides in S3
  78. *
  79. * Here is the system hierarchy for this model
  80. *
  81. * '<Root>' : 'BCU'
  82. */
  83. #endif /* RTW_HEADER_BCU_h_ */
  84. /*
  85. * File trailer for generated code.
  86. *
  87. * [EOF]
  88. */