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

📄 rxdemodulator.h

📁 MIMO 2x2接收端选择全系统仿真代码
💻 H
字号:
/*****************************************************************************
  Module     : Demodulator
******************************************************************************

  Function   : 

  Procedures : none

  Author     : $Author: Adrian $

  Revision   : $Revision: 7 $

  Modified   : $Modtime: 05-05-28 12:25 $

  File       : $Workfile: rxdemodulator.h $

******************************************************************************
 KTH, Royal Institute of Technology, S3, Stockholm
*****************************************************************************/

#ifndef RX_DEMODULATOR_H
#define  RX_DEMODULATOR_H

/*--- Include files --------------------------------------------------------*/

#include <csl_stdinc.h>

#include "../common/commondef.h"

/*=== End of include files =================================================*/


/*--- Global defines -------------------------------------------------------*/
#define MFFILTLEN 61
/*=== End of global defines ================================================*/


/*--- Global types declaration ---------------------------------------------*/

typedef struct
{
  /* pointer to the complex received and downconverted signal */
  typCOM_fCPLXBUFF *pCplxInBuff;
  /* length of the received signal in the buffer */
  unsigned int uiRcvSigLen;
  /* pointer to the complex output buffer */
  typCOM_fCPLXBUFF *pfCplxOutBuff;
  /* number of samples processed by the filter */
  unsigned int uiSamplesProcessed;

  /* index of the next startsample to write in the pfCplxOutBuff */
  int iStartIndex;
  /* index of the next sample to write in the pfCplxOutBuff */
  //unsigned int uiNextWriteSamp;
  /* pointer to the complex symbol buffer */
  typCOM_fCPLXBUFF *pfCplxSymbBuff;
  /* number of symbols currently in buffer */
  unsigned int uiNoOfSymb;
  /* index of the next symbol to write in the pfCplxSymbBuff */
  unsigned int uiNextWriteSymb;
  /* index of the next symbol to read from the pfCplxSymbBuff */
  unsigned int uiNextReadSymb;
  /* length of the circular buffer */
  unsigned int uibuflen;
} typRX_MFDEMODSTATE;

/*=== End of global types declaration ======================================*/


/*--- Global variables declaration -----------------------------------------*/
/*=== End of global variables declaration ==================================*/


/*--- Global constants declaration -----------------------------------------*/
extern int iSyncIndex;
/*=== End of global constants declaration ==================================*/


/*--- Global functions declaration -----------------------------------------*/

void matchedFilter(typRX_MFDEMODSTATE *pDemodState);
void downsampling(typRX_MFDEMODSTATE *pDemodState);

/*=== End of global functions declaration ==================================*/
#endif

/*--- AUTOMATICALLY GENERATED VERSION HISTORY --------------------------------

$Log: /MIMO/Receiver/rxdemodulator.h $ 
 * 
 * 7     05-05-28 12:40 Adrian
 * type of uibuflen corrected from int to unsigned int
 * 
 * 6     05-05-27 20:45 Adrian
 * added a state variable to enable the use of circular buffers
 * 
 * 5     05-05-24 20:47 Anders
 * The function DSPF_sp_fir_gen() working well with matlab. Still have to
 * check that memmove and downsampling generate correct results.
 * 
 * 4     05-05-24 12:22 Anders
 * Changed the name of the demodulation function to downsampling.
 * uiRcvSigLen now indicates how many samples are available in I and Q
 * each.
 * 
 * 3     05-05-20 19:36 Anders
 * State structure modified
 * 
 * 1     05-05-11 17:00 Adrian
 * created and added to VSS

===== END OF AUTOMATICALLY GENERATED VERSION HISTORY =======================*/

/**** End of file ***********************************************************/

⌨️ 快捷键说明

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