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

📄 drv_nim_qpsk_internal.h

📁 tunner驱动
💻 H
字号:
#ifndef _DRV_NIM_QPSK_INTERNAL_H_
#define _DRV_NIM_QPSK_INTERNAL_H_

/****************************************************************
*
* FILENAME
*	DRV_NIM_QPSK_Internal.h
*
* PURPOSE 
*	EMMA2L Reference Model NIM QPSK Driver Internal Header
*
* AUTHOR
*	Kenji.Matsuura
*
* DATE 
*	10/04/2002
*
* HISTORY 
*
*
*****************************************************************/


/****************************************************************
*	Define Variable Types
****************************************************************/
#define		FREQ_VALID_RANGE	125		/* 125KHz */

#define		DRV_NIM_QPSK_SPECTRUM_INVERTED		1	
#define		DRV_NIM_QPSK_SPECTRUM_NOT_INVERTED	0	

#define		DRV_NIM_MINIMUM_SYMBOLRATE		1000	/*  1.000Msps */
#define		DRV_NIM_MAXIMUM_SYMBOLRATE		45000	/* 45.000Msps */
#define		QPSK_CHIP_ADDR		0x1C				/* Sumsung NIM */

#define		QPSK_SW_OFF			0
#define		QPSK_SW_ON			1
#define		QPSK_DISABLE		0
#define		QPSK_ENABLE			1

#define		NIM_CALLBACK_TABLE_EXIST	1
#define		NIM_CALLBACK_TABLE_NOTHING	0

/****************************************************************
*	Outside reference
****************************************************************/
extern DRV_NIM_QPSK_STATUS		QpskStatusInfo;

extern MMAC_RTOS_SEMAPHORE			DRV_NIM_Semaphore;	/* Semaphore for NIM Program	*/



/****************************************************************
*	Define Variable Types
****************************************************************/
typedef	struct {
	int DFNumber;		/* Number	*/
	int DFRatio;		/* Ratio	*/
	int DFGain;			/* Gain		*/
} DF_TABLE ;


typedef	struct {
	int PLLS;		/* PLL Configuration Parameter N		*/
	int PLLN;		/* PLL Configuration Parameter N 		*/
	int PLLT;		/* PLL Configuration Parameter T 		*/
	int PLLM;		/* VCO Frequency Range for PLL Module	*/
}PLL_TABLE;

typedef struct{
	I8		SpiNum;
	I8		SpiDen;
}VITERBI_RATE_TBL;




/*----------------------------------------------------------*/
/* Set Sweep Limit for Low Symbol Rate						*/
/* CarSweepLImit Area:CarSweepLim							*/
/*							:     ~15000 = 4000				*/
/*							: 7500~14999 = 3500				*/
/*							: 3750~7499  = 1000				*/
/*							: ~3749      =  800				*/
/*----------------------------------------------------------*/
#define CARRIER_SWEEP_LIMIT_HIGH	3500
#define	CARRIER_SWEEP_LIMIT_MID		3500
#define	CARRIER_SWEEP_LIMIT_MID_1	1000
#define	CARRIER_SWEEP_LIMIT_LOW		1000


/*----------------------------------------------------------*/
/* CarSweepRate Area:dCarSwr = SymbolRate * CarSweepRate	*/
/* 							:     ~15000 = 4000 4000		*/
/*							: 7500~14999 = 4000 3500		*/
/*							: 3500~7499  = 2000 1000		*/
/*							: 2001~3499  = 1000				*/
/*							: ~2001      = Calc				*/
/*----------------------------------------------------------*/
#define CARRIER_SWEEP_RATE_HIGH		4000
#define CARRIER_SWEEP_RATE_HIGH1	2000
#define	CARRIER_SWEEP_RATE_MID		2000
#define	CARRIER_SWEEP_RATE_LOW		1000
#define	CARRIER_SWEEP_RATE_LOW1	 	800	


#define	CLK_SWEEP_RATE_PRM_HIGH		(double)104238			/*	45000-7500			*/
#define	CLK_SWEEP_RATE_PRM_LOW		(double)20616			/*	 7499-   0			*/

#define CLK_SWEEP_LIMIT_PRM			(double)(6.5536 * 3)



/****************************************************************
*	Global Functions
****************************************************************/

BOOL	DRV_NIM_QPSK_StatusCheck(void);
BOOL	DRV_NIM_QPSK_SetRegister(UI8 Reg,UI8 SetValue);

DRV_NIM_RESULT  DRV_NIM_GetGroup4(void);
DRV_NIM_RESULT  DRV_NIM_GetGroup3(void);
DRV_NIM_RESULT  DRV_NIM_ClearGroup4(void);
DRV_NIM_RESULT  DRV_NIM_SetGroup4(void);
DRV_NIM_RESULT  DRV_NIM_Reset(void);


#endif

⌨️ 快捷键说明

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