📄 tda8980.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 : tda8980.h 1.4
*
* Last update : 18:43:49 - 00/11/09
*
* Description :
*
*
*/
#include <tm1/tmLibdevErr.h>
#include <tm1/tmVI.h>
#include <tm1/tmVIboard.h>
#ifndef _TDA8980_H_
#define _TDA8980_H_
#define TDA8980_IIC_ADDRESS_0 0x8a
#define TDA8980_IIC_ADDRESS_1 0x8e
#define TDA8980_SUPPORTED_STANDARDS (vasNTSC | vasNone)
#define TDA8980_SUPPORTED_ADAPTERS (vaaCVBS | vaaSvideo | vaaNone)
#define TDA8980_CAPABILITIES_FLAGS (vcapNone)
#define TDA8980_OUTPUT_FORMATS (vdfNone)
#if defined(__cplusplus)
extern "C" {
#endif /* defined(__cplusplus) */
typedef enum
{
tda8980ModeAtscTuner,
tda8980ModeNtscTuner,
} tda8980Mode_t;
typedef struct
{
UInt32 iicAddress;
UInt8 mpocVersion;
}tda8980Param_t, *ptda8980Param_t;
extern tmLibdevErr_t tda8980Init(UInt32 unitID, ptda8980Param_t params);
extern tmLibdevErr_t tda8980DigDemInit(UInt32 unitID);
extern tmLibdevErr_t tda8980ViInit(pboardVIDec_t pVD, UInt32 unitID);
extern tmLibdevErr_t tda8980ViGetDefaultAcquisitionWnd(pboardVIDec_t pVD, UInt *beginX, UInt *beginY, UInt *endX, UInt *endY);
extern tmLibdevErr_t tda8980ViGetStatus(pboardVIDec_t pVD, tmVideoStatusType_t type, UInt *pState);
extern tmLibdevErr_t tda8980ViSetAnalogInput(pboardVIDec_t pVD, UInt num);
extern tmLibdevErr_t tda8980ViGetVSyncFallingEdge(pboardVIDec_t pVD, UInt *lineNumber);
extern tmLibdevErr_t tda8980AiInit(UInt32 unitID);
extern tmLibdevErr_t tda8980AiSetSRate(UInt32 unitID, Float sRate);
#if defined(__cplusplus)
}
#endif /* defined(__cplusplus) */
#endif /* _TDA8980_H_ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -