Select one of the symbols to view example projects that use it.
 
Outline
#define __WAVERECORDER_H
Includes
#include "main.h"
Exported constants
#define DEFAULT_TIME_REC
#define REC_WAVE_NAME
#define REC_SAMPLE_LENGTH
Exported functions
AUDIO_REC_Process();
AUDIO_REC_Start();
AUDIO_PLAYER_Init();
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 "main.h" Includes /* Exported Defines ----------------------------------------------------------*/ /* Exported types ------------------------------------------------------------*/ /* Exported constants --------------------------------------------------------*/ /* Defines for the Audio recording process */ #define DEFAULT_TIME_REC 30 /* Recording time in second (default: 30s) */ #define REC_WAVE_NAME "Wave.wav" #define REC_SAMPLE_LENGTH (DEFAULT_TIME_REC * DEFAULT_AUDIO_IN_FREQ * DEFAULT_AUDIO_IN_CHANNEL_NBR * 2) Exported constants /* Exported macro ------------------------------------------------------------*/ /* Exported functions ------------------------------------------------------- */ AUDIO_ErrorTypeDef AUDIO_REC_Process(void); AUDIO_ErrorTypeDef AUDIO_REC_Start(void); AUDIO_ErrorTypeDef AUDIO_PLAYER_Init(void); Exported functions /* ... */#endif /* __WAVERECORDER_H */