📄 example5_acc.h
字号:
/*
* example5_acc.h
*
* Real-Time Workshop code generation for Simulink model "example5_acc.mdl".
*
* Model Version : 1.35
* Real-Time Workshop file version : 5.0 $Date: 2002/05/30 19:21:33 $
* Real-Time Workshop file generated on : Mon Jan 10 16:29:25 2005
* TLC version : 5.0 (Jun 18 2002)
* C source code generated on : Mon Jan 10 16:29:25 2005
*/
#ifndef _RTW_HEADER_example5_acc_h_
# define _RTW_HEADER_example5_acc_h_
#ifndef _example5_acc_COMMON_INCLUDES_
# define _example5_acc_COMMON_INCLUDES_
#include <math.h>
#include <stdlib.h>
#define S_FUNCTION_NAME simulink_only_sfcn
#define S_FUNCTION_LEVEL 2
#define RTW_GENERATED_S_FUNCTION
#include "simstruc.h"
#include "rtlibsrc.h"
#endif /* _example5_acc_COMMON_INCLUDES_ */
#include "example5_acc_types.h"
/* Intrinsic types */
#ifndef POINTER_T
# define POINTER_T
typedef void * pointer_T;
#endif
/* Block signals (auto storage) */
typedef struct _example5_BlockIO {
creal_T Integer_Delay1; /* '<S3>/Integer Delay1' */
creal_T M_FSK_Modulator_Baseband; /* '<S4>/M-FSK Modulator Baseband' */
creal_T Product1_b; /* '<S10>/Product1' */
creal_T FIR_Decimation1; /* '<S12>/FIR Decimation1' */
creal_T FIR_Decimation2; /* '<S12>/FIR Decimation2' */
creal_T FIR_Decimation3; /* '<S12>/FIR Decimation3' */
real_T Constant; /* '<S6>/Constant' */
real_T Reshape; /* '<S2>/Reshape' */
real_T M_FSK_Demodulator_Baseba; /* '<S3>/M-FSK Demodulator Baseband' */
real_T Inherit_Shape1_a; /* '<S11>/Inherit Shape1' */
real_T Error_Rate_Calculation[3]; /* '<Root>/Error Rate Calculation' */
real_T Complex_to_Real_Imag1_o1; /* '<S14>/Complex to Real-Imag1' */
real_T Complex_to_Real_Imag1_o2; /* '<S14>/Complex to Real-Imag1' */
real_T FIR_Interpolati_a; /* '<S16>/FIR Interpolation' */
real_T FIR_Interpolati_b; /* '<S16>/FIR Interpolation1' */
real_T FIR_Interpolati_c; /* '<S16>/FIR Interpolation2' */
real_T FIR_Interpolati_d; /* '<S17>/FIR Interpolation' */
real_T FIR_Interpolati_e; /* '<S17>/FIR Interpolation1' */
real_T FIR_Interpolati_f; /* '<S17>/FIR Interpolation2' */
real_T Inherit_Shape1_b; /* '<S15>/Inherit Shape1' */
real_T Random_Source_b; /* '<S1>/Random Source' */
real_T Dynamic_AWGN; /* '<S1>/Dynamic AWGN' */
real_T Buffer[1024]; /* '<S19>/Buffer' */
real_T Window_o2[1024]; /* '<S20>/Window' */
real_T Magnitude_Squared[128]; /* '<S21>/Magnitude Squared' */
real_T Digital_Filter[128]; /* '<S20>/Digital Filter' */
real_T Product2_b[128]; /* '<S20>/Product2' */
real_T Integer_Delay; /* '<Root>/Integer Delay' */
real_T Relational_Operator_b; /* '<Root>/Relational Operator' */
real_T Sum; /* '<S14>/Sum' */
} example5_BlockIO;
/* Block states (auto storage) for system: '<Root>' */
typedef struct example5_D_Work_tag {
creal_T Integer_Delay1_BUFF[8]; /* <S3>/Integer Delay1 */
creal_T FIR_Decimation1_TapDelayBuff[4]; /* <S12>/FIR Decimation1 */
creal_T FIR_Decimation2_TapDelayBuff[4]; /* <S12>/FIR Decimation2 */
creal_T FIR_Decimation3_TapDelayBuff[40]; /* <S12>/FIR Decimation3 */
real_T Buffer_CircBuff[2048]; /* <S19>/Buffer */
real_T Digital_Filter_FILT_STATES[2560]; /* <S20>/Digital Filter */
real_T Integer_Delay_BUFF[3]; /* <Root>/Integer Delay */
real_T FIR_Interpolati_a_TapDelayBuff[5]; /* <S16>/FIR Interpolation */
real_T FIR_Interpolati_b_TapDelayBuff[5]; /* <S16>/FIR Interpolation1 */
real_T FIR_Interpolati_c_TapDelayBuff[8]; /* <S16>/FIR Interpolation2 */
real_T FIR_Interpolati_d_TapDelayBuff[5]; /* <S17>/FIR Interpolation */
real_T FIR_Interpolati_e_TapDelayBuff[5]; /* <S17>/FIR Interpolation1 */
real_T FIR_Interpolati_f_TapDelayBuff[8]; /* <S17>/FIR Interpolation2 */
creal_T M_FSK_Demodulator_Baseba_DWOR_a[2]; /* <S3>/M-FSK Demodulator Baseband */
creal_T M_FSK_Modulator_Baseband_DWOR_a[8]; /* <S4>/M-FSK Modulator Baseband */
creal_T FIR_Decimation1_Sums; /* <S12>/FIR Decimation1 */
creal_T FIR_Decimation1_OutBuff[2]; /* <S12>/FIR Decimation1 */
creal_T FIR_Decimation2_Sums; /* <S12>/FIR Decimation2 */
creal_T FIR_Decimation2_OutBuff[2]; /* <S12>/FIR Decimation2 */
creal_T FIR_Decimation3_Sums; /* <S12>/FIR Decimation3 */
creal_T FIR_Decimation3_OutBuff[2]; /* <S12>/FIR Decimation3 */
real_T Random_Source_a_STATE_DWORK[35]; /* <S2>/Random Source */
real_T M_FSK_Demodulator_Baseba_DWOR_b; /* <S3>/M-FSK Demodulator Baseband */
real_T M_FSK_Demodulator_Baseba_DWOR_c[2]; /* <S3>/M-FSK Demodulator Baseband */
real_T M_FSK_Demodulator_Baseba_DWOR_d[2]; /* <S3>/M-FSK Demodulator Baseband */
real_T M_FSK_Demodulator_Baseba_DWOR_e[2]; /* <S3>/M-FSK Demodulator Baseband */
real_T Error_Rate_Calculation_DWORK1_a; /* <Root>/Error Rate Calculation */
real_T Error_Rate_Calculation_DWORK1_b; /* <Root>/Error Rate Calculation */
real_T Error_Rate_Calculation_DWORK1_c; /* <Root>/Error Rate Calculation */
real_T Error_Rate_Calculation_DWORK1_d[3]; /* <Root>/Error Rate Calculation */
real_T M_FSK_Modulator_Baseband_DWOR_b; /* <S4>/M-FSK Modulator Baseband */
real_T M_FSK_Modulator_Baseband_DWOR_c[2]; /* <S4>/M-FSK Modulator Baseband */
real_T M_FSK_Modulator_Baseband_DWOR_d[2]; /* <S4>/M-FSK Modulator Baseband */
real_T FIR_Interpolati_a_OutBuff[2]; /* <S16>/FIR Interpolation */
real_T FIR_Interpolati_b_OutBuff[2]; /* <S16>/FIR Interpolation1 */
real_T FIR_Interpolati_c_OutBuff[10]; /* <S16>/FIR Interpolation2 */
real_T FIR_Interpolati_d_OutBuff[2]; /* <S17>/FIR Interpolation */
real_T FIR_Interpolati_e_OutBuff[2]; /* <S17>/FIR Interpolation1 */
real_T FIR_Interpolati_f_OutBuff[10]; /* <S17>/FIR Interpolation2 */
real_T Dynamic_AWGN_DWORK2; /* <S1>/Dynamic AWGN */
pointer_T Buffer_IN_BUF_PTR; /* <S19>/Buffer */
pointer_T Buffer_OUT_BUF_PTR; /* <S19>/Buffer */
void *Error_Rate_Calculation_PWORK[2]; /* '<Root>/Error Rate Calculation' */
struct {
void *LoggedData;
} Scope_PWORK; /* '<Root>/Scope' */
pointer_T FIR_Decimation1_CoeffPtr; /* <S12>/FIR Decimation1 */
pointer_T FIR_Decimation2_CoeffPtr; /* <S12>/FIR Decimation2 */
pointer_T FIR_Decimation3_CoeffPtr; /* <S12>/FIR Decimation3 */
uint32_T Complex_Carrier_a_CountIdx; /* <S14>/Complex Carrier */
uint32_T Complex_Carrier_b_CountIdx; /* <S10>/Complex Carrier */
int32_T Buffer_ShiftPerElem; /* <S19>/Buffer */
int32_T Integer_Delay1_BUFF_OFFSET; /* <S3>/Integer Delay1 */
int32_T M_FSK_Demodulator_Baseba_DWOR_f; /* <S3>/M-FSK Demodulator Baseband */
int32_T Digital_Filter_DF_INDX; /* <S20>/Digital Filter */
int32_T Error_Rate_Calculation_DWORK1_e; /* <Root>/Error Rate Calculation */
int32_T Error_Rate_Calculation_DWORK1_f; /* <Root>/Error Rate Calculation */
int32_T Integer_Delay_BUFF_OFFSET; /* <Root>/Integer Delay */
int32_T M_FSK_Modulator_Baseband_DWOR_e; /* <S4>/M-FSK Modulator Baseband */
int32_T M_FSK_Modulator_Baseband_DWOR_f; /* <S4>/M-FSK Modulator Baseband */
int32_T FIR_Interpolati_a_TapDelayIndex; /* <S16>/FIR Interpolation */
int32_T FIR_Interpolati_a_ReadIdx; /* <S16>/FIR Interpolation */
int32_T FIR_Interpolati_b_TapDelayIndex; /* <S16>/FIR Interpolation1 */
int32_T FIR_Interpolati_b_ReadIdx; /* <S16>/FIR Interpolation1 */
int32_T FIR_Interpolati_c_TapDelayIndex; /* <S16>/FIR Interpolation2 */
int32_T FIR_Interpolati_c_ReadIdx; /* <S16>/FIR Interpolation2 */
int32_T FIR_Interpolati_d_TapDelayIndex; /* <S17>/FIR Interpolation */
int32_T FIR_Interpolati_d_ReadIdx; /* <S17>/FIR Interpolation */
int32_T FIR_Interpolati_e_TapDelayIndex; /* <S17>/FIR Interpolation1 */
int32_T FIR_Interpolati_e_ReadIdx; /* <S17>/FIR Interpolation1 */
int32_T FIR_Interpolati_f_TapDelayIndex; /* <S17>/FIR Interpolation2 */
int32_T FIR_Interpolati_f_ReadIdx; /* <S17>/FIR Interpolation2 */
int32_T FIR_Decimation1_PhaseIdx; /* <S12>/FIR Decimation1 */
int32_T FIR_Decimation1_TapDelayIndex; /* <S12>/FIR Decimation1 */
int32_T FIR_Decimation1_OutIdx; /* <S12>/FIR Decimation1 */
int32_T FIR_Decimation2_PhaseIdx; /* <S12>/FIR Decimation2 */
int32_T FIR_Decimation2_TapDelayIndex; /* <S12>/FIR Decimation2 */
int32_T FIR_Decimation2_OutIdx; /* <S12>/FIR Decimation2 */
int32_T FIR_Decimation3_PhaseIdx; /* <S12>/FIR Decimation3 */
int32_T FIR_Decimation3_TapDelayIndex; /* <S12>/FIR Decimation3 */
int32_T FIR_Decimation3_OutIdx; /* <S12>/FIR Decimation3 */
uint32_T Random_Source_a_SEED_DWORK; /* <S2>/Random Source */
uint32_T Random_Source_b_SEED_DWORK; /* <S1>/Random Source */
uint32_T Random_Source_b_STATE_DWORK[2]; /* <S1>/Random Source */
boolean_T Error_Rate_Calculation_DWORK1_g[3]; /* <Root>/Error Rate Calculation */
boolean_T Error_Rate_Calculation_DWORK1_h; /* <Root>/Error Rate Calculation */
boolean_T Error_Rate_Calculation_DWORK1_i; /* <Root>/Error Rate Calculation */
boolean_T Error_Rate_Calculation_DWORK1_j; /* <Root>/Error Rate Calculation */
boolean_T FIR_Interpolati_a_wrtBufIdx; /* <S16>/FIR Interpolation */
boolean_T FIR_Interpolati_b_wrtBufIdx; /* <S16>/FIR Interpolation1 */
boolean_T FIR_Interpolati_c_wrtBufIdx; /* <S16>/FIR Interpolation2 */
boolean_T FIR_Interpolati_d_wrtBufIdx; /* <S17>/FIR Interpolation */
boolean_T FIR_Interpolati_e_wrtBufIdx; /* <S17>/FIR Interpolation1 */
boolean_T FIR_Interpolati_f_wrtBufIdx; /* <S17>/FIR Interpolation2 */
boolean_T FIR_Decimation1_wrtBufIdx; /* <S12>/FIR Decimation1 */
boolean_T FIR_Decimation1_readBufIdx; /* <S12>/FIR Decimation1 */
boolean_T FIR_Decimation2_wrtBufIdx; /* <S12>/FIR Decimation2 */
boolean_T FIR_Decimation2_readBufIdx; /* <S12>/FIR Decimation2 */
boolean_T FIR_Decimation3_wrtBufIdx; /* <S12>/FIR Decimation3 */
boolean_T FIR_Decimation3_readBufIdx; /* <S12>/FIR Decimation3 */
char pad_FIR_Decimation3_readBufIdx[6];
} example5_D_Work;
/* Parameters (auto storage) */
struct _example5_Parameters {
real_T Random_Source_a_Min; /* Expression: Min
* '<S2>/Random Source'
*/
real_T Random_Source_a_Max; /* Expression: Max
* '<S2>/Random Source'
*/
real_T Random_Source_a_DialogSeed; /* Expression: Seed
* '<S2>/Random Source'
*/
real_T Constant_Value; /* Expression: Value
* '<S6>/Constant'
*/
real_T Reshape_P1; /* Expression: OutputDimensionality
* '<S2>/Reshape'
*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -