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

📄 tidtv_sysctrl.h

📁 ti的数字电视芯片 tvp9000的源码
💻 H
📖 第 1 页 / 共 2 页
字号:
/*******************************************************************************
*	@ModuleName  ::	TiDTV_SysCtrl.h
*	
*	@Copyright	 ::	Copyright 2005- Texas Instruments, Inc.
*	
*	@Description ::	Common definitions for Entire DTV System
*	
*	@History     ::
*---------------------------------------
*	02-19-2005	W.Shi	Created
*******************************************************************************/

#ifndef	_TI_DTV_SYS_CTRL_H_
#define	_TI_DTV_SYS_CTRL_H_

#define	TI_DTV_E_OK			0
#define	TI_DTV_E_NG			(-1)

//----------------------------------------------------------
//	Display (LCD Panel/DLP/PDP/CRT) resolutions
//
#if	defined(TI_DTV_DISPLAY_1080i)
	#define	TI_DTV_DISPLAY_WIDTH		1920		// Horizontal resolution
	#define	TI_DTV_DISPLAY_HEIGHT		1080		// Vertical resolution
	
	#define	TI_DTV_DISPLAY_SAFE_X		(TI_DTV_DISPLAY_WIDTH / 20)
	#define	TI_DTV_DISPLAY_SAFE_Y		(TI_DTV_DISPLAY_HEIGHT / 20)
	#define	TI_DTV_DISPLAY_SAFE_WIDTH	((TI_DTV_DISPLAY_WIDTH * 9) / 10)
	#define	TI_DTV_DISPLAY_SAFE_HEIGHT	((TI_DTV_DISPLAY_HEIGHT * 9) / 10)
#elif defined(TI_DTV_DISPLAY_1080p)
	#define	TI_DTV_DISPLAY_WIDTH		1920		// Horizontal resolution
	#define	TI_DTV_DISPLAY_HEIGHT		1080		// Vertical resolution
	
	#define	TI_DTV_DISPLAY_SAFE_X		(TI_DTV_DISPLAY_WIDTH / 20)
	#define	TI_DTV_DISPLAY_SAFE_Y		(TI_DTV_DISPLAY_HEIGHT / 20)
	#define	TI_DTV_DISPLAY_SAFE_WIDTH	((TI_DTV_DISPLAY_WIDTH * 9) / 10)
	#define	TI_DTV_DISPLAY_SAFE_HEIGHT	((TI_DTV_DISPLAY_HEIGHT * 9) / 10)
#elif defined(TI_DTV_DISPLAY_480p)
	#define	TI_DTV_DISPLAY_WIDTH		720			// Horizontal resolution
	#define	TI_DTV_DISPLAY_HEIGHT		480			// Vertical resolution
	
	#define	TI_DTV_DISPLAY_SAFE_X		(TI_DTV_DISPLAY_WIDTH / 20)
	#define	TI_DTV_DISPLAY_SAFE_Y		(TI_DTV_DISPLAY_HEIGHT / 20)
	#define	TI_DTV_DISPLAY_SAFE_WIDTH	((TI_DTV_DISPLAY_WIDTH * 9) / 10)
	#define	TI_DTV_DISPLAY_SAFE_HEIGHT	((TI_DTV_DISPLAY_HEIGHT * 9) / 10)
#elif defined(TI_DTV_DISPLAY_480i)
	#define	TI_DTV_DISPLAY_WIDTH		720			// Horizontal resolution
	#define	TI_DTV_DISPLAY_HEIGHT		480			// Vertical resolution
	
	#define	TI_DTV_DISPLAY_SAFE_X		(TI_DTV_DISPLAY_WIDTH / 20)
	#define	TI_DTV_DISPLAY_SAFE_Y		(TI_DTV_DISPLAY_HEIGHT / 20)
	#define	TI_DTV_DISPLAY_SAFE_WIDTH	((TI_DTV_DISPLAY_WIDTH * 9) / 10)
	#define	TI_DTV_DISPLAY_SAFE_HEIGHT	((TI_DTV_DISPLAY_HEIGHT * 9) / 10)
