Code Interface Report for PMSM_Controller
Table of Contents
Function: PMSM_Controller_initialize
|
Prototype
|
void PMSM_Controller_initialize(RT_MODEL *const rtM)
|
|
Description
|
Initialization entry point of generated code
|
|
Timing
|
Must be called exactly once
|
|
Arguments
|
|
#
|
Name
|
Data Type
|
Description
|
|
1
|
rtM
|
RT_MODEL *const
|
RTModel
|
|
|
Return value
|
None
|
|
Header file
|
PMSM_Controller.h
|
Function: PMSM_Controller_step
|
Prototype
|
void PMSM_Controller_step(RT_MODEL *const rtM)
|
|
Description
|
Output entry point of generated code
|
|
Timing
|
Must be called periodically, every 5e-05 seconds
|
|
Arguments
|
|
#
|
Name
|
Data Type
|
Description
|
|
1
|
rtM
|
RT_MODEL *const
|
RTModel
|
|
|
Return value
|
None
|
|
Header file
|
PMSM_Controller.h
|
[-]
|
Block Name
|
Code Identifier
|
Data Type
|
Scaling
|
Dimension
|
|
<S4>/adc_a
|
Defined externally
|
int16_T
|
|
1
|
|
<S4>/adc_b
|
Defined externally
|
int16_T
|
|
1
|
|
<S4>/input_target
|
Defined externally
|
int16_T
|
sfix16_En2
|
1
|
|
<S4>/hall_a
|
Defined externally
|
uint8_T
|
|
1
|
|
<S4>/hall_b
|
Defined externally
|
uint8_T
|
|
1
|
|
<S4>/hall_c
|
Defined externally
|
uint8_T
|
|
1
|
|
<S4>/hw_count
|
Defined externally
|
uint32_T
|
|
1
|
|
<S4>/b_motEna
|
Defined externally
|
boolean_T
|
|
1
|
|
<S4>/b_cruiseEna
|
Defined externally
|
boolean_T
|
|
1
|
|
<S4>/n_ctrlModReq
|
Defined externally
|
uint8_T
|
|
1
|
|
<S4>/i_dc_limit
|
Defined externally
|
int16_T
|
sfix16_En6
|
1
|
|
<S4>/speed_limit
|
Defined externally
|
int16_T
|
sfix16_En2
|
1
|
|
<S4>/vbus_voltage
|
Defined externally
|
int16_T
|
sfix16_En6
|
1
|
|
<S4>/foc_calibrate
|
Defined externally
|
uint16_T
|
|
1
|
|
<S4>/vdq_open_target
|
Defined externally
|
int16_T
|
sfix16_En6
|
[2]
|
|
<S4>/open_theta
|
Defined externally
|
int16_T
|
|
1
|
[-]
|
Block Name
|
Code Identifier
|
Data Type
|
Scaling
|
Dimension
|
|
<S4>/PWM
|
Defined externally
|
uint16_T
|
|
[3]
|
|
<S4>/sector
|
Defined externally
|
uint8_T
|
|
1
|
|
<S4>/n_MotError
|
Defined externally
|
uint8_T
|
|
1
|
|
<S4>/VqPrev
|
Defined externally
|
int16_T
|
sfix16_En6
|
1
|
|
<S4>/VdPrev
|
Defined externally
|
int16_T
|
sfix16_En6
|
1
|
|
<S4>/iq
|
Defined externally
|
int16_T
|
sfix16_En6
|
1
|
|
<S4>/id
|
Defined externally
|
int16_T
|
sfix16_En6
|
1
|
|
<S4>/angle
|
Defined externally
|
int16_T
|
sfix16_En4
|
1
|
|
<S4>/rpm
|
Defined externally
|
int16_T
|
sfix16_En2
|
1
|
|
<S4>/hall_angle
|
Defined externally
|
int16_T
|
sfix16_En4
|
1
|
|
<S4>/hall_state
|
Defined externally
|
uint8_T
|
|
1
|
|
<S4>/running_mode
|
Defined externally
|
uint8_T
|
|
1
|
No interface/tunable parameters in model.
No data stores in the model; note that this report lists only data stores with non-auto storage class and global data stores