📄 tda8980defines.h
字号:
/* Copyright (c) 1999 by TriMedia Technologies.
*
* +------------------------------------------------------------------+
* | This software is furnished under a license and may only be used |
* | and copied in accordance with the terms and conditions of such |
* | a license and with the inclusion of this copyright notice. This |
* | software or any other copies of this software may not be provided|
* | or otherwise made available to any other person. The ownership |
* | and title of this software is not transferred. |
* | |
* | The information in this software is subject to change without |
* | any prior notice and should not be construed as a commitment by |
* | TriMedia Technologies. |
* | |
* | this code and information is provided "as is" without any |
* | warranty of any kind, either expressed or implied, including but |
* | not limited to the implied warranties of merchantability and/or |
* | fitness for any particular purpose. |
* +------------------------------------------------------------------+
*
* Module name : tda8980Defines.h 1.3
*
* Last update : 18:43:49 - 00/11/09
*
* Description :
*
*
*/
#ifndef _TDA8980DEFINES_H_
#define _TDA8980DEFINES_H_
#define TDA8980_NUM_CONTROL_REGS 18
#define TDA8980_CTRL_SUBADDR_START 0x1d
/* MPOC reg locations */
#define TDA8980_OFFSET_IF_DEMOD 0x00
#define TDA8980_AGC_TAKEOVER 0x01
#define TDA8980_HUE 0x02
#define TDA8980_COLOR_DECODER0 0x03
#define TDA8980_COLOR_DECODER1 0x04
#define TDA8980_VIDEO_SWITCH 0x05
#define TDA8980_AUDIO_SWITCH 0x06
#define TDA8980_SYNCHRONISATION0 0x07
#define TDA8980_SYNCHRONISATION1 0x08
#define TDA8980_SOUND 0x09
#define TDA8980_VISION_IF0 0x0a
#define TDA8980_VISION_IF1 0x0b
#define TDA8980_CONTROL 0x0c
#define TDA8980_VIDEO_ADC0 0x0d
#define TDA8980_SPARE 0x0e
#define TDA8980_AUDIO_ADC1 0x0f
#define TDA8980_FEATURES 0x10
/* --- MPOC control parameters --- */
#define TDA8980_AGC_TAKEOVER_MASK 0xC0
#define TDA8980_AGC_TAKEOVER_MIN 0x00
#define TDA8980_AGC_TAKEOVER_MAX 0x3F
#define TDA8980_HUE_MASK 0xC0
#define TDA8980_HUE_MINUS40_DEG 0x00
#define TDA8980_HUE_ZERO_DEG 0x20
#define TDA8980_HUE_PLUS40_DEG 0x3F
/* color decoder 0 */
#define TDA8980_AUTO_COLOR_LIMIT_MASK 0xFD
#define TDA8980_AUTO_COLOR_LIMIT_ON 0x02
#define TDA8980_FORCED_COLOR_MASK 0xFE
#define TDA8980_FORCED_COLOR_ON 0x01
/* video switch */
/* color decoder input selection */
#define TDA8980_VIN_MASK 0xF8
#define TDA8980_VIN_CVBS1 0x00
#define TDA8980_VIN_CVBS2 0x01
#define TDA8980_VIN_YC2 0x05
#define TDA8980_VIN_CVBS3 0x02
#define TDA8980_VIN_YC3 0x06
/* select CVBS0 output signal */
#define TDA8980_TIN_MASK 0xC7
#define TDA8980_TIN_CVBS1 (0x00 << 3)
#define TDA8980_TIN_CVBS2 (0x01 << 3)
#define TDA8980_TIN_YC2 (0x05 << 3)
#define TDA8980_TIN_CVBS3 (0x02 << 3)
#define TDA8980_TIN_YC3 (0x06 << 3)
/* audio switch */
/* select audio input signal */
#define TDA8980_AIN_MASK 0xF8
#define TDA8980_AIN_AUD1 0x00
#define TDA8980_AIN_AUD2 0x01
#define TDA8980_AIN_AUD3 0x02
#define TDA8980_AIN_AUD4 0x03
#define TDA8980_AIN_AUD5 0x04
/* synchronization 0 */
/* Phase 1 time constant */
#define TDA8980_FO_MASK 0xCF
#define TDA8980_FO_NORMAL (0x00 << 4)
#define TDA8980_FO_SLOW (0x01 << 4)
#define TDA8980_FO_SLOW_FAST (0x02 << 4)
#define TDA8980_FO_FAST (0x03 << 4)
#define TDA8980_VIM_MASK 0xFD
#define TDA8980_VIM_COUPLE_CVBS1 0x00
#define TDA8980_VIM_COUPLE_INPUT 0x20
/* synchronization 1 */
/* vertical divider mode */
#define TDA8980_NCIN_MASK 0xFE
#define TDA8980_NCIN_NORMAL_OP 0x00
#define TDA8980_NCIN_SW_SEARCH_WINDOW 0x01
/* sound */
/* Input FM demod to VIF/QSS amp */
#define TDA8980_FM_MASK 0xEF
#define TDA8980_FM_INPUT_TO_TVIF_AMP (0x00 << 4)
#define TDA8980_FM_INPUT_TO_SIF_AMP (0x01 << 4)
/* Gain FM demod */
#define TDA8980_BTSC_MASK 0xF7
#define TDA8980_BTSC_NORMAL_OP (0x00 << 3)
#define TDA8980_BTSC_GAIN_REDUCTION (0x01 << 3)
/* Window selection of Narrow band sound PLL */
#define TDA8980_FMWS_MASK 0xFD
#define TDA8980_FMWS_SMALL_WINDOW (0x00 << 2)
#define TDA8980_FMWS_LARGE_WINDOW (0x01 << 2)
/* Sound Mute */
#define TDA8980_SM_MASK 0xFC
#define TDA8980_SM_MUTE_CONDITION1 0x00
#define TDA8980_SM_MUTE_CONDITION2 0x01
#define TDA8980_SM_MUTE_ON 0x02
#define TDA8980_SM_MUTE_OFF 0x03
/* IF amplifier on/off */
#define TDA8980_IFON_MASK 0xEF
#define TDA8980_IFON_IF_AMP_NOTACTIVE (0x00 << 4)
#define TDA8980_IFON_NORMAL_OP (0x01 << 4)
#define TDA8980_AFW_MASK 0xFB
#define TDA8980_AFW_NORMAL (0x00 << 2)
#define TDA8980_AFW_ENLARGED (0x01 << 2)
/* IF sensitivity */
#define TDA8980_IFS_MASK 0xFD
#define TDA8980_IFS_NORMAL (0x00 << 1)
#define TDA8980_IFS_REDUCED (0x01 << 1)
/* Search tuning mode */
#define TDA8980_STM_MASK 0xFE
#define TDA8980_STM_NORMAL_OP 0x00
#define TDA8980_STM_REDUCED_SENSITIVITY 0x01
/* PLL demodulator freq. setting */
#define TDA8980_IF_MASK 0x1f
#define TDA8980_IF_58_75 (0x00 << 5)
#define TDA8980_IF_45_75 (0x01 << 5)
#define TDA8980_IF_38_90 (0x02 << 5)
#define TDA8980_IF_38_00 (0x03 << 5)
#define TDA8980_IF_33_40 (0x04 << 5)
#define TDA8980_IF_33_90 (0x05 << 5)
/* Internal or extern AGC mode */
#define TDA8980_AGCM_MASK 0xEF
#define TDA8980_AGCM_INTERNAL (0x00 << 4)
#define TDA8980_AGCM_EXTERNAL (0x01 << 4)
/* IF AGC Speed */
#define TDA8980_AGC_SPEED_MASK 0xF9
#define TDA8980_AGC_SPEED_POINT7X (0x00 << 1)
#define TDA8980_AGC_SPEED_NORM (0x01 << 1)
#define TDA8980_AGC_SPEED_2X (0x02 << 1)
#define TDA8980_AGC_SPEED_4X (0x03 << 1)
/* Fast filter IF-PLL */
#define TDA8980_FFI_MASK 0xFE
#define TDA8980_FFI_NORMAL_TS 0x00
#define TDA8980_FFI_INCREASED_TS 0x01
/* Enable full screen blanking RGB-1 */
#define TDA8980_IE1_MASK 0x7F
#define TDA8980_IE1_NOTACTIVE (0x00 << 7)
#define TDA8980_IE1_ACTIVE (0x01 << 7)
/* Enable full screen blanking RGB-2 */
#define TDA8980_IE2_MASK 0xBF
#define TDA8980_IE2_NOTACTIVE (0x00 << 6)
#define TDA8980_IE2_ACTIVE (0x01 << 6)
/* Select RGB1/YUV1 input */
#define TDA8980_DVD_MASK 0xFD
#define TDA8980_DVD_RGB_IN (0x00 << 1)
#define TDA8980_DVD_YUV_IN (0x01 << 1)
/* Synchronisation on Ysync input */
#define TDA8980_SCOM_MASK 0xFE
#define TDA8980_SCOM_COUPLE_CVBSY 0x00
#define TDA8980_SCOM_COUPLE_YSYNC 0x01
/* Video ADC on/off */
#define TDA8980_VON_MASK 0xEF
#define TDA8980_VON_ADC_OFF (0x00 << 4)
#define TDA8980_VON_ADC_ON (0x01 << 4)
/* Mode of video ADC */
#define TDA8980_VFMT_MASK 0xF8
#define TDA8980_VFMT_TV_27 0x00
#define TDA8980_VFMT_TV_32 0x01
#define TDA8980_VFMT_TV_36 0x02
#define TDA8980_VFMT_VSB_I 0x03
#define TDA8980_VFMT_VSB_IQ 0x04
#define TDA8980_VFMT_EXTERNAL1 0x05
#define TDA8980_VFMT_EXTERNAL2 0x06
#define TDA8980_VFMT_SVGA 0x07
/* Audio ADCs on/off */
#define TDA8980_AON_MASK 0xDF
#define TDA8980_AON_OFF (0x00 << 5)
#define TDA8980_AON_ON (0x01 << 5)
/* select I2S format */
#define TDA8980_AFMT_MASK 0xF3
#define TDA8980_AFMT_LSB_JUSTIFIED_16 (0x00 << 2)
#define TDA8980_AFMT_LSB_JUSTIFIED_20 (0x01 << 2)
#define TDA8980_AFMT_LSB_JUSTIFIED_24 (0x02 << 2)
/* select audio sample freq */
#define TDA8980_ASF_MASK 0xFC
#define TDA8980_ASF_32KHZ 0x00
#define TDA8980_ASF_44KHZ 0x01
#define TDA8980_ASF_48KHZ 0x02
#define TDA8980_BKS_MASK 0xFE
#define TDA8980_BKS_OFF 0x00
#define TDA8980_BKS_ON 0x01
#endif /* _TDA8980DEFINES_H_ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -