forked from lucysrausch/hoverboard-firmware-hack
clean-up temporary files
This commit is contained in:
@ -1,12 +0,0 @@
|
|||||||
@if not "%MINGW_ROOT%" == "" (@set "PATH=%PATH%;%MINGW_ROOT%")
|
|
||||||
|
|
||||||
cd .
|
|
||||||
|
|
||||||
if "%1"=="" ("C:\PROGRA~1\MATLAB\R2017b\bin\win64\gmake" -f BLDC_controller.mk all) else ("C:\PROGRA~1\MATLAB\R2017b\bin\win64\gmake" -f BLDC_controller.mk %1)
|
|
||||||
@if errorlevel 1 goto error_exit
|
|
||||||
|
|
||||||
exit /B 0
|
|
||||||
|
|
||||||
:error_exit
|
|
||||||
echo The make command returned an error of %errorlevel%
|
|
||||||
An_error_occurred_during_the_call_to_make
|
|
@ -1,696 +0,0 @@
|
|||||||
/*
|
|
||||||
* Academic License - for use in teaching, academic research, and meeting
|
|
||||||
* course requirements at degree granting institutions only. Not for
|
|
||||||
* government, commercial, or other organizational use.
|
|
||||||
*
|
|
||||||
* File: BLDC_controller.c
|
|
||||||
*
|
|
||||||
* Code generated for Simulink model 'BLDC_controller'.
|
|
||||||
*
|
|
||||||
* Model version : 1.883
|
|
||||||
* Simulink Coder version : 8.13 (R2017b) 24-Jul-2017
|
|
||||||
* C/C++ source code generated on : Tue Jun 11 21:14:57 2019
|
|
||||||
*
|
|
||||||
* Target selection: ert.tlc
|
|
||||||
* Embedded hardware selection: ARM Compatible->ARM Cortex
|
|
||||||
* Emulation hardware selection:
|
|
||||||
* Differs from embedded hardware (MATLAB Host)
|
|
||||||
* Code generation objectives:
|
|
||||||
* 1. Execution efficiency
|
|
||||||
* 2. RAM efficiency
|
|
||||||
* Validation result: Not run
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "BLDC_controller.h"
|
|
||||||
#ifndef UCHAR_MAX
|
|
||||||
#include <limits.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if ( UCHAR_MAX != (0xFFU) ) || ( SCHAR_MAX != (0x7F) )
|
|
||||||
#error Code was generated for compiler with different sized uchar/char. \
|
|
||||||
Consider adjusting Test hardware word size settings on the \
|
|
||||||
Hardware Implementation pane to match your compiler word sizes as \
|
|
||||||
defined in limits.h of the compiler. Alternatively, you can \
|
|
||||||
select the Test hardware is the same as production hardware option and \
|
|
||||||
select the Enable portable word sizes option on the Code Generation > \
|
|
||||||
Verification pane for ERT based targets, which will disable the \
|
|
||||||
preprocessor word size checks.
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if ( USHRT_MAX != (0xFFFFU) ) || ( SHRT_MAX != (0x7FFF) )
|
|
||||||
#error Code was generated for compiler with different sized ushort/short. \
|
|
||||||
Consider adjusting Test hardware word size settings on the \
|
|
||||||
Hardware Implementation pane to match your compiler word sizes as \
|
|
||||||
defined in limits.h of the compiler. Alternatively, you can \
|
|
||||||
select the Test hardware is the same as production hardware option and \
|
|
||||||
select the Enable portable word sizes option on the Code Generation > \
|
|
||||||
Verification pane for ERT based targets, which will disable the \
|
|
||||||
preprocessor word size checks.
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if ( UINT_MAX != (0xFFFFFFFFU) ) || ( INT_MAX != (0x7FFFFFFF) )
|
|
||||||
#error Code was generated for compiler with different sized uint/int. \
|
|
||||||
Consider adjusting Test hardware word size settings on the \
|
|
||||||
Hardware Implementation pane to match your compiler word sizes as \
|
|
||||||
defined in limits.h of the compiler. Alternatively, you can \
|
|
||||||
select the Test hardware is the same as production hardware option and \
|
|
||||||
select the Enable portable word sizes option on the Code Generation > \
|
|
||||||
Verification pane for ERT based targets, which will disable the \
|
|
||||||
preprocessor word size checks.
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if ( ULONG_MAX != (0xFFFFFFFFU) ) || ( LONG_MAX != (0x7FFFFFFF) )
|
|
||||||
#error Code was generated for compiler with different sized ulong/long. \
|
|
||||||
Consider adjusting Test hardware word size settings on the \
|
|
||||||
Hardware Implementation pane to match your compiler word sizes as \
|
|
||||||
defined in limits.h of the compiler. Alternatively, you can \
|
|
||||||
select the Test hardware is the same as production hardware option and \
|
|
||||||
select the Enable portable word sizes option on the Code Generation > \
|
|
||||||
Verification pane for ERT based targets, which will disable the \
|
|
||||||
preprocessor word size checks.
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if 0
|
|
||||||
|
|
||||||
/* Skip this size verification because of preprocessor limitation */
|
|
||||||
#if ( ULLONG_MAX != (0xFFFFFFFFFFFFFFFFULL) ) || ( LLONG_MAX != (0x7FFFFFFFFFFFFFFFLL) )
|
|
||||||
#error Code was generated for compiler with different sized ulong_long/long_long. \
|
|
||||||
Consider adjusting Test hardware word size settings on the \
|
|
||||||
Hardware Implementation pane to match your compiler word sizes as \
|
|
||||||
defined in limits.h of the compiler. Alternatively, you can \
|
|
||||||
select the Test hardware is the same as production hardware option and \
|
|
||||||
select the Enable portable word sizes option on the Code Generation > \
|
|
||||||
Verification pane for ERT based targets, which will disable the \
|
|
||||||
preprocessor word size checks.
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
uint8_T plook_u8s32u32n31_evenc_s(int32_T u, int32_T bp0, uint32_T bpSpace,
|
|
||||||
uint32_T maxIndex, uint32_T *fraction);
|
|
||||||
int16_T intrp1d_s16s32s32u8u32n31l_s(uint8_T bpIndex, uint32_T frac, const
|
|
||||||
int16_T table[]);
|
|
||||||
int32_T div_nde_s32_floor(int32_T numerator, int32_T denominator);
|
|
||||||
uint8_T plook_u8s32u32n31_evenc_s(int32_T u, int32_T bp0, uint32_T bpSpace,
|
|
||||||
uint32_T maxIndex, uint32_T *fraction)
|
|
||||||
{
|
|
||||||
uint8_T bpIndex;
|
|
||||||
uint32_T uAdjust;
|
|
||||||
uint32_T fbpIndex;
|
|
||||||
|
|
||||||
/* Prelookup - Index and Fraction
|
|
||||||
Index Search method: 'even'
|
|
||||||
Extrapolation method: 'Clip'
|
|
||||||
Use previous index: 'off'
|
|
||||||
Use last breakpoint for index at or above upper limit: 'off'
|
|
||||||
Remove protection against out-of-range input in generated code: 'off'
|
|
||||||
Rounding mode: 'simplest'
|
|
||||||
*/
|
|
||||||
if (u <= bp0) {
|
|
||||||
bpIndex = 0U;
|
|
||||||
*fraction = 0U;
|
|
||||||
} else {
|
|
||||||
uAdjust = (uint32_T)u - bp0;
|
|
||||||
fbpIndex = uAdjust / bpSpace;
|
|
||||||
if (fbpIndex < maxIndex) {
|
|
||||||
bpIndex = (uint8_T)fbpIndex;
|
|
||||||
*fraction = (uint32_T)(((uint64_T)(uAdjust - bpIndex * bpSpace) << 31) /
|
|
||||||
bpSpace);
|
|
||||||
} else {
|
|
||||||
bpIndex = (uint8_T)(maxIndex - 1U);
|
|
||||||
*fraction = 2147483648U;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return bpIndex;
|
|
||||||
}
|
|
||||||
|
|
||||||
int16_T intrp1d_s16s32s32u8u32n31l_s(uint8_T bpIndex, uint32_T frac, const
|
|
||||||
int16_T table[])
|
|
||||||
{
|
|
||||||
uint32_T offset_0d;
|
|
||||||
|
|
||||||
/* Interpolation 1-D
|
|
||||||
Interpolation method: 'Linear'
|
|
||||||
Use last breakpoint for index at or above upper limit: 'off'
|
|
||||||
Rounding mode: 'simplest'
|
|
||||||
Overflow mode: 'wrapping'
|
|
||||||
*/
|
|
||||||
offset_0d = bpIndex;
|
|
||||||
return (int16_T)((int16_T)(((int64_T)(table[offset_0d + 1U] - table[offset_0d])
|
|
||||||
* frac) >> 31) + table[offset_0d]);
|
|
||||||
}
|
|
||||||
|
|
||||||
int32_T div_nde_s32_floor(int32_T numerator, int32_T denominator)
|
|
||||||
{
|
|
||||||
return (((numerator < 0) != (denominator < 0)) && (numerator % denominator !=
|
|
||||||
0) ? -1 : 0) + numerator / denominator;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Model step function */
|
|
||||||
void BLDC_controller_step(RT_MODEL *const rtM)
|
|
||||||
{
|
|
||||||
P *rtP = ((P *) rtM->defaultParam);
|
|
||||||
DW *rtDW = ((DW *) rtM->dwork);
|
|
||||||
ExtU *rtU = (ExtU *) rtM->inputs;
|
|
||||||
ExtY *rtY = (ExtY *) rtM->outputs;
|
|
||||||
uint8_T rtb_Sum;
|
|
||||||
int32_T rtb_Abs1;
|
|
||||||
uint8_T rtb_BitwiseOperator;
|
|
||||||
int32_T rtb_Sum2;
|
|
||||||
int16_T rtb_Abs2;
|
|
||||||
int16_T rtb_Sum1_a;
|
|
||||||
int32_T rtb_Abs5;
|
|
||||||
int8_T rtAction;
|
|
||||||
int8_T rtb_Sum2_h;
|
|
||||||
uint32_T rtb_r_phaAdvDC_XA_o2;
|
|
||||||
int32_T rtb_Switch1_idx_1;
|
|
||||||
|
|
||||||
/* Outputs for Atomic SubSystem: '<Root>/BLDC_controller' */
|
|
||||||
/* Sum: '<S12>/Sum' incorporates:
|
|
||||||
* Gain: '<S12>/g_Ha'
|
|
||||||
* Gain: '<S12>/g_Hb'
|
|
||||||
* Inport: '<Root>/b_hallA '
|
|
||||||
* Inport: '<Root>/b_hallB'
|
|
||||||
* Inport: '<Root>/b_hallC'
|
|
||||||
*/
|
|
||||||
rtb_Sum = (uint8_T)((uint32_T)(uint8_T)((uint32_T)(uint8_T)(rtU->b_hallA << 2)
|
|
||||||
+ (uint8_T)(rtU->b_hallB << 1)) + rtU->b_hallC);
|
|
||||||
|
|
||||||
/* Abs: '<S2>/Abs1' incorporates:
|
|
||||||
* Inport: '<Root>/r_DC'
|
|
||||||
*/
|
|
||||||
if (rtU->r_DC < 0) {
|
|
||||||
rtb_Abs1 = -rtU->r_DC;
|
|
||||||
} else {
|
|
||||||
rtb_Abs1 = rtU->r_DC;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* End of Abs: '<S2>/Abs1' */
|
|
||||||
|
|
||||||
/* S-Function (sfix_bitop): '<S11>/Bitwise Operator' incorporates:
|
|
||||||
* Inport: '<Root>/b_hallA '
|
|
||||||
* Inport: '<Root>/b_hallB'
|
|
||||||
* Inport: '<Root>/b_hallC'
|
|
||||||
* UnitDelay: '<S11>/UnitDelay'
|
|
||||||
* UnitDelay: '<S11>/UnitDelay1'
|
|
||||||
* UnitDelay: '<S11>/UnitDelay2'
|
|
||||||
*/
|
|
||||||
rtb_BitwiseOperator = (uint8_T)(rtU->b_hallA ^ rtU->b_hallB ^ rtU->b_hallC ^
|
|
||||||
rtDW->UnitDelay_DSTATE ^ rtDW->UnitDelay1_DSTATE_i ^
|
|
||||||
rtDW->UnitDelay2_DSTATE_h);
|
|
||||||
|
|
||||||
/* If: '<S14>/If1' incorporates:
|
|
||||||
* Constant: '<S14>/Constant6'
|
|
||||||
* Constant: '<S17>/Constant1'
|
|
||||||
* Constant: '<S17>/Constant23'
|
|
||||||
* If: '<S7>/If2'
|
|
||||||
* Inport: '<S15>/z_counterRawPrev'
|
|
||||||
* RelationalOperator: '<S17>/Relational Operator1'
|
|
||||||
* Sum: '<S14>/Sum1'
|
|
||||||
* Switch: '<S17>/Switch1'
|
|
||||||
* Switch: '<S17>/Switch2'
|
|
||||||
* UnitDelay: '<S14>/UnitDelay1'
|
|
||||||
* UnitDelay: '<S17>/UnitDelay1'
|
|
||||||
*/
|
|
||||||
if (rtb_BitwiseOperator != 0) {
|
|
||||||
/* Outputs for IfAction SubSystem: '<S7>/F01_03_Direction_Detection' incorporates:
|
|
||||||
* ActionPort: '<S13>/Action Port'
|
|
||||||
*/
|
|
||||||
/* UnitDelay: '<S13>/UnitDelay1' */
|
|
||||||
rtDW->UnitDelay1 = rtDW->Switch2;
|
|
||||||
|
|
||||||
/* Sum: '<S13>/Sum2' incorporates:
|
|
||||||
* Constant: '<S12>/vec_hallToPos'
|
|
||||||
* Selector: '<S12>/Selector'
|
|
||||||
* UnitDelay: '<S13>/UnitDelay2'
|
|
||||||
*/
|
|
||||||
rtb_Sum2_h = (int8_T)(rtConstP.vec_hallToPos_Value[rtb_Sum] -
|
|
||||||
rtDW->UnitDelay2_DSTATE_i);
|
|
||||||
|
|
||||||
/* Switch: '<S13>/Switch2' incorporates:
|
|
||||||
* Constant: '<S13>/Constant20'
|
|
||||||
* Constant: '<S13>/Constant23'
|
|
||||||
* Constant: '<S13>/Constant24'
|
|
||||||
* Constant: '<S13>/Constant8'
|
|
||||||
* Logic: '<S13>/Logical Operator3'
|
|
||||||
* RelationalOperator: '<S13>/Relational Operator1'
|
|
||||||
* RelationalOperator: '<S13>/Relational Operator6'
|
|
||||||
*/
|
|
||||||
if ((rtb_Sum2_h == 1) || (rtb_Sum2_h == -5)) {
|
|
||||||
rtDW->Switch2 = 1;
|
|
||||||
} else {
|
|
||||||
rtDW->Switch2 = -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* End of Switch: '<S13>/Switch2' */
|
|
||||||
|
|
||||||
/* Update for UnitDelay: '<S13>/UnitDelay2' incorporates:
|
|
||||||
* Constant: '<S12>/vec_hallToPos'
|
|
||||||
* Selector: '<S12>/Selector'
|
|
||||||
*/
|
|
||||||
rtDW->UnitDelay2_DSTATE_i = rtConstP.vec_hallToPos_Value[rtb_Sum];
|
|
||||||
|
|
||||||
/* End of Outputs for SubSystem: '<S7>/F01_03_Direction_Detection' */
|
|
||||||
rtb_Abs2 = 1;
|
|
||||||
|
|
||||||
/* Outputs for IfAction SubSystem: '<S14>/Counter_Hold_and_Error_Calculation' incorporates:
|
|
||||||
* ActionPort: '<S15>/Action Port'
|
|
||||||
*/
|
|
||||||
rtDW->z_counterRawPrev = rtDW->UnitDelay1_DSTATE_c;
|
|
||||||
|
|
||||||
/* Sum: '<S15>/Sum4' incorporates:
|
|
||||||
* Constant: '<S14>/Constant6'
|
|
||||||
* Constant: '<S17>/Constant23'
|
|
||||||
* Inport: '<S15>/z_counterRawPrev'
|
|
||||||
* Sum: '<S14>/Sum1'
|
|
||||||
* UnitDelay: '<S14>/UnitDelay1'
|
|
||||||
* UnitDelay: '<S15>/z_counter2'
|
|
||||||
*/
|
|
||||||
rtDW->Sum4 = (int16_T)(rtDW->z_counterRawPrev - rtDW->z_counter2_DSTATE);
|
|
||||||
|
|
||||||
/* Update for UnitDelay: '<S15>/z_counter2' */
|
|
||||||
rtDW->z_counter2_DSTATE = rtDW->z_counterRawPrev;
|
|
||||||
|
|
||||||
/* End of Outputs for SubSystem: '<S14>/Counter_Hold_and_Error_Calculation' */
|
|
||||||
} else {
|
|
||||||
if (rtDW->UnitDelay1_DSTATE < rtP->z_maxCntRst) {
|
|
||||||
/* Switch: '<S17>/Switch2' incorporates:
|
|
||||||
* UnitDelay: '<S17>/UnitDelay1'
|
|
||||||
*/
|
|
||||||
rtb_Abs2 = rtDW->UnitDelay1_DSTATE;
|
|
||||||
} else {
|
|
||||||
/* Switch: '<S17>/Switch2' incorporates:
|
|
||||||
* Constant: '<S17>/Constant1'
|
|
||||||
*/
|
|
||||||
rtb_Abs2 = rtP->z_maxCntRst;
|
|
||||||
}
|
|
||||||
|
|
||||||
rtb_Abs2++;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* End of If: '<S14>/If1' */
|
|
||||||
|
|
||||||
/* Sum: '<S14>/Sum1' */
|
|
||||||
rtb_Sum1_a = rtb_Abs2;
|
|
||||||
|
|
||||||
/* Switch: '<S16>/Switch1' incorporates:
|
|
||||||
* Constant: '<S16>/Constant1'
|
|
||||||
* Constant: '<S16>/cf_spdCoef'
|
|
||||||
* Constant: '<S16>/z_maxCntRst'
|
|
||||||
* Logic: '<S16>/Logical Operator1'
|
|
||||||
* Product: '<S16>/Divide4'
|
|
||||||
* RelationalOperator: '<S16>/Relational Operator2'
|
|
||||||
* RelationalOperator: '<S16>/Relational Operator5'
|
|
||||||
* Sum: '<S14>/Sum1'
|
|
||||||
*/
|
|
||||||
if ((rtb_Abs2 > rtP->z_maxCntRst) || (rtDW->Switch2 != rtDW->UnitDelay1)) {
|
|
||||||
rtb_Sum2 = 0;
|
|
||||||
} else {
|
|
||||||
rtb_Sum2 = rtP->cf_speedCoef * rtDW->Switch2 / rtDW->z_counterRawPrev;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* End of Switch: '<S16>/Switch1' */
|
|
||||||
|
|
||||||
/* Product: '<S16>/Divide2' incorporates:
|
|
||||||
* Constant: '<S16>/Constant2'
|
|
||||||
* Constant: '<S16>/Constant3'
|
|
||||||
* Constant: '<S16>/cf_speedFilt'
|
|
||||||
* Product: '<S16>/Divide1'
|
|
||||||
* Product: '<S16>/Divide3'
|
|
||||||
* Sum: '<S16>/Sum1'
|
|
||||||
* Sum: '<S16>/Sum2'
|
|
||||||
* UnitDelay: '<S16>/UnitDelay2'
|
|
||||||
*/
|
|
||||||
rtb_Sum2 = ((100 - rtP->cf_speedFilt) * rtDW->UnitDelay2_DSTATE + rtb_Sum2 *
|
|
||||||
rtP->cf_speedFilt) / 100;
|
|
||||||
|
|
||||||
/* Abs: '<S16>/Abs5' */
|
|
||||||
if (rtb_Sum2 < 0) {
|
|
||||||
rtb_Abs5 = -rtb_Sum2;
|
|
||||||
} else {
|
|
||||||
rtb_Abs5 = rtb_Sum2;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* End of Abs: '<S16>/Abs5' */
|
|
||||||
|
|
||||||
/* Relay: '<S14>/n_commDeacv' */
|
|
||||||
if (rtb_Abs5 >= rtP->n_commDeacvHi) {
|
|
||||||
rtDW->n_commDeacv_Mode = true;
|
|
||||||
} else {
|
|
||||||
if (rtb_Abs5 <= rtP->n_commAcvLo) {
|
|
||||||
rtDW->n_commDeacv_Mode = false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Abs: '<S14>/Abs2' */
|
|
||||||
if (rtDW->Sum4 < 0) {
|
|
||||||
rtb_Abs2 = (int16_T)-rtDW->Sum4;
|
|
||||||
} else {
|
|
||||||
rtb_Abs2 = rtDW->Sum4;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* End of Abs: '<S14>/Abs2' */
|
|
||||||
|
|
||||||
/* Relay: '<S14>/dz_counter' */
|
|
||||||
if (rtb_Abs2 >= rtP->dz_counterHi) {
|
|
||||||
rtDW->dz_counter_Mode = true;
|
|
||||||
} else {
|
|
||||||
if (rtb_Abs2 <= rtP->dz_counterLo) {
|
|
||||||
rtDW->dz_counter_Mode = false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* If: '<S2>/If1' incorporates:
|
|
||||||
* Constant: '<S7>/z_ctrlTypSel1'
|
|
||||||
*/
|
|
||||||
rtb_Sum2_h = rtDW->If1_ActiveSubsystem;
|
|
||||||
rtAction = -1;
|
|
||||||
if (rtP->z_ctrlTypSel != 0) {
|
|
||||||
rtAction = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
rtDW->If1_ActiveSubsystem = rtAction;
|
|
||||||
if ((rtb_Sum2_h != rtAction) && (rtb_Sum2_h == 0)) {
|
|
||||||
/* Disable for Outport: '<S8>/a_elecAngleAdv' */
|
|
||||||
rtDW->Switch_PhaAdv = 0;
|
|
||||||
|
|
||||||
/* Disable for Outport: '<Root>/a_elecAngle' incorporates:
|
|
||||||
* Outport: '<S8>/a_elecAngle'
|
|
||||||
*/
|
|
||||||
rtY->a_elecAngle = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (rtAction == 0) {
|
|
||||||
/* Outputs for IfAction SubSystem: '<S2>/F02_Electrical_Angle_Calculation' incorporates:
|
|
||||||
* ActionPort: '<S8>/Action Port'
|
|
||||||
*/
|
|
||||||
/* Switch: '<S8>/Switch3' incorporates:
|
|
||||||
* Constant: '<S12>/vec_hallToPos'
|
|
||||||
* Constant: '<S8>/Constant16'
|
|
||||||
* Gain: '<S12>/g_Ha'
|
|
||||||
* Gain: '<S12>/g_Hb'
|
|
||||||
* Inport: '<Root>/b_hallA '
|
|
||||||
* Inport: '<Root>/b_hallB'
|
|
||||||
* Inport: '<Root>/b_hallC'
|
|
||||||
* RelationalOperator: '<S8>/Relational Operator7'
|
|
||||||
* Selector: '<S12>/Selector'
|
|
||||||
* Sum: '<S12>/Sum'
|
|
||||||
* Sum: '<S8>/Sum1'
|
|
||||||
*/
|
|
||||||
if (rtDW->Switch2 == 1) {
|
|
||||||
rtb_Sum2_h = rtConstP.vec_hallToPos_Value[rtb_Sum];
|
|
||||||
} else {
|
|
||||||
rtb_Sum2_h = (int8_T)(rtConstP.vec_hallToPos_Value[(uint8_T)((uint32_T)
|
|
||||||
(uint8_T)((uint32_T)(uint8_T)(rtU->b_hallA << 2) + (uint8_T)
|
|
||||||
(rtU->b_hallB << 1)) + rtU->b_hallC)] + 1);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* End of Switch: '<S8>/Switch3' */
|
|
||||||
|
|
||||||
/* Outport: '<Root>/a_elecAngle' incorporates:
|
|
||||||
* Constant: '<S8>/a_elecAngle1'
|
|
||||||
* Product: '<S8>/Divide4'
|
|
||||||
* Product: '<S8>/Divide5'
|
|
||||||
* Product: '<S8>/Product6'
|
|
||||||
* Sum: '<S8>/Sum2'
|
|
||||||
*/
|
|
||||||
rtY->a_elecAngle = 60 * rtb_Sum1_a / rtDW->z_counterRawPrev * rtDW->Switch2
|
|
||||||
+ rtb_Sum2_h * 60;
|
|
||||||
|
|
||||||
/* Switch: '<S8>/Switch_PhaAdv' incorporates:
|
|
||||||
* Constant: '<S8>/a_elecPeriod1'
|
|
||||||
* Constant: '<S8>/n_motPhaAdvEna'
|
|
||||||
* Logic: '<S8>/Logical Operator2'
|
|
||||||
* Outport: '<Root>/a_elecAngle'
|
|
||||||
* RelationalOperator: '<S8>/Relational Operator4'
|
|
||||||
*/
|
|
||||||
if (rtP->b_phaAdvEna && (rtb_Abs5 > rtP->n_motPhaAdvEna)) {
|
|
||||||
/* PreLookup: '<S8>/r_phaAdvDC_XA' */
|
|
||||||
rtb_BitwiseOperator = plook_u8s32u32n31_evenc_s(rtb_Abs1,
|
|
||||||
rtP->r_phaAdvDC_XA[0], (uint32_T)rtP->r_phaAdvDC_XA[1] -
|
|
||||||
rtP->r_phaAdvDC_XA[0], 10U, &rtb_r_phaAdvDC_XA_o2);
|
|
||||||
|
|
||||||
/* Interpolation_n-D: '<S8>/a_phaAdv_M2' */
|
|
||||||
rtb_Abs2 = intrp1d_s16s32s32u8u32n31l_s(rtb_BitwiseOperator,
|
|
||||||
rtb_r_phaAdvDC_XA_o2, rtP->a_phaAdv_M1);
|
|
||||||
|
|
||||||
/* Sum: '<S8>/Sum3' incorporates:
|
|
||||||
* Outport: '<Root>/a_elecAngle'
|
|
||||||
* Product: '<S8>/Product2'
|
|
||||||
*/
|
|
||||||
rtb_Abs5 = (int16_T)(rtb_Abs2 * rtDW->Switch2) + rtY->a_elecAngle;
|
|
||||||
|
|
||||||
/* Math: '<S8>/Math Function' */
|
|
||||||
rtDW->Switch_PhaAdv = rtb_Abs5 - div_nde_s32_floor(rtb_Abs5, 360) * 360;
|
|
||||||
} else {
|
|
||||||
rtDW->Switch_PhaAdv = rtY->a_elecAngle;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* End of Switch: '<S8>/Switch_PhaAdv' */
|
|
||||||
/* End of Outputs for SubSystem: '<S2>/F02_Electrical_Angle_Calculation' */
|
|
||||||
}
|
|
||||||
|
|
||||||
/* End of If: '<S2>/If1' */
|
|
||||||
|
|
||||||
/* SwitchCase: '<S9>/Switch Case' incorporates:
|
|
||||||
* Constant: '<S7>/z_ctrlTypSel1'
|
|
||||||
*/
|
|
||||||
switch (rtP->z_ctrlTypSel) {
|
|
||||||
case 1:
|
|
||||||
/* Outputs for IfAction SubSystem: '<S9>/F03_01_Pure_Trapezoidal_Method' incorporates:
|
|
||||||
* ActionPort: '<S18>/Action Port'
|
|
||||||
*/
|
|
||||||
/* PreLookup: '<S18>/a_trapElecAngle_XA' */
|
|
||||||
rtb_BitwiseOperator = plook_u8s32u32n31_evenc_s(rtDW->Switch_PhaAdv, 0, 60U,
|
|
||||||
6U, &rtb_r_phaAdvDC_XA_o2);
|
|
||||||
|
|
||||||
/* Interpolation_n-D: '<S18>/r_trapPhaA_M1' */
|
|
||||||
rtDW->Merge = intrp1d_s16s32s32u8u32n31l_s(rtb_BitwiseOperator,
|
|
||||||
rtb_r_phaAdvDC_XA_o2, rtConstP.r_trapPhaA_M1_Table);
|
|
||||||
|
|
||||||
/* Interpolation_n-D: '<S18>/r_trapPhaB_M1' */
|
|
||||||
rtDW->Merge1 = intrp1d_s16s32s32u8u32n31l_s(rtb_BitwiseOperator,
|
|
||||||
rtb_r_phaAdvDC_XA_o2, rtConstP.r_trapPhaB_M1_Table);
|
|
||||||
|
|
||||||
/* Interpolation_n-D: '<S18>/r_trapPhaC_M1' */
|
|
||||||
rtDW->Merge2 = intrp1d_s16s32s32u8u32n31l_s(rtb_BitwiseOperator,
|
|
||||||
rtb_r_phaAdvDC_XA_o2, rtConstP.r_trapPhaC_M1_Table);
|
|
||||||
|
|
||||||
/* End of Outputs for SubSystem: '<S9>/F03_01_Pure_Trapezoidal_Method' */
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 2:
|
|
||||||
/* Outputs for IfAction SubSystem: '<S9>/F03_02_Sinusoidal_Method' incorporates:
|
|
||||||
* ActionPort: '<S19>/Action Port'
|
|
||||||
*/
|
|
||||||
/* PreLookup: '<S19>/a_sinElecAngle_XA' */
|
|
||||||
rtb_BitwiseOperator = plook_u8s32u32n31_evenc_s(rtDW->Switch_PhaAdv, 0, 10U,
|
|
||||||
36U, &rtb_r_phaAdvDC_XA_o2);
|
|
||||||
|
|
||||||
/* Interpolation_n-D: '<S19>/r_sinPhaA_M1' */
|
|
||||||
rtDW->Merge = intrp1d_s16s32s32u8u32n31l_s(rtb_BitwiseOperator,
|
|
||||||
rtb_r_phaAdvDC_XA_o2, rtConstP.r_sinPhaA_M1_Table);
|
|
||||||
|
|
||||||
/* Interpolation_n-D: '<S19>/r_sinPhaB_M1' */
|
|
||||||
rtDW->Merge1 = intrp1d_s16s32s32u8u32n31l_s(rtb_BitwiseOperator,
|
|
||||||
rtb_r_phaAdvDC_XA_o2, rtConstP.r_sinPhaB_M1_Table);
|
|
||||||
|
|
||||||
/* Interpolation_n-D: '<S19>/r_sinPhaC_M1' */
|
|
||||||
rtDW->Merge2 = intrp1d_s16s32s32u8u32n31l_s(rtb_BitwiseOperator,
|
|
||||||
rtb_r_phaAdvDC_XA_o2, rtConstP.r_sinPhaC_M1_Table);
|
|
||||||
|
|
||||||
/* End of Outputs for SubSystem: '<S9>/F03_02_Sinusoidal_Method' */
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 3:
|
|
||||||
/* Outputs for IfAction SubSystem: '<S9>/F03_03_Sinusoidal3rd_Method' incorporates:
|
|
||||||
* ActionPort: '<S20>/Action Port'
|
|
||||||
*/
|
|
||||||
/* PreLookup: '<S20>/a_sinElecAngle_XA' */
|
|
||||||
rtb_BitwiseOperator = plook_u8s32u32n31_evenc_s(rtDW->Switch_PhaAdv, 0, 10U,
|
|
||||||
36U, &rtb_r_phaAdvDC_XA_o2);
|
|
||||||
|
|
||||||
/* Interpolation_n-D: '<S20>/r_sin3PhaA_M1' */
|
|
||||||
rtDW->Merge = intrp1d_s16s32s32u8u32n31l_s(rtb_BitwiseOperator,
|
|
||||||
rtb_r_phaAdvDC_XA_o2, rtConstP.r_sin3PhaA_M1_Table);
|
|
||||||
|
|
||||||
/* Interpolation_n-D: '<S20>/r_sin3PhaB_M1' */
|
|
||||||
rtDW->Merge1 = intrp1d_s16s32s32u8u32n31l_s(rtb_BitwiseOperator,
|
|
||||||
rtb_r_phaAdvDC_XA_o2, rtConstP.r_sin3PhaB_M1_Table);
|
|
||||||
|
|
||||||
/* Interpolation_n-D: '<S20>/r_sin3PhaC_M1' */
|
|
||||||
rtDW->Merge2 = intrp1d_s16s32s32u8u32n31l_s(rtb_BitwiseOperator,
|
|
||||||
rtb_r_phaAdvDC_XA_o2, rtConstP.r_sin3PhaC_M1_Table);
|
|
||||||
|
|
||||||
/* End of Outputs for SubSystem: '<S9>/F03_03_Sinusoidal3rd_Method' */
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* End of SwitchCase: '<S9>/Switch Case' */
|
|
||||||
|
|
||||||
/* Signum: '<S14>/Sign' */
|
|
||||||
if (rtDW->Switch2 < 0) {
|
|
||||||
rtb_Sum2_h = -1;
|
|
||||||
} else {
|
|
||||||
rtb_Sum2_h = (int8_T)(rtDW->Switch2 > 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* End of Signum: '<S14>/Sign' */
|
|
||||||
|
|
||||||
/* Signum: '<S14>/Sign1' incorporates:
|
|
||||||
* Inport: '<Root>/r_DC'
|
|
||||||
*/
|
|
||||||
if (rtU->r_DC < 0) {
|
|
||||||
rtb_Abs5 = -1;
|
|
||||||
} else {
|
|
||||||
rtb_Abs5 = (rtU->r_DC > 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* End of Signum: '<S14>/Sign1' */
|
|
||||||
|
|
||||||
/* Switch: '<S10>/Switch1' incorporates:
|
|
||||||
* Constant: '<S12>/vec_hallToPos'
|
|
||||||
* Constant: '<S14>/CTRL_COMM'
|
|
||||||
* Constant: '<S14>/r_commDCDeacv'
|
|
||||||
* Constant: '<S7>/z_ctrlTypSel1'
|
|
||||||
* Inport: '<Root>/r_DC'
|
|
||||||
* Logic: '<S14>/Logical Operator2'
|
|
||||||
* LookupNDDirect: '<S10>/z_commutMap_M1'
|
|
||||||
* Product: '<S10>/Divide2'
|
|
||||||
* Product: '<S10>/Divide4'
|
|
||||||
* RelationalOperator: '<S14>/Relational Operator1'
|
|
||||||
* RelationalOperator: '<S14>/Relational Operator3'
|
|
||||||
* RelationalOperator: '<S14>/Relational Operator4'
|
|
||||||
* Relay: '<S14>/dz_counter'
|
|
||||||
* Relay: '<S14>/n_commDeacv'
|
|
||||||
* Selector: '<S12>/Selector'
|
|
||||||
*
|
|
||||||
* About '<S10>/z_commutMap_M1':
|
|
||||||
* 2-dimensional Direct Look-Up returning a Column
|
|
||||||
*/
|
|
||||||
if ((rtP->z_ctrlTypSel != 0) && (rtb_Abs1 > rtP->r_commDCDeacv) && (rtb_Sum2_h
|
|
||||||
== rtb_Abs5) && rtDW->n_commDeacv_Mode && (!rtDW->dz_counter_Mode)) {
|
|
||||||
rtb_Abs5 = rtU->r_DC * rtDW->Merge;
|
|
||||||
rtb_Switch1_idx_1 = rtU->r_DC * rtDW->Merge1;
|
|
||||||
rtb_Abs1 = rtU->r_DC * rtDW->Merge2;
|
|
||||||
} else {
|
|
||||||
if (rtConstP.vec_hallToPos_Value[rtb_Sum] > 5) {
|
|
||||||
/* LookupNDDirect: '<S10>/z_commutMap_M1'
|
|
||||||
*
|
|
||||||
* About '<S10>/z_commutMap_M1':
|
|
||||||
* 2-dimensional Direct Look-Up returning a Column
|
|
||||||
*/
|
|
||||||
rtb_Sum2_h = 5;
|
|
||||||
} else if (rtConstP.vec_hallToPos_Value[rtb_Sum] < 0) {
|
|
||||||
/* LookupNDDirect: '<S10>/z_commutMap_M1'
|
|
||||||
*
|
|
||||||
* About '<S10>/z_commutMap_M1':
|
|
||||||
* 2-dimensional Direct Look-Up returning a Column
|
|
||||||
*/
|
|
||||||
rtb_Sum2_h = 0;
|
|
||||||
} else {
|
|
||||||
/* LookupNDDirect: '<S10>/z_commutMap_M1' incorporates:
|
|
||||||
* Constant: '<S12>/vec_hallToPos'
|
|
||||||
* Selector: '<S12>/Selector'
|
|
||||||
*
|
|
||||||
* About '<S10>/z_commutMap_M1':
|
|
||||||
* 2-dimensional Direct Look-Up returning a Column
|
|
||||||
*/
|
|
||||||
rtb_Sum2_h = rtConstP.vec_hallToPos_Value[rtb_Sum];
|
|
||||||
}
|
|
||||||
|
|
||||||
/* LookupNDDirect: '<S10>/z_commutMap_M1' incorporates:
|
|
||||||
* Constant: '<S12>/vec_hallToPos'
|
|
||||||
* Selector: '<S12>/Selector'
|
|
||||||
*
|
|
||||||
* About '<S10>/z_commutMap_M1':
|
|
||||||
* 2-dimensional Direct Look-Up returning a Column
|
|
||||||
*/
|
|
||||||
rtb_Abs1 = rtb_Sum2_h * 3;
|
|
||||||
rtb_Abs5 = rtU->r_DC * rtConstP.z_commutMap_M1_table[rtb_Abs1];
|
|
||||||
rtb_Switch1_idx_1 = rtConstP.z_commutMap_M1_table[1 + rtb_Abs1] * rtU->r_DC;
|
|
||||||
rtb_Abs1 = rtConstP.z_commutMap_M1_table[2 + rtb_Abs1] * rtU->r_DC;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* End of Switch: '<S10>/Switch1' */
|
|
||||||
|
|
||||||
/* Outport: '<Root>/DC_phaA' incorporates:
|
|
||||||
* Constant: '<S10>/Constant1'
|
|
||||||
* Product: '<S10>/Divide1'
|
|
||||||
*/
|
|
||||||
rtY->DC_phaA = rtb_Abs5 / 1000;
|
|
||||||
|
|
||||||
/* Outport: '<Root>/DC_phaB' incorporates:
|
|
||||||
* Constant: '<S10>/Constant1'
|
|
||||||
* Product: '<S10>/Divide1'
|
|
||||||
*/
|
|
||||||
rtY->DC_phaB = rtb_Switch1_idx_1 / 1000;
|
|
||||||
|
|
||||||
/* Update for UnitDelay: '<S11>/UnitDelay' incorporates:
|
|
||||||
* Inport: '<Root>/b_hallA '
|
|
||||||
*/
|
|
||||||
rtDW->UnitDelay_DSTATE = rtU->b_hallA;
|
|
||||||
|
|
||||||
/* Update for UnitDelay: '<S11>/UnitDelay1' incorporates:
|
|
||||||
* Inport: '<Root>/b_hallB'
|
|
||||||
*/
|
|
||||||
rtDW->UnitDelay1_DSTATE_i = rtU->b_hallB;
|
|
||||||
|
|
||||||
/* Update for UnitDelay: '<S11>/UnitDelay2' incorporates:
|
|
||||||
* Inport: '<Root>/b_hallC'
|
|
||||||
*/
|
|
||||||
rtDW->UnitDelay2_DSTATE_h = rtU->b_hallC;
|
|
||||||
|
|
||||||
/* Update for UnitDelay: '<S17>/UnitDelay1' */
|
|
||||||
rtDW->UnitDelay1_DSTATE = rtb_Sum1_a;
|
|
||||||
|
|
||||||
/* Update for UnitDelay: '<S14>/UnitDelay1' */
|
|
||||||
rtDW->UnitDelay1_DSTATE_c = rtb_Sum1_a;
|
|
||||||
|
|
||||||
/* Update for UnitDelay: '<S16>/UnitDelay2' */
|
|
||||||
rtDW->UnitDelay2_DSTATE = rtb_Sum2;
|
|
||||||
|
|
||||||
/* Outport: '<Root>/DC_phaC' incorporates:
|
|
||||||
* Constant: '<S10>/Constant1'
|
|
||||||
* Product: '<S10>/Divide1'
|
|
||||||
*/
|
|
||||||
rtY->DC_phaC = rtb_Abs1 / 1000;
|
|
||||||
|
|
||||||
/* End of Outputs for SubSystem: '<Root>/BLDC_controller' */
|
|
||||||
|
|
||||||
/* Outport: '<Root>/n_mot' */
|
|
||||||
rtY->n_mot = rtb_Sum2;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Model initialize function */
|
|
||||||
void BLDC_controller_initialize(RT_MODEL *const rtM)
|
|
||||||
{
|
|
||||||
P *rtP = ((P *) rtM->defaultParam);
|
|
||||||
DW *rtDW = ((DW *) rtM->dwork);
|
|
||||||
|
|
||||||
/* Start for Atomic SubSystem: '<Root>/BLDC_controller' */
|
|
||||||
/* Start for If: '<S2>/If1' */
|
|
||||||
rtDW->If1_ActiveSubsystem = -1;
|
|
||||||
|
|
||||||
/* End of Start for SubSystem: '<Root>/BLDC_controller' */
|
|
||||||
|
|
||||||
/* SystemInitialize for Atomic SubSystem: '<Root>/BLDC_controller' */
|
|
||||||
/* InitializeConditions for UnitDelay: '<S17>/UnitDelay1' */
|
|
||||||
rtDW->UnitDelay1_DSTATE = rtP->z_maxCntRst;
|
|
||||||
|
|
||||||
/* SystemInitialize for IfAction SubSystem: '<S14>/Counter_Hold_and_Error_Calculation' */
|
|
||||||
/* InitializeConditions for UnitDelay: '<S15>/z_counter2' */
|
|
||||||
rtDW->z_counter2_DSTATE = rtP->z_maxCntRst;
|
|
||||||
|
|
||||||
/* SystemInitialize for Outport: '<S15>/z_counter' */
|
|
||||||
rtDW->z_counterRawPrev = rtP->z_maxCntRst;
|
|
||||||
|
|
||||||
/* End of SystemInitialize for SubSystem: '<S14>/Counter_Hold_and_Error_Calculation' */
|
|
||||||
/* End of SystemInitialize for SubSystem: '<Root>/BLDC_controller' */
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
* File trailer for generated code.
|
|
||||||
*
|
|
||||||
* [EOF]
|
|
||||||
*/
|
|
@ -1,256 +0,0 @@
|
|||||||
/*
|
|
||||||
* Academic License - for use in teaching, academic research, and meeting
|
|
||||||
* course requirements at degree granting institutions only. Not for
|
|
||||||
* government, commercial, or other organizational use.
|
|
||||||
*
|
|
||||||
* File: BLDC_controller.h
|
|
||||||
*
|
|
||||||
* Code generated for Simulink model 'BLDC_controller'.
|
|
||||||
*
|
|
||||||
* Model version : 1.883
|
|
||||||
* Simulink Coder version : 8.13 (R2017b) 24-Jul-2017
|
|
||||||
* C/C++ source code generated on : Tue Jun 11 21:14:57 2019
|
|
||||||
*
|
|
||||||
* Target selection: ert.tlc
|
|
||||||
* Embedded hardware selection: ARM Compatible->ARM Cortex
|
|
||||||
* Emulation hardware selection:
|
|
||||||
* Differs from embedded hardware (MATLAB Host)
|
|
||||||
* Code generation objectives:
|
|
||||||
* 1. Execution efficiency
|
|
||||||
* 2. RAM efficiency
|
|
||||||
* Validation result: Not run
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef RTW_HEADER_BLDC_controller_h_
|
|
||||||
#define RTW_HEADER_BLDC_controller_h_
|
|
||||||
#include "rtwtypes.h"
|
|
||||||
#ifndef BLDC_controller_COMMON_INCLUDES_
|
|
||||||
# define BLDC_controller_COMMON_INCLUDES_
|
|
||||||
#include "rtwtypes.h"
|
|
||||||
#endif /* BLDC_controller_COMMON_INCLUDES_ */
|
|
||||||
|
|
||||||
/* Macros for accessing real-time model data structure */
|
|
||||||
|
|
||||||
/* Forward declaration for rtModel */
|
|
||||||
typedef struct tag_RTM RT_MODEL;
|
|
||||||
|
|
||||||
/* Block signals and states (auto storage) for system '<Root>' */
|
|
||||||
typedef struct {
|
|
||||||
int32_T Switch_PhaAdv; /* '<S8>/Switch_PhaAdv' */
|
|
||||||
int32_T UnitDelay2_DSTATE; /* '<S16>/UnitDelay2' */
|
|
||||||
int16_T Merge; /* '<S9>/Merge' */
|
|
||||||
int16_T Merge1; /* '<S9>/Merge1' */
|
|
||||||
int16_T Merge2; /* '<S9>/Merge2' */
|
|
||||||
int16_T z_counterRawPrev; /* '<S15>/z_counterRawPrev' */
|
|
||||||
int16_T Sum4; /* '<S15>/Sum4' */
|
|
||||||
int16_T UnitDelay1_DSTATE; /* '<S17>/UnitDelay1' */
|
|
||||||
int16_T UnitDelay1_DSTATE_c; /* '<S14>/UnitDelay1' */
|
|
||||||
int16_T z_counter2_DSTATE; /* '<S15>/z_counter2' */
|
|
||||||
int8_T UnitDelay1; /* '<S13>/UnitDelay1' */
|
|
||||||
int8_T Switch2; /* '<S13>/Switch2' */
|
|
||||||
int8_T UnitDelay2_DSTATE_i; /* '<S13>/UnitDelay2' */
|
|
||||||
int8_T If1_ActiveSubsystem; /* '<S2>/If1' */
|
|
||||||
uint8_T UnitDelay_DSTATE; /* '<S11>/UnitDelay' */
|
|
||||||
uint8_T UnitDelay1_DSTATE_i; /* '<S11>/UnitDelay1' */
|
|
||||||
uint8_T UnitDelay2_DSTATE_h; /* '<S11>/UnitDelay2' */
|
|
||||||
boolean_T n_commDeacv_Mode; /* '<S14>/n_commDeacv' */
|
|
||||||
boolean_T dz_counter_Mode; /* '<S14>/dz_counter' */
|
|
||||||
} DW;
|
|
||||||
|
|
||||||
/* Constant parameters (auto storage) */
|
|
||||||
typedef struct {
|
|
||||||
/* Computed Parameter: r_trapPhaA_M1_Table
|
|
||||||
* Referenced by: '<S18>/r_trapPhaA_M1'
|
|
||||||
*/
|
|
||||||
int16_T r_trapPhaA_M1_Table[7];
|
|
||||||
|
|
||||||
/* Computed Parameter: r_trapPhaB_M1_Table
|
|
||||||
* Referenced by: '<S18>/r_trapPhaB_M1'
|
|
||||||
*/
|
|
||||||
int16_T r_trapPhaB_M1_Table[7];
|
|
||||||
|
|
||||||
/* Computed Parameter: r_trapPhaC_M1_Table
|
|
||||||
* Referenced by: '<S18>/r_trapPhaC_M1'
|
|
||||||
*/
|
|
||||||
int16_T r_trapPhaC_M1_Table[7];
|
|
||||||
|
|
||||||
/* Computed Parameter: r_sinPhaA_M1_Table
|
|
||||||
* Referenced by: '<S19>/r_sinPhaA_M1'
|
|
||||||
*/
|
|
||||||
int16_T r_sinPhaA_M1_Table[37];
|
|
||||||
|
|
||||||
/* Computed Parameter: r_sinPhaB_M1_Table
|
|
||||||
* Referenced by: '<S19>/r_sinPhaB_M1'
|
|
||||||
*/
|
|
||||||
int16_T r_sinPhaB_M1_Table[37];
|
|
||||||
|
|
||||||
/* Computed Parameter: r_sinPhaC_M1_Table
|
|
||||||
* Referenced by: '<S19>/r_sinPhaC_M1'
|
|
||||||
*/
|
|
||||||
int16_T r_sinPhaC_M1_Table[37];
|
|
||||||
|
|
||||||
/* Computed Parameter: r_sin3PhaA_M1_Table
|
|
||||||
* Referenced by: '<S20>/r_sin3PhaA_M1'
|
|
||||||
*/
|
|
||||||
int16_T r_sin3PhaA_M1_Table[37];
|
|
||||||
|
|
||||||
/* Computed Parameter: r_sin3PhaB_M1_Table
|
|
||||||
* Referenced by: '<S20>/r_sin3PhaB_M1'
|
|
||||||
*/
|
|
||||||
int16_T r_sin3PhaB_M1_Table[37];
|
|
||||||
|
|
||||||
/* Computed Parameter: r_sin3PhaC_M1_Table
|
|
||||||
* Referenced by: '<S20>/r_sin3PhaC_M1'
|
|
||||||
*/
|
|
||||||
int16_T r_sin3PhaC_M1_Table[37];
|
|
||||||
|
|
||||||
/* Computed Parameter: z_commutMap_M1_table
|
|
||||||
* Referenced by: '<S10>/z_commutMap_M1'
|
|
||||||
*/
|
|
||||||
int16_T z_commutMap_M1_table[18];
|
|
||||||
|
|
||||||
/* Computed Parameter: vec_hallToPos_Value
|
|
||||||
* Referenced by: '<S12>/vec_hallToPos'
|
|
||||||
*/
|
|
||||||
int8_T vec_hallToPos_Value[8];
|
|
||||||
} ConstP;
|
|
||||||
|
|
||||||
/* External inputs (root inport signals with auto storage) */
|
|
||||||
typedef struct {
|
|
||||||
uint8_T b_hallA; /* '<Root>/b_hallA ' */
|
|
||||||
uint8_T b_hallB; /* '<Root>/b_hallB' */
|
|
||||||
uint8_T b_hallC; /* '<Root>/b_hallC' */
|
|
||||||
int32_T r_DC; /* '<Root>/r_DC' */
|
|
||||||
} ExtU;
|
|
||||||
|
|
||||||
/* External outputs (root outports fed by signals with auto storage) */
|
|
||||||
typedef struct {
|
|
||||||
int32_T DC_phaA; /* '<Root>/DC_phaA' */
|
|
||||||
int32_T DC_phaB; /* '<Root>/DC_phaB' */
|
|
||||||
int32_T DC_phaC; /* '<Root>/DC_phaC' */
|
|
||||||
int32_T n_mot; /* '<Root>/n_mot' */
|
|
||||||
int32_T a_elecAngle; /* '<Root>/a_elecAngle' */
|
|
||||||
} ExtY;
|
|
||||||
|
|
||||||
/* Parameters (auto storage) */
|
|
||||||
struct P_ {
|
|
||||||
int32_T cf_speedCoef; /* Variable: cf_speedCoef
|
|
||||||
* Referenced by: '<S16>/cf_spdCoef'
|
|
||||||
*/
|
|
||||||
int32_T cf_speedFilt; /* Variable: cf_speedFilt
|
|
||||||
* Referenced by: '<S16>/cf_speedFilt'
|
|
||||||
*/
|
|
||||||
int32_T n_commAcvLo; /* Variable: n_commAcvLo
|
|
||||||
* Referenced by: '<S14>/n_commDeacv'
|
|
||||||
*/
|
|
||||||
int32_T n_commDeacvHi; /* Variable: n_commDeacvHi
|
|
||||||
* Referenced by: '<S14>/n_commDeacv'
|
|
||||||
*/
|
|
||||||
int32_T n_motPhaAdvEna; /* Variable: n_motPhaAdvEna
|
|
||||||
* Referenced by: '<S8>/n_motPhaAdvEna'
|
|
||||||
*/
|
|
||||||
int32_T r_commDCDeacv; /* Variable: r_commDCDeacv
|
|
||||||
* Referenced by: '<S14>/r_commDCDeacv'
|
|
||||||
*/
|
|
||||||
int32_T r_phaAdvDC_XA[11]; /* Variable: r_phaAdvDC_XA
|
|
||||||
* Referenced by: '<S8>/r_phaAdvDC_XA'
|
|
||||||
*/
|
|
||||||
int16_T a_phaAdv_M1[11]; /* Variable: a_phaAdv_M1
|
|
||||||
* Referenced by: '<S8>/a_phaAdv_M2'
|
|
||||||
*/
|
|
||||||
int16_T dz_counterHi; /* Variable: dz_counterHi
|
|
||||||
* Referenced by: '<S14>/dz_counter'
|
|
||||||
*/
|
|
||||||
int16_T dz_counterLo; /* Variable: dz_counterLo
|
|
||||||
* Referenced by: '<S14>/dz_counter'
|
|
||||||
*/
|
|
||||||
int16_T z_maxCntRst; /* Variable: z_maxCntRst
|
|
||||||
* Referenced by:
|
|
||||||
* '<S15>/z_counter'
|
|
||||||
* '<S15>/z_counter2'
|
|
||||||
* '<S16>/z_maxCntRst'
|
|
||||||
* '<S17>/Constant1'
|
|
||||||
* '<S17>/UnitDelay1'
|
|
||||||
*/
|
|
||||||
uint8_T z_ctrlTypSel; /* Variable: z_ctrlTypSel
|
|
||||||
* Referenced by: '<S7>/z_ctrlTypSel1'
|
|
||||||
*/
|
|
||||||
boolean_T b_phaAdvEna; /* Variable: b_phaAdvEna
|
|
||||||
* Referenced by: '<S8>/a_elecPeriod1'
|
|
||||||
*/
|
|
||||||
};
|
|
||||||
|
|
||||||
/* Parameters (auto storage) */
|
|
||||||
typedef struct P_ P;
|
|
||||||
|
|
||||||
/* Real-time Model Data Structure */
|
|
||||||
struct tag_RTM {
|
|
||||||
P *defaultParam;
|
|
||||||
ExtU *inputs;
|
|
||||||
ExtY *outputs;
|
|
||||||
DW *dwork;
|
|
||||||
};
|
|
||||||
|
|
||||||
/* Constant parameters (auto storage) */
|
|
||||||
extern const ConstP rtConstP;
|
|
||||||
|
|
||||||
/* Model entry point functions */
|
|
||||||
extern void BLDC_controller_initialize(RT_MODEL *const rtM);
|
|
||||||
extern void BLDC_controller_step(RT_MODEL *const rtM);
|
|
||||||
|
|
||||||
/*-
|
|
||||||
* These blocks were eliminated from the model due to optimizations:
|
|
||||||
*
|
|
||||||
* Block '<S14>/Scope2' : Unused code path elimination
|
|
||||||
* Block '<S8>/Scope' : Unused code path elimination
|
|
||||||
*/
|
|
||||||
|
|
||||||
/*-
|
|
||||||
* The generated code includes comments that allow you to trace directly
|
|
||||||
* back to the appropriate location in the model. The basic format
|
|
||||||
* is <system>/block_name, where system is the system number (uniquely
|
|
||||||
* assigned by Simulink) and block_name is the name of the block.
|
|
||||||
*
|
|
||||||
* Note that this particular code originates from a subsystem build,
|
|
||||||
* and has its own system numbers different from the parent model.
|
|
||||||
* Refer to the system hierarchy for this subsystem below, and use the
|
|
||||||
* MATLAB hilite_system command to trace the generated code back
|
|
||||||
* to the parent model. For example,
|
|
||||||
*
|
|
||||||
* hilite_system('BLDCmotorControl_R2017b/BLDC_controller') - opens subsystem BLDCmotorControl_R2017b/BLDC_controller
|
|
||||||
* hilite_system('BLDCmotorControl_R2017b/BLDC_controller/Kp') - opens and selects block Kp
|
|
||||||
*
|
|
||||||
* Here is the system hierarchy for this model
|
|
||||||
*
|
|
||||||
* '<Root>' : 'BLDCmotorControl_R2017b'
|
|
||||||
* '<S1>' : 'BLDCmotorControl_R2017b/BLDC_controller'
|
|
||||||
* '<S2>' : 'BLDCmotorControl_R2017b/BLDC_controller/BLDC_controller'
|
|
||||||
* '<S3>' : 'BLDCmotorControl_R2017b/BLDC_controller/signal_log1'
|
|
||||||
* '<S4>' : 'BLDCmotorControl_R2017b/BLDC_controller/signal_log2'
|
|
||||||
* '<S5>' : 'BLDCmotorControl_R2017b/BLDC_controller/signal_log3'
|
|
||||||
* '<S6>' : 'BLDCmotorControl_R2017b/BLDC_controller/signal_log6'
|
|
||||||
* '<S7>' : 'BLDCmotorControl_R2017b/BLDC_controller/BLDC_controller/F01_Preliminary_Calculations'
|
|
||||||
* '<S8>' : 'BLDCmotorControl_R2017b/BLDC_controller/BLDC_controller/F02_Electrical_Angle_Calculation'
|
|
||||||
* '<S9>' : 'BLDCmotorControl_R2017b/BLDC_controller/BLDC_controller/F03_Control_Method_Selection'
|
|
||||||
* '<S10>' : 'BLDCmotorControl_R2017b/BLDC_controller/BLDC_controller/F04_Control_Type_Management'
|
|
||||||
* '<S11>' : 'BLDCmotorControl_R2017b/BLDC_controller/BLDC_controller/F01_Preliminary_Calculations/F01_01_Edge_Detector'
|
|
||||||
* '<S12>' : 'BLDCmotorControl_R2017b/BLDC_controller/BLDC_controller/F01_Preliminary_Calculations/F01_02_Position_Calculation'
|
|
||||||
* '<S13>' : 'BLDCmotorControl_R2017b/BLDC_controller/BLDC_controller/F01_Preliminary_Calculations/F01_03_Direction_Detection'
|
|
||||||
* '<S14>' : 'BLDCmotorControl_R2017b/BLDC_controller/BLDC_controller/F01_Preliminary_Calculations/F01_04_Speed_Calculation'
|
|
||||||
* '<S15>' : 'BLDCmotorControl_R2017b/BLDC_controller/BLDC_controller/F01_Preliminary_Calculations/F01_04_Speed_Calculation/Counter_Hold_and_Error_Calculation'
|
|
||||||
* '<S16>' : 'BLDCmotorControl_R2017b/BLDC_controller/BLDC_controller/F01_Preliminary_Calculations/F01_04_Speed_Calculation/Motor_Speed_Calculation'
|
|
||||||
* '<S17>' : 'BLDCmotorControl_R2017b/BLDC_controller/BLDC_controller/F01_Preliminary_Calculations/F01_04_Speed_Calculation/rst_DelayLim'
|
|
||||||
* '<S18>' : 'BLDCmotorControl_R2017b/BLDC_controller/BLDC_controller/F03_Control_Method_Selection/F03_01_Pure_Trapezoidal_Method'
|
|
||||||
* '<S19>' : 'BLDCmotorControl_R2017b/BLDC_controller/BLDC_controller/F03_Control_Method_Selection/F03_02_Sinusoidal_Method'
|
|
||||||
* '<S20>' : 'BLDCmotorControl_R2017b/BLDC_controller/BLDC_controller/F03_Control_Method_Selection/F03_03_Sinusoidal3rd_Method'
|
|
||||||
* '<S21>' : 'BLDCmotorControl_R2017b/BLDC_controller/BLDC_controller/F03_Control_Method_Selection/signal_log1'
|
|
||||||
* '<S22>' : 'BLDCmotorControl_R2017b/BLDC_controller/BLDC_controller/F03_Control_Method_Selection/signal_log2'
|
|
||||||
* '<S23>' : 'BLDCmotorControl_R2017b/BLDC_controller/BLDC_controller/F03_Control_Method_Selection/signal_log6'
|
|
||||||
*/
|
|
||||||
#endif /* RTW_HEADER_BLDC_controller_h_ */
|
|
||||||
|
|
||||||
/*
|
|
||||||
* File trailer for generated code.
|
|
||||||
*
|
|
||||||
* [EOF]
|
|
||||||
*/
|
|
@ -1,441 +0,0 @@
|
|||||||
###########################################################################
|
|
||||||
## Makefile generated for Simulink model 'BLDC_controller'.
|
|
||||||
##
|
|
||||||
## Makefile : BLDC_controller.mk
|
|
||||||
## Generated on : Wed Jun 05 20:33:43 2019
|
|
||||||
## MATLAB Coder version: 3.4 (R2017b)
|
|
||||||
##
|
|
||||||
## Build Info:
|
|
||||||
##
|
|
||||||
## Final product: $(RELATIVE_PATH_TO_ANCHOR)/BLDC_controller.exe
|
|
||||||
## Product type : executable
|
|
||||||
## Build type : Top-Level Standalone Executable
|
|
||||||
##
|
|
||||||
###########################################################################
|
|
||||||
|
|
||||||
###########################################################################
|
|
||||||
## MACROS
|
|
||||||
###########################################################################
|
|
||||||
|
|
||||||
# Macro Descriptions:
|
|
||||||
# PRODUCT_NAME Name of the system to build
|
|
||||||
# MAKEFILE Name of this makefile
|
|
||||||
# COMPUTER Computer type. See the MATLAB "computer" command.
|
|
||||||
# MODELREF_LINK_RSPFILE Include paths for the model reference build
|
|
||||||
# GEN_LINKER_RESPONSE Command to generate a linker response file
|
|
||||||
# CMD_FILE Command file
|
|
||||||
|
|
||||||
PRODUCT_NAME = BLDC_controller
|
|
||||||
MAKEFILE = BLDC_controller.mk
|
|
||||||
COMPUTER = PCWIN64
|
|
||||||
MATLAB_ROOT = C:/PROGRA~1/MATLAB/R2017b
|
|
||||||
MATLAB_BIN = C:/PROGRA~1/MATLAB/R2017b/bin
|
|
||||||
MATLAB_ARCH_BIN = $(MATLAB_BIN)/win64
|
|
||||||
MASTER_ANCHOR_DIR =
|
|
||||||
START_DIR = D:/git/hoverboard-firmware-hack/01_Matlab
|
|
||||||
ARCH = win64
|
|
||||||
SOLVER =
|
|
||||||
SOLVER_OBJ =
|
|
||||||
CLASSIC_INTERFACE = 0
|
|
||||||
TGT_FCN_LIB = None
|
|
||||||
MODEL_HAS_DYNAMICALLY_LOADED_SFCNS = 0
|
|
||||||
MODELREF_LINK_RSPFILE_NAME = BLDC_controller_ref.rsp
|
|
||||||
RELATIVE_PATH_TO_ANCHOR = ..
|
|
||||||
MODELREF_LINK_RSPFILE = BLDC_controller_ref.rsp
|
|
||||||
GEN_LINKER_RESPONSE = $(MATLAB_ARCH_BIN)/createResponseFile.exe 1
|
|
||||||
CMD_FILE = $(PRODUCT_NAME).rsp
|
|
||||||
C_STANDARD_OPTS = -ansi -pedantic -Wno-long-long -fwrapv
|
|
||||||
CPP_STANDARD_OPTS = -std=c++98 -pedantic -Wno-long-long -fwrapv
|
|
||||||
|
|
||||||
###########################################################################
|
|
||||||
## TOOLCHAIN SPECIFICATIONS
|
|
||||||
###########################################################################
|
|
||||||
|
|
||||||
# Toolchain Name: MinGW64 | gmake (64-bit Windows)
|
|
||||||
# Supported Version(s): 5.x
|
|
||||||
# ToolchainInfo Version: R2017b
|
|
||||||
# Specification Revision: 1.0
|
|
||||||
#
|
|
||||||
#-------------------------------------------
|
|
||||||
# Macros assumed to be defined elsewhere
|
|
||||||
#-------------------------------------------
|
|
||||||
|
|
||||||
# C_STANDARD_OPTS
|
|
||||||
# CPP_STANDARD_OPTS
|
|
||||||
# MINGW_ROOT
|
|
||||||
# MINGW_C_STANDARD_OPTS
|
|
||||||
|
|
||||||
#-----------
|
|
||||||
# MACROS
|
|
||||||
#-----------
|
|
||||||
|
|
||||||
WARN_FLAGS = -Wall -W -Wwrite-strings -Winline -Wstrict-prototypes -Wnested-externs -Wpointer-arith -Wcast-align
|
|
||||||
WARN_FLAGS_MAX = $(WARN_FLAGS) -Wcast-qual -Wshadow
|
|
||||||
CPP_WARN_FLAGS = -Wall -W -Wwrite-strings -Winline -Wpointer-arith -Wcast-align
|
|
||||||
CPP_WARN_FLAGS_MAX = $(CPP_WARN_FLAGS) -Wcast-qual -Wshadow
|
|
||||||
MEX_OPTS_FILE = $(MATLAB_ROOT)/bin/win64/mexopts/mingw64.xml
|
|
||||||
MEX_CPP_OPTS_FILE = $(MATLAB_ROOT)/bin/win64/mexopts/mingw64_g++.xml
|
|
||||||
MW_EXTERNLIB_DIR = $(MATLAB_ROOT)/extern/lib/win64/mingw64
|
|
||||||
SHELL = %SystemRoot%/system32/cmd.exe
|
|
||||||
|
|
||||||
TOOLCHAIN_SRCS =
|
|
||||||
TOOLCHAIN_INCS =
|
|
||||||
TOOLCHAIN_LIBS = -lws2_32
|
|
||||||
|
|
||||||
#------------------------
|
|
||||||
# BUILD TOOL COMMANDS
|
|
||||||
#------------------------
|
|
||||||
|
|
||||||
# C Compiler: GNU C Compiler
|
|
||||||
CC_PATH = $(MINGW_ROOT)
|
|
||||||
CC = "$(CC_PATH)/gcc"
|
|
||||||
|
|
||||||
# Linker: GNU Linker
|
|
||||||
LD_PATH = $(MINGW_ROOT)
|
|
||||||
LD = "$(LD_PATH)/gcc"
|
|
||||||
|
|
||||||
# C++ Compiler: GNU C++ Compiler
|
|
||||||
CPP_PATH = $(MINGW_ROOT)
|
|
||||||
CPP = "$(CPP_PATH)/g++"
|
|
||||||
|
|
||||||
# C++ Linker: GNU C++ Linker
|
|
||||||
CPP_LD_PATH = $(MINGW_ROOT)
|
|
||||||
CPP_LD = "$(CPP_LD_PATH)/g++"
|
|
||||||
|
|
||||||
# Archiver: GNU Archiver
|
|
||||||
AR_PATH = $(MINGW_ROOT)
|
|
||||||
AR = "$(AR_PATH)/ar"
|
|
||||||
|
|
||||||
# MEX Tool: MEX Tool
|
|
||||||
MEX_PATH = $(MATLAB_BIN)/win64
|
|
||||||
MEX = "$(MEX_PATH)/mex"
|
|
||||||
|
|
||||||
# Download: Download
|
|
||||||
DOWNLOAD =
|
|
||||||
|
|
||||||
# Execute: Execute
|
|
||||||
EXECUTE = $(PRODUCT)
|
|
||||||
|
|
||||||
# Builder: GMAKE Utility
|
|
||||||
MAKE_PATH = %MATLAB%/bin/win64
|
|
||||||
MAKE = "$(MAKE_PATH)/gmake"
|
|
||||||
|
|
||||||
|
|
||||||
#-------------------------
|
|
||||||
# Directives/Utilities
|
|
||||||
#-------------------------
|
|
||||||
|
|
||||||
CDEBUG = -g
|
|
||||||
C_OUTPUT_FLAG = -o
|
|
||||||
LDDEBUG = -g
|
|
||||||
OUTPUT_FLAG = -o
|
|
||||||
CPPDEBUG = -g
|
|
||||||
CPP_OUTPUT_FLAG = -o
|
|
||||||
CPPLDDEBUG = -g
|
|
||||||
OUTPUT_FLAG = -o
|
|
||||||
ARDEBUG =
|
|
||||||
STATICLIB_OUTPUT_FLAG =
|
|
||||||
MEX_DEBUG = -g
|
|
||||||
RM = @del
|
|
||||||
ECHO = @echo
|
|
||||||
MV = @move
|
|
||||||
RUN =
|
|
||||||
|
|
||||||
#--------------------------------------
|
|
||||||
# "Faster Runs" Build Configuration
|
|
||||||
#--------------------------------------
|
|
||||||
|
|
||||||
ARFLAGS = ruvs
|
|
||||||
CFLAGS = -c $(MINGW_C_STANDARD_OPTS) \
|
|
||||||
-O3 -fno-loop-optimize -fno-aggressive-loop-optimizations
|
|
||||||
CPPFLAGS = -c $(CPP_STANDARD_OPTS) \
|
|
||||||
-O3 -fno-loop-optimize -fno-aggressive-loop-optimizations
|
|
||||||
CPP_LDFLAGS = -Wl,-rpath,"$(MATLAB_ARCH_BIN)",-L"$(MATLAB_ARCH_BIN)" -static
|
|
||||||
CPP_SHAREDLIB_LDFLAGS = -shared -Wl,-rpath,"$(MATLAB_ARCH_BIN)",-L"$(MATLAB_ARCH_BIN)" -Wl,--no-undefined \
|
|
||||||
-Wl,--out-implib,$(basename $(PRODUCT))$(STATICLIB_EXT)
|
|
||||||
DOWNLOAD_FLAGS =
|
|
||||||
EXECUTE_FLAGS =
|
|
||||||
LDFLAGS = -Wl,-rpath,"$(MATLAB_ARCH_BIN)",-L"$(MATLAB_ARCH_BIN)" -static
|
|
||||||
MEX_CPPFLAGS = -MATLAB_ARCH=$(ARCH) $(INCLUDES) \
|
|
||||||
\
|
|
||||||
COPTIMFLAGS="$(MINGW_C_STANDARD_OPTS) \
|
|
||||||
-O3 -fno-loop-optimize -fno-aggressive-loop-optimizations \
|
|
||||||
$(DEFINES)" \
|
|
||||||
\
|
|
||||||
-silent
|
|
||||||
MEX_CPPLDFLAGS = LDFLAGS=='$$LDFLAGS'
|
|
||||||
MEX_CFLAGS = -MATLAB_ARCH=$(ARCH) $(INCLUDES) \
|
|
||||||
\
|
|
||||||
COPTIMFLAGS="$(MINGW_C_STANDARD_OPTS) \
|
|
||||||
-O3 -fno-loop-optimize -fno-aggressive-loop-optimizations \
|
|
||||||
$(DEFINES)" \
|
|
||||||
\
|
|
||||||
-silent
|
|
||||||
MEX_LDFLAGS = LDFLAGS=='$$LDFLAGS'
|
|
||||||
MAKE_FLAGS = -f $(MAKEFILE)
|
|
||||||
SHAREDLIB_LDFLAGS = -shared -Wl,-rpath,"$(MATLAB_ARCH_BIN)",-L"$(MATLAB_ARCH_BIN)" -Wl,--no-undefined \
|
|
||||||
-Wl,--out-implib,$(basename $(PRODUCT))$(STATICLIB_EXT)
|
|
||||||
|
|
||||||
#--------------------
|
|
||||||
# File extensions
|
|
||||||
#--------------------
|
|
||||||
|
|
||||||
H_EXT = .h
|
|
||||||
OBJ_EXT = .obj
|
|
||||||
C_EXT = .c
|
|
||||||
EXE_EXT = .exe
|
|
||||||
SHAREDLIB_EXT = .dll
|
|
||||||
HPP_EXT = .hpp
|
|
||||||
OBJ_EXT = .obj
|
|
||||||
CPP_EXT = .cpp
|
|
||||||
EXE_EXT = .exe
|
|
||||||
SHAREDLIB_EXT = .dll
|
|
||||||
STATICLIB_EXT = .lib
|
|
||||||
MEX_EXT = .mexw64
|
|
||||||
MAKE_EXT = .mk
|
|
||||||
|
|
||||||
|
|
||||||
###########################################################################
|
|
||||||
## OUTPUT INFO
|
|
||||||
###########################################################################
|
|
||||||
|
|
||||||
PRODUCT = $(RELATIVE_PATH_TO_ANCHOR)/BLDC_controller.exe
|
|
||||||
PRODUCT_TYPE = "executable"
|
|
||||||
BUILD_TYPE = "Top-Level Standalone Executable"
|
|
||||||
|
|
||||||
###########################################################################
|
|
||||||
## INCLUDE PATHS
|
|
||||||
###########################################################################
|
|
||||||
|
|
||||||
INCLUDES_BUILDINFO = -I$(START_DIR) -I$(MATLAB_ROOT)/simulink/include/sf_runtime -I$(START_DIR)/BLDC_controller_ert_rtw -I$(MATLAB_ROOT)/extern/include -I$(MATLAB_ROOT)/simulink/include -I$(MATLAB_ROOT)/rtw/c/src -I$(MATLAB_ROOT)/rtw/c/src/ext_mode/common -I$(MATLAB_ROOT)/rtw/c/ert
|
|
||||||
|
|
||||||
INCLUDES = $(INCLUDES_BUILDINFO)
|
|
||||||
|
|
||||||
###########################################################################
|
|
||||||
## DEFINES
|
|
||||||
###########################################################################
|
|
||||||
|
|
||||||
DEFINES_BUILD_ARGS = -DTERMFCN=0 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=1 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0
|
|
||||||
DEFINES_IMPLIED = -DTID01EQ=0
|
|
||||||
DEFINES_STANDARD = -DMODEL=BLDC_controller -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO
|
|
||||||
|
|
||||||
DEFINES = $(DEFINES_BUILD_ARGS) $(DEFINES_IMPLIED) $(DEFINES_STANDARD)
|
|
||||||
|
|
||||||
###########################################################################
|
|
||||||
## SOURCE FILES
|
|
||||||
###########################################################################
|
|
||||||
|
|
||||||
SRCS = $(START_DIR)/BLDC_controller_ert_rtw/BLDC_controller.c $(START_DIR)/BLDC_controller_ert_rtw/BLDC_controller_data.c
|
|
||||||
|
|
||||||
MAIN_SRC = $(START_DIR)/BLDC_controller_ert_rtw/ert_main.c
|
|
||||||
|
|
||||||
ALL_SRCS = $(SRCS) $(MAIN_SRC)
|
|
||||||
|
|
||||||
###########################################################################
|
|
||||||
## OBJECTS
|
|
||||||
###########################################################################
|
|
||||||
|
|
||||||
OBJS = BLDC_controller.obj BLDC_controller_data.obj
|
|
||||||
|
|
||||||
MAIN_OBJ = ert_main.obj
|
|
||||||
|
|
||||||
ALL_OBJS = $(OBJS) $(MAIN_OBJ)
|
|
||||||
|
|
||||||
###########################################################################
|
|
||||||
## PREBUILT OBJECT FILES
|
|
||||||
###########################################################################
|
|
||||||
|
|
||||||
PREBUILT_OBJS =
|
|
||||||
|
|
||||||
###########################################################################
|
|
||||||
## LIBRARIES
|
|
||||||
###########################################################################
|
|
||||||
|
|
||||||
LIBS =
|
|
||||||
|
|
||||||
###########################################################################
|
|
||||||
## SYSTEM LIBRARIES
|
|
||||||
###########################################################################
|
|
||||||
|
|
||||||
SYSTEM_LIBS =
|
|
||||||
|
|
||||||
###########################################################################
|
|
||||||
## ADDITIONAL TOOLCHAIN FLAGS
|
|
||||||
###########################################################################
|
|
||||||
|
|
||||||
#---------------
|
|
||||||
# C Compiler
|
|
||||||
#---------------
|
|
||||||
|
|
||||||
CFLAGS_BASIC = $(DEFINES) $(INCLUDES)
|
|
||||||
|
|
||||||
CFLAGS += $(CFLAGS_BASIC)
|
|
||||||
|
|
||||||
#-----------------
|
|
||||||
# C++ Compiler
|
|
||||||
#-----------------
|
|
||||||
|
|
||||||
CPPFLAGS_BASIC = $(DEFINES) $(INCLUDES)
|
|
||||||
|
|
||||||
CPPFLAGS += $(CPPFLAGS_BASIC)
|
|
||||||
|
|
||||||
###########################################################################
|
|
||||||
## INLINED COMMANDS
|
|
||||||
###########################################################################
|
|
||||||
|
|
||||||
|
|
||||||
ifdef SIM_TARGET_BUILD
|
|
||||||
MINGW_C_STANDARD_OPTS = $(filter-out -ansi, $(C_STANDARD_OPTS))
|
|
||||||
else
|
|
||||||
MINGW_C_STANDARD_OPTS = $(C_STANDARD_OPTS)
|
|
||||||
endif
|
|
||||||
|
|
||||||
|
|
||||||
###########################################################################
|
|
||||||
## PHONY TARGETS
|
|
||||||
###########################################################################
|
|
||||||
|
|
||||||
.PHONY : all build buildobj clean info prebuild download execute
|
|
||||||
|
|
||||||
|
|
||||||
all : build
|
|
||||||
@echo "### Successfully generated all binary outputs."
|
|
||||||
|
|
||||||
|
|
||||||
build : prebuild $(PRODUCT)
|
|
||||||
|
|
||||||
|
|
||||||
buildobj : prebuild $(OBJS) $(PREBUILT_OBJS)
|
|
||||||
@echo "### Successfully generated all binary outputs."
|
|
||||||
|
|
||||||
|
|
||||||
prebuild :
|
|
||||||
|
|
||||||
|
|
||||||
download : build
|
|
||||||
|
|
||||||
|
|
||||||
execute : download
|
|
||||||
@echo "### Invoking postbuild tool "Execute" ..."
|
|
||||||
$(EXECUTE) $(EXECUTE_FLAGS)
|
|
||||||
@echo "### Done invoking postbuild tool."
|
|
||||||
|
|
||||||
|
|
||||||
###########################################################################
|
|
||||||
## FINAL TARGET
|
|
||||||
###########################################################################
|
|
||||||
|
|
||||||
#-------------------------------------------
|
|
||||||
# Create a standalone executable
|
|
||||||
#-------------------------------------------
|
|
||||||
|
|
||||||
$(PRODUCT) : $(OBJS) $(PREBUILT_OBJS) $(MAIN_OBJ)
|
|
||||||
$(GEN_LINKER_RESPONSE) $(CMD_FILE) $(OBJS)
|
|
||||||
@echo "### Creating standalone executable "$(PRODUCT)" ..."
|
|
||||||
$(LD) $(LDFLAGS) -o $(PRODUCT) @$(CMD_FILE) $(MAIN_OBJ) $(SYSTEM_LIBS) $(TOOLCHAIN_LIBS)
|
|
||||||
@echo "### Created: $(PRODUCT)"
|
|
||||||
$(RM) $(CMD_FILE)
|
|
||||||
|
|
||||||
|
|
||||||
###########################################################################
|
|
||||||
## INTERMEDIATE TARGETS
|
|
||||||
###########################################################################
|
|
||||||
|
|
||||||
#---------------------
|
|
||||||
# SOURCE-TO-OBJECT
|
|
||||||
#---------------------
|
|
||||||
|
|
||||||
%.obj : %.c
|
|
||||||
$(CC) $(CFLAGS) -o "$@" "$<"
|
|
||||||
|
|
||||||
|
|
||||||
%.obj : %.cpp
|
|
||||||
$(CPP) $(CPPFLAGS) -o "$@" "$<"
|
|
||||||
|
|
||||||
|
|
||||||
%.obj : $(RELATIVE_PATH_TO_ANCHOR)/%.c
|
|
||||||
$(CC) $(CFLAGS) -o "$@" "$<"
|
|
||||||
|
|
||||||
|
|
||||||
%.obj : $(RELATIVE_PATH_TO_ANCHOR)/%.cpp
|
|
||||||
$(CPP) $(CPPFLAGS) -o "$@" "$<"
|
|
||||||
|
|
||||||
|
|
||||||
%.obj : $(START_DIR)/%.c
|
|
||||||
$(CC) $(CFLAGS) -o "$@" "$<"
|
|
||||||
|
|
||||||
|
|
||||||
%.obj : $(START_DIR)/%.cpp
|
|
||||||
$(CPP) $(CPPFLAGS) -o "$@" "$<"
|
|
||||||
|
|
||||||
|
|
||||||
%.obj : $(START_DIR)/BLDC_controller_ert_rtw/%.c
|
|
||||||
$(CC) $(CFLAGS) -o "$@" "$<"
|
|
||||||
|
|
||||||
|
|
||||||
%.obj : $(START_DIR)/BLDC_controller_ert_rtw/%.cpp
|
|
||||||
$(CPP) $(CPPFLAGS) -o "$@" "$<"
|
|
||||||
|
|
||||||
|
|
||||||
%.obj : $(MATLAB_ROOT)/rtw/c/src/%.c
|
|
||||||
$(CC) $(CFLAGS) -o "$@" "$<"
|
|
||||||
|
|
||||||
|
|
||||||
%.obj : $(MATLAB_ROOT)/rtw/c/src/%.cpp
|
|
||||||
$(CPP) $(CPPFLAGS) -o "$@" "$<"
|
|
||||||
|
|
||||||
|
|
||||||
%.obj : $(MATLAB_ROOT)/simulink/src/%.c
|
|
||||||
$(CC) $(CFLAGS) -o "$@" "$<"
|
|
||||||
|
|
||||||
|
|
||||||
%.obj : $(MATLAB_ROOT)/simulink/src/%.cpp
|
|
||||||
$(CPP) $(CPPFLAGS) -o "$@" "$<"
|
|
||||||
|
|
||||||
|
|
||||||
###########################################################################
|
|
||||||
## DEPENDENCIES
|
|
||||||
###########################################################################
|
|
||||||
|
|
||||||
$(ALL_OBJS) : $(MAKEFILE) rtw_proj.tmw
|
|
||||||
|
|
||||||
|
|
||||||
###########################################################################
|
|
||||||
## MISCELLANEOUS TARGETS
|
|
||||||
###########################################################################
|
|
||||||
|
|
||||||
info :
|
|
||||||
@echo "### PRODUCT = $(PRODUCT)"
|
|
||||||
@echo "### PRODUCT_TYPE = $(PRODUCT_TYPE)"
|
|
||||||
@echo "### BUILD_TYPE = $(BUILD_TYPE)"
|
|
||||||
@echo "### INCLUDES = $(INCLUDES)"
|
|
||||||
@echo "### DEFINES = $(DEFINES)"
|
|
||||||
@echo "### ALL_SRCS = $(ALL_SRCS)"
|
|
||||||
@echo "### ALL_OBJS = $(ALL_OBJS)"
|
|
||||||
@echo "### LIBS = $(LIBS)"
|
|
||||||
@echo "### MODELREF_LIBS = $(MODELREF_LIBS)"
|
|
||||||
@echo "### SYSTEM_LIBS = $(SYSTEM_LIBS)"
|
|
||||||
@echo "### TOOLCHAIN_LIBS = $(TOOLCHAIN_LIBS)"
|
|
||||||
@echo "### CFLAGS = $(CFLAGS)"
|
|
||||||
@echo "### LDFLAGS = $(LDFLAGS)"
|
|
||||||
@echo "### SHAREDLIB_LDFLAGS = $(SHAREDLIB_LDFLAGS)"
|
|
||||||
@echo "### CPPFLAGS = $(CPPFLAGS)"
|
|
||||||
@echo "### CPP_LDFLAGS = $(CPP_LDFLAGS)"
|
|
||||||
@echo "### CPP_SHAREDLIB_LDFLAGS = $(CPP_SHAREDLIB_LDFLAGS)"
|
|
||||||
@echo "### ARFLAGS = $(ARFLAGS)"
|
|
||||||
@echo "### MEX_CFLAGS = $(MEX_CFLAGS)"
|
|
||||||
@echo "### MEX_CPPFLAGS = $(MEX_CPPFLAGS)"
|
|
||||||
@echo "### MEX_LDFLAGS = $(MEX_LDFLAGS)"
|
|
||||||
@echo "### MEX_CPPLDFLAGS = $(MEX_CPPLDFLAGS)"
|
|
||||||
@echo "### DOWNLOAD_FLAGS = $(DOWNLOAD_FLAGS)"
|
|
||||||
@echo "### EXECUTE_FLAGS = $(EXECUTE_FLAGS)"
|
|
||||||
@echo "### MAKE_FLAGS = $(MAKE_FLAGS)"
|
|
||||||
|
|
||||||
|
|
||||||
clean :
|
|
||||||
$(ECHO) "### Deleting all derived files..."
|
|
||||||
$(RM) $(subst /,\,$(PRODUCT))
|
|
||||||
$(RM) $(subst /,\,$(ALL_OBJS))
|
|
||||||
$(ECHO) "### Deleted all derived files."
|
|
||||||
|
|
||||||
|
|
@ -1,101 +0,0 @@
|
|||||||
/*
|
|
||||||
* Academic License - for use in teaching, academic research, and meeting
|
|
||||||
* course requirements at degree granting institutions only. Not for
|
|
||||||
* government, commercial, or other organizational use.
|
|
||||||
*
|
|
||||||
* File: BLDC_controller_data.c
|
|
||||||
*
|
|
||||||
* Code generated for Simulink model 'BLDC_controller'.
|
|
||||||
*
|
|
||||||
* Model version : 1.883
|
|
||||||
* Simulink Coder version : 8.13 (R2017b) 24-Jul-2017
|
|
||||||
* C/C++ source code generated on : Tue Jun 11 21:14:57 2019
|
|
||||||
*
|
|
||||||
* Target selection: ert.tlc
|
|
||||||
* Embedded hardware selection: ARM Compatible->ARM Cortex
|
|
||||||
* Emulation hardware selection:
|
|
||||||
* Differs from embedded hardware (MATLAB Host)
|
|
||||||
* Code generation objectives:
|
|
||||||
* 1. Execution efficiency
|
|
||||||
* 2. RAM efficiency
|
|
||||||
* Validation result: Not run
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "BLDC_controller.h"
|
|
||||||
|
|
||||||
/* Constant parameters (auto storage) */
|
|
||||||
const ConstP rtConstP = {
|
|
||||||
/* Computed Parameter: r_trapPhaA_M1_Table
|
|
||||||
* Referenced by: '<S18>/r_trapPhaA_M1'
|
|
||||||
*/
|
|
||||||
{ 1000, 1000, 1000, -1000, -1000, -1000, 1000 },
|
|
||||||
|
|
||||||
/* Computed Parameter: r_trapPhaB_M1_Table
|
|
||||||
* Referenced by: '<S18>/r_trapPhaB_M1'
|
|
||||||
*/
|
|
||||||
{ -1000, -1000, 1000, 1000, 1000, -1000, -1000 },
|
|
||||||
|
|
||||||
/* Computed Parameter: r_trapPhaC_M1_Table
|
|
||||||
* Referenced by: '<S18>/r_trapPhaC_M1'
|
|
||||||
*/
|
|
||||||
{ 1000, -1000, -1000, -1000, 1000, 1000, 1000 },
|
|
||||||
|
|
||||||
/* Computed Parameter: r_sinPhaA_M1_Table
|
|
||||||
* Referenced by: '<S19>/r_sinPhaA_M1'
|
|
||||||
*/
|
|
||||||
{ 500, 643, 766, 866, 940, 985, 1000, 985, 940, 866, 766, 643, 500, 342, 174,
|
|
||||||
0, -174, -342, -500, -643, -766, -866, -940, -985, -1000, -985, -940, -866,
|
|
||||||
-766, -643, -500, -342, -174, 0, 174, 342, 500 },
|
|
||||||
|
|
||||||
/* Computed Parameter: r_sinPhaB_M1_Table
|
|
||||||
* Referenced by: '<S19>/r_sinPhaB_M1'
|
|
||||||
*/
|
|
||||||
{ -1000, -985, -940, -866, -766, -643, -500, -342, -174, 0, 174, 342, 500, 643,
|
|
||||||
766, 866, 940, 985, 1000, 985, 940, 866, 766, 643, 500, 342, 174, 0, -174,
|
|
||||||
-342, -500, -643, -766, -866, -940, -985, -1000 },
|
|
||||||
|
|
||||||
/* Computed Parameter: r_sinPhaC_M1_Table
|
|
||||||
* Referenced by: '<S19>/r_sinPhaC_M1'
|
|
||||||
*/
|
|
||||||
{ 500, 342, 174, 0, -174, -342, -500, -643, -766, -866, -940, -985, -1000,
|
|
||||||
-985, -940, -866, -766, -643, -500, -342, -174, 0, 174, 342, 500, 643, 766,
|
|
||||||
866, 940, 985, 1000, 985, 940, 866, 766, 643, 500 },
|
|
||||||
|
|
||||||
/* Computed Parameter: r_sin3PhaA_M1_Table
|
|
||||||
* Referenced by: '<S20>/r_sin3PhaA_M1'
|
|
||||||
*/
|
|
||||||
{ 813, 945, 1000, 996, 962, 926, 912, 926, 962, 996, 1000, 945, 813, 599, 319,
|
|
||||||
0, -319, -599, -813, -945, -1000, -996, -962, -926, -912, -926, -962, -996,
|
|
||||||
-1000, -945, -813, -599, -319, 0, 319, 599, 813 },
|
|
||||||
|
|
||||||
/* Computed Parameter: r_sin3PhaB_M1_Table
|
|
||||||
* Referenced by: '<S20>/r_sin3PhaB_M1'
|
|
||||||
*/
|
|
||||||
{ -912, -926, -962, -996, -1000, -945, -813, -599, -319, 0, 319, 599, 813, 945,
|
|
||||||
1000, 996, 962, 926, 912, 926, 962, 996, 1000, 945, 813, 599, 319, 0, -319,
|
|
||||||
-599, -813, -945, -1000, -996, -962, -926, -912 },
|
|
||||||
|
|
||||||
/* Computed Parameter: r_sin3PhaC_M1_Table
|
|
||||||
* Referenced by: '<S20>/r_sin3PhaC_M1'
|
|
||||||
*/
|
|
||||||
{ 813, 599, 319, 0, -319, -599, -813, -945, -1000, -996, -962, -926, -912,
|
|
||||||
-926, -962, -996, -1000, -945, -813, -599, -319, 0, 319, 599, 813, 945, 1000,
|
|
||||||
996, 962, 926, 912, 926, 962, 996, 1000, 945, 813 },
|
|
||||||
|
|
||||||
/* Computed Parameter: z_commutMap_M1_table
|
|
||||||
* Referenced by: '<S10>/z_commutMap_M1'
|
|
||||||
*/
|
|
||||||
{ 1000, -1000, 0, 1000, 0, -1000, 0, 1000, -1000, -1000, 1000, 0, -1000, 0,
|
|
||||||
1000, 0, -1000, 1000 },
|
|
||||||
|
|
||||||
/* Computed Parameter: vec_hallToPos_Value
|
|
||||||
* Referenced by: '<S12>/vec_hallToPos'
|
|
||||||
*/
|
|
||||||
{ 0, 5, 3, 4, 1, 0, 2, 0 }
|
|
||||||
};
|
|
||||||
|
|
||||||
/*
|
|
||||||
* File trailer for generated code.
|
|
||||||
*
|
|
||||||
* [EOF]
|
|
||||||
*/
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,13 +0,0 @@
|
|||||||
MODEL=BLDC_controller
|
|
||||||
NUMST=1
|
|
||||||
NCSTATES=0
|
|
||||||
HAVESTDIO
|
|
||||||
TERMFCN=0
|
|
||||||
ONESTEPFCN=1
|
|
||||||
MAT_FILE=0
|
|
||||||
MULTI_INSTANCE_CODE=1
|
|
||||||
INTEGER_CODE=0
|
|
||||||
MT=0
|
|
||||||
CLASSIC_INTERFACE=0
|
|
||||||
ALLOCATIONFCN=0
|
|
||||||
TID01EQ=0
|
|
@ -1,201 +0,0 @@
|
|||||||
/*
|
|
||||||
* Academic License - for use in teaching, academic research, and meeting
|
|
||||||
* course requirements at degree granting institutions only. Not for
|
|
||||||
* government, commercial, or other organizational use.
|
|
||||||
*
|
|
||||||
* File: ert_main.c
|
|
||||||
*
|
|
||||||
* Code generated for Simulink model 'BLDC_controller'.
|
|
||||||
*
|
|
||||||
* Model version : 1.883
|
|
||||||
* Simulink Coder version : 8.13 (R2017b) 24-Jul-2017
|
|
||||||
* C/C++ source code generated on : Tue Jun 11 21:14:57 2019
|
|
||||||
*
|
|
||||||
* Target selection: ert.tlc
|
|
||||||
* Embedded hardware selection: ARM Compatible->ARM Cortex
|
|
||||||
* Emulation hardware selection:
|
|
||||||
* Differs from embedded hardware (MATLAB Host)
|
|
||||||
* Code generation objectives:
|
|
||||||
* 1. Execution efficiency
|
|
||||||
* 2. RAM efficiency
|
|
||||||
* Validation result: Not run
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <stddef.h>
|
|
||||||
#include <stdio.h> /* This ert_main.c example uses printf/fflush */
|
|
||||||
#include "BLDC_controller.h" /* Model's header file */
|
|
||||||
#include "rtwtypes.h"
|
|
||||||
|
|
||||||
static RT_MODEL rtM_;
|
|
||||||
static RT_MODEL *const rtMPtr = &rtM_; /* Real-time model */
|
|
||||||
static P rtP = {
|
|
||||||
/* Variable: cf_speedCoef
|
|
||||||
* Referenced by: '<S16>/cf_spdCoef'
|
|
||||||
*/
|
|
||||||
11111,
|
|
||||||
|
|
||||||
/* Variable: cf_speedFilt
|
|
||||||
* Referenced by: '<S16>/cf_speedFilt'
|
|
||||||
*/
|
|
||||||
10,
|
|
||||||
|
|
||||||
/* Variable: n_commAcvLo
|
|
||||||
* Referenced by: '<S14>/n_commDeacv'
|
|
||||||
*/
|
|
||||||
15,
|
|
||||||
|
|
||||||
/* Variable: n_commDeacvHi
|
|
||||||
* Referenced by: '<S14>/n_commDeacv'
|
|
||||||
*/
|
|
||||||
30,
|
|
||||||
|
|
||||||
/* Variable: n_motPhaAdvEna
|
|
||||||
* Referenced by: '<S8>/n_motPhaAdvEna'
|
|
||||||
*/
|
|
||||||
400,
|
|
||||||
|
|
||||||
/* Variable: r_commDCDeacv
|
|
||||||
* Referenced by: '<S14>/r_commDCDeacv'
|
|
||||||
*/
|
|
||||||
70,
|
|
||||||
|
|
||||||
/* Variable: r_phaAdvDC_XA
|
|
||||||
* Referenced by: '<S8>/r_phaAdvDC_XA'
|
|
||||||
*/
|
|
||||||
{ 0, 100, 200, 300, 400, 500, 600, 700, 800, 900, 1000 },
|
|
||||||
|
|
||||||
/* Variable: a_phaAdv_M1
|
|
||||||
* Referenced by: '<S8>/a_phaAdv_M2'
|
|
||||||
*/
|
|
||||||
{ 0, 0, 0, 0, 0, 2, 3, 5, 9, 16, 25 },
|
|
||||||
|
|
||||||
/* Variable: dz_counterHi
|
|
||||||
* Referenced by: '<S14>/dz_counter'
|
|
||||||
*/
|
|
||||||
50,
|
|
||||||
|
|
||||||
/* Variable: dz_counterLo
|
|
||||||
* Referenced by: '<S14>/dz_counter'
|
|
||||||
*/
|
|
||||||
20,
|
|
||||||
|
|
||||||
/* Variable: z_maxCntRst
|
|
||||||
* Referenced by:
|
|
||||||
* '<S15>/z_counter'
|
|
||||||
* '<S15>/z_counter2'
|
|
||||||
* '<S16>/z_maxCntRst'
|
|
||||||
* '<S17>/Constant1'
|
|
||||||
* '<S17>/UnitDelay1'
|
|
||||||
*/
|
|
||||||
1500,
|
|
||||||
|
|
||||||
/* Variable: z_ctrlTypSel
|
|
||||||
* Referenced by: '<S7>/z_ctrlTypSel1'
|
|
||||||
*/
|
|
||||||
3U,
|
|
||||||
|
|
||||||
/* Variable: b_phaAdvEna
|
|
||||||
* Referenced by: '<S8>/a_elecPeriod1'
|
|
||||||
*/
|
|
||||||
1
|
|
||||||
}; /* Modifiable parameters */
|
|
||||||
|
|
||||||
static DW rtDW; /* Observable states */
|
|
||||||
static ExtU rtU; /* External inputs */
|
|
||||||
static ExtY rtY; /* External outputs */
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Associating rt_OneStep with a real-time clock or interrupt service routine
|
|
||||||
* is what makes the generated code "real-time". The function rt_OneStep is
|
|
||||||
* always associated with the base rate of the model. Subrates are managed
|
|
||||||
* by the base rate from inside the generated code. Enabling/disabling
|
|
||||||
* interrupts and floating point context switches are target specific. This
|
|
||||||
* example code indicates where these should take place relative to executing
|
|
||||||
* the generated code step function. Overrun behavior should be tailored to
|
|
||||||
* your application needs. This example simply sets an error status in the
|
|
||||||
* real-time model and returns from rt_OneStep.
|
|
||||||
*/
|
|
||||||
void rt_OneStep(RT_MODEL *const rtM);
|
|
||||||
void rt_OneStep(RT_MODEL *const rtM)
|
|
||||||
{
|
|
||||||
static boolean_T OverrunFlag = false;
|
|
||||||
|
|
||||||
/* Disable interrupts here */
|
|
||||||
|
|
||||||
/* Check for overrun */
|
|
||||||
if (OverrunFlag) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
OverrunFlag = true;
|
|
||||||
|
|
||||||
/* Save FPU context here (if necessary) */
|
|
||||||
/* Re-enable timer or interrupt here */
|
|
||||||
/* Set model inputs here */
|
|
||||||
|
|
||||||
/* Step the model */
|
|
||||||
BLDC_controller_step(rtM);
|
|
||||||
|
|
||||||
/* Get model outputs here */
|
|
||||||
|
|
||||||
/* Indicate task complete */
|
|
||||||
OverrunFlag = false;
|
|
||||||
|
|
||||||
/* Disable interrupts here */
|
|
||||||
/* Restore FPU context here (if necessary) */
|
|
||||||
/* Enable interrupts here */
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
* The example "main" function illustrates what is required by your
|
|
||||||
* application code to initialize, execute, and terminate the generated code.
|
|
||||||
* Attaching rt_OneStep to a real-time clock is target specific. This example
|
|
||||||
* illustrates how you do this relative to initializing the model.
|
|
||||||
*/
|
|
||||||
int_T main(int_T argc, const char *argv[])
|
|
||||||
{
|
|
||||||
RT_MODEL *const rtM = rtMPtr;
|
|
||||||
|
|
||||||
/* Unused arguments */
|
|
||||||
(void)(argc);
|
|
||||||
(void)(argv);
|
|
||||||
|
|
||||||
/* Pack model data into RTM */
|
|
||||||
rtM->defaultParam = &rtP;
|
|
||||||
rtM->dwork = &rtDW;
|
|
||||||
rtM->inputs = &rtU;
|
|
||||||
rtM->outputs = &rtY;
|
|
||||||
|
|
||||||
/* Initialize model */
|
|
||||||
BLDC_controller_initialize(rtM);
|
|
||||||
|
|
||||||
/* Attach rt_OneStep to a timer or interrupt service routine with
|
|
||||||
* period 6.0E-5 seconds (the model's base sample time) here. The
|
|
||||||
* call syntax for rt_OneStep is
|
|
||||||
*
|
|
||||||
* rt_OneStep(rtM);
|
|
||||||
*/
|
|
||||||
printf("Warning: The simulation will run forever. "
|
|
||||||
"Generated ERT main won't simulate model step behavior. "
|
|
||||||
"To change this behavior select the 'MAT-file logging' option.\n");
|
|
||||||
fflush((NULL));
|
|
||||||
while (1) {
|
|
||||||
/* Perform other application tasks here */
|
|
||||||
}
|
|
||||||
|
|
||||||
/* The option 'Remove error status field in real-time model data structure'
|
|
||||||
* is selected, therefore the following code does not need to execute.
|
|
||||||
*/
|
|
||||||
#if 0
|
|
||||||
|
|
||||||
/* Disable rt_OneStep() here */
|
|
||||||
#endif
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
* File trailer for generated code.
|
|
||||||
*
|
|
||||||
* [EOF]
|
|
||||||
*/
|
|
@ -1,716 +0,0 @@
|
|||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
|
||||||
<title>RTW Report - BLDC_controller.c</title>
|
|
||||||
<link rel="stylesheet" type="text/css" href="rtwreport.css"></link><script language="JavaScript" type="text/javascript" src="rtwreport_utils.js"></script>
|
|
||||||
<SCRIPT type="text/javascript" language="JavaScript" src="slwebview.js"></SCRIPT>
|
|
||||||
<SCRIPT type="text/javascript" language="JavaScript" src="id_mapping.js"></SCRIPT>
|
|
||||||
<SCRIPT type="text/javascript" src="rtwannotate.js"></SCRIPT>
|
|
||||||
</head>
|
|
||||||
<body bgcolor="#eeeeee" onload="try {if (top) { if (top.rtwFileOnLoad) top.rtwFileOnLoad(window.document); else local_onload();}} catch(err) {};if (typeof rtwannotate === 'function') {rtwannotate('BLDC_controller_c_cov.xml');}">
|
|
||||||
<p>
|
|
||||||
<table border="0" cellspacing="0" cellpadding="6" width="100%%" height="100%%"><tr><td width="100%%" valign="top" bgcolor="#ffffff">
|
|
||||||
<h4>File: <a href="../BLDC_controller.c" target="rtwreport_document_frame" id="linkToText_plain">BLDC_controller.c</a></h4>
|
|
||||||
<pre id="RTWcode">
|
|
||||||
<span><a class="LN" name="1"> 1 </a><span class="CT">/*</span>
|
|
||||||
</span><span><a class="LN" name="2"> 2 </a><span class="CT"> * Academic License - for use in teaching, academic research, and meeting</span>
|
|
||||||
</span><span><a class="LN" name="3"> 3 </a><span class="CT"> * course requirements at degree granting institutions only. Not for</span>
|
|
||||||
</span><span><a class="LN" name="4"> 4 </a><span class="CT"> * government, commercial, or other organizational use.</span>
|
|
||||||
</span><span><a class="LN" name="5"> 5 </a><span class="CT"> *</span>
|
|
||||||
</span><span><a class="LN" name="6"> 6 </a><span class="CT"> * File: BLDC_controller.c</span>
|
|
||||||
</span><span><a class="LN" name="7"> 7 </a><span class="CT"> *</span>
|
|
||||||
</span><span><a class="LN" name="8"> 8 </a><span class="CT"> * Code generated for Simulink model 'BLDC_controller'.</span>
|
|
||||||
</span><span><a class="LN" name="9"> 9 </a><span class="CT"> *</span>
|
|
||||||
</span><span><a class="LN" name="10"> 10 </a><span class="CT"> * Model version : 1.883</span>
|
|
||||||
</span><span><a class="LN" name="11"> 11 </a><span class="CT"> * Simulink Coder version : 8.13 (R2017b) 24-Jul-2017</span>
|
|
||||||
</span><span><a class="LN" name="12"> 12 </a><span class="CT"> * C/C++ source code generated on : Tue Jun 11 21:14:57 2019</span>
|
|
||||||
</span><span><a class="LN" name="13"> 13 </a><span class="CT"> *</span>
|
|
||||||
</span><span><a class="LN" name="14"> 14 </a><span class="CT"> * Target selection: ert.tlc</span>
|
|
||||||
</span><span><a class="LN" name="15"> 15 </a><span class="CT"> * Embedded hardware selection: ARM Compatible->ARM Cortex</span>
|
|
||||||
</span><span><a class="LN" name="16"> 16 </a><span class="CT"> * Emulation hardware selection:</span>
|
|
||||||
</span><span><a class="LN" name="17"> 17 </a><span class="CT"> * Differs from embedded hardware (MATLAB Host)</span>
|
|
||||||
</span><span><a class="LN" name="18"> 18 </a><span class="CT"> * Code generation objectives:</span>
|
|
||||||
</span><span><a class="LN" name="19"> 19 </a><span class="CT"> * 1. Execution efficiency</span>
|
|
||||||
</span><span><a class="LN" name="20"> 20 </a><span class="CT"> * 2. RAM efficiency</span>
|
|
||||||
</span><span><a class="LN" name="21"> 21 </a><span class="CT"> * Validation result: Not run</span>
|
|
||||||
</span><span><a class="LN" name="22"> 22 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="23"> 23 </a>
|
|
||||||
</span><span><a class="LN" name="24"> 24 </a><font color="#992211">#</font><span class="PP">include</span> <font color="#992211">"BLDC_controller.h"</font>
|
|
||||||
</span><span><a class="LN" name="25"> 25 </a><font color="#992211">#</font><span class="PP">ifndef</span> UCHAR_MAX
|
|
||||||
</span><span><a class="LN" name="26"> 26 </a><font color="#992211">#</font><span class="PP">include</span> <font color="#992211"><limits.h></font>
|
|
||||||
</span><span><a class="LN" name="27"> 27 </a><font color="#992211">#</font><span class="PP">endif</span>
|
|
||||||
</span><span><a class="LN" name="28"> 28 </a>
|
|
||||||
</span><span><a class="LN" name="29"> 29 </a><font color="#992211">#</font><span class="PP">if</span> ( UCHAR_MAX != (0xFFU) ) || ( SCHAR_MAX != (0x7F) )
|
|
||||||
</span><span><a class="LN" name="30"> 30 </a><font color="#992211">#</font><span class="PP">error</span> Code was generated for compiler with different sized uchar/char. \
|
|
||||||
</span><span><a class="LN" name="31"> 31 </a>Consider adjusting Test hardware word size settings on the \
|
|
||||||
</span><span><a class="LN" name="32"> 32 </a>Hardware Implementation pane to match your compiler word sizes as \
|
|
||||||
</span><span><a class="LN" name="33"> 33 </a>defined in limits.h of the compiler. Alternatively, you can \
|
|
||||||
</span><span><a class="LN" name="34"> 34 </a>select the Test hardware is the same as production hardware option and \
|
|
||||||
</span><span><a class="LN" name="35"> 35 </a>select the Enable portable word sizes option on the Code Generation > \
|
|
||||||
</span><span><a class="LN" name="36"> 36 </a>Verification pane for ERT based targets, which will disable the \
|
|
||||||
</span><span><a class="LN" name="37"> 37 </a>preprocessor word size checks.
|
|
||||||
</span><span><a class="LN" name="38"> 38 </a><font color="#992211">#</font><span class="PP">endif</span>
|
|
||||||
</span><span><a class="LN" name="39"> 39 </a>
|
|
||||||
</span><span><a class="LN" name="40"> 40 </a><font color="#992211">#</font><span class="PP">if</span> ( USHRT_MAX != (0xFFFFU) ) || ( SHRT_MAX != (0x7FFF) )
|
|
||||||
</span><span><a class="LN" name="41"> 41 </a><font color="#992211">#</font><span class="PP">error</span> Code was generated for compiler with different sized ushort/short. \
|
|
||||||
</span><span><a class="LN" name="42"> 42 </a>Consider adjusting Test hardware word size settings on the \
|
|
||||||
</span><span><a class="LN" name="43"> 43 </a>Hardware Implementation pane to match your compiler word sizes as \
|
|
||||||
</span><span><a class="LN" name="44"> 44 </a>defined in limits.h of the compiler. Alternatively, you can \
|
|
||||||
</span><span><a class="LN" name="45"> 45 </a>select the Test hardware is the same as production hardware option and \
|
|
||||||
</span><span><a class="LN" name="46"> 46 </a>select the Enable portable word sizes option on the Code Generation > \
|
|
||||||
</span><span><a class="LN" name="47"> 47 </a>Verification pane for ERT based targets, which will disable the \
|
|
||||||
</span><span><a class="LN" name="48"> 48 </a>preprocessor word size checks.
|
|
||||||
</span><span><a class="LN" name="49"> 49 </a><font color="#992211">#</font><span class="PP">endif</span>
|
|
||||||
</span><span><a class="LN" name="50"> 50 </a>
|
|
||||||
</span><span><a class="LN" name="51"> 51 </a><font color="#992211">#</font><span class="PP">if</span> ( UINT_MAX != (0xFFFFFFFFU) ) || ( INT_MAX != (0x7FFFFFFF) )
|
|
||||||
</span><span><a class="LN" name="52"> 52 </a><font color="#992211">#</font><span class="PP">error</span> Code was generated for compiler with different sized uint/int. \
|
|
||||||
</span><span><a class="LN" name="53"> 53 </a>Consider adjusting Test hardware word size settings on the \
|
|
||||||
</span><span><a class="LN" name="54"> 54 </a>Hardware Implementation pane to match your compiler word sizes as \
|
|
||||||
</span><span><a class="LN" name="55"> 55 </a>defined in limits.h of the compiler. Alternatively, you can \
|
|
||||||
</span><span><a class="LN" name="56"> 56 </a>select the Test hardware is the same as production hardware option and \
|
|
||||||
</span><span><a class="LN" name="57"> 57 </a>select the Enable portable word sizes option on the Code Generation > \
|
|
||||||
</span><span><a class="LN" name="58"> 58 </a>Verification pane for ERT based targets, which will disable the \
|
|
||||||
</span><span><a class="LN" name="59"> 59 </a>preprocessor word size checks.
|
|
||||||
</span><span><a class="LN" name="60"> 60 </a><font color="#992211">#</font><span class="PP">endif</span>
|
|
||||||
</span><span><a class="LN" name="61"> 61 </a>
|
|
||||||
</span><span><a class="LN" name="62"> 62 </a><font color="#992211">#</font><span class="PP">if</span> ( ULONG_MAX != (0xFFFFFFFFU) ) || ( LONG_MAX != (0x7FFFFFFF) )
|
|
||||||
</span><span><a class="LN" name="63"> 63 </a><font color="#992211">#</font><span class="PP">error</span> Code was generated for compiler with different sized ulong/long. \
|
|
||||||
</span><span><a class="LN" name="64"> 64 </a>Consider adjusting Test hardware word size settings on the \
|
|
||||||
</span><span><a class="LN" name="65"> 65 </a>Hardware Implementation pane to match your compiler word sizes as \
|
|
||||||
</span><span><a class="LN" name="66"> 66 </a>defined in limits.h of the compiler. Alternatively, you can \
|
|
||||||
</span><span><a class="LN" name="67"> 67 </a>select the Test hardware is the same as production hardware option and \
|
|
||||||
</span><span><a class="LN" name="68"> 68 </a>select the Enable portable word sizes option on the Code Generation > \
|
|
||||||
</span><span><a class="LN" name="69"> 69 </a>Verification pane for ERT based targets, which will disable the \
|
|
||||||
</span><span><a class="LN" name="70"> 70 </a>preprocessor word size checks.
|
|
||||||
</span><span><a class="LN" name="71"> 71 </a><font color="#992211">#</font><span class="PP">endif</span>
|
|
||||||
</span><span><a class="LN" name="72"> 72 </a>
|
|
||||||
</span><span><a class="LN" name="73"> 73 </a><font color="#992211">#</font><span class="PP">if</span> 0
|
|
||||||
</span><span><a class="LN" name="74"> 74 </a>
|
|
||||||
</span><span><a class="LN" name="75"> 75 </a><span class="CT">/* Skip this size verification because of preprocessor limitation */</span>
|
|
||||||
</span><span><a class="LN" name="76"> 76 </a><font color="#992211">#</font><span class="PP">if</span> ( ULLONG_MAX != (0xFFFFFFFFFFFFFFFFULL) ) || ( LLONG_MAX != (0x7FFFFFFFFFFFFFFFLL) )
|
|
||||||
</span><span><a class="LN" name="77"> 77 </a><font color="#992211">#</font><span class="PP">error</span> Code was generated for compiler with different sized ulong_long/long_long. \
|
|
||||||
</span><span><a class="LN" name="78"> 78 </a>Consider adjusting Test hardware word size settings on the \
|
|
||||||
</span><span><a class="LN" name="79"> 79 </a>Hardware Implementation pane to match your compiler word sizes as \
|
|
||||||
</span><span><a class="LN" name="80"> 80 </a>defined in limits.h of the compiler. Alternatively, you can \
|
|
||||||
</span><span><a class="LN" name="81"> 81 </a>select the Test hardware is the same as production hardware option and \
|
|
||||||
</span><span><a class="LN" name="82"> 82 </a>select the Enable portable word sizes option on the Code Generation > \
|
|
||||||
</span><span><a class="LN" name="83"> 83 </a>Verification pane for ERT based targets, which will disable the \
|
|
||||||
</span><span><a class="LN" name="84"> 84 </a>preprocessor word size checks.
|
|
||||||
</span><span><a class="LN" name="85"> 85 </a><font color="#992211">#</font><span class="PP">endif</span>
|
|
||||||
</span><span><a class="LN" name="86"> 86 </a><font color="#992211">#</font><span class="PP">endif</span>
|
|
||||||
</span><span><a class="LN" name="87"> 87 </a>
|
|
||||||
</span><span><a class="LN" name="88"> 88 </a><a href="rtwtypes_h.html#type_uint8_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_uint8_T');" target="_self"><font color="#1122aa">uint8_T</font></a> <a href="#fcn_plook_u8s32u32n31_evenc_s" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'fcn_plook_u8s32u32n31_evenc_s');" target="_self"><font color="#1122aa">plook_u8s32u32n31_evenc_s</font></a>(<a href="rtwtypes_h.html#type_int32_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_int32_T');" target="_self"><font color="#1122aa">int32_T</font></a> u, <a href="rtwtypes_h.html#type_int32_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_int32_T');" target="_self"><font color="#1122aa">int32_T</font></a> bp0, <a href="rtwtypes_h.html#type_uint32_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_uint32_T');" target="_self"><font color="#1122aa">uint32_T</font></a> bpSpace,
|
|
||||||
</span><span><a class="LN" name="89"> 89 </a> <a href="rtwtypes_h.html#type_uint32_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_uint32_T');" target="_self"><font color="#1122aa">uint32_T</font></a> maxIndex, <a href="rtwtypes_h.html#type_uint32_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_uint32_T');" target="_self"><font color="#1122aa">uint32_T</font></a> *fraction);
|
|
||||||
</span><span><a class="LN" name="90"> 90 </a><a href="rtwtypes_h.html#type_int16_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_int16_T');" target="_self"><font color="#1122aa">int16_T</font></a> <a href="#fcn_intrp1d_s16s32s32u8u32n31l_s" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'fcn_intrp1d_s16s32s32u8u32n31l_s');" target="_self"><font color="#1122aa">intrp1d_s16s32s32u8u32n31l_s</font></a>(<a href="rtwtypes_h.html#type_uint8_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_uint8_T');" target="_self"><font color="#1122aa">uint8_T</font></a> bpIndex, <a href="rtwtypes_h.html#type_uint32_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_uint32_T');" target="_self"><font color="#1122aa">uint32_T</font></a> frac, <span class="DT">const</span>
|
|
||||||
</span><span><a class="LN" name="91"> 91 </a> <a href="rtwtypes_h.html#type_int16_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_int16_T');" target="_self"><font color="#1122aa">int16_T</font></a> table[]);
|
|
||||||
</span><span><a class="LN" name="92"> 92 </a><a href="rtwtypes_h.html#type_int32_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_int32_T');" target="_self"><font color="#1122aa">int32_T</font></a> <a href="#fcn_div_nde_s32_floor" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'fcn_div_nde_s32_floor');" target="_self"><font color="#1122aa">div_nde_s32_floor</font></a>(<a href="rtwtypes_h.html#type_int32_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_int32_T');" target="_self"><font color="#1122aa">int32_T</font></a> numerator, <a href="rtwtypes_h.html#type_int32_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_int32_T');" target="_self"><font color="#1122aa">int32_T</font></a> denominator);
|
|
||||||
</span><span><a class="LN" name="93"> 93 </a><a href="rtwtypes_h.html#type_uint8_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_uint8_T');" target="_self"><font color="#1122aa">uint8_T</font></a> <a name="fcn_plook_u8s32u32n31_evenc_s">plook_u8s32u32n31_evenc_s</a>(<a href="rtwtypes_h.html#type_int32_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_int32_T');" target="_self"><font color="#1122aa">int32_T</font></a> u, <a href="rtwtypes_h.html#type_int32_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_int32_T');" target="_self"><font color="#1122aa">int32_T</font></a> bp0, <a href="rtwtypes_h.html#type_uint32_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_uint32_T');" target="_self"><font color="#1122aa">uint32_T</font></a> bpSpace,
|
|
||||||
</span><span><a class="LN" name="94"> 94 </a> <a href="rtwtypes_h.html#type_uint32_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_uint32_T');" target="_self"><font color="#1122aa">uint32_T</font></a> maxIndex, <a href="rtwtypes_h.html#type_uint32_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_uint32_T');" target="_self"><font color="#1122aa">uint32_T</font></a> *fraction)
|
|
||||||
</span><span><a class="LN" name="95"> 95 </a><b>{</b>
|
|
||||||
</span><span><a class="LN" name="96"> 96 </a> <a href="rtwtypes_h.html#type_uint8_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_uint8_T');" target="_self"><font color="#1122aa">uint8_T</font></a> bpIndex;
|
|
||||||
</span><span><a class="LN" name="97"> 97 </a> <a href="rtwtypes_h.html#type_uint32_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_uint32_T');" target="_self"><font color="#1122aa">uint32_T</font></a> uAdjust;
|
|
||||||
</span><span><a class="LN" name="98"> 98 </a> <a href="rtwtypes_h.html#type_uint32_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_uint32_T');" target="_self"><font color="#1122aa">uint32_T</font></a> fbpIndex;
|
|
||||||
</span><span><a class="LN" name="99"> 99 </a>
|
|
||||||
</span><span><a class="LN" name="100"> 100 </a> <span class="CT">/* Prelookup - Index and Fraction</span>
|
|
||||||
</span><span><a class="LN" name="101"> 101 </a><span class="CT"> Index Search method: 'even'</span>
|
|
||||||
</span><span><a class="LN" name="102"> 102 </a><span class="CT"> Extrapolation method: 'Clip'</span>
|
|
||||||
</span><span><a class="LN" name="103"> 103 </a><span class="CT"> Use previous index: 'off'</span>
|
|
||||||
</span><span><a class="LN" name="104"> 104 </a><span class="CT"> Use last breakpoint for index at or above upper limit: 'off'</span>
|
|
||||||
</span><span><a class="LN" name="105"> 105 </a><span class="CT"> Remove protection against out-of-range input in generated code: 'off'</span>
|
|
||||||
</span><span><a class="LN" name="106"> 106 </a><span class="CT"> Rounding mode: 'simplest'</span>
|
|
||||||
</span><span><a class="LN" name="107"> 107 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="108"> 108 </a> <span class="KW">if</span> (u <= bp0) <b>{</b>
|
|
||||||
</span><span><a class="LN" name="109"> 109 </a> bpIndex = 0U;
|
|
||||||
</span><span><a class="LN" name="110"> 110 </a> *fraction = 0U;
|
|
||||||
</span><span><a class="LN" name="111"> 111 </a> <b>}</b> <span class="KW">else</span> <b>{</b>
|
|
||||||
</span><span><a class="LN" name="112"> 112 </a> uAdjust = (<a href="rtwtypes_h.html#type_uint32_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_uint32_T');" target="_self"><font color="#1122aa">uint32_T</font></a>)u - bp0;
|
|
||||||
</span><span><a class="LN" name="113"> 113 </a> fbpIndex = uAdjust / bpSpace;
|
|
||||||
</span><span><a class="LN" name="114"> 114 </a> <span class="KW">if</span> (fbpIndex < maxIndex) <b>{</b>
|
|
||||||
</span><span><a class="LN" name="115"> 115 </a> bpIndex = (<a href="rtwtypes_h.html#type_uint8_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_uint8_T');" target="_self"><font color="#1122aa">uint8_T</font></a>)fbpIndex;
|
|
||||||
</span><span><a class="LN" name="116"> 116 </a> *fraction = (<a href="rtwtypes_h.html#type_uint32_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_uint32_T');" target="_self"><font color="#1122aa">uint32_T</font></a>)(((<a href="rtwtypes_h.html#type_uint64_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_uint64_T');" target="_self"><font color="#1122aa">uint64_T</font></a>)(uAdjust - bpIndex * bpSpace) << 31) /
|
|
||||||
</span><span><a class="LN" name="117"> 117 </a> bpSpace);
|
|
||||||
</span><span><a class="LN" name="118"> 118 </a> <b>}</b> <span class="KW">else</span> <b>{</b>
|
|
||||||
</span><span><a class="LN" name="119"> 119 </a> bpIndex = (<a href="rtwtypes_h.html#type_uint8_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_uint8_T');" target="_self"><font color="#1122aa">uint8_T</font></a>)(maxIndex - 1U);
|
|
||||||
</span><span><a class="LN" name="120"> 120 </a> *fraction = 2147483648U;
|
|
||||||
</span><span><a class="LN" name="121"> 121 </a> <b>}</b>
|
|
||||||
</span><span><a class="LN" name="122"> 122 </a> <b>}</b>
|
|
||||||
</span><span><a class="LN" name="123"> 123 </a>
|
|
||||||
</span><span><a class="LN" name="124"> 124 </a> <span class="KW">return</span> bpIndex;
|
|
||||||
</span><span><a class="LN" name="125"> 125 </a><b>}</b>
|
|
||||||
</span><span><a class="LN" name="126"> 126 </a>
|
|
||||||
</span><span><a class="LN" name="127"> 127 </a><a href="rtwtypes_h.html#type_int16_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_int16_T');" target="_self"><font color="#1122aa">int16_T</font></a> <a name="fcn_intrp1d_s16s32s32u8u32n31l_s">intrp1d_s16s32s32u8u32n31l_s</a>(<a href="rtwtypes_h.html#type_uint8_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_uint8_T');" target="_self"><font color="#1122aa">uint8_T</font></a> bpIndex, <a href="rtwtypes_h.html#type_uint32_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_uint32_T');" target="_self"><font color="#1122aa">uint32_T</font></a> frac, <span class="DT">const</span>
|
|
||||||
</span><span><a class="LN" name="128"> 128 </a> <a href="rtwtypes_h.html#type_int16_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_int16_T');" target="_self"><font color="#1122aa">int16_T</font></a> table[])
|
|
||||||
</span><span><a class="LN" name="129"> 129 </a><b>{</b>
|
|
||||||
</span><span><a class="LN" name="130"> 130 </a> <a href="rtwtypes_h.html#type_uint32_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_uint32_T');" target="_self"><font color="#1122aa">uint32_T</font></a> offset_0d;
|
|
||||||
</span><span><a class="LN" name="131"> 131 </a>
|
|
||||||
</span><span><a class="LN" name="132"> 132 </a> <span class="CT">/* Interpolation 1-D</span>
|
|
||||||
</span><span><a class="LN" name="133"> 133 </a><span class="CT"> Interpolation method: 'Linear'</span>
|
|
||||||
</span><span><a class="LN" name="134"> 134 </a><span class="CT"> Use last breakpoint for index at or above upper limit: 'off'</span>
|
|
||||||
</span><span><a class="LN" name="135"> 135 </a><span class="CT"> Rounding mode: 'simplest'</span>
|
|
||||||
</span><span><a class="LN" name="136"> 136 </a><span class="CT"> Overflow mode: 'wrapping'</span>
|
|
||||||
</span><span><a class="LN" name="137"> 137 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="138"> 138 </a> offset_0d = bpIndex;
|
|
||||||
</span><span><a class="LN" name="139"> 139 </a> <span class="KW">return</span> (<a href="rtwtypes_h.html#type_int16_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_int16_T');" target="_self"><font color="#1122aa">int16_T</font></a>)((<a href="rtwtypes_h.html#type_int16_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_int16_T');" target="_self"><font color="#1122aa">int16_T</font></a>)(((<a href="rtwtypes_h.html#type_int64_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_int64_T');" target="_self"><font color="#1122aa">int64_T</font></a>)(table[offset_0d + 1U] - table[offset_0d])
|
|
||||||
</span><span><a class="LN" name="140"> 140 </a> * frac) >> 31) + table[offset_0d]);
|
|
||||||
</span><span><a class="LN" name="141"> 141 </a><b>}</b>
|
|
||||||
</span><span><a class="LN" name="142"> 142 </a>
|
|
||||||
</span><span><a class="LN" name="143"> 143 </a><a href="rtwtypes_h.html#type_int32_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_int32_T');" target="_self"><font color="#1122aa">int32_T</font></a> <a name="fcn_div_nde_s32_floor">div_nde_s32_floor</a>(<a href="rtwtypes_h.html#type_int32_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_int32_T');" target="_self"><font color="#1122aa">int32_T</font></a> numerator, <a href="rtwtypes_h.html#type_int32_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_int32_T');" target="_self"><font color="#1122aa">int32_T</font></a> denominator)
|
|
||||||
</span><span><a class="LN" name="144"> 144 </a><b>{</b>
|
|
||||||
</span><span><a class="LN" name="145"> 145 </a> <span class="KW">return</span> (((numerator < 0) != (denominator < 0)) && (numerator % denominator !=
|
|
||||||
</span><span><a class="LN" name="146"> 146 </a> 0) ? -1 : 0) + numerator / denominator;
|
|
||||||
</span><span><a class="LN" name="147"> 147 </a><b>}</b>
|
|
||||||
</span><span><a class="LN" name="148"> 148 </a>
|
|
||||||
</span><span><a class="LN" name="149"> 149 </a><span class="CT">/* Model step function */</span>
|
|
||||||
</span><span><a class="LN" name="150"> 150 </a><span class="DT">void</span> <a name="fcn_BLDC_controller_step">BLDC_controller_step</a>(<a href="BLDC_controller_h.html#type_RT_MODEL" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_RT_MODEL');" target="_self"><font color="#1122aa">RT_MODEL</font></a> *<span class="DT">const</span> rtM)
|
|
||||||
</span><span><a class="LN" name="151"> 151 </a><b>{</b>
|
|
||||||
</span><span><a class="LN" name="152"> 152 </a> <a href="BLDC_controller_h.html#type_P" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_P');" target="_self"><font color="#1122aa">P</font></a> *rtP = ((<a href="BLDC_controller_h.html#type_P" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_P');" target="_self"><font color="#1122aa">P</font></a> *) rtM->defaultParam);
|
|
||||||
</span><span><a class="LN" name="153"> 153 </a> <a href="BLDC_controller_h.html#type_DW" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_DW');" target="_self"><font color="#1122aa">DW</font></a> *rtDW = ((<a href="BLDC_controller_h.html#type_DW" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_DW');" target="_self"><font color="#1122aa">DW</font></a> *) rtM->dwork);
|
|
||||||
</span><span><a class="LN" name="154"> 154 </a> <a href="BLDC_controller_h.html#type_ExtU" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_ExtU');" target="_self"><font color="#1122aa">ExtU</font></a> *rtU = (<a href="BLDC_controller_h.html#type_ExtU" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_ExtU');" target="_self"><font color="#1122aa">ExtU</font></a> *) rtM->inputs;
|
|
||||||
</span><span><a class="LN" name="155"> 155 </a> <a href="BLDC_controller_h.html#type_ExtY" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_ExtY');" target="_self"><font color="#1122aa">ExtY</font></a> *rtY = (<a href="BLDC_controller_h.html#type_ExtY" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_ExtY');" target="_self"><font color="#1122aa">ExtY</font></a> *) rtM->outputs;
|
|
||||||
</span><span><a class="LN" name="156"> 156 </a> <a href="rtwtypes_h.html#type_uint8_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_uint8_T');" target="_self"><font color="#1122aa">uint8_T</font></a> rtb_Sum;
|
|
||||||
</span><span><a class="LN" name="157"> 157 </a> <a href="rtwtypes_h.html#type_int32_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_int32_T');" target="_self"><font color="#1122aa">int32_T</font></a> rtb_Abs1;
|
|
||||||
</span><span><a class="LN" name="158"> 158 </a> <a href="rtwtypes_h.html#type_uint8_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_uint8_T');" target="_self"><font color="#1122aa">uint8_T</font></a> rtb_BitwiseOperator;
|
|
||||||
</span><span><a class="LN" name="159"> 159 </a> <a href="rtwtypes_h.html#type_int32_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_int32_T');" target="_self"><font color="#1122aa">int32_T</font></a> rtb_Sum2;
|
|
||||||
</span><span><a class="LN" name="160"> 160 </a> <a href="rtwtypes_h.html#type_int16_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_int16_T');" target="_self"><font color="#1122aa">int16_T</font></a> rtb_Abs2;
|
|
||||||
</span><span><a class="LN" name="161"> 161 </a> <a href="rtwtypes_h.html#type_int16_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_int16_T');" target="_self"><font color="#1122aa">int16_T</font></a> rtb_Sum1_a;
|
|
||||||
</span><span><a class="LN" name="162"> 162 </a> <a href="rtwtypes_h.html#type_int32_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_int32_T');" target="_self"><font color="#1122aa">int32_T</font></a> rtb_Abs5;
|
|
||||||
</span><span><a class="LN" name="163"> 163 </a> <a href="rtwtypes_h.html#type_int8_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_int8_T');" target="_self"><font color="#1122aa">int8_T</font></a> rtAction;
|
|
||||||
</span><span><a class="LN" name="164"> 164 </a> <a href="rtwtypes_h.html#type_int8_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_int8_T');" target="_self"><font color="#1122aa">int8_T</font></a> rtb_Sum2_h;
|
|
||||||
</span><span><a class="LN" name="165"> 165 </a> <a href="rtwtypes_h.html#type_uint32_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_uint32_T');" target="_self"><font color="#1122aa">uint32_T</font></a> rtb_r_phaAdvDC_XA_o2;
|
|
||||||
</span><span><a class="LN" name="166"> 166 </a> <a href="rtwtypes_h.html#type_int32_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_int32_T');" target="_self"><font color="#1122aa">int32_T</font></a> rtb_Switch1_idx_1;
|
|
||||||
</span><span><a class="LN" name="167"> 167 </a>
|
|
||||||
</span><span><a class="LN" name="168"> 168 </a> <span class="CT">/* Outputs for Atomic SubSystem: '<Root>/BLDC_controller' */</span>
|
|
||||||
</span><span><a class="LN" name="169"> 169 </a> <span class="CT">/* Sum: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:15')" name="code2model"><font color="#117755"><i><S12>/Sum</i></font></a>' incorporates:</span>
|
|
||||||
</span><span><a class="LN" name="170"> 170 </a><span class="CT"> * Gain: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:17')" name="code2model"><font color="#117755"><i><S12>/g_Ha</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="171"> 171 </a><span class="CT"> * Gain: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:18')" name="code2model"><font color="#117755"><i><S12>/g_Hb</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="172"> 172 </a><span class="CT"> * Inport: '<Root>/b_hallA '</span>
|
|
||||||
</span><span><a class="LN" name="173"> 173 </a><span class="CT"> * Inport: '<Root>/b_hallB'</span>
|
|
||||||
</span><span><a class="LN" name="174"> 174 </a><span class="CT"> * Inport: '<Root>/b_hallC'</span>
|
|
||||||
</span><span><a class="LN" name="175"> 175 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="176"> 176 </a> rtb_Sum = (<a href="rtwtypes_h.html#type_uint8_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_uint8_T');" target="_self"><font color="#1122aa">uint8_T</font></a>)((<a href="rtwtypes_h.html#type_uint32_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_uint32_T');" target="_self"><font color="#1122aa">uint32_T</font></a>)(<a href="rtwtypes_h.html#type_uint8_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_uint8_T');" target="_self"><font color="#1122aa">uint8_T</font></a>)((<a href="rtwtypes_h.html#type_uint32_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_uint32_T');" target="_self"><font color="#1122aa">uint32_T</font></a>)(<a href="rtwtypes_h.html#type_uint8_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_uint8_T');" target="_self"><font color="#1122aa">uint8_T</font></a>)(rtU->b_hallA << 2)
|
|
||||||
</span><span><a class="LN" name="177"> 177 </a> + (<a href="rtwtypes_h.html#type_uint8_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_uint8_T');" target="_self"><font color="#1122aa">uint8_T</font></a>)(rtU->b_hallB << 1)) + rtU->b_hallC);
|
|
||||||
</span><span><a class="LN" name="178"> 178 </a>
|
|
||||||
</span><span><a class="LN" name="179"> 179 </a> <span class="CT">/* Abs: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1660')" name="code2model"><font color="#117755"><i><S2>/Abs1</i></font></a>' incorporates:</span>
|
|
||||||
</span><span><a class="LN" name="180"> 180 </a><span class="CT"> * Inport: '<Root>/r_DC'</span>
|
|
||||||
</span><span><a class="LN" name="181"> 181 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="182"> 182 </a> <span class="KW">if</span> (rtU->r_DC < 0) <b>{</b>
|
|
||||||
</span><span><a class="LN" name="183"> 183 </a> rtb_Abs1 = -rtU->r_DC;
|
|
||||||
</span><span><a class="LN" name="184"> 184 </a> <b>}</b> <span class="KW">else</span> <b>{</b>
|
|
||||||
</span><span><a class="LN" name="185"> 185 </a> rtb_Abs1 = rtU->r_DC;
|
|
||||||
</span><span><a class="LN" name="186"> 186 </a> <b>}</b>
|
|
||||||
</span><span><a class="LN" name="187"> 187 </a>
|
|
||||||
</span><span><a class="LN" name="188"> 188 </a> <span class="CT">/* End of Abs: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1660')" name="code2model"><font color="#117755"><i><S2>/Abs1</i></font></a>' */</span>
|
|
||||||
</span><span><a class="LN" name="189"> 189 </a>
|
|
||||||
</span><span><a class="LN" name="190"> 190 </a> <span class="CT">/* S-Function (sfix_bitop): '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1535')" name="code2model"><font color="#117755"><i><S11>/Bitwise Operator</i></font></a>' incorporates:</span>
|
|
||||||
</span><span><a class="LN" name="191"> 191 </a><span class="CT"> * Inport: '<Root>/b_hallA '</span>
|
|
||||||
</span><span><a class="LN" name="192"> 192 </a><span class="CT"> * Inport: '<Root>/b_hallB'</span>
|
|
||||||
</span><span><a class="LN" name="193"> 193 </a><span class="CT"> * Inport: '<Root>/b_hallC'</span>
|
|
||||||
</span><span><a class="LN" name="194"> 194 </a><span class="CT"> * UnitDelay: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:31')" name="code2model"><font color="#117755"><i><S11>/UnitDelay</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="195"> 195 </a><span class="CT"> * UnitDelay: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:32')" name="code2model"><font color="#117755"><i><S11>/UnitDelay1</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="196"> 196 </a><span class="CT"> * UnitDelay: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:33')" name="code2model"><font color="#117755"><i><S11>/UnitDelay2</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="197"> 197 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="198"> 198 </a> rtb_BitwiseOperator = (<a href="rtwtypes_h.html#type_uint8_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_uint8_T');" target="_self"><font color="#1122aa">uint8_T</font></a>)(rtU->b_hallA ^ rtU->b_hallB ^ rtU->b_hallC ^
|
|
||||||
</span><span><a class="LN" name="199"> 199 </a> rtDW->UnitDelay_DSTATE ^ rtDW->UnitDelay1_DSTATE_i ^
|
|
||||||
</span><span><a class="LN" name="200"> 200 </a> rtDW->UnitDelay2_DSTATE_h);
|
|
||||||
</span><span><a class="LN" name="201"> 201 </a>
|
|
||||||
</span><span><a class="LN" name="202"> 202 </a> <span class="CT">/* If: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1339')" name="code2model"><font color="#117755"><i><S14>/If1</i></font></a>' incorporates:</span>
|
|
||||||
</span><span><a class="LN" name="203"> 203 </a><span class="CT"> * Constant: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:64')" name="code2model"><font color="#117755"><i><S14>/Constant6</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="204"> 204 </a><span class="CT"> * Constant: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1651:1616')" name="code2model"><font color="#117755"><i><S17>/Constant1</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="205"> 205 </a><span class="CT"> * Constant: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1651:1617')" name="code2model"><font color="#117755"><i><S17>/Constant23</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="206"> 206 </a><span class="CT"> * If: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1313')" name="code2model"><font color="#117755"><i><S7>/If2</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="207"> 207 </a><span class="CT"> * Inport: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1341')" name="code2model"><font color="#117755"><i><S15>/z_counterRawPrev</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="208"> 208 </a><span class="CT"> * RelationalOperator: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1651:1618')" name="code2model"><font color="#117755"><i><S17>/Relational Operator1</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="209"> 209 </a><span class="CT"> * Sum: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:142')" name="code2model"><font color="#117755"><i><S14>/Sum1</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="210"> 210 </a><span class="CT"> * Switch: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1651:1619')" name="code2model"><font color="#117755"><i><S17>/Switch1</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="211"> 211 </a><span class="CT"> * Switch: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1651:1620')" name="code2model"><font color="#117755"><i><S17>/Switch2</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="212"> 212 </a><span class="CT"> * UnitDelay: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1507')" name="code2model"><font color="#117755"><i><S14>/UnitDelay1</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="213"> 213 </a><span class="CT"> * UnitDelay: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1651:1621')" name="code2model"><font color="#117755"><i><S17>/UnitDelay1</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="214"> 214 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="215"> 215 </a> <span class="KW">if</span> (rtb_BitwiseOperator != 0) <b>{</b>
|
|
||||||
</span><span><a class="LN" name="216"> 216 </a> <span class="CT">/* Outputs for IfAction SubSystem: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:38')" name="code2model"><font color="#117755"><i><S7>/F01_03_Direction_Detection</i></font></a>' incorporates:</span>
|
|
||||||
</span><span><a class="LN" name="217"> 217 </a><span class="CT"> * ActionPort: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1314')" name="code2model"><font color="#117755"><i><S13>/Action Port</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="218"> 218 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="219"> 219 </a> <span class="CT">/* UnitDelay: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1631')" name="code2model"><font color="#117755"><i><S13>/UnitDelay1</i></font></a>' */</span>
|
|
||||||
</span><span><a class="LN" name="220"> 220 </a> rtDW->UnitDelay1 = rtDW->Switch2;
|
|
||||||
</span><span><a class="LN" name="221"> 221 </a>
|
|
||||||
</span><span><a class="LN" name="222"> 222 </a> <span class="CT">/* Sum: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:51')" name="code2model"><font color="#117755"><i><S13>/Sum2</i></font></a>' incorporates:</span>
|
|
||||||
</span><span><a class="LN" name="223"> 223 </a><span class="CT"> * Constant: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:22')" name="code2model"><font color="#117755"><i><S12>/vec_hallToPos</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="224"> 224 </a><span class="CT"> * Selector: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:14')" name="code2model"><font color="#117755"><i><S12>/Selector</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="225"> 225 </a><span class="CT"> * UnitDelay: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1318')" name="code2model"><font color="#117755"><i><S13>/UnitDelay2</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="226"> 226 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="227"> 227 </a> rtb_Sum2_h = (<a href="rtwtypes_h.html#type_int8_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_int8_T');" target="_self"><font color="#1122aa">int8_T</font></a>)(<a href="BLDC_controller_data_c.html#var_rtConstP" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'var_rtConstP');" target="_self"><font color="#1122aa">rtConstP</font></a>.vec_hallToPos_Value[rtb_Sum] -
|
|
||||||
</span><span><a class="LN" name="228"> 228 </a> rtDW->UnitDelay2_DSTATE_i);
|
|
||||||
</span><span><a class="LN" name="229"> 229 </a>
|
|
||||||
</span><span><a class="LN" name="230"> 230 </a> <span class="CT">/* Switch: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:52')" name="code2model"><font color="#117755"><i><S13>/Switch2</i></font></a>' incorporates:</span>
|
|
||||||
</span><span><a class="LN" name="231"> 231 </a><span class="CT"> * Constant: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:42')" name="code2model"><font color="#117755"><i><S13>/Constant20</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="232"> 232 </a><span class="CT"> * Constant: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:43')" name="code2model"><font color="#117755"><i><S13>/Constant23</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="233"> 233 </a><span class="CT"> * Constant: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:44')" name="code2model"><font color="#117755"><i><S13>/Constant24</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="234"> 234 </a><span class="CT"> * Constant: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:45')" name="code2model"><font color="#117755"><i><S13>/Constant8</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="235"> 235 </a><span class="CT"> * Logic: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:48')" name="code2model"><font color="#117755"><i><S13>/Logical Operator3</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="236"> 236 </a><span class="CT"> * RelationalOperator: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:49')" name="code2model"><font color="#117755"><i><S13>/Relational Operator1</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="237"> 237 </a><span class="CT"> * RelationalOperator: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:50')" name="code2model"><font color="#117755"><i><S13>/Relational Operator6</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="238"> 238 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="239"> 239 </a> <span class="KW">if</span> ((rtb_Sum2_h == 1) || (rtb_Sum2_h == -5)) <b>{</b>
|
|
||||||
</span><span><a class="LN" name="240"> 240 </a> rtDW->Switch2 = 1;
|
|
||||||
</span><span><a class="LN" name="241"> 241 </a> <b>}</b> <span class="KW">else</span> <b>{</b>
|
|
||||||
</span><span><a class="LN" name="242"> 242 </a> rtDW->Switch2 = -1;
|
|
||||||
</span><span><a class="LN" name="243"> 243 </a> <b>}</b>
|
|
||||||
</span><span><a class="LN" name="244"> 244 </a>
|
|
||||||
</span><span><a class="LN" name="245"> 245 </a> <span class="CT">/* End of Switch: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:52')" name="code2model"><font color="#117755"><i><S13>/Switch2</i></font></a>' */</span>
|
|
||||||
</span><span><a class="LN" name="246"> 246 </a>
|
|
||||||
</span><span><a class="LN" name="247"> 247 </a> <span class="CT">/* Update for UnitDelay: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1318')" name="code2model"><font color="#117755"><i><S13>/UnitDelay2</i></font></a>' incorporates:</span>
|
|
||||||
</span><span><a class="LN" name="248"> 248 </a><span class="CT"> * Constant: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:22')" name="code2model"><font color="#117755"><i><S12>/vec_hallToPos</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="249"> 249 </a><span class="CT"> * Selector: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:14')" name="code2model"><font color="#117755"><i><S12>/Selector</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="250"> 250 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="251"> 251 </a> rtDW->UnitDelay2_DSTATE_i = <a href="BLDC_controller_data_c.html#var_rtConstP" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'var_rtConstP');" target="_self"><font color="#1122aa">rtConstP</font></a>.vec_hallToPos_Value[rtb_Sum];
|
|
||||||
</span><span><a class="LN" name="252"> 252 </a>
|
|
||||||
</span><span><a class="LN" name="253"> 253 </a> <span class="CT">/* End of Outputs for SubSystem: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:38')" name="code2model"><font color="#117755"><i><S7>/F01_03_Direction_Detection</i></font></a>' */</span>
|
|
||||||
</span><span><a class="LN" name="254"> 254 </a> rtb_Abs2 = 1;
|
|
||||||
</span><span><a class="LN" name="255"> 255 </a>
|
|
||||||
</span><span><a class="LN" name="256"> 256 </a> <span class="CT">/* Outputs for IfAction SubSystem: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1340')" name="code2model"><font color="#117755"><i><S14>/Counter_Hold_and_Error_Calculation</i></font></a>' incorporates:</span>
|
|
||||||
</span><span><a class="LN" name="257"> 257 </a><span class="CT"> * ActionPort: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1344')" name="code2model"><font color="#117755"><i><S15>/Action Port</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="258"> 258 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="259"> 259 </a> rtDW->z_counterRawPrev = rtDW->UnitDelay1_DSTATE_c;
|
|
||||||
</span><span><a class="LN" name="260"> 260 </a>
|
|
||||||
</span><span><a class="LN" name="261"> 261 </a> <span class="CT">/* Sum: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1454')" name="code2model"><font color="#117755"><i><S15>/Sum4</i></font></a>' incorporates:</span>
|
|
||||||
</span><span><a class="LN" name="262"> 262 </a><span class="CT"> * Constant: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:64')" name="code2model"><font color="#117755"><i><S14>/Constant6</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="263"> 263 </a><span class="CT"> * Constant: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1651:1617')" name="code2model"><font color="#117755"><i><S17>/Constant23</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="264"> 264 </a><span class="CT"> * Inport: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1341')" name="code2model"><font color="#117755"><i><S15>/z_counterRawPrev</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="265"> 265 </a><span class="CT"> * Sum: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:142')" name="code2model"><font color="#117755"><i><S14>/Sum1</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="266"> 266 </a><span class="CT"> * UnitDelay: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1507')" name="code2model"><font color="#117755"><i><S14>/UnitDelay1</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="267"> 267 </a><span class="CT"> * UnitDelay: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:169')" name="code2model"><font color="#117755"><i><S15>/z_counter2</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="268"> 268 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="269"> 269 </a> rtDW->Sum4 = (<a href="rtwtypes_h.html#type_int16_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_int16_T');" target="_self"><font color="#1122aa">int16_T</font></a>)(rtDW->z_counterRawPrev - rtDW->z_counter2_DSTATE);
|
|
||||||
</span><span><a class="LN" name="270"> 270 </a>
|
|
||||||
</span><span><a class="LN" name="271"> 271 </a> <span class="CT">/* Update for UnitDelay: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:169')" name="code2model"><font color="#117755"><i><S15>/z_counter2</i></font></a>' */</span>
|
|
||||||
</span><span><a class="LN" name="272"> 272 </a> rtDW->z_counter2_DSTATE = rtDW->z_counterRawPrev;
|
|
||||||
</span><span><a class="LN" name="273"> 273 </a>
|
|
||||||
</span><span><a class="LN" name="274"> 274 </a> <span class="CT">/* End of Outputs for SubSystem: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1340')" name="code2model"><font color="#117755"><i><S14>/Counter_Hold_and_Error_Calculation</i></font></a>' */</span>
|
|
||||||
</span><span><a class="LN" name="275"> 275 </a> <b>}</b> <span class="KW">else</span> <b>{</b>
|
|
||||||
</span><span><a class="LN" name="276"> 276 </a> <span class="KW">if</span> (rtDW->UnitDelay1_DSTATE < rtP->z_maxCntRst) <b>{</b>
|
|
||||||
</span><span><a class="LN" name="277"> 277 </a> <span class="CT">/* Switch: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1651:1620')" name="code2model"><font color="#117755"><i><S17>/Switch2</i></font></a>' incorporates:</span>
|
|
||||||
</span><span><a class="LN" name="278"> 278 </a><span class="CT"> * UnitDelay: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1651:1621')" name="code2model"><font color="#117755"><i><S17>/UnitDelay1</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="279"> 279 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="280"> 280 </a> rtb_Abs2 = rtDW->UnitDelay1_DSTATE;
|
|
||||||
</span><span><a class="LN" name="281"> 281 </a> <b>}</b> <span class="KW">else</span> <b>{</b>
|
|
||||||
</span><span><a class="LN" name="282"> 282 </a> <span class="CT">/* Switch: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1651:1620')" name="code2model"><font color="#117755"><i><S17>/Switch2</i></font></a>' incorporates:</span>
|
|
||||||
</span><span><a class="LN" name="283"> 283 </a><span class="CT"> * Constant: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1651:1616')" name="code2model"><font color="#117755"><i><S17>/Constant1</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="284"> 284 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="285"> 285 </a> rtb_Abs2 = rtP->z_maxCntRst;
|
|
||||||
</span><span><a class="LN" name="286"> 286 </a> <b>}</b>
|
|
||||||
</span><span><a class="LN" name="287"> 287 </a>
|
|
||||||
</span><span><a class="LN" name="288"> 288 </a> rtb_Abs2++;
|
|
||||||
</span><span><a class="LN" name="289"> 289 </a> <b>}</b>
|
|
||||||
</span><span><a class="LN" name="290"> 290 </a>
|
|
||||||
</span><span><a class="LN" name="291"> 291 </a> <span class="CT">/* End of If: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1339')" name="code2model"><font color="#117755"><i><S14>/If1</i></font></a>' */</span>
|
|
||||||
</span><span><a class="LN" name="292"> 292 </a>
|
|
||||||
</span><span><a class="LN" name="293"> 293 </a> <span class="CT">/* Sum: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:142')" name="code2model"><font color="#117755"><i><S14>/Sum1</i></font></a>' */</span>
|
|
||||||
</span><span><a class="LN" name="294"> 294 </a> rtb_Sum1_a = rtb_Abs2;
|
|
||||||
</span><span><a class="LN" name="295"> 295 </a>
|
|
||||||
</span><span><a class="LN" name="296"> 296 </a> <span class="CT">/* Switch: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1638')" name="code2model"><font color="#117755"><i><S16>/Switch1</i></font></a>' incorporates:</span>
|
|
||||||
</span><span><a class="LN" name="297"> 297 </a><span class="CT"> * Constant: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1637')" name="code2model"><font color="#117755"><i><S16>/Constant1</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="298"> 298 </a><span class="CT"> * Constant: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1447')" name="code2model"><font color="#117755"><i><S16>/cf_spdCoef</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="299"> 299 </a><span class="CT"> * Constant: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1625')" name="code2model"><font color="#117755"><i><S16>/z_maxCntRst</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="300"> 300 </a><span class="CT"> * Logic: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1627')" name="code2model"><font color="#117755"><i><S16>/Logical Operator1</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="301"> 301 </a><span class="CT"> * Product: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1438')" name="code2model"><font color="#117755"><i><S16>/Divide4</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="302"> 302 </a><span class="CT"> * RelationalOperator: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1624')" name="code2model"><font color="#117755"><i><S16>/Relational Operator2</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="303"> 303 </a><span class="CT"> * RelationalOperator: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1628')" name="code2model"><font color="#117755"><i><S16>/Relational Operator5</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="304"> 304 </a><span class="CT"> * Sum: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:142')" name="code2model"><font color="#117755"><i><S14>/Sum1</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="305"> 305 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="306"> 306 </a> <span class="KW">if</span> ((rtb_Abs2 > rtP->z_maxCntRst) || (rtDW->Switch2 != rtDW->UnitDelay1)) <b>{</b>
|
|
||||||
</span><span><a class="LN" name="307"> 307 </a> rtb_Sum2 = 0;
|
|
||||||
</span><span><a class="LN" name="308"> 308 </a> <b>}</b> <span class="KW">else</span> <b>{</b>
|
|
||||||
</span><span><a class="LN" name="309"> 309 </a> rtb_Sum2 = rtP->cf_speedCoef * rtDW->Switch2 / rtDW->z_counterRawPrev;
|
|
||||||
</span><span><a class="LN" name="310"> 310 </a> <b>}</b>
|
|
||||||
</span><span><a class="LN" name="311"> 311 </a>
|
|
||||||
</span><span><a class="LN" name="312"> 312 </a> <span class="CT">/* End of Switch: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1638')" name="code2model"><font color="#117755"><i><S16>/Switch1</i></font></a>' */</span>
|
|
||||||
</span><span><a class="LN" name="313"> 313 </a>
|
|
||||||
</span><span><a class="LN" name="314"> 314 </a> <span class="CT">/* Product: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1436')" name="code2model"><font color="#117755"><i><S16>/Divide2</i></font></a>' incorporates:</span>
|
|
||||||
</span><span><a class="LN" name="315"> 315 </a><span class="CT"> * Constant: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1433')" name="code2model"><font color="#117755"><i><S16>/Constant2</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="316"> 316 </a><span class="CT"> * Constant: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1434')" name="code2model"><font color="#117755"><i><S16>/Constant3</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="317"> 317 </a><span class="CT"> * Constant: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1448')" name="code2model"><font color="#117755"><i><S16>/cf_speedFilt</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="318"> 318 </a><span class="CT"> * Product: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1435')" name="code2model"><font color="#117755"><i><S16>/Divide1</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="319"> 319 </a><span class="CT"> * Product: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1437')" name="code2model"><font color="#117755"><i><S16>/Divide3</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="320"> 320 </a><span class="CT"> * Sum: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1443')" name="code2model"><font color="#117755"><i><S16>/Sum1</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="321"> 321 </a><span class="CT"> * Sum: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1444')" name="code2model"><font color="#117755"><i><S16>/Sum2</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="322"> 322 </a><span class="CT"> * UnitDelay: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1446')" name="code2model"><font color="#117755"><i><S16>/UnitDelay2</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="323"> 323 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="324"> 324 </a> rtb_Sum2 = ((100 - rtP->cf_speedFilt) * rtDW->UnitDelay2_DSTATE + rtb_Sum2 *
|
|
||||||
</span><span><a class="LN" name="325"> 325 </a> rtP->cf_speedFilt) / 100;
|
|
||||||
</span><span><a class="LN" name="326"> 326 </a>
|
|
||||||
</span><span><a class="LN" name="327"> 327 </a> <span class="CT">/* Abs: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1672')" name="code2model"><font color="#117755"><i><S16>/Abs5</i></font></a>' */</span>
|
|
||||||
</span><span><a class="LN" name="328"> 328 </a> <span class="KW">if</span> (rtb_Sum2 < 0) <b>{</b>
|
|
||||||
</span><span><a class="LN" name="329"> 329 </a> rtb_Abs5 = -rtb_Sum2;
|
|
||||||
</span><span><a class="LN" name="330"> 330 </a> <b>}</b> <span class="KW">else</span> <b>{</b>
|
|
||||||
</span><span><a class="LN" name="331"> 331 </a> rtb_Abs5 = rtb_Sum2;
|
|
||||||
</span><span><a class="LN" name="332"> 332 </a> <b>}</b>
|
|
||||||
</span><span><a class="LN" name="333"> 333 </a>
|
|
||||||
</span><span><a class="LN" name="334"> 334 </a> <span class="CT">/* End of Abs: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1672')" name="code2model"><font color="#117755"><i><S16>/Abs5</i></font></a>' */</span>
|
|
||||||
</span><span><a class="LN" name="335"> 335 </a>
|
|
||||||
</span><span><a class="LN" name="336"> 336 </a> <span class="CT">/* Relay: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1328')" name="code2model"><font color="#117755"><i><S14>/n_commDeacv</i></font></a>' */</span>
|
|
||||||
</span><span><a class="LN" name="337"> 337 </a> <span class="KW">if</span> (rtb_Abs5 >= rtP->n_commDeacvHi) <b>{</b>
|
|
||||||
</span><span><a class="LN" name="338"> 338 </a> rtDW->n_commDeacv_Mode = true;
|
|
||||||
</span><span><a class="LN" name="339"> 339 </a> <b>}</b> <span class="KW">else</span> <b>{</b>
|
|
||||||
</span><span><a class="LN" name="340"> 340 </a> <span class="KW">if</span> (rtb_Abs5 <= rtP->n_commAcvLo) <b>{</b>
|
|
||||||
</span><span><a class="LN" name="341"> 341 </a> rtDW->n_commDeacv_Mode = false;
|
|
||||||
</span><span><a class="LN" name="342"> 342 </a> <b>}</b>
|
|
||||||
</span><span><a class="LN" name="343"> 343 </a> <b>}</b>
|
|
||||||
</span><span><a class="LN" name="344"> 344 </a>
|
|
||||||
</span><span><a class="LN" name="345"> 345 </a> <span class="CT">/* Abs: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1366')" name="code2model"><font color="#117755"><i><S14>/Abs2</i></font></a>' */</span>
|
|
||||||
</span><span><a class="LN" name="346"> 346 </a> <span class="KW">if</span> (rtDW->Sum4 < 0) <b>{</b>
|
|
||||||
</span><span><a class="LN" name="347"> 347 </a> rtb_Abs2 = (<a href="rtwtypes_h.html#type_int16_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_int16_T');" target="_self"><font color="#1122aa">int16_T</font></a>)-rtDW->Sum4;
|
|
||||||
</span><span><a class="LN" name="348"> 348 </a> <b>}</b> <span class="KW">else</span> <b>{</b>
|
|
||||||
</span><span><a class="LN" name="349"> 349 </a> rtb_Abs2 = rtDW->Sum4;
|
|
||||||
</span><span><a class="LN" name="350"> 350 </a> <b>}</b>
|
|
||||||
</span><span><a class="LN" name="351"> 351 </a>
|
|
||||||
</span><span><a class="LN" name="352"> 352 </a> <span class="CT">/* End of Abs: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1366')" name="code2model"><font color="#117755"><i><S14>/Abs2</i></font></a>' */</span>
|
|
||||||
</span><span><a class="LN" name="353"> 353 </a>
|
|
||||||
</span><span><a class="LN" name="354"> 354 </a> <span class="CT">/* Relay: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1518')" name="code2model"><font color="#117755"><i><S14>/dz_counter</i></font></a>' */</span>
|
|
||||||
</span><span><a class="LN" name="355"> 355 </a> <span class="KW">if</span> (rtb_Abs2 >= rtP->dz_counterHi) <b>{</b>
|
|
||||||
</span><span><a class="LN" name="356"> 356 </a> rtDW->dz_counter_Mode = true;
|
|
||||||
</span><span><a class="LN" name="357"> 357 </a> <b>}</b> <span class="KW">else</span> <b>{</b>
|
|
||||||
</span><span><a class="LN" name="358"> 358 </a> <span class="KW">if</span> (rtb_Abs2 <= rtP->dz_counterLo) <b>{</b>
|
|
||||||
</span><span><a class="LN" name="359"> 359 </a> rtDW->dz_counter_Mode = false;
|
|
||||||
</span><span><a class="LN" name="360"> 360 </a> <b>}</b>
|
|
||||||
</span><span><a class="LN" name="361"> 361 </a> <b>}</b>
|
|
||||||
</span><span><a class="LN" name="362"> 362 </a>
|
|
||||||
</span><span><a class="LN" name="363"> 363 </a> <span class="CT">/* If: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:434')" name="code2model"><font color="#117755"><i><S2>/If1</i></font></a>' incorporates:</span>
|
|
||||||
</span><span><a class="LN" name="364"> 364 </a><span class="CT"> * Constant: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:208')" name="code2model"><font color="#117755"><i><S7>/z_ctrlTypSel1</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="365"> 365 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="366"> 366 </a> rtb_Sum2_h = rtDW->If1_ActiveSubsystem;
|
|
||||||
</span><span><a class="LN" name="367"> 367 </a> rtAction = -1;
|
|
||||||
</span><span><a class="LN" name="368"> 368 </a> <span class="KW">if</span> (rtP->z_ctrlTypSel != 0) <b>{</b>
|
|
||||||
</span><span><a class="LN" name="369"> 369 </a> rtAction = 0;
|
|
||||||
</span><span><a class="LN" name="370"> 370 </a> <b>}</b>
|
|
||||||
</span><span><a class="LN" name="371"> 371 </a>
|
|
||||||
</span><span><a class="LN" name="372"> 372 </a> rtDW->If1_ActiveSubsystem = rtAction;
|
|
||||||
</span><span><a class="LN" name="373"> 373 </a> <span class="KW">if</span> ((rtb_Sum2_h != rtAction) && (rtb_Sum2_h == 0)) <b>{</b>
|
|
||||||
</span><span><a class="LN" name="374"> 374 </a> <span class="CT">/* Disable for Outport: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:278')" name="code2model"><font color="#117755"><i><S8>/a_elecAngleAdv</i></font></a>' */</span>
|
|
||||||
</span><span><a class="LN" name="375"> 375 </a> rtDW->Switch_PhaAdv = 0;
|
|
||||||
</span><span><a class="LN" name="376"> 376 </a>
|
|
||||||
</span><span><a class="LN" name="377"> 377 </a> <span class="CT">/* Disable for Outport: '<Root>/a_elecAngle' incorporates:</span>
|
|
||||||
</span><span><a class="LN" name="378"> 378 </a><span class="CT"> * Outport: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:279')" name="code2model"><font color="#117755"><i><S8>/a_elecAngle</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="379"> 379 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="380"> 380 </a> rtY->a_elecAngle = 0;
|
|
||||||
</span><span><a class="LN" name="381"> 381 </a> <b>}</b>
|
|
||||||
</span><span><a class="LN" name="382"> 382 </a>
|
|
||||||
</span><span><a class="LN" name="383"> 383 </a> <span class="KW">if</span> (rtAction == 0) <b>{</b>
|
|
||||||
</span><span><a class="LN" name="384"> 384 </a> <span class="CT">/* Outputs for IfAction SubSystem: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:215')" name="code2model"><font color="#117755"><i><S2>/F02_Electrical_Angle_Calculation</i></font></a>' incorporates:</span>
|
|
||||||
</span><span><a class="LN" name="385"> 385 </a><span class="CT"> * ActionPort: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:221')" name="code2model"><font color="#117755"><i><S8>/Action Port</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="386"> 386 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="387"> 387 </a> <span class="CT">/* Switch: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1478')" name="code2model"><font color="#117755"><i><S8>/Switch3</i></font></a>' incorporates:</span>
|
|
||||||
</span><span><a class="LN" name="388"> 388 </a><span class="CT"> * Constant: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:22')" name="code2model"><font color="#117755"><i><S12>/vec_hallToPos</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="389"> 389 </a><span class="CT"> * Constant: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1464')" name="code2model"><font color="#117755"><i><S8>/Constant16</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="390"> 390 </a><span class="CT"> * Gain: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:17')" name="code2model"><font color="#117755"><i><S12>/g_Ha</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="391"> 391 </a><span class="CT"> * Gain: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:18')" name="code2model"><font color="#117755"><i><S12>/g_Hb</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="392"> 392 </a><span class="CT"> * Inport: '<Root>/b_hallA '</span>
|
|
||||||
</span><span><a class="LN" name="393"> 393 </a><span class="CT"> * Inport: '<Root>/b_hallB'</span>
|
|
||||||
</span><span><a class="LN" name="394"> 394 </a><span class="CT"> * Inport: '<Root>/b_hallC'</span>
|
|
||||||
</span><span><a class="LN" name="395"> 395 </a><span class="CT"> * RelationalOperator: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1475')" name="code2model"><font color="#117755"><i><S8>/Relational Operator7</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="396"> 396 </a><span class="CT"> * Selector: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:14')" name="code2model"><font color="#117755"><i><S12>/Selector</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="397"> 397 </a><span class="CT"> * Sum: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:15')" name="code2model"><font color="#117755"><i><S12>/Sum</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="398"> 398 </a><span class="CT"> * Sum: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1476')" name="code2model"><font color="#117755"><i><S8>/Sum1</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="399"> 399 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="400"> 400 </a> <span class="KW">if</span> (rtDW->Switch2 == 1) <b>{</b>
|
|
||||||
</span><span><a class="LN" name="401"> 401 </a> rtb_Sum2_h = <a href="BLDC_controller_data_c.html#var_rtConstP" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'var_rtConstP');" target="_self"><font color="#1122aa">rtConstP</font></a>.vec_hallToPos_Value[rtb_Sum];
|
|
||||||
</span><span><a class="LN" name="402"> 402 </a> <b>}</b> <span class="KW">else</span> <b>{</b>
|
|
||||||
</span><span><a class="LN" name="403"> 403 </a> rtb_Sum2_h = (<a href="rtwtypes_h.html#type_int8_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_int8_T');" target="_self"><font color="#1122aa">int8_T</font></a>)(<a href="BLDC_controller_data_c.html#var_rtConstP" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'var_rtConstP');" target="_self"><font color="#1122aa">rtConstP</font></a>.vec_hallToPos_Value[(<a href="rtwtypes_h.html#type_uint8_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_uint8_T');" target="_self"><font color="#1122aa">uint8_T</font></a>)((<a href="rtwtypes_h.html#type_uint32_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_uint32_T');" target="_self"><font color="#1122aa">uint32_T</font></a>)
|
|
||||||
</span><span><a class="LN" name="404"> 404 </a> (<a href="rtwtypes_h.html#type_uint8_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_uint8_T');" target="_self"><font color="#1122aa">uint8_T</font></a>)((<a href="rtwtypes_h.html#type_uint32_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_uint32_T');" target="_self"><font color="#1122aa">uint32_T</font></a>)(<a href="rtwtypes_h.html#type_uint8_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_uint8_T');" target="_self"><font color="#1122aa">uint8_T</font></a>)(rtU->b_hallA << 2) + (<a href="rtwtypes_h.html#type_uint8_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_uint8_T');" target="_self"><font color="#1122aa">uint8_T</font></a>)
|
|
||||||
</span><span><a class="LN" name="405"> 405 </a> (rtU->b_hallB << 1)) + rtU->b_hallC)] + 1);
|
|
||||||
</span><span><a class="LN" name="406"> 406 </a> <b>}</b>
|
|
||||||
</span><span><a class="LN" name="407"> 407 </a>
|
|
||||||
</span><span><a class="LN" name="408"> 408 </a> <span class="CT">/* End of Switch: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1478')" name="code2model"><font color="#117755"><i><S8>/Switch3</i></font></a>' */</span>
|
|
||||||
</span><span><a class="LN" name="409"> 409 </a>
|
|
||||||
</span><span><a class="LN" name="410"> 410 </a> <span class="CT">/* Outport: '<Root>/a_elecAngle' incorporates:</span>
|
|
||||||
</span><span><a class="LN" name="411"> 411 </a><span class="CT"> * Constant: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1479')" name="code2model"><font color="#117755"><i><S8>/a_elecAngle1</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="412"> 412 </a><span class="CT"> * Product: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1466')" name="code2model"><font color="#117755"><i><S8>/Divide4</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="413"> 413 </a><span class="CT"> * Product: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1467')" name="code2model"><font color="#117755"><i><S8>/Divide5</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="414"> 414 </a><span class="CT"> * Product: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1474')" name="code2model"><font color="#117755"><i><S8>/Product6</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="415"> 415 </a><span class="CT"> * Sum: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1477')" name="code2model"><font color="#117755"><i><S8>/Sum2</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="416"> 416 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="417"> 417 </a> rtY->a_elecAngle = 60 * rtb_Sum1_a / rtDW->z_counterRawPrev * rtDW->Switch2
|
|
||||||
</span><span><a class="LN" name="418"> 418 </a> + rtb_Sum2_h * 60;
|
|
||||||
</span><span><a class="LN" name="419"> 419 </a>
|
|
||||||
</span><span><a class="LN" name="420"> 420 </a> <span class="CT">/* Switch: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:514')" name="code2model"><font color="#117755"><i><S8>/Switch_PhaAdv</i></font></a>' incorporates:</span>
|
|
||||||
</span><span><a class="LN" name="421"> 421 </a><span class="CT"> * Constant: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:512')" name="code2model"><font color="#117755"><i><S8>/a_elecPeriod1</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="422"> 422 </a><span class="CT"> * Constant: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1671')" name="code2model"><font color="#117755"><i><S8>/n_motPhaAdvEna</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="423"> 423 </a><span class="CT"> * Logic: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1668')" name="code2model"><font color="#117755"><i><S8>/Logical Operator2</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="424"> 424 </a><span class="CT"> * Outport: '<Root>/a_elecAngle'</span>
|
|
||||||
</span><span><a class="LN" name="425"> 425 </a><span class="CT"> * RelationalOperator: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1670')" name="code2model"><font color="#117755"><i><S8>/Relational Operator4</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="426"> 426 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="427"> 427 </a> <span class="KW">if</span> (rtP->b_phaAdvEna && (rtb_Abs5 > rtP->n_motPhaAdvEna)) <b>{</b>
|
|
||||||
</span><span><a class="LN" name="428"> 428 </a> <span class="CT">/* PreLookup: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:522')" name="code2model"><font color="#117755"><i><S8>/r_phaAdvDC_XA</i></font></a>' */</span>
|
|
||||||
</span><span><a class="LN" name="429"> 429 </a> rtb_BitwiseOperator = <a href="#fcn_plook_u8s32u32n31_evenc_s" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'fcn_plook_u8s32u32n31_evenc_s');" target="_self"><font color="#1122aa">plook_u8s32u32n31_evenc_s</font></a>(rtb_Abs1,
|
|
||||||
</span><span><a class="LN" name="430"> 430 </a> rtP->r_phaAdvDC_XA[0], (<a href="rtwtypes_h.html#type_uint32_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_uint32_T');" target="_self"><font color="#1122aa">uint32_T</font></a>)rtP->r_phaAdvDC_XA[1] -
|
|
||||||
</span><span><a class="LN" name="431"> 431 </a> rtP->r_phaAdvDC_XA[0], 10U, &rtb_r_phaAdvDC_XA_o2);
|
|
||||||
</span><span><a class="LN" name="432"> 432 </a>
|
|
||||||
</span><span><a class="LN" name="433"> 433 </a> <span class="CT">/* Interpolation_n-D: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:521')" name="code2model"><font color="#117755"><i><S8>/a_phaAdv_M2</i></font></a>' */</span>
|
|
||||||
</span><span><a class="LN" name="434"> 434 </a> rtb_Abs2 = <a href="#fcn_intrp1d_s16s32s32u8u32n31l_s" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'fcn_intrp1d_s16s32s32u8u32n31l_s');" target="_self"><font color="#1122aa">intrp1d_s16s32s32u8u32n31l_s</font></a>(rtb_BitwiseOperator,
|
|
||||||
</span><span><a class="LN" name="435"> 435 </a> rtb_r_phaAdvDC_XA_o2, rtP->a_phaAdv_M1);
|
|
||||||
</span><span><a class="LN" name="436"> 436 </a>
|
|
||||||
</span><span><a class="LN" name="437"> 437 </a> <span class="CT">/* Sum: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:546')" name="code2model"><font color="#117755"><i><S8>/Sum3</i></font></a>' incorporates:</span>
|
|
||||||
</span><span><a class="LN" name="438"> 438 </a><span class="CT"> * Outport: '<Root>/a_elecAngle'</span>
|
|
||||||
</span><span><a class="LN" name="439"> 439 </a><span class="CT"> * Product: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:545')" name="code2model"><font color="#117755"><i><S8>/Product2</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="440"> 440 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="441"> 441 </a> rtb_Abs5 = (<a href="rtwtypes_h.html#type_int16_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_int16_T');" target="_self"><font color="#1122aa">int16_T</font></a>)(rtb_Abs2 * rtDW->Switch2) + rtY->a_elecAngle;
|
|
||||||
</span><span><a class="LN" name="442"> 442 </a>
|
|
||||||
</span><span><a class="LN" name="443"> 443 </a> <span class="CT">/* Math: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:623')" name="code2model"><font color="#117755"><i><S8>/Math Function</i></font></a>' */</span>
|
|
||||||
</span><span><a class="LN" name="444"> 444 </a> rtDW->Switch_PhaAdv = rtb_Abs5 - <a href="#fcn_div_nde_s32_floor" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'fcn_div_nde_s32_floor');" target="_self"><font color="#1122aa">div_nde_s32_floor</font></a>(rtb_Abs5, 360) * 360;
|
|
||||||
</span><span><a class="LN" name="445"> 445 </a> <b>}</b> <span class="KW">else</span> <b>{</b>
|
|
||||||
</span><span><a class="LN" name="446"> 446 </a> rtDW->Switch_PhaAdv = rtY->a_elecAngle;
|
|
||||||
</span><span><a class="LN" name="447"> 447 </a> <b>}</b>
|
|
||||||
</span><span><a class="LN" name="448"> 448 </a>
|
|
||||||
</span><span><a class="LN" name="449"> 449 </a> <span class="CT">/* End of Switch: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:514')" name="code2model"><font color="#117755"><i><S8>/Switch_PhaAdv</i></font></a>' */</span>
|
|
||||||
</span><span><a class="LN" name="450"> 450 </a> <span class="CT">/* End of Outputs for SubSystem: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:215')" name="code2model"><font color="#117755"><i><S2>/F02_Electrical_Angle_Calculation</i></font></a>' */</span>
|
|
||||||
</span><span><a class="LN" name="451"> 451 </a> <b>}</b>
|
|
||||||
</span><span><a class="LN" name="452"> 452 </a>
|
|
||||||
</span><span><a class="LN" name="453"> 453 </a> <span class="CT">/* End of If: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:434')" name="code2model"><font color="#117755"><i><S2>/If1</i></font></a>' */</span>
|
|
||||||
</span><span><a class="LN" name="454"> 454 </a>
|
|
||||||
</span><span><a class="LN" name="455"> 455 </a> <span class="CT">/* SwitchCase: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:348')" name="code2model"><font color="#117755"><i><S9>/Switch Case</i></font></a>' incorporates:</span>
|
|
||||||
</span><span><a class="LN" name="456"> 456 </a><span class="CT"> * Constant: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:208')" name="code2model"><font color="#117755"><i><S7>/z_ctrlTypSel1</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="457"> 457 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="458"> 458 </a> <span class="KW">switch</span> (rtP->z_ctrlTypSel) <b>{</b>
|
|
||||||
</span><span><a class="LN" name="459"> 459 </a> <span class="KW">case</span> 1:
|
|
||||||
</span><span><a class="LN" name="460"> 460 </a> <span class="CT">/* Outputs for IfAction SubSystem: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:285')" name="code2model"><font color="#117755"><i><S9>/F03_01_Pure_Trapezoidal_Method</i></font></a>' incorporates:</span>
|
|
||||||
</span><span><a class="LN" name="461"> 461 </a><span class="CT"> * ActionPort: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:287')" name="code2model"><font color="#117755"><i><S18>/Action Port</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="462"> 462 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="463"> 463 </a> <span class="CT">/* PreLookup: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:288')" name="code2model"><font color="#117755"><i><S18>/a_trapElecAngle_XA</i></font></a>' */</span>
|
|
||||||
</span><span><a class="LN" name="464"> 464 </a> rtb_BitwiseOperator = <a href="#fcn_plook_u8s32u32n31_evenc_s" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'fcn_plook_u8s32u32n31_evenc_s');" target="_self"><font color="#1122aa">plook_u8s32u32n31_evenc_s</font></a>(rtDW->Switch_PhaAdv, 0, 60U,
|
|
||||||
</span><span><a class="LN" name="465"> 465 </a> 6U, &rtb_r_phaAdvDC_XA_o2);
|
|
||||||
</span><span><a class="LN" name="466"> 466 </a>
|
|
||||||
</span><span><a class="LN" name="467"> 467 </a> <span class="CT">/* Interpolation_n-D: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:289')" name="code2model"><font color="#117755"><i><S18>/r_trapPhaA_M1</i></font></a>' */</span>
|
|
||||||
</span><span><a class="LN" name="468"> 468 </a> rtDW->Merge = <a href="#fcn_intrp1d_s16s32s32u8u32n31l_s" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'fcn_intrp1d_s16s32s32u8u32n31l_s');" target="_self"><font color="#1122aa">intrp1d_s16s32s32u8u32n31l_s</font></a>(rtb_BitwiseOperator,
|
|
||||||
</span><span><a class="LN" name="469"> 469 </a> rtb_r_phaAdvDC_XA_o2, <a href="BLDC_controller_data_c.html#var_rtConstP" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'var_rtConstP');" target="_self"><font color="#1122aa">rtConstP</font></a>.r_trapPhaA_M1_Table);
|
|
||||||
</span><span><a class="LN" name="470"> 470 </a>
|
|
||||||
</span><span><a class="LN" name="471"> 471 </a> <span class="CT">/* Interpolation_n-D: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:290')" name="code2model"><font color="#117755"><i><S18>/r_trapPhaB_M1</i></font></a>' */</span>
|
|
||||||
</span><span><a class="LN" name="472"> 472 </a> rtDW->Merge1 = <a href="#fcn_intrp1d_s16s32s32u8u32n31l_s" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'fcn_intrp1d_s16s32s32u8u32n31l_s');" target="_self"><font color="#1122aa">intrp1d_s16s32s32u8u32n31l_s</font></a>(rtb_BitwiseOperator,
|
|
||||||
</span><span><a class="LN" name="473"> 473 </a> rtb_r_phaAdvDC_XA_o2, <a href="BLDC_controller_data_c.html#var_rtConstP" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'var_rtConstP');" target="_self"><font color="#1122aa">rtConstP</font></a>.r_trapPhaB_M1_Table);
|
|
||||||
</span><span><a class="LN" name="474"> 474 </a>
|
|
||||||
</span><span><a class="LN" name="475"> 475 </a> <span class="CT">/* Interpolation_n-D: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:291')" name="code2model"><font color="#117755"><i><S18>/r_trapPhaC_M1</i></font></a>' */</span>
|
|
||||||
</span><span><a class="LN" name="476"> 476 </a> rtDW->Merge2 = <a href="#fcn_intrp1d_s16s32s32u8u32n31l_s" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'fcn_intrp1d_s16s32s32u8u32n31l_s');" target="_self"><font color="#1122aa">intrp1d_s16s32s32u8u32n31l_s</font></a>(rtb_BitwiseOperator,
|
|
||||||
</span><span><a class="LN" name="477"> 477 </a> rtb_r_phaAdvDC_XA_o2, <a href="BLDC_controller_data_c.html#var_rtConstP" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'var_rtConstP');" target="_self"><font color="#1122aa">rtConstP</font></a>.r_trapPhaC_M1_Table);
|
|
||||||
</span><span><a class="LN" name="478"> 478 </a>
|
|
||||||
</span><span><a class="LN" name="479"> 479 </a> <span class="CT">/* End of Outputs for SubSystem: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:285')" name="code2model"><font color="#117755"><i><S9>/F03_01_Pure_Trapezoidal_Method</i></font></a>' */</span>
|
|
||||||
</span><span><a class="LN" name="480"> 480 </a> <span class="KW">break</span>;
|
|
||||||
</span><span><a class="LN" name="481"> 481 </a>
|
|
||||||
</span><span><a class="LN" name="482"> 482 </a> <span class="KW">case</span> 2:
|
|
||||||
</span><span><a class="LN" name="483"> 483 </a> <span class="CT">/* Outputs for IfAction SubSystem: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:305')" name="code2model"><font color="#117755"><i><S9>/F03_02_Sinusoidal_Method</i></font></a>' incorporates:</span>
|
|
||||||
</span><span><a class="LN" name="484"> 484 </a><span class="CT"> * ActionPort: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:307')" name="code2model"><font color="#117755"><i><S19>/Action Port</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="485"> 485 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="486"> 486 </a> <span class="CT">/* PreLookup: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:308')" name="code2model"><font color="#117755"><i><S19>/a_sinElecAngle_XA</i></font></a>' */</span>
|
|
||||||
</span><span><a class="LN" name="487"> 487 </a> rtb_BitwiseOperator = <a href="#fcn_plook_u8s32u32n31_evenc_s" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'fcn_plook_u8s32u32n31_evenc_s');" target="_self"><font color="#1122aa">plook_u8s32u32n31_evenc_s</font></a>(rtDW->Switch_PhaAdv, 0, 10U,
|
|
||||||
</span><span><a class="LN" name="488"> 488 </a> 36U, &rtb_r_phaAdvDC_XA_o2);
|
|
||||||
</span><span><a class="LN" name="489"> 489 </a>
|
|
||||||
</span><span><a class="LN" name="490"> 490 </a> <span class="CT">/* Interpolation_n-D: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:309')" name="code2model"><font color="#117755"><i><S19>/r_sinPhaA_M1</i></font></a>' */</span>
|
|
||||||
</span><span><a class="LN" name="491"> 491 </a> rtDW->Merge = <a href="#fcn_intrp1d_s16s32s32u8u32n31l_s" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'fcn_intrp1d_s16s32s32u8u32n31l_s');" target="_self"><font color="#1122aa">intrp1d_s16s32s32u8u32n31l_s</font></a>(rtb_BitwiseOperator,
|
|
||||||
</span><span><a class="LN" name="492"> 492 </a> rtb_r_phaAdvDC_XA_o2, <a href="BLDC_controller_data_c.html#var_rtConstP" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'var_rtConstP');" target="_self"><font color="#1122aa">rtConstP</font></a>.r_sinPhaA_M1_Table);
|
|
||||||
</span><span><a class="LN" name="493"> 493 </a>
|
|
||||||
</span><span><a class="LN" name="494"> 494 </a> <span class="CT">/* Interpolation_n-D: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:310')" name="code2model"><font color="#117755"><i><S19>/r_sinPhaB_M1</i></font></a>' */</span>
|
|
||||||
</span><span><a class="LN" name="495"> 495 </a> rtDW->Merge1 = <a href="#fcn_intrp1d_s16s32s32u8u32n31l_s" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'fcn_intrp1d_s16s32s32u8u32n31l_s');" target="_self"><font color="#1122aa">intrp1d_s16s32s32u8u32n31l_s</font></a>(rtb_BitwiseOperator,
|
|
||||||
</span><span><a class="LN" name="496"> 496 </a> rtb_r_phaAdvDC_XA_o2, <a href="BLDC_controller_data_c.html#var_rtConstP" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'var_rtConstP');" target="_self"><font color="#1122aa">rtConstP</font></a>.r_sinPhaB_M1_Table);
|
|
||||||
</span><span><a class="LN" name="497"> 497 </a>
|
|
||||||
</span><span><a class="LN" name="498"> 498 </a> <span class="CT">/* Interpolation_n-D: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:311')" name="code2model"><font color="#117755"><i><S19>/r_sinPhaC_M1</i></font></a>' */</span>
|
|
||||||
</span><span><a class="LN" name="499"> 499 </a> rtDW->Merge2 = <a href="#fcn_intrp1d_s16s32s32u8u32n31l_s" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'fcn_intrp1d_s16s32s32u8u32n31l_s');" target="_self"><font color="#1122aa">intrp1d_s16s32s32u8u32n31l_s</font></a>(rtb_BitwiseOperator,
|
|
||||||
</span><span><a class="LN" name="500"> 500 </a> rtb_r_phaAdvDC_XA_o2, <a href="BLDC_controller_data_c.html#var_rtConstP" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'var_rtConstP');" target="_self"><font color="#1122aa">rtConstP</font></a>.r_sinPhaC_M1_Table);
|
|
||||||
</span><span><a class="LN" name="501"> 501 </a>
|
|
||||||
</span><span><a class="LN" name="502"> 502 </a> <span class="CT">/* End of Outputs for SubSystem: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:305')" name="code2model"><font color="#117755"><i><S9>/F03_02_Sinusoidal_Method</i></font></a>' */</span>
|
|
||||||
</span><span><a class="LN" name="503"> 503 </a> <span class="KW">break</span>;
|
|
||||||
</span><span><a class="LN" name="504"> 504 </a>
|
|
||||||
</span><span><a class="LN" name="505"> 505 </a> <span class="KW">case</span> 3:
|
|
||||||
</span><span><a class="LN" name="506"> 506 </a> <span class="CT">/* Outputs for IfAction SubSystem: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:295')" name="code2model"><font color="#117755"><i><S9>/F03_03_Sinusoidal3rd_Method</i></font></a>' incorporates:</span>
|
|
||||||
</span><span><a class="LN" name="507"> 507 </a><span class="CT"> * ActionPort: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:297')" name="code2model"><font color="#117755"><i><S20>/Action Port</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="508"> 508 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="509"> 509 </a> <span class="CT">/* PreLookup: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:298')" name="code2model"><font color="#117755"><i><S20>/a_sinElecAngle_XA</i></font></a>' */</span>
|
|
||||||
</span><span><a class="LN" name="510"> 510 </a> rtb_BitwiseOperator = <a href="#fcn_plook_u8s32u32n31_evenc_s" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'fcn_plook_u8s32u32n31_evenc_s');" target="_self"><font color="#1122aa">plook_u8s32u32n31_evenc_s</font></a>(rtDW->Switch_PhaAdv, 0, 10U,
|
|
||||||
</span><span><a class="LN" name="511"> 511 </a> 36U, &rtb_r_phaAdvDC_XA_o2);
|
|
||||||
</span><span><a class="LN" name="512"> 512 </a>
|
|
||||||
</span><span><a class="LN" name="513"> 513 </a> <span class="CT">/* Interpolation_n-D: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:299')" name="code2model"><font color="#117755"><i><S20>/r_sin3PhaA_M1</i></font></a>' */</span>
|
|
||||||
</span><span><a class="LN" name="514"> 514 </a> rtDW->Merge = <a href="#fcn_intrp1d_s16s32s32u8u32n31l_s" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'fcn_intrp1d_s16s32s32u8u32n31l_s');" target="_self"><font color="#1122aa">intrp1d_s16s32s32u8u32n31l_s</font></a>(rtb_BitwiseOperator,
|
|
||||||
</span><span><a class="LN" name="515"> 515 </a> rtb_r_phaAdvDC_XA_o2, <a href="BLDC_controller_data_c.html#var_rtConstP" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'var_rtConstP');" target="_self"><font color="#1122aa">rtConstP</font></a>.r_sin3PhaA_M1_Table);
|
|
||||||
</span><span><a class="LN" name="516"> 516 </a>
|
|
||||||
</span><span><a class="LN" name="517"> 517 </a> <span class="CT">/* Interpolation_n-D: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:300')" name="code2model"><font color="#117755"><i><S20>/r_sin3PhaB_M1</i></font></a>' */</span>
|
|
||||||
</span><span><a class="LN" name="518"> 518 </a> rtDW->Merge1 = <a href="#fcn_intrp1d_s16s32s32u8u32n31l_s" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'fcn_intrp1d_s16s32s32u8u32n31l_s');" target="_self"><font color="#1122aa">intrp1d_s16s32s32u8u32n31l_s</font></a>(rtb_BitwiseOperator,
|
|
||||||
</span><span><a class="LN" name="519"> 519 </a> rtb_r_phaAdvDC_XA_o2, <a href="BLDC_controller_data_c.html#var_rtConstP" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'var_rtConstP');" target="_self"><font color="#1122aa">rtConstP</font></a>.r_sin3PhaB_M1_Table);
|
|
||||||
</span><span><a class="LN" name="520"> 520 </a>
|
|
||||||
</span><span><a class="LN" name="521"> 521 </a> <span class="CT">/* Interpolation_n-D: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:301')" name="code2model"><font color="#117755"><i><S20>/r_sin3PhaC_M1</i></font></a>' */</span>
|
|
||||||
</span><span><a class="LN" name="522"> 522 </a> rtDW->Merge2 = <a href="#fcn_intrp1d_s16s32s32u8u32n31l_s" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'fcn_intrp1d_s16s32s32u8u32n31l_s');" target="_self"><font color="#1122aa">intrp1d_s16s32s32u8u32n31l_s</font></a>(rtb_BitwiseOperator,
|
|
||||||
</span><span><a class="LN" name="523"> 523 </a> rtb_r_phaAdvDC_XA_o2, <a href="BLDC_controller_data_c.html#var_rtConstP" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'var_rtConstP');" target="_self"><font color="#1122aa">rtConstP</font></a>.r_sin3PhaC_M1_Table);
|
|
||||||
</span><span><a class="LN" name="524"> 524 </a>
|
|
||||||
</span><span><a class="LN" name="525"> 525 </a> <span class="CT">/* End of Outputs for SubSystem: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:295')" name="code2model"><font color="#117755"><i><S9>/F03_03_Sinusoidal3rd_Method</i></font></a>' */</span>
|
|
||||||
</span><span><a class="LN" name="526"> 526 </a> <span class="KW">break</span>;
|
|
||||||
</span><span><a class="LN" name="527"> 527 </a> <b>}</b>
|
|
||||||
</span><span><a class="LN" name="528"> 528 </a>
|
|
||||||
</span><span><a class="LN" name="529"> 529 </a> <span class="CT">/* End of SwitchCase: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:348')" name="code2model"><font color="#117755"><i><S9>/Switch Case</i></font></a>' */</span>
|
|
||||||
</span><span><a class="LN" name="530"> 530 </a>
|
|
||||||
</span><span><a class="LN" name="531"> 531 </a> <span class="CT">/* Signum: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1525')" name="code2model"><font color="#117755"><i><S14>/Sign</i></font></a>' */</span>
|
|
||||||
</span><span><a class="LN" name="532"> 532 </a> <span class="KW">if</span> (rtDW->Switch2 < 0) <b>{</b>
|
|
||||||
</span><span><a class="LN" name="533"> 533 </a> rtb_Sum2_h = -1;
|
|
||||||
</span><span><a class="LN" name="534"> 534 </a> <b>}</b> <span class="KW">else</span> <b>{</b>
|
|
||||||
</span><span><a class="LN" name="535"> 535 </a> rtb_Sum2_h = (<a href="rtwtypes_h.html#type_int8_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_int8_T');" target="_self"><font color="#1122aa">int8_T</font></a>)(rtDW->Switch2 > 0);
|
|
||||||
</span><span><a class="LN" name="536"> 536 </a> <b>}</b>
|
|
||||||
</span><span><a class="LN" name="537"> 537 </a>
|
|
||||||
</span><span><a class="LN" name="538"> 538 </a> <span class="CT">/* End of Signum: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1525')" name="code2model"><font color="#117755"><i><S14>/Sign</i></font></a>' */</span>
|
|
||||||
</span><span><a class="LN" name="539"> 539 </a>
|
|
||||||
</span><span><a class="LN" name="540"> 540 </a> <span class="CT">/* Signum: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1526')" name="code2model"><font color="#117755"><i><S14>/Sign1</i></font></a>' incorporates:</span>
|
|
||||||
</span><span><a class="LN" name="541"> 541 </a><span class="CT"> * Inport: '<Root>/r_DC'</span>
|
|
||||||
</span><span><a class="LN" name="542"> 542 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="543"> 543 </a> <span class="KW">if</span> (rtU->r_DC < 0) <b>{</b>
|
|
||||||
</span><span><a class="LN" name="544"> 544 </a> rtb_Abs5 = -1;
|
|
||||||
</span><span><a class="LN" name="545"> 545 </a> <b>}</b> <span class="KW">else</span> <b>{</b>
|
|
||||||
</span><span><a class="LN" name="546"> 546 </a> rtb_Abs5 = (rtU->r_DC > 0);
|
|
||||||
</span><span><a class="LN" name="547"> 547 </a> <b>}</b>
|
|
||||||
</span><span><a class="LN" name="548"> 548 </a>
|
|
||||||
</span><span><a class="LN" name="549"> 549 </a> <span class="CT">/* End of Signum: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1526')" name="code2model"><font color="#117755"><i><S14>/Sign1</i></font></a>' */</span>
|
|
||||||
</span><span><a class="LN" name="550"> 550 </a>
|
|
||||||
</span><span><a class="LN" name="551"> 551 </a> <span class="CT">/* Switch: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:401')" name="code2model"><font color="#117755"><i><S10>/Switch1</i></font></a>' incorporates:</span>
|
|
||||||
</span><span><a class="LN" name="552"> 552 </a><span class="CT"> * Constant: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:22')" name="code2model"><font color="#117755"><i><S12>/vec_hallToPos</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="553"> 553 </a><span class="CT"> * Constant: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1321')" name="code2model"><font color="#117755"><i><S14>/CTRL_COMM</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="554"> 554 </a><span class="CT"> * Constant: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1329')" name="code2model"><font color="#117755"><i><S14>/r_commDCDeacv</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="555"> 555 </a><span class="CT"> * Constant: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:208')" name="code2model"><font color="#117755"><i><S7>/z_ctrlTypSel1</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="556"> 556 </a><span class="CT"> * Inport: '<Root>/r_DC'</span>
|
|
||||||
</span><span><a class="LN" name="557"> 557 </a><span class="CT"> * Logic: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1325')" name="code2model"><font color="#117755"><i><S14>/Logical Operator2</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="558"> 558 </a><span class="CT"> * LookupNDDirect: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:411')" name="code2model"><font color="#117755"><i><S10>/z_commutMap_M1</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="559"> 559 </a><span class="CT"> * Product: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:374')" name="code2model"><font color="#117755"><i><S10>/Divide2</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="560"> 560 </a><span class="CT"> * Product: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:375')" name="code2model"><font color="#117755"><i><S10>/Divide4</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="561"> 561 </a><span class="CT"> * RelationalOperator: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1524')" name="code2model"><font color="#117755"><i><S14>/Relational Operator1</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="562"> 562 </a><span class="CT"> * RelationalOperator: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1326')" name="code2model"><font color="#117755"><i><S14>/Relational Operator3</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="563"> 563 </a><span class="CT"> * RelationalOperator: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1327')" name="code2model"><font color="#117755"><i><S14>/Relational Operator4</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="564"> 564 </a><span class="CT"> * Relay: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1518')" name="code2model"><font color="#117755"><i><S14>/dz_counter</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="565"> 565 </a><span class="CT"> * Relay: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1328')" name="code2model"><font color="#117755"><i><S14>/n_commDeacv</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="566"> 566 </a><span class="CT"> * Selector: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:14')" name="code2model"><font color="#117755"><i><S12>/Selector</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="567"> 567 </a><span class="CT"> *</span>
|
|
||||||
</span><span><a class="LN" name="568"> 568 </a><span class="CT"> * About '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:411')" name="code2model"><font color="#117755"><i><S10>/z_commutMap_M1</i></font></a>':</span>
|
|
||||||
</span><span><a class="LN" name="569"> 569 </a><span class="CT"> * 2-dimensional Direct Look-Up returning a Column</span>
|
|
||||||
</span><span><a class="LN" name="570"> 570 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="571"> 571 </a> <span class="KW">if</span> ((rtP->z_ctrlTypSel != 0) && (rtb_Abs1 > rtP->r_commDCDeacv) && (rtb_Sum2_h
|
|
||||||
</span><span><a class="LN" name="572"> 572 </a> == rtb_Abs5) && rtDW->n_commDeacv_Mode && (!rtDW->dz_counter_Mode)) <b>{</b>
|
|
||||||
</span><span><a class="LN" name="573"> 573 </a> rtb_Abs5 = rtU->r_DC * rtDW->Merge;
|
|
||||||
</span><span><a class="LN" name="574"> 574 </a> rtb_Switch1_idx_1 = rtU->r_DC * rtDW->Merge1;
|
|
||||||
</span><span><a class="LN" name="575"> 575 </a> rtb_Abs1 = rtU->r_DC * rtDW->Merge2;
|
|
||||||
</span><span><a class="LN" name="576"> 576 </a> <b>}</b> <span class="KW">else</span> <b>{</b>
|
|
||||||
</span><span><a class="LN" name="577"> 577 </a> <span class="KW">if</span> (<a href="BLDC_controller_data_c.html#var_rtConstP" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'var_rtConstP');" target="_self"><font color="#1122aa">rtConstP</font></a>.vec_hallToPos_Value[rtb_Sum] > 5) <b>{</b>
|
|
||||||
</span><span><a class="LN" name="578"> 578 </a> <span class="CT">/* LookupNDDirect: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:411')" name="code2model"><font color="#117755"><i><S10>/z_commutMap_M1</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="579"> 579 </a><span class="CT"> *</span>
|
|
||||||
</span><span><a class="LN" name="580"> 580 </a><span class="CT"> * About '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:411')" name="code2model"><font color="#117755"><i><S10>/z_commutMap_M1</i></font></a>':</span>
|
|
||||||
</span><span><a class="LN" name="581"> 581 </a><span class="CT"> * 2-dimensional Direct Look-Up returning a Column</span>
|
|
||||||
</span><span><a class="LN" name="582"> 582 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="583"> 583 </a> rtb_Sum2_h = 5;
|
|
||||||
</span><span><a class="LN" name="584"> 584 </a> <b>}</b> <span class="KW">else</span> <span class="KW">if</span> (<a href="BLDC_controller_data_c.html#var_rtConstP" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'var_rtConstP');" target="_self"><font color="#1122aa">rtConstP</font></a>.vec_hallToPos_Value[rtb_Sum] < 0) <b>{</b>
|
|
||||||
</span><span><a class="LN" name="585"> 585 </a> <span class="CT">/* LookupNDDirect: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:411')" name="code2model"><font color="#117755"><i><S10>/z_commutMap_M1</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="586"> 586 </a><span class="CT"> *</span>
|
|
||||||
</span><span><a class="LN" name="587"> 587 </a><span class="CT"> * About '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:411')" name="code2model"><font color="#117755"><i><S10>/z_commutMap_M1</i></font></a>':</span>
|
|
||||||
</span><span><a class="LN" name="588"> 588 </a><span class="CT"> * 2-dimensional Direct Look-Up returning a Column</span>
|
|
||||||
</span><span><a class="LN" name="589"> 589 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="590"> 590 </a> rtb_Sum2_h = 0;
|
|
||||||
</span><span><a class="LN" name="591"> 591 </a> <b>}</b> <span class="KW">else</span> <b>{</b>
|
|
||||||
</span><span><a class="LN" name="592"> 592 </a> <span class="CT">/* LookupNDDirect: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:411')" name="code2model"><font color="#117755"><i><S10>/z_commutMap_M1</i></font></a>' incorporates:</span>
|
|
||||||
</span><span><a class="LN" name="593"> 593 </a><span class="CT"> * Constant: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:22')" name="code2model"><font color="#117755"><i><S12>/vec_hallToPos</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="594"> 594 </a><span class="CT"> * Selector: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:14')" name="code2model"><font color="#117755"><i><S12>/Selector</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="595"> 595 </a><span class="CT"> *</span>
|
|
||||||
</span><span><a class="LN" name="596"> 596 </a><span class="CT"> * About '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:411')" name="code2model"><font color="#117755"><i><S10>/z_commutMap_M1</i></font></a>':</span>
|
|
||||||
</span><span><a class="LN" name="597"> 597 </a><span class="CT"> * 2-dimensional Direct Look-Up returning a Column</span>
|
|
||||||
</span><span><a class="LN" name="598"> 598 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="599"> 599 </a> rtb_Sum2_h = <a href="BLDC_controller_data_c.html#var_rtConstP" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'var_rtConstP');" target="_self"><font color="#1122aa">rtConstP</font></a>.vec_hallToPos_Value[rtb_Sum];
|
|
||||||
</span><span><a class="LN" name="600"> 600 </a> <b>}</b>
|
|
||||||
</span><span><a class="LN" name="601"> 601 </a>
|
|
||||||
</span><span><a class="LN" name="602"> 602 </a> <span class="CT">/* LookupNDDirect: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:411')" name="code2model"><font color="#117755"><i><S10>/z_commutMap_M1</i></font></a>' incorporates:</span>
|
|
||||||
</span><span><a class="LN" name="603"> 603 </a><span class="CT"> * Constant: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:22')" name="code2model"><font color="#117755"><i><S12>/vec_hallToPos</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="604"> 604 </a><span class="CT"> * Selector: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:14')" name="code2model"><font color="#117755"><i><S12>/Selector</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="605"> 605 </a><span class="CT"> *</span>
|
|
||||||
</span><span><a class="LN" name="606"> 606 </a><span class="CT"> * About '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:411')" name="code2model"><font color="#117755"><i><S10>/z_commutMap_M1</i></font></a>':</span>
|
|
||||||
</span><span><a class="LN" name="607"> 607 </a><span class="CT"> * 2-dimensional Direct Look-Up returning a Column</span>
|
|
||||||
</span><span><a class="LN" name="608"> 608 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="609"> 609 </a> rtb_Abs1 = rtb_Sum2_h * 3;
|
|
||||||
</span><span><a class="LN" name="610"> 610 </a> rtb_Abs5 = rtU->r_DC * <a href="BLDC_controller_data_c.html#var_rtConstP" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'var_rtConstP');" target="_self"><font color="#1122aa">rtConstP</font></a>.z_commutMap_M1_table[rtb_Abs1];
|
|
||||||
</span><span><a class="LN" name="611"> 611 </a> rtb_Switch1_idx_1 = <a href="BLDC_controller_data_c.html#var_rtConstP" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'var_rtConstP');" target="_self"><font color="#1122aa">rtConstP</font></a>.z_commutMap_M1_table[1 + rtb_Abs1] * rtU->r_DC;
|
|
||||||
</span><span><a class="LN" name="612"> 612 </a> rtb_Abs1 = <a href="BLDC_controller_data_c.html#var_rtConstP" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'var_rtConstP');" target="_self"><font color="#1122aa">rtConstP</font></a>.z_commutMap_M1_table[2 + rtb_Abs1] * rtU->r_DC;
|
|
||||||
</span><span><a class="LN" name="613"> 613 </a> <b>}</b>
|
|
||||||
</span><span><a class="LN" name="614"> 614 </a>
|
|
||||||
</span><span><a class="LN" name="615"> 615 </a> <span class="CT">/* End of Switch: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:401')" name="code2model"><font color="#117755"><i><S10>/Switch1</i></font></a>' */</span>
|
|
||||||
</span><span><a class="LN" name="616"> 616 </a>
|
|
||||||
</span><span><a class="LN" name="617"> 617 </a> <span class="CT">/* Outport: '<Root>/DC_phaA' incorporates:</span>
|
|
||||||
</span><span><a class="LN" name="618"> 618 </a><span class="CT"> * Constant: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:370')" name="code2model"><font color="#117755"><i><S10>/Constant1</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="619"> 619 </a><span class="CT"> * Product: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:373')" name="code2model"><font color="#117755"><i><S10>/Divide1</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="620"> 620 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="621"> 621 </a> rtY->DC_phaA = rtb_Abs5 / 1000;
|
|
||||||
</span><span><a class="LN" name="622"> 622 </a>
|
|
||||||
</span><span><a class="LN" name="623"> 623 </a> <span class="CT">/* Outport: '<Root>/DC_phaB' incorporates:</span>
|
|
||||||
</span><span><a class="LN" name="624"> 624 </a><span class="CT"> * Constant: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:370')" name="code2model"><font color="#117755"><i><S10>/Constant1</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="625"> 625 </a><span class="CT"> * Product: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:373')" name="code2model"><font color="#117755"><i><S10>/Divide1</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="626"> 626 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="627"> 627 </a> rtY->DC_phaB = rtb_Switch1_idx_1 / 1000;
|
|
||||||
</span><span><a class="LN" name="628"> 628 </a>
|
|
||||||
</span><span><a class="LN" name="629"> 629 </a> <span class="CT">/* Update for UnitDelay: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:31')" name="code2model"><font color="#117755"><i><S11>/UnitDelay</i></font></a>' incorporates:</span>
|
|
||||||
</span><span><a class="LN" name="630"> 630 </a><span class="CT"> * Inport: '<Root>/b_hallA '</span>
|
|
||||||
</span><span><a class="LN" name="631"> 631 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="632"> 632 </a> rtDW->UnitDelay_DSTATE = rtU->b_hallA;
|
|
||||||
</span><span><a class="LN" name="633"> 633 </a>
|
|
||||||
</span><span><a class="LN" name="634"> 634 </a> <span class="CT">/* Update for UnitDelay: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:32')" name="code2model"><font color="#117755"><i><S11>/UnitDelay1</i></font></a>' incorporates:</span>
|
|
||||||
</span><span><a class="LN" name="635"> 635 </a><span class="CT"> * Inport: '<Root>/b_hallB'</span>
|
|
||||||
</span><span><a class="LN" name="636"> 636 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="637"> 637 </a> rtDW->UnitDelay1_DSTATE_i = rtU->b_hallB;
|
|
||||||
</span><span><a class="LN" name="638"> 638 </a>
|
|
||||||
</span><span><a class="LN" name="639"> 639 </a> <span class="CT">/* Update for UnitDelay: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:33')" name="code2model"><font color="#117755"><i><S11>/UnitDelay2</i></font></a>' incorporates:</span>
|
|
||||||
</span><span><a class="LN" name="640"> 640 </a><span class="CT"> * Inport: '<Root>/b_hallC'</span>
|
|
||||||
</span><span><a class="LN" name="641"> 641 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="642"> 642 </a> rtDW->UnitDelay2_DSTATE_h = rtU->b_hallC;
|
|
||||||
</span><span><a class="LN" name="643"> 643 </a>
|
|
||||||
</span><span><a class="LN" name="644"> 644 </a> <span class="CT">/* Update for UnitDelay: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1651:1621')" name="code2model"><font color="#117755"><i><S17>/UnitDelay1</i></font></a>' */</span>
|
|
||||||
</span><span><a class="LN" name="645"> 645 </a> rtDW->UnitDelay1_DSTATE = rtb_Sum1_a;
|
|
||||||
</span><span><a class="LN" name="646"> 646 </a>
|
|
||||||
</span><span><a class="LN" name="647"> 647 </a> <span class="CT">/* Update for UnitDelay: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1507')" name="code2model"><font color="#117755"><i><S14>/UnitDelay1</i></font></a>' */</span>
|
|
||||||
</span><span><a class="LN" name="648"> 648 </a> rtDW->UnitDelay1_DSTATE_c = rtb_Sum1_a;
|
|
||||||
</span><span><a class="LN" name="649"> 649 </a>
|
|
||||||
</span><span><a class="LN" name="650"> 650 </a> <span class="CT">/* Update for UnitDelay: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1446')" name="code2model"><font color="#117755"><i><S16>/UnitDelay2</i></font></a>' */</span>
|
|
||||||
</span><span><a class="LN" name="651"> 651 </a> rtDW->UnitDelay2_DSTATE = rtb_Sum2;
|
|
||||||
</span><span><a class="LN" name="652"> 652 </a>
|
|
||||||
</span><span><a class="LN" name="653"> 653 </a> <span class="CT">/* Outport: '<Root>/DC_phaC' incorporates:</span>
|
|
||||||
</span><span><a class="LN" name="654"> 654 </a><span class="CT"> * Constant: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:370')" name="code2model"><font color="#117755"><i><S10>/Constant1</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="655"> 655 </a><span class="CT"> * Product: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:373')" name="code2model"><font color="#117755"><i><S10>/Divide1</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="656"> 656 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="657"> 657 </a> rtY->DC_phaC = rtb_Abs1 / 1000;
|
|
||||||
</span><span><a class="LN" name="658"> 658 </a>
|
|
||||||
</span><span><a class="LN" name="659"> 659 </a> <span class="CT">/* End of Outputs for SubSystem: '<Root>/BLDC_controller' */</span>
|
|
||||||
</span><span><a class="LN" name="660"> 660 </a>
|
|
||||||
</span><span><a class="LN" name="661"> 661 </a> <span class="CT">/* Outport: '<Root>/n_mot' */</span>
|
|
||||||
</span><span><a class="LN" name="662"> 662 </a> rtY->n_mot = rtb_Sum2;
|
|
||||||
</span><span><a class="LN" name="663"> 663 </a><b>}</b>
|
|
||||||
</span><span><a class="LN" name="664"> 664 </a>
|
|
||||||
</span><span><a class="LN" name="665"> 665 </a><span class="CT">/* Model initialize function */</span>
|
|
||||||
</span><span><a class="LN" name="666"> 666 </a><span class="DT">void</span> <a name="fcn_BLDC_controller_initialize">BLDC_controller_initialize</a>(<a href="BLDC_controller_h.html#type_RT_MODEL" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_RT_MODEL');" target="_self"><font color="#1122aa">RT_MODEL</font></a> *<span class="DT">const</span> rtM)
|
|
||||||
</span><span><a class="LN" name="667"> 667 </a><b>{</b>
|
|
||||||
</span><span><a class="LN" name="668"> 668 </a> <a href="BLDC_controller_h.html#type_P" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_P');" target="_self"><font color="#1122aa">P</font></a> *rtP = ((<a href="BLDC_controller_h.html#type_P" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_P');" target="_self"><font color="#1122aa">P</font></a> *) rtM->defaultParam);
|
|
||||||
</span><span><a class="LN" name="669"> 669 </a> <a href="BLDC_controller_h.html#type_DW" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_DW');" target="_self"><font color="#1122aa">DW</font></a> *rtDW = ((<a href="BLDC_controller_h.html#type_DW" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_DW');" target="_self"><font color="#1122aa">DW</font></a> *) rtM->dwork);
|
|
||||||
</span><span><a class="LN" name="670"> 670 </a>
|
|
||||||
</span><span><a class="LN" name="671"> 671 </a> <span class="CT">/* Start for Atomic SubSystem: '<Root>/BLDC_controller' */</span>
|
|
||||||
</span><span><a class="LN" name="672"> 672 </a> <span class="CT">/* Start for If: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:434')" name="code2model"><font color="#117755"><i><S2>/If1</i></font></a>' */</span>
|
|
||||||
</span><span><a class="LN" name="673"> 673 </a> rtDW->If1_ActiveSubsystem = -1;
|
|
||||||
</span><span><a class="LN" name="674"> 674 </a>
|
|
||||||
</span><span><a class="LN" name="675"> 675 </a> <span class="CT">/* End of Start for SubSystem: '<Root>/BLDC_controller' */</span>
|
|
||||||
</span><span><a class="LN" name="676"> 676 </a>
|
|
||||||
</span><span><a class="LN" name="677"> 677 </a> <span class="CT">/* SystemInitialize for Atomic SubSystem: '<Root>/BLDC_controller' */</span>
|
|
||||||
</span><span><a class="LN" name="678"> 678 </a> <span class="CT">/* InitializeConditions for UnitDelay: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1651:1621')" name="code2model"><font color="#117755"><i><S17>/UnitDelay1</i></font></a>' */</span>
|
|
||||||
</span><span><a class="LN" name="679"> 679 </a> rtDW->UnitDelay1_DSTATE = rtP->z_maxCntRst;
|
|
||||||
</span><span><a class="LN" name="680"> 680 </a>
|
|
||||||
</span><span><a class="LN" name="681"> 681 </a> <span class="CT">/* SystemInitialize for IfAction SubSystem: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1340')" name="code2model"><font color="#117755"><i><S14>/Counter_Hold_and_Error_Calculation</i></font></a>' */</span>
|
|
||||||
</span><span><a class="LN" name="682"> 682 </a> <span class="CT">/* InitializeConditions for UnitDelay: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:169')" name="code2model"><font color="#117755"><i><S15>/z_counter2</i></font></a>' */</span>
|
|
||||||
</span><span><a class="LN" name="683"> 683 </a> rtDW->z_counter2_DSTATE = rtP->z_maxCntRst;
|
|
||||||
</span><span><a class="LN" name="684"> 684 </a>
|
|
||||||
</span><span><a class="LN" name="685"> 685 </a> <span class="CT">/* SystemInitialize for Outport: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1358')" name="code2model"><font color="#117755"><i><S15>/z_counter</i></font></a>' */</span>
|
|
||||||
</span><span><a class="LN" name="686"> 686 </a> rtDW->z_counterRawPrev = rtP->z_maxCntRst;
|
|
||||||
</span><span><a class="LN" name="687"> 687 </a>
|
|
||||||
</span><span><a class="LN" name="688"> 688 </a> <span class="CT">/* End of SystemInitialize for SubSystem: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1340')" name="code2model"><font color="#117755"><i><S14>/Counter_Hold_and_Error_Calculation</i></font></a>' */</span>
|
|
||||||
</span><span><a class="LN" name="689"> 689 </a> <span class="CT">/* End of SystemInitialize for SubSystem: '<Root>/BLDC_controller' */</span>
|
|
||||||
</span><span><a class="LN" name="690"> 690 </a><b>}</b>
|
|
||||||
</span><span><a class="LN" name="691"> 691 </a>
|
|
||||||
</span><span><a class="LN" name="692"> 692 </a><span class="CT">/*</span>
|
|
||||||
</span><span><a class="LN" name="693"> 693 </a><span class="CT"> * File trailer for generated code.</span>
|
|
||||||
</span><span><a class="LN" name="694"> 694 </a><span class="CT"> *</span>
|
|
||||||
</span><span><a class="LN" name="695"> 695 </a><span class="CT"> * [EOF]</span>
|
|
||||||
</span><span><a class="LN" name="696"> 696 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="697"> 697 </a>
|
|
||||||
</span></pre>
|
|
||||||
</td></tr></table>
|
|
||||||
</p>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
@ -1,27 +0,0 @@
|
|||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" /><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><link rel="stylesheet" type="text/css" href="rtwreport.css" /><script type="text/javascript" src="rtwhilite.js"></script><script type="text/javascript" src="rtwshrink.js"></script><script type="text/javascript">var reportModel = "BLDCmotorControl_R2017b:29"; </script><script type="text/javascript">var TargetLang = "C"; </script><script type="text/javascript" src="webview_codegen.js"></script><script type="text/javascript" src="BLDC_controller_traceInfo.js"></script><script type="text/javascript" src="requirements.js"></script><script type="text/javascript" src="BLDC_controller_sid_map.js"></script><script type="text/javascript" src="define.js"></script><script type="text/javascript" src="traceInfo_flag.js"></script><title>
|
|
||||||
BLDC_controller Code Generation Report
|
|
||||||
</title>
|
|
||||||
|
|
||||||
</head>
|
|
||||||
<frameset cols="25%,75%" id="rtw_report_frameset">
|
|
||||||
<frame scrolling="auto" src="BLDC_controller_contents.html" name="rtwreport_contents_frame" id="rtwreport_contents_frame">
|
|
||||||
|
|
||||||
</frame>
|
|
||||||
<frameset rows="50%,50%" id="rtw_webviewMidFrame">
|
|
||||||
<frame scrolling="auto" name="rtwreport_document_frame" id="rtwreport_document_frame">
|
|
||||||
|
|
||||||
</frame>
|
|
||||||
<frame scrolling="auto" src="webview/webview.html" name="rtw_webview" id="rtw_webview" onload="webviewToCodeInit()">
|
|
||||||
|
|
||||||
</frame>
|
|
||||||
|
|
||||||
</frameset>
|
|
||||||
|
|
||||||
</frameset>
|
|
||||||
<body>
|
|
||||||
|
|
||||||
</body>
|
|
||||||
|
|
||||||
</html>
|
|
@ -1,298 +0,0 @@
|
|||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><link rel="stylesheet" type="text/css" href="rtwreport.css" /><script language="JavaScript" type="text/javascript" defer="defer">
|
|
||||||
function rtwFileListShrink(o, category, numFiles)
|
|
||||||
{
|
|
||||||
var indent = document.getElementById(category + "_indent");
|
|
||||||
var fileTable = document.getElementById(category + "_table");
|
|
||||||
var catName = document.getElementById(category + "_name");
|
|
||||||
if (fileTable.style.display == "none") {
|
|
||||||
fileTable.style.display = "";
|
|
||||||
indent.style.display = "";
|
|
||||||
o.innerHTML = '<span style="font-family:monospace" id = "' + category + '_button">[-]</span>';
|
|
||||||
catName.innerHTML = "<b>" + category + "</b>";
|
|
||||||
} else {
|
|
||||||
fileTable.style.display = "none";
|
|
||||||
indent.style.display = "none";
|
|
||||||
o.innerHTML = '<span style="font-family:monospace" id = "' + category + '_button">[+]</span>';
|
|
||||||
catName.innerHTML = "<b>" + category + " (" + numFiles + ")" + "</b>";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
</head>
|
|
||||||
<body bgcolor="#eeeeee" link="#0033cc" vlink="#666666" rightmargin="0">
|
|
||||||
<table class="toc" border="1">
|
|
||||||
<tr>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
<b>
|
|
||||||
Contents
|
|
||||||
</b>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
<a href="rtwmsg.html" id="rtwIdMsgFileLink" style="display: none" target="rtwreport_document_frame" onclick="if (top) if (top.tocHiliteMe) top.tocHiliteMe(window, this, true);" name="TOC_List">
|
|
||||||
Block-to-code Message
|
|
||||||
</a>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
<a href="BLDC_controller_survey.html" id="rtwIdSummaryPage" target="rtwreport_document_frame" onclick="if (top) if (top.tocHiliteMe) top.tocHiliteMe(window, this, true);" name="TOC_List">
|
|
||||||
Summary
|
|
||||||
</a>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
<a href="BLDC_controller_subsystems.html" id="rtwIdSubsystem" target="rtwreport_document_frame" onclick="if (top) if (top.tocHiliteMe) top.tocHiliteMe(window, this, true);" name="TOC_List">
|
|
||||||
Subsystem Report
|
|
||||||
</a>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
<a href="BLDC_controller_interface.html" id="rtwIdCodeInterface" target="rtwreport_document_frame" onclick="if (top) if (top.tocHiliteMe) top.tocHiliteMe(window, this, true);" name="TOC_List">
|
|
||||||
Code Interface Report
|
|
||||||
</a>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
<a href="BLDC_controller_trace.html" id="rtwIdTraceability" target="rtwreport_document_frame" onclick="if (top) if (top.tocHiliteMe) top.tocHiliteMe(window, this, true);" name="TOC_List">
|
|
||||||
Traceability Report
|
|
||||||
</a>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
<a href="BLDC_controller_metrics.html" id="rtwIdCodeMetrics" target="rtwreport_document_frame" onclick="if (top) if (top.tocHiliteMe) top.tocHiliteMe(window, this, true);" name="TOC_List">
|
|
||||||
Static Code Metrics Report
|
|
||||||
</a>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
<a href="BLDC_controller_replacements.html" id="rtwIdCodeReplacements" target="rtwreport_document_frame" onclick="if (top) if (top.tocHiliteMe) top.tocHiliteMe(window, this, true);" name="TOC_List">
|
|
||||||
Code Replacements Report
|
|
||||||
</a>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
</table>
|
|
||||||
<!--ADD_CODE_PROFILE_REPORT_LINK_HERE--><table class="panel small_font" style="display: none; margin-top: 10px; margin-bottom: 10px" id="rtwIdTracePanel" border="1">
|
|
||||||
<tr>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
<b>
|
|
||||||
Highlight Navigation
|
|
||||||
</b>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
<INPUT TYPE="button" VALUE="Previous" style="width: 85" ID="rtwIdButtonPrev" ONCLICK="if (top.rtwGoPrev) top.rtwGoPrev();" disabled="disabled" /><INPUT TYPE="button" VALUE="Next" style="width: 85" ID="rtwIdButtonNext" ONCLICK="if (top.rtwGoNext) top.rtwGoNext();" disabled="disabled" />
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
</table>
|
|
||||||
<hr /><table cellspacing="0" cellpadding="4" width="100%" bgcolor="#ffffff" border="0">
|
|
||||||
<tr>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
<b>
|
|
||||||
Generated Code
|
|
||||||
</b>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
<table cellspacing="0" cellpadding="1" width="100%" bgcolor="#ffffff" id="Main file" border="0">
|
|
||||||
<tr>
|
|
||||||
<td width="0%" align="left" valign="top">
|
|
||||||
<span style="background-color:#ffffff;width:100%;cursor:pointer;white-space:nowrap" title="Click to shrink or expand category" onclick="rtwFileListShrink(this,'Main file','1')"><span style="font-family:monospace" id = "Main file_button">[-]</span></span>
|
|
||||||
</td>
|
|
||||||
<td width="100%" align="left" valign="top">
|
|
||||||
<span id="Main file_name"><b>Main file</b></span>
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td width="0%" align="left" valign="top">
|
|
||||||
<span id="Main file_indent"></span>
|
|
||||||
</td>
|
|
||||||
<td width="100%" align="left" valign="top">
|
|
||||||
<table cellspacing="0" cellpadding="4" width="100%" bgcolor="#ffffff" id="Main file_table" border="0">
|
|
||||||
<tr>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
<A HREF="ert_main_c.html" TARGET="rtwreport_document_frame" ONCLICK="if (top) if (top.tocHiliteMe) top.tocHiliteMe(window, this, false);" ID="ert_main_c.html" NAME="rtwIdGenFileLinks">
|
|
||||||
ert_main.c
|
|
||||||
</A>
|
|
||||||
<span> </span>
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
</table>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
</table>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
<table cellspacing="0" cellpadding="1" width="100%" bgcolor="#ffffff" id="Model files" border="0">
|
|
||||||
<tr>
|
|
||||||
<td width="0%" align="left" valign="top">
|
|
||||||
<span style="background-color:#ffffff;width:100%;cursor:pointer;white-space:nowrap" title="Click to shrink or expand category" onclick="rtwFileListShrink(this,'Model files','2')"><span style="font-family:monospace" id = "Model files_button">[-]</span></span>
|
|
||||||
</td>
|
|
||||||
<td width="100%" align="left" valign="top">
|
|
||||||
<span id="Model files_name"><b>Model files</b></span>
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td width="0%" align="left" valign="top">
|
|
||||||
<span id="Model files_indent"></span>
|
|
||||||
</td>
|
|
||||||
<td width="100%" align="left" valign="top">
|
|
||||||
<table cellspacing="0" cellpadding="4" width="100%" bgcolor="#ffffff" id="Model files_table" border="0">
|
|
||||||
<tr>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
<A HREF="BLDC_controller_c.html" TARGET="rtwreport_document_frame" ONCLICK="if (top) if (top.tocHiliteMe) top.tocHiliteMe(window, this, false);" ID="BLDC_controller_c.html" NAME="rtwIdGenFileLinks">
|
|
||||||
BLDC_controller.c
|
|
||||||
</A>
|
|
||||||
<span> </span>
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
<A HREF="BLDC_controller_h.html" TARGET="rtwreport_document_frame" ONCLICK="if (top) if (top.tocHiliteMe) top.tocHiliteMe(window, this, false);" ID="BLDC_controller_h.html" NAME="rtwIdGenFileLinks">
|
|
||||||
BLDC_controller.h
|
|
||||||
</A>
|
|
||||||
<span> </span>
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
</table>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
</table>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
<table cellspacing="0" cellpadding="1" width="100%" bgcolor="#ffffff" id="Data files" border="0">
|
|
||||||
<tr>
|
|
||||||
<td width="0%" align="left" valign="top">
|
|
||||||
<span style="background-color:#ffffff;width:100%;cursor:pointer;white-space:nowrap" title="Click to shrink or expand category" onclick="rtwFileListShrink(this,'Data files','1')"><span style="font-family:monospace" id = "Data files_button">[-]</span></span>
|
|
||||||
</td>
|
|
||||||
<td width="100%" align="left" valign="top">
|
|
||||||
<span id="Data files_name"><b>Data files</b></span>
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td width="0%" align="left" valign="top">
|
|
||||||
<span id="Data files_indent"></span>
|
|
||||||
</td>
|
|
||||||
<td width="100%" align="left" valign="top">
|
|
||||||
<table cellspacing="0" cellpadding="4" width="100%" bgcolor="#ffffff" id="Data files_table" border="0">
|
|
||||||
<tr>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
<A HREF="BLDC_controller_data_c.html" TARGET="rtwreport_document_frame" ONCLICK="if (top) if (top.tocHiliteMe) top.tocHiliteMe(window, this, false);" ID="BLDC_controller_data_c.html" NAME="rtwIdGenFileLinks">
|
|
||||||
BLDC_controller_data.c
|
|
||||||
</A>
|
|
||||||
<span> </span>
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
</table>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
</table>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
<table cellspacing="0" cellpadding="1" width="100%" bgcolor="#ffffff" id="Utility files" border="0">
|
|
||||||
<tr>
|
|
||||||
<td width="0%" align="left" valign="top">
|
|
||||||
<span style="background-color:#ffffff;width:100%;cursor:pointer;white-space:nowrap" title="Click to shrink or expand category" onclick="rtwFileListShrink(this,'Utility files','1')"><span style="font-family:monospace" id = "Utility files_button">[+]</span></span>
|
|
||||||
</td>
|
|
||||||
<td width="100%" align="left" valign="top">
|
|
||||||
<span id="Utility files_name"><b>Utility files (1)</b></span>
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td width="0%" align="left" valign="top">
|
|
||||||
<span id="Utility files_indent"></span>
|
|
||||||
</td>
|
|
||||||
<td width="100%" align="left" valign="top">
|
|
||||||
<table cellspacing="0" cellpadding="4" width="100%" bgcolor="#ffffff" id="Utility files_table" style="display:none" border="0">
|
|
||||||
<tr>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
<A HREF="rtwtypes_h.html" TARGET="rtwreport_document_frame" ONCLICK="if (top) if (top.tocHiliteMe) top.tocHiliteMe(window, this, false);" ID="rtwtypes_h.html" NAME="rtwIdGenFileLinks">
|
|
||||||
rtwtypes.h
|
|
||||||
</A>
|
|
||||||
<span> </span>
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
</table>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
</table>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
</table>
|
|
||||||
<hr />
|
|
||||||
</body>
|
|
||||||
|
|
||||||
</html>
|
|
@ -1,121 +0,0 @@
|
|||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
|
||||||
<title>RTW Report - BLDC_controller_data.c</title>
|
|
||||||
<link rel="stylesheet" type="text/css" href="rtwreport.css"></link><script language="JavaScript" type="text/javascript" src="rtwreport_utils.js"></script>
|
|
||||||
<SCRIPT type="text/javascript" language="JavaScript" src="slwebview.js"></SCRIPT>
|
|
||||||
<SCRIPT type="text/javascript" language="JavaScript" src="id_mapping.js"></SCRIPT>
|
|
||||||
<SCRIPT type="text/javascript" src="rtwannotate.js"></SCRIPT>
|
|
||||||
</head>
|
|
||||||
<body bgcolor="#eeeeee" onload="try {if (top) { if (top.rtwFileOnLoad) top.rtwFileOnLoad(window.document); else local_onload();}} catch(err) {};if (typeof rtwannotate === 'function') {rtwannotate('BLDC_controller_data_c_cov.xml');}">
|
|
||||||
<p>
|
|
||||||
<table border="0" cellspacing="0" cellpadding="6" width="100%%" height="100%%"><tr><td width="100%%" valign="top" bgcolor="#ffffff">
|
|
||||||
<h4>File: <a href="../BLDC_controller_data.c" target="rtwreport_document_frame" id="linkToText_plain">BLDC_controller_data.c</a></h4>
|
|
||||||
<pre id="RTWcode">
|
|
||||||
<span><a class="LN" name="1"> 1 </a><span class="CT">/*</span>
|
|
||||||
</span><span><a class="LN" name="2"> 2 </a><span class="CT"> * Academic License - for use in teaching, academic research, and meeting</span>
|
|
||||||
</span><span><a class="LN" name="3"> 3 </a><span class="CT"> * course requirements at degree granting institutions only. Not for</span>
|
|
||||||
</span><span><a class="LN" name="4"> 4 </a><span class="CT"> * government, commercial, or other organizational use.</span>
|
|
||||||
</span><span><a class="LN" name="5"> 5 </a><span class="CT"> *</span>
|
|
||||||
</span><span><a class="LN" name="6"> 6 </a><span class="CT"> * File: BLDC_controller_data.c</span>
|
|
||||||
</span><span><a class="LN" name="7"> 7 </a><span class="CT"> *</span>
|
|
||||||
</span><span><a class="LN" name="8"> 8 </a><span class="CT"> * Code generated for Simulink model 'BLDC_controller'.</span>
|
|
||||||
</span><span><a class="LN" name="9"> 9 </a><span class="CT"> *</span>
|
|
||||||
</span><span><a class="LN" name="10"> 10 </a><span class="CT"> * Model version : 1.883</span>
|
|
||||||
</span><span><a class="LN" name="11"> 11 </a><span class="CT"> * Simulink Coder version : 8.13 (R2017b) 24-Jul-2017</span>
|
|
||||||
</span><span><a class="LN" name="12"> 12 </a><span class="CT"> * C/C++ source code generated on : Tue Jun 11 21:14:57 2019</span>
|
|
||||||
</span><span><a class="LN" name="13"> 13 </a><span class="CT"> *</span>
|
|
||||||
</span><span><a class="LN" name="14"> 14 </a><span class="CT"> * Target selection: ert.tlc</span>
|
|
||||||
</span><span><a class="LN" name="15"> 15 </a><span class="CT"> * Embedded hardware selection: ARM Compatible->ARM Cortex</span>
|
|
||||||
</span><span><a class="LN" name="16"> 16 </a><span class="CT"> * Emulation hardware selection:</span>
|
|
||||||
</span><span><a class="LN" name="17"> 17 </a><span class="CT"> * Differs from embedded hardware (MATLAB Host)</span>
|
|
||||||
</span><span><a class="LN" name="18"> 18 </a><span class="CT"> * Code generation objectives:</span>
|
|
||||||
</span><span><a class="LN" name="19"> 19 </a><span class="CT"> * 1. Execution efficiency</span>
|
|
||||||
</span><span><a class="LN" name="20"> 20 </a><span class="CT"> * 2. RAM efficiency</span>
|
|
||||||
</span><span><a class="LN" name="21"> 21 </a><span class="CT"> * Validation result: Not run</span>
|
|
||||||
</span><span><a class="LN" name="22"> 22 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="23"> 23 </a>
|
|
||||||
</span><span><a class="LN" name="24"> 24 </a><font color="#992211">#</font><span class="PP">include</span> <font color="#992211">"BLDC_controller.h"</font>
|
|
||||||
</span><span><a class="LN" name="25"> 25 </a>
|
|
||||||
</span><span><a class="LN" name="26"> 26 </a><span class="CT">/* Constant parameters (auto storage) */</span>
|
|
||||||
</span><span><a class="LN" name="27"> 27 </a><span class="DT">const</span> <a href="BLDC_controller_h.html#type_ConstP" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_ConstP');" target="_self"><font color="#1122aa">ConstP</font></a> <a name="var_rtConstP">rtConstP</a> = <b>{</b>
|
|
||||||
</span><span><a class="LN" name="28"> 28 </a> <span class="CT">/* Computed Parameter: r_trapPhaA_M1_Table</span>
|
|
||||||
</span><span><a class="LN" name="29"> 29 </a><span class="CT"> * Referenced by: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:289')" name="code2model"><font color="#117755"><i><S18>/r_trapPhaA_M1</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="30"> 30 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="31"> 31 </a> <b>{</b> 1000, 1000, 1000, -1000, -1000, -1000, 1000 <b>}</b>,
|
|
||||||
</span><span><a class="LN" name="32"> 32 </a>
|
|
||||||
</span><span><a class="LN" name="33"> 33 </a> <span class="CT">/* Computed Parameter: r_trapPhaB_M1_Table</span>
|
|
||||||
</span><span><a class="LN" name="34"> 34 </a><span class="CT"> * Referenced by: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:290')" name="code2model"><font color="#117755"><i><S18>/r_trapPhaB_M1</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="35"> 35 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="36"> 36 </a> <b>{</b> -1000, -1000, 1000, 1000, 1000, -1000, -1000 <b>}</b>,
|
|
||||||
</span><span><a class="LN" name="37"> 37 </a>
|
|
||||||
</span><span><a class="LN" name="38"> 38 </a> <span class="CT">/* Computed Parameter: r_trapPhaC_M1_Table</span>
|
|
||||||
</span><span><a class="LN" name="39"> 39 </a><span class="CT"> * Referenced by: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:291')" name="code2model"><font color="#117755"><i><S18>/r_trapPhaC_M1</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="40"> 40 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="41"> 41 </a> <b>{</b> 1000, -1000, -1000, -1000, 1000, 1000, 1000 <b>}</b>,
|
|
||||||
</span><span><a class="LN" name="42"> 42 </a>
|
|
||||||
</span><span><a class="LN" name="43"> 43 </a> <span class="CT">/* Computed Parameter: r_sinPhaA_M1_Table</span>
|
|
||||||
</span><span><a class="LN" name="44"> 44 </a><span class="CT"> * Referenced by: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:309')" name="code2model"><font color="#117755"><i><S19>/r_sinPhaA_M1</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="45"> 45 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="46"> 46 </a> <b>{</b> 500, 643, 766, 866, 940, 985, 1000, 985, 940, 866, 766, 643, 500, 342, 174,
|
|
||||||
</span><span><a class="LN" name="47"> 47 </a> 0, -174, -342, -500, -643, -766, -866, -940, -985, -1000, -985, -940, -866,
|
|
||||||
</span><span><a class="LN" name="48"> 48 </a> -766, -643, -500, -342, -174, 0, 174, 342, 500 <b>}</b>,
|
|
||||||
</span><span><a class="LN" name="49"> 49 </a>
|
|
||||||
</span><span><a class="LN" name="50"> 50 </a> <span class="CT">/* Computed Parameter: r_sinPhaB_M1_Table</span>
|
|
||||||
</span><span><a class="LN" name="51"> 51 </a><span class="CT"> * Referenced by: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:310')" name="code2model"><font color="#117755"><i><S19>/r_sinPhaB_M1</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="52"> 52 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="53"> 53 </a> <b>{</b> -1000, -985, -940, -866, -766, -643, -500, -342, -174, 0, 174, 342, 500, 643,
|
|
||||||
</span><span><a class="LN" name="54"> 54 </a> 766, 866, 940, 985, 1000, 985, 940, 866, 766, 643, 500, 342, 174, 0, -174,
|
|
||||||
</span><span><a class="LN" name="55"> 55 </a> -342, -500, -643, -766, -866, -940, -985, -1000 <b>}</b>,
|
|
||||||
</span><span><a class="LN" name="56"> 56 </a>
|
|
||||||
</span><span><a class="LN" name="57"> 57 </a> <span class="CT">/* Computed Parameter: r_sinPhaC_M1_Table</span>
|
|
||||||
</span><span><a class="LN" name="58"> 58 </a><span class="CT"> * Referenced by: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:311')" name="code2model"><font color="#117755"><i><S19>/r_sinPhaC_M1</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="59"> 59 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="60"> 60 </a> <b>{</b> 500, 342, 174, 0, -174, -342, -500, -643, -766, -866, -940, -985, -1000,
|
|
||||||
</span><span><a class="LN" name="61"> 61 </a> -985, -940, -866, -766, -643, -500, -342, -174, 0, 174, 342, 500, 643, 766,
|
|
||||||
</span><span><a class="LN" name="62"> 62 </a> 866, 940, 985, 1000, 985, 940, 866, 766, 643, 500 <b>}</b>,
|
|
||||||
</span><span><a class="LN" name="63"> 63 </a>
|
|
||||||
</span><span><a class="LN" name="64"> 64 </a> <span class="CT">/* Computed Parameter: r_sin3PhaA_M1_Table</span>
|
|
||||||
</span><span><a class="LN" name="65"> 65 </a><span class="CT"> * Referenced by: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:299')" name="code2model"><font color="#117755"><i><S20>/r_sin3PhaA_M1</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="66"> 66 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="67"> 67 </a> <b>{</b> 813, 945, 1000, 996, 962, 926, 912, 926, 962, 996, 1000, 945, 813, 599, 319,
|
|
||||||
</span><span><a class="LN" name="68"> 68 </a> 0, -319, -599, -813, -945, -1000, -996, -962, -926, -912, -926, -962, -996,
|
|
||||||
</span><span><a class="LN" name="69"> 69 </a> -1000, -945, -813, -599, -319, 0, 319, 599, 813 <b>}</b>,
|
|
||||||
</span><span><a class="LN" name="70"> 70 </a>
|
|
||||||
</span><span><a class="LN" name="71"> 71 </a> <span class="CT">/* Computed Parameter: r_sin3PhaB_M1_Table</span>
|
|
||||||
</span><span><a class="LN" name="72"> 72 </a><span class="CT"> * Referenced by: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:300')" name="code2model"><font color="#117755"><i><S20>/r_sin3PhaB_M1</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="73"> 73 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="74"> 74 </a> <b>{</b> -912, -926, -962, -996, -1000, -945, -813, -599, -319, 0, 319, 599, 813, 945,
|
|
||||||
</span><span><a class="LN" name="75"> 75 </a> 1000, 996, 962, 926, 912, 926, 962, 996, 1000, 945, 813, 599, 319, 0, -319,
|
|
||||||
</span><span><a class="LN" name="76"> 76 </a> -599, -813, -945, -1000, -996, -962, -926, -912 <b>}</b>,
|
|
||||||
</span><span><a class="LN" name="77"> 77 </a>
|
|
||||||
</span><span><a class="LN" name="78"> 78 </a> <span class="CT">/* Computed Parameter: r_sin3PhaC_M1_Table</span>
|
|
||||||
</span><span><a class="LN" name="79"> 79 </a><span class="CT"> * Referenced by: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:301')" name="code2model"><font color="#117755"><i><S20>/r_sin3PhaC_M1</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="80"> 80 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="81"> 81 </a> <b>{</b> 813, 599, 319, 0, -319, -599, -813, -945, -1000, -996, -962, -926, -912,
|
|
||||||
</span><span><a class="LN" name="82"> 82 </a> -926, -962, -996, -1000, -945, -813, -599, -319, 0, 319, 599, 813, 945, 1000,
|
|
||||||
</span><span><a class="LN" name="83"> 83 </a> 996, 962, 926, 912, 926, 962, 996, 1000, 945, 813 <b>}</b>,
|
|
||||||
</span><span><a class="LN" name="84"> 84 </a>
|
|
||||||
</span><span><a class="LN" name="85"> 85 </a> <span class="CT">/* Computed Parameter: z_commutMap_M1_table</span>
|
|
||||||
</span><span><a class="LN" name="86"> 86 </a><span class="CT"> * Referenced by: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:411')" name="code2model"><font color="#117755"><i><S10>/z_commutMap_M1</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="87"> 87 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="88"> 88 </a> <b>{</b> 1000, -1000, 0, 1000, 0, -1000, 0, 1000, -1000, -1000, 1000, 0, -1000, 0,
|
|
||||||
</span><span><a class="LN" name="89"> 89 </a> 1000, 0, -1000, 1000 <b>}</b>,
|
|
||||||
</span><span><a class="LN" name="90"> 90 </a>
|
|
||||||
</span><span><a class="LN" name="91"> 91 </a> <span class="CT">/* Computed Parameter: vec_hallToPos_Value</span>
|
|
||||||
</span><span><a class="LN" name="92"> 92 </a><span class="CT"> * Referenced by: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:22')" name="code2model"><font color="#117755"><i><S12>/vec_hallToPos</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="93"> 93 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="94"> 94 </a> <b>{</b> 0, 5, 3, 4, 1, 0, 2, 0 <b>}</b>
|
|
||||||
</span><span><a class="LN" name="95"> 95 </a><b>}</b>;
|
|
||||||
</span><span><a class="LN" name="96"> 96 </a>
|
|
||||||
</span><span><a class="LN" name="97"> 97 </a><span class="CT">/*</span>
|
|
||||||
</span><span><a class="LN" name="98"> 98 </a><span class="CT"> * File trailer for generated code.</span>
|
|
||||||
</span><span><a class="LN" name="99"> 99 </a><span class="CT"> *</span>
|
|
||||||
</span><span><a class="LN" name="100"> 100 </a><span class="CT"> * [EOF]</span>
|
|
||||||
</span><span><a class="LN" name="101"> 101 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="102"> 102 </a>
|
|
||||||
</span></pre>
|
|
||||||
</td></tr></table>
|
|
||||||
</p>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
@ -1,276 +0,0 @@
|
|||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
|
||||||
<title>RTW Report - BLDC_controller.h</title>
|
|
||||||
<link rel="stylesheet" type="text/css" href="rtwreport.css"></link><script language="JavaScript" type="text/javascript" src="rtwreport_utils.js"></script>
|
|
||||||
<SCRIPT type="text/javascript" language="JavaScript" src="slwebview.js"></SCRIPT>
|
|
||||||
<SCRIPT type="text/javascript" language="JavaScript" src="id_mapping.js"></SCRIPT>
|
|
||||||
<SCRIPT type="text/javascript" src="rtwannotate.js"></SCRIPT>
|
|
||||||
</head>
|
|
||||||
<body bgcolor="#eeeeee" onload="try {if (top) { if (top.rtwFileOnLoad) top.rtwFileOnLoad(window.document); else local_onload();}} catch(err) {};if (typeof rtwannotate === 'function') {rtwannotate('BLDC_controller_h_cov.xml');}">
|
|
||||||
<p>
|
|
||||||
<table border="0" cellspacing="0" cellpadding="6" width="100%%" height="100%%"><tr><td width="100%%" valign="top" bgcolor="#ffffff">
|
|
||||||
<h4>File: <a href="../BLDC_controller.h" target="rtwreport_document_frame" id="linkToText_plain">BLDC_controller.h</a></h4>
|
|
||||||
<pre id="RTWcode">
|
|
||||||
<span><a class="LN" name="1"> 1 </a><span class="CT">/*</span>
|
|
||||||
</span><span><a class="LN" name="2"> 2 </a><span class="CT"> * Academic License - for use in teaching, academic research, and meeting</span>
|
|
||||||
</span><span><a class="LN" name="3"> 3 </a><span class="CT"> * course requirements at degree granting institutions only. Not for</span>
|
|
||||||
</span><span><a class="LN" name="4"> 4 </a><span class="CT"> * government, commercial, or other organizational use.</span>
|
|
||||||
</span><span><a class="LN" name="5"> 5 </a><span class="CT"> *</span>
|
|
||||||
</span><span><a class="LN" name="6"> 6 </a><span class="CT"> * File: BLDC_controller.h</span>
|
|
||||||
</span><span><a class="LN" name="7"> 7 </a><span class="CT"> *</span>
|
|
||||||
</span><span><a class="LN" name="8"> 8 </a><span class="CT"> * Code generated for Simulink model 'BLDC_controller'.</span>
|
|
||||||
</span><span><a class="LN" name="9"> 9 </a><span class="CT"> *</span>
|
|
||||||
</span><span><a class="LN" name="10"> 10 </a><span class="CT"> * Model version : 1.883</span>
|
|
||||||
</span><span><a class="LN" name="11"> 11 </a><span class="CT"> * Simulink Coder version : 8.13 (R2017b) 24-Jul-2017</span>
|
|
||||||
</span><span><a class="LN" name="12"> 12 </a><span class="CT"> * C/C++ source code generated on : Tue Jun 11 21:14:57 2019</span>
|
|
||||||
</span><span><a class="LN" name="13"> 13 </a><span class="CT"> *</span>
|
|
||||||
</span><span><a class="LN" name="14"> 14 </a><span class="CT"> * Target selection: ert.tlc</span>
|
|
||||||
</span><span><a class="LN" name="15"> 15 </a><span class="CT"> * Embedded hardware selection: ARM Compatible->ARM Cortex</span>
|
|
||||||
</span><span><a class="LN" name="16"> 16 </a><span class="CT"> * Emulation hardware selection:</span>
|
|
||||||
</span><span><a class="LN" name="17"> 17 </a><span class="CT"> * Differs from embedded hardware (MATLAB Host)</span>
|
|
||||||
</span><span><a class="LN" name="18"> 18 </a><span class="CT"> * Code generation objectives:</span>
|
|
||||||
</span><span><a class="LN" name="19"> 19 </a><span class="CT"> * 1. Execution efficiency</span>
|
|
||||||
</span><span><a class="LN" name="20"> 20 </a><span class="CT"> * 2. RAM efficiency</span>
|
|
||||||
</span><span><a class="LN" name="21"> 21 </a><span class="CT"> * Validation result: Not run</span>
|
|
||||||
</span><span><a class="LN" name="22"> 22 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="23"> 23 </a>
|
|
||||||
</span><span><a class="LN" name="24"> 24 </a><font color="#992211">#</font><span class="PP">ifndef</span> RTW_HEADER_BLDC_controller_h_
|
|
||||||
</span><span><a class="LN" name="25"> 25 </a><font color="#992211">#</font><span class="PP">define</span> RTW_HEADER_BLDC_controller_h_
|
|
||||||
</span><span><a class="LN" name="26"> 26 </a><font color="#992211">#</font><span class="PP">include</span> <font color="#992211">"rtwtypes.h"</font>
|
|
||||||
</span><span><a class="LN" name="27"> 27 </a><font color="#992211">#</font><span class="PP">ifndef</span> BLDC_controller_COMMON_INCLUDES_
|
|
||||||
</span><span><a class="LN" name="28"> 28 </a><font color="#992211">#</font> <span class="PP">define</span> BLDC_controller_COMMON_INCLUDES_
|
|
||||||
</span><span><a class="LN" name="29"> 29 </a><font color="#992211">#</font><span class="PP">include</span> <font color="#992211">"rtwtypes.h"</font>
|
|
||||||
</span><span><a class="LN" name="30"> 30 </a><font color="#992211">#</font><span class="PP">endif</span> <span class="CT">/* BLDC_controller_COMMON_INCLUDES_ */</span>
|
|
||||||
</span><span><a class="LN" name="31"> 31 </a>
|
|
||||||
</span><span><a class="LN" name="32"> 32 </a><span class="CT">/* Macros for accessing real-time model data structure */</span>
|
|
||||||
</span><span><a class="LN" name="33"> 33 </a>
|
|
||||||
</span><span><a class="LN" name="34"> 34 </a><span class="CT">/* Forward declaration for rtModel */</span>
|
|
||||||
</span><span><a class="LN" name="35"> 35 </a><span class="KW">typedef</span> <span class="KW">struct</span> tag_RTM <a name="type_RT_MODEL">RT_MODEL</a>;
|
|
||||||
</span><span><a class="LN" name="36"> 36 </a>
|
|
||||||
</span><span><a class="LN" name="37"> 37 </a><span class="CT">/* Block signals and states (auto storage) for system '<Root>' */</span>
|
|
||||||
</span><span><a class="LN" name="38"> 38 </a><span class="KW">typedef</span> <span class="KW">struct</span> <b>{</b>
|
|
||||||
</span><span><a class="LN" name="39"> 39 </a> <a href="rtwtypes_h.html#type_int32_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_int32_T');" target="_self"><font color="#1122aa">int32_T</font></a> Switch_PhaAdv; <span class="CT">/* '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:514')" name="code2model"><font color="#117755"><i><S8>/Switch_PhaAdv</i></font></a>' */</span>
|
|
||||||
</span><span><a class="LN" name="40"> 40 </a> <a href="rtwtypes_h.html#type_int32_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_int32_T');" target="_self"><font color="#1122aa">int32_T</font></a> UnitDelay2_DSTATE; <span class="CT">/* '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1446')" name="code2model"><font color="#117755"><i><S16>/UnitDelay2</i></font></a>' */</span>
|
|
||||||
</span><span><a class="LN" name="41"> 41 </a> <a href="rtwtypes_h.html#type_int16_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_int16_T');" target="_self"><font color="#1122aa">int16_T</font></a> Merge; <span class="CT">/* '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:345')" name="code2model"><font color="#117755"><i><S9>/Merge</i></font></a>' */</span>
|
|
||||||
</span><span><a class="LN" name="42"> 42 </a> <a href="rtwtypes_h.html#type_int16_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_int16_T');" target="_self"><font color="#1122aa">int16_T</font></a> Merge1; <span class="CT">/* '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:346')" name="code2model"><font color="#117755"><i><S9>/Merge1</i></font></a>' */</span>
|
|
||||||
</span><span><a class="LN" name="43"> 43 </a> <a href="rtwtypes_h.html#type_int16_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_int16_T');" target="_self"><font color="#1122aa">int16_T</font></a> Merge2; <span class="CT">/* '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:347')" name="code2model"><font color="#117755"><i><S9>/Merge2</i></font></a>' */</span>
|
|
||||||
</span><span><a class="LN" name="44"> 44 </a> <a href="rtwtypes_h.html#type_int16_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_int16_T');" target="_self"><font color="#1122aa">int16_T</font></a> z_counterRawPrev; <span class="CT">/* '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1341')" name="code2model"><font color="#117755"><i><S15>/z_counterRawPrev</i></font></a>' */</span>
|
|
||||||
</span><span><a class="LN" name="45"> 45 </a> <a href="rtwtypes_h.html#type_int16_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_int16_T');" target="_self"><font color="#1122aa">int16_T</font></a> Sum4; <span class="CT">/* '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1454')" name="code2model"><font color="#117755"><i><S15>/Sum4</i></font></a>' */</span>
|
|
||||||
</span><span><a class="LN" name="46"> 46 </a> <a href="rtwtypes_h.html#type_int16_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_int16_T');" target="_self"><font color="#1122aa">int16_T</font></a> UnitDelay1_DSTATE; <span class="CT">/* '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1651:1621')" name="code2model"><font color="#117755"><i><S17>/UnitDelay1</i></font></a>' */</span>
|
|
||||||
</span><span><a class="LN" name="47"> 47 </a> <a href="rtwtypes_h.html#type_int16_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_int16_T');" target="_self"><font color="#1122aa">int16_T</font></a> UnitDelay1_DSTATE_c; <span class="CT">/* '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1507')" name="code2model"><font color="#117755"><i><S14>/UnitDelay1</i></font></a>' */</span>
|
|
||||||
</span><span><a class="LN" name="48"> 48 </a> <a href="rtwtypes_h.html#type_int16_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_int16_T');" target="_self"><font color="#1122aa">int16_T</font></a> z_counter2_DSTATE; <span class="CT">/* '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:169')" name="code2model"><font color="#117755"><i><S15>/z_counter2</i></font></a>' */</span>
|
|
||||||
</span><span><a class="LN" name="49"> 49 </a> <a href="rtwtypes_h.html#type_int8_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_int8_T');" target="_self"><font color="#1122aa">int8_T</font></a> UnitDelay1; <span class="CT">/* '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1631')" name="code2model"><font color="#117755"><i><S13>/UnitDelay1</i></font></a>' */</span>
|
|
||||||
</span><span><a class="LN" name="50"> 50 </a> <a href="rtwtypes_h.html#type_int8_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_int8_T');" target="_self"><font color="#1122aa">int8_T</font></a> Switch2; <span class="CT">/* '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:52')" name="code2model"><font color="#117755"><i><S13>/Switch2</i></font></a>' */</span>
|
|
||||||
</span><span><a class="LN" name="51"> 51 </a> <a href="rtwtypes_h.html#type_int8_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_int8_T');" target="_self"><font color="#1122aa">int8_T</font></a> UnitDelay2_DSTATE_i; <span class="CT">/* '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1318')" name="code2model"><font color="#117755"><i><S13>/UnitDelay2</i></font></a>' */</span>
|
|
||||||
</span><span><a class="LN" name="52"> 52 </a> <a href="rtwtypes_h.html#type_int8_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_int8_T');" target="_self"><font color="#1122aa">int8_T</font></a> If1_ActiveSubsystem; <span class="CT">/* '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:434')" name="code2model"><font color="#117755"><i><S2>/If1</i></font></a>' */</span>
|
|
||||||
</span><span><a class="LN" name="53"> 53 </a> <a href="rtwtypes_h.html#type_uint8_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_uint8_T');" target="_self"><font color="#1122aa">uint8_T</font></a> UnitDelay_DSTATE; <span class="CT">/* '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:31')" name="code2model"><font color="#117755"><i><S11>/UnitDelay</i></font></a>' */</span>
|
|
||||||
</span><span><a class="LN" name="54"> 54 </a> <a href="rtwtypes_h.html#type_uint8_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_uint8_T');" target="_self"><font color="#1122aa">uint8_T</font></a> UnitDelay1_DSTATE_i; <span class="CT">/* '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:32')" name="code2model"><font color="#117755"><i><S11>/UnitDelay1</i></font></a>' */</span>
|
|
||||||
</span><span><a class="LN" name="55"> 55 </a> <a href="rtwtypes_h.html#type_uint8_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_uint8_T');" target="_self"><font color="#1122aa">uint8_T</font></a> UnitDelay2_DSTATE_h; <span class="CT">/* '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:33')" name="code2model"><font color="#117755"><i><S11>/UnitDelay2</i></font></a>' */</span>
|
|
||||||
</span><span><a class="LN" name="56"> 56 </a> <a href="rtwtypes_h.html#type_boolean_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_boolean_T');" target="_self"><font color="#1122aa">boolean_T</font></a> n_commDeacv_Mode; <span class="CT">/* '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1328')" name="code2model"><font color="#117755"><i><S14>/n_commDeacv</i></font></a>' */</span>
|
|
||||||
</span><span><a class="LN" name="57"> 57 </a> <a href="rtwtypes_h.html#type_boolean_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_boolean_T');" target="_self"><font color="#1122aa">boolean_T</font></a> dz_counter_Mode; <span class="CT">/* '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1518')" name="code2model"><font color="#117755"><i><S14>/dz_counter</i></font></a>' */</span>
|
|
||||||
</span><span><a class="LN" name="58"> 58 </a><b>}</b> <a name="type_DW">DW</a>;
|
|
||||||
</span><span><a class="LN" name="59"> 59 </a>
|
|
||||||
</span><span><a class="LN" name="60"> 60 </a><span class="CT">/* Constant parameters (auto storage) */</span>
|
|
||||||
</span><span><a class="LN" name="61"> 61 </a><span class="KW">typedef</span> <span class="KW">struct</span> <b>{</b>
|
|
||||||
</span><span><a class="LN" name="62"> 62 </a> <span class="CT">/* Computed Parameter: r_trapPhaA_M1_Table</span>
|
|
||||||
</span><span><a class="LN" name="63"> 63 </a><span class="CT"> * Referenced by: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:289')" name="code2model"><font color="#117755"><i><S18>/r_trapPhaA_M1</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="64"> 64 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="65"> 65 </a> <a href="rtwtypes_h.html#type_int16_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_int16_T');" target="_self"><font color="#1122aa">int16_T</font></a> r_trapPhaA_M1_Table[7];
|
|
||||||
</span><span><a class="LN" name="66"> 66 </a>
|
|
||||||
</span><span><a class="LN" name="67"> 67 </a> <span class="CT">/* Computed Parameter: r_trapPhaB_M1_Table</span>
|
|
||||||
</span><span><a class="LN" name="68"> 68 </a><span class="CT"> * Referenced by: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:290')" name="code2model"><font color="#117755"><i><S18>/r_trapPhaB_M1</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="69"> 69 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="70"> 70 </a> <a href="rtwtypes_h.html#type_int16_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_int16_T');" target="_self"><font color="#1122aa">int16_T</font></a> r_trapPhaB_M1_Table[7];
|
|
||||||
</span><span><a class="LN" name="71"> 71 </a>
|
|
||||||
</span><span><a class="LN" name="72"> 72 </a> <span class="CT">/* Computed Parameter: r_trapPhaC_M1_Table</span>
|
|
||||||
</span><span><a class="LN" name="73"> 73 </a><span class="CT"> * Referenced by: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:291')" name="code2model"><font color="#117755"><i><S18>/r_trapPhaC_M1</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="74"> 74 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="75"> 75 </a> <a href="rtwtypes_h.html#type_int16_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_int16_T');" target="_self"><font color="#1122aa">int16_T</font></a> r_trapPhaC_M1_Table[7];
|
|
||||||
</span><span><a class="LN" name="76"> 76 </a>
|
|
||||||
</span><span><a class="LN" name="77"> 77 </a> <span class="CT">/* Computed Parameter: r_sinPhaA_M1_Table</span>
|
|
||||||
</span><span><a class="LN" name="78"> 78 </a><span class="CT"> * Referenced by: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:309')" name="code2model"><font color="#117755"><i><S19>/r_sinPhaA_M1</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="79"> 79 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="80"> 80 </a> <a href="rtwtypes_h.html#type_int16_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_int16_T');" target="_self"><font color="#1122aa">int16_T</font></a> r_sinPhaA_M1_Table[37];
|
|
||||||
</span><span><a class="LN" name="81"> 81 </a>
|
|
||||||
</span><span><a class="LN" name="82"> 82 </a> <span class="CT">/* Computed Parameter: r_sinPhaB_M1_Table</span>
|
|
||||||
</span><span><a class="LN" name="83"> 83 </a><span class="CT"> * Referenced by: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:310')" name="code2model"><font color="#117755"><i><S19>/r_sinPhaB_M1</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="84"> 84 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="85"> 85 </a> <a href="rtwtypes_h.html#type_int16_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_int16_T');" target="_self"><font color="#1122aa">int16_T</font></a> r_sinPhaB_M1_Table[37];
|
|
||||||
</span><span><a class="LN" name="86"> 86 </a>
|
|
||||||
</span><span><a class="LN" name="87"> 87 </a> <span class="CT">/* Computed Parameter: r_sinPhaC_M1_Table</span>
|
|
||||||
</span><span><a class="LN" name="88"> 88 </a><span class="CT"> * Referenced by: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:311')" name="code2model"><font color="#117755"><i><S19>/r_sinPhaC_M1</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="89"> 89 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="90"> 90 </a> <a href="rtwtypes_h.html#type_int16_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_int16_T');" target="_self"><font color="#1122aa">int16_T</font></a> r_sinPhaC_M1_Table[37];
|
|
||||||
</span><span><a class="LN" name="91"> 91 </a>
|
|
||||||
</span><span><a class="LN" name="92"> 92 </a> <span class="CT">/* Computed Parameter: r_sin3PhaA_M1_Table</span>
|
|
||||||
</span><span><a class="LN" name="93"> 93 </a><span class="CT"> * Referenced by: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:299')" name="code2model"><font color="#117755"><i><S20>/r_sin3PhaA_M1</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="94"> 94 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="95"> 95 </a> <a href="rtwtypes_h.html#type_int16_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_int16_T');" target="_self"><font color="#1122aa">int16_T</font></a> r_sin3PhaA_M1_Table[37];
|
|
||||||
</span><span><a class="LN" name="96"> 96 </a>
|
|
||||||
</span><span><a class="LN" name="97"> 97 </a> <span class="CT">/* Computed Parameter: r_sin3PhaB_M1_Table</span>
|
|
||||||
</span><span><a class="LN" name="98"> 98 </a><span class="CT"> * Referenced by: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:300')" name="code2model"><font color="#117755"><i><S20>/r_sin3PhaB_M1</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="99"> 99 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="100"> 100 </a> <a href="rtwtypes_h.html#type_int16_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_int16_T');" target="_self"><font color="#1122aa">int16_T</font></a> r_sin3PhaB_M1_Table[37];
|
|
||||||
</span><span><a class="LN" name="101"> 101 </a>
|
|
||||||
</span><span><a class="LN" name="102"> 102 </a> <span class="CT">/* Computed Parameter: r_sin3PhaC_M1_Table</span>
|
|
||||||
</span><span><a class="LN" name="103"> 103 </a><span class="CT"> * Referenced by: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:301')" name="code2model"><font color="#117755"><i><S20>/r_sin3PhaC_M1</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="104"> 104 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="105"> 105 </a> <a href="rtwtypes_h.html#type_int16_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_int16_T');" target="_self"><font color="#1122aa">int16_T</font></a> r_sin3PhaC_M1_Table[37];
|
|
||||||
</span><span><a class="LN" name="106"> 106 </a>
|
|
||||||
</span><span><a class="LN" name="107"> 107 </a> <span class="CT">/* Computed Parameter: z_commutMap_M1_table</span>
|
|
||||||
</span><span><a class="LN" name="108"> 108 </a><span class="CT"> * Referenced by: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:411')" name="code2model"><font color="#117755"><i><S10>/z_commutMap_M1</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="109"> 109 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="110"> 110 </a> <a href="rtwtypes_h.html#type_int16_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_int16_T');" target="_self"><font color="#1122aa">int16_T</font></a> z_commutMap_M1_table[18];
|
|
||||||
</span><span><a class="LN" name="111"> 111 </a>
|
|
||||||
</span><span><a class="LN" name="112"> 112 </a> <span class="CT">/* Computed Parameter: vec_hallToPos_Value</span>
|
|
||||||
</span><span><a class="LN" name="113"> 113 </a><span class="CT"> * Referenced by: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:22')" name="code2model"><font color="#117755"><i><S12>/vec_hallToPos</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="114"> 114 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="115"> 115 </a> <a href="rtwtypes_h.html#type_int8_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_int8_T');" target="_self"><font color="#1122aa">int8_T</font></a> vec_hallToPos_Value[8];
|
|
||||||
</span><span><a class="LN" name="116"> 116 </a><b>}</b> <a name="type_ConstP">ConstP</a>;
|
|
||||||
</span><span><a class="LN" name="117"> 117 </a>
|
|
||||||
</span><span><a class="LN" name="118"> 118 </a><span class="CT">/* External inputs (root inport signals with auto storage) */</span>
|
|
||||||
</span><span><a class="LN" name="119"> 119 </a><span class="KW">typedef</span> <span class="KW">struct</span> <b>{</b>
|
|
||||||
</span><span><a class="LN" name="120"> 120 </a> <a href="rtwtypes_h.html#type_uint8_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_uint8_T');" target="_self"><font color="#1122aa">uint8_T</font></a> b_hallA; <span class="CT">/* '<Root>/b_hallA ' */</span>
|
|
||||||
</span><span><a class="LN" name="121"> 121 </a> <a href="rtwtypes_h.html#type_uint8_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_uint8_T');" target="_self"><font color="#1122aa">uint8_T</font></a> b_hallB; <span class="CT">/* '<Root>/b_hallB' */</span>
|
|
||||||
</span><span><a class="LN" name="122"> 122 </a> <a href="rtwtypes_h.html#type_uint8_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_uint8_T');" target="_self"><font color="#1122aa">uint8_T</font></a> b_hallC; <span class="CT">/* '<Root>/b_hallC' */</span>
|
|
||||||
</span><span><a class="LN" name="123"> 123 </a> <a href="rtwtypes_h.html#type_int32_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_int32_T');" target="_self"><font color="#1122aa">int32_T</font></a> r_DC; <span class="CT">/* '<Root>/r_DC' */</span>
|
|
||||||
</span><span><a class="LN" name="124"> 124 </a><b>}</b> <a name="type_ExtU">ExtU</a>;
|
|
||||||
</span><span><a class="LN" name="125"> 125 </a>
|
|
||||||
</span><span><a class="LN" name="126"> 126 </a><span class="CT">/* External outputs (root outports fed by signals with auto storage) */</span>
|
|
||||||
</span><span><a class="LN" name="127"> 127 </a><span class="KW">typedef</span> <span class="KW">struct</span> <b>{</b>
|
|
||||||
</span><span><a class="LN" name="128"> 128 </a> <a href="rtwtypes_h.html#type_int32_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_int32_T');" target="_self"><font color="#1122aa">int32_T</font></a> DC_phaA; <span class="CT">/* '<Root>/DC_phaA' */</span>
|
|
||||||
</span><span><a class="LN" name="129"> 129 </a> <a href="rtwtypes_h.html#type_int32_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_int32_T');" target="_self"><font color="#1122aa">int32_T</font></a> DC_phaB; <span class="CT">/* '<Root>/DC_phaB' */</span>
|
|
||||||
</span><span><a class="LN" name="130"> 130 </a> <a href="rtwtypes_h.html#type_int32_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_int32_T');" target="_self"><font color="#1122aa">int32_T</font></a> DC_phaC; <span class="CT">/* '<Root>/DC_phaC' */</span>
|
|
||||||
</span><span><a class="LN" name="131"> 131 </a> <a href="rtwtypes_h.html#type_int32_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_int32_T');" target="_self"><font color="#1122aa">int32_T</font></a> n_mot; <span class="CT">/* '<Root>/n_mot' */</span>
|
|
||||||
</span><span><a class="LN" name="132"> 132 </a> <a href="rtwtypes_h.html#type_int32_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_int32_T');" target="_self"><font color="#1122aa">int32_T</font></a> a_elecAngle; <span class="CT">/* '<Root>/a_elecAngle' */</span>
|
|
||||||
</span><span><a class="LN" name="133"> 133 </a><b>}</b> <a name="type_ExtY">ExtY</a>;
|
|
||||||
</span><span><a class="LN" name="134"> 134 </a>
|
|
||||||
</span><span><a class="LN" name="135"> 135 </a><span class="CT">/* Parameters (auto storage) */</span>
|
|
||||||
</span><span><a class="LN" name="136"> 136 </a><span class="KW">struct</span> P_ <b>{</b>
|
|
||||||
</span><span><a class="LN" name="137"> 137 </a> <a href="rtwtypes_h.html#type_int32_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_int32_T');" target="_self"><font color="#1122aa">int32_T</font></a> cf_speedCoef; <span class="CT">/* Variable: cf_speedCoef</span>
|
|
||||||
</span><span><a class="LN" name="138"> 138 </a><span class="CT"> * Referenced by: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1447')" name="code2model"><font color="#117755"><i><S16>/cf_spdCoef</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="139"> 139 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="140"> 140 </a> <a href="rtwtypes_h.html#type_int32_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_int32_T');" target="_self"><font color="#1122aa">int32_T</font></a> cf_speedFilt; <span class="CT">/* Variable: cf_speedFilt</span>
|
|
||||||
</span><span><a class="LN" name="141"> 141 </a><span class="CT"> * Referenced by: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1448')" name="code2model"><font color="#117755"><i><S16>/cf_speedFilt</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="142"> 142 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="143"> 143 </a> <a href="rtwtypes_h.html#type_int32_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_int32_T');" target="_self"><font color="#1122aa">int32_T</font></a> n_commAcvLo; <span class="CT">/* Variable: n_commAcvLo</span>
|
|
||||||
</span><span><a class="LN" name="144"> 144 </a><span class="CT"> * Referenced by: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1328')" name="code2model"><font color="#117755"><i><S14>/n_commDeacv</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="145"> 145 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="146"> 146 </a> <a href="rtwtypes_h.html#type_int32_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_int32_T');" target="_self"><font color="#1122aa">int32_T</font></a> n_commDeacvHi; <span class="CT">/* Variable: n_commDeacvHi</span>
|
|
||||||
</span><span><a class="LN" name="147"> 147 </a><span class="CT"> * Referenced by: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1328')" name="code2model"><font color="#117755"><i><S14>/n_commDeacv</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="148"> 148 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="149"> 149 </a> <a href="rtwtypes_h.html#type_int32_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_int32_T');" target="_self"><font color="#1122aa">int32_T</font></a> n_motPhaAdvEna; <span class="CT">/* Variable: n_motPhaAdvEna</span>
|
|
||||||
</span><span><a class="LN" name="150"> 150 </a><span class="CT"> * Referenced by: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1671')" name="code2model"><font color="#117755"><i><S8>/n_motPhaAdvEna</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="151"> 151 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="152"> 152 </a> <a href="rtwtypes_h.html#type_int32_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_int32_T');" target="_self"><font color="#1122aa">int32_T</font></a> r_commDCDeacv; <span class="CT">/* Variable: r_commDCDeacv</span>
|
|
||||||
</span><span><a class="LN" name="153"> 153 </a><span class="CT"> * Referenced by: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1329')" name="code2model"><font color="#117755"><i><S14>/r_commDCDeacv</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="154"> 154 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="155"> 155 </a> <a href="rtwtypes_h.html#type_int32_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_int32_T');" target="_self"><font color="#1122aa">int32_T</font></a> r_phaAdvDC_XA[11]; <span class="CT">/* Variable: r_phaAdvDC_XA</span>
|
|
||||||
</span><span><a class="LN" name="156"> 156 </a><span class="CT"> * Referenced by: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:522')" name="code2model"><font color="#117755"><i><S8>/r_phaAdvDC_XA</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="157"> 157 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="158"> 158 </a> <a href="rtwtypes_h.html#type_int16_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_int16_T');" target="_self"><font color="#1122aa">int16_T</font></a> a_phaAdv_M1[11]; <span class="CT">/* Variable: a_phaAdv_M1</span>
|
|
||||||
</span><span><a class="LN" name="159"> 159 </a><span class="CT"> * Referenced by: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:521')" name="code2model"><font color="#117755"><i><S8>/a_phaAdv_M2</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="160"> 160 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="161"> 161 </a> <a href="rtwtypes_h.html#type_int16_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_int16_T');" target="_self"><font color="#1122aa">int16_T</font></a> dz_counterHi; <span class="CT">/* Variable: dz_counterHi</span>
|
|
||||||
</span><span><a class="LN" name="162"> 162 </a><span class="CT"> * Referenced by: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1518')" name="code2model"><font color="#117755"><i><S14>/dz_counter</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="163"> 163 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="164"> 164 </a> <a href="rtwtypes_h.html#type_int16_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_int16_T');" target="_self"><font color="#1122aa">int16_T</font></a> dz_counterLo; <span class="CT">/* Variable: dz_counterLo</span>
|
|
||||||
</span><span><a class="LN" name="165"> 165 </a><span class="CT"> * Referenced by: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1518')" name="code2model"><font color="#117755"><i><S14>/dz_counter</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="166"> 166 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="167"> 167 </a> <a href="rtwtypes_h.html#type_int16_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_int16_T');" target="_self"><font color="#1122aa">int16_T</font></a> z_maxCntRst; <span class="CT">/* Variable: z_maxCntRst</span>
|
|
||||||
</span><span><a class="LN" name="168"> 168 </a><span class="CT"> * Referenced by:</span>
|
|
||||||
</span><span><a class="LN" name="169"> 169 </a><span class="CT"> * '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1358')" name="code2model"><font color="#117755"><i><S15>/z_counter</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="170"> 170 </a><span class="CT"> * '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:169')" name="code2model"><font color="#117755"><i><S15>/z_counter2</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="171"> 171 </a><span class="CT"> * '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1625')" name="code2model"><font color="#117755"><i><S16>/z_maxCntRst</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="172"> 172 </a><span class="CT"> * '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1651:1616')" name="code2model"><font color="#117755"><i><S17>/Constant1</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="173"> 173 </a><span class="CT"> * '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1651:1621')" name="code2model"><font color="#117755"><i><S17>/UnitDelay1</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="174"> 174 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="175"> 175 </a> <a href="rtwtypes_h.html#type_uint8_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_uint8_T');" target="_self"><font color="#1122aa">uint8_T</font></a> z_ctrlTypSel; <span class="CT">/* Variable: z_ctrlTypSel</span>
|
|
||||||
</span><span><a class="LN" name="176"> 176 </a><span class="CT"> * Referenced by: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:208')" name="code2model"><font color="#117755"><i><S7>/z_ctrlTypSel1</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="177"> 177 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="178"> 178 </a> <a href="rtwtypes_h.html#type_boolean_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_boolean_T');" target="_self"><font color="#1122aa">boolean_T</font></a> b_phaAdvEna; <span class="CT">/* Variable: b_phaAdvEna</span>
|
|
||||||
</span><span><a class="LN" name="179"> 179 </a><span class="CT"> * Referenced by: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:512')" name="code2model"><font color="#117755"><i><S8>/a_elecPeriod1</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="180"> 180 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="181"> 181 </a><b>}</b>;
|
|
||||||
</span><span><a class="LN" name="182"> 182 </a>
|
|
||||||
</span><span><a class="LN" name="183"> 183 </a><span class="CT">/* Parameters (auto storage) */</span>
|
|
||||||
</span><span><a class="LN" name="184"> 184 </a><span class="KW">typedef</span> <span class="KW">struct</span> P_ <a name="type_P">P</a>;
|
|
||||||
</span><span><a class="LN" name="185"> 185 </a>
|
|
||||||
</span><span><a class="LN" name="186"> 186 </a><span class="CT">/* Real-time Model Data Structure */</span>
|
|
||||||
</span><span><a class="LN" name="187"> 187 </a><span class="KW">struct</span> tag_RTM <b>{</b>
|
|
||||||
</span><span><a class="LN" name="188"> 188 </a> <a href="#type_P" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_P');" target="_self"><font color="#1122aa">P</font></a> *defaultParam;
|
|
||||||
</span><span><a class="LN" name="189"> 189 </a> <a href="#type_ExtU" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_ExtU');" target="_self"><font color="#1122aa">ExtU</font></a> *inputs;
|
|
||||||
</span><span><a class="LN" name="190"> 190 </a> <a href="#type_ExtY" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_ExtY');" target="_self"><font color="#1122aa">ExtY</font></a> *outputs;
|
|
||||||
</span><span><a class="LN" name="191"> 191 </a> <a href="#type_DW" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_DW');" target="_self"><font color="#1122aa">DW</font></a> *dwork;
|
|
||||||
</span><span><a class="LN" name="192"> 192 </a><b>}</b>;
|
|
||||||
</span><span><a class="LN" name="193"> 193 </a>
|
|
||||||
</span><span><a class="LN" name="194"> 194 </a><span class="CT">/* Constant parameters (auto storage) */</span>
|
|
||||||
</span><span><a class="LN" name="195"> 195 </a><span class="DT">extern</span> <span class="DT">const</span> <a href="#type_ConstP" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_ConstP');" target="_self"><font color="#1122aa">ConstP</font></a> <a href="BLDC_controller_data_c.html#var_rtConstP" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'var_rtConstP');" target="_self"><font color="#1122aa">rtConstP</font></a>;
|
|
||||||
</span><span><a class="LN" name="196"> 196 </a>
|
|
||||||
</span><span><a class="LN" name="197"> 197 </a><span class="CT">/* Model entry point functions */</span>
|
|
||||||
</span><span><a class="LN" name="198"> 198 </a><span class="DT">extern</span> <span class="DT">void</span> <a href="BLDC_controller_c.html#fcn_BLDC_controller_initialize" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'fcn_BLDC_controller_initialize');" target="_self"><font color="#1122aa">BLDC_controller_initialize</font></a>(<a href="#type_RT_MODEL" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_RT_MODEL');" target="_self"><font color="#1122aa">RT_MODEL</font></a> *<span class="DT">const</span> rtM);
|
|
||||||
</span><span><a class="LN" name="199"> 199 </a><span class="DT">extern</span> <span class="DT">void</span> <a href="BLDC_controller_c.html#fcn_BLDC_controller_step" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'fcn_BLDC_controller_step');" target="_self"><font color="#1122aa">BLDC_controller_step</font></a>(<a href="#type_RT_MODEL" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_RT_MODEL');" target="_self"><font color="#1122aa">RT_MODEL</font></a> *<span class="DT">const</span> rtM);
|
|
||||||
</span><span><a class="LN" name="200"> 200 </a>
|
|
||||||
</span><span><a class="LN" name="201"> 201 </a><span class="CT">/*-</span>
|
|
||||||
</span><span><a class="LN" name="202"> 202 </a><span class="CT"> * These blocks were eliminated from the model due to optimizations:</span>
|
|
||||||
</span><span><a class="LN" name="203"> 203 </a><span class="CT"> *</span>
|
|
||||||
</span><span><a class="LN" name="204"> 204 </a><span class="CT"> * Block '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:141')" name="code2model"><font color="#117755"><i><S14>/Scope2</i></font></a>' : Unused code path elimination</span>
|
|
||||||
</span><span><a class="LN" name="205"> 205 </a><span class="CT"> * Block '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:262')" name="code2model"><font color="#117755"><i><S8>/Scope</i></font></a>' : Unused code path elimination</span>
|
|
||||||
</span><span><a class="LN" name="206"> 206 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="207"> 207 </a>
|
|
||||||
</span><span><a class="LN" name="208"> 208 </a><span class="CT">/*-</span>
|
|
||||||
</span><span><a class="LN" name="209"> 209 </a><span class="CT"> * The generated code includes comments that allow you to trace directly</span>
|
|
||||||
</span><span><a class="LN" name="210"> 210 </a><span class="CT"> * back to the appropriate location in the model. The basic format</span>
|
|
||||||
</span><span><a class="LN" name="211"> 211 </a><span class="CT"> * is <system>/block_name, where system is the system number (uniquely</span>
|
|
||||||
</span><span><a class="LN" name="212"> 212 </a><span class="CT"> * assigned by Simulink) and block_name is the name of the block.</span>
|
|
||||||
</span><span><a class="LN" name="213"> 213 </a><span class="CT"> *</span>
|
|
||||||
</span><span><a class="LN" name="214"> 214 </a><span class="CT"> * Note that this particular code originates from a subsystem build,</span>
|
|
||||||
</span><span><a class="LN" name="215"> 215 </a><span class="CT"> * and has its own system numbers different from the parent model.</span>
|
|
||||||
</span><span><a class="LN" name="216"> 216 </a><span class="CT"> * Refer to the system hierarchy for this subsystem below, and use the</span>
|
|
||||||
</span><span><a class="LN" name="217"> 217 </a><span class="CT"> * MATLAB hilite_system command to trace the generated code back</span>
|
|
||||||
</span><span><a class="LN" name="218"> 218 </a><span class="CT"> * to the parent model. For example,</span>
|
|
||||||
</span><span><a class="LN" name="219"> 219 </a><span class="CT"> *</span>
|
|
||||||
</span><span><a class="LN" name="220"> 220 </a><span class="CT"> * hilite_system('BLDCmotorControl_R2017b/BLDC_controller') - opens subsystem BLDCmotorControl_R2017b/BLDC_controller</span>
|
|
||||||
</span><span><a class="LN" name="221"> 221 </a><span class="CT"> * hilite_system('BLDCmotorControl_R2017b/BLDC_controller/Kp') - opens and selects block Kp</span>
|
|
||||||
</span><span><a class="LN" name="222"> 222 </a><span class="CT"> *</span>
|
|
||||||
</span><span><a class="LN" name="223"> 223 </a><span class="CT"> * Here is the system hierarchy for this model</span>
|
|
||||||
</span><span><a class="LN" name="224"> 224 </a><span class="CT"> *</span>
|
|
||||||
</span><span><a class="LN" name="225"> 225 </a><span class="CT"> * '<Root>' : 'BLDCmotorControl_R2017b'</span>
|
|
||||||
</span><span><a class="LN" name="226"> 226 </a><span class="CT"> * '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:29')" name="code2model"><font color="#117755"><i><S1></i></font></a>' : 'BLDCmotorControl_R2017b/BLDC_controller'</span>
|
|
||||||
</span><span><a class="LN" name="227"> 227 </a><span class="CT"> * '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687')" name="code2model"><font color="#117755"><i><S2></i></font></a>' : 'BLDCmotorControl_R2017b/BLDC_controller/BLDC_controller'</span>
|
|
||||||
</span><span><a class="LN" name="228"> 228 </a><span class="CT"> * '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:1831')" name="code2model"><font color="#117755"><i><S3></i></font></a>' : 'BLDCmotorControl_R2017b/BLDC_controller/signal_log1'</span>
|
|
||||||
</span><span><a class="LN" name="229"> 229 </a><span class="CT"> * '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:1834')" name="code2model"><font color="#117755"><i><S4></i></font></a>' : 'BLDCmotorControl_R2017b/BLDC_controller/signal_log2'</span>
|
|
||||||
</span><span><a class="LN" name="230"> 230 </a><span class="CT"> * '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:1837')" name="code2model"><font color="#117755"><i><S5></i></font></a>' : 'BLDCmotorControl_R2017b/BLDC_controller/signal_log3'</span>
|
|
||||||
</span><span><a class="LN" name="231"> 231 </a><span class="CT"> * '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:1828')" name="code2model"><font color="#117755"><i><S6></i></font></a>' : 'BLDCmotorControl_R2017b/BLDC_controller/signal_log6'</span>
|
|
||||||
</span><span><a class="LN" name="232"> 232 </a><span class="CT"> * '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:6')" name="code2model"><font color="#117755"><i><S7></i></font></a>' : 'BLDCmotorControl_R2017b/BLDC_controller/BLDC_controller/F01_Preliminary_Calculations'</span>
|
|
||||||
</span><span><a class="LN" name="233"> 233 </a><span class="CT"> * '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:215')" name="code2model"><font color="#117755"><i><S8></i></font></a>' : 'BLDCmotorControl_R2017b/BLDC_controller/BLDC_controller/F02_Electrical_Angle_Calculation'</span>
|
|
||||||
</span><span><a class="LN" name="234"> 234 </a><span class="CT"> * '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:282')" name="code2model"><font color="#117755"><i><S9></i></font></a>' : 'BLDCmotorControl_R2017b/BLDC_controller/BLDC_controller/F03_Control_Method_Selection'</span>
|
|
||||||
</span><span><a class="LN" name="235"> 235 </a><span class="CT"> * '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:361')" name="code2model"><font color="#117755"><i><S10></i></font></a>' : 'BLDCmotorControl_R2017b/BLDC_controller/BLDC_controller/F04_Control_Type_Management'</span>
|
|
||||||
</span><span><a class="LN" name="236"> 236 </a><span class="CT"> * '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:26')" name="code2model"><font color="#117755"><i><S11></i></font></a>' : 'BLDCmotorControl_R2017b/BLDC_controller/BLDC_controller/F01_Preliminary_Calculations/F01_01_Edge_Detector'</span>
|
|
||||||
</span><span><a class="LN" name="237"> 237 </a><span class="CT"> * '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:10')" name="code2model"><font color="#117755"><i><S12></i></font></a>' : 'BLDCmotorControl_R2017b/BLDC_controller/BLDC_controller/F01_Preliminary_Calculations/F01_02_Position_Calculation'</span>
|
|
||||||
</span><span><a class="LN" name="238"> 238 </a><span class="CT"> * '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:38')" name="code2model"><font color="#117755"><i><S13></i></font></a>' : 'BLDCmotorControl_R2017b/BLDC_controller/BLDC_controller/F01_Preliminary_Calculations/F01_03_Direction_Detection'</span>
|
|
||||||
</span><span><a class="LN" name="239"> 239 </a><span class="CT"> * '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:59')" name="code2model"><font color="#117755"><i><S14></i></font></a>' : 'BLDCmotorControl_R2017b/BLDC_controller/BLDC_controller/F01_Preliminary_Calculations/F01_04_Speed_Calculation'</span>
|
|
||||||
</span><span><a class="LN" name="240"> 240 </a><span class="CT"> * '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1340')" name="code2model"><font color="#117755"><i><S15></i></font></a>' : 'BLDCmotorControl_R2017b/BLDC_controller/BLDC_controller/F01_Preliminary_Calculations/F01_04_Speed_Calculation/Counter_Hold_and_Error_Calculation'</span>
|
|
||||||
</span><span><a class="LN" name="241"> 241 </a><span class="CT"> * '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1401')" name="code2model"><font color="#117755"><i><S16></i></font></a>' : 'BLDCmotorControl_R2017b/BLDC_controller/BLDC_controller/F01_Preliminary_Calculations/F01_04_Speed_Calculation/Motor_Speed_Calculation'</span>
|
|
||||||
</span><span><a class="LN" name="242"> 242 </a><span class="CT"> * '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1651')" name="code2model"><font color="#117755"><i><S17></i></font></a>' : 'BLDCmotorControl_R2017b/BLDC_controller/BLDC_controller/F01_Preliminary_Calculations/F01_04_Speed_Calculation/rst_DelayLim'</span>
|
|
||||||
</span><span><a class="LN" name="243"> 243 </a><span class="CT"> * '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:285')" name="code2model"><font color="#117755"><i><S18></i></font></a>' : 'BLDCmotorControl_R2017b/BLDC_controller/BLDC_controller/F03_Control_Method_Selection/F03_01_Pure_Trapezoidal_Method'</span>
|
|
||||||
</span><span><a class="LN" name="244"> 244 </a><span class="CT"> * '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:305')" name="code2model"><font color="#117755"><i><S19></i></font></a>' : 'BLDCmotorControl_R2017b/BLDC_controller/BLDC_controller/F03_Control_Method_Selection/F03_02_Sinusoidal_Method'</span>
|
|
||||||
</span><span><a class="LN" name="245"> 245 </a><span class="CT"> * '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:295')" name="code2model"><font color="#117755"><i><S20></i></font></a>' : 'BLDCmotorControl_R2017b/BLDC_controller/BLDC_controller/F03_Control_Method_Selection/F03_03_Sinusoidal3rd_Method'</span>
|
|
||||||
</span><span><a class="LN" name="246"> 246 </a><span class="CT"> * '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:349')" name="code2model"><font color="#117755"><i><S21></i></font></a>' : 'BLDCmotorControl_R2017b/BLDC_controller/BLDC_controller/F03_Control_Method_Selection/signal_log1'</span>
|
|
||||||
</span><span><a class="LN" name="247"> 247 </a><span class="CT"> * '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:352')" name="code2model"><font color="#117755"><i><S22></i></font></a>' : 'BLDCmotorControl_R2017b/BLDC_controller/BLDC_controller/F03_Control_Method_Selection/signal_log2'</span>
|
|
||||||
</span><span><a class="LN" name="248"> 248 </a><span class="CT"> * '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:355')" name="code2model"><font color="#117755"><i><S23></i></font></a>' : 'BLDCmotorControl_R2017b/BLDC_controller/BLDC_controller/F03_Control_Method_Selection/signal_log6'</span>
|
|
||||||
</span><span><a class="LN" name="249"> 249 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="250"> 250 </a><font color="#992211">#</font><span class="PP">endif</span> <span class="CT">/* RTW_HEADER_BLDC_controller_h_ */</span>
|
|
||||||
</span><span><a class="LN" name="251"> 251 </a>
|
|
||||||
</span><span><a class="LN" name="252"> 252 </a><span class="CT">/*</span>
|
|
||||||
</span><span><a class="LN" name="253"> 253 </a><span class="CT"> * File trailer for generated code.</span>
|
|
||||||
</span><span><a class="LN" name="254"> 254 </a><span class="CT"> *</span>
|
|
||||||
</span><span><a class="LN" name="255"> 255 </a><span class="CT"> * [EOF]</span>
|
|
||||||
</span><span><a class="LN" name="256"> 256 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="257"> 257 </a>
|
|
||||||
</span></pre>
|
|
||||||
</td></tr></table>
|
|
||||||
</p>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
@ -1,788 +0,0 @@
|
|||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><link rel="stylesheet" type="text/css" href="rtwreport.css" /><script language="JavaScript" type="text/javascript">function rtwTableShrink(o) {var t = o.nextSibling;if (t.nodeType != 1) {t = t.nextSibling;}if (t.style.display == "none") {t.style.display = "";o.innerHTML = "[-]"} else {t.style.display = "none";o.innerHTML = "[+] ... "}}</script><SCRIPT type="text/javascript" language="JavaScript" src="slwebview.js"></SCRIPT>
|
|
||||||
<SCRIPT type="text/javascript" language="JavaScript" src="id_mapping.js"></SCRIPT>
|
|
||||||
<script language="JavaScript" type="text/javascript" src="rtwreport_utils.js"></script><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>
|
|
||||||
Code Interface Report for BLDC_controller
|
|
||||||
</title>
|
|
||||||
|
|
||||||
</head>
|
|
||||||
<body ONLOAD="try {if (top) {if (top.rtwPageOnLoad) top.rtwPageOnLoad('rtwIdCodeInterface'); else local_onload();}} catch(err) {};">
|
|
||||||
<h1>
|
|
||||||
Code Interface Report for BLDC_controller
|
|
||||||
</h1>
|
|
||||||
<h3>
|
|
||||||
Table of Contents
|
|
||||||
</h3>
|
|
||||||
<ul>
|
|
||||||
<li>
|
|
||||||
<a href="#sec_Entry_Point_Functions">
|
|
||||||
Entry Point Functions
|
|
||||||
</a>
|
|
||||||
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#sec_Inports">
|
|
||||||
Inports
|
|
||||||
</a>
|
|
||||||
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#sec_Outports">
|
|
||||||
Outports
|
|
||||||
</a>
|
|
||||||
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#sec_Interface_Parameters">
|
|
||||||
Interface Parameters
|
|
||||||
</a>
|
|
||||||
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#sec_Data_Stores">
|
|
||||||
Data Stores
|
|
||||||
</a>
|
|
||||||
|
|
||||||
</li>
|
|
||||||
|
|
||||||
</ul>
|
|
||||||
<h3>
|
|
||||||
<a name="sec_Entry_Point_Functions">
|
|
||||||
Entry Point Functions
|
|
||||||
</a>
|
|
||||||
|
|
||||||
</h3>
|
|
||||||
<p>
|
|
||||||
Function: <a href="BLDC_controller_c.html#fcn_BLDC_controller_initialize">BLDC_controller_initialize</a>
|
|
||||||
</p>
|
|
||||||
<table width="100%" class="AltRow" cellspacing="0">
|
|
||||||
<tr class="even">
|
|
||||||
<td width="25%" align="left" valign="top">
|
|
||||||
Prototype
|
|
||||||
</td>
|
|
||||||
<td width="75%" align="left" valign="top">
|
|
||||||
<b>
|
|
||||||
void BLDC_controller_initialize(RT_MODEL *const rtM)
|
|
||||||
</b>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr class="odd">
|
|
||||||
<td width="25%" align="left" valign="top">
|
|
||||||
Description
|
|
||||||
</td>
|
|
||||||
<td width="75%" align="left" valign="top">
|
|
||||||
Initialization entry point of generated code
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr class="even">
|
|
||||||
<td width="25%" align="left" valign="top">
|
|
||||||
Timing
|
|
||||||
</td>
|
|
||||||
<td width="75%" align="left" valign="top">
|
|
||||||
Must be called exactly once
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr class="odd">
|
|
||||||
<td width="25%" align="left" valign="top">
|
|
||||||
Arguments
|
|
||||||
</td>
|
|
||||||
<td width="75%" align="left" valign="top">
|
|
||||||
<table class="AltRow FirstColumn" cellspacing="0">
|
|
||||||
<tr class="heading">
|
|
||||||
<th align="left" valign="top">
|
|
||||||
<b>
|
|
||||||
#
|
|
||||||
</b>
|
|
||||||
|
|
||||||
</th>
|
|
||||||
<th align="left" valign="top">
|
|
||||||
<b>
|
|
||||||
Name
|
|
||||||
</b>
|
|
||||||
|
|
||||||
</th>
|
|
||||||
<th align="left" valign="top">
|
|
||||||
<b>
|
|
||||||
Data Type
|
|
||||||
</b>
|
|
||||||
|
|
||||||
</th>
|
|
||||||
<th align="left" valign="top">
|
|
||||||
<b>
|
|
||||||
Description
|
|
||||||
</b>
|
|
||||||
|
|
||||||
</th>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr class="even">
|
|
||||||
<td align="right" valign="top">
|
|
||||||
1
|
|
||||||
</td>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
rtM
|
|
||||||
</td>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
RT_MODEL *const
|
|
||||||
</td>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
RTModel
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
</table>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr class="even">
|
|
||||||
<td width="25%" align="left" valign="top">
|
|
||||||
Return value
|
|
||||||
</td>
|
|
||||||
<td width="75%" align="left" valign="top">
|
|
||||||
None
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr class="odd">
|
|
||||||
<td width="25%" align="left" valign="top">
|
|
||||||
Header file
|
|
||||||
</td>
|
|
||||||
<td width="75%" align="left" valign="top">
|
|
||||||
<a href="BLDC_controller_h.html">BLDC_controller.h</a>
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
</table>
|
|
||||||
<p>
|
|
||||||
Function: <a href="BLDC_controller_c.html#fcn_BLDC_controller_step">BLDC_controller_step</a>
|
|
||||||
</p>
|
|
||||||
<table width="100%" class="AltRow" cellspacing="0">
|
|
||||||
<tr class="even">
|
|
||||||
<td width="25%" align="left" valign="top">
|
|
||||||
Prototype
|
|
||||||
</td>
|
|
||||||
<td width="75%" align="left" valign="top">
|
|
||||||
<b>
|
|
||||||
void BLDC_controller_step(RT_MODEL *const rtM)
|
|
||||||
</b>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr class="odd">
|
|
||||||
<td width="25%" align="left" valign="top">
|
|
||||||
Description
|
|
||||||
</td>
|
|
||||||
<td width="75%" align="left" valign="top">
|
|
||||||
Output entry point of generated code
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr class="even">
|
|
||||||
<td width="25%" align="left" valign="top">
|
|
||||||
Timing
|
|
||||||
</td>
|
|
||||||
<td width="75%" align="left" valign="top">
|
|
||||||
Must be called periodically, every 6e-05 seconds
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr class="odd">
|
|
||||||
<td width="25%" align="left" valign="top">
|
|
||||||
Arguments
|
|
||||||
</td>
|
|
||||||
<td width="75%" align="left" valign="top">
|
|
||||||
<table class="AltRow FirstColumn" cellspacing="0">
|
|
||||||
<tr class="heading">
|
|
||||||
<th align="left" valign="top">
|
|
||||||
<b>
|
|
||||||
#
|
|
||||||
</b>
|
|
||||||
|
|
||||||
</th>
|
|
||||||
<th align="left" valign="top">
|
|
||||||
<b>
|
|
||||||
Name
|
|
||||||
</b>
|
|
||||||
|
|
||||||
</th>
|
|
||||||
<th align="left" valign="top">
|
|
||||||
<b>
|
|
||||||
Data Type
|
|
||||||
</b>
|
|
||||||
|
|
||||||
</th>
|
|
||||||
<th align="left" valign="top">
|
|
||||||
<b>
|
|
||||||
Description
|
|
||||||
</b>
|
|
||||||
|
|
||||||
</th>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr class="even">
|
|
||||||
<td align="right" valign="top">
|
|
||||||
1
|
|
||||||
</td>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
rtM
|
|
||||||
</td>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
RT_MODEL *const
|
|
||||||
</td>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
RTModel
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
</table>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr class="even">
|
|
||||||
<td width="25%" align="left" valign="top">
|
|
||||||
Return value
|
|
||||||
</td>
|
|
||||||
<td width="75%" align="left" valign="top">
|
|
||||||
None
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr class="odd">
|
|
||||||
<td width="25%" align="left" valign="top">
|
|
||||||
Header file
|
|
||||||
</td>
|
|
||||||
<td width="75%" align="left" valign="top">
|
|
||||||
<a href="BLDC_controller_h.html">BLDC_controller.h</a>
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
</table>
|
|
||||||
<h3>
|
|
||||||
<a name="sec_Inports">
|
|
||||||
Inports
|
|
||||||
</a>
|
|
||||||
|
|
||||||
</h3>
|
|
||||||
<span title="Click to shrink or expand table" onclick="rtwTableShrink(this)">[-]</span><table width="100%" class="AltRow FirstColumn" cellspacing="0">
|
|
||||||
<tr class="heading">
|
|
||||||
<th width="42%" align="left" valign="top">
|
|
||||||
<b>
|
|
||||||
Block Name
|
|
||||||
</b>
|
|
||||||
|
|
||||||
</th>
|
|
||||||
<th width="26%" align="left" valign="top">
|
|
||||||
<b>
|
|
||||||
Code Identifier
|
|
||||||
</b>
|
|
||||||
|
|
||||||
</th>
|
|
||||||
<th width="21%" align="left" valign="top">
|
|
||||||
<b>
|
|
||||||
Data Type
|
|
||||||
</b>
|
|
||||||
|
|
||||||
</th>
|
|
||||||
<th width="10%" align="right" valign="top">
|
|
||||||
<b>
|
|
||||||
Dimension
|
|
||||||
</b>
|
|
||||||
|
|
||||||
</th>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr class="even">
|
|
||||||
<td width="42%" align="left" valign="top">
|
|
||||||
<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:365')" name="code2model" class="code2model"><S1>/b_hallA </a>
|
|
||||||
</td>
|
|
||||||
<td width="26%" align="left" valign="top">
|
|
||||||
<i>
|
|
||||||
Defined externally
|
|
||||||
</i>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
<td width="21%" align="left" valign="top">
|
|
||||||
uint8_T
|
|
||||||
</td>
|
|
||||||
<td width="10%" align="right" valign="top">
|
|
||||||
1
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr class="odd">
|
|
||||||
<td width="42%" align="left" valign="top">
|
|
||||||
<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:1277')" name="code2model" class="code2model"><S1>/b_hallB</a>
|
|
||||||
</td>
|
|
||||||
<td width="26%" align="left" valign="top">
|
|
||||||
<i>
|
|
||||||
Defined externally
|
|
||||||
</i>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
<td width="21%" align="left" valign="top">
|
|
||||||
uint8_T
|
|
||||||
</td>
|
|
||||||
<td width="10%" align="right" valign="top">
|
|
||||||
1
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr class="even">
|
|
||||||
<td width="42%" align="left" valign="top">
|
|
||||||
<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:1278')" name="code2model" class="code2model"><S1>/b_hallC</a>
|
|
||||||
</td>
|
|
||||||
<td width="26%" align="left" valign="top">
|
|
||||||
<i>
|
|
||||||
Defined externally
|
|
||||||
</i>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
<td width="21%" align="left" valign="top">
|
|
||||||
uint8_T
|
|
||||||
</td>
|
|
||||||
<td width="10%" align="right" valign="top">
|
|
||||||
1
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr class="odd">
|
|
||||||
<td width="42%" align="left" valign="top">
|
|
||||||
<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:1766')" name="code2model" class="code2model"><S1>/r_DC</a>
|
|
||||||
</td>
|
|
||||||
<td width="26%" align="left" valign="top">
|
|
||||||
<i>
|
|
||||||
Defined externally
|
|
||||||
</i>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
<td width="21%" align="left" valign="top">
|
|
||||||
int32_T
|
|
||||||
</td>
|
|
||||||
<td width="10%" align="right" valign="top">
|
|
||||||
1
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
</table>
|
|
||||||
<h3>
|
|
||||||
<a name="sec_Outports">
|
|
||||||
Outports
|
|
||||||
</a>
|
|
||||||
|
|
||||||
</h3>
|
|
||||||
<span title="Click to shrink or expand table" onclick="rtwTableShrink(this)">[-]</span><table width="100%" class="AltRow FirstColumn" cellspacing="0">
|
|
||||||
<tr class="heading">
|
|
||||||
<th width="42%" align="left" valign="top">
|
|
||||||
<b>
|
|
||||||
Block Name
|
|
||||||
</b>
|
|
||||||
|
|
||||||
</th>
|
|
||||||
<th width="26%" align="left" valign="top">
|
|
||||||
<b>
|
|
||||||
Code Identifier
|
|
||||||
</b>
|
|
||||||
|
|
||||||
</th>
|
|
||||||
<th width="21%" align="left" valign="top">
|
|
||||||
<b>
|
|
||||||
Data Type
|
|
||||||
</b>
|
|
||||||
|
|
||||||
</th>
|
|
||||||
<th width="10%" align="right" valign="top">
|
|
||||||
<b>
|
|
||||||
Dimension
|
|
||||||
</b>
|
|
||||||
|
|
||||||
</th>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr class="even">
|
|
||||||
<td width="42%" align="left" valign="top">
|
|
||||||
<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:39')" name="code2model" class="code2model"><S1>/DC_phaA</a>
|
|
||||||
</td>
|
|
||||||
<td width="26%" align="left" valign="top">
|
|
||||||
<i>
|
|
||||||
Defined externally
|
|
||||||
</i>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
<td width="21%" align="left" valign="top">
|
|
||||||
int32_T
|
|
||||||
</td>
|
|
||||||
<td width="10%" align="right" valign="top">
|
|
||||||
1
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr class="odd">
|
|
||||||
<td width="42%" align="left" valign="top">
|
|
||||||
<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:1762')" name="code2model" class="code2model"><S1>/DC_phaB</a>
|
|
||||||
</td>
|
|
||||||
<td width="26%" align="left" valign="top">
|
|
||||||
<i>
|
|
||||||
Defined externally
|
|
||||||
</i>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
<td width="21%" align="left" valign="top">
|
|
||||||
int32_T
|
|
||||||
</td>
|
|
||||||
<td width="10%" align="right" valign="top">
|
|
||||||
1
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr class="even">
|
|
||||||
<td width="42%" align="left" valign="top">
|
|
||||||
<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:1764')" name="code2model" class="code2model"><S1>/DC_phaC</a>
|
|
||||||
</td>
|
|
||||||
<td width="26%" align="left" valign="top">
|
|
||||||
<i>
|
|
||||||
Defined externally
|
|
||||||
</i>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
<td width="21%" align="left" valign="top">
|
|
||||||
int32_T
|
|
||||||
</td>
|
|
||||||
<td width="10%" align="right" valign="top">
|
|
||||||
1
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr class="odd">
|
|
||||||
<td width="42%" align="left" valign="top">
|
|
||||||
<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:628')" name="code2model" class="code2model"><S1>/n_mot</a>
|
|
||||||
</td>
|
|
||||||
<td width="26%" align="left" valign="top">
|
|
||||||
<i>
|
|
||||||
Defined externally
|
|
||||||
</i>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
<td width="21%" align="left" valign="top">
|
|
||||||
int32_T
|
|
||||||
</td>
|
|
||||||
<td width="10%" align="right" valign="top">
|
|
||||||
1
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr class="even">
|
|
||||||
<td width="42%" align="left" valign="top">
|
|
||||||
<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2463')" name="code2model" class="code2model"><S1>/a_elecAngle</a>
|
|
||||||
</td>
|
|
||||||
<td width="26%" align="left" valign="top">
|
|
||||||
<i>
|
|
||||||
Defined externally
|
|
||||||
</i>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
<td width="21%" align="left" valign="top">
|
|
||||||
int32_T
|
|
||||||
</td>
|
|
||||||
<td width="10%" align="right" valign="top">
|
|
||||||
1
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
</table>
|
|
||||||
<h3>
|
|
||||||
<a name="sec_Interface_Parameters">
|
|
||||||
Interface Parameters
|
|
||||||
</a>
|
|
||||||
|
|
||||||
</h3>
|
|
||||||
<span title="Click to shrink or expand table" onclick="rtwTableShrink(this)">[-]</span><table width="100%" class="AltRow FirstColumn" cellspacing="0">
|
|
||||||
<tr class="heading">
|
|
||||||
<th width="42%" align="left" valign="top">
|
|
||||||
<b>
|
|
||||||
Parameter Source
|
|
||||||
</b>
|
|
||||||
|
|
||||||
</th>
|
|
||||||
<th width="26%" align="left" valign="top">
|
|
||||||
<b>
|
|
||||||
Code Identifier
|
|
||||||
</b>
|
|
||||||
|
|
||||||
</th>
|
|
||||||
<th width="21%" align="left" valign="top">
|
|
||||||
<b>
|
|
||||||
Data Type
|
|
||||||
</b>
|
|
||||||
|
|
||||||
</th>
|
|
||||||
<th width="10%" align="right" valign="top">
|
|
||||||
<b>
|
|
||||||
Dimension
|
|
||||||
</b>
|
|
||||||
|
|
||||||
</th>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr class="even">
|
|
||||||
<td width="42%" align="left" valign="top">
|
|
||||||
cf_speedCoef
|
|
||||||
</td>
|
|
||||||
<td width="26%" align="left" valign="top">
|
|
||||||
<i>
|
|
||||||
Defined externally
|
|
||||||
</i>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
<td width="21%" align="left" valign="top">
|
|
||||||
int32_T
|
|
||||||
</td>
|
|
||||||
<td width="10%" align="right" valign="top">
|
|
||||||
1
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr class="odd">
|
|
||||||
<td width="42%" align="left" valign="top">
|
|
||||||
cf_speedFilt
|
|
||||||
</td>
|
|
||||||
<td width="26%" align="left" valign="top">
|
|
||||||
<i>
|
|
||||||
Defined externally
|
|
||||||
</i>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
<td width="21%" align="left" valign="top">
|
|
||||||
int32_T
|
|
||||||
</td>
|
|
||||||
<td width="10%" align="right" valign="top">
|
|
||||||
1
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr class="even">
|
|
||||||
<td width="42%" align="left" valign="top">
|
|
||||||
n_commAcvLo
|
|
||||||
</td>
|
|
||||||
<td width="26%" align="left" valign="top">
|
|
||||||
<i>
|
|
||||||
Defined externally
|
|
||||||
</i>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
<td width="21%" align="left" valign="top">
|
|
||||||
int32_T
|
|
||||||
</td>
|
|
||||||
<td width="10%" align="right" valign="top">
|
|
||||||
1
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr class="odd">
|
|
||||||
<td width="42%" align="left" valign="top">
|
|
||||||
n_commDeacvHi
|
|
||||||
</td>
|
|
||||||
<td width="26%" align="left" valign="top">
|
|
||||||
<i>
|
|
||||||
Defined externally
|
|
||||||
</i>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
<td width="21%" align="left" valign="top">
|
|
||||||
int32_T
|
|
||||||
</td>
|
|
||||||
<td width="10%" align="right" valign="top">
|
|
||||||
1
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr class="even">
|
|
||||||
<td width="42%" align="left" valign="top">
|
|
||||||
n_motPhaAdvEna
|
|
||||||
</td>
|
|
||||||
<td width="26%" align="left" valign="top">
|
|
||||||
<i>
|
|
||||||
Defined externally
|
|
||||||
</i>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
<td width="21%" align="left" valign="top">
|
|
||||||
int32_T
|
|
||||||
</td>
|
|
||||||
<td width="10%" align="right" valign="top">
|
|
||||||
1
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr class="odd">
|
|
||||||
<td width="42%" align="left" valign="top">
|
|
||||||
r_commDCDeacv
|
|
||||||
</td>
|
|
||||||
<td width="26%" align="left" valign="top">
|
|
||||||
<i>
|
|
||||||
Defined externally
|
|
||||||
</i>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
<td width="21%" align="left" valign="top">
|
|
||||||
int32_T
|
|
||||||
</td>
|
|
||||||
<td width="10%" align="right" valign="top">
|
|
||||||
1
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr class="even">
|
|
||||||
<td width="42%" align="left" valign="top">
|
|
||||||
r_phaAdvDC_XA
|
|
||||||
</td>
|
|
||||||
<td width="26%" align="left" valign="top">
|
|
||||||
<i>
|
|
||||||
Defined externally
|
|
||||||
</i>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
<td width="21%" align="left" valign="top">
|
|
||||||
int32_T
|
|
||||||
</td>
|
|
||||||
<td width="10%" align="right" valign="top">
|
|
||||||
[1 11]
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr class="odd">
|
|
||||||
<td width="42%" align="left" valign="top">
|
|
||||||
a_phaAdv_M1
|
|
||||||
</td>
|
|
||||||
<td width="26%" align="left" valign="top">
|
|
||||||
<i>
|
|
||||||
Defined externally
|
|
||||||
</i>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
<td width="21%" align="left" valign="top">
|
|
||||||
int16_T
|
|
||||||
</td>
|
|
||||||
<td width="10%" align="right" valign="top">
|
|
||||||
[1 11]
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr class="even">
|
|
||||||
<td width="42%" align="left" valign="top">
|
|
||||||
dz_counterHi
|
|
||||||
</td>
|
|
||||||
<td width="26%" align="left" valign="top">
|
|
||||||
<i>
|
|
||||||
Defined externally
|
|
||||||
</i>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
<td width="21%" align="left" valign="top">
|
|
||||||
int16_T
|
|
||||||
</td>
|
|
||||||
<td width="10%" align="right" valign="top">
|
|
||||||
1
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr class="odd">
|
|
||||||
<td width="42%" align="left" valign="top">
|
|
||||||
dz_counterLo
|
|
||||||
</td>
|
|
||||||
<td width="26%" align="left" valign="top">
|
|
||||||
<i>
|
|
||||||
Defined externally
|
|
||||||
</i>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
<td width="21%" align="left" valign="top">
|
|
||||||
int16_T
|
|
||||||
</td>
|
|
||||||
<td width="10%" align="right" valign="top">
|
|
||||||
1
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr class="even">
|
|
||||||
<td width="42%" align="left" valign="top">
|
|
||||||
z_maxCntRst
|
|
||||||
</td>
|
|
||||||
<td width="26%" align="left" valign="top">
|
|
||||||
<i>
|
|
||||||
Defined externally
|
|
||||||
</i>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
<td width="21%" align="left" valign="top">
|
|
||||||
int16_T
|
|
||||||
</td>
|
|
||||||
<td width="10%" align="right" valign="top">
|
|
||||||
1
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr class="odd">
|
|
||||||
<td width="42%" align="left" valign="top">
|
|
||||||
z_ctrlTypSel
|
|
||||||
</td>
|
|
||||||
<td width="26%" align="left" valign="top">
|
|
||||||
<i>
|
|
||||||
Defined externally
|
|
||||||
</i>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
<td width="21%" align="left" valign="top">
|
|
||||||
uint8_T
|
|
||||||
</td>
|
|
||||||
<td width="10%" align="right" valign="top">
|
|
||||||
1
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr class="even">
|
|
||||||
<td width="42%" align="left" valign="top">
|
|
||||||
b_phaAdvEna
|
|
||||||
</td>
|
|
||||||
<td width="26%" align="left" valign="top">
|
|
||||||
<i>
|
|
||||||
Defined externally
|
|
||||||
</i>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
<td width="21%" align="left" valign="top">
|
|
||||||
boolean_T
|
|
||||||
</td>
|
|
||||||
<td width="10%" align="right" valign="top">
|
|
||||||
1
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
</table>
|
|
||||||
<h3>
|
|
||||||
<a name="sec_Data_Stores">
|
|
||||||
Data Stores
|
|
||||||
</a>
|
|
||||||
|
|
||||||
</h3>
|
|
||||||
<p>
|
|
||||||
No data stores in the model; note that this report lists only data stores with non-auto storage class and global data stores
|
|
||||||
</p>
|
|
||||||
|
|
||||||
</body>
|
|
||||||
|
|
||||||
</html>
|
|
@ -1,913 +0,0 @@
|
|||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><link rel="stylesheet" type="text/css" href="rtwreport.css" /><script language="JavaScript" type="text/javascript" src="rtwreport_utils.js"></script>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><script language="JavaScript" type="text/javascript" src="rtwshrink.js"></script><title>
|
|
||||||
Static Code Metrics Report
|
|
||||||
</title>
|
|
||||||
|
|
||||||
</head>
|
|
||||||
<body onload="try {if (top) {if (top.rtwPageOnLoad) top.rtwPageOnLoad('rtwIdCodeMetrics'); else local_onload();}} catch(err) {};">
|
|
||||||
<h1>
|
|
||||||
Static Code Metrics Report
|
|
||||||
</h1>
|
|
||||||
<div>
|
|
||||||
<p>
|
|
||||||
The static code metrics report provides statistics of the generated code. Metrics are estimated from static analysis of the generated code using the C data types specified in the 'Device details' section of the <b>Configuration Parameter > Hardware Implementation</b> pane: <b>char</b> 8, <b>short</b> 16, <b>int</b> 32, <b>long</b> 32, <b>float</b> 32, <b>double</b> 64, <b>pointer</b> 64 bits. If your model contains a Variant block, the Static Code Metrics Report does not contain data for the inactive variant. Actual object code metrics might differ due to target specific compiler and platform settings. Consult the <b>Code Generation Advisor</b><a name="MATLAB_link" style="text-decoration: none" href="matlab:helpview([docroot '/toolbox/ecoder/helptargets.map'], 'code_gen_advisor')">
|
|
||||||
<img src="help.png" title="Open Code Generation Advisor help" style="border:none;cursor:pointer">
|
|
||||||
|
|
||||||
</img>
|
|
||||||
|
|
||||||
</a>
|
|
||||||
for options to improve code efficiency.
|
|
||||||
</p>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
<h3>
|
|
||||||
Table of Contents
|
|
||||||
</h3>
|
|
||||||
<ol>
|
|
||||||
<li>
|
|
||||||
<a href="#sec_File_Information" onclick="top.rtwTableExpand(window.document, window.document.getElementById('rtwIdCodeMetrics_table_001_control'), 'rtwIdCodeMetrics_table_001')">
|
|
||||||
File Information
|
|
||||||
</a>
|
|
||||||
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#sec_Global_Variables" onclick="top.rtwTableExpand(window.document, window.document.getElementById('rtwIdCodeMetrics_table_002_control'), 'rtwIdCodeMetrics_table_002')">
|
|
||||||
Global Variables
|
|
||||||
</a>
|
|
||||||
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#sec_Function_Information" onclick="top.rtwTableExpand(window.document, window.document.getElementById('rtwIdCodeMetrics_table_008_control'), 'rtwIdCodeMetrics_table_008')">
|
|
||||||
Function Information
|
|
||||||
</a>
|
|
||||||
|
|
||||||
</li>
|
|
||||||
|
|
||||||
</ol>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<h3 name="sec_File_Information" id="sec_File_Information">
|
|
||||||
1. File Information <span title="Click to shrink or expand section" style="cursor:pointer;font-weight:normal;" id="rtwIdCodeMetrics_table_001_control" onclick ="if (top) if (top.rtwTableShrink) top.rtwTableShrink(window.document, this, 'rtwIdCodeMetrics_table_001', false)"><span class="shrink-button">[<u>hide</u>]</span></span>
|
|
||||||
</h3>
|
|
||||||
<table width="100%" name="rtwIdCodeMetrics_table_001" id="rtwIdCodeMetrics_table_001" border="0">
|
|
||||||
<tr>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
<table width="100%" border="0">
|
|
||||||
<tr>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
<p>
|
|
||||||
<span name="button_fileInfo_summary_table" id="button_fileInfo_summary_table" title="Click to shrink or expand tree" style="cursor:pointer;font-family:monospace;font-weight:normal;" onclick ="if (top) if (top.rtwTableShrink) top.rtwTableShrink(window.document, this, 'fileInfo_summary_table', true)"><span class="shrink-button">[-]</span></span> Summary (excludes ert_main.c)
|
|
||||||
</p>
|
|
||||||
<table width="50%" cellpadding="0" name="fileInfo_summary_table" id="fileInfo_summary_table" border="0">
|
|
||||||
<tr>
|
|
||||||
<td width="4%" align="left" valign="top">
|
|
||||||
<span style="white-space:nowrap" title="Number of source files excluding ert_main.c.">Number of .c files</span>
|
|
||||||
</td>
|
|
||||||
<td width="4%" align="left" valign="top">
|
|
||||||
:
|
|
||||||
</td>
|
|
||||||
<td width="4%" align="right" valign="top">
|
|
||||||
2
|
|
||||||
</td>
|
|
||||||
<td width="86%" align="right" valign="top">
|
|
||||||
 
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td width="4%" align="left" valign="top">
|
|
||||||
<span style="white-space:nowrap" title="Number of header files.">Number of .h files</span>
|
|
||||||
</td>
|
|
||||||
<td width="4%" align="left" valign="top">
|
|
||||||
:
|
|
||||||
</td>
|
|
||||||
<td width="4%" align="right" valign="top">
|
|
||||||
2
|
|
||||||
</td>
|
|
||||||
<td width="86%" align="right" valign="top">
|
|
||||||
 
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td width="4%" align="left" valign="top">
|
|
||||||
<span title="Lines of code excluding comments and blank lines">Lines of code</span>
|
|
||||||
</td>
|
|
||||||
<td width="4%" align="left" valign="top">
|
|
||||||
:
|
|
||||||
</td>
|
|
||||||
<td width="4%" align="right" valign="top">
|
|
||||||
407
|
|
||||||
</td>
|
|
||||||
<td width="86%" align="right" valign="top">
|
|
||||||
 
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td width="4%" align="left" valign="top">
|
|
||||||
<span style="white-space:nowrap" title="Lines including source code, comments, and blank lines.">Lines</span>
|
|
||||||
</td>
|
|
||||||
<td width="4%" align="left" valign="top">
|
|
||||||
:
|
|
||||||
</td>
|
|
||||||
<td width="4%" align="right" valign="top">
|
|
||||||
1,165
|
|
||||||
</td>
|
|
||||||
<td width="86%" align="right" valign="top">
|
|
||||||
 
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
</table>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
<p>
|
|
||||||
<span name="button_fileInfo_detail_table" id="button_fileInfo_detail_table" title="Click to shrink or expand tree" style="cursor:pointer;font-family:monospace;font-weight:normal;" onclick ="if (top) if (top.rtwTableShrink) top.rtwTableShrink(window.document, this, 'fileInfo_detail_table', true)"><span class="shrink-button">[-]</span></span> File details
|
|
||||||
</p>
|
|
||||||
<table width="100%" cellpadding="2" name="fileInfo_detail_table" id="fileInfo_detail_table" border="1">
|
|
||||||
<tr style="background-color: #eeeeff">
|
|
||||||
<td width="33%" align="left" valign="top" style="border-style: none">
|
|
||||||
<b>
|
|
||||||
<span style="white-space:nowrap" title="Files sorted in descending order by number of lines of code.">File Name</span>
|
|
||||||
</b>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
<td width="22%" align="right" valign="top" style="border-style: none">
|
|
||||||
<b>
|
|
||||||
<span title="Lines of code excluding comments and blank lines.">Lines of Code</span>
|
|
||||||
</b>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
<td width="22%" align="right" valign="top" style="border-style: none">
|
|
||||||
<b>
|
|
||||||
<span style="white-space:nowrap" title="Lines including source code, comments, and blank lines.">Lines</span>
|
|
||||||
</b>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
<td width="22%" align="right" valign="top" style="border-style: none">
|
|
||||||
<b>
|
|
||||||
<span style="white-space:nowrap" title="Timestamp of the file">Generated On</span>
|
|
||||||
</b>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr style="background-color: #ffffff">
|
|
||||||
<td width="33%" align="left" valign="top" style="border-style: none">
|
|
||||||
<a href="BLDC_controller_c.html" class="code2code">
|
|
||||||
BLDC_controller.c
|
|
||||||
</a>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
<td width="22%" align="right" valign="top" style="border-style: none">
|
|
||||||
255
|
|
||||||
</td>
|
|
||||||
<td width="22%" align="right" valign="top" style="border-style: none">
|
|
||||||
697
|
|
||||||
</td>
|
|
||||||
<td width="22%" align="right" valign="top" style="border-style: none">
|
|
||||||
06/11/2019 9:15 PM
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr style="background-color: #eeeeff">
|
|
||||||
<td width="33%" align="left" valign="top" style="border-style: none">
|
|
||||||
<a href="BLDC_controller_h.html" class="code2code">
|
|
||||||
BLDC_controller.h
|
|
||||||
</a>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
<td width="22%" align="right" valign="top" style="border-style: none">
|
|
||||||
81
|
|
||||||
</td>
|
|
||||||
<td width="22%" align="right" valign="top" style="border-style: none">
|
|
||||||
257
|
|
||||||
</td>
|
|
||||||
<td width="22%" align="right" valign="top" style="border-style: none">
|
|
||||||
06/11/2019 9:15 PM
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr style="background-color: #ffffff">
|
|
||||||
<td width="33%" align="left" valign="top" style="border-style: none">
|
|
||||||
<a href="rtwtypes_h.html" class="code2code">
|
|
||||||
rtwtypes.h
|
|
||||||
</a>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
<td width="22%" align="right" valign="top" style="border-style: none">
|
|
||||||
44
|
|
||||||
</td>
|
|
||||||
<td width="22%" align="right" valign="top" style="border-style: none">
|
|
||||||
109
|
|
||||||
</td>
|
|
||||||
<td width="22%" align="right" valign="top" style="border-style: none">
|
|
||||||
06/11/2019 9:15 PM
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr style="background-color: #eeeeff">
|
|
||||||
<td width="33%" align="left" valign="top" style="border-style: none">
|
|
||||||
<a href="BLDC_controller_data_c.html" class="code2code">
|
|
||||||
BLDC_controller_data.c
|
|
||||||
</a>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
<td width="22%" align="right" valign="top" style="border-style: none">
|
|
||||||
27
|
|
||||||
</td>
|
|
||||||
<td width="22%" align="right" valign="top" style="border-style: none">
|
|
||||||
102
|
|
||||||
</td>
|
|
||||||
<td width="22%" align="right" valign="top" style="border-style: none">
|
|
||||||
06/11/2019 9:15 PM
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
</table>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
</table>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
</table>
|
|
||||||
<h3 name="sec_Global_Variables" id="sec_Global_Variables">
|
|
||||||
2. Global Variables <span title="Click to shrink or expand section" style="cursor:pointer;font-weight:normal;" id="rtwIdCodeMetrics_table_002_control" onclick ="if (top) if (top.rtwTableShrink) top.rtwTableShrink(window.document, this, 'rtwIdCodeMetrics_table_002', false)"><span class="shrink-button">[<u>hide</u>]</span></span>
|
|
||||||
</h3>
|
|
||||||
<table width="100%" name="rtwIdCodeMetrics_table_002" id="rtwIdCodeMetrics_table_002" border="0">
|
|
||||||
<tr>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
Global variables defined in the generated code.
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
<table width="100%" cellpadding="0" cellspacing="0" name="globalvarInfo_table" id="globalvarInfo_table" border="1">
|
|
||||||
<tr style="background-color: #ffffff">
|
|
||||||
<td width="100%" align="left" valign="top" style="border-style: none">
|
|
||||||
<table class="treeTable" width="100%" cellpadding="0" cellspacing="0" border="0">
|
|
||||||
<tr>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
<table width="100%" cellpadding="2" border="0">
|
|
||||||
<tr style="background-color: #eeeeff">
|
|
||||||
<td width="33%" align="left" valign="top" style="border-style: none">
|
|
||||||
<b>
|
|
||||||
<span title="Global variables sorted by the maximum size in bytes.">Global Variable</span>
|
|
||||||
</b>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
<td width="22%" align="right" valign="top" style="border-style: none">
|
|
||||||
<b>
|
|
||||||
<span title="Global variable size in bytes.">Size (bytes)</span>
|
|
||||||
</b>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
<td width="22%" align="right" valign="top" style="border-style: none">
|
|
||||||
<b>
|
|
||||||
<span title="Total number of potential reads and writes for this global variable">Reads / Writes</span>
|
|
||||||
</b>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
<td width="22%" align="right" valign="top" style="border-style: none">
|
|
||||||
<b>
|
|
||||||
<span title="Maximum number of potential reads and writes in a function">Reads / Writes in a Function</span>
|
|
||||||
</b>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
</table>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
<table width="100%" cellpadding="2" border="0">
|
|
||||||
<tr style="background-color: #ffffff">
|
|
||||||
<td width="33%" align="left" valign="top" style="border-style: none">
|
|
||||||
<b>
|
|
||||||
<b>Total</b>
|
|
||||||
</b>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
<td width="22%" align="right" valign="top" style="border-style: none">
|
|
||||||
<b>
|
|
||||||
<b>0</b>
|
|
||||||
</b>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
<td width="22%" align="right" valign="top" style="border-style: none">
|
|
||||||
<b>
|
|
||||||
<b>0<span style="font-family:Courier"> </span></b>
|
|
||||||
</b>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
<td width="22%" align="right" valign="top" style="border-style: none">
|
|
||||||
<b>
|
|
||||||
|
|
||||||
</b>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
</table>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
</table>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
</table>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
</table>
|
|
||||||
<h3 name="sec_Function_Information" id="sec_Function_Information">
|
|
||||||
3. Function Information <span title="Click to shrink or expand section" style="cursor:pointer;font-weight:normal;" id="rtwIdCodeMetrics_table_008_control" onclick ="if (top) if (top.rtwTableShrink) top.rtwTableShrink(window.document, this, 'rtwIdCodeMetrics_table_008', false)"><span class="shrink-button">[<u>hide</u>]</span></span>
|
|
||||||
</h3>
|
|
||||||
<table width="100%" name="rtwIdCodeMetrics_table_008" id="rtwIdCodeMetrics_table_008" border="0">
|
|
||||||
<tr>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
View function metrics in a call tree format or table format. Accumulated stack numbers include the estimated stack size of the function plus the maximum of the accumulated stack size of the subroutines that the function calls.
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
|
||||||
<tr>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
<table width="100%" cellpadding="0" cellspacing="0" name="fcnInfo_calltree" id="fcnInfo_calltree" border="0">
|
|
||||||
<tr>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
View:Call Tree | <a href="javascript:if (top) if (top.rtwSwitchView) top.rtwSwitchView(window.document,'fcnInfo_calltree', 'fcnInfo_table')" title="List of functions in alphabetical order. The second column includes the callers of the functions.">
|
|
||||||
Table
|
|
||||||
</a>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
<table width="100%" cellpadding="0" cellspacing="0" border="1">
|
|
||||||
<tr style="background-color: #ffffff">
|
|
||||||
<td width="100%" align="left" valign="top" style="border-style: none">
|
|
||||||
<table width="100%" cellpadding="0" cellspacing="0" class="treeTable" id="fcnTreeView" border="0">
|
|
||||||
<tr>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
<table width="100%" cellpadding="2" border="0">
|
|
||||||
<tr style="background-color: #eeeeff">
|
|
||||||
<td width="37%" align="left" valign="top" style="border-style: none">
|
|
||||||
<b>
|
|
||||||
<span title="Function name sorted by the maximum accumulated stack size.">Function Name</span>
|
|
||||||
</b>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
<td width="12%" align="right" valign="top" style="border-style: none">
|
|
||||||
<b>
|
|
||||||
<span title="Estimated stack size of the function plus the maximum of the accumulated stack size of its subroutines.">Accumulated Stack Size (bytes)</span>
|
|
||||||
</b>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
<td width="12%" align="right" valign="top" style="border-style: none">
|
|
||||||
<b>
|
|
||||||
<span title="Size of local variables in the function.">Self Stack Size (bytes)</span>
|
|
||||||
</b>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
<td width="12%" align="right" valign="top" style="border-style: none">
|
|
||||||
<b>
|
|
||||||
<span title="Lines of code excluding comments and blank lines.">Lines of Code</span>
|
|
||||||
</b>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
<td width="12%" align="right" valign="top" style="border-style: none">
|
|
||||||
<b>
|
|
||||||
<span style="white-space:nowrap" title="Lines including source code, comments, and blank lines.">Lines</span>
|
|
||||||
</b>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
<td width="12%" align="right" valign="top" style="border-style: none">
|
|
||||||
<b>
|
|
||||||
<span style="white-space:nowrap" title="Cyclomatic complexity">Complexity</span>
|
|
||||||
</b>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
</table>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
<table style="border-style: none" width="100%" cellpadding="0" cellspacing="0" name="" id="" border="0">
|
|
||||||
<tr>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
<table width="100%" cellpadding="2" border="0">
|
|
||||||
<tr style="background-color: #ffffff">
|
|
||||||
<td width="37%" align="left" valign="top" style="border-style: none">
|
|
||||||
<span style="white-space:nowrap"><span name="button_3" id="button_3" title="Click to shrink or expand tree" style="cursor:pointer;font-family:monospace;font-weight:normal;" onclick ="if (top) if (top.rtwTableShrink) top.rtwTableShrink(window.document, this, '3', true)"><span class="shrink-button">[+]</span></span> <b><a href="BLDC_controller_c.html#fcn_BLDC_controller_step" title="BLDC_controller_step" class="code2code">
|
|
||||||
BLDC_controller_step
|
|
||||||
</a>
|
|
||||||
</b></span>
|
|
||||||
</td>
|
|
||||||
<td width="12%" align="right" valign="top" style="border-style: none">
|
|
||||||
69
|
|
||||||
</td>
|
|
||||||
<td width="12%" align="right" valign="top" style="border-style: none">
|
|
||||||
60
|
|
||||||
</td>
|
|
||||||
<td width="12%" align="right" valign="top" style="border-style: none">
|
|
||||||
181
|
|
||||||
</td>
|
|
||||||
<td width="12%" align="right" valign="top" style="border-style: none">
|
|
||||||
514
|
|
||||||
</td>
|
|
||||||
<td width="12%" align="right" valign="top" style="border-style: none">
|
|
||||||
24
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
</table>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
<table style="display: none; border-style: none" width="100%" cellpadding="0" cellspacing="0" name="3" id="3" border="0">
|
|
||||||
<tr>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
<table width="100%" cellpadding="2" border="0">
|
|
||||||
<tr style="background-color: #eeeeff">
|
|
||||||
<td width="37%" align="left" valign="top" style="border-style: none">
|
|
||||||
<span style="white-space:nowrap">       <span style="font-family:monospace">  </span>  <a href="BLDC_controller_c.html#fcn_plook_u8s32u32n31_evenc_s" title="plook_u8s32u32n31_evenc_s" class="code2code">
|
|
||||||
plook_u8s32u32n31_evenc_s
|
|
||||||
</a>
|
|
||||||
</span>
|
|
||||||
</td>
|
|
||||||
<td width="12%" align="right" valign="top" style="border-style: none">
|
|
||||||
9
|
|
||||||
</td>
|
|
||||||
<td width="12%" align="right" valign="top" style="border-style: none">
|
|
||||||
9
|
|
||||||
</td>
|
|
||||||
<td width="12%" align="right" valign="top" style="border-style: none">
|
|
||||||
19
|
|
||||||
</td>
|
|
||||||
<td width="12%" align="right" valign="top" style="border-style: none">
|
|
||||||
33
|
|
||||||
</td>
|
|
||||||
<td width="12%" align="right" valign="top" style="border-style: none">
|
|
||||||
3
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
</table>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
</table>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
<table style="display: none; border-style: none" width="100%" cellpadding="0" cellspacing="0" name="3" id="3" border="0">
|
|
||||||
<tr>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
<table width="100%" cellpadding="2" border="0">
|
|
||||||
<tr style="background-color: #ffffff">
|
|
||||||
<td width="37%" align="left" valign="top" style="border-style: none">
|
|
||||||
<span style="white-space:nowrap">       <span style="font-family:monospace">  </span>  <a href="BLDC_controller_c.html#fcn_intrp1d_s16s32s32u8u32n31l_s" title="intrp1d_s16s32s32u8u32n31l_s" class="code2code">
|
|
||||||
intrp1d_s16s32s32u8u32n31l_s
|
|
||||||
</a>
|
|
||||||
</span>
|
|
||||||
</td>
|
|
||||||
<td width="12%" align="right" valign="top" style="border-style: none">
|
|
||||||
4
|
|
||||||
</td>
|
|
||||||
<td width="12%" align="right" valign="top" style="border-style: none">
|
|
||||||
4
|
|
||||||
</td>
|
|
||||||
<td width="12%" align="right" valign="top" style="border-style: none">
|
|
||||||
4
|
|
||||||
</td>
|
|
||||||
<td width="12%" align="right" valign="top" style="border-style: none">
|
|
||||||
15
|
|
||||||
</td>
|
|
||||||
<td width="12%" align="right" valign="top" style="border-style: none">
|
|
||||||
1
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
</table>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
</table>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
<table style="display: none; border-style: none" width="100%" cellpadding="0" cellspacing="0" name="3" id="3" border="0">
|
|
||||||
<tr>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
<table width="100%" cellpadding="2" border="0">
|
|
||||||
<tr style="background-color: #eeeeff">
|
|
||||||
<td width="37%" align="left" valign="top" style="border-style: none">
|
|
||||||
<span style="white-space:nowrap">       <span style="font-family:monospace">  </span>  <a href="BLDC_controller_c.html#fcn_div_nde_s32_floor" title="div_nde_s32_floor" class="code2code">
|
|
||||||
div_nde_s32_floor
|
|
||||||
</a>
|
|
||||||
</span>
|
|
||||||
</td>
|
|
||||||
<td width="12%" align="right" valign="top" style="border-style: none">
|
|
||||||
0
|
|
||||||
</td>
|
|
||||||
<td width="12%" align="right" valign="top" style="border-style: none">
|
|
||||||
0
|
|
||||||
</td>
|
|
||||||
<td width="12%" align="right" valign="top" style="border-style: none">
|
|
||||||
2
|
|
||||||
</td>
|
|
||||||
<td width="12%" align="right" valign="top" style="border-style: none">
|
|
||||||
5
|
|
||||||
</td>
|
|
||||||
<td width="12%" align="right" valign="top" style="border-style: none">
|
|
||||||
2
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
</table>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
</table>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
</table>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
<table style="border-style: none" width="100%" cellpadding="0" cellspacing="0" name="" id="" border="0">
|
|
||||||
<tr>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
<table width="100%" cellpadding="2" border="0">
|
|
||||||
<tr style="background-color: #ffffff">
|
|
||||||
<td width="37%" align="left" valign="top" style="border-style: none">
|
|
||||||
<span style="white-space:nowrap"> <span style="font-family:monospace">  </span>  <b><a href="BLDC_controller_c.html#fcn_BLDC_controller_initialize" title="BLDC_controller_initialize" class="code2code">
|
|
||||||
BLDC_controller_initialize
|
|
||||||
</a>
|
|
||||||
</b></span>
|
|
||||||
</td>
|
|
||||||
<td width="12%" align="right" valign="top" style="border-style: none">
|
|
||||||
16
|
|
||||||
</td>
|
|
||||||
<td width="12%" align="right" valign="top" style="border-style: none">
|
|
||||||
16
|
|
||||||
</td>
|
|
||||||
<td width="12%" align="right" valign="top" style="border-style: none">
|
|
||||||
6
|
|
||||||
</td>
|
|
||||||
<td width="12%" align="right" valign="top" style="border-style: none">
|
|
||||||
25
|
|
||||||
</td>
|
|
||||||
<td width="12%" align="right" valign="top" style="border-style: none">
|
|
||||||
1
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
</table>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
</table>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
</table>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
</table>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
</table>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
<table width="100%" cellpadding="0" cellspacing="0" name="fcnInfo_table" id="fcnInfo_table" style="display: none" border="0">
|
|
||||||
<tr>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
View: <a href="javascript:if (top) if (top.rtwSwitchView) top.rtwSwitchView(window.document,'fcnInfo_table', 'fcnInfo_calltree')" title="Browse call graph in a call tree format.">
|
|
||||||
Call Tree
|
|
||||||
</a>
|
|
||||||
| Table
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
<table width="100%" cellpadding="2" class="treeTable" id="fcnTableView" border="1">
|
|
||||||
<tr style="background-color: #eeeeff">
|
|
||||||
<td width="22%" align="left" valign="top" style="border-style: none">
|
|
||||||
<b>
|
|
||||||
<span title="Function name sorted alphabetically">Function Name</span>
|
|
||||||
</b>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
<td width="22%" align="left" valign="top" style="border-style: none">
|
|
||||||
<b>
|
|
||||||
<span title="List of functions calling the function in the corresponding first column. The number of call sites is included in parentheses.">Called By (number of call sites)</span>
|
|
||||||
</b>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
<td width="11%" align="right" valign="top" style="border-style: none">
|
|
||||||
<b>
|
|
||||||
<span title="Estimated stack size of the function plus the maximum of the accumulated stack size of its subroutines.">Accumulated Stack Size (bytes)</span>
|
|
||||||
</b>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
<td width="11%" align="right" valign="top" style="border-style: none">
|
|
||||||
<b>
|
|
||||||
<span title="Size of local variables in the function.">Self Stack Size (bytes)</span>
|
|
||||||
</b>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
<td width="11%" align="right" valign="top" style="border-style: none">
|
|
||||||
<b>
|
|
||||||
<span title="Lines of code excluding comments and blank lines.">Lines of Code</span>
|
|
||||||
</b>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
<td width="11%" align="right" valign="top" style="border-style: none">
|
|
||||||
<b>
|
|
||||||
<span style="white-space:nowrap" title="Lines including source code, comments, and blank lines.">Lines</span>
|
|
||||||
</b>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
<td width="11%" align="right" valign="top" style="border-style: none">
|
|
||||||
<b>
|
|
||||||
<span style="white-space:nowrap" title="Cyclomatic complexity">Complexity</span>
|
|
||||||
</b>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr style="background-color: #ffffff">
|
|
||||||
<td width="22%" align="left" valign="top" style="border-style: none">
|
|
||||||
<a href="BLDC_controller_c.html#fcn_BLDC_controller_initialize" title="BLDC_controller_initialize" class="code2code">
|
|
||||||
BLDC_controller_initialize
|
|
||||||
</a>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
<td width="22%" align="left" valign="top" style="border-style: none">
|
|
||||||
 
|
|
||||||
</td>
|
|
||||||
<td width="11%" align="right" valign="top" style="border-style: none">
|
|
||||||
16
|
|
||||||
</td>
|
|
||||||
<td width="11%" align="right" valign="top" style="border-style: none">
|
|
||||||
16
|
|
||||||
</td>
|
|
||||||
<td width="11%" align="right" valign="top" style="border-style: none">
|
|
||||||
6
|
|
||||||
</td>
|
|
||||||
<td width="11%" align="right" valign="top" style="border-style: none">
|
|
||||||
25
|
|
||||||
</td>
|
|
||||||
<td width="11%" align="right" valign="top" style="border-style: none">
|
|
||||||
1
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr style="background-color: #eeeeff">
|
|
||||||
<td width="22%" align="left" valign="top" style="border-style: none">
|
|
||||||
<a href="BLDC_controller_c.html#fcn_BLDC_controller_step" title="BLDC_controller_step" class="code2code">
|
|
||||||
BLDC_controller_step
|
|
||||||
</a>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
<td width="22%" align="left" valign="top" style="border-style: none">
|
|
||||||
 
|
|
||||||
</td>
|
|
||||||
<td width="11%" align="right" valign="top" style="border-style: none">
|
|
||||||
69
|
|
||||||
</td>
|
|
||||||
<td width="11%" align="right" valign="top" style="border-style: none">
|
|
||||||
60
|
|
||||||
</td>
|
|
||||||
<td width="11%" align="right" valign="top" style="border-style: none">
|
|
||||||
181
|
|
||||||
</td>
|
|
||||||
<td width="11%" align="right" valign="top" style="border-style: none">
|
|
||||||
514
|
|
||||||
</td>
|
|
||||||
<td width="11%" align="right" valign="top" style="border-style: none">
|
|
||||||
24
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr style="background-color: #ffffff">
|
|
||||||
<td width="22%" align="left" valign="top" style="border-style: none">
|
|
||||||
<a href="BLDC_controller_c.html#fcn_div_nde_s32_floor" title="div_nde_s32_floor" class="code2code">
|
|
||||||
div_nde_s32_floor
|
|
||||||
</a>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
<td width="22%" align="left" valign="top" style="border-style: none">
|
|
||||||
<table width="100%" cellpadding="1" cellspacing="0" border="0">
|
|
||||||
<tr>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
<span style="white-space:nowrap" title="BLDC_controller_step has one call site of div_nde_s32_floor."><a href="BLDC_controller_c.html#fcn_BLDC_controller_step" title="BLDC_controller_step" class="code2code">
|
|
||||||
BLDC_controller_step
|
|
||||||
</a>
|
|
||||||
</span>
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
</table>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
<td width="11%" align="right" valign="top" style="border-style: none">
|
|
||||||
0
|
|
||||||
</td>
|
|
||||||
<td width="11%" align="right" valign="top" style="border-style: none">
|
|
||||||
0
|
|
||||||
</td>
|
|
||||||
<td width="11%" align="right" valign="top" style="border-style: none">
|
|
||||||
2
|
|
||||||
</td>
|
|
||||||
<td width="11%" align="right" valign="top" style="border-style: none">
|
|
||||||
5
|
|
||||||
</td>
|
|
||||||
<td width="11%" align="right" valign="top" style="border-style: none">
|
|
||||||
2
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr style="background-color: #eeeeff">
|
|
||||||
<td width="22%" align="left" valign="top" style="border-style: none">
|
|
||||||
<a href="BLDC_controller_c.html#fcn_intrp1d_s16s32s32u8u32n31l_s" title="intrp1d_s16s32s32u8u32n31l_s" class="code2code">
|
|
||||||
intrp1d_s16s32s32u8u32n31l_s
|
|
||||||
</a>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
<td width="22%" align="left" valign="top" style="border-style: none">
|
|
||||||
<table width="100%" cellpadding="1" cellspacing="0" border="0">
|
|
||||||
<tr>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
<span style="white-space:nowrap" title="BLDC_controller_step has 10 call sites of intrp1d_s16s32s32u8u32n31l_s."><a href="BLDC_controller_c.html#fcn_BLDC_controller_step" title="BLDC_controller_step" class="code2code">
|
|
||||||
BLDC_controller_step
|
|
||||||
</a>
|
|
||||||
(10)</span>
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
</table>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
<td width="11%" align="right" valign="top" style="border-style: none">
|
|
||||||
4
|
|
||||||
</td>
|
|
||||||
<td width="11%" align="right" valign="top" style="border-style: none">
|
|
||||||
4
|
|
||||||
</td>
|
|
||||||
<td width="11%" align="right" valign="top" style="border-style: none">
|
|
||||||
4
|
|
||||||
</td>
|
|
||||||
<td width="11%" align="right" valign="top" style="border-style: none">
|
|
||||||
15
|
|
||||||
</td>
|
|
||||||
<td width="11%" align="right" valign="top" style="border-style: none">
|
|
||||||
1
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr style="background-color: #ffffff">
|
|
||||||
<td width="22%" align="left" valign="top" style="border-style: none">
|
|
||||||
<a href="BLDC_controller_c.html#fcn_plook_u8s32u32n31_evenc_s" title="plook_u8s32u32n31_evenc_s" class="code2code">
|
|
||||||
plook_u8s32u32n31_evenc_s
|
|
||||||
</a>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
<td width="22%" align="left" valign="top" style="border-style: none">
|
|
||||||
<table width="100%" cellpadding="1" cellspacing="0" border="0">
|
|
||||||
<tr>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
<span style="white-space:nowrap" title="BLDC_controller_step has 4 call sites of plook_u8s32u32n31_evenc_s."><a href="BLDC_controller_c.html#fcn_BLDC_controller_step" title="BLDC_controller_step" class="code2code">
|
|
||||||
BLDC_controller_step
|
|
||||||
</a>
|
|
||||||
(4)</span>
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
</table>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
<td width="11%" align="right" valign="top" style="border-style: none">
|
|
||||||
9
|
|
||||||
</td>
|
|
||||||
<td width="11%" align="right" valign="top" style="border-style: none">
|
|
||||||
9
|
|
||||||
</td>
|
|
||||||
<td width="11%" align="right" valign="top" style="border-style: none">
|
|
||||||
19
|
|
||||||
</td>
|
|
||||||
<td width="11%" align="right" valign="top" style="border-style: none">
|
|
||||||
33
|
|
||||||
</td>
|
|
||||||
<td width="11%" align="right" valign="top" style="border-style: none">
|
|
||||||
3
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
</table>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
</table>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
</table>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
</table>
|
|
||||||
|
|
||||||
</body>
|
|
||||||
|
|
||||||
</html>
|
|
@ -1,37 +0,0 @@
|
|||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><link rel="stylesheet" type="text/css" href="rtwreport.css" /><script language="JavaScript" type="text/javascript" src="rtwreport_utils.js"></script>
|
|
||||||
<title>
|
|
||||||
Code replacements in BLDC_controller
|
|
||||||
</title>
|
|
||||||
|
|
||||||
</head>
|
|
||||||
<body onload="try {if (top) {if (top.rtwPageOnLoad) top.rtwPageOnLoad('rtwIdCodeReplacements'); else local_onload();}} catch(err) {};">
|
|
||||||
<h1>
|
|
||||||
Code replacements in BLDC_controller
|
|
||||||
</h1>
|
|
||||||
<div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<p>
|
|
||||||
Code replacements for library 'C89/C90 (ANSI)'. The library comprises:<ul>
|
|
||||||
<li>
|
|
||||||
C89/C90 (ANSI)
|
|
||||||
</li>
|
|
||||||
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
To see the replacements and misses in the Code Replacement Viewer, look <a href="matlab: rtwprivate invokeViewerForReport 'BLDC_controller' 'ANSI_C'" class="callMATLAB" name="callMATLAB">here</a>.
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
No code replacements occurred. <br />
|
|
||||||
</p>
|
|
||||||
|
|
||||||
</body>
|
|
||||||
|
|
||||||
</html>
|
|
@ -1,463 +0,0 @@
|
|||||||
function RTW_SidParentMap() {
|
|
||||||
this.sidParentMap = new Array();
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:365"] = "BLDCmotorControl_R2017b:29";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:1277"] = "BLDCmotorControl_R2017b:29";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:1278"] = "BLDCmotorControl_R2017b:29";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:1766"] = "BLDCmotorControl_R2017b:29";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687"] = "BLDCmotorControl_R2017b:29";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:1759"] = "BLDCmotorControl_R2017b:29";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2688"] = "BLDCmotorControl_R2017b:29";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2689"] = "BLDCmotorControl_R2017b:29";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2690"] = "BLDCmotorControl_R2017b:29";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2691"] = "BLDCmotorControl_R2017b:29";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:1760"] = "BLDCmotorControl_R2017b:29";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:1761"] = "BLDCmotorControl_R2017b:29";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:1763"] = "BLDCmotorControl_R2017b:29";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2462"] = "BLDCmotorControl_R2017b:29";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:1765"] = "BLDCmotorControl_R2017b:29";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:443"] = "BLDCmotorControl_R2017b:29";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2692"] = "BLDCmotorControl_R2017b:29";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2693"] = "BLDCmotorControl_R2017b:29";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:444"] = "BLDCmotorControl_R2017b:29";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2694"] = "BLDCmotorControl_R2017b:29";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2695"] = "BLDCmotorControl_R2017b:29";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2696"] = "BLDCmotorControl_R2017b:29";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:445"] = "BLDCmotorControl_R2017b:29";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:1831"] = "BLDCmotorControl_R2017b:29";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:1834"] = "BLDCmotorControl_R2017b:29";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:1837"] = "BLDCmotorControl_R2017b:29";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:1828"] = "BLDCmotorControl_R2017b:29";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:39"] = "BLDCmotorControl_R2017b:29";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:1762"] = "BLDCmotorControl_R2017b:29";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:1764"] = "BLDCmotorControl_R2017b:29";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:628"] = "BLDCmotorControl_R2017b:29";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2463"] = "BLDCmotorControl_R2017b:29";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:2"] = "BLDCmotorControl_R2017b:2687";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:3"] = "BLDCmotorControl_R2017b:2687";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:4"] = "BLDCmotorControl_R2017b:2687";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:5"] = "BLDCmotorControl_R2017b:2687";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1660"] = "BLDCmotorControl_R2017b:2687";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:6"] = "BLDCmotorControl_R2017b:2687";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:215"] = "BLDCmotorControl_R2017b:2687";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:282"] = "BLDCmotorControl_R2017b:2687";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:361"] = "BLDCmotorControl_R2017b:2687";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:416"] = "BLDCmotorControl_R2017b:2687";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:417"] = "BLDCmotorControl_R2017b:2687";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1379"] = "BLDCmotorControl_R2017b:2687";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1667"] = "BLDCmotorControl_R2017b:2687";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:418"] = "BLDCmotorControl_R2017b:2687";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:419"] = "BLDCmotorControl_R2017b:2687";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:420"] = "BLDCmotorControl_R2017b:2687";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:421"] = "BLDCmotorControl_R2017b:2687";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:422"] = "BLDCmotorControl_R2017b:2687";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:423"] = "BLDCmotorControl_R2017b:2687";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:424"] = "BLDCmotorControl_R2017b:2687";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:537"] = "BLDCmotorControl_R2017b:2687";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:425"] = "BLDCmotorControl_R2017b:2687";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:426"] = "BLDCmotorControl_R2017b:2687";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:427"] = "BLDCmotorControl_R2017b:2687";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:428"] = "BLDCmotorControl_R2017b:2687";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:429"] = "BLDCmotorControl_R2017b:2687";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:430"] = "BLDCmotorControl_R2017b:2687";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:431"] = "BLDCmotorControl_R2017b:2687";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:432"] = "BLDCmotorControl_R2017b:2687";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:433"] = "BLDCmotorControl_R2017b:2687";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1659"] = "BLDCmotorControl_R2017b:2687";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:434"] = "BLDCmotorControl_R2017b:2687";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:457"] = "BLDCmotorControl_R2017b:2687";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:589"] = "BLDCmotorControl_R2017b:2687";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:447"] = "BLDCmotorControl_R2017b:2687";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:448"] = "BLDCmotorControl_R2017b:2687";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:449"] = "BLDCmotorControl_R2017b:2687";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:450"] = "BLDCmotorControl_R2017b:2687";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:451"] = "BLDCmotorControl_R2017b:2687";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:1832"] = "BLDCmotorControl_R2017b:1831";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:1833"] = "BLDCmotorControl_R2017b:1831";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:1835"] = "BLDCmotorControl_R2017b:1834";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:1836"] = "BLDCmotorControl_R2017b:1834";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:1838"] = "BLDCmotorControl_R2017b:1837";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:1839"] = "BLDCmotorControl_R2017b:1837";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:1829"] = "BLDCmotorControl_R2017b:1828";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:1830"] = "BLDCmotorControl_R2017b:1828";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:7"] = "BLDCmotorControl_R2017b:2687:6";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:8"] = "BLDCmotorControl_R2017b:2687:6";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:9"] = "BLDCmotorControl_R2017b:2687:6";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1375"] = "BLDCmotorControl_R2017b:2687:6";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1661"] = "BLDCmotorControl_R2017b:2687:6";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:26"] = "BLDCmotorControl_R2017b:2687:6";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:10"] = "BLDCmotorControl_R2017b:2687:6";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:38"] = "BLDCmotorControl_R2017b:2687:6";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:59"] = "BLDCmotorControl_R2017b:2687:6";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1377"] = "BLDCmotorControl_R2017b:2687:6";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:179"] = "BLDCmotorControl_R2017b:2687:6";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:180"] = "BLDCmotorControl_R2017b:2687:6";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1378"] = "BLDCmotorControl_R2017b:2687:6";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1481"] = "BLDCmotorControl_R2017b:2687:6";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:183"] = "BLDCmotorControl_R2017b:2687:6";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:184"] = "BLDCmotorControl_R2017b:2687:6";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1633"] = "BLDCmotorControl_R2017b:2687:6";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1482"] = "BLDCmotorControl_R2017b:2687:6";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1666"] = "BLDCmotorControl_R2017b:2687:6";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1382"] = "BLDCmotorControl_R2017b:2687:6";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1678"] = "BLDCmotorControl_R2017b:2687:6";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:186"] = "BLDCmotorControl_R2017b:2687:6";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:187"] = "BLDCmotorControl_R2017b:2687:6";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:188"] = "BLDCmotorControl_R2017b:2687:6";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:189"] = "BLDCmotorControl_R2017b:2687:6";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:190"] = "BLDCmotorControl_R2017b:2687:6";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:191"] = "BLDCmotorControl_R2017b:2687:6";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:192"] = "BLDCmotorControl_R2017b:2687:6";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:193"] = "BLDCmotorControl_R2017b:2687:6";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:194"] = "BLDCmotorControl_R2017b:2687:6";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:195"] = "BLDCmotorControl_R2017b:2687:6";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:196"] = "BLDCmotorControl_R2017b:2687:6";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:197"] = "BLDCmotorControl_R2017b:2687:6";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1662"] = "BLDCmotorControl_R2017b:2687:6";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1677"] = "BLDCmotorControl_R2017b:2687:6";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:198"] = "BLDCmotorControl_R2017b:2687:6";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1376"] = "BLDCmotorControl_R2017b:2687:6";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:199"] = "BLDCmotorControl_R2017b:2687:6";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:200"] = "BLDCmotorControl_R2017b:2687:6";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1384"] = "BLDCmotorControl_R2017b:2687:6";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:202"] = "BLDCmotorControl_R2017b:2687:6";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1489"] = "BLDCmotorControl_R2017b:2687:6";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1490"] = "BLDCmotorControl_R2017b:2687:6";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:205"] = "BLDCmotorControl_R2017b:2687:6";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:206"] = "BLDCmotorControl_R2017b:2687:6";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1634"] = "BLDCmotorControl_R2017b:2687:6";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1313"] = "BLDCmotorControl_R2017b:2687:6";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:208"] = "BLDCmotorControl_R2017b:2687:6";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:209"] = "BLDCmotorControl_R2017b:2687:6";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:210"] = "BLDCmotorControl_R2017b:2687:6";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:211"] = "BLDCmotorControl_R2017b:2687:6";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1483"] = "BLDCmotorControl_R2017b:2687:6";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1484"] = "BLDCmotorControl_R2017b:2687:6";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1679"] = "BLDCmotorControl_R2017b:2687:6";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1383"] = "BLDCmotorControl_R2017b:2687:6";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:212"] = "BLDCmotorControl_R2017b:2687:6";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:535"] = "BLDCmotorControl_R2017b:2687:215";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:216"] = "BLDCmotorControl_R2017b:2687:215";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:217"] = "BLDCmotorControl_R2017b:2687:215";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1460"] = "BLDCmotorControl_R2017b:2687:215";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1461"] = "BLDCmotorControl_R2017b:2687:215";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1680"] = "BLDCmotorControl_R2017b:2687:215";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:221"] = "BLDCmotorControl_R2017b:2687:215";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1464"] = "BLDCmotorControl_R2017b:2687:215";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1465"] = "BLDCmotorControl_R2017b:2687:215";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1466"] = "BLDCmotorControl_R2017b:2687:215";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1467"] = "BLDCmotorControl_R2017b:2687:215";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1669"] = "BLDCmotorControl_R2017b:2687:215";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:231"] = "BLDCmotorControl_R2017b:2687:215";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:518"] = "BLDCmotorControl_R2017b:2687:215";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:534"] = "BLDCmotorControl_R2017b:2687:215";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:232"] = "BLDCmotorControl_R2017b:2687:215";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:233"] = "BLDCmotorControl_R2017b:2687:215";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:235"] = "BLDCmotorControl_R2017b:2687:215";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1468"] = "BLDCmotorControl_R2017b:2687:215";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1469"] = "BLDCmotorControl_R2017b:2687:215";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1470"] = "BLDCmotorControl_R2017b:2687:215";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1471"] = "BLDCmotorControl_R2017b:2687:215";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1472"] = "BLDCmotorControl_R2017b:2687:215";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:241"] = "BLDCmotorControl_R2017b:2687:215";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:542"] = "BLDCmotorControl_R2017b:2687:215";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:543"] = "BLDCmotorControl_R2017b:2687:215";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:242"] = "BLDCmotorControl_R2017b:2687:215";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:243"] = "BLDCmotorControl_R2017b:2687:215";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1462"] = "BLDCmotorControl_R2017b:2687:215";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1463"] = "BLDCmotorControl_R2017b:2687:215";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1681"] = "BLDCmotorControl_R2017b:2687:215";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:578"] = "BLDCmotorControl_R2017b:2687:215";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1473"] = "BLDCmotorControl_R2017b:2687:215";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:536"] = "BLDCmotorControl_R2017b:2687:215";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:538"] = "BLDCmotorControl_R2017b:2687:215";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1668"] = "BLDCmotorControl_R2017b:2687:215";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:623"] = "BLDCmotorControl_R2017b:2687:215";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:258"] = "BLDCmotorControl_R2017b:2687:215";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:545"] = "BLDCmotorControl_R2017b:2687:215";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1474"] = "BLDCmotorControl_R2017b:2687:215";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1670"] = "BLDCmotorControl_R2017b:2687:215";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1475"] = "BLDCmotorControl_R2017b:2687:215";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:262"] = "BLDCmotorControl_R2017b:2687:215";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1476"] = "BLDCmotorControl_R2017b:2687:215";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1477"] = "BLDCmotorControl_R2017b:2687:215";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:546"] = "BLDCmotorControl_R2017b:2687:215";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1478"] = "BLDCmotorControl_R2017b:2687:215";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:514"] = "BLDCmotorControl_R2017b:2687:215";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1479"] = "BLDCmotorControl_R2017b:2687:215";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:512"] = "BLDCmotorControl_R2017b:2687:215";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:547"] = "BLDCmotorControl_R2017b:2687:215";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:521"] = "BLDCmotorControl_R2017b:2687:215";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1671"] = "BLDCmotorControl_R2017b:2687:215";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:522"] = "BLDCmotorControl_R2017b:2687:215";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:278"] = "BLDCmotorControl_R2017b:2687:215";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:279"] = "BLDCmotorControl_R2017b:2687:215";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:283"] = "BLDCmotorControl_R2017b:2687:282";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:284"] = "BLDCmotorControl_R2017b:2687:282";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:285"] = "BLDCmotorControl_R2017b:2687:282";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:305"] = "BLDCmotorControl_R2017b:2687:282";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:295"] = "BLDCmotorControl_R2017b:2687:282";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:315"] = "BLDCmotorControl_R2017b:2687:282";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:316"] = "BLDCmotorControl_R2017b:2687:282";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:317"] = "BLDCmotorControl_R2017b:2687:282";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:318"] = "BLDCmotorControl_R2017b:2687:282";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:319"] = "BLDCmotorControl_R2017b:2687:282";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:320"] = "BLDCmotorControl_R2017b:2687:282";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:321"] = "BLDCmotorControl_R2017b:2687:282";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:322"] = "BLDCmotorControl_R2017b:2687:282";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:323"] = "BLDCmotorControl_R2017b:2687:282";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:324"] = "BLDCmotorControl_R2017b:2687:282";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:325"] = "BLDCmotorControl_R2017b:2687:282";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:326"] = "BLDCmotorControl_R2017b:2687:282";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:327"] = "BLDCmotorControl_R2017b:2687:282";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:328"] = "BLDCmotorControl_R2017b:2687:282";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:329"] = "BLDCmotorControl_R2017b:2687:282";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:330"] = "BLDCmotorControl_R2017b:2687:282";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:331"] = "BLDCmotorControl_R2017b:2687:282";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:332"] = "BLDCmotorControl_R2017b:2687:282";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:333"] = "BLDCmotorControl_R2017b:2687:282";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:334"] = "BLDCmotorControl_R2017b:2687:282";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:335"] = "BLDCmotorControl_R2017b:2687:282";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:336"] = "BLDCmotorControl_R2017b:2687:282";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:337"] = "BLDCmotorControl_R2017b:2687:282";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:338"] = "BLDCmotorControl_R2017b:2687:282";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:339"] = "BLDCmotorControl_R2017b:2687:282";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:340"] = "BLDCmotorControl_R2017b:2687:282";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:341"] = "BLDCmotorControl_R2017b:2687:282";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:342"] = "BLDCmotorControl_R2017b:2687:282";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:343"] = "BLDCmotorControl_R2017b:2687:282";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:344"] = "BLDCmotorControl_R2017b:2687:282";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:345"] = "BLDCmotorControl_R2017b:2687:282";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:346"] = "BLDCmotorControl_R2017b:2687:282";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:347"] = "BLDCmotorControl_R2017b:2687:282";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:348"] = "BLDCmotorControl_R2017b:2687:282";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:349"] = "BLDCmotorControl_R2017b:2687:282";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:352"] = "BLDCmotorControl_R2017b:2687:282";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:355"] = "BLDCmotorControl_R2017b:2687:282";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:358"] = "BLDCmotorControl_R2017b:2687:282";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:359"] = "BLDCmotorControl_R2017b:2687:282";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:360"] = "BLDCmotorControl_R2017b:2687:282";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:362"] = "BLDCmotorControl_R2017b:2687:361";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:364"] = "BLDCmotorControl_R2017b:2687:361";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:365"] = "BLDCmotorControl_R2017b:2687:361";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:366"] = "BLDCmotorControl_R2017b:2687:361";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:367"] = "BLDCmotorControl_R2017b:2687:361";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1385"] = "BLDCmotorControl_R2017b:2687:361";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:370"] = "BLDCmotorControl_R2017b:2687:361";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:372"] = "BLDCmotorControl_R2017b:2687:361";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:373"] = "BLDCmotorControl_R2017b:2687:361";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:374"] = "BLDCmotorControl_R2017b:2687:361";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:375"] = "BLDCmotorControl_R2017b:2687:361";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1389"] = "BLDCmotorControl_R2017b:2687:361";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:376"] = "BLDCmotorControl_R2017b:2687:361";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:377"] = "BLDCmotorControl_R2017b:2687:361";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:378"] = "BLDCmotorControl_R2017b:2687:361";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:379"] = "BLDCmotorControl_R2017b:2687:361";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:380"] = "BLDCmotorControl_R2017b:2687:361";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:381"] = "BLDCmotorControl_R2017b:2687:361";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:382"] = "BLDCmotorControl_R2017b:2687:361";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:385"] = "BLDCmotorControl_R2017b:2687:361";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:386"] = "BLDCmotorControl_R2017b:2687:361";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:387"] = "BLDCmotorControl_R2017b:2687:361";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:388"] = "BLDCmotorControl_R2017b:2687:361";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1386"] = "BLDCmotorControl_R2017b:2687:361";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:389"] = "BLDCmotorControl_R2017b:2687:361";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:391"] = "BLDCmotorControl_R2017b:2687:361";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:393"] = "BLDCmotorControl_R2017b:2687:361";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:394"] = "BLDCmotorControl_R2017b:2687:361";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:395"] = "BLDCmotorControl_R2017b:2687:361";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:396"] = "BLDCmotorControl_R2017b:2687:361";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:398"] = "BLDCmotorControl_R2017b:2687:361";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:401"] = "BLDCmotorControl_R2017b:2687:361";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:411"] = "BLDCmotorControl_R2017b:2687:361";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:412"] = "BLDCmotorControl_R2017b:2687:361";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:413"] = "BLDCmotorControl_R2017b:2687:361";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:414"] = "BLDCmotorControl_R2017b:2687:361";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:27"] = "BLDCmotorControl_R2017b:2687:26";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:28"] = "BLDCmotorControl_R2017b:2687:26";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:29"] = "BLDCmotorControl_R2017b:2687:26";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1535"] = "BLDCmotorControl_R2017b:2687:26";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:31"] = "BLDCmotorControl_R2017b:2687:26";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:32"] = "BLDCmotorControl_R2017b:2687:26";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:33"] = "BLDCmotorControl_R2017b:2687:26";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:37"] = "BLDCmotorControl_R2017b:2687:26";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:11"] = "BLDCmotorControl_R2017b:2687:10";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:12"] = "BLDCmotorControl_R2017b:2687:10";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:13"] = "BLDCmotorControl_R2017b:2687:10";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:14"] = "BLDCmotorControl_R2017b:2687:10";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:15"] = "BLDCmotorControl_R2017b:2687:10";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:17"] = "BLDCmotorControl_R2017b:2687:10";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:18"] = "BLDCmotorControl_R2017b:2687:10";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:22"] = "BLDCmotorControl_R2017b:2687:10";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:23"] = "BLDCmotorControl_R2017b:2687:10";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:39"] = "BLDCmotorControl_R2017b:2687:38";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1314"] = "BLDCmotorControl_R2017b:2687:38";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:42"] = "BLDCmotorControl_R2017b:2687:38";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:43"] = "BLDCmotorControl_R2017b:2687:38";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:44"] = "BLDCmotorControl_R2017b:2687:38";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:45"] = "BLDCmotorControl_R2017b:2687:38";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:48"] = "BLDCmotorControl_R2017b:2687:38";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:49"] = "BLDCmotorControl_R2017b:2687:38";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:50"] = "BLDCmotorControl_R2017b:2687:38";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:51"] = "BLDCmotorControl_R2017b:2687:38";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:52"] = "BLDCmotorControl_R2017b:2687:38";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1631"] = "BLDCmotorControl_R2017b:2687:38";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1318"] = "BLDCmotorControl_R2017b:2687:38";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:57"] = "BLDCmotorControl_R2017b:2687:38";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1632"] = "BLDCmotorControl_R2017b:2687:38";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1373"] = "BLDCmotorControl_R2017b:2687:59";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1663"] = "BLDCmotorControl_R2017b:2687:59";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1370"] = "BLDCmotorControl_R2017b:2687:59";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:60"] = "BLDCmotorControl_R2017b:2687:59";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:61"] = "BLDCmotorControl_R2017b:2687:59";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1629"] = "BLDCmotorControl_R2017b:2687:59";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1366"] = "BLDCmotorControl_R2017b:2687:59";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1321"] = "BLDCmotorControl_R2017b:2687:59";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:64"] = "BLDCmotorControl_R2017b:2687:59";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1340"] = "BLDCmotorControl_R2017b:2687:59";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:80"] = "BLDCmotorControl_R2017b:2687:59";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:81"] = "BLDCmotorControl_R2017b:2687:59";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:660"] = "BLDCmotorControl_R2017b:2687:59";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:83"] = "BLDCmotorControl_R2017b:2687:59";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1486"] = "BLDCmotorControl_R2017b:2687:59";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1523"] = "BLDCmotorControl_R2017b:2687:59";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1641"] = "BLDCmotorControl_R2017b:2687:59";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1642"] = "BLDCmotorControl_R2017b:2687:59";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:86"] = "BLDCmotorControl_R2017b:2687:59";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1665"] = "BLDCmotorControl_R2017b:2687:59";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1380"] = "BLDCmotorControl_R2017b:2687:59";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1455"] = "BLDCmotorControl_R2017b:2687:59";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1361"] = "BLDCmotorControl_R2017b:2687:59";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1675"] = "BLDCmotorControl_R2017b:2687:59";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1323"] = "BLDCmotorControl_R2017b:2687:59";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1517"] = "BLDCmotorControl_R2017b:2687:59";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1324"] = "BLDCmotorControl_R2017b:2687:59";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:92"] = "BLDCmotorControl_R2017b:2687:59";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1397"] = "BLDCmotorControl_R2017b:2687:59";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1485"] = "BLDCmotorControl_R2017b:2687:59";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1521"] = "BLDCmotorControl_R2017b:2687:59";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:972"] = "BLDCmotorControl_R2017b:2687:59";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1395"] = "BLDCmotorControl_R2017b:2687:59";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1533"] = "BLDCmotorControl_R2017b:2687:59";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:99"] = "BLDCmotorControl_R2017b:2687:59";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:100"] = "BLDCmotorControl_R2017b:2687:59";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1664"] = "BLDCmotorControl_R2017b:2687:59";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1398"] = "BLDCmotorControl_R2017b:2687:59";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1371"] = "BLDCmotorControl_R2017b:2687:59";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1372"] = "BLDCmotorControl_R2017b:2687:59";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1374"] = "BLDCmotorControl_R2017b:2687:59";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1630"] = "BLDCmotorControl_R2017b:2687:59";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:106"] = "BLDCmotorControl_R2017b:2687:59";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1674"] = "BLDCmotorControl_R2017b:2687:59";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:786"] = "BLDCmotorControl_R2017b:2687:59";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1400"] = "BLDCmotorControl_R2017b:2687:59";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:108"] = "BLDCmotorControl_R2017b:2687:59";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1362"] = "BLDCmotorControl_R2017b:2687:59";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1339"] = "BLDCmotorControl_R2017b:2687:59";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1325"] = "BLDCmotorControl_R2017b:2687:59";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1401"] = "BLDCmotorControl_R2017b:2687:59";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:659"] = "BLDCmotorControl_R2017b:2687:59";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:842"] = "BLDCmotorControl_R2017b:2687:59";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1524"] = "BLDCmotorControl_R2017b:2687:59";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1326"] = "BLDCmotorControl_R2017b:2687:59";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1327"] = "BLDCmotorControl_R2017b:2687:59";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:141"] = "BLDCmotorControl_R2017b:2687:59";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1525"] = "BLDCmotorControl_R2017b:2687:59";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1526"] = "BLDCmotorControl_R2017b:2687:59";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:142"] = "BLDCmotorControl_R2017b:2687:59";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1507"] = "BLDCmotorControl_R2017b:2687:59";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1518"] = "BLDCmotorControl_R2017b:2687:59";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1328"] = "BLDCmotorControl_R2017b:2687:59";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1329"] = "BLDCmotorControl_R2017b:2687:59";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1651"] = "BLDCmotorControl_R2017b:2687:59";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:173"] = "BLDCmotorControl_R2017b:2687:59";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1676"] = "BLDCmotorControl_R2017b:2687:59";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1381"] = "BLDCmotorControl_R2017b:2687:59";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1487"] = "BLDCmotorControl_R2017b:2687:59";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1488"] = "BLDCmotorControl_R2017b:2687:59";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1341"] = "BLDCmotorControl_R2017b:2687:1340";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1344"] = "BLDCmotorControl_R2017b:2687:1340";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1454"] = "BLDCmotorControl_R2017b:2687:1340";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:169"] = "BLDCmotorControl_R2017b:2687:1340";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1358"] = "BLDCmotorControl_R2017b:2687:1340";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1359"] = "BLDCmotorControl_R2017b:2687:1340";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1431"] = "BLDCmotorControl_R2017b:2687:1401";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1640"] = "BLDCmotorControl_R2017b:2687:1401";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1430"] = "BLDCmotorControl_R2017b:2687:1401";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1639"] = "BLDCmotorControl_R2017b:2687:1401";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1672"] = "BLDCmotorControl_R2017b:2687:1401";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1637"] = "BLDCmotorControl_R2017b:2687:1401";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1433"] = "BLDCmotorControl_R2017b:2687:1401";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1434"] = "BLDCmotorControl_R2017b:2687:1401";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1435"] = "BLDCmotorControl_R2017b:2687:1401";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1436"] = "BLDCmotorControl_R2017b:2687:1401";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1437"] = "BLDCmotorControl_R2017b:2687:1401";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1438"] = "BLDCmotorControl_R2017b:2687:1401";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1439"] = "BLDCmotorControl_R2017b:2687:1401";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1623"] = "BLDCmotorControl_R2017b:2687:1401";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1635"] = "BLDCmotorControl_R2017b:2687:1401";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1636"] = "BLDCmotorControl_R2017b:2687:1401";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1645"] = "BLDCmotorControl_R2017b:2687:1401";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1646"] = "BLDCmotorControl_R2017b:2687:1401";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1647"] = "BLDCmotorControl_R2017b:2687:1401";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1648"] = "BLDCmotorControl_R2017b:2687:1401";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1649"] = "BLDCmotorControl_R2017b:2687:1401";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1440"] = "BLDCmotorControl_R2017b:2687:1401";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1650"] = "BLDCmotorControl_R2017b:2687:1401";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1627"] = "BLDCmotorControl_R2017b:2687:1401";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1624"] = "BLDCmotorControl_R2017b:2687:1401";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1628"] = "BLDCmotorControl_R2017b:2687:1401";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1443"] = "BLDCmotorControl_R2017b:2687:1401";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1444"] = "BLDCmotorControl_R2017b:2687:1401";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1638"] = "BLDCmotorControl_R2017b:2687:1401";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1446"] = "BLDCmotorControl_R2017b:2687:1401";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1447"] = "BLDCmotorControl_R2017b:2687:1401";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1448"] = "BLDCmotorControl_R2017b:2687:1401";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1625"] = "BLDCmotorControl_R2017b:2687:1401";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1450"] = "BLDCmotorControl_R2017b:2687:1401";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1451"] = "BLDCmotorControl_R2017b:2687:1401";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1673"] = "BLDCmotorControl_R2017b:2687:1401";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1651:1614"] = "BLDCmotorControl_R2017b:2687:1651";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1651:1615"] = "BLDCmotorControl_R2017b:2687:1651";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1651:1616"] = "BLDCmotorControl_R2017b:2687:1651";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1651:1617"] = "BLDCmotorControl_R2017b:2687:1651";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1651:1618"] = "BLDCmotorControl_R2017b:2687:1651";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1651:1619"] = "BLDCmotorControl_R2017b:2687:1651";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1651:1620"] = "BLDCmotorControl_R2017b:2687:1651";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1651:1621"] = "BLDCmotorControl_R2017b:2687:1651";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:1651:1622"] = "BLDCmotorControl_R2017b:2687:1651";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:286"] = "BLDCmotorControl_R2017b:2687:285";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:287"] = "BLDCmotorControl_R2017b:2687:285";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:288"] = "BLDCmotorControl_R2017b:2687:285";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:289"] = "BLDCmotorControl_R2017b:2687:285";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:290"] = "BLDCmotorControl_R2017b:2687:285";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:291"] = "BLDCmotorControl_R2017b:2687:285";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:292"] = "BLDCmotorControl_R2017b:2687:285";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:293"] = "BLDCmotorControl_R2017b:2687:285";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:294"] = "BLDCmotorControl_R2017b:2687:285";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:306"] = "BLDCmotorControl_R2017b:2687:305";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:307"] = "BLDCmotorControl_R2017b:2687:305";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:308"] = "BLDCmotorControl_R2017b:2687:305";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:309"] = "BLDCmotorControl_R2017b:2687:305";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:310"] = "BLDCmotorControl_R2017b:2687:305";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:311"] = "BLDCmotorControl_R2017b:2687:305";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:312"] = "BLDCmotorControl_R2017b:2687:305";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:313"] = "BLDCmotorControl_R2017b:2687:305";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:314"] = "BLDCmotorControl_R2017b:2687:305";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:296"] = "BLDCmotorControl_R2017b:2687:295";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:297"] = "BLDCmotorControl_R2017b:2687:295";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:298"] = "BLDCmotorControl_R2017b:2687:295";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:299"] = "BLDCmotorControl_R2017b:2687:295";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:300"] = "BLDCmotorControl_R2017b:2687:295";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:301"] = "BLDCmotorControl_R2017b:2687:295";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:302"] = "BLDCmotorControl_R2017b:2687:295";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:303"] = "BLDCmotorControl_R2017b:2687:295";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:304"] = "BLDCmotorControl_R2017b:2687:295";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:350"] = "BLDCmotorControl_R2017b:2687:349";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:351"] = "BLDCmotorControl_R2017b:2687:349";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:353"] = "BLDCmotorControl_R2017b:2687:352";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:354"] = "BLDCmotorControl_R2017b:2687:352";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:356"] = "BLDCmotorControl_R2017b:2687:355";
|
|
||||||
this.sidParentMap["BLDCmotorControl_R2017b:2687:357"] = "BLDCmotorControl_R2017b:2687:355";
|
|
||||||
this.getParentSid = function(sid) { return this.sidParentMap[sid];}
|
|
||||||
}
|
|
||||||
RTW_SidParentMap.instance = new RTW_SidParentMap();
|
|
@ -1,220 +0,0 @@
|
|||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><link rel="stylesheet" type="text/css" href="rtwreport.css" /><script language="JavaScript" type="text/javascript" src="rtwreport_utils.js"></script>
|
|
||||||
<title>
|
|
||||||
Non-virtual subsystems in BLDC_controller
|
|
||||||
</title>
|
|
||||||
|
|
||||||
</head>
|
|
||||||
<body onload="try {if (top) {if (top.rtwPageOnLoad) top.rtwPageOnLoad('rtwIdSubsystem'); else local_onload();}} catch(err) {};">
|
|
||||||
<h1>
|
|
||||||
Non-virtual subsystems in BLDC_controller
|
|
||||||
</h1>
|
|
||||||
<div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<h3 name="sec_Code_Mapping" id="sec_Code_Mapping">
|
|
||||||
1. Code Mapping <span title="Click to shrink or expand section" style="cursor:pointer;font-weight:normal;" id="rtwIdSubsystem_table_001_control" onclick ="if (top) if (top.rtwTableShrink) top.rtwTableShrink(window.document, this, 'rtwIdSubsystem_table_001', false)"><span class="shrink-button">[<u>hide</u>]</span></span>
|
|
||||||
</h3>
|
|
||||||
<table width="100%" name="rtwIdSubsystem_table_001" id="rtwIdSubsystem_table_001" border="0">
|
|
||||||
<tr>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
<p>
|
|
||||||
The following table: <br /><ul>
|
|
||||||
<li>
|
|
||||||
provides a mapping from the non-virtual subsystems in the model to functions or reusable functions in the generated code and
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
notes exceptions that caused some non-virtual subsystems to not reuse code even though they were assigned a function packaging setting ('Function packaging' entry on the Subsystem Block Dialog) of 'Auto' or 'Reusable function'.
|
|
||||||
</li>
|
|
||||||
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
</p>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
<table class="AltRow FirstColumn" cellspacing="0">
|
|
||||||
<tr class="heading">
|
|
||||||
<th align="left" valign="top">
|
|
||||||
<b>
|
|
||||||
Subsystem
|
|
||||||
</b>
|
|
||||||
|
|
||||||
</th>
|
|
||||||
<th align="left" valign="top">
|
|
||||||
<b>
|
|
||||||
Reuse Setting
|
|
||||||
</b>
|
|
||||||
|
|
||||||
</th>
|
|
||||||
<th align="left" valign="top">
|
|
||||||
<b>
|
|
||||||
Reuse Outcome
|
|
||||||
</b>
|
|
||||||
|
|
||||||
</th>
|
|
||||||
<th align="left" valign="top">
|
|
||||||
<b>
|
|
||||||
Outcome Diagnostic
|
|
||||||
</b>
|
|
||||||
|
|
||||||
</th>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr class="even">
|
|
||||||
<td align="left" valign="top">
|
|
||||||
<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1340')" name="code2model" class="code2model"><S15></a>
|
|
||||||
</td>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
Auto
|
|
||||||
</td>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
Inline
|
|
||||||
</td>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
<FONT COLOR="green">normal</FONT>
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr class="odd">
|
|
||||||
<td align="left" valign="top">
|
|
||||||
<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:38')" name="code2model" class="code2model"><S13></a>
|
|
||||||
</td>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
Auto
|
|
||||||
</td>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
Inline
|
|
||||||
</td>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
<FONT COLOR="green">normal</FONT>
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr class="even">
|
|
||||||
<td align="left" valign="top">
|
|
||||||
<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:285')" name="code2model" class="code2model"><S18></a>
|
|
||||||
</td>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
Auto
|
|
||||||
</td>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
Inline
|
|
||||||
</td>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
<FONT COLOR="green">normal</FONT>
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr class="odd">
|
|
||||||
<td align="left" valign="top">
|
|
||||||
<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:305')" name="code2model" class="code2model"><S19></a>
|
|
||||||
</td>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
Auto
|
|
||||||
</td>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
Inline
|
|
||||||
</td>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
<FONT COLOR="green">normal</FONT>
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr class="even">
|
|
||||||
<td align="left" valign="top">
|
|
||||||
<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:295')" name="code2model" class="code2model"><S20></a>
|
|
||||||
</td>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
Auto
|
|
||||||
</td>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
Inline
|
|
||||||
</td>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
<FONT COLOR="green">normal</FONT>
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr class="odd">
|
|
||||||
<td align="left" valign="top">
|
|
||||||
<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:215')" name="code2model" class="code2model"><S8></a>
|
|
||||||
</td>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
Auto
|
|
||||||
</td>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
Inline
|
|
||||||
</td>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
<FONT COLOR="green">normal</FONT>
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr class="even">
|
|
||||||
<td align="left" valign="top">
|
|
||||||
<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:29')" name="code2model" class="code2model"><S1></a>
|
|
||||||
</td>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
Inline
|
|
||||||
</td>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
Inline
|
|
||||||
</td>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
<FONT COLOR="green">normal</FONT>
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
</table>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
</table>
|
|
||||||
<h3 name="sec_Code_Reuse_Exceptions" id="sec_Code_Reuse_Exceptions">
|
|
||||||
2. Code Reuse Exceptions <span title="Click to shrink or expand section" style="cursor:pointer;font-weight:normal;" id="rtwIdSubsystem_table_002_control" onclick ="if (top) if (top.rtwTableShrink) top.rtwTableShrink(window.document, this, 'rtwIdSubsystem_table_002', false)"><span class="shrink-button">[<u>hide</u>]</span></span>
|
|
||||||
</h3>
|
|
||||||
<table width="100%" name="rtwIdSubsystem_table_002" id="rtwIdSubsystem_table_002" border="0">
|
|
||||||
<tr>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
<p>
|
|
||||||
The following section provides details on each exception that caused a non-virtual subsystem with a function packaging setting of<br /><ul>
|
|
||||||
<li>
|
|
||||||
'Auto' to become an inlined code segment,
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
'Auto' to become a non-reusable function without arguments, or
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
'Reusable function' to become a non-reusable function without arguments.
|
|
||||||
</li>
|
|
||||||
|
|
||||||
</ul>
|
|
||||||
<b>Note:</b>This section does not report graphically identical non-virtual subsystems marked as 'Auto' that were not reused due to differences in their functional properties (such as dimensions, datatypes, work vectors, parameters, etc.). You may identify reasons for non-reuse in such cases by inspecting the differences in the functional attributes of the subsystems in the model or in the inlined generated code.
|
|
||||||
</p>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
<br /><b>No reuse exception in model</b>
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
</table>
|
|
||||||
|
|
||||||
</body>
|
|
||||||
|
|
||||||
</html>
|
|
@ -1,189 +0,0 @@
|
|||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><link rel="stylesheet" type="text/css" href="rtwreport.css" /><script language="JavaScript" type="text/javascript" src="rtwreport_utils.js"></script>
|
|
||||||
<script language="JavaScript" type="text/javascript" src="rtwcodemetricsreport_utils.js"></script>
|
|
||||||
<script language="JavaScript" id="metrics.js" type="text/javascript" src="metrics.js"></script>
|
|
||||||
<title>
|
|
||||||
Code Generation Report for 'BLDC_controller'
|
|
||||||
</title>
|
|
||||||
|
|
||||||
</head>
|
|
||||||
<body onload="try {if (top) {if (top.rtwPageOnLoad) top.rtwPageOnLoad('rtwIdSummaryPage'); else local_onload();}} catch(err) {};">
|
|
||||||
<h1>
|
|
||||||
Code Generation Report for 'BLDC_controller'
|
|
||||||
</h1>
|
|
||||||
<div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<h3 name="sec_Model_Information" id="sec_Model_Information">
|
|
||||||
Model Information
|
|
||||||
</h3>
|
|
||||||
<table width="100%" border="0">
|
|
||||||
<tr>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
<p>
|
|
||||||
<table class="AltRow" cellspacing="0">
|
|
||||||
<tr class="even">
|
|
||||||
<td align="left" valign="top">
|
|
||||||
Author
|
|
||||||
</td>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
MathWorks
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr class="odd">
|
|
||||||
<td align="left" valign="top">
|
|
||||||
Model Version
|
|
||||||
</td>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
1.883
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr class="even">
|
|
||||||
<td align="left" valign="top">
|
|
||||||
Tasking Mode
|
|
||||||
</td>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
MultiTasking
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
</table>
|
|
||||||
<br /><a href="../../slprj/ert/BLDC_controller/tmwinternal/binfo.mat?BLDC_controller" id="linkToCS" style="display:none">
|
|
||||||
Configuration settings at time of code generation
|
|
||||||
</a>
|
|
||||||
<span style="" id="linkToCS_disabled" title="Link to configuration set is only available in MATLAB browser">
|
|
||||||
Configuration settings at time of code generation
|
|
||||||
</span>
|
|
||||||
|
|
||||||
</p>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
</table>
|
|
||||||
<h3 name="sec_Code_Information" id="sec_Code_Information">
|
|
||||||
Code Information
|
|
||||||
</h3>
|
|
||||||
<table width="100%" border="0">
|
|
||||||
<tr>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
<p>
|
|
||||||
<table class="AltRow" cellspacing="0">
|
|
||||||
<tr class="even">
|
|
||||||
<td align="left" valign="top">
|
|
||||||
System Target File
|
|
||||||
</td>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
ert.tlc
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr class="odd">
|
|
||||||
<td align="left" valign="top">
|
|
||||||
Hardware Device Type
|
|
||||||
</td>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
ARM Compatible->ARM Cortex
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr class="even">
|
|
||||||
<td align="left" valign="top">
|
|
||||||
Simulink Coder Version
|
|
||||||
</td>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
8.13 (R2017b) 24-Jul-2017
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr class="odd">
|
|
||||||
<td align="left" valign="top">
|
|
||||||
Timestamp of Generated Source Code
|
|
||||||
</td>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
Tue Jun 11 21:14:57 2019
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr class="even">
|
|
||||||
<td align="left" valign="top">
|
|
||||||
<span id="sourceLocationTitle" style="display:none">Location of Generated Source Code</span>
|
|
||||||
</td>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
<span id="sourceLocation" style="display:none"><script>document.write(top.getCodeLocation())</script></span>
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr class="odd">
|
|
||||||
<td align="left" valign="top">
|
|
||||||
Type of Build
|
|
||||||
</td>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
Subsystem
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr class="even">
|
|
||||||
<td align="left" valign="top">
|
|
||||||
<span id="metricsLocationTitle"> Memory Information </span>
|
|
||||||
</td>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
<span id="metricsLocation"><script>document.write("Code Metrics not yet available"); getCodeMetricsByPolling();</script></span>
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr class="odd">
|
|
||||||
<td align="left" valign="top">
|
|
||||||
Objectives Specified
|
|
||||||
</td>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
<span style="color:black">Execution efficiency, RAM efficiency</span>
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
</table>
|
|
||||||
|
|
||||||
</p>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
</table>
|
|
||||||
<h3 name="sec_Additional_Information" id="sec_Additional_Information">
|
|
||||||
Additional Information
|
|
||||||
</h3>
|
|
||||||
<table width="100%" border="0">
|
|
||||||
<tr>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
<table class="AltRow" cellspacing="0">
|
|
||||||
<tr class="even">
|
|
||||||
<td align="left" valign="top">
|
|
||||||
Code Generation Advisor
|
|
||||||
</td>
|
|
||||||
<td align="left" valign="top">
|
|
||||||
Not run
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
</table>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
</table>
|
|
||||||
|
|
||||||
</body>
|
|
||||||
|
|
||||||
</html>
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
Binary file not shown.
@ -1,9 +0,0 @@
|
|||||||
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="4" WIDTH="100%%" BGCOLOR="#ffffff"><TR><TD>
|
|
||||||
<B>Generated Source Files</B>
|
|
||||||
</TD></TR><TR></TR>
|
|
||||||
<tr><td><a href="D:\git\hoverboard-firmware-hack\01_Matlab\BLDC_controller_ert_rtw\html\ert_main_c.html" onclick="if (top) if (top.tocHiliteMe) top.tocHiliteMe(window, this, false);" id="D:\git\hoverboard-firmware-hack\01_Matlab\BLDC_controller_ert_rtw\html\ert_main_c.html" target="rtwreport_document_frame" name="rtwIdGenFileLinks">ert_main.c</a><span> </span></td></tr><tr></tr>
|
|
||||||
<tr><td><a href="D:\git\hoverboard-firmware-hack\01_Matlab\BLDC_controller_ert_rtw\html\BLDC_controller_c.html" onclick="if (top) if (top.tocHiliteMe) top.tocHiliteMe(window, this, false);" id="D:\git\hoverboard-firmware-hack\01_Matlab\BLDC_controller_ert_rtw\html\BLDC_controller_c.html" target="rtwreport_document_frame" name="rtwIdGenFileLinks">BLDC_controller.c</a><span> </span></td></tr><tr></tr>
|
|
||||||
<tr><td><a href="D:\git\hoverboard-firmware-hack\01_Matlab\BLDC_controller_ert_rtw\html\BLDC_controller_h.html" onclick="if (top) if (top.tocHiliteMe) top.tocHiliteMe(window, this, false);" id="D:\git\hoverboard-firmware-hack\01_Matlab\BLDC_controller_ert_rtw\html\BLDC_controller_h.html" target="rtwreport_document_frame" name="rtwIdGenFileLinks">BLDC_controller.h</a><span> </span></td></tr><tr></tr>
|
|
||||||
<tr><td><a href="D:\git\hoverboard-firmware-hack\01_Matlab\BLDC_controller_ert_rtw\html\BLDC_controller_data_c.html" onclick="if (top) if (top.tocHiliteMe) top.tocHiliteMe(window, this, false);" id="D:\git\hoverboard-firmware-hack\01_Matlab\BLDC_controller_ert_rtw\html\BLDC_controller_data_c.html" target="rtwreport_document_frame" name="rtwIdGenFileLinks">BLDC_controller_data.c</a><span> </span></td></tr><tr></tr>
|
|
||||||
<tr><td><a href="D:\git\hoverboard-firmware-hack\01_Matlab\BLDC_controller_ert_rtw\html\rtwtypes_h.html" onclick="if (top) if (top.tocHiliteMe) top.tocHiliteMe(window, this, false);" id="D:\git\hoverboard-firmware-hack\01_Matlab\BLDC_controller_ert_rtw\html\rtwtypes_h.html" target="rtwreport_document_frame" name="rtwIdGenFileLinks">rtwtypes.h</a><span> </span></td></tr><tr></tr>
|
|
||||||
</table>
|
|
@ -1,78 +0,0 @@
|
|||||||
function CodeDefine() {
|
|
||||||
this.def = new Array();
|
|
||||||
this.def["rtM_"] = {file: "ert_main_c.html",line:29,type:"var"};
|
|
||||||
this.def["rtMPtr"] = {file: "ert_main_c.html",line:30,type:"var"};
|
|
||||||
this.def["rtP"] = {file: "ert_main_c.html",line:31,type:"var"};
|
|
||||||
this.def["rtDW"] = {file: "ert_main_c.html",line:103,type:"var"};
|
|
||||||
this.def["rtU"] = {file: "ert_main_c.html",line:104,type:"var"};
|
|
||||||
this.def["rtY"] = {file: "ert_main_c.html",line:105,type:"var"};
|
|
||||||
this.def["rt_OneStep"] = {file: "ert_main_c.html",line:119,type:"fcn"};
|
|
||||||
this.def["main"] = {file: "ert_main_c.html",line:155,type:"fcn"};
|
|
||||||
this.def["plook_u8s32u32n31_evenc_s"] = {file: "BLDC_controller_c.html",line:93,type:"fcn"};
|
|
||||||
this.def["intrp1d_s16s32s32u8u32n31l_s"] = {file: "BLDC_controller_c.html",line:127,type:"fcn"};
|
|
||||||
this.def["div_nde_s32_floor"] = {file: "BLDC_controller_c.html",line:143,type:"fcn"};
|
|
||||||
this.def["BLDC_controller_step"] = {file: "BLDC_controller_c.html",line:150,type:"fcn"};
|
|
||||||
this.def["BLDC_controller_initialize"] = {file: "BLDC_controller_c.html",line:666,type:"fcn"};
|
|
||||||
this.def["RT_MODEL"] = {file: "BLDC_controller_h.html",line:35,type:"type"};
|
|
||||||
this.def["DW"] = {file: "BLDC_controller_h.html",line:58,type:"type"};
|
|
||||||
this.def["ConstP"] = {file: "BLDC_controller_h.html",line:116,type:"type"};
|
|
||||||
this.def["ExtU"] = {file: "BLDC_controller_h.html",line:124,type:"type"};
|
|
||||||
this.def["ExtY"] = {file: "BLDC_controller_h.html",line:133,type:"type"};
|
|
||||||
this.def["P"] = {file: "BLDC_controller_h.html",line:184,type:"type"};
|
|
||||||
this.def["rtConstP"] = {file: "BLDC_controller_data_c.html",line:27,type:"var"};
|
|
||||||
this.def["int8_T"] = {file: "rtwtypes_h.html",line:55,type:"type"};
|
|
||||||
this.def["uint8_T"] = {file: "rtwtypes_h.html",line:56,type:"type"};
|
|
||||||
this.def["int16_T"] = {file: "rtwtypes_h.html",line:57,type:"type"};
|
|
||||||
this.def["uint16_T"] = {file: "rtwtypes_h.html",line:58,type:"type"};
|
|
||||||
this.def["int32_T"] = {file: "rtwtypes_h.html",line:59,type:"type"};
|
|
||||||
this.def["uint32_T"] = {file: "rtwtypes_h.html",line:60,type:"type"};
|
|
||||||
this.def["int64_T"] = {file: "rtwtypes_h.html",line:61,type:"type"};
|
|
||||||
this.def["uint64_T"] = {file: "rtwtypes_h.html",line:62,type:"type"};
|
|
||||||
this.def["real32_T"] = {file: "rtwtypes_h.html",line:63,type:"type"};
|
|
||||||
this.def["real64_T"] = {file: "rtwtypes_h.html",line:64,type:"type"};
|
|
||||||
this.def["real_T"] = {file: "rtwtypes_h.html",line:70,type:"type"};
|
|
||||||
this.def["time_T"] = {file: "rtwtypes_h.html",line:71,type:"type"};
|
|
||||||
this.def["boolean_T"] = {file: "rtwtypes_h.html",line:72,type:"type"};
|
|
||||||
this.def["int_T"] = {file: "rtwtypes_h.html",line:73,type:"type"};
|
|
||||||
this.def["uint_T"] = {file: "rtwtypes_h.html",line:74,type:"type"};
|
|
||||||
this.def["ulong_T"] = {file: "rtwtypes_h.html",line:75,type:"type"};
|
|
||||||
this.def["ulonglong_T"] = {file: "rtwtypes_h.html",line:76,type:"type"};
|
|
||||||
this.def["char_T"] = {file: "rtwtypes_h.html",line:77,type:"type"};
|
|
||||||
this.def["uchar_T"] = {file: "rtwtypes_h.html",line:78,type:"type"};
|
|
||||||
this.def["byte_T"] = {file: "rtwtypes_h.html",line:79,type:"type"};
|
|
||||||
this.def["pointer_T"] = {file: "rtwtypes_h.html",line:100,type:"type"};
|
|
||||||
}
|
|
||||||
CodeDefine.instance = new CodeDefine();
|
|
||||||
var testHarnessInfo = {OwnerFileName: "", HarnessOwner: "", HarnessName: "", IsTestHarness: "0"};
|
|
||||||
var relPathToBuildDir = "../ert_main.c";
|
|
||||||
var fileSep = "\\";
|
|
||||||
var isPC = true;
|
|
||||||
function Html2SrcLink() {
|
|
||||||
this.html2SrcPath = new Array;
|
|
||||||
this.html2Root = new Array;
|
|
||||||
this.html2SrcPath["ert_main_c.html"] = "../ert_main.c";
|
|
||||||
this.html2Root["ert_main_c.html"] = "ert_main_c.html";
|
|
||||||
this.html2SrcPath["BLDC_controller_c.html"] = "../BLDC_controller.c";
|
|
||||||
this.html2Root["BLDC_controller_c.html"] = "BLDC_controller_c.html";
|
|
||||||
this.html2SrcPath["BLDC_controller_h.html"] = "../BLDC_controller.h";
|
|
||||||
this.html2Root["BLDC_controller_h.html"] = "BLDC_controller_h.html";
|
|
||||||
this.html2SrcPath["BLDC_controller_data_c.html"] = "../BLDC_controller_data.c";
|
|
||||||
this.html2Root["BLDC_controller_data_c.html"] = "BLDC_controller_data_c.html";
|
|
||||||
this.html2SrcPath["rtwtypes_h.html"] = "../rtwtypes.h";
|
|
||||||
this.html2Root["rtwtypes_h.html"] = "rtwtypes_h.html";
|
|
||||||
this.getLink2Src = function (htmlFileName) {
|
|
||||||
if (this.html2SrcPath[htmlFileName])
|
|
||||||
return this.html2SrcPath[htmlFileName];
|
|
||||||
else
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
this.getLinkFromRoot = function (htmlFileName) {
|
|
||||||
if (this.html2Root[htmlFileName])
|
|
||||||
return this.html2Root[htmlFileName];
|
|
||||||
else
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Html2SrcLink.instance = new Html2SrcLink();
|
|
||||||
var fileList = [
|
|
||||||
"ert_main_c.html","BLDC_controller_c.html","BLDC_controller_h.html","BLDC_controller_data_c.html","rtwtypes_h.html"];
|
|
@ -1,221 +0,0 @@
|
|||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
|
||||||
<title>RTW Report - ert_main.c</title>
|
|
||||||
<link rel="stylesheet" type="text/css" href="rtwreport.css"></link><script language="JavaScript" type="text/javascript" src="rtwreport_utils.js"></script>
|
|
||||||
<SCRIPT type="text/javascript" language="JavaScript" src="slwebview.js"></SCRIPT>
|
|
||||||
<SCRIPT type="text/javascript" language="JavaScript" src="id_mapping.js"></SCRIPT>
|
|
||||||
<SCRIPT type="text/javascript" src="rtwannotate.js"></SCRIPT>
|
|
||||||
</head>
|
|
||||||
<body bgcolor="#eeeeee" onload="try {if (top) { if (top.rtwFileOnLoad) top.rtwFileOnLoad(window.document); else local_onload();}} catch(err) {};if (typeof rtwannotate === 'function') {rtwannotate('ert_main_c_cov.xml');}">
|
|
||||||
<p>
|
|
||||||
<table border="0" cellspacing="0" cellpadding="6" width="100%%" height="100%%"><tr><td width="100%%" valign="top" bgcolor="#ffffff">
|
|
||||||
<h4>File: <a href="../ert_main.c" target="rtwreport_document_frame" id="linkToText_plain">ert_main.c</a></h4>
|
|
||||||
<pre id="RTWcode">
|
|
||||||
<span><a class="LN" name="1"> 1 </a><span class="CT">/*</span>
|
|
||||||
</span><span><a class="LN" name="2"> 2 </a><span class="CT"> * Academic License - for use in teaching, academic research, and meeting</span>
|
|
||||||
</span><span><a class="LN" name="3"> 3 </a><span class="CT"> * course requirements at degree granting institutions only. Not for</span>
|
|
||||||
</span><span><a class="LN" name="4"> 4 </a><span class="CT"> * government, commercial, or other organizational use.</span>
|
|
||||||
</span><span><a class="LN" name="5"> 5 </a><span class="CT"> *</span>
|
|
||||||
</span><span><a class="LN" name="6"> 6 </a><span class="CT"> * File: ert_main.c</span>
|
|
||||||
</span><span><a class="LN" name="7"> 7 </a><span class="CT"> *</span>
|
|
||||||
</span><span><a class="LN" name="8"> 8 </a><span class="CT"> * Code generated for Simulink model 'BLDC_controller'.</span>
|
|
||||||
</span><span><a class="LN" name="9"> 9 </a><span class="CT"> *</span>
|
|
||||||
</span><span><a class="LN" name="10"> 10 </a><span class="CT"> * Model version : 1.883</span>
|
|
||||||
</span><span><a class="LN" name="11"> 11 </a><span class="CT"> * Simulink Coder version : 8.13 (R2017b) 24-Jul-2017</span>
|
|
||||||
</span><span><a class="LN" name="12"> 12 </a><span class="CT"> * C/C++ source code generated on : Tue Jun 11 21:14:57 2019</span>
|
|
||||||
</span><span><a class="LN" name="13"> 13 </a><span class="CT"> *</span>
|
|
||||||
</span><span><a class="LN" name="14"> 14 </a><span class="CT"> * Target selection: ert.tlc</span>
|
|
||||||
</span><span><a class="LN" name="15"> 15 </a><span class="CT"> * Embedded hardware selection: ARM Compatible->ARM Cortex</span>
|
|
||||||
</span><span><a class="LN" name="16"> 16 </a><span class="CT"> * Emulation hardware selection:</span>
|
|
||||||
</span><span><a class="LN" name="17"> 17 </a><span class="CT"> * Differs from embedded hardware (MATLAB Host)</span>
|
|
||||||
</span><span><a class="LN" name="18"> 18 </a><span class="CT"> * Code generation objectives:</span>
|
|
||||||
</span><span><a class="LN" name="19"> 19 </a><span class="CT"> * 1. Execution efficiency</span>
|
|
||||||
</span><span><a class="LN" name="20"> 20 </a><span class="CT"> * 2. RAM efficiency</span>
|
|
||||||
</span><span><a class="LN" name="21"> 21 </a><span class="CT"> * Validation result: Not run</span>
|
|
||||||
</span><span><a class="LN" name="22"> 22 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="23"> 23 </a>
|
|
||||||
</span><span><a class="LN" name="24"> 24 </a><font color="#992211">#</font><span class="PP">include</span> <font color="#992211"><stddef.h></font>
|
|
||||||
</span><span><a class="LN" name="25"> 25 </a><font color="#992211">#</font><span class="PP">include</span> <font color="#992211"><stdio.h></font> <span class="CT">/* This ert_main.c example uses printf/fflush */</span>
|
|
||||||
</span><span><a class="LN" name="26"> 26 </a><font color="#992211">#</font><span class="PP">include</span> <font color="#992211">"BLDC_controller.h"</font> <span class="CT">/* Model's header file */</span>
|
|
||||||
</span><span><a class="LN" name="27"> 27 </a><font color="#992211">#</font><span class="PP">include</span> <font color="#992211">"rtwtypes.h"</font>
|
|
||||||
</span><span><a class="LN" name="28"> 28 </a>
|
|
||||||
</span><span><a class="LN" name="29"> 29 </a><span class="DT">static</span> <a href="BLDC_controller_h.html#type_RT_MODEL" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_RT_MODEL');" target="_self"><font color="#1122aa">RT_MODEL</font></a> <a name="var_rtM_">rtM_</a>;
|
|
||||||
</span><span><a class="LN" name="30"> 30 </a><span class="DT">static</span> <a href="BLDC_controller_h.html#type_RT_MODEL" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_RT_MODEL');" target="_self"><font color="#1122aa">RT_MODEL</font></a> *<span class="DT">const</span> <a name="var_rtMPtr">rtMPtr</a> = &<a href="#var_rtM_" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'var_rtM_');" target="_self"><font color="#1122aa">rtM_</font></a>; <span class="CT">/* Real-time model */</span>
|
|
||||||
</span><span><a class="LN" name="31"> 31 </a><span class="DT">static</span> <a href="BLDC_controller_h.html#type_P" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_P');" target="_self"><font color="#1122aa">P</font></a> <a name="var_rtP">rtP</a> = <b>{</b>
|
|
||||||
</span><span><a class="LN" name="32"> 32 </a> <span class="CT">/* Variable: cf_speedCoef</span>
|
|
||||||
</span><span><a class="LN" name="33"> 33 </a><span class="CT"> * Referenced by: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1447')" name="code2model"><font color="#117755"><i><S16>/cf_spdCoef</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="34"> 34 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="35"> 35 </a> 11111,
|
|
||||||
</span><span><a class="LN" name="36"> 36 </a>
|
|
||||||
</span><span><a class="LN" name="37"> 37 </a> <span class="CT">/* Variable: cf_speedFilt</span>
|
|
||||||
</span><span><a class="LN" name="38"> 38 </a><span class="CT"> * Referenced by: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1448')" name="code2model"><font color="#117755"><i><S16>/cf_speedFilt</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="39"> 39 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="40"> 40 </a> 10,
|
|
||||||
</span><span><a class="LN" name="41"> 41 </a>
|
|
||||||
</span><span><a class="LN" name="42"> 42 </a> <span class="CT">/* Variable: n_commAcvLo</span>
|
|
||||||
</span><span><a class="LN" name="43"> 43 </a><span class="CT"> * Referenced by: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1328')" name="code2model"><font color="#117755"><i><S14>/n_commDeacv</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="44"> 44 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="45"> 45 </a> 15,
|
|
||||||
</span><span><a class="LN" name="46"> 46 </a>
|
|
||||||
</span><span><a class="LN" name="47"> 47 </a> <span class="CT">/* Variable: n_commDeacvHi</span>
|
|
||||||
</span><span><a class="LN" name="48"> 48 </a><span class="CT"> * Referenced by: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1328')" name="code2model"><font color="#117755"><i><S14>/n_commDeacv</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="49"> 49 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="50"> 50 </a> 30,
|
|
||||||
</span><span><a class="LN" name="51"> 51 </a>
|
|
||||||
</span><span><a class="LN" name="52"> 52 </a> <span class="CT">/* Variable: n_motPhaAdvEna</span>
|
|
||||||
</span><span><a class="LN" name="53"> 53 </a><span class="CT"> * Referenced by: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1671')" name="code2model"><font color="#117755"><i><S8>/n_motPhaAdvEna</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="54"> 54 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="55"> 55 </a> 400,
|
|
||||||
</span><span><a class="LN" name="56"> 56 </a>
|
|
||||||
</span><span><a class="LN" name="57"> 57 </a> <span class="CT">/* Variable: r_commDCDeacv</span>
|
|
||||||
</span><span><a class="LN" name="58"> 58 </a><span class="CT"> * Referenced by: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1329')" name="code2model"><font color="#117755"><i><S14>/r_commDCDeacv</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="59"> 59 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="60"> 60 </a> 70,
|
|
||||||
</span><span><a class="LN" name="61"> 61 </a>
|
|
||||||
</span><span><a class="LN" name="62"> 62 </a> <span class="CT">/* Variable: r_phaAdvDC_XA</span>
|
|
||||||
</span><span><a class="LN" name="63"> 63 </a><span class="CT"> * Referenced by: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:522')" name="code2model"><font color="#117755"><i><S8>/r_phaAdvDC_XA</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="64"> 64 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="65"> 65 </a> <b>{</b> 0, 100, 200, 300, 400, 500, 600, 700, 800, 900, 1000 <b>}</b>,
|
|
||||||
</span><span><a class="LN" name="66"> 66 </a>
|
|
||||||
</span><span><a class="LN" name="67"> 67 </a> <span class="CT">/* Variable: a_phaAdv_M1</span>
|
|
||||||
</span><span><a class="LN" name="68"> 68 </a><span class="CT"> * Referenced by: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:521')" name="code2model"><font color="#117755"><i><S8>/a_phaAdv_M2</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="69"> 69 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="70"> 70 </a> <b>{</b> 0, 0, 0, 0, 0, 2, 3, 5, 9, 16, 25 <b>}</b>,
|
|
||||||
</span><span><a class="LN" name="71"> 71 </a>
|
|
||||||
</span><span><a class="LN" name="72"> 72 </a> <span class="CT">/* Variable: dz_counterHi</span>
|
|
||||||
</span><span><a class="LN" name="73"> 73 </a><span class="CT"> * Referenced by: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1518')" name="code2model"><font color="#117755"><i><S14>/dz_counter</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="74"> 74 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="75"> 75 </a> 50,
|
|
||||||
</span><span><a class="LN" name="76"> 76 </a>
|
|
||||||
</span><span><a class="LN" name="77"> 77 </a> <span class="CT">/* Variable: dz_counterLo</span>
|
|
||||||
</span><span><a class="LN" name="78"> 78 </a><span class="CT"> * Referenced by: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1518')" name="code2model"><font color="#117755"><i><S14>/dz_counter</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="79"> 79 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="80"> 80 </a> 20,
|
|
||||||
</span><span><a class="LN" name="81"> 81 </a>
|
|
||||||
</span><span><a class="LN" name="82"> 82 </a> <span class="CT">/* Variable: z_maxCntRst</span>
|
|
||||||
</span><span><a class="LN" name="83"> 83 </a><span class="CT"> * Referenced by:</span>
|
|
||||||
</span><span><a class="LN" name="84"> 84 </a><span class="CT"> * '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1358')" name="code2model"><font color="#117755"><i><S15>/z_counter</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="85"> 85 </a><span class="CT"> * '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:169')" name="code2model"><font color="#117755"><i><S15>/z_counter2</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="86"> 86 </a><span class="CT"> * '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1625')" name="code2model"><font color="#117755"><i><S16>/z_maxCntRst</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="87"> 87 </a><span class="CT"> * '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1651:1616')" name="code2model"><font color="#117755"><i><S17>/Constant1</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="88"> 88 </a><span class="CT"> * '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:1651:1621')" name="code2model"><font color="#117755"><i><S17>/UnitDelay1</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="89"> 89 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="90"> 90 </a> 1500,
|
|
||||||
</span><span><a class="LN" name="91"> 91 </a>
|
|
||||||
</span><span><a class="LN" name="92"> 92 </a> <span class="CT">/* Variable: z_ctrlTypSel</span>
|
|
||||||
</span><span><a class="LN" name="93"> 93 </a><span class="CT"> * Referenced by: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:208')" name="code2model"><font color="#117755"><i><S7>/z_ctrlTypSel1</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="94"> 94 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="95"> 95 </a> 3U,
|
|
||||||
</span><span><a class="LN" name="96"> 96 </a>
|
|
||||||
</span><span><a class="LN" name="97"> 97 </a> <span class="CT">/* Variable: b_phaAdvEna</span>
|
|
||||||
</span><span><a class="LN" name="98"> 98 </a><span class="CT"> * Referenced by: '<a href="matlab:coder.internal.code2model('BLDCmotorControl_R2017b:2687:512')" name="code2model"><font color="#117755"><i><S8>/a_elecPeriod1</i></font></a>'</span>
|
|
||||||
</span><span><a class="LN" name="99"> 99 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="100"> 100 </a> 1
|
|
||||||
</span><span><a class="LN" name="101"> 101 </a><b>}</b>; <span class="CT">/* Modifiable parameters */</span>
|
|
||||||
</span><span><a class="LN" name="102"> 102 </a>
|
|
||||||
</span><span><a class="LN" name="103"> 103 </a><span class="DT">static</span> <a href="BLDC_controller_h.html#type_DW" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_DW');" target="_self"><font color="#1122aa">DW</font></a> <a name="var_rtDW">rtDW</a>; <span class="CT">/* Observable states */</span>
|
|
||||||
</span><span><a class="LN" name="104"> 104 </a><span class="DT">static</span> <a href="BLDC_controller_h.html#type_ExtU" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_ExtU');" target="_self"><font color="#1122aa">ExtU</font></a> <a name="var_rtU">rtU</a>; <span class="CT">/* External inputs */</span>
|
|
||||||
</span><span><a class="LN" name="105"> 105 </a><span class="DT">static</span> <a href="BLDC_controller_h.html#type_ExtY" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_ExtY');" target="_self"><font color="#1122aa">ExtY</font></a> <a name="var_rtY">rtY</a>; <span class="CT">/* External outputs */</span>
|
|
||||||
</span><span><a class="LN" name="106"> 106 </a>
|
|
||||||
</span><span><a class="LN" name="107"> 107 </a><span class="CT">/*</span>
|
|
||||||
</span><span><a class="LN" name="108"> 108 </a><span class="CT"> * Associating rt_OneStep with a real-time clock or interrupt service routine</span>
|
|
||||||
</span><span><a class="LN" name="109"> 109 </a><span class="CT"> * is what makes the generated code "real-time". The function rt_OneStep is</span>
|
|
||||||
</span><span><a class="LN" name="110"> 110 </a><span class="CT"> * always associated with the base rate of the model. Subrates are managed</span>
|
|
||||||
</span><span><a class="LN" name="111"> 111 </a><span class="CT"> * by the base rate from inside the generated code. Enabling/disabling</span>
|
|
||||||
</span><span><a class="LN" name="112"> 112 </a><span class="CT"> * interrupts and floating point context switches are target specific. This</span>
|
|
||||||
</span><span><a class="LN" name="113"> 113 </a><span class="CT"> * example code indicates where these should take place relative to executing</span>
|
|
||||||
</span><span><a class="LN" name="114"> 114 </a><span class="CT"> * the generated code step function. Overrun behavior should be tailored to</span>
|
|
||||||
</span><span><a class="LN" name="115"> 115 </a><span class="CT"> * your application needs. This example simply sets an error status in the</span>
|
|
||||||
</span><span><a class="LN" name="116"> 116 </a><span class="CT"> * real-time model and returns from rt_OneStep.</span>
|
|
||||||
</span><span><a class="LN" name="117"> 117 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="118"> 118 </a><span class="DT">void</span> <a href="#fcn_rt_OneStep" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'fcn_rt_OneStep');" target="_self"><font color="#1122aa">rt_OneStep</font></a>(<a href="BLDC_controller_h.html#type_RT_MODEL" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_RT_MODEL');" target="_self"><font color="#1122aa">RT_MODEL</font></a> *<span class="DT">const</span> rtM);
|
|
||||||
</span><span><a class="LN" name="119"> 119 </a><span class="DT">void</span> <a name="fcn_rt_OneStep">rt_OneStep</a>(<a href="BLDC_controller_h.html#type_RT_MODEL" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_RT_MODEL');" target="_self"><font color="#1122aa">RT_MODEL</font></a> *<span class="DT">const</span> rtM)
|
|
||||||
</span><span><a class="LN" name="120"> 120 </a><b>{</b>
|
|
||||||
</span><span><a class="LN" name="121"> 121 </a> <span class="DT">static</span> <a href="rtwtypes_h.html#type_boolean_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_boolean_T');" target="_self"><font color="#1122aa">boolean_T</font></a> OverrunFlag = false;
|
|
||||||
</span><span><a class="LN" name="122"> 122 </a>
|
|
||||||
</span><span><a class="LN" name="123"> 123 </a> <span class="CT">/* Disable interrupts here */</span>
|
|
||||||
</span><span><a class="LN" name="124"> 124 </a>
|
|
||||||
</span><span><a class="LN" name="125"> 125 </a> <span class="CT">/* Check for overrun */</span>
|
|
||||||
</span><span><a class="LN" name="126"> 126 </a> <span class="KW">if</span> (OverrunFlag) <b>{</b>
|
|
||||||
</span><span><a class="LN" name="127"> 127 </a> <span class="KW">return</span>;
|
|
||||||
</span><span><a class="LN" name="128"> 128 </a> <b>}</b>
|
|
||||||
</span><span><a class="LN" name="129"> 129 </a>
|
|
||||||
</span><span><a class="LN" name="130"> 130 </a> OverrunFlag = true;
|
|
||||||
</span><span><a class="LN" name="131"> 131 </a>
|
|
||||||
</span><span><a class="LN" name="132"> 132 </a> <span class="CT">/* Save FPU context here (if necessary) */</span>
|
|
||||||
</span><span><a class="LN" name="133"> 133 </a> <span class="CT">/* Re-enable timer or interrupt here */</span>
|
|
||||||
</span><span><a class="LN" name="134"> 134 </a> <span class="CT">/* Set model inputs here */</span>
|
|
||||||
</span><span><a class="LN" name="135"> 135 </a>
|
|
||||||
</span><span><a class="LN" name="136"> 136 </a> <span class="CT">/* Step the model */</span>
|
|
||||||
</span><span><a class="LN" name="137"> 137 </a> <a href="BLDC_controller_c.html#fcn_BLDC_controller_step" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'fcn_BLDC_controller_step');" target="_self"><font color="#1122aa">BLDC_controller_step</font></a>(rtM);
|
|
||||||
</span><span><a class="LN" name="138"> 138 </a>
|
|
||||||
</span><span><a class="LN" name="139"> 139 </a> <span class="CT">/* Get model outputs here */</span>
|
|
||||||
</span><span><a class="LN" name="140"> 140 </a>
|
|
||||||
</span><span><a class="LN" name="141"> 141 </a> <span class="CT">/* Indicate task complete */</span>
|
|
||||||
</span><span><a class="LN" name="142"> 142 </a> OverrunFlag = false;
|
|
||||||
</span><span><a class="LN" name="143"> 143 </a>
|
|
||||||
</span><span><a class="LN" name="144"> 144 </a> <span class="CT">/* Disable interrupts here */</span>
|
|
||||||
</span><span><a class="LN" name="145"> 145 </a> <span class="CT">/* Restore FPU context here (if necessary) */</span>
|
|
||||||
</span><span><a class="LN" name="146"> 146 </a> <span class="CT">/* Enable interrupts here */</span>
|
|
||||||
</span><span><a class="LN" name="147"> 147 </a><b>}</b>
|
|
||||||
</span><span><a class="LN" name="148"> 148 </a>
|
|
||||||
</span><span><a class="LN" name="149"> 149 </a><span class="CT">/*</span>
|
|
||||||
</span><span><a class="LN" name="150"> 150 </a><span class="CT"> * The example "main" function illustrates what is required by your</span>
|
|
||||||
</span><span><a class="LN" name="151"> 151 </a><span class="CT"> * application code to initialize, execute, and terminate the generated code.</span>
|
|
||||||
</span><span><a class="LN" name="152"> 152 </a><span class="CT"> * Attaching rt_OneStep to a real-time clock is target specific. This example</span>
|
|
||||||
</span><span><a class="LN" name="153"> 153 </a><span class="CT"> * illustrates how you do this relative to initializing the model.</span>
|
|
||||||
</span><span><a class="LN" name="154"> 154 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="155"> 155 </a><a href="rtwtypes_h.html#type_int_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_int_T');" target="_self"><font color="#1122aa">int_T</font></a> <a name="fcn_main">main</a>(<a href="rtwtypes_h.html#type_int_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_int_T');" target="_self"><font color="#1122aa">int_T</font></a> argc, <span class="DT">const</span> <span class="DT">char</span> *argv[])
|
|
||||||
</span><span><a class="LN" name="156"> 156 </a><b>{</b>
|
|
||||||
</span><span><a class="LN" name="157"> 157 </a> <a href="BLDC_controller_h.html#type_RT_MODEL" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_RT_MODEL');" target="_self"><font color="#1122aa">RT_MODEL</font></a> *<span class="DT">const</span> rtM = <a href="#var_rtMPtr" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'var_rtMPtr');" target="_self"><font color="#1122aa">rtMPtr</font></a>;
|
|
||||||
</span><span><a class="LN" name="158"> 158 </a>
|
|
||||||
</span><span><a class="LN" name="159"> 159 </a> <span class="CT">/* Unused arguments */</span>
|
|
||||||
</span><span><a class="LN" name="160"> 160 </a> (<span class="DT">void</span>)(argc);
|
|
||||||
</span><span><a class="LN" name="161"> 161 </a> (<span class="DT">void</span>)(argv);
|
|
||||||
</span><span><a class="LN" name="162"> 162 </a>
|
|
||||||
</span><span><a class="LN" name="163"> 163 </a> <span class="CT">/* Pack model data into RTM */</span>
|
|
||||||
</span><span><a class="LN" name="164"> 164 </a> rtM->defaultParam = &<a href="#var_rtP" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'var_rtP');" target="_self"><font color="#1122aa">rtP</font></a>;
|
|
||||||
</span><span><a class="LN" name="165"> 165 </a> rtM->dwork = &<a href="#var_rtDW" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'var_rtDW');" target="_self"><font color="#1122aa">rtDW</font></a>;
|
|
||||||
</span><span><a class="LN" name="166"> 166 </a> rtM->inputs = &<a href="#var_rtU" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'var_rtU');" target="_self"><font color="#1122aa">rtU</font></a>;
|
|
||||||
</span><span><a class="LN" name="167"> 167 </a> rtM->outputs = &<a href="#var_rtY" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'var_rtY');" target="_self"><font color="#1122aa">rtY</font></a>;
|
|
||||||
</span><span><a class="LN" name="168"> 168 </a>
|
|
||||||
</span><span><a class="LN" name="169"> 169 </a> <span class="CT">/* Initialize model */</span>
|
|
||||||
</span><span><a class="LN" name="170"> 170 </a> <a href="BLDC_controller_c.html#fcn_BLDC_controller_initialize" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'fcn_BLDC_controller_initialize');" target="_self"><font color="#1122aa">BLDC_controller_initialize</font></a>(rtM);
|
|
||||||
</span><span><a class="LN" name="171"> 171 </a>
|
|
||||||
</span><span><a class="LN" name="172"> 172 </a> <span class="CT">/* Attach rt_OneStep to a timer or interrupt service routine with</span>
|
|
||||||
</span><span><a class="LN" name="173"> 173 </a><span class="CT"> * period 6.0E-5 seconds (the model's base sample time) here. The</span>
|
|
||||||
</span><span><a class="LN" name="174"> 174 </a><span class="CT"> * call syntax for rt_OneStep is</span>
|
|
||||||
</span><span><a class="LN" name="175"> 175 </a><span class="CT"> *</span>
|
|
||||||
</span><span><a class="LN" name="176"> 176 </a><span class="CT"> * rt_OneStep(rtM);</span>
|
|
||||||
</span><span><a class="LN" name="177"> 177 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="178"> 178 </a> printf(<font color="#1122ff">"Warning: The simulation will run forever. "</font>
|
|
||||||
</span><span><a class="LN" name="179"> 179 </a> <font color="#1122ff">"Generated ERT main won't simulate model step behavior. "</font>
|
|
||||||
</span><span><a class="LN" name="180"> 180 </a> <font color="#1122ff">"To change this behavior select the 'MAT-file logging' option.\n"</font>);
|
|
||||||
</span><span><a class="LN" name="181"> 181 </a> fflush((NULL));
|
|
||||||
</span><span><a class="LN" name="182"> 182 </a> <span class="KW">while</span> (1) <b>{</b>
|
|
||||||
</span><span><a class="LN" name="183"> 183 </a> <span class="CT">/* Perform other application tasks here */</span>
|
|
||||||
</span><span><a class="LN" name="184"> 184 </a> <b>}</b>
|
|
||||||
</span><span><a class="LN" name="185"> 185 </a>
|
|
||||||
</span><span><a class="LN" name="186"> 186 </a> <span class="CT">/* The option 'Remove error status field in real-time model data structure'</span>
|
|
||||||
</span><span><a class="LN" name="187"> 187 </a><span class="CT"> * is selected, therefore the following code does not need to execute.</span>
|
|
||||||
</span><span><a class="LN" name="188"> 188 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="189"> 189 </a><font color="#992211">#</font><span class="PP">if</span> 0
|
|
||||||
</span><span><a class="LN" name="190"> 190 </a>
|
|
||||||
</span><span><a class="LN" name="191"> 191 </a> <span class="CT">/* Disable rt_OneStep() here */</span>
|
|
||||||
</span><span><a class="LN" name="192"> 192 </a><font color="#992211">#</font><span class="PP">endif</span>
|
|
||||||
</span><span><a class="LN" name="193"> 193 </a>
|
|
||||||
</span><span><a class="LN" name="194"> 194 </a> <span class="KW">return</span> 0;
|
|
||||||
</span><span><a class="LN" name="195"> 195 </a><b>}</b>
|
|
||||||
</span><span><a class="LN" name="196"> 196 </a>
|
|
||||||
</span><span><a class="LN" name="197"> 197 </a><span class="CT">/*</span>
|
|
||||||
</span><span><a class="LN" name="198"> 198 </a><span class="CT"> * File trailer for generated code.</span>
|
|
||||||
</span><span><a class="LN" name="199"> 199 </a><span class="CT"> *</span>
|
|
||||||
</span><span><a class="LN" name="200"> 200 </a><span class="CT"> * [EOF]</span>
|
|
||||||
</span><span><a class="LN" name="201"> 201 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="202"> 202 </a>
|
|
||||||
</span></pre>
|
|
||||||
</td></tr></table>
|
|
||||||
</p>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
Binary file not shown.
Before Width: | Height: | Size: 3.6 KiB |
Binary file not shown.
Before Width: | Height: | Size: 2.9 KiB |
@ -1,33 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<link rel="stylesheet" type="text/css" href="rtwreport.css" />
|
|
||||||
<link rel="stylesheet" type="text/css" href="css/coder_app.css" />
|
|
||||||
<style type="text/css">
|
|
||||||
div#popup_window {
|
|
||||||
position: relative;
|
|
||||||
background-color: ghostwhite;
|
|
||||||
border-radius: 0px;
|
|
||||||
-moz-box-shadow: none;
|
|
||||||
-webkit-box-shadow: none;
|
|
||||||
box-shadow: none;
|
|
||||||
}
|
|
||||||
div#popup_window a {
|
|
||||||
text-decoration: underline;
|
|
||||||
color: blue;
|
|
||||||
}
|
|
||||||
div#token_usage_nav {
|
|
||||||
border-bottom: none;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
</head>
|
|
||||||
<body class="inspect_body">
|
|
||||||
<table width="100%">
|
|
||||||
<col style="width: 95%;"><col style="width: 5%">
|
|
||||||
<tr><td><div id="popup_window"></div></td>
|
|
||||||
<td align="right"><div><a onclick="top.closeInspectWindow();" class="closeButton">x</a></div></td>
|
|
||||||
</tr>
|
|
||||||
</table></body></html>
|
|
||||||
|
|
||||||
<!-- LocalWords: ghostwhite
|
|
||||||
-->
|
|
@ -1,32 +0,0 @@
|
|||||||
function CodeMetrics() {
|
|
||||||
this.metricsArray = {};
|
|
||||||
this.metricsArray.var = new Array();
|
|
||||||
this.metricsArray.fcn = new Array();
|
|
||||||
this.metricsArray.fcn["BLDC_controller_initialize"] = {file: "D:\\git\\hoverboard-firmware-hack\\01_Matlab\\BLDC_controller_ert_rtw\\BLDC_controller.c",
|
|
||||||
stack: 16,
|
|
||||||
stackTotal: 16};
|
|
||||||
this.metricsArray.fcn["BLDC_controller_step"] = {file: "D:\\git\\hoverboard-firmware-hack\\01_Matlab\\BLDC_controller_ert_rtw\\BLDC_controller.c",
|
|
||||||
stack: 60,
|
|
||||||
stackTotal: 69};
|
|
||||||
this.metricsArray.fcn["div_nde_s32_floor"] = {file: "D:\\git\\hoverboard-firmware-hack\\01_Matlab\\BLDC_controller_ert_rtw\\BLDC_controller.c",
|
|
||||||
stack: 0,
|
|
||||||
stackTotal: 0};
|
|
||||||
this.metricsArray.fcn["intrp1d_s16s32s32u8u32n31l_s"] = {file: "D:\\git\\hoverboard-firmware-hack\\01_Matlab\\BLDC_controller_ert_rtw\\BLDC_controller.c",
|
|
||||||
stack: 4,
|
|
||||||
stackTotal: 4};
|
|
||||||
this.metricsArray.fcn["plook_u8s32u32n31_evenc_s"] = {file: "D:\\git\\hoverboard-firmware-hack\\01_Matlab\\BLDC_controller_ert_rtw\\BLDC_controller.c",
|
|
||||||
stack: 9,
|
|
||||||
stackTotal: 9};
|
|
||||||
this.getMetrics = function(token) {
|
|
||||||
var data;
|
|
||||||
data = this.metricsArray.var[token];
|
|
||||||
if (!data) {
|
|
||||||
data = this.metricsArray.fcn[token];
|
|
||||||
if (data) data.type = "fcn";
|
|
||||||
} else {
|
|
||||||
data.type = "var";
|
|
||||||
}
|
|
||||||
return data; };
|
|
||||||
this.codeMetricsSummary = '<a href="BLDC_controller_metrics.html">Global Memory: 0(bytes) Maximum Stack: 60(bytes)</a>';
|
|
||||||
}
|
|
||||||
CodeMetrics.instance = new CodeMetrics();
|
|
@ -1,14 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
</head>
|
|
||||||
<style>
|
|
||||||
* {
|
|
||||||
margin: 0;
|
|
||||||
padding: 0
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
<body onresize="top.drawNavSideBar();" onload="top.drawNavSideBar();top.load_metrics();">
|
|
||||||
<canvas id="canvas" title="navigate to highlighted lines"></canvas>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
@ -1,69 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<link rel="stylesheet" type="text/css" href="rtwreport.css" />
|
|
||||||
<link rel="stylesheet" type="text/css" href="css/coder_app.css" />
|
|
||||||
<script>
|
|
||||||
function NavOnloadFcn() {
|
|
||||||
var node = document.getElementById("rtwIdTraceBlock");
|
|
||||||
var td1 = document.getElementById("td1");
|
|
||||||
if (node && top.RTW_TraceArgs.instance) {
|
|
||||||
var sid = top.RTW_TraceArgs.instance.getBlock();
|
|
||||||
if (sid) {
|
|
||||||
if (top.RTW_TraceArgs.instance.getNumBlocks() === 1) {
|
|
||||||
var block = sid;
|
|
||||||
if (top.RTW_rtwnameSIDMap && top.RTW_rtwnameSIDMap.instance && top.RTW_rtwnameSIDMap.instance.getRtwname(sid)) {
|
|
||||||
block = top.RTW_rtwnameSIDMap.instance.getRtwname(sid).rtwname;
|
|
||||||
}
|
|
||||||
if (block) {
|
|
||||||
node.textContent = "'" + block + "'";
|
|
||||||
}
|
|
||||||
td1.className = "";
|
|
||||||
} else {
|
|
||||||
td1.innerHTML = "<b>Highlight code for selected blocks:</b>";
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
td1.className = "hidden";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (top.RTW_TraceInfo && top.RTW_TraceInfo.instance) {
|
|
||||||
top.RTW_TraceInfo.instance.updateNavState();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
function resize_text() {
|
|
||||||
var node = document.getElementById("rtwIdTraceBlock");
|
|
||||||
if (node) {
|
|
||||||
node.style.maxWidth = "" + (window.innerWidth - 450) + "px";
|
|
||||||
}
|
|
||||||
top.resize_NavToolbar_frame();
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
</head>
|
|
||||||
<body class="nav_toolbar" onload="NavOnloadFcn(); resize_text();" onresize="resize_text();">
|
|
||||||
<table class="nav_table" id="rtwIdTracePanel">
|
|
||||||
<col style="width: 90%;">
|
|
||||||
<col style="width: 150px;">
|
|
||||||
<col style="width: 150px;">
|
|
||||||
<tr>
|
|
||||||
<td title="Navigation control for highlighted code" id="td1">
|
|
||||||
<b>Highlight code for block:</b>
|
|
||||||
<div id="rtwIdTraceBlock" style="overflow: hidden;text-overflow:ellipsis;white-space: nowrap"></div>
|
|
||||||
</td>
|
|
||||||
<td style="white-space:nowrap">
|
|
||||||
<INPUT class="button" TYPE="button" VALUE="<<" style="width: 45px; height: 2em" ID="rtwIdButtonFirst" ONCLICK="if (top.rtwGoFirst) top.rtwGoFirst();" title="goto the first highlighted line" />
|
|
||||||
<INPUT class="button" TYPE="button" VALUE="<" style="width: 45px; height: 2em" ID="rtwIdButtonPrev" ONCLICK="if (top.rtwGoPrev) top.rtwGoPrev();" disabled="disabled" title="goto the previous highlighted line"/>
|
|
||||||
<span id="rtwIdTraceNumber"></span>
|
|
||||||
<INPUT class="button" TYPE="button" VALUE=">" style="width: 45px; height: 2em" ID="rtwIdButtonNext" ONCLICK="if (top.rtwGoNext) top.rtwGoNext();" disabled="disabled" title="goto the next highlighted line"/>
|
|
||||||
<INPUT class="button" TYPE="button" VALUE=">>" style="width: 45px; height: 2em" ID="rtwIdButtonLast" ONCLICK="if (top.rtwGoLast) top.rtwGoLast();" title="goto the last highlighted line" />
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<INPUT class="button" TYPE="button" VALUE="Remove Highlights" style="width: 150px; height: 2em" ID="rtwIdButtonRemove" ONCLICK="if (top.removeInCodeTraceHighlight()) top.removeInCodeTraceHighlight()" title="remove highlighted lines"/>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
<!-- LocalWords: Onload px ONCLICK
|
|
||||||
-->
|
|
@ -1,49 +0,0 @@
|
|||||||
// Copyright 2016 The MathWorks, Inc.
|
|
||||||
|
|
||||||
//Poll for metrics.js on 5 second intervals
|
|
||||||
function getCodeMetricsByPolling(ctThreshold, intervalPeriod){
|
|
||||||
if(ctThreshold === undefined){
|
|
||||||
ctThreshold = 1000;
|
|
||||||
}
|
|
||||||
if(intervalPeriod === undefined){
|
|
||||||
intervalPeriod = 5000;
|
|
||||||
}
|
|
||||||
var intervalId;
|
|
||||||
var ct=0;
|
|
||||||
//function to get code metrics
|
|
||||||
function getCodeMetrics(){
|
|
||||||
cm = CodeMetrics.instance;
|
|
||||||
var alink = document.getElementById("metricsLocation");
|
|
||||||
alink.innerHTML = cm.codeMetricsSummary;
|
|
||||||
}
|
|
||||||
if (typeof CodeMetrics !== "undefined"){
|
|
||||||
getCodeMetrics();
|
|
||||||
}
|
|
||||||
else{
|
|
||||||
intervalId = window.setInterval(function(){
|
|
||||||
//Try reinclude metrics to check if CodeMetrics are available
|
|
||||||
ct = ct + 1;
|
|
||||||
if (ct > ctThreshold){
|
|
||||||
// Clear if elapsed time is 1000x5 seconds
|
|
||||||
clearInterval(intervalId);
|
|
||||||
var alink = document.getElementById("metricsLocation");
|
|
||||||
alink.innerHTML = 'Error generating code metrics';
|
|
||||||
}
|
|
||||||
else{
|
|
||||||
var metricsScript = document.getElementById('metrics');
|
|
||||||
if(metricsScript !== null){
|
|
||||||
metricsScript.parentNode.removeChild(metricsScript);
|
|
||||||
}
|
|
||||||
var jsElm = document.createElement("script");
|
|
||||||
jsElm.type = "application/javascript";
|
|
||||||
jsElm.src = "metrics.js";
|
|
||||||
jsElm.id = "metrics";
|
|
||||||
document.getElementsByTagName('head')[0].appendChild(jsElm);
|
|
||||||
if (typeof CodeMetrics !== "undefined"){
|
|
||||||
clearInterval(intervalId);
|
|
||||||
getCodeMetrics();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}, intervalPeriod);
|
|
||||||
}
|
|
||||||
}
|
|
File diff suppressed because it is too large
Load Diff
@ -1,7 +0,0 @@
|
|||||||
<html><head><title>Block-to-Code Highlighting Message</title>
|
|
||||||
<link rel="stylesheet" type="text/css" href="rtwreport.css" />
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
|
||||||
</head><body onload="if (top.rtwDisplayMessage) top.rtwDisplayMessage();">
|
|
||||||
<h1>Block-to-Code Highlighting Message</h1>
|
|
||||||
<p id="rtwMsg_notTraceable" style="display: none"><img src="hilite_warning.png" vspace="3px" align="top" />Code for '%s' cannot be traced because traceability information is not found.</p><p id="rtwMsg_virtualBlock" style="display: none"><img src="hilite_warning.png" vspace="3px" align="top" />'%s' is a virtual block. Code is not generated for virtual blocks.</p><p id="rtwMsg_reducedBlock" style="display: none"><img src="hilite_warning.png" vspace="3px" align="top" />'%s' is reduced during model compilation. Code is not generated for reduced blocks.</p><p id="rtwMsg_reusableFunction" style="display: none"><img src="hilite_warning.png" vspace="3px" align="top" />Code for '%s' is from reusable function and cannot be traced.</p><p id="rtwMsg_blockOutsideSystem" style="display: none"><img src="hilite_warning.png" vspace="3px" align="top" />'%s' is outside of source subsystem and cannot be traced.</p><p id="rtwMsg_illegalCharacter" style="display: none"><img src="hilite_warning.png" vspace="3px" align="top" />'%s' contains illegal character (single quote) that disables model-to-code navigation. Remove single quote from block name and rebuild model.</p><p id="rtwMsg_maskedSubSystem" style="display: none"><img src="hilite_warning.png" vspace="3px" align="top" />'%s' is a masked subsystem and cannot be traced at the subsystem block level. Traceability information is available for individual blocks under the mask.</p><p id="rtwMsg_noTraceForSelectedBlocks" style="display: none"><img src="hilite_warning.png" vspace="3px" align="top" />Traceability information is not available for the selected blocks.</p><p id="rtwMsg_CodeGenerationReducedBlock" style="display: none"><img src="hilite_warning.png" vspace="3px" align="top" />Block '%s' is eliminated by code generation optimization. Code is not generated for eliminated blocks.</p><p id="rtwMsg_SimulationReducedBlock" style="display: none"><img src="hilite_warning.png" vspace="3px" align="top" />Block '%s' is eliminated by Simulink block reduction. Code is not generated for eliminated blocks.</p><p id="rtwMsg_optimizedSfObject" style="display: none"><img src="hilite_warning.png" vspace="3px" align="top" />Stateflow object '%s' is eliminated by optimization. Code is not generated for eliminated Stateflow objects.</p>
|
|
||||||
</body></html>
|
|
@ -1,257 +0,0 @@
|
|||||||
/* Copyright 2011-2016 The MathWorks, Inc. */
|
|
||||||
body,p,table {font-family: calibri, verdana, sans-serif;}
|
|
||||||
button,.buton {font-family: calibri, verdana, sans-serif;}
|
|
||||||
button,.button {font-size: small;}
|
|
||||||
.small_font {font-size: small;}
|
|
||||||
h1 { font-weight: normal; color: #000066; }
|
|
||||||
td { vertical-align: top }
|
|
||||||
th { background-color: #eeeeee; text-align: left; }
|
|
||||||
a:link { color: #0033cc; }
|
|
||||||
a:visited { color: #666666; }
|
|
||||||
input { font-family: sans-serif, verdana, calibri; }
|
|
||||||
table {
|
|
||||||
background-color: #ffffff;
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
table.toc, table.button, table.panel {
|
|
||||||
border-style: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* LineNumber */
|
|
||||||
.LN {
|
|
||||||
font-style: italic;
|
|
||||||
color: #888888;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Comment */
|
|
||||||
.CT {
|
|
||||||
font-style: italic;
|
|
||||||
color: #117755;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* PreProcessor */
|
|
||||||
PP {
|
|
||||||
/* font-weight: bold; */
|
|
||||||
color: #992211;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Keyword */
|
|
||||||
.KW {
|
|
||||||
/* font-weight: bold; */
|
|
||||||
color: #0000FF;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Datatype */
|
|
||||||
.DT {
|
|
||||||
/* font-weight: bold; */
|
|
||||||
color: #112266
|
|
||||||
}
|
|
||||||
|
|
||||||
.highlighted {
|
|
||||||
background-color: yellow;
|
|
||||||
}
|
|
||||||
|
|
||||||
.highlightedCurrent {
|
|
||||||
background-color: #819FF7;
|
|
||||||
}
|
|
||||||
|
|
||||||
input.search {
|
|
||||||
background-color: #ffffff;
|
|
||||||
}
|
|
||||||
|
|
||||||
input.failedSearch {
|
|
||||||
background-color: #F78181;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ensure that code2model links are comment green */
|
|
||||||
a.code2model:link {
|
|
||||||
color: #117755;
|
|
||||||
font-style: italic;
|
|
||||||
}
|
|
||||||
a.code2model:visited{
|
|
||||||
color: #117755;
|
|
||||||
font-style: italic;
|
|
||||||
}
|
|
||||||
|
|
||||||
.toc td, .button td, .panel td {
|
|
||||||
border-style: none;
|
|
||||||
padding: 4px;
|
|
||||||
}
|
|
||||||
|
|
||||||
h1 { font-weight: normal; color: #000066; }
|
|
||||||
td { vertical-align: top }
|
|
||||||
th { background-color: #eeeeee; text-align: left; }
|
|
||||||
a:link { color: #0033cc; }
|
|
||||||
a:visited { color: #666666; }
|
|
||||||
|
|
||||||
/******* table *******/
|
|
||||||
/* default table style */
|
|
||||||
table.AltRow {
|
|
||||||
border-collapse: collapse; border: none; border-spacing: 0pt;
|
|
||||||
border-top: solid #4F81BD 1.0pt; border-bottom: solid #4F81BD 1.0pt;
|
|
||||||
}
|
|
||||||
table.AltRow th, table.AltRow td { padding: 2pt 8pt 2pt 2pt }
|
|
||||||
/* default alternating row style */
|
|
||||||
table.AltRow tr.even td { background-color:#D3DFEE; border:none;}
|
|
||||||
table.AltRow tr.odd td { background-color:#FFFFFF; border:none;}
|
|
||||||
/* tr class="heading" */
|
|
||||||
table.AltRow tr.heading td, table.AltRow th {
|
|
||||||
background-color:#FFFFFF; font-weight:bold; border:none;
|
|
||||||
border-bottom: solid #4F81BD 1.0pt;
|
|
||||||
}
|
|
||||||
/* table class="FirstColumn" */
|
|
||||||
table.FirstColumn td:first-child { font-weight:bold }
|
|
||||||
/* table class="TotalRow" */
|
|
||||||
table.TotalRow tr:last-child { font-weight:bold }
|
|
||||||
table.TotalRow tr:last-child td { border-top: solid #4F81BD 1.0pt }
|
|
||||||
|
|
||||||
a.closeButton {
|
|
||||||
background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #f9f9f9), color-stop(1, #e9e9e9) );
|
|
||||||
background:-moz-linear-gradient( center top, #f9f9f9 5%, #e9e9e9 100% );
|
|
||||||
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#f9f9f9', endColorstr='#e9e9e9');
|
|
||||||
background-color:#f9f9f9;
|
|
||||||
-webkit-border-top-left-radius:20px;
|
|
||||||
-moz-border-radius-topleft:20px;
|
|
||||||
border-top-left-radius:20px;
|
|
||||||
-webkit-border-top-right-radius:20px;
|
|
||||||
-moz-border-radius-topright:20px;
|
|
||||||
border-top-right-radius:20px;
|
|
||||||
-webkit-border-bottom-right-radius:20px;
|
|
||||||
-moz-border-radius-bottomright:20px;
|
|
||||||
border-bottom-right-radius:20px;
|
|
||||||
-webkit-border-bottom-left-radius:20px;
|
|
||||||
-moz-border-radius-bottomleft:20px;
|
|
||||||
border-bottom-left-radius:20px;
|
|
||||||
text-indent:0;
|
|
||||||
border:2px solid #dcdcdc;
|
|
||||||
display:inline-block;
|
|
||||||
color:#454143;
|
|
||||||
font-family:Arial;
|
|
||||||
font-size:15px;
|
|
||||||
font-weight:bold;
|
|
||||||
font-style:normal;
|
|
||||||
height:20px;
|
|
||||||
line-height:20px;
|
|
||||||
width:20px;
|
|
||||||
text-decoration:none;
|
|
||||||
text-align:center;
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
a.closeButton:hover {
|
|
||||||
background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #e9e9e9), color-stop(1, #f9f9f9) );
|
|
||||||
background:-moz-linear-gradient( center top, #e9e9e9 5%, #f9f9f9 100% );
|
|
||||||
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#e9e9e9', endColorstr='#f9f9f9');
|
|
||||||
background-color:#e9e9e9;
|
|
||||||
}
|
|
||||||
a.closeButton:active {
|
|
||||||
position:relative;
|
|
||||||
top:1px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.button {
|
|
||||||
-moz-box-shadow:inset 0px 1px 0px 0px #ffffff;
|
|
||||||
-webkit-box-shadow:inset 0px 1px 0px 0px #ffffff;
|
|
||||||
box-shadow:inset 0px 1px 0px 0px #ffffff;
|
|
||||||
background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #ededed), color-stop(1, #dfdfdf) );
|
|
||||||
background:-moz-linear-gradient( center top, #ededed 5%, #dfdfdf 100% );
|
|
||||||
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ededed', endColorstr='#dfdfdf');
|
|
||||||
background-color:#ededed;
|
|
||||||
-webkit-border-top-left-radius:5px;
|
|
||||||
-moz-border-radius-topleft:5px;
|
|
||||||
border-top-left-radius:5px;
|
|
||||||
-webkit-border-top-right-radius:5px;
|
|
||||||
-moz-border-radius-topright:5px;
|
|
||||||
border-top-right-radius:5px;
|
|
||||||
-webkit-border-bottom-right-radius:5px;
|
|
||||||
-moz-border-radius-bottomright:5px;
|
|
||||||
border-bottom-right-radius:5px;
|
|
||||||
-webkit-border-bottom-left-radius:5px;
|
|
||||||
-moz-border-radius-bottomleft:5px;
|
|
||||||
border-bottom-left-radius:5px;
|
|
||||||
text-indent:0px;
|
|
||||||
border:1px solid #dcdcdc;
|
|
||||||
display:inline-block;
|
|
||||||
color:black;
|
|
||||||
font-family:Arial;
|
|
||||||
font-size:12px;
|
|
||||||
font-weight:bold;
|
|
||||||
font-style:normal;
|
|
||||||
height:12px;
|
|
||||||
line-height:12px;
|
|
||||||
width:45px;
|
|
||||||
text-decoration:none;
|
|
||||||
text-align:center;
|
|
||||||
text-shadow:1px 1px 0px #ffffff;
|
|
||||||
}
|
|
||||||
.button:hover {
|
|
||||||
background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #dfdfdf), color-stop(1, #ededed) );
|
|
||||||
background:-moz-linear-gradient( center top, #dfdfdf 5%, #ededed 100% );
|
|
||||||
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#dfdfdf', endColorstr='#ededed');
|
|
||||||
background-color:#dfdfdf;
|
|
||||||
}.button:active {
|
|
||||||
position:relative;
|
|
||||||
top:1px;
|
|
||||||
}.button:disabled {
|
|
||||||
color:#777777;
|
|
||||||
}
|
|
||||||
|
|
||||||
ul.nav_list {
|
|
||||||
list-style-type:none;
|
|
||||||
display: block;
|
|
||||||
margin: 0;
|
|
||||||
padding: 0;
|
|
||||||
}
|
|
||||||
ul.nav_list li {
|
|
||||||
list-style-type:none;
|
|
||||||
display: inline;
|
|
||||||
margin: 0 18px 0 0;
|
|
||||||
padding: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.nav_toolbar {
|
|
||||||
background-color: #aff;
|
|
||||||
margin-top: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.inspect_body {
|
|
||||||
margin: 0;
|
|
||||||
margin-bottom: 0;
|
|
||||||
display: inline;
|
|
||||||
vertical-align:middle;
|
|
||||||
}
|
|
||||||
|
|
||||||
table.nav_table {
|
|
||||||
background-color: #aff;
|
|
||||||
border: none;
|
|
||||||
width: 100%;
|
|
||||||
display: inline;
|
|
||||||
vertical-align:middle;
|
|
||||||
}
|
|
||||||
|
|
||||||
table#rtwIdTracePanel > tr > td {
|
|
||||||
white-space: nowrap;
|
|
||||||
table-layout:fixed;
|
|
||||||
vertical-align:middle;
|
|
||||||
}
|
|
||||||
|
|
||||||
table.nav_table > button {
|
|
||||||
height: 20px;
|
|
||||||
}
|
|
||||||
select#fileSelector {
|
|
||||||
padding: 5px;
|
|
||||||
font-size: 16px;
|
|
||||||
line-height: 1;
|
|
||||||
border-radius: 0;
|
|
||||||
height: 34px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.treeTable table{
|
|
||||||
table-layout: fixed;
|
|
||||||
}
|
|
||||||
.treeTable td:first-child > span{
|
|
||||||
display: inline-block;
|
|
||||||
text-overflow: ellipsis;
|
|
||||||
overflow: hidden;
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
@ -1,92 +0,0 @@
|
|||||||
// Copyright 2011-2013 The MathWorks, Inc.
|
|
||||||
|
|
||||||
|
|
||||||
function local_onload() {
|
|
||||||
if (typeof top.rtwreport_document_frame !== "undefined") {
|
|
||||||
var docObj = window.document;
|
|
||||||
var alink = docObj.getElementById("linkToText_plain");
|
|
||||||
if (alink) {
|
|
||||||
alink.href = "matlab:coder.internal.editUrlTextFile('" + alink.href + "')";
|
|
||||||
}
|
|
||||||
alink = docObj.getElementById("linkToCS");
|
|
||||||
if (alink) {
|
|
||||||
alink.href = "matlab:coder.internal.viewCodeConfigsetFromReport('" + alink.href + "');";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
var utils = (function() {
|
|
||||||
|
|
||||||
// Load via Microsoft.XMLDOM--for older versions of IE
|
|
||||||
function loadXML_MSXMLDOM(filename, callback, async) {
|
|
||||||
if (navigator.appName == "Microsoft Internet Explorer") {
|
|
||||||
// Internet Explorer 5/6
|
|
||||||
try {
|
|
||||||
var xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
|
|
||||||
xmlDoc.async = async;
|
|
||||||
xmlDoc.onreadystatechange = function() {
|
|
||||||
if (xmlDoc.readyState == 4) {
|
|
||||||
callback(xmlDoc);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
xmlDoc.load(filename);
|
|
||||||
return true;
|
|
||||||
} catch(e) {
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Load via XMLHttpRequest
|
|
||||||
function loadXML_XHR(filename, callback, async) {
|
|
||||||
if (window.XMLHttpRequest) {
|
|
||||||
try {
|
|
||||||
var xhr = new XMLHttpRequest();
|
|
||||||
xhr.onreadystatechange = function() {
|
|
||||||
if (this.readyState == 4) {
|
|
||||||
callback(this.responseXML);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
xhr.open("GET", filename, async);
|
|
||||||
xhr.send("");
|
|
||||||
return true;
|
|
||||||
} catch(e) {
|
|
||||||
if (navigator.appName === "Netscape" && e.code === 1012) {
|
|
||||||
// file not found: ignore
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
return {
|
|
||||||
trimText: function(s) {
|
|
||||||
// In IE9, String.trim not present
|
|
||||||
if (s && s.trim) {
|
|
||||||
return s.trim();
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
return s;
|
|
||||||
}
|
|
||||||
},
|
|
||||||
getText: function(elt) {
|
|
||||||
// In IE9, use 'text' property rather than 'textContent'
|
|
||||||
return elt.textContent ? elt.textContent : elt.text;
|
|
||||||
},
|
|
||||||
loadXML: function(filename, callback, options) {
|
|
||||||
var async = !!options && typeof(options["async"]) !== "undefined" ? options.async : true;
|
|
||||||
if (!loadXML_XHR(filename, callback, async)) {
|
|
||||||
if (!loadXML_MSXMLDOM(filename, callback, async)) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
})();
|
|
||||||
|
|
||||||
function code2model(sid) {
|
|
||||||
utils.loadXML("http://localhost:31415/matlab/feval/coder.internal.code2model?arguments=[\"" + sid + "\"]", function() {});
|
|
||||||
//window.location.href = "matlab:coder.internal.code2model('" + sid + "')";
|
|
||||||
}
|
|
@ -1,202 +0,0 @@
|
|||||||
// Copyright 2011-2012 The MathWorks, Inc.
|
|
||||||
|
|
||||||
function RTW_STRUCT(prop, value) {
|
|
||||||
this.prop = prop;
|
|
||||||
if (typeof(value) == 'undefined')
|
|
||||||
this.value = "";
|
|
||||||
else
|
|
||||||
this.value = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
// initialize the cache when code generation report is first loaded
|
|
||||||
function RTW_BOOK()
|
|
||||||
{
|
|
||||||
this.length = 0;
|
|
||||||
this.rtw_pages = new Array();
|
|
||||||
this.getPage = function(file) {
|
|
||||||
return this.rtw_pages[file];
|
|
||||||
}
|
|
||||||
this.addPage = function(file) {
|
|
||||||
var page;
|
|
||||||
if (this.hasPage(file)) {
|
|
||||||
page = this.rtw_pages[file];
|
|
||||||
} else {
|
|
||||||
page = new RTW_PAGE(file);
|
|
||||||
this.rtw_pages[file] = page;
|
|
||||||
}
|
|
||||||
return page;
|
|
||||||
}
|
|
||||||
this.hasPage = function(file) {
|
|
||||||
return typeof(this.rtw_pages[file]) != 'undefined';
|
|
||||||
}
|
|
||||||
this.removePage = function(file)
|
|
||||||
{
|
|
||||||
var tmp;
|
|
||||||
if (typeof(this.rtw_pages[file]) != 'undefined') {
|
|
||||||
tmp = this.rtw_pages[file];
|
|
||||||
delete this.rtw_pages[file];
|
|
||||||
this.length--;
|
|
||||||
}
|
|
||||||
return tmp;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!RTW_BOOK.instance) {
|
|
||||||
RTW_BOOK.instance = new RTW_BOOK();
|
|
||||||
}
|
|
||||||
|
|
||||||
function RTW_PAGE()
|
|
||||||
{
|
|
||||||
this.length = 0;
|
|
||||||
this.items = new Array();
|
|
||||||
this.pagename = '';
|
|
||||||
if (arguments.length > 0 && typeof(arguments[1])!='undefined') {
|
|
||||||
this.pagename = arguments[1];
|
|
||||||
}
|
|
||||||
|
|
||||||
this.getItem = function(id) {
|
|
||||||
return this.items[id];
|
|
||||||
}
|
|
||||||
this.getItems = function() {
|
|
||||||
return this.items;
|
|
||||||
}
|
|
||||||
this.addItem = function(id, value) {
|
|
||||||
var tmp;
|
|
||||||
if (typeof(value) != 'undefined') {
|
|
||||||
if (typeof(this.items[id]) != 'undefined') {
|
|
||||||
this.length++;
|
|
||||||
} else {
|
|
||||||
tmp = this.items[id];
|
|
||||||
}
|
|
||||||
this.items[id] = value;
|
|
||||||
this.length++;
|
|
||||||
}
|
|
||||||
return tmp;
|
|
||||||
}
|
|
||||||
this.hasItem = function(id) {
|
|
||||||
return typeof(this.items[id]) != 'undefined';
|
|
||||||
}
|
|
||||||
this.removeItem = function(id) {
|
|
||||||
var tmp;
|
|
||||||
if (typeof(this.items[id]) != 'undefined') {
|
|
||||||
tmp = this.items[id];
|
|
||||||
delete this.items[id];
|
|
||||||
this.length--;
|
|
||||||
}
|
|
||||||
return tmp;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function rtwTableShrink(doc, obj, id, isSymbol){
|
|
||||||
if (isSymbol) {
|
|
||||||
hide = "[-]";
|
|
||||||
hide_text = hide;
|
|
||||||
show = "[+]";
|
|
||||||
show_text = show;
|
|
||||||
} else {
|
|
||||||
hide = "[<u>hide</u>]";
|
|
||||||
hide_text = "[hide]";
|
|
||||||
show = "[<u>show</u>]";
|
|
||||||
show_text = "[show]";
|
|
||||||
}
|
|
||||||
hide = "<span class='shrink-button'>" + hide + "</span>";
|
|
||||||
show = "<span class='shrink-button'>" + show + "</span>";
|
|
||||||
if (doc.getElementsByName) {
|
|
||||||
var o = doc.getElementsByName(id);
|
|
||||||
for (var oid = 0; oid < o.length; ++oid) {
|
|
||||||
if (o[oid].style.display == "none") {
|
|
||||||
o[oid].style.display = "";
|
|
||||||
} else {
|
|
||||||
o[oid].style.display = "none";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (o.length >= 0 && top && top.addToPage)
|
|
||||||
top.addToPage(doc, o[0], 'display');
|
|
||||||
}
|
|
||||||
|
|
||||||
// IE supports innerText while other browsers support textContent
|
|
||||||
if (obj.textContent)
|
|
||||||
var objText = obj.textContent;
|
|
||||||
else
|
|
||||||
var objText = obj.innerText;
|
|
||||||
|
|
||||||
if (objText.toLowerCase() == show_text.toLowerCase())
|
|
||||||
obj.innerHTML = hide;
|
|
||||||
else
|
|
||||||
obj.innerHTML = show;
|
|
||||||
|
|
||||||
if (top && top.addToPage)
|
|
||||||
top.addToPage(doc, obj, 'innerHTML');
|
|
||||||
}
|
|
||||||
|
|
||||||
function rtwTableExpand(doc, controlObj, id)
|
|
||||||
{
|
|
||||||
if (doc.getElementById) {
|
|
||||||
var obj = doc.getElementById(id);
|
|
||||||
if (obj && obj.style.display == "none") {
|
|
||||||
rtwTableShrink(doc, controlObj, id, false);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function restoreState(docObj) {
|
|
||||||
var filename = docObj.location.href;
|
|
||||||
if (RTW_BOOK.instance && RTW_BOOK.instance.hasPage(filename)) {
|
|
||||||
var page = RTW_BOOK.instance.getPage(filename);
|
|
||||||
var items = page.getItems();
|
|
||||||
var elem;
|
|
||||||
if (docObj.getElementsByName) {
|
|
||||||
for (var i in items) {
|
|
||||||
o = docObj.getElementsByName(i);
|
|
||||||
for (var oid = 0; oid < o.length; ++oid) {
|
|
||||||
elem = o[oid];
|
|
||||||
if (items[i].prop == 'display') {
|
|
||||||
if (elem.style.display == 'none')
|
|
||||||
elem.style.display = '';
|
|
||||||
else
|
|
||||||
elem.style.display = 'none';
|
|
||||||
} else if (items[i].prop == 'innerHTML') {
|
|
||||||
elem.innerHTML = items[i].value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function addToPage(docObj, Obj, prop) {
|
|
||||||
var filename = docObj.location.href;
|
|
||||||
if (RTW_BOOK.instance) {
|
|
||||||
var page;
|
|
||||||
if (RTW_BOOK.instance.hasPage(filename))
|
|
||||||
page = RTW_BOOK.instance.getPage(filename);
|
|
||||||
else
|
|
||||||
page = RTW_BOOK.instance.addPage(filename);
|
|
||||||
if (page.hasItem(Obj.id))
|
|
||||||
page.removeItem(Obj.id);
|
|
||||||
else {
|
|
||||||
if (prop == "display")
|
|
||||||
my_struct = new RTW_STRUCT(prop, Obj.style.display);
|
|
||||||
else
|
|
||||||
my_struct = new RTW_STRUCT(prop, Obj.innerHTML);
|
|
||||||
page.addItem(Obj.id, my_struct);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function rtwSwitchView(doc, obj1, obj2) {
|
|
||||||
if (doc.getElementsByName) {
|
|
||||||
var o = doc.getElementsByName(obj1);
|
|
||||||
for (var oid = 0; oid < o.length; ++oid) {
|
|
||||||
o[oid].style.display = "none";
|
|
||||||
}
|
|
||||||
if (o.length >= 0 && top && top.addToPage)
|
|
||||||
top.addToPage(doc, o[0], 'display');
|
|
||||||
var o = doc.getElementsByName(obj2);
|
|
||||||
for (var oid = 0; oid < o.length; ++oid) {
|
|
||||||
o[oid].style.display = "";
|
|
||||||
}
|
|
||||||
if (o.length >= 0 && top && top.addToPage)
|
|
||||||
top.addToPage(doc, o[0], 'display');
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,128 +0,0 @@
|
|||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
|
||||||
<title>RTW Report - rtwtypes.h</title>
|
|
||||||
<link rel="stylesheet" type="text/css" href="rtwreport.css"></link><script language="JavaScript" type="text/javascript" src="rtwreport_utils.js"></script>
|
|
||||||
<SCRIPT type="text/javascript" language="JavaScript" src="slwebview.js"></SCRIPT>
|
|
||||||
<SCRIPT type="text/javascript" language="JavaScript" src="id_mapping.js"></SCRIPT>
|
|
||||||
<SCRIPT type="text/javascript" src="rtwannotate.js"></SCRIPT>
|
|
||||||
</head>
|
|
||||||
<body bgcolor="#eeeeee" onload="try {if (top) { if (top.rtwFileOnLoad) top.rtwFileOnLoad(window.document); else local_onload();}} catch(err) {};if (typeof rtwannotate === 'function') {rtwannotate('rtwtypes_h_cov.xml');}">
|
|
||||||
<p>
|
|
||||||
<table border="0" cellspacing="0" cellpadding="6" width="100%%" height="100%%"><tr><td width="100%%" valign="top" bgcolor="#ffffff">
|
|
||||||
<h4>File: <a href="../rtwtypes.h" target="rtwreport_document_frame" id="linkToText_plain">rtwtypes.h</a></h4>
|
|
||||||
<pre id="RTWcode">
|
|
||||||
<span><a class="LN" name="1"> 1 </a><span class="CT">/*</span>
|
|
||||||
</span><span><a class="LN" name="2"> 2 </a><span class="CT"> * Academic License - for use in teaching, academic research, and meeting</span>
|
|
||||||
</span><span><a class="LN" name="3"> 3 </a><span class="CT"> * course requirements at degree granting institutions only. Not for</span>
|
|
||||||
</span><span><a class="LN" name="4"> 4 </a><span class="CT"> * government, commercial, or other organizational use.</span>
|
|
||||||
</span><span><a class="LN" name="5"> 5 </a><span class="CT"> *</span>
|
|
||||||
</span><span><a class="LN" name="6"> 6 </a><span class="CT"> * File: rtwtypes.h</span>
|
|
||||||
</span><span><a class="LN" name="7"> 7 </a><span class="CT"> *</span>
|
|
||||||
</span><span><a class="LN" name="8"> 8 </a><span class="CT"> * Code generated for Simulink model 'BLDC_controller'.</span>
|
|
||||||
</span><span><a class="LN" name="9"> 9 </a><span class="CT"> *</span>
|
|
||||||
</span><span><a class="LN" name="10"> 10 </a><span class="CT"> * Model version : 1.883</span>
|
|
||||||
</span><span><a class="LN" name="11"> 11 </a><span class="CT"> * Simulink Coder version : 8.13 (R2017b) 24-Jul-2017</span>
|
|
||||||
</span><span><a class="LN" name="12"> 12 </a><span class="CT"> * C/C++ source code generated on : Tue Jun 11 21:14:57 2019</span>
|
|
||||||
</span><span><a class="LN" name="13"> 13 </a><span class="CT"> *</span>
|
|
||||||
</span><span><a class="LN" name="14"> 14 </a><span class="CT"> * Target selection: ert.tlc</span>
|
|
||||||
</span><span><a class="LN" name="15"> 15 </a><span class="CT"> * Embedded hardware selection: ARM Compatible->ARM Cortex</span>
|
|
||||||
</span><span><a class="LN" name="16"> 16 </a><span class="CT"> * Emulation hardware selection:</span>
|
|
||||||
</span><span><a class="LN" name="17"> 17 </a><span class="CT"> * Differs from embedded hardware (MATLAB Host)</span>
|
|
||||||
</span><span><a class="LN" name="18"> 18 </a><span class="CT"> * Code generation objectives:</span>
|
|
||||||
</span><span><a class="LN" name="19"> 19 </a><span class="CT"> * 1. Execution efficiency</span>
|
|
||||||
</span><span><a class="LN" name="20"> 20 </a><span class="CT"> * 2. RAM efficiency</span>
|
|
||||||
</span><span><a class="LN" name="21"> 21 </a><span class="CT"> * Validation result: Not run</span>
|
|
||||||
</span><span><a class="LN" name="22"> 22 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="23"> 23 </a>
|
|
||||||
</span><span><a class="LN" name="24"> 24 </a><font color="#992211">#</font><span class="PP">ifndef</span> RTWTYPES_H
|
|
||||||
</span><span><a class="LN" name="25"> 25 </a><font color="#992211">#</font><span class="PP">define</span> RTWTYPES_H
|
|
||||||
</span><span><a class="LN" name="26"> 26 </a>
|
|
||||||
</span><span><a class="LN" name="27"> 27 </a><span class="CT">/* Logical type definitions */</span>
|
|
||||||
</span><span><a class="LN" name="28"> 28 </a><font color="#992211">#</font><span class="PP">if</span> (!<span class="PP">defined</span>(__cplusplus))
|
|
||||||
</span><span><a class="LN" name="29"> 29 </a><font color="#992211">#</font> <span class="PP">ifndef</span> false
|
|
||||||
</span><span><a class="LN" name="30"> 30 </a><font color="#992211">#</font> <span class="PP">define</span> false (0U)
|
|
||||||
</span><span><a class="LN" name="31"> 31 </a><font color="#992211">#</font> <span class="PP">endif</span>
|
|
||||||
</span><span><a class="LN" name="32"> 32 </a>
|
|
||||||
</span><span><a class="LN" name="33"> 33 </a><font color="#992211">#</font> <span class="PP">ifndef</span> true
|
|
||||||
</span><span><a class="LN" name="34"> 34 </a><font color="#992211">#</font> <span class="PP">define</span> true (1U)
|
|
||||||
</span><span><a class="LN" name="35"> 35 </a><font color="#992211">#</font> <span class="PP">endif</span>
|
|
||||||
</span><span><a class="LN" name="36"> 36 </a><font color="#992211">#</font><span class="PP">endif</span>
|
|
||||||
</span><span><a class="LN" name="37"> 37 </a>
|
|
||||||
</span><span><a class="LN" name="38"> 38 </a><span class="CT">/*=======================================================================*</span>
|
|
||||||
</span><span><a class="LN" name="39"> 39 </a><span class="CT"> * Target hardware information</span>
|
|
||||||
</span><span><a class="LN" name="40"> 40 </a><span class="CT"> * Device type: MATLAB Host</span>
|
|
||||||
</span><span><a class="LN" name="41"> 41 </a><span class="CT"> * Number of bits: char: 8 short: 16 int: 32</span>
|
|
||||||
</span><span><a class="LN" name="42"> 42 </a><span class="CT"> * long: 32 long long: 64</span>
|
|
||||||
</span><span><a class="LN" name="43"> 43 </a><span class="CT"> * native word size: 64</span>
|
|
||||||
</span><span><a class="LN" name="44"> 44 </a><span class="CT"> * Byte ordering: LittleEndian</span>
|
|
||||||
</span><span><a class="LN" name="45"> 45 </a><span class="CT"> * Signed integer division rounds to: Zero</span>
|
|
||||||
</span><span><a class="LN" name="46"> 46 </a><span class="CT"> * Shift right on a signed integer as arithmetic shift: on</span>
|
|
||||||
</span><span><a class="LN" name="47"> 47 </a><span class="CT"> *=======================================================================*/</span>
|
|
||||||
</span><span><a class="LN" name="48"> 48 </a>
|
|
||||||
</span><span><a class="LN" name="49"> 49 </a><span class="CT">/*=======================================================================*</span>
|
|
||||||
</span><span><a class="LN" name="50"> 50 </a><span class="CT"> * Fixed width word size data types: *</span>
|
|
||||||
</span><span><a class="LN" name="51"> 51 </a><span class="CT"> * int8_T, int16_T, int32_T - signed 8, 16, or 32 bit integers *</span>
|
|
||||||
</span><span><a class="LN" name="52"> 52 </a><span class="CT"> * uint8_T, uint16_T, uint32_T - unsigned 8, 16, or 32 bit integers *</span>
|
|
||||||
</span><span><a class="LN" name="53"> 53 </a><span class="CT"> * real32_T, real64_T - 32 and 64 bit floating point numbers *</span>
|
|
||||||
</span><span><a class="LN" name="54"> 54 </a><span class="CT"> *=======================================================================*/</span>
|
|
||||||
</span><span><a class="LN" name="55"> 55 </a><span class="KW">typedef</span> <span class="DT">signed</span> <span class="DT">char</span> <a name="type_int8_T">int8_T</a>;
|
|
||||||
</span><span><a class="LN" name="56"> 56 </a><span class="KW">typedef</span> <span class="DT">unsigned</span> <span class="DT">char</span> <a name="type_uint8_T">uint8_T</a>;
|
|
||||||
</span><span><a class="LN" name="57"> 57 </a><span class="KW">typedef</span> <span class="DT">short</span> <a name="type_int16_T">int16_T</a>;
|
|
||||||
</span><span><a class="LN" name="58"> 58 </a><span class="KW">typedef</span> <span class="DT">unsigned</span> <span class="DT">short</span> <a name="type_uint16_T">uint16_T</a>;
|
|
||||||
</span><span><a class="LN" name="59"> 59 </a><span class="KW">typedef</span> <span class="DT">int</span> <a name="type_int32_T">int32_T</a>;
|
|
||||||
</span><span><a class="LN" name="60"> 60 </a><span class="KW">typedef</span> <span class="DT">unsigned</span> <span class="DT">int</span> <a name="type_uint32_T">uint32_T</a>;
|
|
||||||
</span><span><a class="LN" name="61"> 61 </a><span class="KW">typedef</span> <span class="DT">long</span> <span class="DT">long</span> <a name="type_int64_T">int64_T</a>;
|
|
||||||
</span><span><a class="LN" name="62"> 62 </a><span class="KW">typedef</span> <span class="DT">unsigned</span> <span class="DT">long</span> <span class="DT">long</span> <a name="type_uint64_T">uint64_T</a>;
|
|
||||||
</span><span><a class="LN" name="63"> 63 </a><span class="KW">typedef</span> <span class="DT">float</span> <a name="type_real32_T">real32_T</a>;
|
|
||||||
</span><span><a class="LN" name="64"> 64 </a><span class="KW">typedef</span> <span class="DT">double</span> <a name="type_real64_T">real64_T</a>;
|
|
||||||
</span><span><a class="LN" name="65"> 65 </a>
|
|
||||||
</span><span><a class="LN" name="66"> 66 </a><span class="CT">/*===========================================================================*</span>
|
|
||||||
</span><span><a class="LN" name="67"> 67 </a><span class="CT"> * Generic type definitions: boolean_T, char_T, byte_T, int_T, uint_T, *</span>
|
|
||||||
</span><span><a class="LN" name="68"> 68 </a><span class="CT"> * real_T, time_T, ulong_T, ulonglong_T. *</span>
|
|
||||||
</span><span><a class="LN" name="69"> 69 </a><span class="CT"> *===========================================================================*/</span>
|
|
||||||
</span><span><a class="LN" name="70"> 70 </a><span class="KW">typedef</span> <span class="DT">double</span> <a name="type_real_T">real_T</a>;
|
|
||||||
</span><span><a class="LN" name="71"> 71 </a><span class="KW">typedef</span> <span class="DT">double</span> <a name="type_time_T">time_T</a>;
|
|
||||||
</span><span><a class="LN" name="72"> 72 </a><span class="KW">typedef</span> <span class="DT">unsigned</span> <span class="DT">char</span> <a name="type_boolean_T">boolean_T</a>;
|
|
||||||
</span><span><a class="LN" name="73"> 73 </a><span class="KW">typedef</span> <span class="DT">int</span> <a name="type_int_T">int_T</a>;
|
|
||||||
</span><span><a class="LN" name="74"> 74 </a><span class="KW">typedef</span> <span class="DT">unsigned</span> <span class="DT">int</span> <a name="type_uint_T">uint_T</a>;
|
|
||||||
</span><span><a class="LN" name="75"> 75 </a><span class="KW">typedef</span> <span class="DT">unsigned</span> <span class="DT">long</span> <a name="type_ulong_T">ulong_T</a>;
|
|
||||||
</span><span><a class="LN" name="76"> 76 </a><span class="KW">typedef</span> <span class="DT">unsigned</span> <span class="DT">long</span> <span class="DT">long</span> <a name="type_ulonglong_T">ulonglong_T</a>;
|
|
||||||
</span><span><a class="LN" name="77"> 77 </a><span class="KW">typedef</span> <span class="DT">char</span> <a name="type_char_T">char_T</a>;
|
|
||||||
</span><span><a class="LN" name="78"> 78 </a><span class="KW">typedef</span> <span class="DT">unsigned</span> <span class="DT">char</span> <a name="type_uchar_T">uchar_T</a>;
|
|
||||||
</span><span><a class="LN" name="79"> 79 </a><span class="KW">typedef</span> <a href="#type_char_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_char_T');" target="_self"><font color="#1122aa">char_T</font></a> <a name="type_byte_T">byte_T</a>;
|
|
||||||
</span><span><a class="LN" name="80"> 80 </a>
|
|
||||||
</span><span><a class="LN" name="81"> 81 </a><span class="CT">/*=======================================================================*</span>
|
|
||||||
</span><span><a class="LN" name="82"> 82 </a><span class="CT"> * Min and Max: *</span>
|
|
||||||
</span><span><a class="LN" name="83"> 83 </a><span class="CT"> * int8_T, int16_T, int32_T - signed 8, 16, or 32 bit integers *</span>
|
|
||||||
</span><span><a class="LN" name="84"> 84 </a><span class="CT"> * uint8_T, uint16_T, uint32_T - unsigned 8, 16, or 32 bit integers *</span>
|
|
||||||
</span><span><a class="LN" name="85"> 85 </a><span class="CT"> *=======================================================================*/</span>
|
|
||||||
</span><span><a class="LN" name="86"> 86 </a><font color="#992211">#</font><span class="PP">define</span> MAX_int8_T ((<a href="#type_int8_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_int8_T');" target="_self"><font color="#1122aa">int8_T</font></a>)(127))
|
|
||||||
</span><span><a class="LN" name="87"> 87 </a><font color="#992211">#</font><span class="PP">define</span> MIN_int8_T ((<a href="#type_int8_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_int8_T');" target="_self"><font color="#1122aa">int8_T</font></a>)(-128))
|
|
||||||
</span><span><a class="LN" name="88"> 88 </a><font color="#992211">#</font><span class="PP">define</span> MAX_uint8_T ((<a href="#type_uint8_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_uint8_T');" target="_self"><font color="#1122aa">uint8_T</font></a>)(255U))
|
|
||||||
</span><span><a class="LN" name="89"> 89 </a><font color="#992211">#</font><span class="PP">define</span> MAX_int16_T ((<a href="#type_int16_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_int16_T');" target="_self"><font color="#1122aa">int16_T</font></a>)(32767))
|
|
||||||
</span><span><a class="LN" name="90"> 90 </a><font color="#992211">#</font><span class="PP">define</span> MIN_int16_T ((<a href="#type_int16_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_int16_T');" target="_self"><font color="#1122aa">int16_T</font></a>)(-32768))
|
|
||||||
</span><span><a class="LN" name="91"> 91 </a><font color="#992211">#</font><span class="PP">define</span> MAX_uint16_T ((<a href="#type_uint16_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_uint16_T');" target="_self"><font color="#1122aa">uint16_T</font></a>)(65535U))
|
|
||||||
</span><span><a class="LN" name="92"> 92 </a><font color="#992211">#</font><span class="PP">define</span> MAX_int32_T ((<a href="#type_int32_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_int32_T');" target="_self"><font color="#1122aa">int32_T</font></a>)(2147483647))
|
|
||||||
</span><span><a class="LN" name="93"> 93 </a><font color="#992211">#</font><span class="PP">define</span> MIN_int32_T ((<a href="#type_int32_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_int32_T');" target="_self"><font color="#1122aa">int32_T</font></a>)(-2147483647-1))
|
|
||||||
</span><span><a class="LN" name="94"> 94 </a><font color="#992211">#</font><span class="PP">define</span> MAX_uint32_T ((<a href="#type_uint32_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_uint32_T');" target="_self"><font color="#1122aa">uint32_T</font></a>)(0xFFFFFFFFU))
|
|
||||||
</span><span><a class="LN" name="95"> 95 </a><font color="#992211">#</font><span class="PP">define</span> MAX_int64_T ((<a href="#type_int64_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_int64_T');" target="_self"><font color="#1122aa">int64_T</font></a>)(9223372036854775807LL))
|
|
||||||
</span><span><a class="LN" name="96"> 96 </a><font color="#992211">#</font><span class="PP">define</span> MIN_int64_T ((<a href="#type_int64_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_int64_T');" target="_self"><font color="#1122aa">int64_T</font></a>)(-9223372036854775807LL-1LL))
|
|
||||||
</span><span><a class="LN" name="97"> 97 </a><font color="#992211">#</font><span class="PP">define</span> MAX_uint64_T ((<a href="#type_uint64_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_uint64_T');" target="_self"><font color="#1122aa">uint64_T</font></a>)(0xFFFFFFFFFFFFFFFFULL))
|
|
||||||
</span><span><a class="LN" name="98"> 98 </a>
|
|
||||||
</span><span><a class="LN" name="99"> 99 </a><span class="CT">/* Block D-Work pointer type */</span>
|
|
||||||
</span><span><a class="LN" name="100"> 100 </a><span class="KW">typedef</span> <span class="DT">void</span> * <a name="type_pointer_T">pointer_T</a>;
|
|
||||||
</span><span><a class="LN" name="101"> 101 </a>
|
|
||||||
</span><span><a class="LN" name="102"> 102 </a><font color="#992211">#</font><span class="PP">endif</span> <span class="CT">/* RTWTYPES_H */</span>
|
|
||||||
</span><span><a class="LN" name="103"> 103 </a>
|
|
||||||
</span><span><a class="LN" name="104"> 104 </a><span class="CT">/*</span>
|
|
||||||
</span><span><a class="LN" name="105"> 105 </a><span class="CT"> * File trailer for generated code.</span>
|
|
||||||
</span><span><a class="LN" name="106"> 106 </a><span class="CT"> *</span>
|
|
||||||
</span><span><a class="LN" name="107"> 107 </a><span class="CT"> * [EOF]</span>
|
|
||||||
</span><span><a class="LN" name="108"> 108 </a><span class="CT"> */</span>
|
|
||||||
</span><span><a class="LN" name="109"> 109 </a>
|
|
||||||
</span></pre>
|
|
||||||
</td></tr></table>
|
|
||||||
</p>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
@ -1,559 +0,0 @@
|
|||||||
// Copyright 2007-2012 The MathWorks, Inc.
|
|
||||||
|
|
||||||
function createHighlightSpanStart(num)
|
|
||||||
{
|
|
||||||
return "<span class=\"highlighted\" name=\"highlight" + num + "\">";
|
|
||||||
}
|
|
||||||
|
|
||||||
var str2pos; // This is a map between a tag stripped string and the original string.
|
|
||||||
function getTagStrippedStringAndMap(aString)
|
|
||||||
{
|
|
||||||
var tagStrippedString = new String();
|
|
||||||
|
|
||||||
str2pos = new Array();
|
|
||||||
|
|
||||||
var inTag = false;
|
|
||||||
var inScript = false;
|
|
||||||
|
|
||||||
for (var strPos = 0; strPos < aString.length; strPos++) {
|
|
||||||
if (inTag && aString.charAt(strPos) == '>') {
|
|
||||||
inTag = false;
|
|
||||||
if (inScript && (strPos > 8) && (aString.slice(strPos, strPos - 8) == '/script>')) {
|
|
||||||
inScript = false;
|
|
||||||
}
|
|
||||||
continue;
|
|
||||||
} else if (!inTag && aString.charAt(strPos) == '<') {
|
|
||||||
inTag = true;
|
|
||||||
if (!inScript && aString.slice(strPos, strPos + 7) == '<script') {
|
|
||||||
inScript = true;
|
|
||||||
strPos += 7;
|
|
||||||
}
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (inTag == false && inScript == false) {
|
|
||||||
tagStrippedString += aString.charAt(strPos);
|
|
||||||
str2pos.push(strPos);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return tagStrippedString;
|
|
||||||
}
|
|
||||||
|
|
||||||
function escapeSpecialChars(string)
|
|
||||||
{
|
|
||||||
// let the browser handle the escaping rather than doing a String.replace
|
|
||||||
// call
|
|
||||||
var div = document.createElement("div");
|
|
||||||
var text = document.createTextNode(string);
|
|
||||||
div.appendChild(text);
|
|
||||||
var escapedString = div.innerHTML;
|
|
||||||
delete div;
|
|
||||||
return escapedString;
|
|
||||||
}
|
|
||||||
|
|
||||||
// insert highlight tags into the body. Split it up into multiple sections if necessary
|
|
||||||
// (i.e. if there is a tag in the middle).
|
|
||||||
function insertHighlighting(bodyText, previ, i, length, highlightStartTag, highlightEndTag)
|
|
||||||
{
|
|
||||||
var newText = "";
|
|
||||||
newText = bodyText.slice(previ, str2pos[i]);
|
|
||||||
|
|
||||||
// insert start
|
|
||||||
newText += highlightStartTag;
|
|
||||||
|
|
||||||
var str2posprev = str2pos[i];
|
|
||||||
// deal with intermediate tags
|
|
||||||
for(var cnt = i; cnt < i+length; cnt++)
|
|
||||||
{
|
|
||||||
if (str2pos[cnt] > str2posprev+1) // we have jumped some text, so there must be a tag
|
|
||||||
{
|
|
||||||
// insert end tag
|
|
||||||
newText += highlightEndTag;
|
|
||||||
|
|
||||||
// insert intermediate body text tags
|
|
||||||
newText += bodyText.slice(str2posprev+1, str2pos[cnt]);
|
|
||||||
|
|
||||||
// insert start tag
|
|
||||||
newText += highlightStartTag;
|
|
||||||
}
|
|
||||||
newText += bodyText.charAt(str2pos[cnt]);
|
|
||||||
str2posprev=str2pos[cnt];
|
|
||||||
}
|
|
||||||
|
|
||||||
// insert end
|
|
||||||
newText += highlightEndTag;
|
|
||||||
return newText;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
// check to see if the sequence at position 'i' in taglessString is actually in
|
|
||||||
// the middle of an escape sequence. We assume escape sequences follow the pattern
|
|
||||||
// &<sequenceText>;. We check for , <, > and &
|
|
||||||
function isInEscapedSequence(i, taglessString, searchTerm)
|
|
||||||
{
|
|
||||||
var escapeSeq = / |<|>|&/gi;
|
|
||||||
var maxEscapeSeqLength = 6;
|
|
||||||
var startPos = 0;
|
|
||||||
var endPos = 0;
|
|
||||||
|
|
||||||
// exit if the search term has an escape sequence inside it
|
|
||||||
if (escapeSeq.test(searchTerm)) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
// reset the escape sequence
|
|
||||||
escapeSeq = / |<|>|&/gi;
|
|
||||||
|
|
||||||
// go back in the string until we find an ampersand or we hit maxEscapeSeqLength characters
|
|
||||||
tempI = i;
|
|
||||||
var bFound = false;
|
|
||||||
while (tempI >= 0 && tempI > (i-maxEscapeSeqLength)) {
|
|
||||||
if (taglessString.charAt(tempI) == "&") {
|
|
||||||
startPos = tempI;
|
|
||||||
bFound = true;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
tempI = tempI-1;
|
|
||||||
|
|
||||||
// if we hit a ';' in any position other than the first while searching
|
|
||||||
// for an ampersand, then we cannot be inside an escape sequence
|
|
||||||
if (tempI >= 0 && taglessString.charAt(tempI) == ";") {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (!bFound) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
// reset the escape sequence
|
|
||||||
escapeSeq = / |<|>|&/gi;
|
|
||||||
|
|
||||||
var subString = taglessString.substring(startPos, startPos + maxEscapeSeqLength);
|
|
||||||
return escapeSeq.test(subString);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Adds highlighting to bodyText around searchTerm. Case sensitivity is optional.
|
|
||||||
// hitCount is used to a) count the number of search matches and b) Generate unique
|
|
||||||
// name strings for each highlighting SPAN element.
|
|
||||||
function addHighlight(bodyText, searchTerm, caseSensitive, hitCount)
|
|
||||||
{
|
|
||||||
var highlightStartTag = "";
|
|
||||||
var highlightEndTag = "</span>";
|
|
||||||
|
|
||||||
var newText = "";
|
|
||||||
var i = 0;
|
|
||||||
var previ = 0;
|
|
||||||
var bodyTextUC = bodyText.toUpperCase();
|
|
||||||
|
|
||||||
if (caseSensitive) {
|
|
||||||
var taglessString = getTagStrippedStringAndMap(bodyText);
|
|
||||||
} else {
|
|
||||||
var taglessString = getTagStrippedStringAndMap(bodyTextUC);
|
|
||||||
}
|
|
||||||
|
|
||||||
// escape the search term in case the user input '<' or '>' etc
|
|
||||||
searchTerm = escapeSpecialChars(searchTerm);
|
|
||||||
|
|
||||||
if (!caseSensitive) {
|
|
||||||
var searchTermUC = searchTerm.toUpperCase();
|
|
||||||
}
|
|
||||||
|
|
||||||
// search for subsequent matches
|
|
||||||
while (true) {
|
|
||||||
if (caseSensitive) {
|
|
||||||
i = taglessString.indexOf(searchTerm, i);
|
|
||||||
} else {
|
|
||||||
i = taglessString.indexOf(searchTermUC, i);
|
|
||||||
}
|
|
||||||
if (i < 0) break;
|
|
||||||
|
|
||||||
// we have a match!
|
|
||||||
|
|
||||||
// make sure that the match is not inside an escaped sequence of text
|
|
||||||
// such as
|
|
||||||
if (isInEscapedSequence(i, taglessString, searchTerm)) {
|
|
||||||
i=i+1;
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
// insert highlight tags that cross tag boundaries
|
|
||||||
highlightStartTag = createHighlightSpanStart(hitCount);
|
|
||||||
hitCount = hitCount+1;
|
|
||||||
newText += insertHighlighting(bodyText, previ, i, searchTerm.length, highlightStartTag, highlightEndTag);
|
|
||||||
previ = str2pos[i+searchTerm.length-1]+1;
|
|
||||||
|
|
||||||
i = i + searchTerm.length;
|
|
||||||
}
|
|
||||||
|
|
||||||
newText += bodyText.slice(previ, bodyText.length);
|
|
||||||
return [newText, hitCount];
|
|
||||||
}
|
|
||||||
|
|
||||||
function removeHighlight(bodyText)
|
|
||||||
{
|
|
||||||
// We use regular expressions here rather than a straight text search because
|
|
||||||
// some browsers actually insert double quotes and capitalize. Also, each highlight
|
|
||||||
// name is uniquely numbered in order of discovery
|
|
||||||
var highlightStartTag = /<span class=[\"]*highlighted(Current)*[\"]* name=[\"]*highlight[0-9]*[\"]*>/i;
|
|
||||||
var highlightEndTag = /<\/span>/i;
|
|
||||||
|
|
||||||
var newText = "";
|
|
||||||
|
|
||||||
var startPatternFirstIndex = -1;
|
|
||||||
var startPatternLastIndex = -1;
|
|
||||||
|
|
||||||
var endPatternFirstIndex = -1;
|
|
||||||
var endPatternLastIndex = -1;
|
|
||||||
|
|
||||||
while (highlightStartTag.test(bodyText) === true) {
|
|
||||||
startPatternFirstIndex = bodyText.search(highlightStartTag);
|
|
||||||
newText += bodyText.substring(0, startPatternFirstIndex);
|
|
||||||
startPatternLastIndex = bodyText.indexOf('>', startPatternFirstIndex+1);
|
|
||||||
|
|
||||||
bodyText = bodyText.substr(startPatternLastIndex+1);
|
|
||||||
endPatternFirstIndex = bodyText.search(highlightEndTag);
|
|
||||||
newText += bodyText.substring(0, endPatternFirstIndex);
|
|
||||||
endPatternLastIndex = endPatternFirstIndex+7;
|
|
||||||
|
|
||||||
bodyText = bodyText.substr(endPatternLastIndex);
|
|
||||||
}
|
|
||||||
if (startPatternFirstIndex < 0) {
|
|
||||||
return bodyText;
|
|
||||||
} else {
|
|
||||||
return newText+bodyText;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function removeHighlightInAllDocs()
|
|
||||||
{
|
|
||||||
if (top) {
|
|
||||||
for (var i = 0; i < top.frames.length; i++) {
|
|
||||||
if (top.frames[i].name === "rtwreport_contents_frame" || top.frames[i].name === "rtwreport_document_frame") {
|
|
||||||
var currentDoc = top.frames[i].document;
|
|
||||||
if (typeof currentDoc.body !== "undefined" && currentDoc.body !== null)
|
|
||||||
currentDoc.body.innerHTML=removeHighlight(currentDoc.body.innerHTML);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function findInDoc(searchStringFromSubmitBox, doc, caseSensitive, hitCount)
|
|
||||||
{
|
|
||||||
var searchBody = doc.body.innerHTML;
|
|
||||||
// if the document is empty, or the documents is invalid, return
|
|
||||||
if (!doc.body || typeof(searchBody) === "undefined") {
|
|
||||||
return [false, hitCount];
|
|
||||||
}
|
|
||||||
|
|
||||||
// inject highlighting code into html
|
|
||||||
var result = addHighlight(searchBody, searchStringFromSubmitBox, caseSensitive, hitCount);
|
|
||||||
doc.body.innerHTML = result[0];
|
|
||||||
|
|
||||||
return [true, result[1]];
|
|
||||||
}
|
|
||||||
|
|
||||||
var currentlyHighlightedHit;
|
|
||||||
|
|
||||||
function getSpansByName(name)
|
|
||||||
{
|
|
||||||
var allSpans = [];
|
|
||||||
for (i = 0; i < top.frames.length; i++) {
|
|
||||||
if (top.frames[i].name === "rtwreport_contents_frame" || top.frames[i].name === "rtwreport_document_frame") {
|
|
||||||
var currentDoc = top.frames[i].document;
|
|
||||||
var highlightedSpans = currentDoc.getElementsByName(name);
|
|
||||||
if (highlightedSpans && highlightedSpans.length && highlightedSpans.length > 0) {
|
|
||||||
for (j = 0; j < highlightedSpans.length; j++) {
|
|
||||||
allSpans = allSpans.concat(highlightedSpans[j]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return allSpans;
|
|
||||||
}
|
|
||||||
|
|
||||||
function isVisibleElement(elementID)
|
|
||||||
{
|
|
||||||
if (elementID)
|
|
||||||
return elementID.offsetWidth > 0 || elementID.offsetHeight > 0;
|
|
||||||
else
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
function areAllSpansVisible(spans)
|
|
||||||
{
|
|
||||||
isVisible = true;
|
|
||||||
for (i = 0; i < highlightedSpans.length; i++) {
|
|
||||||
isVisible = isVisible && isVisibleElement(highlightedSpans[i]);
|
|
||||||
}
|
|
||||||
return isVisible;
|
|
||||||
}
|
|
||||||
|
|
||||||
function getNextVisible()
|
|
||||||
{
|
|
||||||
var isVisible = false;
|
|
||||||
var foundVisible = false;
|
|
||||||
while (!isVisible) {
|
|
||||||
currentlyHighlightedHit = currentlyHighlightedHit + 1;
|
|
||||||
highlightedSpans = setCurrentSearchMatchIfVisible(currentlyHighlightedHit);
|
|
||||||
if (highlightedSpans && highlightedSpans.length > 0) {
|
|
||||||
isVisible = true;
|
|
||||||
} else if (currentlyHighlightedHit < totalHits) {
|
|
||||||
continue;
|
|
||||||
} else {
|
|
||||||
// we have reached the end
|
|
||||||
isVisible = false;
|
|
||||||
currentlyHighlightedHit = 0;
|
|
||||||
highlightedSpans = null;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return highlightedSpans;
|
|
||||||
}
|
|
||||||
|
|
||||||
function clearCurrentSearchMatch()
|
|
||||||
{
|
|
||||||
// clear prior highlighting
|
|
||||||
spanName = "highlight" + currentlyHighlightedHit;
|
|
||||||
highlightedSpans = getSpansByName(spanName);
|
|
||||||
if (highlightedSpans && highlightedSpans.length) {
|
|
||||||
for (i = 0; i < highlightedSpans.length; i++) {
|
|
||||||
if (highlightedSpans[i]) {
|
|
||||||
highlightedSpans[i].setAttribute("class", "highlighted");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function setCurrentSearchMatchIfVisible(hitNum){
|
|
||||||
currentlyHighlightedHit = hitNum;
|
|
||||||
var spanName = "highlight" + currentlyHighlightedHit;
|
|
||||||
var highlightedSpans = getSpansByName(spanName);
|
|
||||||
if (highlightedSpans && highlightedSpans.length) {
|
|
||||||
for (i = 0; i < highlightedSpans.length; i++) {
|
|
||||||
if (!isVisibleElement(highlightedSpans[i])) {
|
|
||||||
highlightedSpans = null;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return highlightedSpans;
|
|
||||||
}
|
|
||||||
|
|
||||||
// this takes in an option integer 'hitNum'. If not specified, it scrolls
|
|
||||||
// to the next hit
|
|
||||||
function scrollToNextHit(hitNum)
|
|
||||||
{
|
|
||||||
var i = 0;
|
|
||||||
var found = false;
|
|
||||||
var spanName = "";
|
|
||||||
var highlightedSpans;
|
|
||||||
var searchBox = findElement('searchTxtBox');
|
|
||||||
|
|
||||||
clearCurrentSearchMatch();
|
|
||||||
|
|
||||||
if (hitNum) {
|
|
||||||
// if a number is provided, use it
|
|
||||||
highlightedSpans = setCurrentSearchMatchIfVisible(hitNum);
|
|
||||||
} else {
|
|
||||||
// start working on next element to highlight
|
|
||||||
highlightedSpans = getNextVisible();
|
|
||||||
}
|
|
||||||
|
|
||||||
// we found the current
|
|
||||||
if (highlightedSpans && highlightedSpans.length > 0) {
|
|
||||||
highlightedSpans[0].scrollIntoView();
|
|
||||||
for (i = 0; i < highlightedSpans.length; i++) {
|
|
||||||
highlightedSpans[i].setAttribute("class", "highlightedCurrent");
|
|
||||||
}
|
|
||||||
searchBox.setAttribute("class", "search");
|
|
||||||
|
|
||||||
// if highlightedSpans is invalid, then we did not find any valid, visible subsequent matches
|
|
||||||
// wrap to beginning or indicate no matches
|
|
||||||
} else {
|
|
||||||
// Element not found. Scroll to first visible element
|
|
||||||
currentlyHighlightedHit = 0;
|
|
||||||
var highlightedSpans = getNextVisible(currentlyHighlightedHit);
|
|
||||||
if (highlightedSpans && highlightedSpans.length > 0) {
|
|
||||||
highlightedSpans[0].scrollIntoView();
|
|
||||||
for (i = 0; i < highlightedSpans.length; i++) {
|
|
||||||
highlightedSpans[i].setAttribute("class", "highlightedCurrent");
|
|
||||||
}
|
|
||||||
searchBox.setAttribute("class", "search");
|
|
||||||
} else {
|
|
||||||
// there aren't any matches
|
|
||||||
searchBox.setAttribute("class", "failedSearch");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// find search box
|
|
||||||
function findElement(element)
|
|
||||||
{
|
|
||||||
var i = 0;
|
|
||||||
for (i = 0; i < top.frames.length; i++) {
|
|
||||||
if (top.frames[i].name === "rtwreport_contents_frame" || top.frames[i].name === "rtwreport_document_frame") {
|
|
||||||
var elem = top.frames[i].document.getElementById(element);
|
|
||||||
if (elem) {
|
|
||||||
return elem;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Restore search term once form is submitted
|
|
||||||
function initSearchBox(strInitValue)
|
|
||||||
{
|
|
||||||
var txtBox = findElement('searchTxtBox');
|
|
||||||
if (txtBox) {
|
|
||||||
txtBox.value = strInitValue;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Sets focus back on to the text box
|
|
||||||
function setFocusOnTxtBox()
|
|
||||||
{
|
|
||||||
var txtBox = findElement('searchTxtBox');
|
|
||||||
if (txtBox) {
|
|
||||||
txtBox.focus();
|
|
||||||
txtBox.select();
|
|
||||||
}
|
|
||||||
return txtBox;
|
|
||||||
}
|
|
||||||
|
|
||||||
var previousSearchString;
|
|
||||||
var totalHits;
|
|
||||||
function findInAllDocs(searchStringFromSubmitBox, caseSensitive)
|
|
||||||
{
|
|
||||||
if (previousSearchString != searchStringFromSubmitBox) {
|
|
||||||
// If the search string has changed or a new page has been loaded, do a new search
|
|
||||||
var hitCount = 1;
|
|
||||||
var i = 0;
|
|
||||||
var success = false;
|
|
||||||
previousSearchString = searchStringFromSubmitBox;
|
|
||||||
|
|
||||||
// start by removing traceinfo highlighting
|
|
||||||
rtwRemoveHighlighting();
|
|
||||||
|
|
||||||
// remove all previous search highlighting
|
|
||||||
removeHighlightInAllDocs();
|
|
||||||
|
|
||||||
// 1. Iterate through all frames in window and search
|
|
||||||
for (i = 0; i < top.frames.length; i++) {
|
|
||||||
var currentDoc = top.frames[i].document;
|
|
||||||
|
|
||||||
// if we have no search term, restore
|
|
||||||
if (searchStringFromSubmitBox !== "") {
|
|
||||||
// search and highlight in all frames
|
|
||||||
var srchResult = findInDoc(searchStringFromSubmitBox, currentDoc, caseSensitive, hitCount);
|
|
||||||
hitCount = srchResult[1];
|
|
||||||
totalHits = srchResult[1];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// 2. Restore search term once form is submitted and text highlighted
|
|
||||||
if (searchStringFromSubmitBox != "") {
|
|
||||||
strInitValue = searchStringFromSubmitBox;
|
|
||||||
}
|
|
||||||
initSearchBox(strInitValue);
|
|
||||||
|
|
||||||
// 3. Scroll to the first hit encountered
|
|
||||||
scrollToNextHit(1);
|
|
||||||
|
|
||||||
// 4. Set focus back to text box and select text
|
|
||||||
var txtBox = setFocusOnTxtBox();
|
|
||||||
if (txtBox) {
|
|
||||||
txtBox.select();
|
|
||||||
}
|
|
||||||
|
|
||||||
} else {
|
|
||||||
// If the search string is the same, then scroll to the next
|
|
||||||
// hit if the hit is valid. Else wrap back.
|
|
||||||
scrollToNextHit();
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
// if the search box is empty, clear highlighting
|
|
||||||
function clearIfEmpty()
|
|
||||||
{
|
|
||||||
txtBox = findElement('searchTxtBox');
|
|
||||||
if (txtBox.value == "") {
|
|
||||||
txtBox.setAttribute("class", "search");
|
|
||||||
removeHighlightInAllDocs();
|
|
||||||
previousSearchString="";
|
|
||||||
setFocusOnTxtBox();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function keyPressSwitchyard(keyPressEvent)
|
|
||||||
{
|
|
||||||
var kc;
|
|
||||||
keyPressEvent = (keyPressEvent == null ? window.keyPressEvent : keyPressEvent);
|
|
||||||
|
|
||||||
// typically IE does not support this
|
|
||||||
if (!keyPressEvent || (typeof keyPressEvent == "undefined")) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (keyPressEvent.keyCode) {
|
|
||||||
kc=keyPressEvent.keyCode;
|
|
||||||
} else if (keyPressEvent.which) {
|
|
||||||
kc=keyPressEvent.which;
|
|
||||||
} else {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// we do not care about the browser find appearing. If it does appear, then
|
|
||||||
// we are running an external browser and that is okay.
|
|
||||||
|
|
||||||
// handle Ctrl-Key combinations
|
|
||||||
if (keyPressEvent.ctrlKey) {
|
|
||||||
switch (kc) {
|
|
||||||
case 70: // Ctrl-F
|
|
||||||
{
|
|
||||||
setFocusOnTxtBox();
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
default: break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function installDocumentKeyPressHandler()
|
|
||||||
{
|
|
||||||
var i = 0;
|
|
||||||
for (i = 0; i < top.frames.length; i++) {
|
|
||||||
var currentDoc = top.frames[i].document;
|
|
||||||
currentDoc.onkeydown = keyPressSwitchyard;
|
|
||||||
}
|
|
||||||
top.document.onkeydown = keyPressSwitchyard;
|
|
||||||
|
|
||||||
// This also clears search related highlighting
|
|
||||||
removeHighlightInAllDocs();
|
|
||||||
currentlyHighlightedHit = 0;
|
|
||||||
if (previousSearchString) initSearchBox(previousSearchString);
|
|
||||||
previousSearchString = "";
|
|
||||||
}
|
|
||||||
|
|
||||||
// This function is a onresize callback for the rtwreport_contents_frame
|
|
||||||
// It is used to dynamically resize the searchbox based on the size of the frame.
|
|
||||||
function setWidthDynamic(frameID, elementID, extraSpace, minSize)
|
|
||||||
{
|
|
||||||
var frame = document.getElementById(frameID);
|
|
||||||
|
|
||||||
// sanity check input args
|
|
||||||
if (frame && extraSpace > 0 && minSize > 0) {
|
|
||||||
var frameWidth = frame.scrollWidth;
|
|
||||||
var newSize = extraSpace + minSize + 40; // 40 is the extra whitespace
|
|
||||||
var element = findElement(elementID);
|
|
||||||
if (element)
|
|
||||||
{
|
|
||||||
if (frameWidth < newSize) {
|
|
||||||
element.style.width = minSize;
|
|
||||||
} else {
|
|
||||||
element.style.width = frameWidth - extraSpace - 40;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
Binary file not shown.
@ -1,6 +0,0 @@
|
|||||||
/*
|
|
||||||
Copyright 2015-2016 The MathWorks, Inc.
|
|
||||||
*/
|
|
||||||
function webviewToCodeInit(){document.getElementById("rtw_webview").contentWindow.require(["dojo/dom-style","dojo/topic","dojo/window","dijit/registry"],function(k,m,n,p){var c=p.byId("slwebview"),g=!0,h={traceableColor:"#00cfcf",untraceableColor:"#e8d152",getColor:function(d){return d?this.traceableColor:this.untraceableColor},getStyle:function(d,c){var a=this.getColor(c);return"fill:"+a+"; fill-opacity:0.5; stroke:"+a+";"}},f,l=function(d,e,a){c.open(d).then(function(){var b;if(b=c.getElementViewer())if(f&&
|
|
||||||
k.set(f,"background",""),b=b.getLineNode(e))k.set(b,"background",a),n.scrollIntoView(b),f=b})};m.subscribe("slwebview/select",function(d,e){var a,b;c.isElement(d)&&g&&(c.unhighlightAll(),a=d.backing.sid,b=e&&e.line?e.line:-1,0<=b&&(a=d.backing.obj_viewer.code_sid+":"+b.toString()),a=top.rtwChangeSysCallback(a),c.highlight(d,h.getStyle(d,a)),0<=b&&l(d,b,h.getColor(a)))});top.codeToWebView=function(d,e){var a=c.getElement(d),b,f;a||(f=d.lastIndexOf(":"),b=d.substring(f+1),a=c.getElement(e));if(a){g=
|
|
||||||
!1;try{c.open(a.diagram,{nohash:!0}).then(function(){try{c.unhighlightAll(),c.moveToView(a),c.highlight(a,h.getStyle(a,!0)),0<=b?(l(a,b,h.getColor(!0)),c.select(a)):c.select(a.diagram)}finally{g=!0}},function(){g=!0})}catch(k){g=!0}}}})};
|
|
@ -1 +0,0 @@
|
|||||||
BLDC_controller.c
|
|
@ -1,4 +0,0 @@
|
|||||||
Simulink Coder project for BLDC_controller using . MATLAB root = C:\Program Files\MATLAB\R2017b. SimStruct date: 27-jul-2017 18:43:00
|
|
||||||
This file is generated by Simulink Coder for use by the make utility
|
|
||||||
to determine when to rebuild objects when the name of the current Simulink Coder project changes.
|
|
||||||
The rtwinfomat located at: ..\slprj\ert\BLDC_controller\tmwinternal\binfo.mat
|
|
@ -1,108 +0,0 @@
|
|||||||
/*
|
|
||||||
* Academic License - for use in teaching, academic research, and meeting
|
|
||||||
* course requirements at degree granting institutions only. Not for
|
|
||||||
* government, commercial, or other organizational use.
|
|
||||||
*
|
|
||||||
* File: rtwtypes.h
|
|
||||||
*
|
|
||||||
* Code generated for Simulink model 'BLDC_controller'.
|
|
||||||
*
|
|
||||||
* Model version : 1.883
|
|
||||||
* Simulink Coder version : 8.13 (R2017b) 24-Jul-2017
|
|
||||||
* C/C++ source code generated on : Tue Jun 11 21:14:57 2019
|
|
||||||
*
|
|
||||||
* Target selection: ert.tlc
|
|
||||||
* Embedded hardware selection: ARM Compatible->ARM Cortex
|
|
||||||
* Emulation hardware selection:
|
|
||||||
* Differs from embedded hardware (MATLAB Host)
|
|
||||||
* Code generation objectives:
|
|
||||||
* 1. Execution efficiency
|
|
||||||
* 2. RAM efficiency
|
|
||||||
* Validation result: Not run
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef RTWTYPES_H
|
|
||||||
#define RTWTYPES_H
|
|
||||||
|
|
||||||
/* Logical type definitions */
|
|
||||||
#if (!defined(__cplusplus))
|
|
||||||
# ifndef false
|
|
||||||
# define false (0U)
|
|
||||||
# endif
|
|
||||||
|
|
||||||
# ifndef true
|
|
||||||
# define true (1U)
|
|
||||||
# endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*=======================================================================*
|
|
||||||
* Target hardware information
|
|
||||||
* Device type: MATLAB Host
|
|
||||||
* Number of bits: char: 8 short: 16 int: 32
|
|
||||||
* long: 32 long long: 64
|
|
||||||
* native word size: 64
|
|
||||||
* Byte ordering: LittleEndian
|
|
||||||
* Signed integer division rounds to: Zero
|
|
||||||
* Shift right on a signed integer as arithmetic shift: on
|
|
||||||
*=======================================================================*/
|
|
||||||
|
|
||||||
/*=======================================================================*
|
|
||||||
* Fixed width word size data types: *
|
|
||||||
* int8_T, int16_T, int32_T - signed 8, 16, or 32 bit integers *
|
|
||||||
* uint8_T, uint16_T, uint32_T - unsigned 8, 16, or 32 bit integers *
|
|
||||||
* real32_T, real64_T - 32 and 64 bit floating point numbers *
|
|
||||||
*=======================================================================*/
|
|
||||||
typedef signed char int8_T;
|
|
||||||
typedef unsigned char uint8_T;
|
|
||||||
typedef short int16_T;
|
|
||||||
typedef unsigned short uint16_T;
|
|
||||||
typedef int int32_T;
|
|
||||||
typedef unsigned int uint32_T;
|
|
||||||
typedef long long int64_T;
|
|
||||||
typedef unsigned long long uint64_T;
|
|
||||||
typedef float real32_T;
|
|
||||||
typedef double real64_T;
|
|
||||||
|
|
||||||
/*===========================================================================*
|
|
||||||
* Generic type definitions: boolean_T, char_T, byte_T, int_T, uint_T, *
|
|
||||||
* real_T, time_T, ulong_T, ulonglong_T. *
|
|
||||||
*===========================================================================*/
|
|
||||||
typedef double real_T;
|
|
||||||
typedef double time_T;
|
|
||||||
typedef unsigned char boolean_T;
|
|
||||||
typedef int int_T;
|
|
||||||
typedef unsigned int uint_T;
|
|
||||||
typedef unsigned long ulong_T;
|
|
||||||
typedef unsigned long long ulonglong_T;
|
|
||||||
typedef char char_T;
|
|
||||||
typedef unsigned char uchar_T;
|
|
||||||
typedef char_T byte_T;
|
|
||||||
|
|
||||||
/*=======================================================================*
|
|
||||||
* Min and Max: *
|
|
||||||
* int8_T, int16_T, int32_T - signed 8, 16, or 32 bit integers *
|
|
||||||
* uint8_T, uint16_T, uint32_T - unsigned 8, 16, or 32 bit integers *
|
|
||||||
*=======================================================================*/
|
|
||||||
#define MAX_int8_T ((int8_T)(127))
|
|
||||||
#define MIN_int8_T ((int8_T)(-128))
|
|
||||||
#define MAX_uint8_T ((uint8_T)(255U))
|
|
||||||
#define MAX_int16_T ((int16_T)(32767))
|
|
||||||
#define MIN_int16_T ((int16_T)(-32768))
|
|
||||||
#define MAX_uint16_T ((uint16_T)(65535U))
|
|
||||||
#define MAX_int32_T ((int32_T)(2147483647))
|
|
||||||
#define MIN_int32_T ((int32_T)(-2147483647-1))
|
|
||||||
#define MAX_uint32_T ((uint32_T)(0xFFFFFFFFU))
|
|
||||||
#define MAX_int64_T ((int64_T)(9223372036854775807LL))
|
|
||||||
#define MIN_int64_T ((int64_T)(-9223372036854775807LL-1LL))
|
|
||||||
#define MAX_uint64_T ((uint64_T)(0xFFFFFFFFFFFFFFFFULL))
|
|
||||||
|
|
||||||
/* Block D-Work pointer type */
|
|
||||||
typedef void * pointer_T;
|
|
||||||
|
|
||||||
#endif /* RTWTYPES_H */
|
|
||||||
|
|
||||||
/*
|
|
||||||
* File trailer for generated code.
|
|
||||||
*
|
|
||||||
* [EOF]
|
|
||||||
*/
|
|
Binary file not shown.
Reference in New Issue
Block a user