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

📄 pt2313.h

📁 音频控制芯片PT2313的驱动源程序
💻 H
字号:
/*******************************************************************************
**                            (c) Copyright 2004-2005, xujiajun
**                                    All Rights Reserved
**                                        V040723
**--------------文件信息--------------------------------------------------------
**创   建   人: 徐家俊
**创建日期: 2006年1月20日
**描        述:PT2313驱动
**--------------版本修订历史----------------------------------------------------
** 修改人:徐家俊
** 版  本: V
** 日 期: 年月日
** 描 述:
**--------------当前版本修订----------------------------------------------------
** 修改人:徐家俊
** 版  本:
** 日 期:年月日
** 描 述:
**------------------------------------------------------------------------------
*******************************************************************************/

/*-----------------------------------------------------------------------------*/
//define the globle variables which contol the audio property by the PT2313
#define VOLUME_MAX   31
AP_EXT uchar idata ucVolume;      //VOLUME_VALUE      ;音量寄存器
AP_EXT uchar idata ucBalanceRL;   //BALBANCE_VALUE    ;左右音量平衡寄存器
AP_EXT uchar idata ucBalanceFB;   //FAD_VALUE         ;前后平衡
AP_EXT uchar idata ucBass;        //BASS_VALUE        ;低音寄存器
AP_EXT uchar idata ucTreble;      //TREBLE_VALUE      ;高音寄存器
/*-----------------------------------------------------------------------------*/
#ifndef IN_PT2313
/********************************************************************************************************
 Descriptions:          Set the volume
 input parameters:      Volume: from 0 to 31 steps
 Returned value:        None
 Used global variables: None
 Calling modules:       None
 Created by:            xjj 2006/01/20
-------------------------------------------------------------------------------------------------------
 Modified by:
********************************************************************************************************/
//void SetVolume(uchar Volume);
/********************************************************************************************************
 Descriptions:          Set the Bass
 input parameters:      Bass: from 0 to 14 steps
 Returned value:        None
 Used global variables: None
 Calling modules:       None
 Created by:            xjj 2006/01/20
-------------------------------------------------------------------------------------------------------
 Modified by:
********************************************************************************************************/
//void SetBass(uchar Bass);
/********************************************************************************************************
 Descriptions:          Set the Treble
 input parameters:      Treble:from 0 to 14 steps
 Returned value:        None
 Used global variables: None
 Calling modules:       None
 Created by:            xjj 2006/01/20
-------------------------------------------------------------------------------------------------------
 Modified by:
********************************************************************************************************/
//void SetTreble(uchar Treble);
/********************************************************************************************************
 Descriptions:          Mute
 input parameters:      None
 Returned value:        None
 Used global variables: None
 Calling modules:       None
 Created by:            xjj 2006/01/20
-------------------------------------------------------------------------------------------------------
 Modified by:
********************************************************************************************************/
//void PT2313Mute(void);
/********************************************************************************************************
 Descriptions:          AudioSwitch and gain
 input parameters:      channel: Stereo 0 to 3; gain 0 to 3;Londness 1 enable
 Returned value:        None
 Used global variables: None
 Calling modules:       None
 Created by:            xjj 2006/01/20
-------------------------------------------------------------------------------------------------------
 Modified by:
********************************************************************************************************/
void AudioSwitchAndGain(uchar channel, uchar gain, bit LondnessEn);
/********************************************************************************************************
 Descriptions:          Send sound data to PT2313, include volume, bess, treble, balanceRL,
                        balanceFB
 input parameters:      channel: Stereo 1 to 4
 Returned value:        None
 Used global variables: None
 Calling modules:       None
 Created by:            xjj 2006/01/20
-------------------------------------------------------------------------------------------------------
 Modified by:
********************************************************************************************************/
void SendSoundDataPT2313(void);

#endif//#ifndef IN_PT2313

⌨️ 快捷键说明

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