📄 microcontrol.c
字号:
/*
MICROCONTROL.C - (C) 2004 VLSI SOLUTION OY
Example program functions which activates VS1002d's ADPCM quality patch, then
reads ADPCM data from VS1002d and stores it to a file.
This file should be helpful when creating your own ADPCM data. The
example file in this directory, adpcm_ex.wav was created with the
help of these functions.
Disclaimer: Many necessary error checks have been omitted for clarity.
No warranty whatsoever.
*/
#define SCI_DATA SCI_HDAT0
#define SCI_BUF_FILL SCI_HDAT1
unsigned char header[] = {
0x52, 0x49, 0x46, 0x46, 0x1c, 0x10, 0x00, 0x00,
0x57, 0x41, 0x56, 0x45, 0x66, 0x6d, 0x74, 0x20, /*|RIFF....WAVEfmt |*/
0x14, 0x00, 0x00, 0x00, 0x11, 0x00, 0x01, 0x00,
0x40, 0x1f, 0x00, 0x00, 0xd7, 0x0f, 0x00, 0x00, /*|........@...
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -