📄 tmbsltunerlocal.h
字号:
//-----------------------------------------------------------------------------
// $Header:
// (C) Copyright 2001 Philips Semiconductors, All rights reserved
//
// This source code and any compilation or derivative thereof is the sole
// property of Philips Corporation and is provided pursuant to a Software
// License Agreement. This code is the proprietary information of Philips
// Corporation and is confidential in nature. Its use and dissemination by
// any party other than Philips Corporation is strictly limited by the
// confidential information provisions of the Agreement referenced above.
//-----------------------------------------------------------------------------
// FILE NAME: tmbslTunerlocal.h
//
// DESCRIPTION: define the object for Null tuner
//
// DOCUMENT REF: DVP Software Coding Guidelines v1.14
// DVP Board Support Library Architecture Specification v0.5
//
// NOTES:
//-----------------------------------------------------------------------------
//
#ifndef _TMBSL_TunerLOCAL_H //-----------------
#define _TMBSL_TunerLOCAL_H
//-----------------------------------------------------------------------------
// Standard include files:
//-----------------------------------------------------------------------------
//
#include "tmhalFEtypes.h"
#include "dvp.h"
//-----------------------------------------------------------------------------
// Project include files:
//-----------------------------------------------------------------------------
//
#ifdef __cplusplus
extern "C"
{
#endif
//-----------------------------------------------------------------------------
// Types and defines:
//-----------------------------------------------------------------------------
//
#define TMBSL_ERR_TUNER_BASE 0x00
// Invalid unit id
#define TMBSL_ERR_TUNER_BAD_UNIT_NUMBER \
(TMBSL_ERR_TUNER_BASE + TM_ERR_BAD_UNIT_NUMBER)
// Component is not initialized
#define TMBSL_ERR_TUNER_NOT_INITIALIZED \
(TMBSL_ERR_TUNER_BASE+ TM_ERR_NOT_INITIALIZED)
// Invalid input parameter
#define TMBSL_ERR_TUNER_BAD_PARAMETER \
(TMBSL_ERR_TUNER_BASE + TM_ERR_BAD_PARAMETER)
// Function is not supported
#define TMBSL_ERR_TUNER_NOT_SUPPORTED \
(TMBSL_ERR_TUNER_BASE + TM_ERR_NOT_SUPPORTED)
// Function is not supported
#define TMBSL_ERR_IIC_ERR \
(TMBSL_ERR_TUNER_BASE + TM_ERR_IIC_ERR)
#define BSL_COMP_NUM 1
#define BSL_MAJOR_VER 1
#define BSL_MINOR_VER 0
#define MAX_UNITS 0
//Xiaohai
#define NB_REGISTERS 6
#define BANDWIDTH_DEF 8000000
#define ATC_DEF 0
#define TOP_DEF 2
typedef enum _tmTunercfgIndex_t {
DEFAULTCU1216TUNER = 0,
ATC,
TOP,
GETNBOFCU1216UNIT = 200,
BANDWIDTH = 300
} tmTunercfgIndex_t;
typedef struct _tmTunerconfig_t {
UInt32 uBandwidth;
UInt8 bAtc;
UInt8 bTop;
} tmTunerconfig_t, *ptmTunerconfig_t;
//Xiaohai
typedef struct _tmTunerobject_t
{
Bool init;
UInt32 uHwAddress;
tmhalFEBslSystemFunc_t systemFunc;
tmPowerState_t curPowerState;
tmTunerconfig_t config;
UInt32 uPllStep;
UInt32 pTunerReg[NB_REGISTERS];
UInt32 uRfProg;
} tmTunerobject_t, *ptmTunerobject_t;
//-----------------------------------------------------------------------------
// Global data:
//-----------------------------------------------------------------------------
//
static tmTunerobject_t gTunerInstance[] =
{
{
False, // True:instance is initialized
0, // HwId not set
{ Null, Null, Null, // system function not initialized
Null, Null, Null
},
tmPowerOff, // default power state
{ BANDWIDTH_DEF,
ATC_DEF,
TOP_DEF
},
62500, // PLL step
{0,0,0x8E,0,0,0x20}, // PLL registers //Xiaohai
0 // RF programmed
}
};
#ifdef __cplusplus
}
#endif
#endif // TM<MODULE>_H //---------------
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -