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

📄 tmbsl8260local.h

📁 卫星解码器相关代码解析
💻 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:    tmbsl8260local.h
//
// DESCRIPTION:  define the object for the TDA8260
//
// DOCUMENT REF: DVP Software Coding Guidelines v1.14
//               DVP Board Support Library Architecture Specification v0.5
//
// NOTES:        
//-----------------------------------------------------------------------------
//
#ifndef _TMBSL_8260LOCAL_H //-----------------
#define _TMBSL_8260LOCAL_H

//-----------------------------------------------------------------------------
// Standard include files:
//-----------------------------------------------------------------------------
//
#include "..\..\Include\tmhalFEtypes.h"
#include "..\..\Include\dvp.h"

//-----------------------------------------------------------------------------
// Project include files:
//-----------------------------------------------------------------------------
//

#ifdef __cplusplus
extern "C"
{
#endif

//-----------------------------------------------------------------------------
// Types and defines:
//-----------------------------------------------------------------------------
//
#define TDA8260_BSL_COMP_NUM    1
#define TDA8260_BSL_MAJOR_VER   2
#define TDA8260_BSL_MINOR_VER   0

//-------------
// ERROR CODES    
//-------------
#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 TDA8260_MAX_UNITS       1

#define OM5745_BOARD_DEF        0x57450000

#define OM57XX_XTAL_DEF		    4000000
#define OM57XX_DIVRATIO_DEF	    1
#define OM57XX_PRESCALER_DEF	0
#define OM57XX_CPUMP_DEF		0

typedef enum _tm8260cfgIndex_t {
    BOARD = 0,
    XTALL,
    DIVRATIO,
    PRESCALER,
    CPUMP,
    GETNBOFUNIT = 200
} tm8260cfgIndex_t;

typedef struct _tm8260config_t {
    UInt32 uBoard;
    UInt32 uXtall;
    UInt8  bDivRatio;
    UInt8  bPrescaler;
    UInt8  bCpump;
} tm8260config_t, *ptm8260config_t;

typedef struct _tm8260object_t 
{
    Bool				init;
    UInt32				uHwAddress;
    tmhalFEBslSystemFunc_t systemFunc;
    tmPowerState_t		curPowerState;
    tm8260config_t		config;
    UInt32				uPllStep;
    UInt32				pTunerReg[5];
    UInt32				uRfProg;
} tm8260object_t, *ptm8260object_t;


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

static tm8260object_t g8260Instance[] = 
{
    {
        False,                      // True:instance is initialized
        0,                          // HwId not set
        {   Null, Null, Null,       // system function not initialized
            Null, Null, Null
        },                      
        tmPowerOff,                 // default power state
        {   OM5745_BOARD_DEF,       // default configuration structure
            OM57XX_XTAL_DEF,
            OM57XX_DIVRATIO_DEF,
            OM57XX_PRESCALER_DEF,
            OM57XX_CPUMP_DEF
        },
        62500,                      // PLL step
        {0,0,0,0,0},                // PLL registers
        0                           // RF programmed
    },
    {
        False,                      // True:instance is initialized
        0,                          // HwId not set
        {   Null, Null, Null,       // system function not initialized
            Null, Null, Null
        },                      
        tmPowerOff,                 // default power state
        {   OM5745_BOARD_DEF,       // default configuration structure
            OM57XX_XTAL_DEF,
            OM57XX_DIVRATIO_DEF,
            OM57XX_PRESCALER_DEF,
            OM57XX_CPUMP_DEF
        },
        62500,                      // PLL step
        {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 + -