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

📄 tmbsl1306local.h

📁 三星一体化数字高频头DNQS221PH261A驱动程序
💻 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:    tmbsl1306local.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_1306LOCAL_H //-----------------
#define _TMBSL_1306LOCAL_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   1
#define BSL_MINOR_VER   0

#define MAX_UNITS       0

#define NB_REGISTERS    5   //  4->5

#define OM5755_BOARD_DEF    0x57550000
#define CUSTOM_BOARD_DEF	0x00000000

#define OM5755_CPUMP_DEF    0

typedef enum _tm1306cfgIndex_t {
    BOARD = 0,
    CPUMP,
    GETNBOFUNIT = 200
} tm1306cfgIndex_t;

typedef struct _tm1306config_t {
    UInt32 uBoard;
    UInt8 bCPump;
} tm1306config_t, *ptm1306config_t;

typedef struct _tm1306object_t 
{
    Bool				    init;
    UInt32				    uHwAddress;
    tmhalFEBslSystemFunc_t  systemFunc;
    tmPowerState_t		    curPowerState;
    tm1306config_t		    config;
    UInt32				    uPllStep;
    UInt32				    pTunerReg[NB_REGISTERS];
    UInt32				    uRfProg;
} tm1306object_t, *ptm1306object_t;


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

static tm1306object_t g1306Instance[] = 
{
    {
        False,                      // True:instance is initialized
        0,                          // HwId not set
        {   Null, Null, Null,       // system function not initialized
            Null, Null, Null
        },                      
        tmPowerOff,                 // default power state
        {   OM5755_BOARD_DEF,       // default configuration structure
            OM5755_CPUMP_DEF        // charge pump
        },
        62500,                      // PLL step
        {0,0,0,0,0},                  // PLL registers 4->5
        0                           // RF programmed
    }
};

#ifdef __cplusplus
}
#endif

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

⌨️ 快捷键说明

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