1 /*
2  * Copyright (C) 2018-2020 Alibaba Group Holding Limited
3  */
4 
5 #ifndef __SIG_MODEL_LIGHTNESS_SRV_H__
6 #define __SIG_MODEL_LIGHTNESS_SRV_H__
7 
8 #define LIGHTNESS_OPC_NUM 4
9 #define LIGHTNESS_DEFAULT 0xE666   //90%
10 #define LIGHTNESS_MAX_VALUE 0xFFFF //100%
11 
12 #define MESH_MODEL_LIGHTNESS_SRV(_user_data) BT_MESH_MODEL(BT_MESH_MODEL_ID_LIGHT_LIGHTNESS_SRV, \
13                                                            g_lightness_op, &g_lightness_pub, _user_data)
14 
15 extern struct bt_mesh_model_pub g_lightness_pub;
16 extern const struct bt_mesh_model_op g_lightness_op[LIGHTNESS_OPC_NUM];
17 
18 void sig_model_lightness_update_by_onoff(sig_model_element_state_t *p_elem);
19 
20 #endif
21