Code Interface Report for rtwdemo_pmsmfoc

Table of Contents

Entry Point Functions

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 [-]
# Name Data Type Description
1 motor_on uint16_T <Root>/motor_on
2 command_type EnumCommandType <Root>/command_type
3 current_request real32_T <Root>/command_value
4 sensors SENSORS_STRUCT * <Root>/sensors
5 pwm_compare uint16_T <Root>/pwm_compare
Return value
Data Type Description
EnumErrorType <Root>/error
Header file rtwdemo_pmsmfoc.h

Inports

[-]
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

Outports

Block Name Code Identifier Data Type Dimension
<Root>/pwm_compare Defined externally uint16_T [3]
<Root>/error Defined externally EnumErrorType 1

Interface Parameters

Parameter Source Code Identifier Data Type Dimension
ctrlParams ctrlParams CTRLPARAMS_STRUCT 1

Data Stores

No data stores in the model; note that this report lists only data stores with non-auto storage class and global data stores