b.liu | 87afc4c | 2024-08-14 17:33:45 +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*/ |
| 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*/ |
| 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 | |
r.xiao | ab6f4ec | 2024-12-19 03:42:17 -0800 | [diff] [blame] | 30 | int mbtk_led_contril_server_init(void); |
| 31 | |
| 32 | int mbtk_status_led_control_get(); |
| 33 | |
b.liu | 87afc4c | 2024-08-14 17:33:45 +0800 | [diff] [blame] | 34 | #endif |
| 35 | |
| 36 | |
| 37 | |