📄 auto_netcon_sfun.c
字号:
/*
*
* Stateflow code generation for machine:
* auto_netcon
*
* Target Name : sfun
* Model Version : 1.188
* Stateflow Version : 5.0.0.13.00.1.000001
* Date of code generation : 03-Jul-2007 09:28:18
*
*/
#define IN_SF_MACHINE_SOURCE 1
#include "auto_netcon_sfun.h"
#include "auto_netcon_sfun_c1.h"
/* Global machine event */
uint8_T _sfEvent_;
#include "auto_netcon_sfun_debug_macros.h"
unsigned int _auto_netconMachineNumber_=UNREASONABLE_NUMBER;
unsigned int sf_auto_netcon_process_check_sum_call( int nlhs, mxArray * plhs[],
int nrhs, const mxArray * prhs[] )
{
#ifdef MATLAB_MEX_FILE
char commandName[20];
if (nrhs<1 || !mxIsChar(prhs[0]) ) return 0;
/* Possible call to get the checksum */
mxGetString(prhs[0], commandName,sizeof(commandName)/sizeof(char));
commandName[(sizeof(commandName)/sizeof(char)-1)] = '\0';
if(strcmp(commandName,"sf_get_check_sum")) return 0;
plhs[0] = mxCreateDoubleMatrix( 1,4,mxREAL);
if(nrhs>1 && mxIsChar(prhs[1])) {
mxGetString(prhs[1], commandName,sizeof(commandName)/sizeof(char));
commandName[(sizeof(commandName)/sizeof(char)-1)] = '\0';
if(!strcmp(commandName,"machine")) {
((real_T *)mxGetPr((plhs[0])))[0] = (real_T)(743886535U);
((real_T *)mxGetPr((plhs[0])))[1] = (real_T)(309223297U);
((real_T *)mxGetPr((plhs[0])))[2] = (real_T)(713356779U);
((real_T *)mxGetPr((plhs[0])))[3] = (real_T)(4200706669U);
}else if(!strcmp(commandName,"exportedFcn")) {
((real_T *)mxGetPr((plhs[0])))[0] = (real_T)(0U);
((real_T *)mxGetPr((plhs[0])))[1] = (real_T)(0U);
((real_T *)mxGetPr((plhs[0])))[2] = (real_T)(0U);
((real_T *)mxGetPr((plhs[0])))[3] = (real_T)(0U);
}else if(!strcmp(commandName,"makefile")) {
((real_T *)mxGetPr((plhs[0])))[0] = (real_T)(1437028475U);
((real_T *)mxGetPr((plhs[0])))[1] = (real_T)(3218580714U);
((real_T *)mxGetPr((plhs[0])))[2] = (real_T)(113843346U);
((real_T *)mxGetPr((plhs[0])))[3] = (real_T)(536081041U);
}else if(nrhs==3 && !strcmp(commandName,"chart")) {
unsigned int chartFileNumber;
chartFileNumber = (unsigned int)mxGetScalar(prhs[2]);
switch(chartFileNumber) {
case 1:
{
extern void sf_auto_netcon_sfun_c1_get_check_sum(mxArray *plhs[]);
sf_auto_netcon_sfun_c1_get_check_sum(plhs);
break;
}
default:
((real_T *)mxGetPr((plhs[0])))[0] = (real_T)(0.0);
((real_T *)mxGetPr((plhs[0])))[1] = (real_T)(0.0);
((real_T *)mxGetPr((plhs[0])))[2] = (real_T)(0.0);
((real_T *)mxGetPr((plhs[0])))[3] = (real_T)(0.0);
}
}else if(!strcmp(commandName,"target")) {
((real_T *)mxGetPr((plhs[0])))[0] = (real_T)(2189486062U);
((real_T *)mxGetPr((plhs[0])))[1] = (real_T)(2271902150U);
((real_T *)mxGetPr((plhs[0])))[2] = (real_T)(4050106032U);
((real_T *)mxGetPr((plhs[0])))[3] = (real_T)(3168173041U);
}else {
return 0;
}
} else{
((real_T *)mxGetPr((plhs[0])))[0] = (real_T)(3208738213U);
((real_T *)mxGetPr((plhs[0])))[1] = (real_T)(3550737765U);
((real_T *)mxGetPr((plhs[0])))[2] = (real_T)(3284577630U);
((real_T *)mxGetPr((plhs[0])))[3] = (real_T)(172209969U);
}
return 1;
#else
return 0;
#endif
}
/* Stateflow time variable */
real_T _sfTime_;
/* Machine initialize */
void auto_netcon_initializer(void)
{
/* Initialize machine's broadcast event variable */
_sfEvent_ = CALL_EVENT;
_auto_netconMachineNumber_ =
sf_debug_initialize_machine("auto_netcon","sfun",0,1,0,0,0);
sf_debug_set_machine_event_thresholds(_auto_netconMachineNumber_,0,0);
sf_debug_set_machine_data_thresholds(_auto_netconMachineNumber_,0);
}
unsigned int auto_netcon_registry(SimStruct *simstructPtr,char *chartName, int
initializeFlag)
{
if(!strcmp_ignore_ws(chartName,"auto_netcon/chart/Chart_repaired_1/ SFunction "))
{
auto_netcon_sfun_c1_registry(simstructPtr);
return 1;
}
return 0;
}
unsigned int auto_netcon_sizes_registry(SimStruct *simstructPtr,char *chartName)
{
if(!strcmp_ignore_ws(chartName,"auto_netcon/chart/Chart_repaired_1/ SFunction "))
{
auto_netcon_sfun_c1_sizes_registry(simstructPtr);
return 1;
}
return 0;
}
void auto_netcon_terminator(void)
{
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -