Select one of the symbols to view example projects that use it.
 
Outline
#define __AUDIO_PLAYER_APP_H
Includes
#include "main.h"
#include "../Common/audio_if.h"
#define DEFAULT_REC_AUDIO_VOLUME
Exported types
AUDIO_RECORDER_ErrorTypdef
#define AUDIO_RECORDER_StateTypdef
AUDIO_RECORDER_Init(uint8_t);
AUDIO_RECORDER_SelectFile(char *, uint8_t);
AUDIO_RECORDER_StartRec(uint32_t);
AUDIO_RECORDER_DeInit();
AUDIO_RECORDER_StopRec();
AUDIO_RECORDER_StopPlay();
AUDIO_RECORDER_GetFileInfo();
AUDIO_RECORDER_GetElapsedTime();
AUDIO_RECORDER_Stop();
AUDIO_RECORDER_PauseResume();
AUDIO_RECORDER_DeInit();
AUDIO_RECORDER_GetState();
AUDIO_RECORDER_Play(uint32_t);
AUDIO_RECORDER_GetPlayedTime();
AUDIO_RECORDER_GetTotalTime();
AUDIO_RECORDER_StopPlayer();
AUDIO_RECORDER_RemoveAudioFile(const char *);
Files
loading...
CodeScopeSTM32 Libraries and SamplesSTemWinModules/audio_recorder/audio_recorder_app.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/** ****************************************************************************** * @file AUDIO_RECORDER_app.h * @author MCD Application Team * @brief header of audio player application file ****************************************************************************** * @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 __AUDIO_PLAYER_APP_H #define __AUDIO_PLAYER_APP_H #ifdef __cplusplus extern "C" { #endif /* Includes ------------------------------------------------------------------*/ #include "main.h" #include "../Common/audio_if.h" Includes/* Exported constants --------------------------------------------------------*/ #define DEFAULT_REC_AUDIO_VOLUME 70 /* Exported types ------------------------------------------------------------*/ typedef enum { AUDIO_RECORDER_ERROR_NONE = 0, AUDIO_RECORDER_ERROR_IO, AUDIO_RECORDER_ERROR_HW, AUDIO_RECORDER_ERROR_MEM, AUDIO_RECORDER_ERROR_FORMAT_NOTSUPPORTED, ...}AUDIO_RECORDER_ErrorTypdef; #define AUDIO_RECORDER_StateTypdef IN_StateTypdef Exported types/* Exported macros -----------------------------------------------------------*/ /* Exported functions ------------------------------------------------------- */ AUDIO_RECORDER_ErrorTypdef AUDIO_RECORDER_Init(uint8_t volume); AUDIO_RECORDER_ErrorTypdef AUDIO_RECORDER_SelectFile(char* file, uint8_t mode); AUDIO_RECORDER_ErrorTypdef AUDIO_RECORDER_StartRec(uint32_t frequency); AUDIO_RECORDER_ErrorTypdef AUDIO_RECORDER_DeInit(void); AUDIO_RECORDER_ErrorTypdef AUDIO_RECORDER_StopRec(void); AUDIO_RECORDER_ErrorTypdef AUDIO_RECORDER_StopPlay(void); WAV_InfoTypedef* AUDIO_RECORDER_GetFileInfo(void); uint32_t AUDIO_RECORDER_GetElapsedTime(void); AUDIO_RECORDER_ErrorTypdef AUDIO_RECORDER_Stop(void); AUDIO_RECORDER_ErrorTypdef AUDIO_RECORDER_PauseResume(void); AUDIO_RECORDER_ErrorTypdef AUDIO_RECORDER_DeInit(void); AUDIO_RECORDER_StateTypdef AUDIO_RECORDER_GetState(void); AUDIO_RECORDER_ErrorTypdef AUDIO_RECORDER_Play(uint32_t frequency); uint32_t AUDIO_RECORDER_GetPlayedTime(void); uint32_t AUDIO_RECORDER_GetTotalTime(void); AUDIO_RECORDER_ErrorTypdef AUDIO_RECORDER_StopPlayer(void); void AUDIO_RECORDER_RemoveAudioFile(char const*fname); #ifdef __cplusplus }extern "C" { ... } #endif /* ... */ #endif /*__AUDIO_PLAYER_APP_H */