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

📄 nspiirl.h

📁 利用intel dsplib 库函数进行特定2FSK信号(需传导频)解调
💻 H
📖 第 1 页 / 共 2 页
字号:
/*                                                                         */

   NSPAPI(void,nspwIirlInitBq,(NSPIirType      iirType, float  *taps,int numQuads,
                               NSPIirTapState *tapStPtr))
   NSPAPI(void,nspsIirlInitBq,(NSPIirType      iirType, float  *taps,int numQuads,
                               NSPIirTapState *tapStPtr))
   NSPAPI(void,nspcIirlInitBq,(NSPIirType      iirType, SCplx  *taps,int numQuads,
                               NSPIirTapState *tapStPtr))
   NSPAPI(void,nspdIirlInitBq,(NSPIirType      iirType, double *taps,int numQuads,
                               NSPIirTapState *tapStPtr))
   NSPAPI(void,nspzIirlInitBq,(NSPIirType      iirType, DCplx  *taps,int numQuads,
                               NSPIirTapState *tapStPtr))

/*-------------------------------------------------------------------------*/
/* FUNCTION:                                                               */
/*   nsp<s,c,d,z>IirlInitDlyl                                              */
/* DESCRIPTION:                                                            */
/*   Initialization of delay array for low-level IIR-filter.               */
/* PARAMETERS:                                                             */
/*   tapStPtr - input, the pointer to the tap state structure,             */
/*              initializated previously by the function nsp?IirInit or    */
/*              nsp?IirInitBq;                                             */
/*   dlyl     - input/output, the delay line array. In this implementation */
/*              the input array element values are ignored.                */
/*   dlyStPtr - output, the pointer to the delay line state structure.     */
/*                                                                         */

   NSPAPI(void,nspwIirlInitDlyl,(const NSPIirTapState *tapStPtr, long  *dlyl,
                                 NSPIirDlyState *dlyStPtr))
   NSPAPI(void,nspsIirlInitDlyl,(const NSPIirTapState *tapStPtr, float  *dlyl,
                                 NSPIirDlyState *dlyStPtr))
   NSPAPI(void,nspcIirlInitDlyl,(const NSPIirTapState *tapStPtr, SCplx  *dlyl,
                                 NSPIirDlyState *dlyStPtr))
   NSPAPI(void,nspdIirlInitDlyl,(const NSPIirTapState *tapStPtr, double *dlyl,
                                 NSPIirDlyState *dlyStPtr))
   NSPAPI(void,nspzIirlInitDlyl,(const NSPIirTapState *tapStPtr, DCplx  *dlyl,
                                 NSPIirDlyState *dlyStPtr))

/*-------------------------------------------------------------------------*/
/*         Iirl, bIirl                                                     */
/*                                                                         */
/* Filter a signal through a low-level IIR filter.                         */
/*-------------------------------------------------------------------------*/
/* FUNCTION:                                                               */
/*   nsp<s,c,d,z>Iirl                                                      */
/*   nsp<sc,cs,dz,zd>Iirl                                                  */
/* DESCRIPTION:                                                            */
/*   filters a single sample throuth a low-level IIR filter and returns    */
/*   the result.                                                           */
/* PARAMETERS:                                                             */
/*   tapStPtr - input, pointer to the tap state structure;                 */
/*   dlyStPtr - input, pointer to the delay line state structure;          */
/*   smp      - input, the sample value.                                   */
/* RETURNS:                                                                */
/*   the filtering result.                                                 */
/*                                                                         */

   NSPAPI(short, nspwIirl,(const NSPIirTapState *tapStPtr,NSPIirDlyState *dlyStPtr,
                           short           samp,    int  scaleMode,
                           int *scaleFactor))
   NSPAPI(float, nspsIirl,(const NSPIirTapState *tapStPtr,NSPIirDlyState *dlyStPtr,
                           float           samp))
   NSPAPI(SCplx, nspcIirl,(const NSPIirTapState *tapStPtr,NSPIirDlyState *dlyStPtr,
                           SCplx           samp))
   NSPAPI(double,nspdIirl,(const NSPIirTapState *tapStPtr,NSPIirDlyState *dlyStPtr,
                           double          samp))
   NSPAPI(DCplx, nspzIirl,(const NSPIirTapState *tapStPtr,NSPIirDlyState *dlyStPtr,
                           DCplx           samp))

   NSPAPI(SCplx,nspscIirl,(const NSPIirTapState *tapStPtr,NSPIirDlyState *dlyStPtr,
                           float           samp))
   NSPAPI(SCplx,nspcsIirl,(const NSPIirTapState *tapStPtr,NSPIirDlyState *dlyStPtr,
                           SCplx           samp))
   NSPAPI(DCplx,nspdzIirl,(const NSPIirTapState *tapStPtr,NSPIirDlyState *dlyStPtr,
                           double          samp))
   NSPAPI(DCplx,nspzdIirl,(const NSPIirTapState *tapStPtr,NSPIirDlyState *dlyStPtr,
                           DCplx           samp))

   NSPAPI(void, nspcIirlOut,(const NSPIirTapState *tapStPtr,NSPIirDlyState *dlyStPtr,
                             SCplx           samp, SCplx* val))
   NSPAPI(void,nspscIirlOut,(const NSPIirTapState *tapStPtr,NSPIirDlyState *dlyStPtr,
                             float           samp, SCplx* val))
   NSPAPI(void,nspcsIirlOut,(const NSPIirTapState *tapStPtr,NSPIirDlyState *dlyStPtr,
                             SCplx           samp, SCplx* val))

