?? _saa7115.c
字號:
/*
* Copyright 2004 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*/
0x7e, /* uchar Brightness; */
/* Luminance Contrast Adjustment (0x0B) = 0x40 */
0x34, /* uchar Contrast; */
/* Chroma Saturation Adjustment (0x0C) = 0x40 */
0x38, /* 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,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
0xFF,0xFF,0x00,0x55,0x44,0xFF,0xFF,0xFF,
0x00,0x47,0x06,0x03,0x00,0x01,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}
},
/********************************/
/* Global Structure */
/********************************/
{
/* Global Control (0x80) = 0x80 */
0, /* unsigned IPortMode : 4; */
0, /* unsigned TaskAEnable : 1; */
0, /* unsigned TaskBEnable : 1; */
0, /* unsigned Reg80Unused : 1; */
0, /* unsigned ContinuousFieldMode : 1; */
/* Global Control (0x81) = 0x00 */
3, /* unsigned V_EAV : 2; */
0, /* unsigned FTIME : 1; */
0, /* unsigned Reg81Unused : 5; */
/* Unused (0x82) = 0x00 */
0, /* uchar Reg82Unused; */
/* Reserved (0x83) = 0x12 */
1, /* unsigned XPortEnable : 1;*/ /* x-port enable default */
0, /* unsigned XRDYType : 1; */
0, /* unsigned Reg83AUnused : 1; */
1, /* unsigned XCLKSelect : 2; */
0, /* unsigned Reg83BUnused : 2; */
/* I Port Signal Definitions (0x84) = 0x00 */
0, /* unsigned IGPHSelect : 2; */
2, /* unsigned IGPVSelect : 2; */
3, /* unsigned IGP1SelectLSBs : 2; */
0, /* unsigned IGP0SelectLSBs : 2; */
/* I Port Signal Polarity (0x85) = 0x00 */
0, /* unsigned IDQPolarity : 1; */
0, /* unsigned IHSYNCPolarity : 1; */
0, /* unsigned IVSYNCPolarity : 1; */
0, /* unsigned IGP0Polarity : 1; */
0, /* unsigned IGP1Polarity : 1; */
0, /* unsigned VideoDataLimited : 1; */
0, /* unsigned DataOutputType : 2; */
/* I Port FIFO (0x86) = 0x40 */
1, /* unsigned FAEFlagType : 2; */
1, /* unsigned FAFFlagType : 2; */
0, /* unsigned IGP0SelectMSB : 1; */
0, /* unsigned IGP1SelectMSB : 1; */
1, /* unsigned IPortDataEnable : 1; */
0, /* unsigned DataPackingMode : 1; */
/* I Port Delay (0x87) = 0x12 */
0, /* unsigned IPortEnable : 0;*/ /* I-port disable, default */
0, /* unsigned Reg87Unused : 2; */
1, /* unsigned ICLKControl : 2; */
1, /* unsigned IDQControl : 2; */
/* Power Save Control (0x88) = 0xE8 */
0, /* unsigned DecoderOperational : 1; */
0, /* unsigned ScalerOperational : 1; */
0, /* unsigned Reg88Unused : 1; */
1, /* unsigned AudioClockEnable : 1; */
0, /* unsigned DevProgControl : 1; */
1, /* unsigned ResetScaler : 1; */
1, /* unsigned AnalogCH1Enable : 1; */
1, /* unsigned AnalogCH2Enable : 1; */
/* Null Array */
{0,0,0,0,0,0},
/* Scaler Status Information (0x8F) = 0x00 */
0, /* unsigned ScalerFIDOut : 1; */
0, /* unsigned ScalerFIDIn : 1; */
0, /* unsigned ErrorFlag : 1; */
0, /* unsigned DevProgStatus : 1; */
0, /* unsigned FIFO_OVFlag : 1; */
0, /* unsigned FIFO_AFFlag : 1; */
0, /* unsigned ITRIStatus : 1; */
0 /* unsigned XTRIStatu : 1; */
},
/********************************/
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -