chen
2024-09-20 292ed46c6066d47289f1330b1c2bcc6d74761f95
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
74
75
76
77
/*******************************************************************************
 * 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;
 
    return HIDO_OK;
}
 
/*******************************************************************************
 * Function Name     : Audio_GetVolume
 * Description       :
 * Input             :
 * Output            :
 * Return            :
 * Author            : hido.ltd
 *******************************************************************************/
HIDO_UINT16 Audio_GetVolume(HIDO_VOID)
{
    return l_u16AudioVolume;
}