PMSM_Controller.h 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427
  1. /*
  2. * File: PMSM_Controller.h
  3. *
  4. * Code generated for Simulink model 'PMSM_Controller'.
  5. *
  6. * Model version : 1.1235
  7. * Simulink Coder version : 9.4 (R2020b) 29-Jul-2020
  8. * C/C++ source code generated on : Wed Apr 6 15:47:34 2022
  9. *
  10. * Target selection: ert.tlc
  11. * Embedded hardware selection: ARM Compatible->ARM Cortex-M
  12. * Code generation objectives:
  13. * 1. Execution efficiency
  14. * 2. RAM efficiency
  15. * Validation result: Not run
  16. */
  17. #ifndef RTW_HEADER_PMSM_Controller_h_
  18. #define RTW_HEADER_PMSM_Controller_h_
  19. #ifndef PMSM_Controller_COMMON_INCLUDES_
  20. #define PMSM_Controller_COMMON_INCLUDES_
  21. #include "rtwtypes.h"
  22. #include "zero_crossing_types.h"
  23. #endif /* PMSM_Controller_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 '<S39>/Counter' */
  35. typedef struct {
  36. uint16_T UnitDelay_DSTATE; /* '<S44>/UnitDelay' */
  37. } DW_Counter;
  38. /* Block signals and states (default storage) for system '<S35>/either_edge' */
  39. typedef struct {
  40. boolean_T UnitDelay_DSTATE; /* '<S40>/UnitDelay' */
  41. } DW_either_edge;
  42. /* Block signals and states (default storage) for system '<S34>/Debounce_Filter' */
  43. typedef struct {
  44. DW_either_edge either_edge_j; /* '<S35>/either_edge' */
  45. DW_Counter Counter_d; /* '<S38>/Counter' */
  46. DW_Counter Counter_f; /* '<S39>/Counter' */
  47. boolean_T UnitDelay_DSTATE; /* '<S35>/UnitDelay' */
  48. } DW_Debounce_Filter;
  49. /* Block signals and states (default storage) for system '<S45>/Low_Pass_Filter' */
  50. typedef struct {
  51. int16_T UnitDelay1_DSTATE[2]; /* '<S54>/UnitDelay1' */
  52. } DW_Low_Pass_Filter;
  53. /* Block signals and states (default storage) for system '<S58>/PI_iq' */
  54. typedef struct {
  55. int32_T UnitDelay_DSTATE; /* '<S63>/UnitDelay' */
  56. int32_T UnitDelay_DSTATE_i; /* '<S65>/UnitDelay' */
  57. } DW_PI_iq;
  58. /* Block signals and states (default storage) for system '<S57>/PI_id' */
  59. typedef struct {
  60. int32_T UnitDelay_DSTATE; /* '<S59>/UnitDelay' */
  61. int32_T UnitDelay_DSTATE_p; /* '<S61>/UnitDelay' */
  62. } DW_PI_id;
  63. /* Block signals and states (default storage) for system '<S77>/pi_speed' */
  64. typedef struct {
  65. int32_T UnitDelay_DSTATE; /* '<S80>/UnitDelay' */
  66. int32_T ResettableDelay_DSTATE; /* '<S81>/Resettable Delay' */
  67. uint8_T icLoad; /* '<S81>/Resettable Delay' */
  68. } DW_pi_speed;
  69. /* Zero-crossing (trigger) state for system '<S77>/pi_speed' */
  70. typedef struct {
  71. ZCSigState ResettableDelay_Reset_ZCE;/* '<S81>/Resettable Delay' */
  72. } ZCE_pi_speed;
  73. /* Block signals and states (default storage) for system '<Root>' */
  74. typedef struct {
  75. DW_pi_speed pi_speed_g; /* '<S77>/pi_speed' */
  76. DW_PI_id PI_id_b; /* '<S57>/PI_id' */
  77. DW_PI_iq PI_iq_g; /* '<S58>/PI_iq' */
  78. DW_Low_Pass_Filter Low_Pass_Filter_d;/* '<S45>/Low_Pass_Filter' */
  79. DW_either_edge either_edge_f; /* '<S34>/either_edge' */
  80. DW_Debounce_Filter Debounce_Filter_i;/* '<S34>/Debounce_Filter' */
  81. uint32_T z_counterRawPrev; /* '<S15>/z_counterRawPrev' */
  82. uint32_T UnitDelay3_DSTATE; /* '<S10>/UnitDelay3' */
  83. uint32_T UnitDelay2_DSTATE; /* '<S15>/UnitDelay2' */
  84. uint32_T UnitDelay3_DSTATE_l; /* '<S15>/UnitDelay3' */
  85. uint32_T UnitDelay5_DSTATE; /* '<S15>/UnitDelay5' */
  86. int16_T Merge[2]; /* '<S23>/Merge' */
  87. int16_T Divide; /* '<S32>/Divide' */
  88. int16_T Merge_b; /* '<S50>/Merge' */
  89. int16_T Switch2; /* '<S62>/Switch2' */
  90. int16_T Switch2_m; /* '<S66>/Switch2' */
  91. int16_T Divide1; /* '<S29>/Divide1' */
  92. int16_T Switch; /* '<S32>/Switch' */
  93. int16_T Switch1; /* '<S32>/Switch1' */
  94. int16_T Divide3; /* '<S24>/Divide3' */
  95. int16_T Divide11; /* '<S15>/Divide11' */
  96. int16_T UnitDelay2_DSTATE_p; /* '<S5>/UnitDelay2' */
  97. int16_T UnitDelay1_DSTATE; /* '<S5>/UnitDelay1' */
  98. int16_T UnitDelay_DSTATE; /* '<S28>/Unit Delay' */
  99. int16_T UnitDelay_DSTATE_d; /* '<S33>/UnitDelay' */
  100. int16_T UnitDelay4_DSTATE; /* '<S10>/UnitDelay4' */
  101. uint16_T UnitDelay2_DSTATE_f; /* '<S16>/UnitDelay2' */
  102. uint16_T UnitDelay3_DSTATE_lh; /* '<S16>/UnitDelay3' */
  103. uint16_T UnitDelay5_DSTATE_f; /* '<S16>/UnitDelay5' */
  104. int8_T Switch2_i; /* '<S6>/Switch2' */
  105. int8_T UnitDelay2_DSTATE_j; /* '<S6>/UnitDelay2' */
  106. uint8_T Delay_DSTATE; /* '<S7>/Delay' */
  107. uint8_T Delay1_DSTATE; /* '<S7>/Delay1' */
  108. uint8_T Delay2_DSTATE; /* '<S7>/Delay2' */
  109. uint8_T UnitDelay_DSTATE_j; /* '<S34>/UnitDelay' */
  110. uint8_T is_active_c5_PMSM_Controller;/* '<S3>/Control_Mode_Manager' */
  111. uint8_T is_c5_PMSM_Controller; /* '<S3>/Control_Mode_Manager' */
  112. uint8_T is_ACTIVE; /* '<S3>/Control_Mode_Manager' */
  113. boolean_T Delay_DSTATE_n[20]; /* '<S84>/Delay' */
  114. boolean_T Compare; /* '<S18>/Compare' */
  115. boolean_T UnitDelay_DSTATE_f; /* '<S84>/Unit Delay' */
  116. boolean_T UnitDelay1_DSTATE_i; /* '<S15>/UnitDelay1' */
  117. boolean_T n_SpeedCtrl_Mode; /* '<S21>/n_SpeedCtrl' */
  118. boolean_T n_commDeacv_Mode; /* '<S16>/n_commDeacv' */
  119. } DW;
  120. /* Zero-crossing (trigger) state */
  121. typedef struct {
  122. ZCE_pi_speed pi_speed_g; /* '<S77>/pi_speed' */
  123. } PrevZCX;
  124. /* Invariant block signals for system '<S77>/pi_speed' */
  125. typedef struct {
  126. const int32_T DataTypeConversion2; /* '<S81>/Data Type Conversion2' */
  127. } ConstB_pi_speed;
  128. /* Invariant block signals (default storage) */
  129. typedef struct {
  130. ConstB_pi_speed pi_speed_g; /* '<S77>/pi_speed' */
  131. } ConstB;
  132. /* Constant parameters (default storage) */
  133. typedef struct {
  134. /* Computed Parameter: r_cos_M1_Table
  135. * Referenced by: '<S56>/r_cos_M1'
  136. */
  137. int16_T r_cos_M1_Table[1441];
  138. /* Computed Parameter: r_sin_M1_Table
  139. * Referenced by: '<S56>/r_sin_M1'
  140. */
  141. int16_T r_sin_M1_Table[1441];
  142. /* Computed Parameter: Vq_max_M1_Table
  143. * Referenced by: '<S46>/Vq_max_M1'
  144. */
  145. int16_T Vq_max_M1_Table[46];
  146. /* Computed Parameter: iq_maxSca_M1_Table
  147. * Referenced by: '<S46>/iq_maxSca_M1'
  148. */
  149. uint16_T iq_maxSca_M1_Table[50];
  150. /* Computed Parameter: vec_hallToPos_Value
  151. * Referenced by: '<S9>/vec_hallToPos'
  152. */
  153. int8_T vec_hallToPos_Value[8];
  154. } ConstP;
  155. /* External inputs (root inport signals with default storage) */
  156. typedef struct {
  157. int16_T adc_a; /* '<Root>/adc_a' */
  158. int16_T adc_b; /* '<Root>/adc_b' */
  159. int16_T open_theta; /* '<Root>/open_theta' */
  160. int16_T rotor_speed; /* '<Root>/rotor_speed' */
  161. int16_T input_target; /* '<Root>/input_target' */
  162. uint8_T hall_a; /* '<Root>/hall_a' */
  163. uint8_T hall_b; /* '<Root>/hall_b' */
  164. uint8_T hall_c; /* '<Root>/hall_c' */
  165. uint32_T hw_count; /* '<Root>/hw_count' */
  166. boolean_T b_motEna; /* '<Root>/b_motEna' */
  167. boolean_T b_cruiseEna; /* '<Root>/b_cruiseEna' */
  168. uint8_T n_ctrlModReq; /* '<Root>/n_ctrlModReq' */
  169. int16_T i_dc_limit; /* '<Root>/i_dc_limit' */
  170. int16_T speed_limit; /* '<Root>/speed_limit' */
  171. int16_T vbus_voltage; /* '<Root>/vbus_voltage' */
  172. boolean_T b_hall_calibrate; /* '<Root>/b_hall_calibrate' */
  173. int16_T vd_open_target; /* '<Root>/vd_open_target' */
  174. int16_T vq_open_target; /* '<Root>/vq_open_target' */
  175. } ExtU;
  176. /* External outputs (root outports fed by signals with default storage) */
  177. typedef struct {
  178. uint16_T PWM[3]; /* '<Root>/PWM' */
  179. uint8_T sector; /* '<Root>/sector' */
  180. uint8_T n_MotError; /* '<Root>/n_MotError' */
  181. int16_T VqPrev; /* '<Root>/VqPrev' */
  182. int16_T VdPrev; /* '<Root>/VdPrev' */
  183. int16_T iq; /* '<Root>/iq' */
  184. int16_T id; /* '<Root>/id' */
  185. int16_T angle; /* '<Root>/angle' */
  186. int16_T rpm; /* '<Root>/rpm' */
  187. int16_T hall_angle; /* '<Root>/hall_angle' */
  188. uint8_T hall_state; /* '<Root>/hall_state' */
  189. uint8_T running_mode; /* '<Root>/running_mode' */
  190. } ExtY;
  191. /* Real-time Model Data Structure */
  192. struct tag_RTM {
  193. const char_T * volatile errorStatus;
  194. PrevZCX *prevZCSigState;
  195. ExtU *inputs;
  196. ExtY *outputs;
  197. DW *dwork;
  198. };
  199. extern const ConstB rtConstB; /* constant block i/o */
  200. /* Constant parameters (default storage) */
  201. extern const ConstP rtConstP;
  202. /* Model entry point functions */
  203. extern void PMSM_Controller_initialize(RT_MODEL *const rtM);
  204. extern void PMSM_Controller_step(RT_MODEL *const rtM);
  205. /*-
  206. * These blocks were eliminated from the model due to optimizations:
  207. *
  208. * Block '<S6>/Scope' : Unused code path elimination
  209. * Block '<S8>/Scope' : Unused code path elimination
  210. * Block '<S9>/Scope' : Unused code path elimination
  211. * Block '<S2>/Scope' : Unused code path elimination
  212. * Block '<S10>/Logical Operator4' : Unused code path elimination
  213. * Block '<S15>/Abs2' : Unused code path elimination
  214. * Block '<S15>/Add' : Unused code path elimination
  215. * Block '<S17>/Compare' : Unused code path elimination
  216. * Block '<S17>/Constant' : Unused code path elimination
  217. * Block '<S15>/Sum7' : Unused code path elimination
  218. * Block '<S15>/UnitDelay4' : Unused code path elimination
  219. * Block '<S15>/UnitDelay6' : Unused code path elimination
  220. * Block '<S15>/UnitDelay7' : Unused code path elimination
  221. * Block '<S15>/UnitDelay8' : Unused code path elimination
  222. * Block '<S15>/dz_cntTrnsDet' : Unused code path elimination
  223. * Block '<S10>/Scope1' : Unused code path elimination
  224. * Block '<S10>/Scope2' : Unused code path elimination
  225. * Block '<S25>/Data Type Duplicate' : Unused code path elimination
  226. * Block '<S25>/Data Type Propagation' : Unused code path elimination
  227. * Block '<S26>/Data Type Duplicate' : Unused code path elimination
  228. * Block '<S26>/Data Type Propagation' : Unused code path elimination
  229. * Block '<S3>/Scope' : Unused code path elimination
  230. * Block '<S23>/Scope' : Unused code path elimination
  231. * Block '<S31>/Data Type Duplicate' : Unused code path elimination
  232. * Block '<S31>/Data Type Propagation' : Unused code path elimination
  233. * Block '<S30>/Scope' : Unused code path elimination
  234. * Block '<S30>/Scope1' : Unused code path elimination
  235. * Block '<S28>/Scope' : Unused code path elimination
  236. * Block '<S29>/Scope' : Unused code path elimination
  237. * Block '<S1>/Scope1' : Unused code path elimination
  238. * Block '<S1>/Scope2' : Unused code path elimination
  239. * Block '<S53>/Scope' : Unused code path elimination
  240. * Block '<S45>/Scope' : Unused code path elimination
  241. * Block '<S45>/Scope1' : Unused code path elimination
  242. * Block '<S56>/Scope' : Unused code path elimination
  243. * Block '<S46>/Scope' : Unused code path elimination
  244. * Block '<S47>/Constant1' : Unused code path elimination
  245. * Block '<S47>/Constant2' : Unused code path elimination
  246. * Block '<S47>/Constant4' : Unused code path elimination
  247. * Block '<S47>/Scope1' : Unused code path elimination
  248. * Block '<S62>/Data Type Duplicate' : Unused code path elimination
  249. * Block '<S62>/Data Type Propagation' : Unused code path elimination
  250. * Block '<S60>/Data Type Duplicate' : Unused code path elimination
  251. * Block '<S60>/Data Type Propagation' : Unused code path elimination
  252. * Block '<S57>/Scope' : Unused code path elimination
  253. * Block '<S66>/Data Type Duplicate' : Unused code path elimination
  254. * Block '<S66>/Data Type Propagation' : Unused code path elimination
  255. * Block '<S63>/Scope' : Unused code path elimination
  256. * Block '<S64>/Data Type Duplicate' : Unused code path elimination
  257. * Block '<S64>/Data Type Propagation' : Unused code path elimination
  258. * Block '<S58>/Scope' : Unused code path elimination
  259. * Block '<S48>/Scope' : Unused code path elimination
  260. * Block '<S68>/Data Type Duplicate' : Unused code path elimination
  261. * Block '<S68>/Data Type Propagation' : Unused code path elimination
  262. * Block '<S67>/Scope' : Unused code path elimination
  263. * Block '<S5>/Scope12' : Unused code path elimination
  264. * Block '<S79>/Data Type Duplicate' : Unused code path elimination
  265. * Block '<S79>/Data Type Propagation' : Unused code path elimination
  266. * Block '<S77>/Scope' : Unused code path elimination
  267. * Block '<S77>/Scope2' : Unused code path elimination
  268. * Block '<S82>/Data Type Duplicate' : Unused code path elimination
  269. * Block '<S82>/Data Type Propagation' : Unused code path elimination
  270. * Block '<S80>/Scope' : Unused code path elimination
  271. * Block '<S83>/Data Type Duplicate' : Unused code path elimination
  272. * Block '<S83>/Data Type Propagation' : Unused code path elimination
  273. * Block '<S78>/Scope' : Unused code path elimination
  274. * Block '<S52>/Scope' : Unused code path elimination
  275. * Block '<S52>/Scope1' : Unused code path elimination
  276. * Block '<S8>/Manual Switch' : Eliminated due to constant selection input
  277. * Block '<S2>/hall_motor_speed_choice' : Eliminated due to constant selection input
  278. * Block '<S23>/Data Type Conversion' : Eliminate redundant data type conversion
  279. * Block '<S5>/Data Type Conversion' : Eliminate redundant data type conversion
  280. * Block '<S46>/Data Type Conversion' : Eliminate redundant data type conversion
  281. * Block '<S77>/Manual Switch' : Eliminated due to constant selection input
  282. * Block '<S84>/Data Type Conversion1' : Eliminate redundant data type conversion
  283. * Block '<S8>/Constant' : Unused code path elimination
  284. * Block '<S15>/Divide14' : Unused code path elimination
  285. * Block '<S15>/smooth' : Unused code path elimination
  286. * Block '<S77>/Constant' : Unused code path elimination
  287. */
  288. /*-
  289. * The generated code includes comments that allow you to trace directly
  290. * back to the appropriate location in the model. The basic format
  291. * is <system>/block_name, where system is the system number (uniquely
  292. * assigned by Simulink) and block_name is the name of the block.
  293. *
  294. * Note that this particular code originates from a subsystem build,
  295. * and has its own system numbers different from the parent model.
  296. * Refer to the system hierarchy for this subsystem below, and use the
  297. * MATLAB hilite_system command to trace the generated code back
  298. * to the parent model. For example,
  299. *
  300. * hilite_system('MotorController_FOC/PMSM_Controller') - opens subsystem MotorController_FOC/PMSM_Controller
  301. * hilite_system('MotorController_FOC/PMSM_Controller/Kp') - opens and selects block Kp
  302. *
  303. * Here is the system hierarchy for this model
  304. *
  305. * '<Root>' : 'MotorController_FOC'
  306. * '<S1>' : 'MotorController_FOC/PMSM_Controller'
  307. * '<S2>' : 'MotorController_FOC/PMSM_Controller/Angle_Speed_Estimation'
  308. * '<S3>' : 'MotorController_FOC/PMSM_Controller/Control_Mode_Manager'
  309. * '<S4>' : 'MotorController_FOC/PMSM_Controller/Diagnostics'
  310. * '<S5>' : 'MotorController_FOC/PMSM_Controller/controller'
  311. * '<S6>' : 'MotorController_FOC/PMSM_Controller/Angle_Speed_Estimation/Direction_Detection'
  312. * '<S7>' : 'MotorController_FOC/PMSM_Controller/Angle_Speed_Estimation/Edge_Detect'
  313. * '<S8>' : 'MotorController_FOC/PMSM_Controller/Angle_Speed_Estimation/Electrical_Angle_Estimation'
  314. * '<S9>' : 'MotorController_FOC/PMSM_Controller/Angle_Speed_Estimation/Hall_Angle_Raw'
  315. * '<S10>' : 'MotorController_FOC/PMSM_Controller/Angle_Speed_Estimation/Speed_Estimation'
  316. * '<S11>' : 'MotorController_FOC/PMSM_Controller/Angle_Speed_Estimation/Electrical_Angle_Estimation/degree_rad'
  317. * '<S12>' : 'MotorController_FOC/PMSM_Controller/Angle_Speed_Estimation/Electrical_Angle_Estimation/degree_rad/If Action Subsystem'
  318. * '<S13>' : 'MotorController_FOC/PMSM_Controller/Angle_Speed_Estimation/Electrical_Angle_Estimation/degree_rad/If Action Subsystem1'
  319. * '<S14>' : 'MotorController_FOC/PMSM_Controller/Angle_Speed_Estimation/Electrical_Angle_Estimation/degree_rad/If Action Subsystem2'
  320. * '<S15>' : 'MotorController_FOC/PMSM_Controller/Angle_Speed_Estimation/Speed_Estimation/Raw_Motor_Speed_Estimation'
  321. * '<S16>' : 'MotorController_FOC/PMSM_Controller/Angle_Speed_Estimation/Speed_Estimation/Subsystem'
  322. * '<S17>' : 'MotorController_FOC/PMSM_Controller/Angle_Speed_Estimation/Speed_Estimation/Raw_Motor_Speed_Estimation/Compare To Constant'
  323. * '<S18>' : 'MotorController_FOC/PMSM_Controller/Angle_Speed_Estimation/Speed_Estimation/Subsystem/Compare To Constant'
  324. * '<S19>' : 'MotorController_FOC/PMSM_Controller/Control_Mode_Manager/Control_Mode_Manager'
  325. * '<S20>' : 'MotorController_FOC/PMSM_Controller/Control_Mode_Manager/Field_Weakening_Enabled'
  326. * '<S21>' : 'MotorController_FOC/PMSM_Controller/Control_Mode_Manager/Mode_Transition_Calculation'
  327. * '<S22>' : 'MotorController_FOC/PMSM_Controller/Control_Mode_Manager/Subsystem'
  328. * '<S23>' : 'MotorController_FOC/PMSM_Controller/Control_Mode_Manager/target_scale'
  329. * '<S24>' : 'MotorController_FOC/PMSM_Controller/Control_Mode_Manager/Field_Weakening_Enabled/Field_Weakening'
  330. * '<S25>' : 'MotorController_FOC/PMSM_Controller/Control_Mode_Manager/Field_Weakening_Enabled/Field_Weakening/Saturation Dynamic'
  331. * '<S26>' : 'MotorController_FOC/PMSM_Controller/Control_Mode_Manager/Field_Weakening_Enabled/Field_Weakening/Saturation Dynamic1'
  332. * '<S27>' : 'MotorController_FOC/PMSM_Controller/Control_Mode_Manager/target_scale/If Action Subsystem'
  333. * '<S28>' : 'MotorController_FOC/PMSM_Controller/Control_Mode_Manager/target_scale/open_mode'
  334. * '<S29>' : 'MotorController_FOC/PMSM_Controller/Control_Mode_Manager/target_scale/torque_mode'
  335. * '<S30>' : 'MotorController_FOC/PMSM_Controller/Control_Mode_Manager/target_scale/open_mode/Rate_Control'
  336. * '<S31>' : 'MotorController_FOC/PMSM_Controller/Control_Mode_Manager/target_scale/open_mode/Rate_Control/Saturation Dynamic'
  337. * '<S32>' : 'MotorController_FOC/PMSM_Controller/Control_Mode_Manager/target_scale/open_mode/Rate_Control/Subsystem'
  338. * '<S33>' : 'MotorController_FOC/PMSM_Controller/Control_Mode_Manager/target_scale/open_mode/Rate_Control/delayUnit'
  339. * '<S34>' : 'MotorController_FOC/PMSM_Controller/Diagnostics/Diagnostics_Enabled'
  340. * '<S35>' : 'MotorController_FOC/PMSM_Controller/Diagnostics/Diagnostics_Enabled/Debounce_Filter'
  341. * '<S36>' : 'MotorController_FOC/PMSM_Controller/Diagnostics/Diagnostics_Enabled/either_edge'
  342. * '<S37>' : 'MotorController_FOC/PMSM_Controller/Diagnostics/Diagnostics_Enabled/Debounce_Filter/Default'
  343. * '<S38>' : 'MotorController_FOC/PMSM_Controller/Diagnostics/Diagnostics_Enabled/Debounce_Filter/Dequalification'
  344. * '<S39>' : 'MotorController_FOC/PMSM_Controller/Diagnostics/Diagnostics_Enabled/Debounce_Filter/Qualification'
  345. * '<S40>' : 'MotorController_FOC/PMSM_Controller/Diagnostics/Diagnostics_Enabled/Debounce_Filter/either_edge'
  346. * '<S41>' : 'MotorController_FOC/PMSM_Controller/Diagnostics/Diagnostics_Enabled/Debounce_Filter/Dequalification/Counter'
  347. * '<S42>' : 'MotorController_FOC/PMSM_Controller/Diagnostics/Diagnostics_Enabled/Debounce_Filter/Dequalification/Counter/rst_Delay'
  348. * '<S43>' : 'MotorController_FOC/PMSM_Controller/Diagnostics/Diagnostics_Enabled/Debounce_Filter/Qualification/Counter'
  349. * '<S44>' : 'MotorController_FOC/PMSM_Controller/Diagnostics/Diagnostics_Enabled/Debounce_Filter/Qualification/Counter/rst_Delay'
  350. * '<S45>' : 'MotorController_FOC/PMSM_Controller/controller/Clarke_Park_Transform_Forward'
  351. * '<S46>' : 'MotorController_FOC/PMSM_Controller/controller/Motor_Limitations_Enabled'
  352. * '<S47>' : 'MotorController_FOC/PMSM_Controller/controller/PID_Controller'
  353. * '<S48>' : 'MotorController_FOC/PMSM_Controller/controller/Park_Transform_Inverse'
  354. * '<S49>' : 'MotorController_FOC/PMSM_Controller/controller/SVM'
  355. * '<S50>' : 'MotorController_FOC/PMSM_Controller/controller/Speed_Controller'
  356. * '<S51>' : 'MotorController_FOC/PMSM_Controller/controller/current_sample'
  357. * '<S52>' : 'MotorController_FOC/PMSM_Controller/controller/pid_schdule'
  358. * '<S53>' : 'MotorController_FOC/PMSM_Controller/controller/Clarke_Park_Transform_Forward/Clarke'
  359. * '<S54>' : 'MotorController_FOC/PMSM_Controller/controller/Clarke_Park_Transform_Forward/Low_Pass_Filter'
  360. * '<S55>' : 'MotorController_FOC/PMSM_Controller/controller/Clarke_Park_Transform_Forward/Park'
  361. * '<S56>' : 'MotorController_FOC/PMSM_Controller/controller/Clarke_Park_Transform_Forward/Sine_Cosine_Approximation'
  362. * '<S57>' : 'MotorController_FOC/PMSM_Controller/controller/PID_Controller/id_ctrl'
  363. * '<S58>' : 'MotorController_FOC/PMSM_Controller/controller/PID_Controller/iq_ctrl'
  364. * '<S59>' : 'MotorController_FOC/PMSM_Controller/controller/PID_Controller/id_ctrl/PI_id'
  365. * '<S60>' : 'MotorController_FOC/PMSM_Controller/controller/PID_Controller/id_ctrl/Saturation Dynamic1'
  366. * '<S61>' : 'MotorController_FOC/PMSM_Controller/controller/PID_Controller/id_ctrl/PI_id/Integrator'
  367. * '<S62>' : 'MotorController_FOC/PMSM_Controller/controller/PID_Controller/id_ctrl/PI_id/Saturation Dynamic1'
  368. * '<S63>' : 'MotorController_FOC/PMSM_Controller/controller/PID_Controller/iq_ctrl/PI_iq'
  369. * '<S64>' : 'MotorController_FOC/PMSM_Controller/controller/PID_Controller/iq_ctrl/Saturation Dynamic2'
  370. * '<S65>' : 'MotorController_FOC/PMSM_Controller/controller/PID_Controller/iq_ctrl/PI_iq/Integrator'
  371. * '<S66>' : 'MotorController_FOC/PMSM_Controller/controller/PID_Controller/iq_ctrl/PI_iq/Saturation Dynamic1'
  372. * '<S67>' : 'MotorController_FOC/PMSM_Controller/controller/SVM/SVPWM'
  373. * '<S68>' : 'MotorController_FOC/PMSM_Controller/controller/SVM/SVPWM/Saturation Dynamic1'
  374. * '<S69>' : 'MotorController_FOC/PMSM_Controller/controller/SVM/SVPWM/Subsystem'
  375. * '<S70>' : 'MotorController_FOC/PMSM_Controller/controller/SVM/SVPWM/sector_select'
  376. * '<S71>' : 'MotorController_FOC/PMSM_Controller/controller/SVM/SVPWM/Subsystem/sector1'
  377. * '<S72>' : 'MotorController_FOC/PMSM_Controller/controller/SVM/SVPWM/Subsystem/sector2'
  378. * '<S73>' : 'MotorController_FOC/PMSM_Controller/controller/SVM/SVPWM/Subsystem/sector3'
  379. * '<S74>' : 'MotorController_FOC/PMSM_Controller/controller/SVM/SVPWM/Subsystem/sector4'
  380. * '<S75>' : 'MotorController_FOC/PMSM_Controller/controller/SVM/SVPWM/Subsystem/sector5'
  381. * '<S76>' : 'MotorController_FOC/PMSM_Controller/controller/SVM/SVPWM/Subsystem/sector6'
  382. * '<S77>' : 'MotorController_FOC/PMSM_Controller/controller/Speed_Controller/speed_mode'
  383. * '<S78>' : 'MotorController_FOC/PMSM_Controller/controller/Speed_Controller/torque_mode'
  384. * '<S79>' : 'MotorController_FOC/PMSM_Controller/controller/Speed_Controller/speed_mode/Saturation Dynamic3'
  385. * '<S80>' : 'MotorController_FOC/PMSM_Controller/controller/Speed_Controller/speed_mode/pi_speed'
  386. * '<S81>' : 'MotorController_FOC/PMSM_Controller/controller/Speed_Controller/speed_mode/pi_speed/Integrator'
  387. * '<S82>' : 'MotorController_FOC/PMSM_Controller/controller/Speed_Controller/speed_mode/pi_speed/Saturation Dynamic1'
  388. * '<S83>' : 'MotorController_FOC/PMSM_Controller/controller/Speed_Controller/torque_mode/Saturation Dynamic'
  389. * '<S84>' : 'MotorController_FOC/PMSM_Controller/controller/pid_schdule/Call_Scheduler'
  390. */
  391. #endif /* RTW_HEADER_PMSM_Controller_h_ */
  392. /*
  393. * File trailer for generated code.
  394. *
  395. * [EOF]
  396. */