📄 txmain.h
字号:
/*****************************************************************************
Module : Main Transmitter Definitions
******************************************************************************
Function : Header file for the main transmitter.
Procedures : main()
processSISO()
processMIMO()
processBuffer()
checkDIPswitch()
Author : Adrian Schumacher
Old History: 2005-04-18 AS created
2005-04-27 AS version 0.2
2005-05-08 AS version 0.3, processMIMO/SISO added.
Author : $Author: Adrian $
Revision : $Revision: 5 $
Modified : $Modtime: 05-05-20 13:39 $
File : $Workfile: txmain.h $
******************************************************************************
KTH, Royal Institute of Technology, S3, Stockholm
*****************************************************************************/
#ifndef TX_MAIN_H
#define TX_MAIN_H
/*--- Include files --------------------------------------------------------*/
#include <csl_stdinc.h>
#include "../common/commondef.h"
/*=== End of include files =================================================*/
/*--- Global defines -------------------------------------------------------*/
#define SDRAM_BASE_ADDR 0x80000000
/* number of data bytes per frame multiplyed by the channels (i.e. 2*128 bytes) */
#define DATABUFFSIZE (CHANNELS*(DATASYMBOLS >> 1))
/* buffer for file to transmit (8MB) */
#define FILEBUFF (8*1024*1024)
/* size of one frame buffer (before upsampling) */
#define FRAMEBUFFSIZE FRAMESYMBLENGTH
/*=== End of global defines ================================================*/
/*--- Global types declaration ---------------------------------------------*/
/* States for the transmitter */
typedef enum
{
eTX_IDLE,
eTX_STARTTX,
eTX_STARTFRAME,
eTX_SYNCFRAME,
eTX_DATAFRAMES,
eTX_LASTFRAME,
eTX_TERMINATION,
eTX_CLEARBUFFER,
eTX_DISABLETX
} typTX_eTxState;
/* States for the transmitter protocol */
typedef struct
{
/* state variable for the communication method (SISO/MIMO) */
typCOM_eCommMethod TxMethod;
/* transmitting state */
typTX_eTxState TxState;
/* synchronization repetition (every ? frame)
if 1, only send sync frames
if 0, don't send any more sync (first sync will always be sent) */
int iSyncRep;
/* size of the file in pDataBuff */
unsigned int uFileSize;
/* number of blocks to transmit (each data and sync frame contains one block) */
unsigned int uNoOfBlocks;
// Frame processed
unsigned int uFrameNbr;
} typTX_TRANSMITSTATE;
/*=== 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 main(void);
void processSISO(Int16 *pBufferXmt);
void processMIMO(Int16 *pBufferXmt);
void processBuffer(void);
void checkDIPswitch(void);
/*=== End of global functions declaration ==================================*/
#endif
/*--- AUTOMATICALLY GENERATED VERSION HISTORY --------------------------------
$Log: /MIMO/Transmitter/txmain.h $
*
* 5 05-05-20 18:30 Adrian
* added eTX_CLEARBUFFER to typTX_eTxState
*
* 4 05-05-20 9:15 Adrian
* moved typTX_eTxState from commondef.h to here
*
* 3 19/05/05 21:14 Maxime
* Increased the buffersize for the data file to 8MBytes
*
* 2 05-05-16 19:13 Maxime
* State variable for host comm. interface
*
* 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 + -