📄 _tvp5150.h
字号:
/*
///////////////////////////////////////////////////////////////////////////////
// //
// Copyright (C) 2006-2008 Beijing, pengzhen (pengzhenxp@yahoo.com.cn) //
// //
///////////////////////////////////////////////////////////////////////////////
*/
#ifndef __TVP5150_H
#define __TVP5150_H
#ifdef __cplusplus
extern "C" {
#endif
#include <tvp5150.h>
#define _TVP5150_IIC_ADDR0 (0xba>>1)
#define _TVP5150_IIC_ADDR1 (0xb8>>1)
// adjusted for 5150 by ralf
typedef enum
{
/* front end part */
AnalogInputControl1 = 0x00, /* 0x01=S-video 0x00/0x02=Composite */
AnalogChannelControls = 0x01, /*0x15=Automatic offset control */
OperationModeControls = 0x02, /*0x00 = Automatic mode determined */
MiscellaneousControls = 0x03, /*0x29 = YCbCr output enable */
/*0x2d=HSYNC, VSYNC/PALI, active video indicator (AVID), and FID/GLCO output enables:*/
AutoSwitchMask= 0x04,
SoftwareReset= 0x05, /*0x01 = Reset device*/
/* decoder part */
ColorKillercontrol= 0x06,
LuminanceControl1= 0x07, /*0x70=Luminance bypass enabled during vertical blanking*/
LuminanceControl= 0x08, /*0x40=Luminance chroma trap filter enabled*/
LuminanceBrightness= 0x09, /*0x00=dark 0xff=bright*/
ChromaSaturation= 0x0A, /*0x00=nocolor 0xff=maximum*/
ChromaHueControl= 0x0B, /*0x80=-180 degrees 0x7f=+180 degrees*/
LuminanceContrast= 0x0C, /*0x00=minimum_contrast 0xff=maximum_contrast*/
OutputsRateSelect= 0x0D, //AIPortFormat
LuminanceControl3= 0x0E,
ConfigSharedPin= 0x0F, /*0x0a = FID/GLCO (pin 23) function select GLCO VSYNC*/
/*0x0f = VSYNC/PALI (pin 24) function select GLCO PALI*/
ActiveVideoStartMSB= 0x11,
ActiveVideoStartLSB= 0x12,
ActiveVideoStopMSB= 0x13,
ActiveVideoStopLSB= 0x14,
Genlock_RTC= 0x15, //0x25 = ITU-R BT.656 RTC output mode 1
//0x21 = ITU-R BT.656 RTC output mode 0
HorzSyncStart= 0x16,
VerticalBlankStart= 0x18,
VerticalBlankStop= 0x19,
ChrominanceControl1= 0x1A, /*0x0c Color PLL not reset(Chrominance comb filter enable)*/
/*0x1c Color PLL reset(Automatic color gain control)*/
ChrominanceControl2= 0x1B,
InterruptResetB =0x1C,/*0x01=Reset TV/VCR changed bit 0x00=No effect*/
InterruptEnableB=0x1D,/*0x01=TV/VCR changed Enabled 0x00=Disabled*/
InterruptConfigurationB=0x1D,/*0x01= Interrupt B is active high. 0x00=low*/
VideoStandard= 0x28,/*0x02 =NTSC 0x04 =PAL 0x0a =SECAM*/
InterruptResetA = 0xC0,/*0x01=Reset TV/VCR changed bit 0x00=No effect*/
InterruptEnableA= 0xC1,/*0x01=TV/VCR changed Enabled 0x00=Disabled*/
InterruptConfigurationA=0xC2,/*0x01= Interrupt B is active high. 0x00=low*/
InterruptStatusB=0x86,
InterruptActiveB=0x87,
Status1= 0x88,
Status2= 0x89,
Status3= 0x8a,
Status4= 0x8b,
Status5= 0x8c,
//ScalerStatus= 0x8F,
//VDPStatus = 0xC6,
LineMode = 0xD0
} decoderRegs_t;
#ifdef __cplusplus
}
#endif
#endif /*#ifndef __TVP5150_H*/
/********************************************************************************/
/* end of file */
/********************************************************************************/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -