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

📄 tda8961.h

📁 用于TM1300/PNX1300系列DSP(主要用于视频处理)的设备库的源码
💻 H
字号:
/*
 *  Copyright (c) 1999 by TriMedia Technologies.
 *
 *  +-------------------------------------------------------------------+
 *  | This software  is furnished under a license  and may only be used |
 *  | and copied in accordance with the terms  and conditions of such a |
 *  | license  and with  the inclusion of this  copyright notice.  This |
 *  | software or any other copies of this software may not be provided |
 *  | or otherwise  made available  to any other person.  The ownership |
 *  | and title of this software is not transferred.                    |
 *  |                                                                   |
 *  | The information  in this software  is subject  to change  without |
 *  | any  prior notice  and should not be construed as a commitment by |
 *  | TriMedia Technologies.                                            |
 *  |                                                                   |
 *  | This  code  and  information  is  provided  "as is"  without  any |
 *  | warranty of any kind,  either expressed or implied, including but |
 *  | not limited  to the implied warranties  of merchantability and/or |
 *  | fitness for any particular purpose.                               |
 *  +-------------------------------------------------------------------+
 *
 *
 *  Module name              : tda8961.h  1.6
 *
 *  Last update              : 18:43:49  -  00/11/09
 *
 *  Description              :
 *
 */

#include <tm1/tsaTvDigDem.h>

#ifndef _TDA8961_H_
#define _TDA8961_H_

#define TDA8961_IIC_ADDRESS_0 0x18
#define TDA8961_IIC_ADDRESS_1 0x1a
#define TDA8961_IIC_ADDRESS_2 0x1c
#define TDA8961_IIC_ADDRESS_3 0x1e

#define TDA8961_SUPPORTED_STANDARDS   (ddsATSC)
#define TDA8961_NUM_ACQUISITION_MODES 2
#define TDA8961_MAX_OFFSET            100000

#if	defined(__cplusplus)
extern	"C"	{
#endif	/* defined(__cplusplus) */

typedef enum tda8961OutputMode
{
    omAtsc,
    omDiag,
    omITU656,
    omSerialExternal,
    omNoneSelected
}tda8961OutputMode_t;

typedef struct
{
    UInt32                  iicAddress;
    tsaTvDigDemTvStandard_t standard;
}tda8961Param_t, *ptda8961Param_t;

extern tmLibdevErr_t tda8961Init(UInt32 unitID, ptda8961Param_t params);
extern tmLibdevErr_t tda8961Term(UInt32 iicAddress);

/* Functions to support a digital demodulator */
extern tmLibdevErr_t tda8961DigDemInit(UInt32 unitID);

extern tmLibdevErr_t tda8961Start(UInt32 unitID);
extern tmLibdevErr_t tda8961Stop(UInt32 unitID);

extern tmLibdevErr_t tda8961GetStatus(UInt32 unitID, ptsaTvDigDemStatus_t status);
extern tmLibdevErr_t tda8961GetTapsAndStatus(UInt32 unitID, ptsaTvDigDemStatus_t status);

extern tmLibdevErr_t tda8961GetOffset(UInt32 unitID, Int *offset);
extern tmLibdevErr_t tda8961Reset(UInt32 unitID);
extern tmLibdevErr_t tda8961SetAcquisitionMode(UInt32 unitID, Int mode);

extern tmLibdevErr_t tda8961GetClusters(UInt32 unitID, ptsaTvDigDemEqCluster_t *clusterArray);
extern tmLibdevErr_t tda8961SetClusters(UInt32 unitID, Int *clusterPositions);

extern tmLibdevErr_t tda8961CorrGetStatus(UInt32 unitID, ptsaTvDigDemCorrStatus_t status);
extern tmLibdevErr_t tda8961CorrSetParams(UInt32 unitID, ptsaTvDigDemCorrParams_t params);
extern tmLibdevErr_t tda8961CorrReadMem(UInt32 unitID, ptsaTvDigDemCorrMem_t corrMem);
extern tmLibdevErr_t tda8961CorrReset(UInt32 unitID);
extern tmLibdevErr_t tda8961CorrStartMemFill(UInt32 unitID);
extern tmLibdevErr_t tda8961CorrStopMemFill(UInt32 unitID);

extern tmLibdevErr_t tda8961GetSer(UInt32 unitID, UInt *ser);

extern tmLibdevErr_t tda8961GetSyncConfidence(UInt32 unitID, UInt *syncConfidence);

/* Functions to support ITU656 bypass */
extern tmLibdevErr_t tda8961ViInit(UInt32 unitID);

#if	defined(__cplusplus)
}
#endif	/* defined(__cplusplus) */

#endif /* _TDA8961_H_ */

⌨️ 快捷键说明

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