/*******************************************************************************
|
* File Name : TTS.c
|
* Description :
|
* Created on : 2022Äê4ÔÂ30ÈÕ
|
* Author : hido.ltd
|
*******************************************************************************/
|
|
/*******************************************************************************
|
* Include Files *
|
*******************************************************************************/
|
#include "Audio.h"
|
//#include "GPIO.h"
|
//#include "Delay.h"
|
#include "HIDO_Lock.h"
|
#include "HIDO_VLQueue.h"
|
#include "HIDO_Timer.h"
|
#include "string.h"
|
#include "HIDO_Util.h"
|
#include "global_param.h"
|
|
/*******************************************************************************
|
* Macro *
|
*******************************************************************************/
|
|
/*******************************************************************************
|
* Type Definition *
|
*******************************************************************************/
|
|
/*******************************************************************************
|
* Local Variable *
|
*******************************************************************************/
|
|
/*******************************************************************************
|
* Local Function Declaration *
|
*******************************************************************************/
|
|
/*******************************************************************************
|
* Local Function *
|
*******************************************************************************/
|
static HIDO_UINT16 l_u16AudioVolume = 5;
|
|
/*******************************************************************************
|
* Global Function *
|
*******************************************************************************/
|
|
/*******************************************************************************
|
* Function Name : Audio_SetVolume
|
* Description :
|
* Input :
|
* Output :
|
* Return :
|
* Author : hido.ltd
|
*******************************************************************************/
|
HIDO_INT32 Audio_SetVolume(HIDO_UINT16 _u16Volume)
|
{
|
if(_u16Volume > 5)
|
{
|
_u16Volume = 5;
|
}
|
|
l_u16AudioVolume = _u16Volume * 3;
|
|
return HIDO_OK;
|
}
|
|
/*******************************************************************************
|
* Function Name : Audio_GetVolume
|
* Description :
|
* Input :
|
* Output :
|
* Return :
|
* Author : hido.ltd
|
*******************************************************************************/
|
HIDO_UINT16 Audio_GetVolume(HIDO_VOID)
|
{
|
return l_u16AudioVolume;
|
}
|