📄 sound.h
字号:
#ifndef _MXLSOUND_H_#define _MXLSOUND_H_#define FILE_SAMPLING_FREQ 44100 // in Hz// Constant declarations used by I2S mode#define SLOT_BY_FRAME 2#define BITS_BY_SLOT 16// IRQ level declaration#define IRQ_LEVEL_I2S 5 /*IOCTL COMMANDS */#define DAC_OFF 0x10#define MONO 0x11#define STERO 0x12#define LR_MUTE 0x20#define LEFT_MUTE 0x21#define RIGHT_MUTE 0x22#define LEFT_FULL 0x23#define LEFT_LOW 0x24#define RIGHT_FULL 0x25#define RIGHT_LOW 0x26#define SOUND_DEC 0x27#define SOUND_INC 0x28#define SOUND_PAUSE 0x29#define SOUND_RESUME 0x30#define SOUND_STOP 0x31#define LINEIN 0x32#define MIC 0x33#define REC 0x34#define SOUND 0x35#define MUTE 0x36 //#define BUFSIZE (256*1024)#define BUFSIZE (100*1000)#define DMASIZE 56000#define A9200_TXDMA 0 // tx channel#define A9200_RXDMA 1 // rx channelint a9200_isopen;int a9200_txbusy,a9200_rxbusy;int a9200_dmaing,a9200_rxdmaing;unsigned int a9200_speed;unsigned int a9200_stereo;unsigned int a9200_bits;unsigned int a9200_format;unsigned long a9200_imrbit,a9200_rximrbit;volatile unsigned int a9200_rxstart;volatile unsigned int a9200_rxend;unsigned char *a9200_buf;volatile unsigned int a9200_dmastart,a9200_rxdmastart;volatile unsigned int a9200_dmacount,a9200_rxdmacount;volatile unsigned int a9200_appstart,a9200_rxappstart;volatile unsigned int a9200_append,a9200_rxappend;#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -