⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 c2812iqsinetest.h

📁 由MATLAB生成的SIN的源代码
💻 H
字号:
/*
 * File: c2812iqsinetest.h
 *
 * Real-Time Workshop code generated for Simulink model c2812iqsinetest.
 *
 * Model version                        : 1.182
 * Real-Time Workshop file version      : 6.3  (R14SP3)  26-Jul-2005
 * Real-Time Workshop file generated on : Sat Dec 13 20:38:58 2008
 * TLC version                          : 6.3 (Aug  5 2005)
 * C source code generated on           : Sat Dec 13 20:38:58 2008
 */

#ifndef _RTW_HEADER_c2812iqsinetest_h_
#define _RTW_HEADER_c2812iqsinetest_h_

#ifndef _c2812iqsinetest_COMMON_INCLUDES_
# define _c2812iqsinetest_COMMON_INCLUDES_
#include <math.h>
#include <float.h>
#include <stddef.h>
#include <IQmathLib.h>
#include <string.h>
#include "rtwtypes.h"
#include "rt_nonfinite.h"
#endif                                  /* _c2812iqsinetest_COMMON_INCLUDES_ */

#include "c2812iqsinetest_types.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

/* Block signals (auto storage) */
typedef struct {
  real32_T r32_temp0[200];              /* '<Root>/IQN to Float2' */
  int32_T i32_temp1[200];               /* '<S4>/IQN x int1' */
  int32_T i32_temp2[200];               /* '<S4>/Trig Fcn IQN' */
} BlockIO_c2812iqsinetest;

/* Parameters (auto storage) */
struct _Parameters_c2812iqsinetest {
  real_T FloattoIQN_P1;                 /* Expression: Q_value
                                         * '<Root>/Float to IQN'
                                         */
  real_T TrigFcnIQN_P1;                 /* Expression: functionOption
                                         * '<S2>/Trig Fcn IQN'
                                         */
  real_T FloattoIQN1_P1;                /* Expression: Q_value
                                         * '<Root>/Float to IQN1'
                                         */
  real_T TrigFcnIQN_P1_g;               /* Expression: functionOption
                                         * '<S3>/Trig Fcn IQN'
                                         */
  real_T FloattoIQN2_P1;                /* Expression: Q_value
                                         * '<Root>/Float to IQN2'
                                         */
  real_T TrigFcnIQN_P1_n;               /* Expression: functionOption
                                         * '<S4>/Trig Fcn IQN'
                                         */
  real32_T Constant_Value[200];         /* Computed Parameter: Value
                                         * '<Root>/Constant'
                                         */
  real32_T Constant1_Value[200];        /* Computed Parameter: Value
                                         * '<Root>/Constant1'
                                         */
  real32_T Constant2_Value[200];        /* Computed Parameter: Value
                                         * '<Root>/Constant2'
                                         */
  int32_T SineFrequency_Value;          /* Computed Parameter: Value
                                         * '<S2>/Sine Frequency'
                                         */
  int32_T SineAmplitude_Value;          /* Computed Parameter: Value
                                         * '<S2>/Sine Amplitude'
                                         */
  int32_T SineFrequency_Value_c;        /* Computed Parameter: Value
                                         * '<S3>/Sine Frequency'
                                         */
  int32_T SineAmplitude_Value_o;        /* Computed Parameter: Value
                                         * '<S3>/Sine Amplitude'
                                         */
  int32_T SineFrequency_Value_h;        /* Computed Parameter: Value
                                         * '<S4>/Sine Frequency'
                                         */
  int32_T SineAmplitude_Value_j;        /* Computed Parameter: Value
                                         * '<S4>/Sine Amplitude'
                                         */
};

/* Real-time Model Data Structure */
struct RT_MODEL_c2812iqsinetest {
  const char_T *errorStatus;
};

/* Block parameters (auto storage) */
extern Parameters_c2812iqsinetest c2812iqsinetest_P;

/* Block signals (auto storage) */
extern BlockIO_c2812iqsinetest c2812iqsinetest_B;

/* Model entry point functions */
extern void c2812iqsinetest_initialize(boolean_T firstTime);
extern void c2812iqsinetest_step(void);
extern void c2812iqsinetest_terminate(void);

/* Real-time Model object */
extern RT_MODEL_c2812iqsinetest *c2812iqsinetest_M;

/* 
 * 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.
 *
 * Use the MATLAB hilite_system command to trace the generated code back
 * to the model.  For example,
 *
 * hilite_system('<S3>')    - opens system 3
 * hilite_system('<S3>/Kp') - opens and selects block Kp which resides in S3
 *
 * Here is the system hierarchy for this model
 *
 * '<Root>' : c2812iqsinetest
 * '<S1>'   : c2812iqsinetest/F2812 eZdsp
 * '<S2>'   : c2812iqsinetest/IQMath Sine Computation1
 * '<S3>'   : c2812iqsinetest/IQMath Sine Computation2
 * '<S4>'   : c2812iqsinetest/IQMath Sine Computation3
 * '<S5>'   : c2812iqsinetest/Save Data To Target
 * '<S6>'   : c2812iqsinetest/Save Data To Workspace
 */

#endif                                  /* _RTW_HEADER_c2812iqsinetest_h_ */

/* File trailer for Real-Time Workshop generated code.
 *
 * [EOF]
 */

⌨️ 快捷键说明

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