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

📄 tvp6000_bak.h

📁 在海尔的DM642开发板实现RF5框架
💻 H
字号:
/*
 *  Copyright 2003 by Texas Instruments Incorporated.
 *  All rights reserved. Property of Texas Instruments Incorporated.
 *  Restricted rights to use, duplicate or disclose this code are
 *  granted through contract.
 *  
 */
/* "@(#) DDK 1.10.00.23 07-02-03 (ddk-b12)" */
/********************************************************************************/
/* TVP6000.h file */
/********************************************************************************/
#ifndef _TVP6000_H
#define _TVP6000_H       
#include <std.h>
#include <csl_stdinc.h>
#include <csl_i2c.h>
#include <edc.h>

typedef unsigned int TVP6000_Cmd;

#define TVP6000_SET_POWERDOWN       EDC_USER+1
#define TVP6000_SET_POWERUP         EDC_USER+2
#define TVP6000_SET_2XSCALE         EDC_USER+3
#define TVP6000_SET_CAPTION     	EDC_USER+4
#define TVP6000_SET_ANALOGFORMAT 	EDC_USER+5
#define TVP6000_SET_USECOLORBAR		EDC_USER+6
#define TVP6000_SET_USER			EDC_USER+7
/*
*=========TVP6000 Register Values used by our design===*
*=========I only implement the PAL parameters, if use NTSC, pls use TVP6000's default ==*
*=========register value==========================*
*/
#if 0
#define TVP6000_PAL_ClrBar	0x8e /*0x083*/
#define TVP6000_PAL_BT656	0x0e
/*------------------------------*/
#define TVP6000_PAL_POWERDOWN  0xc5
#define TVP6000_PAL_50Hz_COMPOSITE	0x84
#define TVP6000_PAL_60Hz_COMPOSITE	0x85
#define TVP6000_PAL_50Hz_SVIDEO	0x44
#define TVP6000_PAL_60Hz_SVIDEO	0x45
/*------------------------------*/
#define TVP6000_PAL_2XSCALE	0x00    /*0x14*/
#define TVP6000_PAL_NOSCALE	0x00
/*------------------------------*/
#define TVP6000_PAL_CaptionON	0x21   /*0x03*/
#define TVP6000_PAL_CaptionOFF	0x00
/*=======some default value, not changed===========*/
#define TVP6000_PAL_GAINU	0x10
#define TVP6000_PAL_GAINV	0x80
#define TVP6000_PAL_GAINY   0x3f
#define TVP6000_PAL_XCOLOR  0x60
#define TVP6000_PAL_M_CTRL  0x06
#define TVP6000_PAL_CARR0   0xCB
#define TVP6000_PAL_CARR1   0x8a
#define TVP6000_PAL_CARR2   0x09
#define TVP6000_PAL_CARR3   0x2a
#define TVP6000_PAL_LINE21O0 0x94
#define TVP6000_PAL_LINE21O1 0x26
#define TVP6000_PAL_LINE21e0 0x80
#define TVP6000_PAL_LINE21e1 0x80
#define TVP6000_PAL_LN_SEL   0x11
#define TVP6000_PAL_SYNCTRL0 0x22   /*29*/
#define TVP6000_PAL_RCML21   0x51  /*51*/
#define TVP6000_PAL_HTRIG0   0X00
#define TVP6000_PAL_HTRIG1   0x00
#define TVP6000_PAL_VTRIG    0x80
#define TVP6000_PAL_BMRQ     0x8c
#define TVP6000_PAL_EMRQ     0x4c
#define TVP6000_PAL_BEMRQ    0x30
#define TVP6000_PAL_BRCV     0x8c
#define TVP6000_PAL_ERCV     0x4c
#define TVP6000_PAL_BERCV    0x30
#define TVP6000_PAL_BLACKLEVEL0 	0xbe
#define TVP6000_PAL_BLACKLEVEL1		0xbe
#define TVP6000_PAL_SYNCTRL1 0x0A
#define TVP6000_PAL_FLEN	0x70	/*	0x71*/
#define TVP6000_PAL_FAL		0x17
#define TVP6000_PAL_LAL		0x34
#define TVP6000_PAL_BSTAMP  0x41
#else
#define TVP6000_PAL_ClrBar			0x8e 	//0x083
#define TVP6000_PAL_BT656			0x0e
/*----------------------------------------------------------------------*/
#define TVP6000_PAL_POWERDOWN  		0xc5
#define TVP6000_PAL_50Hz_COMPOSITE	0x84
#define TVP6000_PAL_60Hz_COMPOSITE	0x85
#define TVP6000_PAL_50Hz_SVIDEO		0x44
#define TVP6000_PAL_60Hz_SVIDEO		0x45
/*----------------------------------------------------------------------*/
#define TVP6000_PAL_2XSCALE			0x00    //0x14
#define TVP6000_PAL_NOSCALE			0x00
/*----------------------------------------------------------------------*/
#define TVP6000_PAL_CaptionON		0x21   	//0x03
#define TVP6000_PAL_CaptionOFF		0x00
/*=======some default value, not changed===========*/
#define TVP6000_PAL_GAINU			0x01	//0x10	//update by david 
#define TVP6000_PAL_GAINV			0x6B	//0x80	//update by david 
#define TVP6000_PAL_GAINY   		0x2E	//0x3f	//update by david 
#define TVP6000_PAL_XCOLOR  		0x60	//0x40  //0x60	//update by david 
#define TVP6000_PAL_M_CTRL  		0x06	///////??????????
#define TVP6000_PAL_CARR0   		0xCB
#define TVP6000_PAL_CARR1   		0x8a
#define TVP6000_PAL_CARR2   		0x09
#define TVP6000_PAL_CARR3   		0x2a
#define TVP6000_PAL_LINE21O0 		0x94
#define TVP6000_PAL_LINE21O1 		0x26
#define TVP6000_PAL_LINE21e0 		0x80
#define TVP6000_PAL_LINE21e1 		0x80
#define TVP6000_PAL_LN_SEL   		0x11
#define TVP6000_PAL_SYNCTRL0 		0x22   	//29
#define TVP6000_PAL_RCML21   		0x51  	//51
#define TVP6000_PAL_HTRIG0   		0xe0	//0x00	//update
#define TVP6000_PAL_HTRIG1   		0x8c	//0x00	//update
#define TVP6000_PAL_VTRIG    		0xc0	//0x80	//update by david
#define TVP6000_PAL_BMRQ     		0		//x8c
#define TVP6000_PAL_EMRQ     		0xd0	//x4c
#define TVP6000_PAL_BEMRQ    		0x20
#define TVP6000_PAL_BRCV     		0x8c
#define TVP6000_PAL_ERCV     		0x4c
#define TVP6000_PAL_BERCV    		0x30
#define TVP6000_PAL_BLACKLEVEL0 	0xcc	//update by david 	//0xbe
#define TVP6000_PAL_BLACKLEVEL1		0xb8	//update by david	0xbe
#define TVP6000_PAL_SYNCTRL1 		0x0A
#define TVP6000_PAL_FLEN			0x70	//0x71
#define TVP6000_PAL_FAL				0x17
#define TVP6000_PAL_LAL				0x34
#define TVP6000_PAL_BSTAMP  		0x41	//update	NTSC:0x38	PAL:0x41
#endif

typedef struct {
  I2C_Handle           hI2C;
  Bool useclrbar;
  Uint8  AnalogFormt;
  Uint8  Caption[4];
  Uint8 UserData[2]; //for user set a register not implement in the driver
  int SrcImgWeight; //the weight input into TVP6000
  int SrcImgHeight; //the height size of the image input to TVP6000
} TVP6000_ConfParams;

extern EDC_Fxns TVP6000_Fxns;

#endif 

⌨️ 快捷键说明

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