📄 txhostcomm.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: 5 $
Modified : $Modtime: 21/05/05 13:22 $
File : $Workfile: txhostcomm.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"
/*=== End of include files =================================================*/
/*--- Global defines -------------------------------------------------------*/
#define INITLEN 6 // Number of integers sent for initialization
#define DATABURSTLEN 1024 // Number of integers sent by burst
#define DELAYTURBOMODE 1 // Number of received bursts before sending frames
/*=== End of global defines ================================================*/
/*--- Global types declaration ---------------------------------------------*/
typedef enum
{
eTXHST_IDLE,
eTXHST_WAITING,
eTXHST_GETNBRFRAMES,
eTXHST_GETSTATUS,
eTXHST_GETPARAMS,
eTXHST_TRANSMITTFILE
} typTXHST_eHostCommState;
typedef struct
{
/* pointer to the Tx state */
typTX_eTxState *pTxState;
/* pointer to the data buffer */
char *pDataBuff;
/* pointer to the file size variable */
unsigned int *puiFileSize;
/* pointer to the system selection */
typCOM_eCommMethod *pTxMode;
/* pointer to the synchronizarion interval */
int *piSyncRep;
/* pointer to the frame processed */
unsigned int *puiFrameNbr;
/* pointer to the number of blocks */
unsigned int *piuNoOfBlocks;
/* The frames number is available*/
char cTransReady;
/* A new frame is processed*/
char cNewFrameReady;
} typTXHST_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/Transmitter/txhostcomm.h $
*
* 5 21/05/05 14:14 Maxime
* Turbo Mode implemented (simultaneous downloading & sending)
*
* 4 20/05/05 12:23 Maxime
* Added the state GETPARAMS
*
* 3 19/05/05 11:58 Maxime
* Added semaphores in the eTXHST_GETSTATUS and eTXHST_GETNBRFRAMES.
*
* 2 05-05-16 19:14 Maxime
* Implementation of host communication
*
* 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 + -