/** ****************************************************************************** * @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__cplusplusextern"C"{#endif/* Includes ------------------------------------------------------------------*/#include"main.h"#include"../Common/audio_if.h"Includes/* Exported constants --------------------------------------------------------*/#defineDEFAULT_REC_AUDIO_VOLUME70/* Exported types ------------------------------------------------------------*/typedefenum{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;#defineAUDIO_RECORDER_StateTypdefIN_StateTypdefExported types/* Exported macros -----------------------------------------------------------*//* Exported functions ------------------------------------------------------- */AUDIO_RECORDER_ErrorTypdefAUDIO_RECORDER_Init(uint8_tvolume);AUDIO_RECORDER_ErrorTypdefAUDIO_RECORDER_SelectFile(char*file,uint8_tmode);AUDIO_RECORDER_ErrorTypdefAUDIO_RECORDER_StartRec(uint32_tfrequency);AUDIO_RECORDER_ErrorTypdefAUDIO_RECORDER_DeInit(void);AUDIO_RECORDER_ErrorTypdefAUDIO_RECORDER_StopRec(void);AUDIO_RECORDER_ErrorTypdefAUDIO_RECORDER_StopPlay(void);WAV_InfoTypedef*AUDIO_RECORDER_GetFileInfo(void);uint32_tAUDIO_RECORDER_GetElapsedTime(void);AUDIO_RECORDER_ErrorTypdefAUDIO_RECORDER_Stop(void);AUDIO_RECORDER_ErrorTypdefAUDIO_RECORDER_PauseResume(void);AUDIO_RECORDER_ErrorTypdefAUDIO_RECORDER_DeInit(void);AUDIO_RECORDER_StateTypdefAUDIO_RECORDER_GetState(void);AUDIO_RECORDER_ErrorTypdefAUDIO_RECORDER_Play(uint32_tfrequency);uint32_tAUDIO_RECORDER_GetPlayedTime(void);uint32_tAUDIO_RECORDER_GetTotalTime(void);AUDIO_RECORDER_ErrorTypdefAUDIO_RECORDER_StopPlayer(void);voidAUDIO_RECORDER_RemoveAudioFile(charconst*fname);#ifdef__cplusplus}extern "C" { ... }#endif/* ... */#endif/*__AUDIO_PLAYER_APP_H */
Details
Show: from
Types: Columns:
All items filtered out
All items filtered out
This file uses the notable symbols shown below. Click anywhere in the file to view more details.