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

📄 dwtdenoising.h

📁 用离散小波变换实现语音去噪
💻 H
字号:
/*
 * File: dwtdenoising.h
 *
 * Real-Time Workshop code generated for Simulink model dwtdenoising.
 *
 * Model version                        : 1.17
 * Real-Time Workshop file version      : 6.6  (R2007a)  01-Feb-2007
 * Real-Time Workshop file generated on : Mon Dec 10 11:23:11 2007
 * TLC version                          : 6.6 (Jan 16 2007)
 * C source code generated on           : Mon Dec 10 11:23:12 2007
 */

#ifndef _RTW_HEADER_dwtdenoising_h_
#define _RTW_HEADER_dwtdenoising_h_
#ifndef _dwtdenoising_COMMON_INCLUDES_
# define _dwtdenoising_COMMON_INCLUDES_
#include <math.h>
#include <stddef.h>
#include <string.h>
#include "rtwtypes.h"
#include "csl_cache.h"
#include "dwtdenoisingcfg.h"
#include "sat_mpy.h"
#include "dsp_rt.h"
#include "c6000_main.h"
#endif                                 /* _dwtdenoising_COMMON_INCLUDES_ */

#include "dwtdenoising_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

#ifndef rtmGetStopRequested
# define rtmGetStopRequested(rtm)      ((void*) 0)
#endif

#ifndef INT40_T
#define INT40_T                        signed long

typedef INT40_T int40_T;

#endif

#ifndef CINT40_T

typedef struct {
  int40_T re, im;
} cint40_T;

#define CINT40_T                       cint40_T
#endif

#ifndef UINT40_T
#define UINT40_T                       unsigned long

typedef UINT40_T uint40_T;

#endif

#ifndef CUINT40_T

typedef struct {
  int40_T re, im;
} cuint40_T;

#define CUINT40_T                      cuint40_T
#endif

/* Block signals (auto storage) */
typedef struct {
  real_T ADC[64];                      /* '<S2>/ADC' */
  real_T Output[64];                   /* '<S2>/Dyadic Synthesis Filter Bank' */
} BlockIO_dwtdenoising;

/* Block states (auto storage) for system '<Root>' */
typedef struct {
  real_T IntegerDelay_IC_BUFF[21000];  /* '<S4>/Integer Delay' */
  real_T IntegerDelay1_IC_BUFF[7000];  /* '<S4>/Integer Delay1' */
  real_T IntegerDelay2_IC_BUFF[7000];  /* '<S4>/Integer Delay2' */
  real_T IntegerDelay3_IC_BUFF[7000];  /* '<S4>/Integer Delay3' */
  real_T DyadicSynthesisFilterBank_LongT[12];/* '<S2>/Dyadic Synthesis Filter Bank' */
  real_T DyadicSynthesisFilterBank_Short[12];/* '<S2>/Dyadic Synthesis Filter Bank' */
  real_T DyadicSynthesisFilterBank_WorkB[128];/* '<S2>/Dyadic Synthesis Filter Bank' */
  real_T DyadicAnalysisFilterBank_Sums[6];/* '<S2>/Dyadic Analysis Filter Bank' */
  real_T DyadicAnalysisFilterBank_TapDel[24];/* '<S2>/Dyadic Analysis Filter Bank' */
  real_T DyadicAnalysisFilterBank_WorkBu[128];/* '<S2>/Dyadic Analysis Filter Bank' */
  struct {
    void *SemID;
  } SFunction1_PWORK;                  /* '<S3>/S-Function1' */

  char pad_SFunction1_PWORK[4];
  int32_T IntegerDelay_CIRC_BUF_IDX;   /* '<S4>/Integer Delay' */
  char pad_IntegerDelay_CIRC_BUF_IDX[4];
  int32_T IntegerDelay1_CIRC_BUF_IDX;  /* '<S4>/Integer Delay1' */
  char pad_IntegerDelay1_CIRC_BUF_IDX[4];
  int32_T IntegerDelay2_CIRC_BUF_IDX;  /* '<S4>/Integer Delay2' */
  char pad_IntegerDelay2_CIRC_BUF_IDX[4];
  int32_T IntegerDelay3_CIRC_BUF_IDX;  /* '<S4>/Integer Delay3' */
  char pad_IntegerDelay3_CIRC_BUF_IDX[4];
  int32_T DyadicSynthesisFilterBank_Lon_b[3];/* '<S2>/Dyadic Synthesis Filter Bank' */
  char pad_DyadicSynthesisFilterBank_Lon_b[4];
  int32_T DyadicSynthesisFilterBank_Sho_h[3];/* '<S2>/Dyadic Synthesis Filter Bank' */
  char pad_DyadicSynthesisFilterBank_Sho_h[4];
  int32_T DyadicAnalysisFilterBank_PhaseI[3];/* '<S2>/Dyadic Analysis Filter Bank' */
  char pad_DyadicAnalysisFilterBank_PhaseI[4];
  int32_T DyadicAnalysisFilterBank_TapD_m[3];/* '<S2>/Dyadic Analysis Filter Bank' */
  char pad_DyadicAnalysisFilterBank_TapD_m[4];
  struct {
    int_T TaskID;
  } SFunction1_IWORK;                  /* '<S3>/S-Function1' */

  char pad_SFunction1_IWORK[4];
} D_Work_dwtdenoising;