#elif defined(TI_DTV_DISPLAY_WXGA)
	#define	TI_DTV_DISPLAY_WIDTH		1368		// Horizontal resolution: 1360/1368
	#define	TI_DTV_DISPLAY_HEIGHT		768			// Vertical resolution
	
	#define	TI_DTV_DISPLAY_SAFE_X		68			// (TI_DTV_DISPLAY_WIDTH / 20)
	#define	TI_DTV_DISPLAY_SAFE_Y		38			// (TI_DTV_DISPLAY_HEIGHT / 20)
	#define	TI_DTV_DISPLAY_SAFE_WIDTH	1224		// ((TI_DTV_DISPLAY_WIDTH * 9) / 10)
	#define	TI_DTV_DISPLAY_SAFE_HEIGHT	690			// ((TI_DTV_DISPLAY_HEIGHT * 9) / 10)
#elif defined(TI_DTV_DISPLAY_WVGA)
	#define	TI_DTV_DISPLAY_WIDTH		856			// Horizontal resolution: 848/856
	#define	TI_DTV_DISPLAY_HEIGHT		480			// Vertical resolution
	
	#define	TI_DTV_DISPLAY_SAFE_X		(TI_DTV_DISPLAY_WIDTH / 20)
	#define	TI_DTV_DISPLAY_SAFE_Y		(TI_DTV_DISPLAY_HEIGHT / 20)
	#define	TI_DTV_DISPLAY_SAFE_WIDTH	((TI_DTV_DISPLAY_WIDTH * 9) / 10)
	#define	TI_DTV_DISPLAY_SAFE_HEIGHT	((TI_DTV_DISPLAY_HEIGHT * 9) / 10)
#else		// default: 720p
	#define	TI_DTV_DISPLAY_WIDTH		1280		// Horizontal resolution
	#define	TI_DTV_DISPLAY_HEIGHT		720			// Vertical resolution
	
	#define	TI_DTV_DISPLAY_SAFE_X		(TI_DTV_DISPLAY_WIDTH / 20)
	#define	TI_DTV_DISPLAY_SAFE_Y		(TI_DTV_DISPLAY_HEIGHT / 20)
	#define	TI_DTV_DISPLAY_SAFE_WIDTH	((TI_DTV_DISPLAY_WIDTH * 9) / 10)
	#define	TI_DTV_DISPLAY_SAFE_HEIGHT	((TI_DTV_DISPLAY_HEIGHT * 9) / 10)
#endif

//----------------------------------------------------------
#define	TI_DTV_FLASH_BASE_ADDR			0x20000000
#define	TI_DTV_FLASH_MEM_BYTE_SIZE		0x200000

#define	TI_DTV_DDR_BASE_ADDR			0x10000000
#define	TI_DTV_DDR_MEM_BYTE_SIZE		0x2000000

#define TI_DTV_OSD_BITMAP_BYTE_SIZE		(TI_DTV_DISPLAY_SAFE_WIDTH * TI_DTV_DISPLAY_SAFE_HEIGHT)

//----------------------------------------------------------
// System Date and Time (Local)
// (updated through PSIP STT or XDS or RTC)
//
typedef struct _TI_DTV_SYS_DATE_TIME_ {
	UINT16	Year;				// Year: 4 digits
	UINT8	Month;				// Month: 1 - 12
	UINT8	Day;				// Day: 1 - 31
	UINT8	WeekDay;			// Weekday: 0 - 6
	UINT8	Hour;				// Hour: 0 - 23
	UINT8	Minute;				// Minute: 0 - 59
	UINT8	Second;				// Second: 0 - 59
} TI_DTV_SYS_DATE_TIME;

//----------------------------------------------------------
// DTV Channel status
//
typedef union _TI_DTV_CH_STATUS_ {
	UINT8	Data;
	
	struct {
		UINT	Reserved:		4;					// Reserved
		UINT	Skip:			1;					// Skip Chan-Up/Chan-Down
		UINT	Favorite:		1;					// Favorite flag
		UINT	Analog:			1;					// DTV (=0) /Analog TV (=1) channel flag
		UINT	Locked:			1;					// Locked/Not-locked flag
	} Bits;
} TI_DTV_CHAN_STATUS;

