Select one of the symbols to view example projects that use it.
 
Outline
#define __WAVEPLAYER_H
Includes
#include "main.h"
Exported types
BUFFER_StateTypeDef
WAVE_FormatTypeDef
Exported functions
WavePlayBack(uint32_t);
WavePlayerInit(uint32_t);
WavePlayerStop();
WavePlayerPauseResume(uint32_t);
WavePlayerStart();
WavePlayer_CallBack();
Files
loading...
CodeScopeSTM32 Libraries and SamplesAudio_playback_and_recordInc/waveplayer.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
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/** ****************************************************************************** * @file Audio/Audio_playback_and_record/Inc/waveplayer.h * @author MCD Application Team * @brief Header for waveplayer.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 __WAVEPLAYER_H #define __WAVEPLAYER_H /* Includes ------------------------------------------------------------------*/ #include "main.h" Includes /* Exported types ------------------------------------------------------------*/ typedef enum { BUFFER_OFFSET_NONE = 0, BUFFER_OFFSET_HALF, BUFFER_OFFSET_FULL, ...}BUFFER_StateTypeDef; typedef struct { uint32_t ChunkID; /* 0 */ uint32_t FileSize; /* 4 */ uint32_t FileFormat; /* 8 */ uint32_t SubChunk1ID; /* 12 */ uint32_t SubChunk1Size; /* 16*/ uint16_t AudioFormat; /* 20 */ uint16_t NbrChannels; /* 22 */ uint32_t SampleRate; /* 24 */ uint32_t ByteRate; /* 28 */ uint16_t BlockAlign; /* 32 */ uint16_t BitPerSample; /* 34 */ uint32_t SubChunk2ID; /* 36 */ uint32_t SubChunk2Size; /* 40 */ ...}WAVE_FormatTypeDef; Exported types /* Exported constants --------------------------------------------------------*/ /* Exported macro ------------------------------------------------------------*/ /* Exported functions ------------------------------------------------------- */ void WavePlayBack(uint32_t AudioFreq); int WavePlayerInit(uint32_t AudioFreq); void WavePlayerStop(void); void WavePlayerPauseResume(uint32_t state); void WavePlayerStart(void); void WavePlayer_CallBack(void);Exported functions /* ... */#endif /* __WAVEPLAYER_H */