📄 dcf_defs.h
字号:
/****************************************************************************/
/* CONEXANT PROPRIETARY AND CONFIDENTIAL */
/* Conexant Systems Inc. (c) 2007 - 2012 */
/* Shanghai, CHINA */
/* All Rights Reserved */
/****************************************************************************/
/*
* Filename: DCF_DEFS.H
*
* Description: The file defines enum type parameters
* Author: Gavin Zhang
*
****************************************************************************/
/* $Header: dcf_defs.h, 1, 2007-10-8 13:36:53, Yong Huang$
* $Id: dcf_defs.h,v 1.0, 2007-10-08 05:36:53Z, Yong Huang$
****************************************************************************/
#ifndef DCF_DEFS_H_DEFINED
#define DCF_DEFS_H_DEFINED
/*******************************************************************************************************/
#ifndef bool
typedef unsigned int bool;
#endif
#ifndef NULL
#define NULL 0
#endif
#ifndef True
#define True 1
#endif
#ifndef False
#define False 0
#endif
#ifndef CNULL
#define CNULL '\0'
#endif
/*******************************************************************************************************/
/* common-use types */
/*******************************************************************************************************/
/*******************************************************************************************************/
/* common-use equivs */
/*******************************************************************************************************/
#define DCF_DEMOD_I2C_ADDR (0x38) /* stv0297 device address */
#define DCF_DEMOD_CHIP_ID (0x02) /* stv0297 chip id */
#define DCF_TUNER_I2C_ADDR (0xC0) /* tua6020 device address */
#define DCF_DEMOD_BERT_NBYTE (0x06) /* 2 ^ (12 + 2 * ST0_BERT_NBYTE) */
#define DCF_INIT_DEMOD_DISABLE (0)
#define DCF_INIT_DEMOD_ENABLE (1)
#define DCF_ACQP1_DELAY (30)
#define DCF_ACQP2_DELAY (30)
/* DEFINITIONS OF THE QAM SIZE */
#define DCF_QAM16 (0x00)
#define DCF_QAM32 (0x01)
#define DCF_QAM64 (0x04)
#define DCF_QAM128 (0x02)
#define DCF_QAM256 (0x03)
#define DCF_QAM_AUTO (0xFE)
#define DCF_QAM_UNSUPPORTED (0xFF)
#define DCF_STEP_31250 (1)
#define DCF_STEP_50000 (2)
#define DCF_STEP_62500 (3)
#define DCF_SYMBOLRATE_LEVEL 3000000 /* When SR < DCF_SYMBOLRATE_LEVEL, SweepRate= SweepRate/2 */
#define DCF_CARRIER_OFFSET_RATIO 8
#define DCF_DEMOD_WAIT_TIME 10
#define DCF_DEMOD_TRACKING_LOCK 5
#define DCF_DEMOD_AGC2_MAX_LEVEL 600
/*******************************************************************************************************/
/* the number of STV0297 internal registers */
/*******************************************************************************************************/
#define DCF_REG_NUM (90)
/*******************************************************************************************************/
/* the string length of the register name */
/*******************************************************************************************************/
#define DCF_REG_NAME_LEN (16)
#define DCF_I2CBF_LEN 8
/*******************************************************************************************************/
/* function prototypes passed by application (aka user) */
/*******************************************************************************************************/
typedef bool (*DCF_BUS_READ)(unsigned long, unsigned short, unsigned char, unsigned char *); /* type pointer to function to read byte to ser.bus */
typedef bool (*DCF_BUS_WRITE)(unsigned long, unsigned short, unsigned char, unsigned char *); /* type pointer to function to write byte to ser.bus */
/*******************************************************************************************************/
/* common equates */
/*******************************************************************************************************/
/*******************************************************************************************************/
/* common definitions */
/*******************************************************************************************************/
/*******************************************************************************************************/
/*******************************************************************************************************/
/*******************************************************************************************************/
/* default definitions */
/*******************************************************************************************************/
/*******************************************************************************************************/
/* Macros (to keep backwards compat.) */
/*******************************************************************************************************/
/*******************************************************************************************************/
/*******************************************************************************************************/
/*******************************************************************************************************/
#endif /* #ifndef DCF_DEFS_H_DEFINED */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -