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

📄 qpsk0299.h

📁 stv0299资料
💻 H
字号:
#ifndef __QPSK0299_H__
#define __QPSK0299_H__

/*
 * vic_tuner.h
 *
 * (c) Copyright SGS-Thomson Microelectronics Limited 1996. 
 *
 * Source file name : tuner.h
 * Author(s)    Christina LIM (christina.lim@st.com)
 *              T.H.Thillai Rajan (tht.rajan@st.com)
 *					 I.Ravi (ilpakurthy.ravi@st.com)
 *
 * Original Work:  Emmanuael LUSINCHI
 *
 * Thanks to: (for giving support)
 *              Michel GUILLIEN 
 *
 * NOTE ==> It is assumed that the TARGET hardware uses the 4MHz crystal as
 *				system clock. If 27MHz crystal is used then please define the
 *				constant SYSCLOCK_IS_27MHZ
 *
 * =====================
 * MODIFICATION HISTORY:
 * =====================
 *
 * Date        Modification                Initials
 * ----        ------------                --------
 */

#define 	SP5055_PLL_INSIDE_TUNER 

/* 
 * use the 27 MHz is the system clock to 199.
 * if you use 4MHz crystal then please comment the following line
 */
/* #define 	SYSCLOCK_IS_27MHZ   	*/


/* #define  CRITICAL_STAGE_DEBUGGING */ 	
                                    
/*
 * Test the reporting modes.
 */
#if (defined(DEVELOPMENT_STAGE_DEBUGGING) + defined(CRITICAL_STAGE_DEBUGGING)) > 1
   #error "Too many reporting modes defined"
#endif


#ifdef  DEVELOPMENT_STAGE_DEBUGGING
	#define PRINT_INIT
	#define PRINT_I2C_ERROR
	#define PRINT_TUNER_STATE_CHANGE
	#define PRINT_TUNER_STATE_MC
	#define PRINT_TUNER_CRITICAL
	#define PRINT_PERIODIC
	#define PRINT_DEBUG
#endif

#ifdef  CRITICAL_STAGE_DEBUGGING
	#define PRINT_INIT
	#define PRINT_I2C_ERROR
	#define PRINT_TUNER_CRITICAL
	#define PRINT_PERIODIC
#endif

#define UINT    unsigned int

#define ECHO_BAND_LNB_FREQ      11250000        /* (in KHz) LNB freq for L-Band */
#define ALPHA_BAND_LNB_FREQ     10750000        /* (in KHz) LNB freq for TeeComm */

#define C_BAND_LNB_FREQ         5150000         /* (in KHz) LNB freq for C-Band */
#define EUR_DBS_BAND_LNB_FREQ   10600000        /* (in KHz) LNB frequency for Ku-Band */

/* Tuner input values */
/* polarization */
#define TUNER_POL_HORIZ          0x00
#define TUNER_POL_VERT           0x01
#define TUNER_POL_LEFT           0x02
#define TUNER_POL_RIGHT          0x03

/* punctured rate */
#define TUNER_PRATE_AUTO         0x01
#define TUNER_PRATE_12           0x02
#define TUNER_PRATE_23           0x03
#define TUNER_PRATE_34           0x04
#define TUNER_PRATE_56           0x05
#define TUNER_PRATE_78           0x06
#define TUNER_PRATE_11           0x0F

#if 1
	/*
	 * DEUTCH WAELLE - default XPDR
	 */
	#define         DEFAULT_TRANSPONDER_FREQ   4000000              /* in KHz */
	#define         DEFAULT_SYMBOL_RATE        28125                /* in KS/Sec */
	#define         DEFAULT_POLARIZATION       TUNER_POL_HORIZ
#else
	/*
	 * STAR-II
	 */
	#define         DEFAULT_TRANSPONDER_FREQ   3900000              /* in KHz */
	#define         DEFAULT_SYMBOL_RATE        28100                /* in KS/Sec */
	#define         DEFAULT_POLARIZATION       TUNER_POL_VERT
#endif

#define 	DEFAULT_LNB_FREQ					C_BAND_LNB_FREQ
#define 	DEFAULT_LNB_SOURCE    				LNB1
#define		FREQ_LIMIT_TO_TURN_ON_22KHZ			1900000 			/* in KHz */


/* Interface functions */
boolean FE_StillLocked( void );

int      DVBTunerInit ( void );

void	   DVBNewTuneReq ( TRANSPONDER_INFO_STRUCT *pstTransponderInfo );
void 		check_tuner_locked_flag ( void );
void     SetupLnbPower ( void );
void     SetupPolarization ( void );
void     DEMOD_Delay ( unsigned int uiDelayInMilliSec );

#endif /*__QPSK0299_H__*/

⌨️ 快捷键说明

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