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

📄 tmbsltunerlocal.h

📁 TDA10046驱动源代码.TDA10046是PHILIPS的一款DVB-T TUNER
💻 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:    tmbsl1316local.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_1316LOCAL_H //-----------------
#define _TMBSL_1316LOCAL_H

//-----------------------------------------------------------------------------
// Standard include files:
//-----------------------------------------------------------------------------
//
#include "..\..\Include\tmhalFEtypes.h"
#include "..\..\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   2
#define BSL_MINOR_VER   0

#define MAX_UNITS       1

#define NB_REGISTERS    6
#define IF              36130000

#define OM5748_BOARD_DEF        0x57480000
#define OM5754_BOARD_DEF        0x57540000
#define CUSTOM_BOARD_DEF        0x00000000

#define OM57XX_BANDWIDTH_DEF    8000000
#define OM57XX_ATC_DEF          0
#define OM57XX_TOP_DEF          0

typedef enum _tm1316cfgIndex_t {
    BOARD = 0,
    ATC,
    TOP,
    GETNBOFUNIT = 200,
    BANDWIDTH = 300
} tm1316cfgIndex_t;

typedef struct _tm1316config_t {
    UInt32 uBoard;
    UInt32 uBandwidth;
    UInt8  bAtc;
    UInt8  bTop;
} tm1316config_t, *ptm1316config_t;

typedef struct _tm1316object_t 
{
    Bool				    init;
    UInt32				    uHwAddress;
    tmhalFEBslSystemFunc_t  systemFunc;
    tmPowerState_t		    curPowerState;
    tm1316config_t		    config;
    UInt32				    uPllStep;
    UInt32				    pTunerReg[NB_REGISTERS];
    UInt32				    uRfProg;
} tm1316object_t, *ptm1316object_t;


//-----------------------------------------------------------------------------
// Global data:
//-----------------------------------------------------------------------------
//

static tm1316object_t g1316Instance[MAX_UNITS] = 
{
    {
        False,                      // True:instance is initialized
        0,                          // HwId not set
        {   Null, Null, Null,       // system function not initialized
            Null, Null, Null
        },                      
        tmPowerOff,                 // default power state
        {   OM5748_BOARD_DEF,       // default configuration structure
            OM57XX_BANDWIDTH_DEF,
            OM57XX_ATC_DEF,
            OM57XX_TOP_DEF
        },
        166666,                     // PLL step
        {0,0,0,0,0,0},              // PLL registers
        0                           // RF programmed
    }
};

#ifdef __cplusplus
}
#endif

#endif // TM<MODULE>_H //---------------

⌨️ 快捷键说明

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