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*/ |
| 15 | MBTK_NET_LED_POWER, /*Turn off */ |
| 16 | MBTK_NET_LED_SLEEP, /* sleep */ |
| 17 | MBTK_NET_LED_CLOSE, /*close net_led*/ |
| 18 | MBTK_NET_LED_OPEN /*open net_led*/ |
| 19 | }mbtk_net_led_type; |
| 20 | |
| 21 | void mbtk_net_led_set(mbtk_net_led_type status); |
| 22 | |
| 23 | int status_led_set(mbtk_status_led_type status); |
| 24 | |
| 25 | int mbtk_led_init(void); |
| 26 | |
| 27 | #endif |
| 28 | |
| 29 | |