?? aic23b_regdef.h
字號(hào):
#ifndef _aic23bregdef_
#define _aic23bregdef_
/****************************************************/
/*ADDRESS DEFINE*/
/****************************************************/
#define LLVC 0x0000
//Left line input channel volume control
#define RLVC 0x0200
//Right line input channel volume control
#define LHVC 0x0400
//Left channel headphone volume control
#define RHVC 0x0600
//Right channel headphone volume control
#define AAPC 0x0800
//Analog audio path control
#define DAPC 0x0a00
//Digital audio path control
#define PWDC 0x0c00
//Power down control
#define DAIF 0x0e00
//Digital audio interface format
#define SARC 0x1000
//Sample rate control
#define DIAC 0x1200
//Digital interface activation
#define RSRE 0x1e00
//Reset register
/***************************************************/
/*LLVC BITS DEFINE*/
/***************************************************/
#define LRS 0x0100
//Left/right line simultaneous volume/mute update
#define LIM 0x0080
//Left line input mute
#define LIV 0x001f
//Left line input volume control
/****************************************************/
/*RLVC BITS DEFINE*/
/****************************************************/
#define RLS 0x0100
//Right/left line simultaneous volume/mute update
#define RIM 0x0080
//Right line input mute
#define RIV 0x001f
//Right line input volume control
/****************************************************/
/*LHVC BITS DEFINE*/
/***************************************************/
#define LRHS 0x0100
//Left/right headphone channel simultaneou volume/mute update
#define LZC 0x0080
//Left-channel zero-cross detect
#define LHV 0x007f
//Left Headphone volume control
/*****************************************************/
/*RHVC BITS DEFINE*/
/*****************************************************/
#define RLHS 0x0100
//Right/left headphone channel simultaneous volume/mute update
#define RZC 0x0080
//Right-channel zero-cross detect
#define RHV 0x007f
//Right headphone volume control
/******************************************************/
/*AAPC BITS DEFINE*/
/******************************************************/
#define STASTE 0x01e0
//sidetone enable and added
#define DAC 0x0010
//DAC select
#define BYP 0x0008
//Bypass
#define INSEL 0x0004
//Input select for ADC
#define MICM 0x0002
//Microphone mute
#define MICB 0x0001
//Microphone boost
/*******************************************************/
/*DAPC BITS DEFINE*/
/*******************************************************/
#define DACM 0x0008
//DAC soft mute
#define DEEMP 0x0006
//De-emphasis control
#define ADCHP 0x0001
//ADC high-pass filter
/*******************************************************/
/*PWDC BITS DEFINE*/
/*******************************************************/
#define OFF 0x0080
//Device power
#define CLKPWD 0x0040
//Clock
#define OSCPWD 0x0020
//Oscillator
#define OUTPWD 0x0010
//Output
#define DACPWD 0x0008
//DAC
#define ADCPWD 0x0004
//ADC
#define MICPWD 0x0002
//Microphone input
#define LINEPWD 0x0001
//Line input
/********************************************************/
/*DAIF BITS DEFINE*/
/********************************************************/
#define MS 0x0040
//Master/slave mode
#define LRSWAP 0x0020
//DAC left/right swap
#define LRP 0x0010
//DAC left/right phase
#define IWL 0x000c
//input bit length
#define FOR 0x0003
//Data format
/*********************************************************/
/*SARC BITS DEFINE*/
/*********************************************************/
//#define CLKIN 0x0040
//clock input divider
#define CLKOUT 0x0080
//clock output divder
#define SR 0x003c
//sampling rate control
#define BOSR 0x0002
//Base oversampling rate
#define USBNormal 0x0001
//clock mode select
/*********************************************************/
/*DIAC BITS DEFINE*/
/*********************************************************/
#define RES 0x00c0
//Reset
#define ACT 0x0001
//Activate interface
/**********************************************************/
/*RSRE*/
/**********************************************************/
#define RESET 0x01ff
//Reset
#else
#endif
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -