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

📄 tvta1304f.h.svn-base

📁 最新火热的CX32 源代码
💻 SVN-BASE
字号:
#ifndef _TVAUDIO_TA1304F_H
#define _TVAUDIO_TA1304F_H_

#define SLAVE_ADDRESS_TA1304F	0x80

typedef enum
{
	TA1304F_REG_BASS,
	TA1304F_REG_TREBLE,
	TA1304F_REG_VOLUME,
	TA1304F_REG_TESTSW,
	TA1304F_REG_WOOFER,
	TA1304F_REG_BALANCE,
	TA1304F_REG_PORT,
	TA1304F_REG_BASSBOOST
};    

#define BIT_POR  0x80
#define BIT_PORT2 0x02
#define BIT_PORT1 0x01

typedef struct tagTA1304FRegs
{
/*Reg 0x00*/
    Byte ucBass;
/*Reg 0x01*/    
    Byte ucTreble;
/*Reg 0x02*/
    Byte ucVolume;
/*Reg 0x03*/
    Byte ucInputMatrix: 2;
    Byte ucInputAtt: 1;
    Byte ucFixedR03B3: 1;
    Byte ucALSStart: 2;
    Byte ucALSSW: 1;
    Byte ucTestSW: 1;
/*Reg 0x04*/
    Byte ucWoofer;
/*Reg 0x05*/
    Byte ucBalance;
/*Reg 0x06*/
    Byte ucFixedR06B20: 3;
    Byte ucPort3: 1;
    Byte ucPort4: 2;
    Byte ucFixedR06B76: 2;
/*Reg 0x07*/
    Byte ucMute1: 1;
    Byte ucMute2: 1;
    Byte ucWooferLPFDefeat: 1;
    Byte ucFixedR07B3: 1;
    Byte ucWooferLPF: 2;
    Byte ucFixedR07B6: 1;
    Byte ucBassBoost: 1;
}TA1304FRegs; 

#ifdef __cplusplus
extern "C" {
#endif

Bool tvTA1304FInit(RPByte pData);
Bool tvTA1304FSetAttr(Byte ucAttr, Word wVal);
Byte tvTA1304FGetAttr(Byte ucAttr);

#ifdef __cplusplus
};
#endif

#endif

⌨️ 快捷键说明

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