📄 m52795.h
字号:
/*******************************************************************************
** (c) Copyright 2004-2005, xujiajun
** All Rights Reserved
** V040723
**--------------文件信息--------------------------------------------------------
**创 建 人: 徐家俊
**创建日期: 2006年1月20日
**描 述:M52795驱动
**--------------版本修订历史----------------------------------------------------
** 修改人:徐家俊
** 版 本: V
** 日 期: 年月日
** 描 述:
**--------------当前版本修订----------------------------------------------------
** 修改人:徐家俊
** 版 本:
** 日 期:年月日
** 描 述:
**------------------------------------------------------------------------------
*******************************************************************************/
/*-----------------------------------------------------------------------------*/
//define the switch order
#define VIDEO_1 0x00
#define VIDEO_2 0x01
#define VIDEO_3 0x02
#define VIDEO_4 0x03
#define AUDIO_MUTE 0x00
#define AUDIO_RR 0x40
#define AUDIO_LL 0x80
#define AUDIO_RL 0xc0
#define V_AMP_0DB 0x00
#define V_AMP_6DB 0x08
//define the channel
#define AV1_CH VIDEO_1
#define AV2_CH VIDEO_2
#define FM_CH VIDEO_2
#define DVD_CH VIDEO_3// ==> Now the DVD video switch is VIDEO_1,
//must correct hardware and change to VIDEO_3
#define DVDBOX_CH VIDEO_4
/*-----------------------------------------------------------------------------*/
#ifndef IN_M52795
/********************************************************************************************************
Descriptions: SelectSW1OfM52795
input parameters: use defined switch orders
Returned value: None
Used global variables: None
Calling modules: None
Created by: xjj 2006/01/20
-------------------------------------------------------------------------------------------------------
Modified by:
********************************************************************************************************/
void SelectSW1OfM52795(uchar VideoSelect, uchar AudioSelect, uchar VAmp);
/********************************************************************************************************
Descriptions: SelectSW2OfM52795
input parameters: use defined switch orders
Returned value: None
Used global variables: None
Calling modules: None
Created by: xjj 2006/01/20
-------------------------------------------------------------------------------------------------------
Modified by:
********************************************************************************************************/
void SelectSW2OfM52795(uchar VideoSelect, uchar AudioSelect, uchar VAmp);
/********************************************************************************************************
Descriptions: Select all switch of M52795
input parameters: use defined switch orders
Returned value: None
Used global variables: None
Calling modules: None
Created by: simon 2006.05.05
-------------------------------------------------------------------------------------------------------
Modified by:
********************************************************************************************************/
void SelectAllSwOfM52795(uchar VideoSelect, uchar AudioSelect, uchar VAmp);
/********************************************************************************************************
Descriptions: Set M52795 two switchs mute
input parameters: use defined switch orders
Returned value: None
Used global variables: None
Calling modules: None
Created by: xjj 2006/01/20
-------------------------------------------------------------------------------------------------------
Modified by:
********************************************************************************************************/
void M52795Mute(void);
/********************************************************************************************************
Descriptions: Set the I/O of M52795
input parameters: Data: D3=D5;D2=D4;D1=DD;D0=DC; high 4 bits are ignored.
Returned value: None
Used global variables: None
Calling modules: None
Created by: xjj 2006/01/20
-------------------------------------------------------------------------------------------------------
Modified by:
********************************************************************************************************/
void SetIOM52795(uchar Data);
/********************************************************************************************************
Descriptions: Get the I/O of M52795
input parameters: None
Returned value: D3=D5;D2=D4;D1=DD;D0=DC; high 4 bits are ignored.
Used global variables: None
Calling modules: None
Created by: xjj 2006/01/20
-------------------------------------------------------------------------------------------------------
Modified by:
********************************************************************************************************/
//uchar GetIOM52795(void);
#endif//#ifndef IN_M52795
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -