init
This commit is contained in:
8
OpenController/CMakeLists.txt
Normal file
8
OpenController/CMakeLists.txt
Normal file
@@ -0,0 +1,8 @@
|
||||
cmake_minimum_required(VERSION 3.22)
|
||||
# Register library to the system
|
||||
add_library(Controller INTERFACE)
|
||||
file(GLOB_RECURSE SOURCES "${CMAKE_CURRENT_LIST_DIR}/*.c")
|
||||
target_sources(Controller INTERFACE ${SOURCES})
|
||||
target_include_directories(Controller INTERFACE
|
||||
include
|
||||
)
|
||||
340
OpenController/Open0.c
Normal file
340
OpenController/Open0.c
Normal file
@@ -0,0 +1,340 @@
|
||||
/*
|
||||
* 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: Open0.c
|
||||
*
|
||||
* Code generated for Simulink model 'Open0'.
|
||||
*
|
||||
* Model version : 2.23
|
||||
* Simulink Coder version : 25.1 (R2025a) 21-Nov-2024
|
||||
* C/C++ source code generated on : Sat Jun 14 14:25:03 2025
|
||||
*
|
||||
* Target selection: ert.tlc
|
||||
* Embedded hardware selection: ARM Compatible->ARM Cortex-M
|
||||
* Code generation objectives:
|
||||
* 1. Execution efficiency
|
||||
* 2. RAM efficiency
|
||||
* Validation result: Not run
|
||||
*/
|
||||
|
||||
#include "include/Open0.h"
|
||||
#include <math.h>
|
||||
#include "include/rtwtypes.h"
|
||||
|
||||
/* External inputs (root inport signals with default storage) */
|
||||
ExtU rtU;
|
||||
|
||||
/* External outputs (root outports fed by signals with default storage) */
|
||||
ExtY rtY;
|
||||
|
||||
/* Real-time model */
|
||||
static RT_MODEL rtM_;
|
||||
RT_MODEL *const rtM = &rtM_;
|
||||
|
||||
/* Model step function */
|
||||
void Open0_step(void)
|
||||
{
|
||||
real_T rtb_Switch_idx_0;
|
||||
real_T rtb_convert_pu;
|
||||
real_T rtb_sum_beta;
|
||||
real32_T T_idx_0;
|
||||
real32_T T_idx_1;
|
||||
real32_T T_idx_3;
|
||||
real32_T T_idx_4;
|
||||
real32_T d_Temp;
|
||||
uint16_T rtb_Get_Integer;
|
||||
|
||||
/* Gain: '<S11>/convert_pu' incorporates:
|
||||
* Inport: '<Root>/theta'
|
||||
*/
|
||||
rtb_convert_pu = 0.15915494309189535 * rtU.theta;
|
||||
|
||||
/* If: '<S11>/If' incorporates:
|
||||
* Constant: '<S13>/Constant'
|
||||
* DataTypeConversion: '<S14>/Convert_back'
|
||||
* DataTypeConversion: '<S14>/Convert_uint16'
|
||||
* DataTypeConversion: '<S15>/Convert_back'
|
||||
* DataTypeConversion: '<S15>/Convert_uint16'
|
||||
* Gain: '<S9>/indexing'
|
||||
* RelationalOperator: '<S13>/Compare'
|
||||
* Sum: '<S14>/Sum'
|
||||
* Sum: '<S15>/Sum'
|
||||
*/
|
||||
if (rtb_convert_pu < 0.0) {
|
||||
/* Outputs for IfAction SubSystem: '<S11>/If Action Subsystem' incorporates:
|
||||
* ActionPort: '<S14>/Action Port'
|
||||
*/
|
||||
rtb_Switch_idx_0 = rtb_convert_pu - (real_T)(int16_T)floor(rtb_convert_pu);
|
||||
|
||||
/* End of Outputs for SubSystem: '<S11>/If Action Subsystem' */
|
||||
} else {
|
||||
/* Outputs for IfAction SubSystem: '<S11>/If Action Subsystem1' incorporates:
|
||||
* ActionPort: '<S15>/Action Port'
|
||||
*/
|
||||
rtb_Switch_idx_0 = rtb_convert_pu - (real_T)(int16_T)rtb_convert_pu;
|
||||
|
||||
/* End of Outputs for SubSystem: '<S11>/If Action Subsystem1' */
|
||||
}
|
||||
|
||||
rtb_convert_pu = 800.0 * rtb_Switch_idx_0;
|
||||
|
||||
/* End of If: '<S11>/If' */
|
||||
|
||||
/* DataTypeConversion: '<S9>/Get_Integer' */
|
||||
rtb_Get_Integer = (uint16_T)rtb_convert_pu;
|
||||
|
||||
/* Sum: '<S9>/Sum2' incorporates:
|
||||
* DataTypeConversion: '<S9>/Data Type Conversion1'
|
||||
* DataTypeConversion: '<S9>/Get_Integer'
|
||||
*/
|
||||
rtb_sum_beta = rtb_convert_pu - (real_T)(uint16_T)rtb_convert_pu;
|
||||
|
||||
/* Selector: '<S9>/Lookup' incorporates:
|
||||
* Constant: '<S9>/sine_table_values'
|
||||
* DataTypeConversion: '<S9>/Get_Integer'
|
||||
*/
|
||||
rtb_Switch_idx_0 = rtConstP.sine_table_values_Value[(uint16_T)rtb_convert_pu];
|
||||
|
||||
/* Sum: '<S10>/Sum4' incorporates:
|
||||
* Constant: '<S9>/offset'
|
||||
* Constant: '<S9>/sine_table_values'
|
||||
* DataTypeConversion: '<S9>/Get_Integer'
|
||||
* Product: '<S10>/Product'
|
||||
* Selector: '<S9>/Lookup'
|
||||
* Sum: '<S10>/Sum3'
|
||||
* Sum: '<S9>/Sum'
|
||||
*/
|
||||
rtb_convert_pu = (rtConstP.sine_table_values_Value[(int32_T)((uint16_T)
|
||||
rtb_convert_pu + 1U)] - rtb_Switch_idx_0) * rtb_sum_beta + rtb_Switch_idx_0;
|
||||
|
||||
/* Selector: '<S9>/Lookup' incorporates:
|
||||
* Constant: '<S9>/offset'
|
||||
* Constant: '<S9>/sine_table_values'
|
||||
* Sum: '<S10>/Sum5'
|
||||
* Sum: '<S9>/Sum'
|
||||
*/
|
||||
rtb_Switch_idx_0 = rtConstP.sine_table_values_Value[(int32_T)(rtb_Get_Integer
|
||||
+ 200U)];
|
||||
|
||||
/* Sum: '<S10>/Sum6' incorporates:
|
||||
* Constant: '<S9>/offset'
|
||||
* Constant: '<S9>/sine_table_values'
|
||||
* Product: '<S10>/Product1'
|
||||
* Selector: '<S9>/Lookup'
|
||||
* Sum: '<S10>/Sum5'
|
||||
* Sum: '<S9>/Sum'
|
||||
*/
|
||||
rtb_sum_beta = (rtConstP.sine_table_values_Value[(int32_T)(rtb_Get_Integer +
|
||||
201U)] - rtb_Switch_idx_0) * rtb_sum_beta + rtb_Switch_idx_0;
|
||||
|
||||
/* Outputs for Atomic SubSystem: '<S6>/Two inputs CRL' */
|
||||
/* Switch: '<S17>/Switch' incorporates:
|
||||
* Inport: '<Root>/Ud'
|
||||
* Inport: '<Root>/Uq'
|
||||
* Product: '<S8>/dcos'
|
||||
* Product: '<S8>/dsin'
|
||||
* Product: '<S8>/qcos'
|
||||
* Product: '<S8>/qsin'
|
||||
* Sum: '<S8>/sum_alpha'
|
||||
* Sum: '<S8>/sum_beta'
|
||||
*/
|
||||
rtb_Switch_idx_0 = rtU.Ud * rtb_sum_beta - rtU.Uq * rtb_convert_pu;
|
||||
rtb_convert_pu = rtU.Uq * rtb_sum_beta + rtU.Ud * rtb_convert_pu;
|
||||
|
||||
/* MATLAB Function: '<S3>/MATLAB Function2' incorporates:
|
||||
* AlgorithmDescriptorDelegate generated from: '<S8>/a16'
|
||||
*/
|
||||
switch (((((real32_T)rtb_convert_pu - (real32_T)rtb_Switch_idx_0 * 1.73205078F
|
||||
> 0.0F) << 2) + (((real32_T)rtb_Switch_idx_0 * 1.73205078F +
|
||||
(real32_T)rtb_convert_pu > 0.0F) << 1)) + ((real32_T)rtb_convert_pu
|
||||
<= 0.0F)) {
|
||||
case 1:
|
||||
T_idx_0 = 5.0F;
|
||||
break;
|
||||
|
||||
case 2:
|
||||
T_idx_0 = 1.0F;
|
||||
break;
|
||||
|
||||
case 3:
|
||||
T_idx_0 = 6.0F;
|
||||
break;
|
||||
|
||||
case 4:
|
||||
T_idx_0 = 3.0F;
|
||||
break;
|
||||
|
||||
case 5:
|
||||
T_idx_0 = 4.0F;
|
||||
break;
|
||||
|
||||
case 6:
|
||||
T_idx_0 = 2.0F;
|
||||
break;
|
||||
|
||||
default:
|
||||
T_idx_0 = -1.0F;
|
||||
break;
|
||||
}
|
||||
|
||||
/* End of MATLAB Function: '<S3>/MATLAB Function2' */
|
||||
/* End of Outputs for SubSystem: '<S6>/Two inputs CRL' */
|
||||
|
||||
/* MATLAB Function: '<S3>/MATLAB Function1' incorporates:
|
||||
* AlgorithmDescriptorDelegate generated from: '<S8>/a16'
|
||||
* Constant: '<S3>/Constant'
|
||||
* Constant: '<S3>/Constant1'
|
||||
*/
|
||||
switch ((int32_T)T_idx_0) {
|
||||
case 1:
|
||||
/* Outputs for Atomic SubSystem: '<S6>/Two inputs CRL' */
|
||||
T_idx_4 = (real32_T)(2.0 * rtb_convert_pu) * 1800.0F / 1.73205078F / 8.0F;
|
||||
T_idx_3 = (real32_T)(rtb_Switch_idx_0 - rtb_convert_pu / 1.7320508075688772)
|
||||
* 1800.0F / 8.0F;
|
||||
|
||||
/* End of Outputs for SubSystem: '<S6>/Two inputs CRL' */
|
||||
T_idx_1 = T_idx_4;
|
||||
d_Temp = T_idx_3 + T_idx_4;
|
||||
if (d_Temp > 1800.0F) {
|
||||
d_Temp = 1800.0F / d_Temp;
|
||||
T_idx_3 *= d_Temp;
|
||||
T_idx_1 = T_idx_4 * d_Temp;
|
||||
}
|
||||
|
||||
d_Temp = ((1800.0F - T_idx_3) - T_idx_1) / 2.0F;
|
||||
T_idx_3 = (T_idx_3 + T_idx_1) + d_Temp;
|
||||
T_idx_1 += d_Temp;
|
||||
break;
|
||||
|
||||
case 2:
|
||||
/* Outputs for Atomic SubSystem: '<S6>/Two inputs CRL' */
|
||||
rtb_convert_pu /= 1.7320508075688772;
|
||||
T_idx_1 = (real32_T)(rtb_convert_pu - rtb_Switch_idx_0) * 1800.0F / 8.0F;
|
||||
T_idx_4 = (real32_T)(rtb_convert_pu + rtb_Switch_idx_0) * 1800.0F / 8.0F;
|
||||
|
||||
/* End of Outputs for SubSystem: '<S6>/Two inputs CRL' */
|
||||
d_Temp = T_idx_1 + T_idx_4;
|
||||
if (d_Temp > 1800.0F) {
|
||||
d_Temp = 1800.0F / d_Temp;
|
||||
T_idx_1 *= d_Temp;
|
||||
T_idx_4 *= d_Temp;
|
||||
}
|
||||
|
||||
d_Temp = ((1800.0F - T_idx_1) - T_idx_4) / 2.0F;
|
||||
T_idx_3 = T_idx_4 + d_Temp;
|
||||
T_idx_1 = (T_idx_1 + T_idx_4) + d_Temp;
|
||||
break;
|
||||
|
||||
case 3:
|
||||
/* Outputs for Atomic SubSystem: '<S6>/Two inputs CRL' */
|
||||
T_idx_1 = (real32_T)(1.7320508075688772 * rtb_convert_pu) * 1800.0F / 12.0F;
|
||||
T_idx_4 = -((real32_T)(1.5 * rtb_Switch_idx_0 + 0.8660254037844386 *
|
||||
rtb_convert_pu) * 150.0F);
|
||||
|
||||
/* End of Outputs for SubSystem: '<S6>/Two inputs CRL' */
|
||||
d_Temp = T_idx_1 + T_idx_4;
|
||||
if (d_Temp > 1800.0F) {
|
||||
d_Temp = 1800.0F / d_Temp;
|
||||
T_idx_1 *= d_Temp;
|
||||
T_idx_4 *= d_Temp;
|
||||
}
|
||||
|
||||
d_Temp = ((1800.0F - T_idx_1) - T_idx_4) / 2.0F;
|
||||
T_idx_3 = d_Temp;
|
||||
T_idx_1 = (T_idx_1 + T_idx_4) + d_Temp;
|
||||
d_Temp += T_idx_4;
|
||||
break;
|
||||
|
||||
case 4:
|
||||
/* Outputs for Atomic SubSystem: '<S6>/Two inputs CRL' */
|
||||
T_idx_0 = (real32_T)(-2.0 * rtb_convert_pu) * 1800.0F / 1.73205078F / 8.0F;
|
||||
T_idx_4 = (real32_T)(rtb_convert_pu / 1.7320508075688772 - rtb_Switch_idx_0)
|
||||
* 1800.0F / 8.0F;
|
||||
|
||||
/* End of Outputs for SubSystem: '<S6>/Two inputs CRL' */
|
||||
d_Temp = T_idx_0 + T_idx_4;
|
||||
if (d_Temp > 1800.0F) {
|
||||
d_Temp = 1800.0F / d_Temp;
|
||||
T_idx_0 *= d_Temp;
|
||||
T_idx_4 *= d_Temp;
|
||||
}
|
||||
|
||||
d_Temp = ((1800.0F - T_idx_0) - T_idx_4) / 2.0F;
|
||||
T_idx_3 = d_Temp;
|
||||
T_idx_1 = T_idx_4 + d_Temp;
|
||||
d_Temp += T_idx_0 + T_idx_4;
|
||||
break;
|
||||
|
||||
case 5:
|
||||
/* Outputs for Atomic SubSystem: '<S6>/Two inputs CRL' */
|
||||
rtb_convert_pu = -rtb_convert_pu / 1.7320508075688772;
|
||||
T_idx_0 = (real32_T)(rtb_convert_pu - rtb_Switch_idx_0) * 1800.0F / 8.0F;
|
||||
T_idx_4 = (real32_T)(rtb_convert_pu + rtb_Switch_idx_0) * 1800.0F / 8.0F;
|
||||
|
||||
/* End of Outputs for SubSystem: '<S6>/Two inputs CRL' */
|
||||
d_Temp = T_idx_0 + T_idx_4;
|
||||
if (d_Temp > 1800.0F) {
|
||||
d_Temp = 1800.0F / d_Temp;
|
||||
T_idx_0 *= d_Temp;
|
||||
T_idx_4 *= d_Temp;
|
||||
}
|
||||
|
||||
d_Temp = ((1800.0F - T_idx_0) - T_idx_4) / 2.0F;
|
||||
T_idx_3 = T_idx_4 + d_Temp;
|
||||
T_idx_1 = d_Temp;
|
||||
d_Temp += T_idx_0 + T_idx_4;
|
||||
break;
|
||||
|
||||
case 6:
|
||||
/* Outputs for Atomic SubSystem: '<S6>/Two inputs CRL' */
|
||||
T_idx_4 = (real32_T)(-2.0 * rtb_convert_pu) * 1800.0F / 1.73205078F / 8.0F;
|
||||
T_idx_3 = (real32_T)(rtb_convert_pu / 1.7320508075688772 + rtb_Switch_idx_0)
|
||||
* 1800.0F / 8.0F;
|
||||
|
||||
/* End of Outputs for SubSystem: '<S6>/Two inputs CRL' */
|
||||
d_Temp = T_idx_3 + T_idx_4;
|
||||
if (d_Temp > 1800.0F) {
|
||||
d_Temp = 1800.0F / d_Temp;
|
||||
T_idx_3 *= d_Temp;
|
||||
T_idx_4 *= d_Temp;
|
||||
}
|
||||
|
||||
d_Temp = ((1800.0F - T_idx_3) - T_idx_4) / 2.0F;
|
||||
T_idx_3 = (T_idx_3 + T_idx_4) + d_Temp;
|
||||
T_idx_1 = d_Temp;
|
||||
d_Temp += T_idx_4;
|
||||
break;
|
||||
}
|
||||
|
||||
/* Outport: '<Root>/CCR1' incorporates:
|
||||
* Constant: '<S3>/Constant1'
|
||||
* MATLAB Function: '<S3>/MATLAB Function1'
|
||||
*/
|
||||
rtY.CCR1 = (1800.0F - T_idx_3) / 2.0F;
|
||||
|
||||
/* Outport: '<Root>/CCR2' incorporates:
|
||||
* Constant: '<S3>/Constant1'
|
||||
* MATLAB Function: '<S3>/MATLAB Function1'
|
||||
*/
|
||||
rtY.CCR2 = (1800.0F - T_idx_1) / 2.0F;
|
||||
|
||||
/* Outport: '<Root>/CCR3' incorporates:
|
||||
* Constant: '<S3>/Constant1'
|
||||
* MATLAB Function: '<S3>/MATLAB Function1'
|
||||
*/
|
||||
rtY.CCR3 = (1800.0F - d_Temp) / 2.0F;
|
||||
}
|
||||
|
||||
/* Model initialize function */
|
||||
void Open0_initialize(void)
|
||||
{
|
||||
/* (no initialization code required) */
|
||||
}
|
||||
|
||||
/*
|
||||
* File trailer for generated code.
|
||||
*
|
||||
* [EOF]
|
||||
*/
|
||||
367
OpenController/Open0_data.c
Normal file
367
OpenController/Open0_data.c
Normal file
@@ -0,0 +1,367 @@
|
||||
/*
|
||||
* 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: Open0_data.c
|
||||
*
|
||||
* Code generated for Simulink model 'Open0'.
|
||||
*
|
||||
* Model version : 2.23
|
||||
* Simulink Coder version : 25.1 (R2025a) 21-Nov-2024
|
||||
* C/C++ source code generated on : Sat Jun 14 14:25:03 2025
|
||||
*
|
||||
* Target selection: ert.tlc
|
||||
* Embedded hardware selection: ARM Compatible->ARM Cortex-M
|
||||
* Code generation objectives:
|
||||
* 1. Execution efficiency
|
||||
* 2. RAM efficiency
|
||||
* Validation result: Not run
|
||||
*/
|
||||
|
||||
#include "include/Open0.h"
|
||||
|
||||
/* Constant parameters (default storage) */
|
||||
const ConstP rtConstP = {
|
||||
/* Expression: dlgSett.sin_table
|
||||
* Referenced by: '<S9>/sine_table_values'
|
||||
*/
|
||||
{ 0.0, 0.0078539008887113342, 0.015707317311820675, 0.02355976483361015,
|
||||
0.031410759078128292, 0.03925981575906861, 0.047106450709642658,
|
||||
0.054950179912445746, 0.062790519529313374, 0.070626985931166689,
|
||||
0.078459095727844944, 0.08628636579792337, 0.094108313318514311,
|
||||
0.10192445579505004, 0.10973431109104527, 0.11753739745783763,
|
||||
0.12533323356430426, 0.13312133852655236, 0.14090123193758267,
|
||||
0.14867243389692297, 0.15643446504023087, 0.16418684656886295,
|
||||
0.17192910027940952, 0.17966074859319253, 0.1873813145857246,
|
||||
0.19509032201612825, 0.20278729535651249, 0.21047175982130564,
|
||||
0.21814324139654254, 0.22580126686910371, 0.23344536385590536,
|
||||
0.24107506083303862, 0.24868988716485479, 0.25628937313299666,
|
||||
0.26387304996537292, 0.27144044986507426, 0.27899110603922928,
|
||||
0.28652455272779831, 0.29404032523230395, 0.30153795994449567,
|
||||
0.3090169943749474, 0.31647696718158608, 0.3239174181981494,
|
||||
0.33133788846257095, 0.33873792024529137, 0.34611705707749296,
|
||||
0.35347484377925709, 0.36081082648764179, 0.36812455268467792,
|
||||
0.375415571225283, 0.38268343236508978, 0.38992768778818826,
|
||||
0.39714789063478062, 0.404343595528745, 0.41151435860510877,
|
||||
0.41865973753742808, 0.42577929156507266, 0.43287258152041391,
|
||||
0.43993916985591514, 0.4469786206711211, 0.45399049973954675,
|
||||
0.46097437453546236, 0.46792981426057334, 0.47485638987059459,
|
||||
0.48175367410171532, 0.48862124149695491, 0.4954586684324076,
|
||||
0.50226553314337252, 0.50904141575037132, 0.51578589828504751,
|
||||
0.5224985647159488, 0.52917900097419068, 0.53582679497899666,
|
||||
0.54244153666311867, 0.5490228179981318, 0.55557023301960218,
|
||||
0.56208337785213058, 0.56856185073426391, 0.57500525204327857,
|
||||
0.58141318431983058, 0.58778525229247314, 0.59412106290203848,
|
||||
0.60042022532588391, 0.60668235100199974, 0.61290705365297649,
|
||||
0.619093949309834, 0.62524265633570508, 0.63135279544937761,
|
||||
0.63742398974868963, 0.64345586473377892, 0.64944804833018366,
|
||||
0.65540017091179381, 0.66131186532365183, 0.66718276690459966,
|
||||
0.67301251350977331, 0.67880074553294167, 0.68454710592868862,
|
||||
0.69025124023443718, 0.69591279659231431, 0.7015314257708557,
|
||||
0.70710678118654746, 0.71263851892520536, 0.71812629776318881,
|
||||
0.72356977918844934, 0.72896862742141155, 0.73432250943568556,
|
||||
0.73963109497860968, 0.744894056591622, 0.75011106963045948,
|
||||
0.75528181228518354, 0.76040596560003093, 0.76548321349308812,
|
||||
0.77051324277578925, 0.77549574317223446, 0.78043040733832969,
|
||||
0.785316930880745, 0.79015501237569041, 0.79494435338751,
|
||||
0.79968465848709047, 0.80437563527008438, 0.80901699437494734,
|
||||
0.813608449500787, 0.8181497174250234, 0.8226405180208598,
|
||||
0.82708057427456183, 0.83146961230254512, 0.83580736136827027,
|
||||
0.84009355389894191, 0.84432792550201508, 0.8485102149815037,
|
||||
0.85264016435409218, 0.85671751886504954, 0.86074202700394364,
|
||||
0.86471344052015509, 0.86863151443819131, 0.87249600707279706,
|
||||
0.87630668004386369, 0.880063298291132, 0.88376563008869347,
|
||||
0.88741344705928327, 0.89100652418836779, 0.894544639838025,
|
||||
0.89802757576061565, 0.90145511711224569, 0.90482705246601958,
|
||||
0.90814317382508125, 0.91140327663544518, 0.91460715979861362,
|
||||
0.91775462568398114, 0.9208454801410263, 0.92387953251128674,
|
||||
0.9268565956401208, 0.92977648588825135, 0.9326390231430941,
|
||||
0.93544403082986727, 0.93819133592248416, 0.94088076895422545,
|
||||
0.94351216402819349, 0.9460853588275453, 0.9486001946255046,
|
||||
0.95105651629515353, 0.9534541723190012, 0.95579301479833012,
|
||||
0.95807289946231911, 0.960293685676943, 0.96245523645364717,
|
||||
0.96455741845779808, 0.96660010201690738, 0.96858316112863108,
|
||||
0.97050647346854246, 0.97236992039767656, 0.97417338696984934,
|
||||
0.97591676193874732, 0.97759993776479059, 0.97922281062176575,
|
||||
0.98078528040323043, 0.98228725072868861, 0.98372862894953594,
|
||||
0.98510932615477387, 0.98642925717649543, 0.98768834059513777,
|
||||
0.98888649874450452, 0.99002365771655754, 0.99109974736597473,
|
||||
0.99211470131447776, 0.99306845695492629, 0.99396095545517971,
|
||||
0.99479214176172648, 0.99556196460308, 0.99627037649294126,
|
||||
0.996917333733128, 0.99750279641627, 0.99802672842827156,
|
||||
0.99848909745053793, 0.99888987496197, 0.9992290362407229,
|
||||
0.9995065603657316, 0.99972243021800056, 0.99987663248166059,
|
||||
0.99996915764478966, 1.0, 0.99996915764478966, 0.99987663248166059,
|
||||
0.99972243021800056, 0.9995065603657316, 0.9992290362407229,
|
||||
0.99888987496197, 0.99848909745053793, 0.99802672842827156, 0.99750279641627,
|
||||
0.996917333733128, 0.99627037649294126, 0.99556196460308,
|
||||
0.99479214176172648, 0.99396095545517971, 0.99306845695492629,
|
||||
0.99211470131447788, 0.99109974736597484, 0.99002365771655765,
|
||||
0.98888649874450463, 0.98768834059513777, 0.98642925717649543,
|
||||
0.98510932615477387, 0.98372862894953594, 0.98228725072868872,
|
||||
0.98078528040323043, 0.97922281062176575, 0.97759993776479071,
|
||||
0.97591676193874743, 0.97417338696984934, 0.97236992039767656,
|
||||
0.97050647346854246, 0.96858316112863108, 0.96660010201690727,
|
||||
0.96455741845779808, 0.96245523645364728, 0.96029368567694307,
|
||||
0.95807289946231922, 0.95579301479833023, 0.95345417231900131,
|
||||
0.95105651629515364, 0.9486001946255046, 0.9460853588275453,
|
||||
0.9435121640281936, 0.94088076895422545, 0.93819133592248416,
|
||||
0.93544403082986738, 0.93263902314309421, 0.92977648588825146,
|
||||
0.92685659564012091, 0.92387953251128685, 0.92084548014102618,
|
||||
0.91775462568398114, 0.91460715979861362, 0.91140327663544529,
|
||||
0.90814317382508125, 0.90482705246601947, 0.90145511711224569,
|
||||
0.89802757576061565, 0.89454463983802512, 0.8910065241883679,
|
||||
0.88741344705928327, 0.88376563008869347, 0.88006329829113183,
|
||||
0.87630668004386347, 0.87249600707279706, 0.8686315144381912,
|
||||
0.86471344052015509, 0.86074202700394364, 0.85671751886504965,
|
||||
0.85264016435409229, 0.8485102149815037, 0.844327925502015,
|
||||
0.8400935538989418, 0.83580736136827016, 0.83146961230254512,
|
||||
0.82708057427456172, 0.8226405180208598, 0.8181497174250234,
|
||||
0.813608449500787, 0.80901699437494745, 0.8043756352700846,
|
||||
0.79968465848709058, 0.79494435338750991, 0.7901550123756903,
|
||||
0.78531693088074483, 0.78043040733832969, 0.77549574317223446,
|
||||
0.77051324277578925, 0.76548321349308812, 0.760405965600031,
|
||||
0.75528181228518365, 0.75011106963045959, 0.74489405659162222,
|
||||
0.73963109497860957, 0.73432250943568544, 0.72896862742141144,
|
||||
0.72356977918844934, 0.71812629776318881, 0.71263851892520547,
|
||||
0.70710678118654757, 0.70153142577085581, 0.69591279659231442,
|
||||
0.69025124023443729, 0.68454710592868884, 0.67880074553294167,
|
||||
0.67301251350977331, 0.66718276690459966, 0.66131186532365183,
|
||||
0.65540017091179392, 0.64944804833018377, 0.643455864733779,
|
||||
0.63742398974868986, 0.63135279544937783, 0.62524265633570542,
|
||||
0.61909394930983386, 0.61290705365297637, 0.60668235100199963,
|
||||
0.600420225325884, 0.59412106290203859, 0.58778525229247325,
|
||||
0.58141318431983069, 0.57500525204327868, 0.56856185073426413,
|
||||
0.56208337785213081, 0.55557023301960251, 0.549022817998132,
|
||||
0.54244153666311878, 0.535826794978997, 0.52917900097419068,
|
||||
0.52249856471594935, 0.51578589828504762, 0.5090414157503711,
|
||||
0.50226553314337274, 0.49545866843240738, 0.48862124149695524,
|
||||
0.48175367410171521, 0.474856389870595, 0.4679298142605734,
|
||||
0.46097437453546281, 0.45399049973954686, 0.44697862067112165,
|
||||
0.4399391698559153, 0.43287258152041375, 0.42577929156507288,
|
||||
0.41865973753742797, 0.4115143586051091, 0.404343595528745,
|
||||
0.39714789063478106, 0.38992768778818832, 0.38268343236509028,
|
||||
0.37541557122528318, 0.36812455268467814, 0.360810826487642,
|
||||
0.353474843779257, 0.3461170570774933, 0.33873792024529131,
|
||||
0.33133788846257139, 0.32391741819814945, 0.31647696718158658,
|
||||
0.30901699437494751, 0.30153795994449584, 0.29404032523230417,
|
||||
0.28652455272779809, 0.27899110603922955, 0.27144044986507415,
|
||||
0.26387304996537325, 0.2562893731329966, 0.24868988716485524,
|
||||
0.24107506083303873, 0.23344536385590553, 0.22580126686910384,
|
||||
0.21814324139654276, 0.21047175982130589, 0.20278729535651233,
|
||||
0.19509032201612861, 0.18738131458572457, 0.17966074859319298,
|
||||
0.17192910027940958, 0.164186846568863, 0.15643446504023098,
|
||||
0.14867243389692314, 0.14090123193758286, 0.13312133852655261,
|
||||
0.12533323356430454, 0.11753739745783755, 0.10973431109104564,
|
||||
0.10192445579505002, 0.094108313318514353, 0.086286365797923453,
|
||||
0.078459095727845068, 0.070626985931166841, 0.062790519529313582,
|
||||
0.054950179912446, 0.047106450709642957, 0.03925981575906895,
|
||||
0.031410759078128236, 0.023559764833610143, 0.01570731731182071,
|
||||
0.0078539008887114122, 1.2246467991473532E-16, -0.0078539008887111659,
|
||||
-0.015707317311820464, -0.023559764833609897, -0.031410759078127994,
|
||||
-0.039259815759068263, -0.047106450709642714, -0.054950179912445753,
|
||||
-0.062790519529313346, -0.0706269859311666, -0.078459095727844819,
|
||||
-0.0862863657979232, -0.0941083133185141, -0.10192445579504979,
|
||||
-0.10973431109104496, -0.11753739745783774, -0.12533323356430429,
|
||||
-0.13312133852655236, -0.14090123193758261, -0.14867243389692292,
|
||||
-0.15643446504023073, -0.16418684656886276, -0.17192910027940933,
|
||||
-0.17966074859319228, -0.18738131458572477, -0.19509032201612792,
|
||||
-0.20278729535651252, -0.21047175982130567, -0.21814324139654251,
|
||||
-0.2258012668691036, -0.23344536385590528, -0.24107506083303848,
|
||||
-0.24868988716485457, -0.25628937313299682, -0.26387304996537259,
|
||||
-0.27144044986507432, -0.27899110603922889, -0.28652455272779831,
|
||||
-0.29404032523230389, -0.30153795994449561, -0.30901699437494728,
|
||||
-0.31647696718158591, -0.32391741819814962, -0.33133788846257073,
|
||||
-0.33873792024529148, -0.34611705707749263, -0.35347484377925714,
|
||||
-0.3608108264876414, -0.36812455268467792, -0.37541557122528296,
|
||||
-0.38268343236508967, -0.38992768778818854, -0.3971478906347804,
|
||||
-0.40434359552874516, -0.41151435860510849, -0.41865973753742819,
|
||||
-0.42577929156507227, -0.43287258152041391, -0.43993916985591469,
|
||||
-0.44697862067112104, -0.45399049973954708, -0.46097437453546219,
|
||||
-0.46792981426057356, -0.47485638987059436, -0.48175367410171538,
|
||||
-0.48862124149695463, -0.4954586684324076, -0.50226553314337208,
|
||||
-0.50904141575037121, -0.515785898285047, -0.52249856471594869,
|
||||
-0.52917900097419079, -0.53582679497899643, -0.5424415366631189,
|
||||
-0.54902281799813146, -0.55557023301960229, -0.56208337785213025,
|
||||
-0.56856185073426391, -0.57500525204327813, -0.58141318431983047,
|
||||
-0.58778525229247269, -0.59412106290203837, -0.60042022532588424,
|
||||
-0.60668235100199941, -0.6129070536529766, -0.61909394930983375,
|
||||
-0.62524265633570519, -0.63135279544937739, -0.63742398974868963,
|
||||
-0.64345586473377847, -0.64944804833018355, -0.65540017091179414,
|
||||
-0.66131186532365172, -0.66718276690459977, -0.67301251350977309,
|
||||
-0.67880074553294178, -0.68454710592868839, -0.69025124023443718,
|
||||
-0.695912796592314, -0.7015314257708557, -0.70710678118654713,
|
||||
-0.71263851892520524, -0.71812629776318893, -0.72356977918844911,
|
||||
-0.72896862742141155, -0.73432250943568533, -0.73963109497860968,
|
||||
-0.74489405659162178, -0.75011106963045948, -0.75528181228518321,
|
||||
-0.76040596560003115, -0.765483213493088, -0.77051324277578936,
|
||||
-0.77549574317223424, -0.7804304073383298, -0.78531693088074472,
|
||||
-0.79015501237569041, -0.79494435338751024, -0.79968465848709047,
|
||||
-0.80437563527008471, -0.80901699437494734, -0.81360844950078715,
|
||||
-0.81814971742502329, -0.82264051802085991, -0.82708057427456161,
|
||||
-0.83146961230254524, -0.8358073613682705, -0.84009355389894191,
|
||||
-0.8443279255020153, -0.84851021498150359, -0.8526401643540924,
|
||||
-0.85671751886504954, -0.86074202700394375, -0.86471344052015486,
|
||||
-0.86863151443819131, -0.8724960070727974, -0.87630668004386358,
|
||||
-0.88006329829113217, -0.88376563008869335, -0.88741344705928338,
|
||||
-0.89100652418836779, -0.89454463983802524, -0.89802757576061554,
|
||||
-0.9014551171122458, -0.9048270524660198, -0.90814317382508136,
|
||||
-0.9114032766354454, -0.91460715979861351, -0.91775462568398125,
|
||||
-0.92084548014102618, -0.92387953251128685, -0.92685659564012068,
|
||||
-0.92977648588825146, -0.932639023143094, -0.93544403082986738,
|
||||
-0.93819133592248427, -0.94088076895422545, -0.94351216402819371,
|
||||
-0.9460853588275453, -0.94860019462550471, -0.95105651629515353,
|
||||
-0.95345417231900131, -0.95579301479833, -0.95807289946231922,
|
||||
-0.960293685676943, -0.96245523645364728, -0.96455741845779819,
|
||||
-0.96660010201690727, -0.96858316112863119, -0.97050647346854246,
|
||||
-0.97236992039767667, -0.97417338696984923, -0.97591676193874743,
|
||||
-0.97759993776479059, -0.97922281062176575, -0.98078528040323032,
|
||||
-0.98228725072868872, -0.98372862894953594, -0.98510932615477387,
|
||||
-0.98642925717649554, -0.98768834059513766, -0.98888649874450463,
|
||||
-0.99002365771655754, -0.99109974736597484, -0.99211470131447776,
|
||||
-0.99306845695492629, -0.9939609554551796, -0.99479214176172648,
|
||||
-0.99556196460308, -0.99627037649294126, -0.996917333733128,
|
||||
-0.99750279641627, -0.99802672842827156, -0.99848909745053793,
|
||||
-0.99888987496197, -0.9992290362407229, -0.9995065603657316,
|
||||
-0.99972243021800056, -0.99987663248166059, -0.99996915764478966, -1.0,
|
||||
-0.99996915764478966, -0.99987663248166059, -0.99972243021800056,
|
||||
-0.9995065603657316, -0.9992290362407229, -0.99888987496197,
|
||||
-0.99848909745053793, -0.99802672842827156, -0.99750279641627015,
|
||||
-0.996917333733128, -0.99627037649294126, -0.99556196460308,
|
||||
-0.99479214176172648, -0.99396095545517971, -0.99306845695492629,
|
||||
-0.99211470131447788, -0.99109974736597484, -0.99002365771655754,
|
||||
-0.98888649874450452, -0.98768834059513777, -0.98642925717649543,
|
||||
-0.985109326154774, -0.98372862894953583, -0.98228725072868872,
|
||||
-0.98078528040323043, -0.97922281062176586, -0.97759993776479071,
|
||||
-0.97591676193874755, -0.97417338696984934, -0.97236992039767656,
|
||||
-0.97050647346854246, -0.96858316112863108, -0.96660010201690738,
|
||||
-0.96455741845779808, -0.96245523645364739, -0.96029368567694307,
|
||||
-0.95807289946231933, -0.95579301479833012, -0.95345417231900143,
|
||||
-0.95105651629515364, -0.9486001946255046, -0.94608535882754541,
|
||||
-0.9435121640281936, -0.94088076895422557, -0.93819133592248416,
|
||||
-0.93544403082986749, -0.9326390231430941, -0.92977648588825157,
|
||||
-0.92685659564012091, -0.923879532511287, -0.9208454801410263,
|
||||
-0.91775462568398147, -0.9146071597986134, -0.91140327663544518,
|
||||
-0.90814317382508147, -0.90482705246601991, -0.90145511711224557,
|
||||
-0.89802757576061565, -0.89454463983802535, -0.89100652418836834,
|
||||
-0.88741344705928316, -0.88376563008869358, -0.88006329829113228,
|
||||
-0.87630668004386336, -0.87249600707279706, -0.86863151443819153,
|
||||
-0.86471344052015553, -0.86074202700394342, -0.85671751886504977,
|
||||
-0.85264016435409251, -0.84851021498150425, -0.844327925502015,
|
||||
-0.840093553898942, -0.83580736136827072, -0.831469612302545,
|
||||
-0.82708057427456183, -0.82264051802086013, -0.818149717425024,
|
||||
-0.81360844950078692, -0.80901699437494756, -0.80437563527008493,
|
||||
-0.79968465848709125, -0.79494435338751, -0.79015501237569064,
|
||||
-0.7853169308807455, -0.78043040733832947, -0.77549574317223446,
|
||||
-0.77051324277578959, -0.76548321349308879, -0.76040596560003082,
|
||||
-0.75528181228518376, -0.75011106963046, -0.74489405659162233,
|
||||
-0.73963109497860968, -0.73432250943568578, -0.72896862742141211,
|
||||
-0.72356977918844911, -0.71812629776318893, -0.7126385189252058,
|
||||
-0.70710678118654835, -0.70153142577085559, -0.69591279659231453,
|
||||
-0.69025124023443774, -0.684547105928689, -0.67880074553294167,
|
||||
-0.67301251350977376, -0.66718276690460043, -0.6613118653236516,
|
||||
-0.655400170911794, -0.6494480483301841, -0.64345586473377914,
|
||||
-0.63742398974868963, -0.631352795449378, -0.62524265633570586,
|
||||
-0.61909394930983364, -0.61290705365297649, -0.60668235100200008,
|
||||
-0.6004202253258849, -0.59412106290203825, -0.58778525229247336,
|
||||
-0.58141318431983113, -0.57500525204327879, -0.56856185073426391,
|
||||
-0.56208337785213092, -0.555570233019603, -0.54902281799813135,
|
||||
-0.54244153666311878, -0.5358267949789971, -0.52917900097419079,
|
||||
-0.52249856471594869, -0.51578589828504773, -0.509041415750372,
|
||||
-0.50226553314337286, -0.49545866843240749, -0.48862124149695535,
|
||||
-0.4817536741017161, -0.47485638987059431, -0.46792981426057351,
|
||||
-0.46097437453546292, -0.45399049973954697, -0.44697862067112093,
|
||||
-0.43993916985591541, -0.43287258152041469, -0.425779291565073,
|
||||
-0.41865973753742808, -0.41151435860510921, -0.4043435955287451,
|
||||
-0.39714789063478034, -0.38992768778818843, -0.38268343236509039,
|
||||
-0.37541557122528335, -0.36812455268467786, -0.36081082648764212,
|
||||
-0.35347484377925792, -0.34611705707749341, -0.33873792024529142,
|
||||
-0.33133788846257151, -0.32391741819814956, -0.31647696718158586,
|
||||
-0.30901699437494762, -0.30153795994449639, -0.29404032523230428,
|
||||
-0.28652455272779825, -0.27899110603922966, -0.27144044986507426,
|
||||
-0.26387304996537336, -0.25628937313299671, -0.24868988716485535,
|
||||
-0.24107506083303884, -0.2334453638559052, -0.22580126686910396,
|
||||
-0.21814324139654331, -0.21047175982130603, -0.20278729535651246,
|
||||
-0.19509032201612872, -0.18738131458572468, -0.17966074859319309,
|
||||
-0.17192910027940969, -0.16418684656886356, -0.15643446504023112,
|
||||
-0.14867243389692283, -0.140901231937583, -0.13312133852655228,
|
||||
-0.12533323356430465, -0.11753739745783766, -0.10973431109104577,
|
||||
-0.10192445579505015, -0.094108313318514908, -0.086286365797923578,
|
||||
-0.078459095727845624, -0.070626985931166966, -0.062790519529313263,
|
||||
-0.05495017991244612, -0.047106450709642637, -0.039259815759069075,
|
||||
-0.031410759078128361, -0.023559764833610709, -0.015707317311820831,
|
||||
-0.0078539008887119777, -2.4492935982947064E-16, 0.0078539008887113342,
|
||||
0.015707317311820675, 0.02355976483361015, 0.031410759078128292,
|
||||
0.03925981575906861, 0.047106450709642658, 0.054950179912445746,
|
||||
0.062790519529313374, 0.070626985931166689, 0.078459095727844944,
|
||||
0.08628636579792337, 0.094108313318514311, 0.10192445579505004,
|
||||
0.10973431109104527, 0.11753739745783763, 0.12533323356430426,
|
||||
0.13312133852655236, 0.14090123193758267, 0.14867243389692297,
|
||||
0.15643446504023087, 0.16418684656886295, 0.17192910027940952,
|
||||
0.17966074859319253, 0.1873813145857246, 0.19509032201612825,
|
||||
0.20278729535651249, 0.21047175982130564, 0.21814324139654254,
|
||||
0.22580126686910371, 0.23344536385590536, 0.24107506083303862,
|
||||
0.24868988716485479, 0.25628937313299666, 0.26387304996537292,
|
||||
0.27144044986507426, 0.27899110603922928, 0.28652455272779831,
|
||||
0.29404032523230395, 0.30153795994449567, 0.3090169943749474,
|
||||
0.31647696718158608, 0.3239174181981494, 0.33133788846257095,
|
||||
0.33873792024529137, 0.34611705707749296, 0.35347484377925709,
|
||||
0.36081082648764179, 0.36812455268467792, 0.375415571225283,
|
||||
0.38268343236508978, 0.38992768778818826, 0.39714789063478062,
|
||||
0.404343595528745, 0.41151435860510877, 0.41865973753742808,
|
||||
0.42577929156507266, 0.43287258152041391, 0.43993916985591514,
|
||||
0.4469786206711211, 0.45399049973954675, 0.46097437453546236,
|
||||
0.46792981426057334, 0.47485638987059459, 0.48175367410171532,
|
||||
0.48862124149695491, 0.4954586684324076, 0.50226553314337252,
|
||||
0.50904141575037132, 0.51578589828504751, 0.5224985647159488,
|
||||
0.52917900097419068, 0.53582679497899666, 0.54244153666311867,
|
||||
0.5490228179981318, 0.55557023301960218, 0.56208337785213058,
|
||||
0.56856185073426391, 0.57500525204327857, 0.58141318431983058,
|
||||
0.58778525229247314, 0.59412106290203848, 0.60042022532588391,
|
||||
0.60668235100199974, 0.61290705365297649, 0.619093949309834,
|
||||
0.62524265633570508, 0.63135279544937761, 0.63742398974868963,
|
||||
0.64345586473377892, 0.64944804833018366, 0.65540017091179381,
|
||||
0.66131186532365183, 0.66718276690459966, 0.67301251350977331,
|
||||
0.67880074553294167, 0.68454710592868862, 0.69025124023443718,
|
||||
0.69591279659231431, 0.7015314257708557, 0.70710678118654746,
|
||||
0.71263851892520536, 0.71812629776318881, 0.72356977918844934,
|
||||
0.72896862742141155, 0.73432250943568556, 0.73963109497860968,
|
||||
0.744894056591622, 0.75011106963045948, 0.75528181228518354,
|
||||
0.76040596560003093, 0.76548321349308812, 0.77051324277578925,
|
||||
0.77549574317223446, 0.78043040733832969, 0.785316930880745,
|
||||
0.79015501237569041, 0.79494435338751, 0.79968465848709047,
|
||||
0.80437563527008438, 0.80901699437494734, 0.813608449500787,
|
||||
0.8181497174250234, 0.8226405180208598, 0.82708057427456183,
|
||||
0.83146961230254512, 0.83580736136827027, 0.84009355389894191,
|
||||
0.84432792550201508, 0.8485102149815037, 0.85264016435409218,
|
||||
0.85671751886504954, 0.86074202700394364, 0.86471344052015509,
|
||||
0.86863151443819131, 0.87249600707279706, 0.87630668004386369,
|
||||
0.880063298291132, 0.88376563008869347, 0.88741344705928327,
|
||||
0.89100652418836779, 0.894544639838025, 0.89802757576061565,
|
||||
0.90145511711224569, 0.90482705246601958, 0.90814317382508125,
|
||||
0.91140327663544518, 0.91460715979861362, 0.91775462568398114,
|
||||
0.9208454801410263, 0.92387953251128674, 0.9268565956401208,
|
||||
0.92977648588825135, 0.9326390231430941, 0.93544403082986727,
|
||||
0.93819133592248416, 0.94088076895422545, 0.94351216402819349,
|
||||
0.9460853588275453, 0.9486001946255046, 0.95105651629515353,
|
||||
0.9534541723190012, 0.95579301479833012, 0.95807289946231911,
|
||||
0.960293685676943, 0.96245523645364717, 0.96455741845779808,
|
||||
0.96660010201690738, 0.96858316112863108, 0.97050647346854246,
|
||||
0.97236992039767656, 0.97417338696984934, 0.97591676193874732,
|
||||
0.97759993776479059, 0.97922281062176575, 0.98078528040323043,
|
||||
0.98228725072868861, 0.98372862894953594, 0.98510932615477387,
|
||||
0.98642925717649543, 0.98768834059513777, 0.98888649874450452,
|
||||
0.99002365771655754, 0.99109974736597473, 0.99211470131447776,
|
||||
0.99306845695492629, 0.99396095545517971, 0.99479214176172648,
|
||||
0.99556196460308, 0.99627037649294126, 0.996917333733128, 0.99750279641627,
|
||||
0.99802672842827156, 0.99848909745053793, 0.99888987496197,
|
||||
0.9992290362407229, 0.9995065603657316, 0.99972243021800056,
|
||||
0.99987663248166059, 0.99996915764478966, 1.0, 0.99996915764478966 }
|
||||
};
|
||||
|
||||
/*
|
||||
* File trailer for generated code.
|
||||
*
|
||||
* [EOF]
|
||||
*/
|
||||
588
OpenController/include/MW_target_hardware_resources.h
Normal file
588
OpenController/include/MW_target_hardware_resources.h
Normal file
@@ -0,0 +1,588 @@
|
||||
#ifndef PORTABLE_WORDSIZES
|
||||
#ifdef __MW_TARGET_USE_HARDWARE_RESOURCES_H__
|
||||
#ifndef __MW_TARGET_HARDWARE_RESOURCES_H__
|
||||
#define __MW_TARGET_HARDWARE_RESOURCES_H__
|
||||
|
||||
#define MW_MULTI_TASKING_MODE 1
|
||||
#include "mw_stm32_board_header.h"
|
||||
#include "SysTickScheduler.h"
|
||||
#include "arm_cortex_m_multitasking.h"
|
||||
|
||||
#define MW_USECODERTARGET 1
|
||||
#define MW_TARGETHARDWARE STM32F3xx Based
|
||||
#define MW_EXTMODEPROTOCOLINFO_CAN_HOSTINTERFACE Simulink
|
||||
#define MW_EXTMODEPROTOCOLINFO_CAN_LOGGINGBUFFERAUTO 1
|
||||
#define MW_EXTMODEPROTOCOLINFO_CAN_LOGGINGBUFFERSIZE 1000
|
||||
#define MW_EXTMODEPROTOCOLINFO_CAN_LOGGINGBUFFERNUM 3
|
||||
#define MW_EXTMODEPROTOCOLINFO_CAN_MAXCONTIGSAMPLES 10
|
||||
#define MW_CONNECTIONINFO_SERIAL_BAUDRATE stm32cube.codegen.getConnectivityBaudrate
|
||||
#define MW_CONNECTIONINFO_SERIAL_COMPORT stm32cube.codegen.getConnectivityCOMPort
|
||||
#define MW_CONNECTIONINFO_SERIAL_VERBOSE 1
|
||||
#define MW_CONNECTIONINFO_CAN_CANVENDOR matlab:stm32cube.codegen.getXCPonCANConnectivity(hCS,'Vendor')
|
||||
#define MW_CONNECTIONINFO_CAN_CANDEVICE matlab:stm32cube.codegen.getXCPonCANConnectivity(hCS,'Device')
|
||||
#define MW_CONNECTIONINFO_CAN_CANCHANNEL stm32cube.codegen.getXCPonCANConnectivity(hCS,'Channel')
|
||||
#define MW_CONNECTIONINFO_CAN_BUSSPEED stm32cube.codegen.getXCPonCANConnectivity(hCS,'Baudrate')
|
||||
#define MW_CONNECTIONINFO_CAN_CANIDCOMMAND stm32cube.codegen.getXCPonCANConnectivity(hCS,'CANIDCommand')
|
||||
#define MW_CONNECTIONINFO_CAN_CANIDRESPONSE stm32cube.codegen.getXCPonCANConnectivity(hCS,'CANIDResponse')
|
||||
#define MW_CONNECTIONINFO_CAN_ISCANIDEXTENDED stm32cube.codegen.getXCPonCANConnectivity(hCS,'IsCANIDExtended')
|
||||
#define MW_CONNECTIONINFO_CAN_VERBOSE 1
|
||||
#define MW_EXTMODE_CONFIGURATION Serial
|
||||
#define MW_EXTMODE_SIGNALBUFFERSIZE 2048.000000
|
||||
#define MW_EXTMODE_USEREALTIMESTAMPLOGGING 1
|
||||
#define MW_RTOS Baremetal
|
||||
#define MW_RTOSBASERATETASKPRIORITY 40
|
||||
#define MW_SCHEDULER_INTERRUPT_SOURCE 0
|
||||
#define MW_RUNTIME_BUILDACTION 1
|
||||
#define MW_RUNTIME_RUNTIMELIBRARY 1
|
||||
#define MW_RUNTIME_FFPCONTRACTION 1
|
||||
#define MW_RUNTIME_DISABLEPARALLELBUILD 0
|
||||
#define MW_STM32CUBEMX_PROJECTFILEBUTTON
|
||||
#define MW_STM32CUBEMX_CREATEPROJECTFILEBUTTON
|
||||
#define MW_STM32CUBEMX_LAUNCHPROJECTFILEBUTTON
|
||||
#define MW_STM32CUBEMX_PROJECTFILE D:/Wind/Documents/MATLAB/ffoc/ffoc.ioc
|
||||
#define MW_STM32CUBEMX_DEVICEID STM32F302R(6-8)Tx
|
||||
#define MW_STM32CUBEMX_FAMILY STM32F3
|
||||
#define MW_STM32CUBEMX_CONNECTIVITYMODE 0
|
||||
#define MW_STM32CUBEMX_CONNECTIONPORT 0
|
||||
#define MW_STM32CUBEMX_MODE 0
|
||||
#define MW_STM32CUBEMX_ACCESSPORT 0
|
||||
#define MW_STM32CUBEMX_RESETMODE 0
|
||||
#define MW_STM32CUBEMX_AUTODETECTBOARD 1
|
||||
#define MW_STM32CUBEMX_DEVICELIST -1
|
||||
#define MW_STM32CUBEMX_DEVICELISTREFRESH
|
||||
#define MW_CLOCKING_CPUCLOCKRATEMHZ 64.000000
|
||||
#define MW_CONNECTION_SERIALCONFIGUREMODULE 1
|
||||
#define MW_CONNECTION_SERIALMODULE 1
|
||||
#define MW_CONNECTION_SERIALPORT COM4
|
||||
#define MW_CONNECTION_ETHERNETCONFIGUREMODULE 48
|
||||
#define MW_CONNECTION_ETHERNETPORT 17725.000000
|
||||
#define MW_CONNECTION_CANCONFIGUREMODULE 48
|
||||
#define MW_CONNECTION_CANMODULE 0
|
||||
#define MW_CONNECTION_BAUDRATE 1000000
|
||||
#define MW_CONNECTION_CANREADSOURCE 0
|
||||
#define MW_CONNECTION_CANVENDOR -1
|
||||
#define MW_CONNECTION_CANDEVICE -1
|
||||
#define MW_CONNECTION_CANCHANNEL -1
|
||||
#define MW_CONNECTION_ISCANIDEXTENDED 48
|
||||
#define MW_CONNECTION_CANIDCOMMAND 2
|
||||
#define MW_CONNECTION_CANIDRESPONSE 3
|
||||
#define MW_CONNECTIVITY_REFRESH
|
||||
#define MW_SIMULINKIO_MODELTRANSPORTDATAFCN stm32cube.connectedIO.getConfigSetInfo
|
||||
#define MW_SIMULINKIO_SERVERDEPLOYFCN stm32cube.connectedIO.updateServer
|
||||
#define MW_SIMULINKIO_VALIDATESERVERFCN stm32cube.connectedIO.validateIoServer
|
||||
#define MW_SIMULINKIO_INTERFACE 0
|
||||
#define MW_SIMULINKIO_VALIDATEBEFORECONNECTFCN stm32cube.connectedIO.connectedIOModelValidation
|
||||
#define MW_SIMULINKIO_CONNECTEDIOSUPPORTEDBLOCKS DigitalPortRead,DigitalPortWrite,PWMOutput,AnalogInput,I2CControllerRead,I2CControllerWrite,LSM6DS3Block,LSM6DS3HBlock,LSM6DSLBlock,LSM6DSMBlock,LSM6DSRBlock,LSM6DSOBlock,LSM303CBlock,LIS3MDLBlock,LPS22HBBlock,HTS221Block,BMI160Block,ADXL34xBlock,CCS811Block,ICM20948Block,LIS3DHBlock
|
||||
#define MW_CONNECTEDIO_CONNECTEDIOMODE 0
|
||||
#define MW_CONNECTEDIO_ACTIONONOVERRUN 0
|
||||
#define MW_USART_USART1CONFIGUREMODULE 0
|
||||
#define MW_USART_USART1TRANSMITMODE 0
|
||||
#define MW_USART_USART1RECEIVEMODE 0
|
||||
#define MW_USART_USART1TRANSMITBUFFERLENGTH 128
|
||||
#define MW_USART_USART1RECEIVEBUFFERLENGTH 128
|
||||
#define MW_USART_USART1DISABLEDMAINTERRUPTONERROR 48
|
||||
#define MW_USART_USART2CONFIGUREMODULE 48
|
||||
#define MW_USART_USART2TRANSMITMODE 0
|
||||
#define MW_USART_USART2RECEIVEMODE 0
|
||||
#define MW_USART_USART2TRANSMITBUFFERLENGTH 128
|
||||
#define MW_USART_USART2RECEIVEBUFFERLENGTH 128
|
||||
#define MW_USART_USART2DISABLEDMAINTERRUPTONERROR 48
|
||||
#define MW_USART_USART3CONFIGUREMODULE 0
|
||||
#define MW_USART_USART3TRANSMITMODE 0
|
||||
#define MW_USART_USART3RECEIVEMODE 0
|
||||
#define MW_USART_USART3TRANSMITBUFFERLENGTH 128
|
||||
#define MW_USART_USART3RECEIVEBUFFERLENGTH 128
|
||||
#define MW_USART_USART3DISABLEDMAINTERRUPTONERROR 48
|
||||
#define MW_USART_UART4CONFIGUREMODULE 48
|
||||
#define MW_USART_UART4TRANSMITMODE 0
|
||||
#define MW_USART_UART4RECEIVEMODE 0
|
||||
#define MW_USART_UART4TRANSMITBUFFERLENGTH 128
|
||||
#define MW_USART_UART4RECEIVEBUFFERLENGTH 128
|
||||
#define MW_USART_UART4DISABLEDMAINTERRUPTONERROR 48
|
||||
#define MW_USART_UART5CONFIGUREMODULE 48
|
||||
#define MW_USART_UART5TRANSMITMODE 0
|
||||
#define MW_USART_UART5RECEIVEMODE 0
|
||||
#define MW_USART_UART5TRANSMITBUFFERLENGTH 128
|
||||
#define MW_USART_UART5RECEIVEBUFFERLENGTH 128
|
||||
#define MW_USART_UART5DISABLEDMAINTERRUPTONERROR 48
|
||||
#define MW_ADC1_USEDMA 0
|
||||
#define MW_ADC1_USEWATCHDOG 0
|
||||
#define MW_ADC1_EOCENABLEINTERRUPT 1
|
||||
#define MW_ADC1_JEOCENABLEINTERRUPT 48
|
||||
#define MW_ADC1_OVRENABLEINTERRUPT 48
|
||||
#define MW_ADC1_CALIBRATE 1
|
||||
#define MW_ADC1_CALIBRATIONMETHOD 0
|
||||
#define MW_ADC1_ADCCONVERSIONMODE 0
|
||||
#define MW_ADC1_OFFSETCALIBRATIONFACTORSINGLEENDED 0
|
||||
#define MW_ADC1_OFFSETCALIBRATIONFACTORDIFFENDED 0
|
||||
#define MW_ADC1_PROJECTFILEBUTTON
|
||||
#define MW_ADC2_USEDMA 0
|
||||
#define MW_ADC2_USEWATCHDOG 0
|
||||
#define MW_ADC2_EOCENABLEINTERRUPT 0
|
||||
#define MW_ADC2_JEOCENABLEINTERRUPT 48
|
||||
#define MW_ADC2_OVRENABLEINTERRUPT 48
|
||||
#define MW_ADC2_CALIBRATE 1
|
||||
#define MW_ADC2_CALIBRATIONMETHOD 0
|
||||
#define MW_ADC2_ADCCONVERSIONMODE 0
|
||||
#define MW_ADC2_OFFSETCALIBRATIONFACTORSINGLEENDED 0
|
||||
#define MW_ADC2_OFFSETCALIBRATIONFACTORDIFFENDED 0
|
||||
#define MW_ADC2_PROJECTFILEBUTTON
|
||||
#define MW_ADC3_USEDMA 0
|
||||
#define MW_ADC3_USEWATCHDOG 0
|
||||
#define MW_ADC3_EOCENABLEINTERRUPT 0
|
||||
#define MW_ADC3_JEOCENABLEINTERRUPT 48
|
||||
#define MW_ADC3_OVRENABLEINTERRUPT 48
|
||||
#define MW_ADC3_CALIBRATE 1
|
||||
#define MW_ADC3_CALIBRATIONMETHOD 0
|
||||
#define MW_ADC3_ADCCONVERSIONMODE 0
|
||||
#define MW_ADC3_OFFSETCALIBRATIONFACTORSINGLEENDED 0
|
||||
#define MW_ADC3_OFFSETCALIBRATIONFACTORDIFFENDED 0
|
||||
#define MW_ADC3_PROJECTFILEBUTTON
|
||||
#define MW_ADC4_USEDMA 0
|
||||
#define MW_ADC4_USEWATCHDOG 0
|
||||
#define MW_ADC4_EOCENABLEINTERRUPT 0
|
||||
#define MW_ADC4_JEOCENABLEINTERRUPT 48
|
||||
#define MW_ADC4_OVRENABLEINTERRUPT 48
|
||||
#define MW_ADC4_CALIBRATE 1
|
||||
#define MW_ADC4_CALIBRATIONMETHOD 0
|
||||
#define MW_ADC4_ADCCONVERSIONMODE 0
|
||||
#define MW_ADC4_OFFSETCALIBRATIONFACTORSINGLEENDED 0
|
||||
#define MW_ADC4_OFFSETCALIBRATIONFACTORDIFFENDED 0
|
||||
#define MW_ADC4_PROJECTFILEBUTTON
|
||||
#define MW_SPI_SPIMODULESELECT 2
|
||||
#define MW_SPI_SPI1TRANSMITMODE 2
|
||||
#define MW_SPI_SPI1TRANSMITBUFFERLENGTH 128
|
||||
#define MW_SPI_SPI1RECEIVEMODE 2
|
||||
#define MW_SPI_SPI1RECEIVEBUFFERLENGTH 128
|
||||
#define MW_SPI_SPI1RXFIFOINTERRUPT 0
|
||||
#define MW_SPI_SPI1ERRORINTERRUPT 0
|
||||
#define MW_SPI_SPI2TRANSMITMODE 2
|
||||
#define MW_SPI_SPI2TRANSMITBUFFERLENGTH 128
|
||||
#define MW_SPI_SPI2RECEIVEMODE 2
|
||||
#define MW_SPI_SPI2RECEIVEBUFFERLENGTH 128
|
||||
#define MW_SPI_SPI2RXFIFOINTERRUPT 0
|
||||
#define MW_SPI_SPI2ERRORINTERRUPT 0
|
||||
#define MW_SPI_SPI3TRANSMITMODE 2
|
||||
#define MW_SPI_SPI3TRANSMITBUFFERLENGTH 128
|
||||
#define MW_SPI_SPI3RECEIVEMODE 2
|
||||
#define MW_SPI_SPI3RECEIVEBUFFERLENGTH 128
|
||||
#define MW_SPI_SPI3RXFIFOINTERRUPT 1
|
||||
#define MW_SPI_SPI3ERRORINTERRUPT 1
|
||||
#define MW_SPI_SPI4TRANSMITMODE 2
|
||||
#define MW_SPI_SPI4TRANSMITBUFFERLENGTH 128
|
||||
#define MW_SPI_SPI4RECEIVEMODE 2
|
||||
#define MW_SPI_SPI4RECEIVEBUFFERLENGTH 128
|
||||
#define MW_SPI_SPI4RXFIFOINTERRUPT 0
|
||||
#define MW_SPI_SPI4ERRORINTERRUPT 0
|
||||
#define MW_HRTIM_UPDATEEVENTSUSPENDED 48
|
||||
#define MW_HRTIM_SELECTTIMERAFORUPDATEEVENTSUSPENDED 48
|
||||
#define MW_HRTIM_SELECTTIMERBFORUPDATEEVENTSUSPENDED 48
|
||||
#define MW_HRTIM_SELECTTIMERCFORUPDATEEVENTSUSPENDED 48
|
||||
#define MW_HRTIM_SELECTTIMERDFORUPDATEEVENTSUSPENDED 48
|
||||
#define MW_HRTIM_SELECTTIMEREFORUPDATEEVENTSUSPENDED 48
|
||||
#define MW_HRTIM_SELECTTIMERFFORUPDATEEVENTSUSPENDED 48
|
||||
#define MW_HRTIM_SELECTMAINTIMERFORUPDATEEVENTSUSPENDED 48
|
||||
#define MW_HRTIM_SELECTTIMERSFORSYNCCOUNTERSTART 0
|
||||
#define MW_HRTIM_SELECTTIMERAFORSYNCCOUNTERSTART 0
|
||||
#define MW_HRTIM_SELECTTIMERBFORSYNCCOUNTERSTART 0
|
||||
#define MW_HRTIM_SELECTTIMERCFORSYNCCOUNTERSTART 0
|
||||
#define MW_HRTIM_SELECTTIMERDFORSYNCCOUNTERSTART 0
|
||||
#define MW_HRTIM_SELECTTIMEREFORSYNCCOUNTERSTART 0
|
||||
#define MW_HRTIM_SELECTTIMERFFORSYNCCOUNTERSTART 0
|
||||
#define MW_HRTIM_SELECTMAINTIMERFORSYNCCOUNTERSTART 0
|
||||
#define MW_HRTIM_TIMERINTERRUPTSELECT 0
|
||||
#define MW_HRTIM_TIMERADELAYEDPROTECTIONINTERRUPT 0
|
||||
#define MW_HRTIM_TIMERARESETROLLOVERINTERRUPT 0
|
||||
#define MW_HRTIM_TIMERAOUTPUT1RESETINTERRUPT 0
|
||||
#define MW_HRTIM_TIMERAOUTPUT2RESETINTERRUPT 0
|
||||
#define MW_HRTIM_TIMERAOUTPUT1SETINTERRUPT 0
|
||||
#define MW_HRTIM_TIMERAOUTPUT2SETINTERRUPT 0
|
||||
#define MW_HRTIM_TIMERACAPTURE1EVENTINTERRUPT 0
|
||||
#define MW_HRTIM_TIMERACAPTURE2EVENTINTERRUPT 0
|
||||
#define MW_HRTIM_TIMERAUPDATEEVENTINTERRUPT 0
|
||||
#define MW_HRTIM_TIMERAREPETITIONEVENTINTERRUPT 0
|
||||
#define MW_HRTIM_TIMERACOMPARE1EVENTINTERRUPT 0
|
||||
#define MW_HRTIM_TIMERACOMPARE2EVENTINTERRUPT 0
|
||||
#define MW_HRTIM_TIMERACOMPARE3EVENTINTERRUPT 0
|
||||
#define MW_HRTIM_TIMERACOMPARE4EVENTINTERRUPT 0
|
||||
#define MW_HRTIM_TIMERBDELAYEDPROTECTIONINTERRUPT 0
|
||||
#define MW_HRTIM_TIMERBRESETROLLOVERINTERRUPT 0
|
||||
#define MW_HRTIM_TIMERBOUTPUT1RESETINTERRUPT 0
|
||||
#define MW_HRTIM_TIMERBOUTPUT2RESETINTERRUPT 0
|
||||
#define MW_HRTIM_TIMERBOUTPUT1SETINTERRUPT 0
|
||||
#define MW_HRTIM_TIMERBOUTPUT2SETINTERRUPT 0
|
||||
#define MW_HRTIM_TIMERBCAPTURE1EVENTINTERRUPT 0
|
||||
#define MW_HRTIM_TIMERBCAPTURE2EVENTINTERRUPT 0
|
||||
#define MW_HRTIM_TIMERBUPDATEEVENTINTERRUPT 0
|
||||
#define MW_HRTIM_TIMERBREPETITIONEVENTINTERRUPT 0
|
||||
#define MW_HRTIM_TIMERBCOMPARE1EVENTINTERRUPT 0
|
||||
#define MW_HRTIM_TIMERBCOMPARE2EVENTINTERRUPT 0
|
||||
#define MW_HRTIM_TIMERBCOMPARE3EVENTINTERRUPT 0
|
||||
#define MW_HRTIM_TIMERBCOMPARE4EVENTINTERRUPT 0
|
||||
#define MW_HRTIM_TIMERCDELAYEDPROTECTIONINTERRUPT 0
|
||||
#define MW_HRTIM_TIMERCRESETROLLOVERINTERRUPT 0
|
||||
#define MW_HRTIM_TIMERCOUTPUT1RESETINTERRUPT 0
|
||||
#define MW_HRTIM_TIMERCOUTPUT2RESETINTERRUPT 0
|
||||
#define MW_HRTIM_TIMERCOUTPUT1SETINTERRUPT 0
|
||||
#define MW_HRTIM_TIMERCOUTPUT2SETINTERRUPT 0
|
||||
#define MW_HRTIM_TIMERCCAPTURE1EVENTINTERRUPT 0
|
||||
#define MW_HRTIM_TIMERCCAPTURE2EVENTINTERRUPT 0
|
||||
#define MW_HRTIM_TIMERCUPDATEEVENTINTERRUPT 0
|
||||
#define MW_HRTIM_TIMERCREPETITIONEVENTINTERRUPT 0
|
||||
#define MW_HRTIM_TIMERCCOMPARE1EVENTINTERRUPT 0
|
||||
#define MW_HRTIM_TIMERCCOMPARE2EVENTINTERRUPT 0
|
||||
#define MW_HRTIM_TIMERCCOMPARE3EVENTINTERRUPT 0
|
||||
#define MW_HRTIM_TIMERCCOMPARE4EVENTINTERRUPT 0
|
||||
#define MW_HRTIM_TIMERDDELAYEDPROTECTIONINTERRUPT 0
|
||||
#define MW_HRTIM_TIMERDRESETROLLOVERINTERRUPT 0
|
||||
#define MW_HRTIM_TIMERDOUTPUT1RESETINTERRUPT 0
|
||||
#define MW_HRTIM_TIMERDOUTPUT2RESETINTERRUPT 0
|
||||
#define MW_HRTIM_TIMERDOUTPUT1SETINTERRUPT 0
|
||||
#define MW_HRTIM_TIMERDOUTPUT2SETINTERRUPT 0
|
||||
#define MW_HRTIM_TIMERDCAPTURE1EVENTINTERRUPT 0
|
||||
#define MW_HRTIM_TIMERDCAPTURE2EVENTINTERRUPT 0
|
||||
#define MW_HRTIM_TIMERDUPDATEEVENTINTERRUPT 0
|
||||
#define MW_HRTIM_TIMERDREPETITIONEVENTINTERRUPT 0
|
||||
#define MW_HRTIM_TIMERDCOMPARE1EVENTINTERRUPT 0
|
||||
#define MW_HRTIM_TIMERDCOMPARE2EVENTINTERRUPT 0
|
||||
#define MW_HRTIM_TIMERDCOMPARE3EVENTINTERRUPT 0
|
||||
#define MW_HRTIM_TIMERDCOMPARE4EVENTINTERRUPT 0
|
||||
#define MW_HRTIM_TIMEREDELAYEDPROTECTIONINTERRUPT 0
|
||||
#define MW_HRTIM_TIMERERESETROLLOVERINTERRUPT 0
|
||||
#define MW_HRTIM_TIMEREOUTPUT1RESETINTERRUPT 0
|
||||
#define MW_HRTIM_TIMEREOUTPUT2RESETINTERRUPT 0
|
||||
#define MW_HRTIM_TIMEREOUTPUT1SETINTERRUPT 0
|
||||
#define MW_HRTIM_TIMEREOUTPUT2SETINTERRUPT 0
|
||||
#define MW_HRTIM_TIMERECAPTURE1EVENTINTERRUPT 0
|
||||
#define MW_HRTIM_TIMERECAPTURE2EVENTINTERRUPT 0
|
||||
#define MW_HRTIM_TIMEREUPDATEEVENTINTERRUPT 0
|
||||
#define MW_HRTIM_TIMEREREPETITIONEVENTINTERRUPT 0
|
||||
#define MW_HRTIM_TIMERECOMPARE1EVENTINTERRUPT 0
|
||||
#define MW_HRTIM_TIMERECOMPARE2EVENTINTERRUPT 0
|
||||
#define MW_HRTIM_TIMERECOMPARE3EVENTINTERRUPT 0
|
||||
#define MW_HRTIM_TIMERECOMPARE4EVENTINTERRUPT 0
|
||||
#define MW_HRTIM_TIMERFDELAYEDPROTECTIONINTERRUPT 0
|
||||
#define MW_HRTIM_TIMERFRESETROLLOVERINTERRUPT 0
|
||||
#define MW_HRTIM_TIMERFOUTPUT1RESETINTERRUPT 0
|
||||
#define MW_HRTIM_TIMERFOUTPUT2RESETINTERRUPT 0
|
||||
#define MW_HRTIM_TIMERFOUTPUT1SETINTERRUPT 0
|
||||
#define MW_HRTIM_TIMERFOUTPUT2SETINTERRUPT 0
|
||||
#define MW_HRTIM_TIMERFCAPTURE1EVENTINTERRUPT 0
|
||||
#define MW_HRTIM_TIMERFCAPTURE2EVENTINTERRUPT 0
|
||||
#define MW_HRTIM_TIMERFUPDATEEVENTINTERRUPT 0
|
||||
#define MW_HRTIM_TIMERFREPETITIONEVENTINTERRUPT 0
|
||||
#define MW_HRTIM_TIMERFCOMPARE1EVENTINTERRUPT 0
|
||||
#define MW_HRTIM_TIMERFCOMPARE2EVENTINTERRUPT 0
|
||||
#define MW_HRTIM_TIMERFCOMPARE3EVENTINTERRUPT 0
|
||||
#define MW_HRTIM_TIMERFCOMPARE4EVENTINTERRUPT 0
|
||||
#define MW_HRTIM_MAINTIMERRREGISTERUPDATEINTERRUPT 0
|
||||
#define MW_HRTIM_MAINTIMERSYNCEVENTINTERRUPT 0
|
||||
#define MW_HRTIM_MAINTIMERREPETITIONEVENTINTERRUPT 0
|
||||
#define MW_HRTIM_MAINTIMERCOMPARE1EVENTINTERRUPT 0
|
||||
#define MW_HRTIM_MAINTIMERCOMPARE2EVENTINTERRUPT 0
|
||||
#define MW_HRTIM_MAINTIMERCOMPARE3EVENTINTERRUPT 0
|
||||
#define MW_HRTIM_MAINTIMERCOMPARE4EVENTINTERRUPT 0
|
||||
#define MW_HRTIM_DLLCALDONEINTERRUPT 0
|
||||
#define MW_HRTIM_BURSTPRDDONETINTERRUPT 0
|
||||
#define MW_HRTIM_SYSFAULTEVENTINTERRUPT 0
|
||||
#define MW_HRTIM_FAULT1EVENTINTERRUPT 0
|
||||
#define MW_HRTIM_FAULT2EVENTINTERRUPT 0
|
||||
#define MW_HRTIM_FAULT3EVENTINTERRUPT 0
|
||||
#define MW_HRTIM_FAULT4EVENTINTERRUPT 0
|
||||
#define MW_HRTIM_FAULT5EVENTINTERRUPT 0
|
||||
#define MW_TIMER_TIMERGROUP 0
|
||||
#define MW_TIMER_TIM1CONFIGUREMODULE 1
|
||||
#define MW_TIMER_TIM8CONFIGUREMODULE 48
|
||||
#define MW_TIMER_TIM20CONFIGUREMODULE 48
|
||||
#define MW_TIMER_TIM2CONFIGUREMODULE 48
|
||||
#define MW_TIMER_TIM3CONFIGUREMODULE 48
|
||||
#define MW_TIMER_TIM4CONFIGUREMODULE 48
|
||||
#define MW_TIMER_TIM5CONFIGUREMODULE 48
|
||||
#define MW_TIMER_TIM19CONFIGUREMODULE 48
|
||||
#define MW_TIMER_TIM6CONFIGUREMODULE 48
|
||||
#define MW_TIMER_TIM7CONFIGUREMODULE 48
|
||||
#define MW_TIMER_TIM18CONFIGUREMODULE 48
|
||||
#define MW_TIMER_TIM12CONFIGUREMODULE 48
|
||||
#define MW_TIMER_TIM13CONFIGUREMODULE 48
|
||||
#define MW_TIMER_TIM14CONFIGUREMODULE 48
|
||||
#define MW_TIMER_TIM15CONFIGUREMODULE 48
|
||||
#define MW_TIMER_TIM16CONFIGUREMODULE 48
|
||||
#define MW_TIMER_TIM17CONFIGUREMODULE 48
|
||||
#define MW_TIM1_STARTTIMER 49
|
||||
#define MW_TIM1_TRIGGERINTERRUPT 48
|
||||
#define MW_TIM1_CAPTURECOMPARE1INTERRUPT 48
|
||||
#define MW_TIM1_CAPTURECOMPARE2INTERRUPT 48
|
||||
#define MW_TIM1_CAPTURECOMPARE3INTERRUPT 48
|
||||
#define MW_TIM1_CAPTURECOMPARE4INTERRUPT 48
|
||||
#define MW_TIM1_UPDATEINTERRUPT 48
|
||||
#define MW_TIM1_BREAKINTERRUPT 48
|
||||
#define MW_TIM1_COMINTERRUPT 48
|
||||
#define MW_TIM8_STARTTIMER 49
|
||||
#define MW_TIM8_TRIGGERINTERRUPT 48
|
||||
#define MW_TIM8_CAPTURECOMPARE1INTERRUPT 48
|
||||
#define MW_TIM8_CAPTURECOMPARE2INTERRUPT 48
|
||||
#define MW_TIM8_CAPTURECOMPARE3INTERRUPT 48
|
||||
#define MW_TIM8_CAPTURECOMPARE4INTERRUPT 48
|
||||
#define MW_TIM8_UPDATEINTERRUPT 48
|
||||
#define MW_TIM8_BREAKINTERRUPT 48
|
||||
#define MW_TIM8_COMINTERRUPT 48
|
||||
#define MW_TIM20_STARTTIMER 49
|
||||
#define MW_TIM20_TRIGGERINTERRUPT 48
|
||||
#define MW_TIM20_CAPTURECOMPARE1INTERRUPT 48
|
||||
#define MW_TIM20_CAPTURECOMPARE2INTERRUPT 48
|
||||
#define MW_TIM20_CAPTURECOMPARE3INTERRUPT 48
|
||||
#define MW_TIM20_CAPTURECOMPARE4INTERRUPT 48
|
||||
#define MW_TIM20_UPDATEINTERRUPT 48
|
||||
#define MW_TIM20_BREAKINTERRUPT 48
|
||||
#define MW_TIM20_COMINTERRUPT 48
|
||||
#define MW_TIM2_STARTTIMER 49
|
||||
#define MW_TIM2_TRIGGERINTERRUPT 48
|
||||
#define MW_TIM2_CAPTURECOMPARE1INTERRUPT 48
|
||||
#define MW_TIM2_CAPTURECOMPARE2INTERRUPT 48
|
||||
#define MW_TIM2_CAPTURECOMPARE3INTERRUPT 48
|
||||
#define MW_TIM2_CAPTURECOMPARE4INTERRUPT 48
|
||||
#define MW_TIM2_UPDATEINTERRUPT 48
|
||||
#define MW_TIM3_STARTTIMER 49
|
||||
#define MW_TIM3_TRIGGERINTERRUPT 48
|
||||
#define MW_TIM3_CAPTURECOMPARE1INTERRUPT 48
|
||||
#define MW_TIM3_CAPTURECOMPARE2INTERRUPT 48
|
||||
#define MW_TIM3_CAPTURECOMPARE3INTERRUPT 48
|
||||
#define MW_TIM3_CAPTURECOMPARE4INTERRUPT 48
|
||||
#define MW_TIM3_UPDATEINTERRUPT 48
|
||||
#define MW_TIM4_STARTTIMER 49
|
||||
#define MW_TIM4_TRIGGERINTERRUPT 48
|
||||
#define MW_TIM4_CAPTURECOMPARE1INTERRUPT 48
|
||||
#define MW_TIM4_CAPTURECOMPARE2INTERRUPT 48
|
||||
#define MW_TIM4_CAPTURECOMPARE3INTERRUPT 48
|
||||
#define MW_TIM4_CAPTURECOMPARE4INTERRUPT 48
|
||||
#define MW_TIM4_UPDATEINTERRUPT 48
|
||||
#define MW_TIM5_STARTTIMER 49
|
||||
#define MW_TIM5_TRIGGERINTERRUPT 48
|
||||
#define MW_TIM5_CAPTURECOMPARE1INTERRUPT 48
|
||||
#define MW_TIM5_CAPTURECOMPARE2INTERRUPT 48
|
||||
#define MW_TIM5_CAPTURECOMPARE3INTERRUPT 48
|
||||
#define MW_TIM5_CAPTURECOMPARE4INTERRUPT 48
|
||||
#define MW_TIM5_UPDATEINTERRUPT 48
|
||||
#define MW_TIM19_STARTTIMER 49
|
||||
#define MW_TIM19_TRIGGERINTERRUPT 48
|
||||
#define MW_TIM19_CAPTURECOMPARE1INTERRUPT 48
|
||||
#define MW_TIM19_CAPTURECOMPARE2INTERRUPT 48
|
||||
#define MW_TIM19_CAPTURECOMPARE3INTERRUPT 48
|
||||
#define MW_TIM19_CAPTURECOMPARE4INTERRUPT 48
|
||||
#define MW_TIM19_UPDATEINTERRUPT 48
|
||||
#define MW_TIM6_STARTTIMER 49
|
||||
#define MW_TIM6_UPDATEINTERRUPT 48
|
||||
#define MW_TIM7_STARTTIMER 49
|
||||
#define MW_TIM7_UPDATEINTERRUPT 48
|
||||
#define MW_TIM18_STARTTIMER 49
|
||||
#define MW_TIM18_UPDATEINTERRUPT 48
|
||||
#define MW_TIM12_STARTTIMER 49
|
||||
#define MW_TIM12_CAPTURECOMPARE1INTERRUPT 48
|
||||
#define MW_TIM12_CAPTURECOMPARE2INTERRUPT 48
|
||||
#define MW_TIM12_UPDATEINTERRUPT 48
|
||||
#define MW_TIM13_STARTTIMER 49
|
||||
#define MW_TIM13_CAPTURECOMPARE1INTERRUPT 48
|
||||
#define MW_TIM13_UPDATEINTERRUPT 48
|
||||
#define MW_TIM14_STARTTIMER 49
|
||||
#define MW_TIM14_CAPTURECOMPARE1INTERRUPT 48
|
||||
#define MW_TIM14_UPDATEINTERRUPT 48
|
||||
#define MW_TIM15_STARTTIMER 49
|
||||
#define MW_TIM15_TRIGGERINTERRUPT 48
|
||||
#define MW_TIM15_CAPTURECOMPARE1INTERRUPT 48
|
||||
#define MW_TIM15_CAPTURECOMPARE2INTERRUPT 48
|
||||
#define MW_TIM15_CAPTURECOMPARE3INTERRUPT 48
|
||||
#define MW_TIM15_CAPTURECOMPARE4INTERRUPT 48
|
||||
#define MW_TIM15_UPDATEINTERRUPT 48
|
||||
#define MW_TIM15_BREAKINTERRUPT 48
|
||||
#define MW_TIM15_COMINTERRUPT 48
|
||||
#define MW_TIM16_STARTTIMER 49
|
||||
#define MW_TIM16_CAPTURECOMPARE1INTERRUPT 48
|
||||
#define MW_TIM16_UPDATEINTERRUPT 48
|
||||
#define MW_TIM17_STARTTIMER 49
|
||||
#define MW_TIM17_CAPTURECOMPARE1INTERRUPT 48
|
||||
#define MW_TIM17_UPDATEINTERRUPT 48
|
||||
#define MW_CAN_MODULE 0
|
||||
#define MW_CAN1_BAUDRATE 1000000
|
||||
#define MW_CAN1_CONFIGUREINTENRX 0
|
||||
#define MW_CAN1_CONFIGUREINTFIFO0RX 0
|
||||
#define MW_CAN1_ENABLEFIFO0MSGPENDINGINTR 0
|
||||
#define MW_CAN1_ENABLEFIFO0FULLINTR 0
|
||||
#define MW_CAN1_ENABLEFIFO0OVRINTR 0
|
||||
#define MW_CAN1_CONFIGUREINTFIFO1RX 0
|
||||
#define MW_CAN1_ENABLEFIFO1MSGPENDINGINTR 0
|
||||
#define MW_CAN1_ENABLEFIFO1FULLINTR 0
|
||||
#define MW_CAN1_ENABLEFIFO1OVRINTR 0
|
||||
#define MW_CAN1_CONFIGUREINTENTX 0
|
||||
#define MW_CAN1_ENABLETXMAILBOXEMPTYINTR 0
|
||||
#define MW_CAN1_CONFIGUREINTENOTHER 0
|
||||
#define MW_CAN1_ENABLEERRWARNINTR 0
|
||||
#define MW_CAN1_ENABLEERRPASSIVEINTR 0
|
||||
#define MW_CAN1_ENABLEBUSOFFINTR 0
|
||||
#define MW_CAN1_ENABLELASTERRCODEINTR 0
|
||||
#define MW_CAN1_ENABLEWAKEUPINTR 0
|
||||
#define MW_CAN1_ENABLESLEEPACKINTR 0
|
||||
#define MW_CAN1_ACCEPTALLMESSAGES 1
|
||||
#define MW_CAN1_FILTERBANKNUMBER 0
|
||||
#define MW_CAN1_ENABLEFILTERBANK00 0
|
||||
#define MW_CAN1_SCALE00 0
|
||||
#define MW_CAN1_MODE00 0
|
||||
#define MW_CAN1_FIFOASSIGNMENT00 0
|
||||
#define MW_CAN1_IDTYPE00 0
|
||||
#define MW_CAN1_ID1_00 0
|
||||
#define MW_CAN1_MASK1_00 0
|
||||
#define MW_CAN1_ID2_00 0
|
||||
#define MW_CAN1_MASK2_00 0
|
||||
#define MW_CAN1_ID3_00 0
|
||||
#define MW_CAN1_ID4_00 0
|
||||
#define MW_CAN1_ENABLEFILTERBANK01 0
|
||||
#define MW_CAN1_SCALE01 0
|
||||
#define MW_CAN1_MODE01 0
|
||||
#define MW_CAN1_FIFOASSIGNMENT01 0
|
||||
#define MW_CAN1_IDTYPE01 0
|
||||
#define MW_CAN1_ID1_01 0
|
||||
#define MW_CAN1_MASK1_01 0
|
||||
#define MW_CAN1_ID2_01 0
|
||||
#define MW_CAN1_MASK2_01 0
|
||||
#define MW_CAN1_ID3_01 0
|
||||
#define MW_CAN1_ID4_01 0
|
||||
#define MW_CAN1_ENABLEFILTERBANK02 0
|
||||
#define MW_CAN1_SCALE02 0
|
||||
#define MW_CAN1_MODE02 0
|
||||
#define MW_CAN1_FIFOASSIGNMENT02 0
|
||||
#define MW_CAN1_IDTYPE02 0
|
||||
#define MW_CAN1_ID1_02 0
|
||||
#define MW_CAN1_MASK1_02 0
|
||||
#define MW_CAN1_ID2_02 0
|
||||
#define MW_CAN1_MASK2_02 0
|
||||
#define MW_CAN1_ID3_02 0
|
||||
#define MW_CAN1_ID4_02 0
|
||||
#define MW_CAN1_ENABLEFILTERBANK03 0
|
||||
#define MW_CAN1_SCALE03 0
|
||||
#define MW_CAN1_MODE03 0
|
||||
#define MW_CAN1_FIFOASSIGNMENT03 0
|
||||
#define MW_CAN1_IDTYPE03 0
|
||||
#define MW_CAN1_ID1_03 0
|
||||
#define MW_CAN1_MASK1_03 0
|
||||
#define MW_CAN1_ID2_03 0
|
||||
#define MW_CAN1_MASK2_03 0
|
||||
#define MW_CAN1_ID3_03 0
|
||||
#define MW_CAN1_ID4_03 0
|
||||
#define MW_CAN1_ENABLEFILTERBANK04 0
|
||||
#define MW_CAN1_SCALE04 0
|
||||
#define MW_CAN1_MODE04 0
|
||||
#define MW_CAN1_FIFOASSIGNMENT04 0
|
||||
#define MW_CAN1_IDTYPE04 0
|
||||
#define MW_CAN1_ID1_04 0
|
||||
#define MW_CAN1_MASK1_04 0
|
||||
#define MW_CAN1_ID2_04 0
|
||||
#define MW_CAN1_MASK2_04 0
|
||||
#define MW_CAN1_ID3_04 0
|
||||
#define MW_CAN1_ID4_04 0
|
||||
#define MW_CAN1_ENABLEFILTERBANK05 0
|
||||
#define MW_CAN1_SCALE05 0
|
||||
#define MW_CAN1_MODE05 0
|
||||
#define MW_CAN1_FIFOASSIGNMENT05 0
|
||||
#define MW_CAN1_IDTYPE05 0
|
||||
#define MW_CAN1_ID1_05 0
|
||||
#define MW_CAN1_MASK1_05 0
|
||||
#define MW_CAN1_ID2_05 0
|
||||
#define MW_CAN1_MASK2_05 0
|
||||
#define MW_CAN1_ID3_05 0
|
||||
#define MW_CAN1_ID4_05 0
|
||||
#define MW_CAN1_ENABLEFILTERBANK06 0
|
||||
#define MW_CAN1_SCALE06 0
|
||||
#define MW_CAN1_MODE06 0
|
||||
#define MW_CAN1_FIFOASSIGNMENT06 0
|
||||
#define MW_CAN1_IDTYPE06 0
|
||||
#define MW_CAN1_ID1_06 0
|
||||
#define MW_CAN1_MASK1_06 0
|
||||
#define MW_CAN1_ID2_06 0
|
||||
#define MW_CAN1_MASK2_06 0
|
||||
#define MW_CAN1_ID3_06 0
|
||||
#define MW_CAN1_ID4_06 0
|
||||
#define MW_CAN1_ENABLEFILTERBANK07 0
|
||||
#define MW_CAN1_SCALE07 0
|
||||
#define MW_CAN1_MODE07 0
|
||||
#define MW_CAN1_FIFOASSIGNMENT07 0
|
||||
#define MW_CAN1_IDTYPE07 0
|
||||
#define MW_CAN1_ID1_07 0
|
||||
#define MW_CAN1_MASK1_07 0
|
||||
#define MW_CAN1_ID2_07 0
|
||||
#define MW_CAN1_MASK2_07 0
|
||||
#define MW_CAN1_ID3_07 0
|
||||
#define MW_CAN1_ID4_07 0
|
||||
#define MW_CAN1_ENABLEFILTERBANK08 0
|
||||
#define MW_CAN1_SCALE08 0
|
||||
#define MW_CAN1_MODE08 0
|
||||
#define MW_CAN1_FIFOASSIGNMENT08 0
|
||||
#define MW_CAN1_IDTYPE08 0
|
||||
#define MW_CAN1_ID1_08 0
|
||||
#define MW_CAN1_MASK1_08 0
|
||||
#define MW_CAN1_ID2_08 0
|
||||
#define MW_CAN1_MASK2_08 0
|
||||
#define MW_CAN1_ID3_08 0
|
||||
#define MW_CAN1_ID4_08 0
|
||||
#define MW_CAN1_ENABLEFILTERBANK09 0
|
||||
#define MW_CAN1_SCALE09 0
|
||||
#define MW_CAN1_MODE09 0
|
||||
#define MW_CAN1_FIFOASSIGNMENT09 0
|
||||
#define MW_CAN1_IDTYPE09 0
|
||||
#define MW_CAN1_ID1_09 0
|
||||
#define MW_CAN1_MASK1_09 0
|
||||
#define MW_CAN1_ID2_09 0
|
||||
#define MW_CAN1_MASK2_09 0
|
||||
#define MW_CAN1_ID3_09 0
|
||||
#define MW_CAN1_ID4_09 0
|
||||
#define MW_CAN1_ENABLEFILTERBANK10 0
|
||||
#define MW_CAN1_SCALE10 0
|
||||
#define MW_CAN1_MODE10 0
|
||||
#define MW_CAN1_FIFOASSIGNMENT10 0
|
||||
#define MW_CAN1_IDTYPE10 0
|
||||
#define MW_CAN1_ID1_10 0
|
||||
#define MW_CAN1_MASK1_10 0
|
||||
#define MW_CAN1_ID2_10 0
|
||||
#define MW_CAN1_MASK2_10 0
|
||||
#define MW_CAN1_ID3_10 0
|
||||
#define MW_CAN1_ID4_10 0
|
||||
#define MW_CAN1_ENABLEFILTERBANK11 0
|
||||
#define MW_CAN1_SCALE11 0
|
||||
#define MW_CAN1_MODE11 0
|
||||
#define MW_CAN1_FIFOASSIGNMENT11 0
|
||||
#define MW_CAN1_IDTYPE11 0
|
||||
#define MW_CAN1_ID1_11 0
|
||||
#define MW_CAN1_MASK1_11 0
|
||||
#define MW_CAN1_ID2_11 0
|
||||
#define MW_CAN1_MASK2_11 0
|
||||
#define MW_CAN1_ID3_11 0
|
||||
#define MW_CAN1_ID4_11 0
|
||||
#define MW_CAN1_ENABLEFILTERBANK12 0
|
||||
#define MW_CAN1_SCALE12 0
|
||||
#define MW_CAN1_MODE12 0
|
||||
#define MW_CAN1_FIFOASSIGNMENT12 0
|
||||
#define MW_CAN1_IDTYPE12 0
|
||||
#define MW_CAN1_ID1_12 0
|
||||
#define MW_CAN1_MASK1_12 0
|
||||
#define MW_CAN1_ID2_12 0
|
||||
#define MW_CAN1_MASK2_12 0
|
||||
#define MW_CAN1_ID3_12 0
|
||||
#define MW_CAN1_ID4_12 0
|
||||
#define MW_CAN1_ENABLEFILTERBANK13 0
|
||||
#define MW_CAN1_SCALE13 0
|
||||
#define MW_CAN1_MODE13 0
|
||||
#define MW_CAN1_FIFOASSIGNMENT13 0
|
||||
#define MW_CAN1_IDTYPE13 0
|
||||
#define MW_CAN1_ID1_13 0
|
||||
#define MW_CAN1_MASK1_13 0
|
||||
#define MW_CAN1_ID2_13 0
|
||||
#define MW_CAN1_MASK2_13 0
|
||||
#define MW_CAN1_ID3_13 0
|
||||
#define MW_CAN1_ID4_13 0
|
||||
#define MW_SENSOR_FILELOCATION stm32cube.sensors
|
||||
#define MW_IOBLOCKSMODE deployed
|
||||
#define MW_DATAVERSION 2016.02
|
||||
|
||||
#endif /* __MW_TARGET_HARDWARE_RESOURCES_H__ */
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
152
OpenController/include/Open0.h
Normal file
152
OpenController/include/Open0.h
Normal file
@@ -0,0 +1,152 @@
|
||||
/*
|
||||
* 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: Open0.h
|
||||
*
|
||||
* Code generated for Simulink model 'Open0'.
|
||||
*
|
||||
* Model version : 2.23
|
||||
* Simulink Coder version : 25.1 (R2025a) 21-Nov-2024
|
||||
* C/C++ source code generated on : Sat Jun 14 14:25:03 2025
|
||||
*
|
||||
* Target selection: ert.tlc
|
||||
* Embedded hardware selection: ARM Compatible->ARM Cortex-M
|
||||
* Code generation objectives:
|
||||
* 1. Execution efficiency
|
||||
* 2. RAM efficiency
|
||||
* Validation result: Not run
|
||||
*/
|
||||
|
||||
#ifndef Open0_h_
|
||||
#define Open0_h_
|
||||
#ifndef Open0_COMMON_INCLUDES_
|
||||
#define Open0_COMMON_INCLUDES_
|
||||
#include "rtwtypes.h"
|
||||
#include "math.h"
|
||||
#endif /* Open0_COMMON_INCLUDES_ */
|
||||
|
||||
#include <stddef.h>
|
||||
#include "MW_target_hardware_resources.h"
|
||||
|
||||
/* Macros for accessing real-time model data structure */
|
||||
#ifndef rtmGetErrorStatus
|
||||
#define rtmGetErrorStatus(rtm) ((rtm)->errorStatus)
|
||||
#endif
|
||||
|
||||
#ifndef rtmSetErrorStatus
|
||||
#define rtmSetErrorStatus(rtm, val) ((rtm)->errorStatus = (val))
|
||||
#endif
|
||||
|
||||
#define Open0_M (rtM)
|
||||
|
||||
/* Forward declaration for rtModel */
|
||||
typedef struct tag_RTM RT_MODEL;
|
||||
|
||||
/* Constant parameters (default storage) */
|
||||
typedef struct {
|
||||
/* Expression: dlgSett.sin_table
|
||||
* Referenced by: '<S9>/sine_table_values'
|
||||
*/
|
||||
real_T sine_table_values_Value[1002];
|
||||
} ConstP;
|
||||
|
||||
/* External inputs (root inport signals with default storage) */
|
||||
typedef struct {
|
||||
real_T Ud; /* '<Root>/Ud' */
|
||||
real_T Uq; /* '<Root>/Uq' */
|
||||
real_T theta; /* '<Root>/theta' */
|
||||
} ExtU;
|
||||
|
||||
/* External outputs (root outports fed by signals with default storage) */
|
||||
typedef struct {
|
||||
real32_T CCR1; /* '<Root>/CCR1' */
|
||||
real32_T CCR2; /* '<Root>/CCR2' */
|
||||
real32_T CCR3; /* '<Root>/CCR3' */
|
||||
} ExtY;
|
||||
|
||||
/* Real-time Model Data Structure */
|
||||
struct tag_RTM {
|
||||
const char_T * volatile errorStatus;
|
||||
};
|
||||
|
||||
/* External inputs (root inport signals with default storage) */
|
||||
extern ExtU rtU;
|
||||
|
||||
/* External outputs (root outports fed by signals with default storage) */
|
||||
extern ExtY rtY;
|
||||
|
||||
/* Constant parameters (default storage) */
|
||||
extern const ConstP rtConstP;
|
||||
|
||||
/* Model entry point functions */
|
||||
extern void Open0_initialize(void);
|
||||
extern void Open0_step(void);
|
||||
|
||||
/* Real-time Model object */
|
||||
extern RT_MODEL *const rtM;
|
||||
extern volatile boolean_T stopRequested;
|
||||
extern volatile boolean_T runModel;
|
||||
|
||||
/*-
|
||||
* These blocks were eliminated from the model due to optimizations:
|
||||
*
|
||||
* Block '<S2>/D' : Unused code path elimination
|
||||
* Block '<S9>/Data Type Duplicate' : Unused code path elimination
|
||||
* Block '<S9>/Data Type Propagation' : Unused code path elimination
|
||||
* Block '<S14>/Data Type Duplicate' : Unused code path elimination
|
||||
* Block '<S15>/Data Type Duplicate' : Unused code path elimination
|
||||
* Block '<S8>/Data Type Duplicate' : Unused code path elimination
|
||||
* Block '<S8>/Data Type Duplicate1' : Unused code path elimination
|
||||
* Block '<S3>/Scope' : Unused code path elimination
|
||||
* Block '<S9>/Get_FractionVal' : Eliminate redundant data type conversion
|
||||
* Block '<S17>/Offset' : Unused code path elimination
|
||||
* Block '<S17>/Unary_Minus' : 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('foc/Open') - opens subsystem foc/Open
|
||||
* hilite_system('foc/Open/Kp') - opens and selects block Kp
|
||||
*
|
||||
* Here is the system hierarchy for this model
|
||||
*
|
||||
* '<Root>' : 'foc'
|
||||
* '<S1>' : 'foc/Open'
|
||||
* '<S2>' : 'foc/Open/Inverse Park Transform'
|
||||
* '<S3>' : 'foc/Open/Subsystem1'
|
||||
* '<S4>' : 'foc/Open/Inverse Park Transform/Variant'
|
||||
* '<S5>' : 'foc/Open/Inverse Park Transform/Variant/mcb'
|
||||
* '<S6>' : 'foc/Open/Inverse Park Transform/Variant/mcb/Inverse Park Transform'
|
||||
* '<S7>' : 'foc/Open/Inverse Park Transform/Variant/mcb/Inverse Park Transform/Sine Cosine'
|
||||
* '<S8>' : 'foc/Open/Inverse Park Transform/Variant/mcb/Inverse Park Transform/Two inputs CRL'
|
||||
* '<S9>' : 'foc/Open/Inverse Park Transform/Variant/mcb/Inverse Park Transform/Sine Cosine/Sine-Cosine Lookup'
|
||||
* '<S10>' : 'foc/Open/Inverse Park Transform/Variant/mcb/Inverse Park Transform/Sine Cosine/Sine-Cosine Lookup/Interpolation'
|
||||
* '<S11>' : 'foc/Open/Inverse Park Transform/Variant/mcb/Inverse Park Transform/Sine Cosine/Sine-Cosine Lookup/WrapUp'
|
||||
* '<S12>' : 'foc/Open/Inverse Park Transform/Variant/mcb/Inverse Park Transform/Sine Cosine/Sine-Cosine Lookup/datatype'
|
||||
* '<S13>' : 'foc/Open/Inverse Park Transform/Variant/mcb/Inverse Park Transform/Sine Cosine/Sine-Cosine Lookup/WrapUp/Compare To Zero'
|
||||
* '<S14>' : 'foc/Open/Inverse Park Transform/Variant/mcb/Inverse Park Transform/Sine Cosine/Sine-Cosine Lookup/WrapUp/If Action Subsystem'
|
||||
* '<S15>' : 'foc/Open/Inverse Park Transform/Variant/mcb/Inverse Park Transform/Sine Cosine/Sine-Cosine Lookup/WrapUp/If Action Subsystem1'
|
||||
* '<S16>' : 'foc/Open/Inverse Park Transform/Variant/mcb/Inverse Park Transform/Sine Cosine/Sine-Cosine Lookup/datatype/datatype no change'
|
||||
* '<S17>' : 'foc/Open/Inverse Park Transform/Variant/mcb/Inverse Park Transform/Two inputs CRL/Switch_Axis'
|
||||
* '<S18>' : 'foc/Open/Subsystem1/MATLAB Function1'
|
||||
* '<S19>' : 'foc/Open/Subsystem1/MATLAB Function2'
|
||||
*/
|
||||
#endif /* Open0_h_ */
|
||||
|
||||
/*
|
||||
* File trailer for generated code.
|
||||
*
|
||||
* [EOF]
|
||||
*/
|
||||
36
OpenController/include/rtmodel.h
Normal file
36
OpenController/include/rtmodel.h
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* 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: rtmodel.h
|
||||
*
|
||||
* Code generated for Simulink model 'Open0'.
|
||||
*
|
||||
* Model version : 2.23
|
||||
* Simulink Coder version : 25.1 (R2025a) 21-Nov-2024
|
||||
* C/C++ source code generated on : Sat Jun 14 14:25:03 2025
|
||||
*
|
||||
* Target selection: ert.tlc
|
||||
* Embedded hardware selection: ARM Compatible->ARM Cortex-M
|
||||
* Code generation objectives:
|
||||
* 1. Execution efficiency
|
||||
* 2. RAM efficiency
|
||||
* Validation result: Not run
|
||||
*/
|
||||
|
||||
#ifndef rtmodel_h_
|
||||
#define rtmodel_h_
|
||||
#include "Open0.h"
|
||||
|
||||
/* Macros generated for backwards compatibility */
|
||||
#ifndef rtmGetStopRequested
|
||||
#define rtmGetStopRequested(rtm) ((void*) 0)
|
||||
#endif
|
||||
#endif /* rtmodel_h_ */
|
||||
|
||||
/*
|
||||
* File trailer for generated code.
|
||||
*
|
||||
* [EOF]
|
||||
*/
|
||||
106
OpenController/include/rtwtypes.h
Normal file
106
OpenController/include/rtwtypes.h
Normal file
@@ -0,0 +1,106 @@
|
||||
/*
|
||||
* 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 'Open0'.
|
||||
*
|
||||
* Model version : 2.23
|
||||
* Simulink Coder version : 25.1 (R2025a) 21-Nov-2024
|
||||
* C/C++ source code generated on : Sat Jun 14 14:25:03 2025
|
||||
*
|
||||
* Target selection: ert.tlc
|
||||
* Embedded hardware selection: ARM Compatible->ARM Cortex-M
|
||||
* 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: ARM Compatible->ARM Cortex-M
|
||||
* Number of bits: char: 8 short: 16 int: 32
|
||||
* long: 32 long long: 64
|
||||
* native word size: 32
|
||||
* 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]
|
||||
*/
|
||||
Reference in New Issue
Block a user