/** ****************************************************************************** * @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__cplusplusextern"C"{#endif/* Includes ------------------------------------------------------------------*/#include"main.h"#include"../Common/audio_if.h"Includes/* Exported constants --------------------------------------------------------*/#defineMUTE_OFF0x00#defineMUTE_ON0x01#defineDEFAULT_AUDIO_VOLUME50typedefenum{AUDIOPLAYER_ERROR_NONE=0,AUDIOPLAYER_ERROR_IO,AUDIOPLAYER_ERROR_HW,AUDIOPLAYER_ERROR_MEM,AUDIOPLAYER_ERROR_FORMAT_NOTSUPPORTED,...}AUDIOPLAYER_ErrorTypdef;#defineAUDIOPLAYER_StateTypdefOUT_StateTypdefExported constants/* Exported types ------------------------------------------------------------*/Exported types/* Exported macros -----------------------------------------------------------*//* Exported functions ------------------------------------------------------- */AUDIOPLAYER_ErrorTypdefAUDIOPLAYER_Init(uint8_tvolume);AUDIOPLAYER_ErrorTypdefAUDIOPLAYER_Play(uint32_tfrequency);AUDIOPLAYER_ErrorTypdefAUDIOPLAYER_Stop(void);AUDIOPLAYER_ErrorTypdefAUDIOPLAYER_Pause(void);AUDIOPLAYER_ErrorTypdefAUDIOPLAYER_Resume(void);AUDIOPLAYER_ErrorTypdefAUDIOPLAYER_Mute(uint8_tstate);AUDIOPLAYER_ErrorTypdefAUDIOPLAYER_GetFileInfo(char*file,WAV_InfoTypedef*info);AUDIOPLAYER_ErrorTypdefAUDIOPLAYER_SelectFile(char*file);AUDIOPLAYER_StateTypdefAUDIOPLAYER_GetState(void);AUDIOPLAYER_ErrorTypdefAUDIOPLAYER_Process(void);AUDIOPLAYER_ErrorTypdefAUDIOPLAYER_DeInit(void);uint32_tAUDIOPLAYER_GetProgress(void);AUDIOPLAYER_ErrorTypdefAUDIOPLAYER_SetVolume(uint32_tvolume);uint32_tAUDIOPLAYER_GetVolume(void);AUDIOPLAYER_ErrorTypdefAUDIOPLAYER_NotifyEndOfFile(void);AUDIOPLAYER_ErrorTypdefAUDIOPLAYER_SetPosition(uint32_tposition);#ifdef__cplusplus}extern "C" { ... }#endif/* ... */#endif/*__AUDIO_PLAYER_APP_H */