Select one of the symbols to view example projects that use it.
 
Outline
#define __WAVERECORDER_H
Includes
#include "stm32f4xx_hal.h"
#include "main.h"
Exported constants
#define DEFAULT_TIME_REC
#define WR_BUFFER_SIZE
Exported functions
WaveRecorderInit(uint32_t, uint32_t, uint32_t);
WaveRecorderStart(uint16_t *, uint32_t);
WaveRecorderStop();
WaveRecorderProcess();
WaveRecorderProcessingAudioBuffer();
Files
loading...
CodeScopeSTM32 Libraries and SamplesAudio_playback_and_recordInc/waverecorder.h
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/** ****************************************************************************** * @file Audio/Audio_playback_and_record/Inc/waverecorder.h * @author MCD Application Team * @brief Header for waverecorder.c module. ****************************************************************************** * @attention * * Copyright (c) 2017 STMicroelectronics. * All rights reserved. * * This software is licensed under terms that can be found in the LICENSE file * in the root directory of this software component. * If no LICENSE file comes with this software, it is provided AS-IS. * ****************************************************************************** *//* ... */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __WAVERECORDER_H #define __WAVERECORDER_H /* Includes ------------------------------------------------------------------*/ #include "stm32f4xx_hal.h" #include "main.h" Includes /* Exported types ------------------------------------------------------------*/ /* Exported Defines ----------------------------------------------------------*/ /* Exported constants --------------------------------------------------------*/ #define DEFAULT_TIME_REC 30000 /* Recording time in millisecond (Systick Time Base*TIME_REC= 1ms*30000)(default: 30s) */ #define WR_BUFFER_SIZE 4096 /* buffer size in half-word */ Exported constants /* Exported macro ------------------------------------------------------------*/ /* Exported functions ------------------------------------------------------- */ 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 /* __WAVERECORDER_H */