Function: Controller_Init
Prototype | void Controller_Init(void) |
Description | Initialization entry point of generated code |
Timing | Must be called exactly once |
Arguments | None |
Return value | None |
Header file | rtwdemo_pmsmfoc.h |
Function: Controller
Prototype | EnumErrorType Controller(uint16_T motor_on, EnumCommandType command_type, real32_T current_request, SENSORS_STRUCT *sensors, uint16_T pwm_compare[3]) | ||||||||||||||||||||||||
Description | Output entry point of generated code | ||||||||||||||||||||||||
Timing | Must be called periodically, every 4e-05 seconds | ||||||||||||||||||||||||
Arguments |
[-]
|
||||||||||||||||||||||||
Return value |
|
||||||||||||||||||||||||
Header file | rtwdemo_pmsmfoc.h |
Block Name | Code Identifier | Data Type | Dimension |
---|---|---|---|
<Root>/motor_on | Defined externally | uint16_T | 1 |
<Root>/command_type | Defined externally | EnumCommandType | 1 |
<Root>/command_value | Defined externally | real32_T | 1 |
<Root>/sensors | Defined externally | SENSORS_STRUCT | 1 |
Block Name | Code Identifier | Data Type | Dimension |
---|---|---|---|
<Root>/pwm_compare | Defined externally | uint16_T | [3] |
<Root>/error | Defined externally | EnumErrorType | 1 |
Parameter Source | Code Identifier | Data Type | Dimension |
---|---|---|---|
ctrlParams | ctrlParams | CTRLPARAMS_STRUCT | 1 |
No data stores in the model; note that this report lists only data stores with non-auto storage class and global data stores