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"
Exported constants
#define MUTE_OFF
#define MUTE_ON
#define DEFAULT_AUDIO_VOLUME
AUDIOPLAYER_ErrorTypdef
#define AUDIOPLAYER_StateTypdef
Exported types
AUDIOPLAYER_Init(uint8_t);
AUDIOPLAYER_Play(uint32_t);
AUDIOPLAYER_Stop();
AUDIOPLAYER_Pause();
AUDIOPLAYER_Resume();
AUDIOPLAYER_Mute(uint8_t);
AUDIOPLAYER_GetFileInfo(char *, WAV_InfoTypedef *);
AUDIOPLAYER_SelectFile(char *);
AUDIOPLAYER_GetState();
AUDIOPLAYER_Process();
AUDIOPLAYER_DeInit();
AUDIOPLAYER_GetProgress();
AUDIOPLAYER_SetVolume(uint32_t);
AUDIOPLAYER_GetVolume();
AUDIOPLAYER_NotifyEndOfFile();
AUDIOPLAYER_SetPosition(uint32_t);
Files
loading...
CodeScopeSTM32 Libraries and SamplesSTemWinModules/audio_player/audio_player_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
69
70
71
72
73
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/** ****************************************************************************** * @file audio_player_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 MUTE_OFF 0x00 #define MUTE_ON 0x01 #define DEFAULT_AUDIO_VOLUME 50 typedef enum { AUDIOPLAYER_ERROR_NONE = 0, AUDIOPLAYER_ERROR_IO, AUDIOPLAYER_ERROR_HW, AUDIOPLAYER_ERROR_MEM, AUDIOPLAYER_ERROR_FORMAT_NOTSUPPORTED, ...}AUDIOPLAYER_ErrorTypdef; #define AUDIOPLAYER_StateTypdef OUT_StateTypdef Exported constants/* Exported types ------------------------------------------------------------*/ Exported types /* Exported macros -----------------------------------------------------------*/ /* Exported functions ------------------------------------------------------- */ AUDIOPLAYER_ErrorTypdef AUDIOPLAYER_Init(uint8_t volume); AUDIOPLAYER_ErrorTypdef AUDIOPLAYER_Play(uint32_t frequency); AUDIOPLAYER_ErrorTypdef AUDIOPLAYER_Stop(void); AUDIOPLAYER_ErrorTypdef AUDIOPLAYER_Pause(void); AUDIOPLAYER_ErrorTypdef AUDIOPLAYER_Resume(void); AUDIOPLAYER_ErrorTypdef AUDIOPLAYER_Mute(uint8_t state); AUDIOPLAYER_ErrorTypdef AUDIOPLAYER_GetFileInfo(char* file, WAV_InfoTypedef* info); AUDIOPLAYER_ErrorTypdef AUDIOPLAYER_SelectFile(char* file); AUDIOPLAYER_StateTypdef AUDIOPLAYER_GetState(void); AUDIOPLAYER_ErrorTypdef AUDIOPLAYER_Process(void); AUDIOPLAYER_ErrorTypdef AUDIOPLAYER_DeInit(void); uint32_t AUDIOPLAYER_GetProgress (void); AUDIOPLAYER_ErrorTypdef AUDIOPLAYER_SetVolume(uint32_t volume); uint32_t AUDIOPLAYER_GetVolume(void); AUDIOPLAYER_ErrorTypdef AUDIOPLAYER_NotifyEndOfFile(void); AUDIOPLAYER_ErrorTypdef AUDIOPLAYER_SetPosition(uint32_t position); #ifdef __cplusplus }extern "C" { ... } #endif /* ... */ #endif /*__AUDIO_PLAYER_APP_H */