#define	TI_DTV_MIN_PHY_CHANNEL_NO			2		// minimum Physical Channel Number
#define	TI_DTV_MAX_PHY_CHANNEL_NO			69		// maximum Physical Channel Number: ATSC = 69 (83 ?)
#define	TI_DTV_MAX_NUM_PHY_CHANNEL			(TI_DTV_MAX_PHY_CHANNEL_NO - TI_DTV_MIN_PHY_CHANNEL_NO + 1)
#define	TI_DTV_MAX_NUM_FAVORATE_CHANNEL		5		// maximum number of Favorite channels
#define	TI_DTV_MAX_NUM_CABLE_PHY_CHANNEL	200

//----------------------------------------------------------
// DTV System management
//
typedef struct _TI_DTV_SYS_CTRL_ {
	USHORT	Version;								// Version number: ##.##
	
	USHORT	CurPcrPID;								// Current PCR PID (13-bit)
	USHORT	CurVideoPID;							// Current Video PID (13-bit)
	USHORT	CurAudioPID;							// Current Audio PID (13-bit)
	
	USHORT	AvTimeOutValue;							// Time out value for AV Input Status Checking
	USHORT	AvTimeCount;							// Time counter for AV Input Status Checking
	
	UINT8	DaylightSavings;						// Input = Daylight Savings Status: 1 = Yes, 0 = No
	INT8	TimeZone;								// Input = Time zone: [-12, +13]
	UINT8	SleepTime;								// Sleep time in Minutes: 30/60/90/180 minutes
	
	UINT8	AvInput;								// AV Input: 0 = DTV
	UINT8	AudioVolume;							// Volume of Audio: bit7 = 1 (Mute)
	INT8	Brightness;								// Brightness
	UINT8	Contrast;								// Contrast
	INT8	Hue;									// Hue
	UINT8	Saturation;								// Saturation
	
	UINT8	ScaleMethod;							// scaling format
	UINT16	MenuTimeOutValue;						// Time out value for Menu Task
	UINT16	PromptMsgTimeOutValue;					// Time out value for Prompt Message Task
	
	UINT8	AirCableSel;							// 0 = Air, 1 = Cable-IRC, 2 = Cable-HRC, 3 = Cable-STD
	UINT8	TotalNumCablePhyChanATV;				// Total number of Locked Physical Channels (A-TV)
	UINT8	TotalNumPhyChanATV;						// Total number of Locked Physical Channels (A-TV)
 	UINT8	CurPhyChanATV;							// Current ATV Physical Channel Number (6MHz)
 	
 	UINT8	TotalNumPhyChanDTV;						// Total number of Locked Physical Channels (D-TV)
 	UINT8	CurPhyChanDTV;							// Current DTV Physical Channel Number (6MHz)
 	UINT8	CurProgTableIdx;						// Current DTV Channel Index in Program Table: 0 - (TotalNumPhyChanDTV - 1)
 	INT8	CurProgramIdx;							// Current Program Index Number within a 6MHz Band
	INT8	CurAudioIdx;							// Current Audio Index within the V-Channel/Program
	
	UINT8	PreviousPhyChanATV;						// Previous ATV Physical Channel Number (6MHz)
	UINT8	PreviousProgTableIdx;					// Previous DTV Channel Index in Program Table
	INT8	PreviousProgramIdx;						// Previous Program Index Number within a 6MHz Band
	
	UINT8	Language;								// Display language: 0 = English
	UINT8	TotalNumFavoriteChan;					// Total number of favorate channels
	UINT8	AutoTvChanScanFlag;						// Auto TV Channel Scanning Flag: 1 = A-TV, 2 = D-TV, 3 = A-TV & D-TV
	TI_DTV_CHAN_STATUS ChanStatus[TI_DTV_MAX_NUM_PHY_CHANNEL];		// D-TV/A-TV: Air
	TI_DTV_CHAN_STATUS CableChanStatus[TI_DTV_MAX_NUM_CABLE_PHY_CHANNEL];	// A-TV: Cable
} TI_DTV_SYS_CTRL;

//----------------------------------------------------------
// Closed Captioning Contrl structure
//
typedef struct _TI_DTV_CC_CTRL_ {
	USHORT	CcTimeOutValue;							// Time out value for CC Automatic Erasing
	USHORT	CcTimeCount;							// Time counter for CC Automatic Erasing
	
	UINT8	DispCtrl;								// CC Display Contrl: Disable/Enable/On-Mute

⌨️ 快捷键说明

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