/*-------------------------------------------------------------------------*/
/* FUNCTION:                                                               */
/*   nsp<s,c,d,z>bIirl                                                     */
/*   nsp<sc,cs,dz,zd>bIirl                                                 */
/* DESCRIPTION:                                                            */
/*   filters an input block of samples throuth a low-level IIR filter and  */
/*   returns the result in output block.                                   */
/* PARAMETERS:                                                             */
/*   tapStPtr - input, the pointer to the tap state structure;             */
/*   dlyStPtr - input, the pointer to the delay line state structure;      */
/*   inSamps  - input, the block of samples;                               */
/*   outSamps - output, the block of filtered samples;                     */
/*   numIters - input, the size of samples' block.                         */
/*                                                                         */

   NSPAPI(void,nspwbIirl,(const NSPIirTapState *tapStPtr,NSPIirDlyState *dlyStPtr,
                          const short          *inSamps, short          *outSamps,
                          int             numIters,int  scaleMode,
                          int *scaleFactor))
   NSPAPI(void,nspsbIirl,(const NSPIirTapState *tapStPtr,NSPIirDlyState *dlyStPtr,
                          const float          *inSamps, float          *outSamps,
                          int             numIters))
   NSPAPI(void,nspcbIirl,(const NSPIirTapState *tapStPtr,NSPIirDlyState *dlyStPtr,
                          const SCplx          *inSamps, SCplx          *outSamps,
                          int             numIters))
   NSPAPI(void,nspdbIirl,(const NSPIirTapState *tapStPtr,NSPIirDlyState *dlyStPtr,
                          const double         *inSamps, double         *outSamps,
                          int             numIters))
   NSPAPI(void,nspzbIirl,(const NSPIirTapState *tapStPtr,NSPIirDlyState *dlyStPtr,
                          const DCplx          *inSamps, DCplx          *outSamps,
                          int             numIters))

   NSPAPI(void,nspscbIirl,(const NSPIirTapState *tapStPtr,NSPIirDlyState *dlyStPtr,
                           const float          *inSamps, SCplx          *outSamps,
                           int             numIters))
   NSPAPI(void,nspcsbIirl,(const NSPIirTapState *tapStPtr,NSPIirDlyState *dlyStPtr,
                           const SCplx          *inSamps, SCplx          *outSamps,
                           int             numIters))
   NSPAPI(void,nspdzbIirl,(const NSPIirTapState *tapStPtr,NSPIirDlyState *dlyStPtr,
                           const double         *inSamps, DCplx          *outSamps,
                           int             numIters))
   NSPAPI(void,nspzdbIirl,(const NSPIirTapState *tapStPtr,NSPIirDlyState *dlyStPtr,
                           const DCplx          *inSamps, DCplx          *outSamps,
                           int             numIters))

#endif                                 /* _NSPIIRL_H                      */
#ifdef __cplusplus
}
#endif

⌨️ 快捷键说明

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