📄 rxhostcomm.h
字号:
/*****************************************************************************
Module : Host Communication (DSP-PC)
******************************************************************************
Function : Contains the initialization, functions and tasks to provide
the communication with the host.
Procedures : tskHostComm()
Author : $Author: Maxime $
Revision : $Revision: 4 $
Modified : $Modtime: 23/05/05 11:22 $
File : $Workfile: rxhostcomm.h $
******************************************************************************
KTH, Royal Institute of Technology, S3, Stockholm
*****************************************************************************/
#ifndef RX_RTDXHOSTCOMM_H
#define RX_RTDXHOSTCOMM_H
/*--- Include files --------------------------------------------------------*/
#include <rtdx.h>
#include <csl_stdinc.h>
#include "../common/commondef.h"
#include "rxmain.h"
#include "rxswitchmgr.h"
#include "rxdetector.h"
/*=== End of include files =================================================*/
/*--- Global defines -------------------------------------------------------*/
#define INITLEN 6
#define DATABURSTLEN 1024
/*=== End of global defines ================================================*/
/*--- Global types declaration ---------------------------------------------*/
typedef enum
{
eRXHST_IDLE,
eRXHST_WAITING,
eRXHST_GETPARAMS,
eRXHST_GETNBRFRAMES,
eRXHST_GETSTATUS,
eRXHST_TRANSMITTFILE
} typRXHST_eHostCommState;
typedef struct
{
/* pointer to the Rx state */
typRX_eRxState *pRxState;
/* pointer to the data buffer */
char *pDataBuff;
/* pointer to the file size variable (Read by the receiver from the first frame)*/
unsigned int *puiFileSizeHat;
/* pointer to the system selection */
typCOM_eCommMethod *pTxMode;
/* pointer to the synchronization interval */
int *piSyncRep;
/* pointer to the frame processed */
unsigned int *puiFrameNbr;
/* pointer to the number of blocks */
unsigned int *puiNoOfBlocks;
/* The frames number is available*/
char cTransReady;
/* A new frame is processed*/
char cNewFrameReady;
/* Detector type */
typRX_DetectorMethod *puiDetector;
/* Antenna selection type */
typRX_eAntenna *puiAntennaSelection;
/* Channel parameters */
float *pH_r;
float *pH_i;
/* Antenna selection */
typRX_eSwitch1 *puiPosSwitch1;
typRX_eSwitch2 *puiPosSwitch2;
} typRXHST_HOSTCOMMSTATE;
/*=== 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 tskHostComm();
void tskHostCommInitialize();
/*=== End of global functions declaration ==================================*/
#endif
/*--- AUTOMATICALLY GENERATED VERSION HISTORY --------------------------------
$Log: /MIMO/Receiver/rxhostcomm.h $
*
* 4 23/05/05 11:28 Maxime
* The switch state sent to the hostcomm is one step-ahead. The one sent
* to the GUI is now the one used for the current frame
*
* 3 22/05/05 20:55 Maxime
* Test file sizes before transmitting to the host
*
* 2 19/05/05 12:26 Maxime
* Communicating part with the host written
*
* 1 05-05-11 14:50 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 + -