1 /*
2  * Copyright (C) 2015-2020 Alibaba Group Holding Limited
3  */
4 #ifndef __APP_STATUS_IND_H__
5 #define __APP_STATUS_IND_H__
6 
7 #ifdef RTOS
8 #include "cmsis_os.h"
9 #endif
10 
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14 
15 typedef enum APP_STATUS_INDICATION_T {
16     APP_STATUS_INDICATION_POWERON = 0,
17     APP_STATUS_INDICATION_INITIAL,
18     APP_STATUS_INDICATION_PAGESCAN,
19     APP_STATUS_INDICATION_POWEROFF,
20     APP_STATUS_INDICATION_CHARGENEED,
21     APP_STATUS_INDICATION_CHARGING,
22     APP_STATUS_INDICATION_FULLCHARGE,
23     APP_STATUS_INDICATION_NO_REPEAT_NUM,
24     /* repeatable status: */
25     APP_STATUS_INDICATION_BOTHSCAN = APP_STATUS_INDICATION_NO_REPEAT_NUM,
26     APP_STATUS_INDICATION_CONNECTING,
27     APP_STATUS_INDICATION_CONNECTED,
28     APP_STATUS_INDICATION_DISCONNECTED,
29     APP_STATUS_INDICATION_CALLNUMBER,
30     APP_STATUS_INDICATION_INCOMINGCALL,
31     APP_STATUS_INDICATION_PAIRSUCCEED,
32     APP_STATUS_INDICATION_PAIRFAIL,
33     APP_STATUS_INDICATION_HANGUPCALL,
34     APP_STATUS_INDICATION_REFUSECALL,
35     APP_STATUS_INDICATION_ANSWERCALL,
36     APP_STATUS_INDICATION_CLEARSUCCEED,
37     APP_STATUS_INDICATION_CLEARFAIL,
38     APP_STATUS_INDICATION_WARNING,
39     APP_STATUS_INDICATION_ALEXA_START,
40     APP_STATUS_INDICATION_ALEXA_STOP,
41     APP_STATUS_INDICATION_GSOUND_MIC_OPEN,
42     APP_STATUS_INDICATION_GSOUND_MIC_CLOSE,
43     APP_STATUS_INDICATION_GSOUND_NC,
44     APP_STATUS_INDICATION_INVALID,
45     APP_STATUS_INDICATION_MUTE,
46     APP_STATUS_INDICATION_TESTMODE,
47     APP_STATUS_INDICATION_TESTMODE1,
48     APP_STATUS_RING_WARNING,
49 #ifdef __INTERACTION__
50     APP_STATUS_INDICATION_FINDME,
51 #endif
52     APP_STATUS_INDICATION_TILE_FIND,
53     APP_STATUS_INDICATION_NUM
54 }APP_STATUS_INDICATION_T;
55 
56 const char *status2str(uint16_t status);
57 int app_status_indication_filter_set(APP_STATUS_INDICATION_T status);
58 APP_STATUS_INDICATION_T app_status_indication_get(void);
59 int app_status_indication_set(APP_STATUS_INDICATION_T status);
60 
61 
62 #ifdef __cplusplus
63 }
64 #endif
65 
66 #endif
67 
68