1 /*
2  * Copyright (C) 2015-2020 Alibaba Group Holding Limited
3  */
4 ////////////////////////////////////////////////////////////////
5 //
6 
7 #ifndef __RESOURCES_H__
8 #define __RESOURCES_H__
9 #include "plat_types.h"
10 
11 typedef enum {
12     AUD_ID_INVALID  = -1,
13     AUD_ID_POWER_ON = 0x0,
14     AUD_ID_POWER_OFF,
15     AUD_ID_LANGUAGE_SWITCH,
16 
17     AUD_ID_NUM_0,
18     AUD_ID_NUM_1,
19     AUD_ID_NUM_2,
20     AUD_ID_NUM_3,
21     AUD_ID_NUM_4,
22     AUD_ID_NUM_5,
23     AUD_ID_NUM_6,
24     AUD_ID_NUM_7,
25     AUD_ID_NUM_8,
26     AUD_ID_NUM_9,
27 
28     AUD_ID_BT_PAIR_ENABLE,
29     AUD_ID_BT_PAIRING,
30     AUD_ID_BT_PAIRING_SUC,
31     AUD_ID_BT_PAIRING_FAIL,
32     AUD_ID_BT_CALL_REFUSE,
33     AUD_ID_BT_CALL_OVER,
34     AUD_ID_BT_CALL_ANSWER,
35     AUD_ID_BT_CALL_HUNG_UP,
36     AUD_ID_BT_CALL_INCOMING_CALL,
37     AUD_ID_BT_CALL_INCOMING_NUMBER,
38     AUD_ID_BT_CHARGE_PLEASE,
39     AUD_ID_BT_CHARGE_FINISH,
40     AUD_ID_BT_CLEAR_SUCCESS,
41     AUD_ID_BT_CLEAR_FAIL,
42     AUD_ID_BT_CONNECTED,
43     AUD_ID_BT_DIS_CONNECT,
44     AUD_ID_BT_WARNING,
45     AUDIO_ID_BT_ALEXA_START,
46     AUDIO_ID_BT_ALEXA_STOP,
47     AUDIO_ID_BT_GSOUND_MIC_OPEN,
48     AUDIO_ID_BT_GSOUND_MIC_CLOSE,
49     AUDIO_ID_BT_GSOUND_NC,
50     AUDIO_ID_BT_MUTE,
51     AUD_ID_RING_WARNING,
52 #ifdef __INTERACTION__
53     AUD_ID_BT_FINDME,
54 #endif
55     MAX_RECORD_NUM,
56     AUD_ID_ENUM_BOTTOM = 0x1001,
57 } AUD_ID_ENUM;
58 
59 enum ENUM_RESOURCE_ID
60 {
61     RES_ENGLISH_ID = 0xFF00,
62     RES_CHINESE_ID = 0xFF01,
63 
64     MAX_RES_LANGUAGE_ID
65 };
66 
67 //typedef uint8_t UINT8;
68 //typedef uint16_t UINT16;
69 //typedef uint32_t UINT32;
70 
71 void init_audio_resource(void* gResource);
72 
73 UINT8* aud_get_reouce(AUD_ID_ENUM id, UINT32* leng, UINT16* type);
74 
75 const char *aud_id2str(UINT16 aud_id);
76 
77 extern UINT8 BIN_FILE[];
78 
79 #endif//__RESOURCES_H__
80 
81