/* Parameters (auto storage) */
struct Parameters_dwtdenoising {
  real_T IntegerDelay_IC;              /* Computed Parameter: IC
                                        * '<S4>/Integer Delay'
                                        */
  real_T DeadZone1_Start;              /* Expression: -st(1)
                                        * '<S5>/Dead Zone1'
                                        */
  real_T DeadZone1_End;                /* Expression: st(1)
                                        * '<S5>/Dead Zone1'
                                        */
  real_T IntegerDelay1_IC;             /* Computed Parameter: IC
                                        * '<S4>/Integer Delay1'
                                        */
  real_T DeadZone2_Start;              /* Expression: -st(2)
                                        * '<S5>/Dead Zone2'
                                        */
  real_T DeadZone2_End;                /* Expression: st(2)
                                        * '<S5>/Dead Zone2'
                                        */
  real_T IntegerDelay2_IC;             /* Computed Parameter: IC
                                        * '<S4>/Integer Delay2'
                                        */
  real_T DeadZone3_Start;              /* Expression: -st(3)
                                        * '<S5>/Dead Zone3'
                                        */
  real_T DeadZone3_End;                /* Expression: st(3)
                                        * '<S5>/Dead Zone3'
                                        */
  real_T IntegerDelay3_IC;             /* Computed Parameter: IC
                                        * '<S4>/Integer Delay3'
                                        */
  real_T DeadZone4_Start;              /* Expression: -st(4)
                                        * '<S5>/Dead Zone4'
                                        */
  real_T DeadZone4_End;                /* Expression: st(4)
                                        * '<S5>/Dead Zone4'
                                        */
  real_T DyadicSynthesisFilterBa_LF[8];/* Expression: phl
                                        * '<S2>/Dyadic Synthesis Filter Bank'
                                        */
  real_T DyadicSynthesisFilterBa_HF[8];/* Expression: phh
                                        * '<S2>/Dyadic Synthesis Filter Bank'
                                        */
  real_T DyadicAnalysisFilterBan_LF[8];/* Expression: phl
                                        * '<S2>/Dyadic Analysis Filter Bank'
                                        */
  real_T DyadicAnalysisFilterBan_HF[8];/* Expression: phh
                                        * '<S2>/Dyadic Analysis Filter Bank'
                                        */
};

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

  /*
   * Timing:
   * The following substructure contains information regarding
   * the timing information for the model.
   */
  struct {
    struct {
      uint8_T TID[1];
    } TaskCounters;
  } Timing;
};

/* Block parameters (auto storage) */
extern Parameters_dwtdenoising dwtdenoising_P;

/* Block signals (auto storage) */
extern BlockIO_dwtdenoising dwtdenoising_B;

/* Block states (auto storage) */
extern D_Work_dwtdenoising dwtdenoising_DWork;

/* Model entry point functions */
extern void dwtdenoising_initialize(boolean_T firstTime);
extern void dwtdenoising_step(void);
extern void dwtdenoising_terminate(void);

/* Real-time Model object */
extern RT_MODEL_dwtdenoising *dwtdenoising_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>' : dwtdenoising
 * '<S1>'   : dwtdenoising/C6711DSK
 * '<S2>'   : dwtdenoising/Denoising Algorithm
 * '<S3>'   : dwtdenoising/Task
 * '<S4>'   : dwtdenoising/Denoising Algorithm/Delay Alignment
 * '<S5>'   : dwtdenoising/Denoising Algorithm/Soft Threshold
 * '<S6>'   : dwtdenoising/Denoising Algorithm/Soft Threshold/Frame Status Conversion
 * '<S7>'   : dwtdenoising/Denoising Algorithm/Soft Threshold/Frame Status Conversion1
 * '<S8>'   : dwtdenoising/Denoising Algorithm/Soft Threshold/Frame Status Conversion2
 * '<S9>'   : dwtdenoising/Denoising Algorithm/Soft Threshold/Frame Status Conversion3
 * '<S10>'  : dwtdenoising/Denoising Algorithm/Soft Threshold/Frame Status Conversion4
 * '<S11>'  : dwtdenoising/Denoising Algorithm/Soft Threshold/Frame Status Conversion5
 * '<S12>'  : dwtdenoising/Denoising Algorithm/Soft Threshold/Frame Status Conversion6
 * '<S13>'  : dwtdenoising/Denoising Algorithm/Soft Threshold/Frame Status Conversion7
 */
#endif                                 /* _RTW_HEADER_dwtdenoising_h_ */

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

⌨️ 快捷键说明

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