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

📄 tda9850.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              : tda9850.h    1.2
 *
 *  Last update              : 18:43:50 - 00/11/09
 *
 *  Description              :
 *
 */

#ifndef _TDA9850_H_
#define _TDA9850_H_

#include <tmlib/tmtypes.h>
#include <tm1/tsaTvAudDem.h>
#include <tm1/tsaTvAudDemBoard.h>

#define TDA9850_IIC_ADDRESS_1 0xb4
#define TDA9850_IIC_ADDRESS_2 0xb6

#define TDA9850_SUPPORTED_AUDIO_MODES   (tamMono | tamStereo | tamSAP)

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

typedef struct
{
    UInt                    iicAddress;
    UInt                    iicDirection;
    tsaTvaAudDemAudioMode_t audioMode;
}tda9850Param_t, *ptda9850Param_t;

extern tmLibdevErr_t tda9850Init(unitSelect_t unitID, ptda9850Param_t params);
extern tmLibdevErr_t tda9850Term(unitSelect_t unitID);
extern tmLibdevErr_t tda9850Start(unitSelect_t unitID);
extern tmLibdevErr_t tda9850Stop(unitSelect_t unitID);
extern tmLibdevErr_t tda9850MuteStereo(unitSelect_t unitID);
extern tmLibdevErr_t tda9850MuteSAP(unitSelect_t unitID);
extern tmLibdevErr_t tda9850GetStatus(unitSelect_t unitID, ptsaTvAudDemStatus_t status);
extern tmLibdevErr_t tda9850SetStereo(unitSelect_t unitID, Bool enable);
extern tmLibdevErr_t tda9850SetSAP(unitSelect_t unitID, Bool enable);

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

#endif /* _TDA9850_H_ */

⌨️ 快捷键说明

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