1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* ... */
#ifndef __WAVERECORDER_H
#define __WAVERECORDER_H
#include "stm32f4xx_hal.h"
#include "main.h"
Includes
#define DEFAULT_TIME_REC 30000
#define WR_BUFFER_SIZE 4096
Exported constants
uint32_t WaveRecorderInit(uint32_t AudioFreq, uint32_t BitRes, uint32_t ChnlNbr);
uint8_t WaveRecorderStart(uint16_t* pBuf, uint32_t wSize);
uint32_t WaveRecorderStop(void);
void WaveRecorderProcess(void);
void WaveRecorderProcessingAudioBuffer(void);Exported functions
/* ... */#endif