blob: 4b229c300a2efea4394f8ad141181c9d498f6730 [file] [log] [blame]
b.liud440f9f2025-04-18 10:44:31 +08001#include "lynq_led.h"
2#include "mbtk_type.h"
3#include "mbtk_log.h"
4#include "mbtk_led_control.h"
5
6/****************************DEFINE***************************************/
7#define QSER_RESULT_FAIL -1
8#define QSER_RESULT_SUCCESS 0
9/****************************DEFINE***************************************/
10
11/****************************VARIABLE***************************************/
12
13/****************************VARIABLE***************************************/
14
15
16/******************************FUNC*****************************************/
17
18/******************************FUNC*****************************************/
19
20/****************************API***************************************/
21int lynq_set_netled_on(int led_mode)
22{
23 //UNUSED(led_mode);
24
25 if(led_mode != MBTK_LED_STATUS_CLOSE && led_mode != MBTK_LED_STATUS_OPEN)
26 {
27 LOGE("[qser_led]param is fail.");
28 return QSER_RESULT_FAIL;
29 }
30
31 led_info_s led_control;
32
33 memset(&led_control, 0x0, sizeof(led_info_s));
34 led_control.led_type = MBTK_LED_NET;
35 led_control.status = led_mode;
36 mbtk_led_set(led_control);
37
38 return QSER_RESULT_SUCCESS;
39}
40
41int lynq_set_statusled_on(int led_mode)
42{
43 //UNUSED(led_mode);
44
45 if(led_mode != MBTK_LED_STATUS_CLOSE && led_mode != MBTK_LED_STATUS_OPEN)
46 {
47 LOGE("[qser_led]param is fail.");
48 return QSER_RESULT_FAIL;
49 }
50
51 led_info_s led_control;
52
53 memset(&led_control, 0x0, sizeof(led_info_s));
54 led_control.led_type = MBTK_LED_STATUS;
55 led_control.status = led_mode;
56 mbtk_led_set(led_control);
57
58 return QSER_RESULT_SUCCESS;
59}
60/****************************API***************************************/
61
62