#ifndef _IKONKE_CLUSTER_H_
#define _IKONKE_CLUSTER_H_


#include "tl_common.h"
#include "ikk-module-def.h"
#include "zb_api.h"
#include "zcl_include.h"


typedef enum{ EOOS_OFF = 0, EOOS_ON, EOOS_UNKNOW }OnOffStatusEnum;
typedef enum{ EOOC_OFF = 0, EOOC_ON, EOOC_TOGGLE, EOOC_UNKNOW }OnOffCtrlEnum;

#define ZCL_CMD_ONOFF_OFF                                 0x00
#define ZCL_CMD_ONOFF_ON                                  0x01
#define ZCL_CMD_ONOFF_TOGGLE                              0x02

#define ZCL_ONOFF_STATUS_OFF                              0x00
#define ZCL_ONOFF_STATUS_ON                               0x01

typedef void (*pOnOffClusterOnOffStatusCallback)(uint8_t endpoint, OnOffStatusEnum estatus );


void Update_Local_Attribute_Info(void);

kk_err_t kZclOnOffClusterServerInit(pOnOffClusterOnOffStatusCallback pOnOffStatusCallback );

void ON_OFF_Cmd_Handler(uint8_t endpoint,uint8_t cmd);




#endif /* _SAMPLE_LIGHT_H_ */
