aic23.h
来自「dsp在音频处理中的运用」· C头文件 代码 · 共 38 行
H
38 行
#include <tistdtypes.h>
#define OSK5912_AIC23_I2CADDR 0x1a
/* Codec module definitions */
#define OSK5912_AIC23_NUMREGS 10
#define OSK5912_AIC23_LEFTINVOL 0
#define OSK5912_AIC23_RIGHTINVOL 1
#define OSK5912_AIC23_LEFTHPVOL 2
#define OSK5912_AIC23_RIGHTHPVOL 3
#define OSK5912_AIC23_ANAPATH 4
#define OSK5912_AIC23_DIGPATH 5
#define OSK5912_AIC23_POWERDOWN 6
#define OSK5912_AIC23_DIGIF 7
#define OSK5912_AIC23_SAMPLERATE 8
#define OSK5912_AIC23_DIGACT 9
#define OSK5912_AIC23_RESET 15
/* Frequency definitions */
#define OSK5912_AIC23_FREQ_8KHZ 1
#define OSK5912_AIC23_FREQ_16KHZ 2
#define OSK5912_AIC23_FREQ_24KHZ 3
#define OSK5912_AIC23_FREQ_32KHZ 4
#define OSK5912_AIC23_FREQ_44KHZ 5
#define OSK5912_AIC23_FREQ_48KHZ 6
#define OSK5912_AIC23_FREQ_96KHZ 7
/* ------------------------------------------------------------------------ *
* AIC23 Data Structures *
* ------------------------------------------------------------------------ */
/* Codec Handle */
typedef int OSK5912_AIC23_CodecHandle;
/* AIC23 Codec Structure */
typedef struct
{
Int16 regs[OSK5912_AIC23_NUMREGS];
} OSK5912_AIC23_Config;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?