BCU.h 2.4 KB

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