AngleObserver_discrete.h 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. /*
  2. * File: AngleObserver_discrete.h
  3. *
  4. * Code generated for Simulink model 'AngleObserver_discrete'.
  5. *
  6. * Model version : 1.28
  7. * Simulink Coder version : 9.6 (R2021b) 14-May-2021
  8. * C/C++ source code generated on : Wed Apr 27 16:33:17 2022
  9. *
  10. * Target selection: ert.tlc
  11. * Embedded hardware selection: Custom Processor->Custom Processor
  12. * Code generation objectives:
  13. * 1. Execution efficiency
  14. * 2. RAM efficiency
  15. * Validation result: Not run
  16. */
  17. #ifndef RTW_HEADER_AngleObserver_discrete_h_
  18. #define RTW_HEADER_AngleObserver_discrete_h_
  19. #include <stddef.h>
  20. #ifndef AngleObserver_discrete_COMMON_INCLUDES_
  21. #define AngleObserver_discrete_COMMON_INCLUDES_
  22. #include "rtwtypes.h"
  23. #endif /* AngleObserver_discrete_COMMON_INCLUDES_ */
  24. /* Model Code Variants */
  25. /* Macros for accessing real-time model data structure */
  26. #ifndef rtmGetErrorStatus
  27. #define rtmGetErrorStatus(rtm) ((rtm)->errorStatus)
  28. #endif
  29. #ifndef rtmSetErrorStatus
  30. #define rtmSetErrorStatus(rtm, val) ((rtm)->errorStatus = (val))
  31. #endif
  32. /* Forward declaration for rtModel */
  33. typedef struct tag_RTM RT_MODEL;
  34. /* Block signals and states (default storage) for system '<Root>' */
  35. typedef struct {
  36. int32_T UnitDelay1_DSTATE; /* '<S1>/Unit Delay1' */
  37. int32_T UnitDelay1_DSTATE_k; /* '<S4>/Unit Delay1' */
  38. int32_T UnitDelay3_DSTATE; /* '<S6>/Unit Delay3' */
  39. int32_T UnitDelay_DSTATE; /* '<S5>/Unit Delay' */
  40. } DW;
  41. /* External inputs (root inport signals with default storage) */
  42. typedef struct {
  43. int16_T AngleIn; /* '<Root>/AngleIn' */
  44. } ExtU;
  45. /* External outputs (root outports fed by signals with default storage) */
  46. typedef struct {
  47. int16_T Angle_Filtered; /* '<Root>/Angle_Filtered' */
  48. int16_T Speed; /* '<Root>/Speed' */
  49. } ExtY;
  50. /* Real-time Model Data Structure */
  51. struct tag_RTM {
  52. const char_T * volatile errorStatus;
  53. };
  54. /* Block signals and states (default storage) */
  55. extern DW rtDW;
  56. /* External inputs (root inport signals with default storage) */
  57. extern ExtU rtU;
  58. /* External outputs (root outports fed by signals with default storage) */
  59. extern ExtY rtY;
  60. /* Model entry point functions */
  61. extern void AngleObserver_discrete_initialize(void);
  62. /* Exported entry point function */
  63. extern void Trigger(void);
  64. /* Real-time Model object */
  65. extern RT_MODEL *const rtM;
  66. /*-
  67. * These blocks were eliminated from the model due to optimizations:
  68. *
  69. * Block '<S1>/Display12' : Unused code path elimination
  70. * Block '<S1>/Display13' : Unused code path elimination
  71. * Block '<S1>/Display14' : Unused code path elimination
  72. * Block '<S1>/Display16' : Unused code path elimination
  73. * Block '<S1>/Display19' : Unused code path elimination
  74. * Block '<S1>/Display21' : Unused code path elimination
  75. * Block '<S1>/Display22' : Unused code path elimination
  76. * Block '<S1>/Scope1' : Unused code path elimination
  77. * Block '<S1>/Scope2' : Unused code path elimination
  78. * Block '<S1>/Scope3' : Unused code path elimination
  79. * Block '<S5>/Scope3' : Unused code path elimination
  80. * Block '<S1>/Data Type Conversion' : Eliminate redundant data type conversion
  81. * Block '<S1>/Data Type Conversion1' : Eliminate redundant data type conversion
  82. * Block '<S1>/Saturation' : Eliminated Saturate block
  83. * Block '<S2>/Data Type Conversion' : Eliminate redundant data type conversion
  84. * Block '<S4>/Saturation' : Eliminated Saturate block
  85. * Block '<S5>/Saturation' : Eliminated Saturate block
  86. * Block '<S6>/Saturation' : Eliminated Saturate block
  87. */
  88. /*-
  89. * The generated code includes comments that allow you to trace directly
  90. * back to the appropriate location in the model. The basic format
  91. * is <system>/block_name, where system is the system number (uniquely
  92. * assigned by Simulink) and block_name is the name of the block.
  93. *
  94. * Use the MATLAB hilite_system command to trace the generated code back
  95. * to the model. For example,
  96. *
  97. * hilite_system('<S3>') - opens system 3
  98. * hilite_system('<S3>/Kp') - opens and selects block Kp which resides in S3
  99. *
  100. * Here is the system hierarchy for this model
  101. *
  102. * '<Root>' : 'AngleObserver_discrete'
  103. * '<S1>' : 'AngleObserver_discrete/AngleObserver_discrete'
  104. * '<S2>' : 'AngleObserver_discrete/AngleObserver_discrete/Subsystem10'
  105. * '<S3>' : 'AngleObserver_discrete/AngleObserver_discrete/Subsystem11'
  106. * '<S4>' : 'AngleObserver_discrete/AngleObserver_discrete/Subsystem12'
  107. * '<S5>' : 'AngleObserver_discrete/AngleObserver_discrete/Subsystem13'
  108. * '<S6>' : 'AngleObserver_discrete/AngleObserver_discrete/Subsystem7'
  109. * '<S7>' : 'AngleObserver_discrete/AngleObserver_discrete/Subsystem8'
  110. * '<S8>' : 'AngleObserver_discrete/AngleObserver_discrete/Subsystem9'
  111. */
  112. #endif /* RTW_HEADER_AngleObserver_discrete_h_ */
  113. /*
  114. * File trailer for generated code.
  115. *
  116. * [EOF]
  117. */