example6_acc_reg.h

来自「MATLAB仿真技术与应用一书的配套光盘」· C头文件 代码 · 共 56 行

H
56
字号
/*
 * example6_acc_reg.h
 *
 * Real-Time Workshop code generation for Simulink model "example6_acc.mdl".
 *
 * Model Version                        : 1.42
 * Real-Time Workshop file version      : 4.1 $Date: 2001/05/16 13:59:43 $
 * Real-Time Workshop file generated on : Sun May 18 17:35:27 2003
 * TLC version                          : 4.1 (May 19 2001)
 * C source code generated on           : Sun May 18 17:35:27 2003
 *
 * Relevant TLC Options:
 *   InlineParameters      = 0
 *   RollThreshold         = 5
 *   CodeFormat            = S-Function
 *
 * Simulink model settings:
 *   Solver     : VariableStep
 *   StartTime  : 0.0 s
 *   StopTime   : 10.0 s
 *   Variable step solver used
 *
 * Accelerator_S-Function
 * SOURCES: example6_acc.c example6_acc_dsp.c 
 */

#define CodeFormat                      S-Function
#define AccDefine1                      Accelerator_S-Function

#include <stdio.h>

/* Function to initialize sizes */
static void mdlInitializeSizes(SimStruct *S)
{

  /* checksum */
  ssSetChecksum0(S, 3906427175U);
  ssSetChecksum1(S, 4025481564U);
  ssSetChecksum2(S, 3986873966U);
  ssSetChecksum3(S, 3162453592U);

  /* options */
  ssSetOptions(S, SS_OPTION_EXCEPTION_FREE_CODE);
}

/* Empty mdlInitializeSampleTimes function (never called) */
static void mdlInitializeSampleTimes(SimStruct *S) { }

/* Empty mdlTerminate function (never called) */
static void mdlTerminate(SimStruct *S) { }

/* MATLAB MEX Glue */
#include "simulink.c"

/* [EOF] example6_acc_reg.h */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?