📄 tmbsltda18211.h
字号:
//-----------------------------------------------------------------------------
// $Header:
// (C) Copyright 2001 NXP Semiconductors, All rights reserved
//
// This source code and any compilation or derivative thereof is the sole
// property of NXP Corporation and is provided pursuant to a Software
// License Agreement. This code is the proprietary information of NXP
// Corporation and is confidential in nature. Its use and dissemination by
// any party other than NXP Corporation is strictly limited by the
// confidential information provisions of the Agreement referenced above.
//-----------------------------------------------------------------------------
// FILE NAME: tmbslTDA18211.h
//
// DESCRIPTION: define the object for the TDA18211
//
// DOCUMENT REF: DVP Software Coding Guidelines v1.14
// DVP Board Support Library Architecture Specification v0.5
//
// NOTES:
//-----------------------------------------------------------------------------
//
#ifndef _TMBSL_TDA18211_H //-----------------
#define _TMBSL_TDA18211_H
//-----------------------------------------------------------------------------
// Standard include files:
//-----------------------------------------------------------------------------
//
#include "tmhalFEtypes.h"
#include "tmbslTunerTypes.h"
#include "dvp.h"
//-----------------------------------------------------------------------------
// Project include files:
//-----------------------------------------------------------------------------
//
#ifdef __cplusplus
extern "C"
{
#endif
//-----------------------------------------------------------------------------
// Types and defines:
//-----------------------------------------------------------------------------
//
#define OM5770C2_BOARD_DEF 0x57700002 //
#define OM5775_BOARD_DEF 0x57750000 //
#define OM5776_BOARD_DEF 0x57760000 //
#define OM5777_BOARD_DEF 0x57770000 //
#define OM5780_BOARD_DEF 0x57800000 //
#define OM5782_BOARD_DEF 0x57820000 //
#define OM5764_BOARD_DEF 0x57640199 //
#define CUSTOM_BOARD_DEF 0x00000000 // custom
#define OM57XX_STANDARD_DEF 2
typedef enum _tmTDA18211cfgIndex_t {
BOARD = 0,
STANDARD = 1,
FEINIT = 100,
IDENTITY = 102,
GETNBOFUNIT = 200,
BANDWIDTH = 300,
RFBAND = 302,
RF,
ID,
POR,
MAINLOCK,
PLRFAGC = 310,
POWERSTATE = 312,
PLRUN = 350,
TMVALUE,
PLMODE,
PLAGC1,
PLAGC2,
RFCALOK,
IRCALOK,
BPFILTER,
GAINTAPER,
LPFC,
CALRFN,
XTOUT,
IFLEVEL,
EXTENDEDREG,
CALPOSTDIV,
CALDIV,
MAINPOSTDIV,
MAINDIV,
MAPNAME,
MAPCOLUMN,
MAPROW,
MAPVALUE,
READINIT,
RFCAL_TCOMP,
STATUSBYTE = 380,
PROTOCOLSTEP,
PROTOCOLWAIT,
STANDARDMODE = 400,
IF = 517,
} tmTDA18211cfgIndex_t;
typedef enum _tmTDA18211PowerState_t {
tmPowerNormalMode, // Device normal mode
tmPowerSleepMode, // Device sleep mode
tmPowerStandbyWith16MHz, // Device standby with 16Mhz
tmPowerStandbyWith16MHzAndLoopThrough, // Device standby with 16Mhz and loop through
tmPowerStandbyWithLoopThrough, // Device standby with loop through
tmPowerNotSupported, // Not supported power mode
} tmTDA18211PowerState_t, *ptmTDA18211PowerState_t;
typedef enum _tmTDA18211StandardMode_t {
tmDigital_TV_ATSC_6MHz, // Digital TV ATSC 6MHz
tmDigital_TV_DVBT_7MHz, // Digital TV DVB-T 7MHz
tmDigital_TV_DVBT_8MHz, // Digital TV DVB-T 8MHz
tmDigital_CAL, // Digital CAL mode
tmDigital_TV_QAM_6MHz, // Digital TV QAM 6MHz
tmDigital_TV_QAM_8MHz, // Digital TV QAM 8MHz
tmDigital_TV_ISDBT_6MHz, // Digital TV ISDBT 6MHz
tmStandardNotSupported, // Not supported standard
} tmTDA18211StandardMode_t, *ptmTDA18211StandardMode_t;
tmErrorCode_t
tmbslTDA18211Init(
tmUnitSelect_t TunerUnit, // I: Tuner unit number
tmbslTuParam_t Param // I: setup parameters
);
tmErrorCode_t
tmbslTDA18211DeInit (
tmUnitSelect_t TunerUnit // I: Tuner unit number
);
tmErrorCode_t
tmbslTDA18211GetSWVersion (
ptmSWVersion_t pSWVersion // I: Receives SW Version
);
tmErrorCode_t
tmbslTDA18211SetPowerState (
tmUnitSelect_t TunerUnit, // I: Tuner unit number
tmTDA18211PowerState_t powerState // I: Power state of this device
);
tmErrorCode_t
tmbslTDA18211GetPowerState (
tmUnitSelect_t TunerUnit, // I: Tuner unit number
tmTDA18211PowerState_t *pPowerState // O: Power state of this device
);
tmErrorCode_t
tmbslTDA18211SetStandardMode (
tmUnitSelect_t TunerUnit, // I: Tuner unit number
tmTDA18211StandardMode_t StandardMode // I: Standard mode of this device
);
tmErrorCode_t
tmbslTDA18211GetStandardMode (
tmUnitSelect_t TunerUnit, // I: Tuner unit number
tmTDA18211StandardMode_t *pStandardMode // O: Standard mode of this device
);
tmErrorCode_t
tmbslTDA18211Write (
tmUnitSelect_t TunerUnit, // I: Tuner unit number
UInt32 uIndex, // I: Start index to write
UInt32 uNbBytes, // I: Number of bytes to write
UInt32* puBytes // I: Pointer on an array of bytes
);
tmErrorCode_t
tmbslTDA18211WriteBit (
tmUnitSelect_t TunerUnit, // I: Tuner unit number
UInt32 uIndex, // I: Start index to write
UInt32 uBitMask, // I: bit mask
UInt32 uBitValue // I: bit value
);
tmErrorCode_t
tmbslTDA18211Read (
tmUnitSelect_t TunerUnit, // I: Tuner unit number
UInt32 uIndex, // I: Start index to read
UInt32 uNbBytes, // I: Number of bytes to read
UInt32* puBytes // I: Pointer on an array of bytes
);
tmErrorCode_t
tmbslTDA18211SetConfig(
tmUnitSelect_t TunerUnit, // I: TunerUnit number
UInt32 uItemId, // I: Identifier of the item to modify
UInt32 uValue // I: Value to set for the config item
);
tmErrorCode_t
tmbslTDA18211GetConfig(
tmUnitSelect_t TunerUnit, // I: Tuner unit number
UInt32 uItemId, // I: Identifier of the item to modify
UInt32* puValue // I: Value to set for the config item
);
tmErrorCode_t
tmbslTDA18211SetRf(
tmUnitSelect_t TunerUnit, // I: Tuner unit number
UInt32 uRF // I: RF frequency in hertz
);
tmErrorCode_t
tmbslTDA18211GetRf(
tmUnitSelect_t TunerUnit, // I: Tuner unit number
UInt32* pRF // O: RF frequency in hertz
);
#ifdef __cplusplus
}
#endif
#endif // TM<MODULE>_H //---------------
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -