1 #ifndef __SIG_MODEL_EVENT_H__ 2 #define __SIG_MODEL_EVENT_H__ 3 4 #define SIG_MODEL_INDICATE_PAYLOAD_MAX_LEN (20) 5 6 typedef enum _indicate_flag 7 { 8 SIG_MODEL_INDICATE_GEN_ONOFF, 9 SIG_MODEL_INDICATE_GEN_LIGHTNESS, 10 SIG_MODEL_INDICATE_GEN_CTL, 11 SIG_MODEL_INDICATE_GEN_SCENE, 12 SIG_MODEL_INDICATE_FLAGS 13 } sig_model_indicate_flag_e; 14 15 typedef enum 16 { 17 SIG_MODEL_EVT_NONE = 0, 18 SIG_MODEL_EVT_ANALYZE_MSG, 19 SIG_MODEL_EVT_TIME_OUT, 20 SIG_MODEL_EVT_DOWN_MSG, 21 SIG_MODEL_EVT_ACTION_DONE, 22 SIG_MODEL_EVT_INDICATE, 23 24 SIG_MODEL_EVT_DELAY_START = 10, 25 SIG_MODEL_EVT_DELAY_END, 26 27 #ifdef CONFIG_MESH_MODEL_TRANS 28 SIG_MODEL_EVT_TRANS_START, 29 SIG_MODEL_EVT_TRANS_CYCLE, 30 SIG_MODEL_EVT_TRANS_END, 31 #endif 32 33 SIG_MODEL_EVT_GENERIC_MESG = 20, 34 } sig_model_event_e; 35 36 void sig_model_event_set_indicate(int indicate); 37 38 void sig_model_event(sig_model_event_e event, void *p_arg); 39 40 #endif 41