wangyouqiang | 38e5336 | 2024-01-23 10:53:48 +0800 | [diff] [blame] | 1 | #ifndef __MBTK_LED_H__ |
| 2 | #define __MBTK_LED_H__ |
| 3 | |
| 4 | typedef enum |
| 5 | { |
| 6 | MBTK_STATUS_LED_CLOSE = 0, /*close status_led*/ |
| 7 | MBTK_STATUS_LED_OPEN /*open status_led*/ |
| 8 | }mbtk_status_led_type; |
| 9 | |
| 10 | typedef enum |
| 11 | { |
| 12 | MBTK_NET_LED_SEARCH_NETWORK = 0,/*Searching the network or talking on the phone*/ |
| 13 | MBTK_NET_LED_DATA_CONNECT, /*Data connection successful*/ |
| 14 | MBTK_NET_LED_NET_CONNECT, /*Network connection successful*/ |
r.xiao | e1404b3 | 2024-05-23 22:43:39 -0700 | [diff] [blame] | 15 | MBTK_NET_LED_CALL_RINGBACK, /*CALL during dialing*/ |
| 16 | MBTK_NET_LED_CALL_CONNECT, /*CALL connection successful*/ |
| 17 | MBTK_NET_LED_CALL_DISCONNECT, /*CALL disconnection*/ |
wangyouqiang | 38e5336 | 2024-01-23 10:53:48 +0800 | [diff] [blame] | 18 | MBTK_NET_LED_POWER, /*Turn off */ |
| 19 | MBTK_NET_LED_SLEEP, /* sleep */ |
| 20 | MBTK_NET_LED_CLOSE, /*close net_led*/ |
| 21 | MBTK_NET_LED_OPEN /*open net_led*/ |
| 22 | }mbtk_net_led_type; |
| 23 | |
| 24 | void mbtk_net_led_set(mbtk_net_led_type status); |
| 25 | |
| 26 | int status_led_set(mbtk_status_led_type status); |
| 27 | |
| 28 | int mbtk_led_init(void); |
| 29 | |
| 30 | #endif |
| 31 | |
| 32 | |