microcontrol.c
来自「VS1002D ADPCM RECORDING INSTRUCTIONS v 1」· C语言 代码 · 共 25 行
C
25 行
/*
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 + =
减小字号Ctrl + -
显示快捷键?