PMSM_Controller.h 24 KB

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