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

📄 rxfunctions.h

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

  Function   : External Functions used by the receiver.

  Procedures : 

  Author     : $Author: Adrian $

  Revision   : $Revision: 3 $

  Modified   : $Modtime: 05-05-22 15:53 $

  File       : $Workfile: rxfunctions.h $

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

#ifndef RX_FUNCTIONS_H
#define  RX_FUNCTIONS_H

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

#include <csl_stdinc.h>
#include "rxmain.h"

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


/*--- Global defines -------------------------------------------------------*/
/*=== End of global defines ================================================*/


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

typedef struct
{
  /* number of samples for energy computation */
  unsigned int unEnergyBlock;
  
  /* noise power */
  float fNoisePower1;
  float fNoisePower2;

  /* threshold for transmission detection */
  float fEnergyThrs;

  /* offset to approximate start */
  int iStartIndex;			// if negative, no start found

} typRX_ENERGYDETSTATE;

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


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


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


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

void computeEnergy(Int16 *pInBuff, const unsigned int uiInBuffSize,
    typRX_ENERGYDETSTATE *pEnergyDetState);
int decodeStartFrame(Uint8 *pDataBuffer, const unsigned int buflen,
	typRX_RECEIVESTATE *pReceiverState);

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

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

$Log: /MIMO/Receiver/rxfunctions.h $ 
 * 
 * 3     05-05-22 16:03 Adrian
 * changed the datatype for *pDataBuffer from char to Uint8
 * 
 * 2     20.05.05 8:56 Adrian
 * added the function prototype for decodeStartFrame()
 * 
 * 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 + -