/*
* 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)" */
/********************************************************************/
/* _saa7115.c file */
/********************************************************************/
#include "_saa7115.h"
_SAA7115_Regs _SAA7115_settingsDef[2] =
{
/********************************/
/* DDECA Structure*/
/********************************/
{
/********************************/
/* Generic Structure*/
/********************************/
{
/* Chip Version (0x00) = 0x00 */
0x00,
/* Increment Delay (0x01) = 0x08 */
8, /* unsigned HorIncDelay : 4; */
0, /* unsigned GainHysteresis : 2; */
0, /* unsigned WhitePeakDisable : 1; */
0, /* unsigned AOSL2 : 1; */
/* Analog Input Control 1 (0x02) = 0xC0 */
0, /* unsigned AnalogMuxMode : 4; */
0, /* unsigned Reg02Unused : 2; */
3, /* unsigned AmplifierType : 2; */
/* Analog Input Control 2 (0x03) = 0x20 */
0, /* unsigned ACH1GainMSB : 1; */
0, /* unsigned ACH2GainMSB : 1; */
0, /* unsigned AGCControl : 1; */
0, /* unsigned AGCHold : 1; */
0, /* unsigned ColorPeakOff : 1; */
1, /* unsigned AGCDuringVBI : 1; */
0, /* unsigned HLNRS : 1; */
0, /* unsigned Test : 1; */
/* Analog Input Control 3 (0x04) = 0x90 */
0x90, /* uchar ACH1Gain; */
/* Analog Input Control 4 (0x05) = 0x90 */
0x90, /* uchar ACH2Gain; */
/* Horizontal Sync Start (0x06) = 0xEB */
0xEA, /* uchar HSYNCStart; */
/* Horizontal Sync Stop (0x07) = 0xE0 */
0xE0, /* uchar HSYNCStop; */
/* Sync Control (0x08) = 0xD0 */
0, /* unsigned VertNoiseReduction : 2;*/
0, /* unsigned HorPLLOpen : 1; */
2, /* unsigned HorTimeConstant : 2; */
0, /* unsigned ForceFieldFlag : 1; */
1, /* unsigned FieldSelect : 1; */
1, /* unsigned AutoFieldDetect : 1; */
/* Luminance Control (0x09) = 0x50 */
0, /* unsigned LumaFilter : 4; */
1, /* unsigned LumaBW : 1; */
0, /* unsigned LumaDelay : 1; */
1, /* unsigned YCombFilter : 1; */
0, /* unsigned BypassYCombFilter : 1; */
/* Luminance Brightness Adjustment (0x0A) = 0x80*/
0x80, /* uchar Brightness; */
/* Luminance Contrast Adjustment (0x0B) = 0x40 */
0x40, /* uchar Contrast; */
/* Chroma Saturation Adjustment (0x0C) = 0x40 */
0x40, /* uchar Saturation; */
/* Chroma Hue Control (0x0D) = 0x00 */
0x00, /* uchar Hue; */
/* Chroma Control 1 (0x0E) = 0x0B */
1, /* unsigned ChromaCombFilter : 1; */
1, /* unsigned AutoChromaDetect : 1; */
0, /* unsigned FastColorTimeConstant : 1; */
1, /* unsigned DisableChromaVertFilt : 1; */
0, /* unsigned ColorStandardDetect : 3; */
0, /* unsigned ClearDTO : 1; */
/* Chroma Gain Control (0x0F) = 0x24 */
0x24, /* unsigned ChromaGain : 7; */
0, /* unsigned AutoChromaAGC : 1; */
/* Chroma Control 2 (0x10) = 0x0E */
6, /* unsigned LumaChromaBW : 3; */
1, /* unsigned ChromaBW : 1; */
0, /* unsigned CrOffsetAdjustment : 2; */
0, /* unsigned CbOffsetAdjustment : 2; */
/* Mode Delay Control (0x11) = 0x00 */
0, /* unsigned LumaDelayCompensation : 3; */
0, /* unsigned RTS0Polarity : 1; */
0, /* unsigned HSYNCDelay : 2; */
0, /* unsigned RTS1Polarity : 1; */
0, /* unsigned ColorOn : 1; */
/* RT Signal Control (0x12) = 0xFD */
0xD, /* unsigned RTS0Output : 4; */
0xF, /* unsigned RTS1Output : 4; */
/* RT/XPort Control (0x13) = 0x80 */
0, /* unsigned OFTS : 3; */
0, /* unsigned FastHorSelect : 1; */
0, /* unsigned XRVSSelect : 2; */
0, /* unsigned HSYNCSelect : 1; */
1, /* unsigned RTCEEnable : 1; */
/* Analog/ADC (0x14) = 0x04 */
0, /* unsigned ADCSampleDelay : 2; */
1, /* unsigned AUTO1 : 1; */
0, /* unsigned XTOUTEnable : 1; */
0, /* unsigned AOUTSelect : 2; */
0, /* unsigned AGCUpdateType : 1; */
0, /* unsigned SAA7199Switch : 1; */
/* VGATE Start (0x15) = 0x10 */
0, /* uchar VGateStart; */
/* VGATE Stop (0x16) = 0x02 */
1, /* uchar VGateStop; */
/* MISC/VGATE MSBs (0x17) = 0xDA */
0, /* unsigned VGateStartMSB : 1; */
1, /* unsigned VGateStopMSB : 1; */
0, /* unsigned AltVGatePos : 1; */
3, /* unsigned YLatency : 3; */
1, /* unsigned LLC2Enable : 1; */
1, /* unsigned LLCEnable : 1; */
/* Raw Data Gain (0x18) = 0x40 */
0x40, /* uchar RawGain; */
/* Raw Data Offset (0x19) = 0x80 */
0x80, /* uchar RawOffset */
/* Color Killer Thresholds (0x1A) = 0x77 */
7, /* unsigned SECAMColorKiller : 4; */
7, /* unsigned NTSCColorKiller : 4; */
/* MISC/TWCRDET (0x1B) = 0x42 */
0, /* unsigned FSQC : 1; */
1, /* unsigned AutoColorLimiter : 1; */
0, /* unsigned Reg1BAUnused : 2; */
0, /* unsigned OFTS3 : 1; */
0, /* unsigned Reg1BBUnused : 1; */
1, /* unsigned TVDetectThreshold : 2; */
/* Enhanced Comb Control 1 (0x1C) = 0xA9 */
1, /* unsigned CombThreshold : 2; */
2, /* unsigned MedianFilterGain : 2; */
2, /* unsigned VertDiffGain : 2; */
2, /* unsigned HorDiffGain : 2; */
/* Enhanced Comb Control 2 (0x1D) = 0x01 */
1, /* unsigned VertDiffThreshold : 2; */
0, /* unsigned Reg1DUnused : 6; */
/* Status Byte Decoder 1 (0x1E) = 0x00 */
0, /* unsigned ColorStandard : 2; */
0, /* unsigned WhitePeakActive : 1; */
0, /* unsigned LimitGainBottom : 1; */
0, /* unsigned LimitGainTop : 1; */
0, /* unsigned SlowTimeConstant : 1; */
0, /* unsigned HSYNCLock : 1; */
0, /* unsigned FieldLength : 1; */
/* Status Byte Decoder 2 (0x1F) = 0x00 */
0, /* unsigned CaptureReady : 1; */
0, /* unsigned CopyProtection : 1; */
0, /* unsigned ColorStripe : 1; */
0, /* unsigned BurstType3 : 1; */
0, /* unsigned StableTimebase : 1; */
0, /* unsigned FieldID : 1; */
0, /* unsigned HVLoop : 1; */
0, /* unsigned InterlaceDetect : 1; */
/* Null Array (0x20) - (0x2F) */
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},
/* Audio Data (0x30) - (0x3F) */
{0xDE,0x6f,0x01,0x00,0x66,0x66,0x1D,0x00,
0x03,0x10,0x80,0x00,0x00,0x00,0x00,0x00},
/* VBI Data Slicer (0x40) - (0x7F) */
{0x00,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
0xFF,0xFF,
评论0
最新资源