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

📄 dcf_reg.h

📁 机顶盒解调芯片DCF8722驱动
💻 H
字号:
/****************************************************************************/
/*                   CONEXANT PROPRIETARY AND CONFIDENTIAL                  */
/*                   Conexant Systems Inc. (c) 2003 - 2004                  */
/*                            Shanghai, CHINA                               */
/*                          All Rights Reserved                             */
/****************************************************************************/
/*
 * Filename:      STV0297.H
 *
 * Description:   Header File for STV0297 QAM Demodulator IC Driver.
 *
 * Author:        Steven Shen
 *
 ****************************************************************************/
/* $Header: dcf_reg.h, 1, 2007-10-8 13:36:53, Yong Huang$
 * $Id: dcf_reg.h,v 1.0, 2007-10-08 05:36:53Z, Yong Huang$
 ****************************************************************************/

#ifndef DCF_REG_H
#define DCF_REG_H

#include "stbcfg.h"

#ifdef __cplusplus
extern "C"
{
#endif

#ifndef I2C_BUS_0
#define I2C_BUS_0                1
#endif

#define I2C_BUS_DCF              I2C_BUS_DCF8722 /* I2C bus connected to DCF */
/*******************************************************************************************************/
/* hardware-specific definitions */
/*******************************************************************************************************/

/*--------------------------------------------------------------------------*/
/*      STV0297 I2C ADDRESS FOR READING AND WRITING INTERNAL REGISTERS
 *
 * The STV0297 is controlled via an I2C bus and is a pure slave. Its 7-bit
 * chip address is "0011100",  so its 8-bit write address is 0x38, and its
 * 8-bit read address is 0x39.
 */
#define ST0_I2CBT_LEN            (12)  /* the max number of data for burst */
#define ST0_I2CBF_LEN            (20)  /* the buffer length for i2c burst */


/*--------------------------------------------------------------------------*/
/*    DEFINITIONS OF THE INDEX OF STV0297 INTERNAL REGISTERS IN THE ARRAY
 */

/* EQUALIZER - CONSTELLATION QUALITY ESTIMATOR */
#define ST0_RID_EQU_0            (0x00)
#define ST0_RID_EQU_1            (0x01)
#define ST0_RID_EQU_3            (0x02)
#define ST0_RID_EQU_4            (0x03)
#define ST0_RID_EQU_7            (0x04)
#define ST0_RID_EQU_8            (0x05)
/* QUADRATURE DEMODULATOR */
#define ST0_RID_INITDEM_0        (0x06)
#define ST0_RID_INITDEM_1        (0x07)
#define ST0_RID_INITDEM_2        (0x08)
#define ST0_RID_INITDEM_3        (0x09)
#define ST0_RID_INITDEM_4        (0x0A)
#define ST0_RID_INITDEM_5        (0x0B)
/* ANALOG AGCS - A/D OVERFLOW MONITOR */
#define ST0_RID_DELAGC_0         (0x0C)
#define ST0_RID_DELAGC_1         (0x0D)
#define ST0_RID_DELAGC_2         (0x0E)
#define ST0_RID_DELAGC_3         (0x0F)
#define ST0_RID_DELAGC_4         (0x10)
#define ST0_RID_DELAGC_5         (0x11)
#define ST0_RID_DELAGC_6         (0x12)
#define ST0_RID_DELAGC_7         (0x13)
#define ST0_RID_DELAGC_8         (0x14)
#define ST0_RID_WBAGC_0          (0x15)
#define ST0_RID_WBAGC_1          (0x16)
#define ST0_RID_WBAGC_2          (0x17)
#define ST0_RID_WBAGC_3          (0x18)
#define ST0_RID_WBAGC_4          (0x19)
#define ST0_RID_WBAGC_5          (0x1A)
#define ST0_RID_WBAGC_6          (0x1B)
#define ST0_RID_WBAGC_9          (0x1C)
#define ST0_RID_WBAGC_10         (0x1D)
#define ST0_RID_WBAGC_11         (0x1E)
/* SYMBOL TIMING RECOVERY LOOP */
#define ST0_RID_STLOOP_2         (0x1F)
#define ST0_RID_STLOOP_3         (0x20)
#define ST0_RID_STLOOP_5         (0x21)
#define ST0_RID_STLOOP_6         (0x22)
#define ST0_RID_STLOOP_7         (0x23)
#define ST0_RID_STLOOP_8         (0x24)
#define ST0_RID_STLOOP_9         (0x25)
#define ST0_RID_STLOOP_10        (0x26)
#define ST0_RID_STLOOP_11        (0x27)
/* CARRIER RECOVERY LOOP */
#define ST0_RID_CRL_0            (0x28)
#define ST0_RID_CRL_1            (0x29)
#define ST0_RID_CRL_2            (0x2A)
#define ST0_RID_CRL_3            (0x2B)
#define ST0_RID_CRL_4            (0x2C)
#define ST0_RID_CRL_5            (0x2D)
#define ST0_RID_CRL_6            (0x2E)
#define ST0_RID_CRL_7            (0x2F)
#define ST0_RID_CRL_8            (0x30)
#define ST0_RID_CRL_9            (0x31)
#define ST0_RID_CRL_10           (0x32)
#define ST0_RID_CRL_11           (0x33)
/* POST-FILTER DIGITAL AGC */
#define ST0_RID_PMFAGC_0         (0x34)
#define ST0_RID_PMFAGC_1         (0x35)
#define ST0_RID_PMFAGC_2         (0x36)
#define ST0_RID_PMFAGC_3         (0x37)
#define ST0_RID_PMFAGC_4         (0x38)
/* CONFIGURATION AND CONTROL */
#define ST0_RID_CTRL_0           (0x39)
#define ST0_RID_CTRL_1           (0x3A)
#define ST0_RID_CTRL_2           (0x3B)
#define ST0_RID_CTRL_3           (0x3C)
#define ST0_RID_CTRL_4           (0x3D)
#define ST0_RID_CTRL_5           (0x3E)
#define ST0_RID_CTRL_6           (0x3F)
#define ST0_RID_CTRL_7           (0x40)
#define ST0_RID_CTRL_8           (0x41)
#define ST0_RID_CTRL_9           (0x42)
/* DEINTERLEAVER SYNC DETECTOR */
#define ST0_RID_DEINT_SYNC_0     (0x43)
#define ST0_RID_DEINT_SYNC_1     (0x44)
/* INTEGRATED BER TESTER */
#define ST0_RID_BERT_0           (0x45)
#define ST0_RID_BERT_1           (0x46)
#define ST0_RID_BERT_2           (0x47)
/* DEINTERLEAVER */
#define ST0_RID_DEINT_0          (0x48)
#define ST0_RID_DEINT_1          (0x49)
/* OUTPUT FORMATTER */
#define ST0_RID_OUTFORMAT_0      (0x4A)
#define ST0_RID_OUTFORMAT_1      (0x4B)
#define ST0_RID_OUTFORMAT_2      (0x4C)
/* REED-SOLOMON DESCRAMBLER SYNC DETECTOR */
#define ST0_RID_RS_DESC_0        (0x4D)
#define ST0_RID_RS_DESC_1        (0x4E)
#define ST0_RID_RS_DESC_2        (0x4F)
#define ST0_RID_RS_DESC_3        (0x50)
#define ST0_RID_RS_DESC_4        (0x51)
#define ST0_RID_RS_DESC_5        (0x52)
#define ST0_RID_RS_DESC_14       (0x53)
#define ST0_RID_RS_DESC_15       (0x54)
/* RESERVED */
#define ST0_RID_EQU_2            (0x55)
#define ST0_RID_EQU_5            (0x56)
#define ST0_RID_EQU_6            (0x57)
#define ST0_RID_DEINT_2          (0x58)
#define ST0_RID_DEINT_3          (0x59)


/*--------------------------------------------------------------------------*/
/*                DEFINITIONS OF THE STV0297 CHIP VERSION
 */

bool DCF_RegRead(DCF_NIM *pNim, unsigned short u16RegIndex, unsigned char u8RegCount, unsigned char* pu8RegData, DCF_IIC_DEV i2c_dev);
bool DCF_RegWrite(DCF_NIM *pNim, unsigned short u16RegIndex, unsigned char u8RegCount, unsigned char *pu8RegData, DCF_IIC_DEV i2c_dev);

/****************************************************************************/
/* THE END */

#ifdef __cplusplus
}
#endif

#endif   /* DCF_REG_H */

/****************************************************************************
 * Modifications:
 * $Log: 
 *  3    mpeg      1.2         5/26/04 2:59:34 AM     Steven Shen     CR(s) 
 *        9022 9023 : The DEMOD_DCF8722 driver version 1.20. Add some new 
 *        functions.
 *  2    mpeg      1.1         5/20/04 3:18:50 AM     Steven Shen     CR(s) 
 *        9254 9255 : Add the definition of the Auto-QAM detection mode.
 *  1    mpeg      1.0         3/15/04 10:30:32 AM    Matt Korte      CR(s) 
 *        8566 : Initial version of Thomson Cable Tuner/Demod
 * $
 *
 ****************************************************************************/

⌨️ 快捷键说明

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