nRF5 SDK for Thread and Zigbee v1.0.0
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
ZLL additions to Color control cluster.

Data Structures

struct  zb_zcl_color_control_enhanced_move_to_hue_req_s
 Structure representsation of Enhanced Move To Hue command payload. More...
 
struct  zb_zcl_color_control_enhanced_move_hue_req_s
 Structure representsation of Enhanced Move Hue command payload. More...
 
struct  zb_zcl_color_control_enhanced_step_hue_req_s
 Structure representsation of Enhanced Step Hue command payload. More...
 
struct  zb_zcl_color_control_enhanced_move_to_hue_saturation_req_s
 Structure representsation of Move To Hue and Saturation command payload. More...
 
struct  zb_zcl_color_control_color_loop_set_req_s
 Structure representsation of Color Loop Set command payload. More...
 
struct  zb_zcl_color_control_color_loop_set_s
 
struct  zb_zcl_color_control_move_color_temp_req_s
 Structure representsation of Move color temperature command payload. More...
 
struct  zb_zcl_color_control_step_color_temp_req_s
 Structure representsation of Step color temperature command command payload. More...
 

Extended Color Control cluster attributes

enum  zb_zcl_color_control_attr_zll_e {
  ZB_ZCL_ATTR_COLOR_CONTROL_ENHANCED_CURRENT_HUE_ZLL_ID = 0x4000, ZB_ZCL_ATTR_COLOR_CONTROL_ENHANCED_COLOR_MODE_ZLL_ID = 0x4001, ZB_ZCL_ATTR_COLOR_CONTROL_COLOR_LOOP_ACTIVE_ZLL_ID = 0x4002, ZB_ZCL_ATTR_COLOR_CONTROL_COLOR_LOOP_DIRECTION_ZLL_ID = 0x4003,
  ZB_ZCL_ATTR_COLOR_CONTROL_COLOR_LOOP_TIME_ZLL_ID = 0x4004, ZB_ZCL_ATTR_COLOR_CONTROL_COLOR_LOOP_START_ZLL_ID = 0x4005, ZB_ZCL_ATTR_COLOR_CONTROL_COLOR_LOOP_STORED_ZLL_ID = 0x4006, ZB_ZCL_ATTR_COLOR_CONTROL_COLOR_CAPABILITIES_ZLL_ID = 0x400a,
  ZB_ZCL_ATTR_COLOR_CONTROL_COLOR_TEMP_PHYSICAL_MIN_ZLL_ID = 0x400b, ZB_ZCL_ATTR_COLOR_CONTROL_COLOR_TEMP_PHYSICAL_MAX_ZLL_ID = 0x400c
}
 Color Control cluster information extended attribute identifiers. More...
 
enum  zb_zcl_color_control_enhanced_color_mode_zll_e { ZB_ZCL_COLOR_CONTROL_COLOR_EX_MODE_HUE_SATURATION = 0x00, ZB_ZCL_COLOR_CONTROL_COLOR_EX_MODE_CURRENT_X_Y = 0x01, ZB_ZCL_COLOR_CONTROL_COLOR_EX_MODE_TEMPERATURE = 0x02, ZB_ZCL_COLOR_CONTROL_COLOR_EX_MODE_HUE_SATURATION_EX = 0x03 }
 Enhanced Color Mode attribute enumeration. More...
 
enum  zb_zcl_color_control_color_capabilities_zll_e {
  ZB_ZCL_COLOR_CONTROL_CAPABILITIES_HUE_SATURATION = 1 << 0, ZB_ZCL_COLOR_CONTROL_CAPABILITIES_EX_HUE = 1 << 1, ZB_ZCL_COLOR_CONTROL_CAPABILITIES_COLOR_LOOP = 1 << 2, ZB_ZCL_COLOR_CONTROL_CAPABILITIES_X_Y = 1 << 3,
  ZB_ZCL_COLOR_CONTROL_CAPABILITIES_COLOR_TEMP = 1 << 4
}
 Enhanced Color Capabilities attribute flags. More...
 
#define ZB_ZCL_COLOR_CONTROL_ENHANCED_HUE_MAX_DEF_VALUE   0xffff
 Enhanced Hue Max attribute default value.
 
#define ZB_ZCL_COLOR_CONTROL_ENHANCED_HUE_RED   (zb_uint16_t)(ZB_ZCL_COLOR_CONTROL_HUE_RED << 8)
 Current Hue attribute red value.
 
#define ZB_ZCL_COLOR_CONTROL_ENHANCED_GREEN   (zb_uint16_t)(ZB_ZCL_COLOR_CONTROL_HUE_GREEN << 8)
 Current Hue attribute green value.
 
#define ZB_ZCL_COLOR_CONTROL_ENHANCED_BLUE   (zb_uint16_t)(ZB_ZCL_COLOR_CONTROL_HUE_BLUE << 8)
 Current Hue attribute blue value.
 
#define ZB_ZCL_COLOR_CONTROL_COLOR_LOOP_TIME_DEF_VALUE   0x0019
 Color Loop Time attribute default value.
 
#define ZB_ZCL_COLOR_CONTROL_COLOR_LOOP_START_DEF_VALUE   0x2300
 Color Loop Start Enhanced Hue attribute default value.
 
#define ZB_ZCL_COLOR_CONTROL_COLOR_CAPABILITIES_MAX_VALUE   0x001f
 Color Capabilities attribute maximum value.
 
#define ZB_ZCL_COLOR_CONTROL_TEMP_PHYSICAL_MIN_DEF_VALUE   0
 Color Temp Physical Min attribute default value.
 
#define ZB_ZCL_COLOR_CONTROL_TEMP_PHYSICAL_MAX_DEF_VALUE   0xffff
 Color Temp Physical Max attribute default value.
 

Color Control cluster internals

Internal structures for Color Control cluster

#define ZB_SET_ATTR_DESCR_WITH_ZB_ZCL_ATTR_COLOR_CONTROL_ENHANCED_CURRENT_HUE_ZLL_ID(data_ptr)
 
#define ZB_SET_ATTR_DESCR_WITH_ZB_ZCL_ATTR_COLOR_CONTROL_ENHANCED_COLOR_MODE_ZLL_ID(data_ptr)
 
#define ZB_SET_ATTR_DESCR_WITH_ZB_ZCL_ATTR_COLOR_CONTROL_COLOR_LOOP_ACTIVE_ZLL_ID(data_ptr)
 
#define ZB_SET_ATTR_DESCR_WITH_ZB_ZCL_ATTR_COLOR_CONTROL_COLOR_LOOP_DIRECTION_ZLL_ID(data_ptr)
 
#define ZB_SET_ATTR_DESCR_WITH_ZB_ZCL_ATTR_COLOR_CONTROL_COLOR_LOOP_TIME_ZLL_ID(data_ptr)
 
#define ZB_SET_ATTR_DESCR_WITH_ZB_ZCL_ATTR_COLOR_CONTROL_COLOR_LOOP_START_ZLL_ID(data_ptr)
 
#define ZB_SET_ATTR_DESCR_WITH_ZB_ZCL_ATTR_COLOR_CONTROL_COLOR_LOOP_STORED_ZLL_ID(data_ptr)
 
#define ZB_SET_ATTR_DESCR_WITH_ZB_ZCL_ATTR_COLOR_CONTROL_COLOR_CAPABILITIES_ZLL_ID(data_ptr)
 
#define ZB_SET_ATTR_DESCR_WITH_ZB_ZCL_ATTR_COLOR_CONTROL_COLOR_TEMP_PHYSICAL_MIN_ZLL_ID(data_ptr)
 
#define ZB_SET_ATTR_DESCR_WITH_ZB_ZCL_ATTR_COLOR_CONTROL_COLOR_TEMP_PHYSICAL_MAX_ZLL_ID(data_ptr)
 
#define ZB_ZCL_DECLARE_COLOR_CONTROL_ATTRIB_LIST_ZLL(attr_list, current_hue,current_saturation, remaining_time, current_X, current_Y, color_temperature,color_mode, number_primaries, primary_1_X, primary_1_Y, primary_1_intensity,primary_2_X, primary_2_Y, primary_2_intensity, primary_3_X, primary_3_Y,primary_3_intensity, primary_4_X, primary_4_Y, primary_4_intensity, primary_5_X,primary_5_Y, primary_5_intensity, primary_6_X, primary_6_Y, primary_6_intensity,enhanced_current_hue, enhanced_color_mode, color_loop_active, color_loop_direction,color_loop_time, color_loop_start, color_loop_stored, color_capabilities,color_temp_physical_min, color_temp_physical_max)
 

Color Control cluster commands

enum  zb_zcl_color_control_cmd_zll_e {
  ZB_ZCL_CMD_COLOR_CONTROL_ENHANCED_MOVE_TO_HUE = 0x40, ZB_ZCL_CMD_COLOR_CONTROL_ENHANCED_MOVE_HUE = 0x41, ZB_ZCL_CMD_COLOR_CONTROL_ENHANCED_STEP_HUE = 0x42, ZB_ZCL_CMD_COLOR_CONTROL_ENHANCED_MOVE_TO_HUE_SATURATION = 0x43,
  ZB_ZCL_CMD_COLOR_CONTROL_COLOR_LOOP_SET = 0x44, ZB_ZCL_CMD_COLOR_CONTROL_STOP_MOVE_STEP = 0x47, ZB_ZCL_CMD_COLOR_CONTROL_MOVE_COLOR_TEMPERATURE = 0x4b, ZB_ZCL_CMD_COLOR_CONTROL_STEP_COLOR_TEMPERATURE = 0x4c
}
 Color control cluster extended command identifiers. More...
 
enum  zb_zcl_color_control_color_loop_update_e { ZB_ZCL_CMD_COLOR_CONTROL_LOOP_UPDATE_ACTION = 1 << 0, ZB_ZCL_CMD_COLOR_CONTROL_LOOP_UPDATE_DIRECTION = 1 << 1, ZB_ZCL_CMD_COLOR_CONTROL_LOOP_UPDATE_TIME = 1 << 2, ZB_ZCL_CMD_COLOR_CONTROL_LOOP_UPDATE_START_HUE = 1 << 3 }
 Update flag for Color Loop Set command See specs 6.8.1.3.6.1. More...
 
enum  zb_zcl_color_control_color_loop_action_e { ZB_ZCL_CMD_COLOR_CONTROL_LOOP_ACTION_DEACTIVATE = 0, ZB_ZCL_CMD_COLOR_CONTROL_LOOP_ACTION_START_HUE = 1, ZB_ZCL_CMD_COLOR_CONTROL_LOOP_ACTION_CURRENT_HUE = 2 }
 Action enumerate for Color Loop Set command See specs 6.8.1.3.6.2. More...
 
enum  zb_zcl_color_control_color_loop_direction_e { ZB_ZCL_CMD_COLOR_CONTROL_LOOP_DIRECTION_DECREMENT = 0, ZB_ZCL_CMD_COLOR_CONTROL_LOOP_DIRECTION_INCREMENT = 1 }
 Direction enumerate for Color Loop Set command See specs 6.8.1.3.6.3. More...
 
typedef struct
zb_zcl_color_control_enhanced_move_to_hue_req_s 
zb_zcl_color_control_enhanced_move_to_hue_req_t
 Structure representsation of Enhanced Move To Hue command payload. More...
 
typedef struct
zb_zcl_color_control_enhanced_move_hue_req_s 
zb_zcl_color_control_enhanced_move_hue_req_t
 Structure representsation of Enhanced Move Hue command payload. More...
 
typedef struct
zb_zcl_color_control_enhanced_step_hue_req_s 
zb_zcl_color_control_enhanced_step_hue_req_t
 Structure representsation of Enhanced Step Hue command payload. More...
 
typedef struct
zb_zcl_color_control_enhanced_move_to_hue_saturation_req_s 
zb_zcl_color_control_enhanced_move_to_hue_saturation_req_t
 Structure representsation of Move To Hue and Saturation command payload. More...
 
typedef struct
zb_zcl_color_control_color_loop_set_req_s 
zb_zcl_color_control_color_loop_set_req_t
 Structure representsation of Color Loop Set command payload. More...
 
typedef struct
zb_zcl_color_control_color_loop_set_s 
zb_zcl_color_control_color_loop_set_t
 
typedef struct
zb_zcl_color_control_move_color_temp_req_s 
zb_zcl_color_control_move_color_temp_req_t
 Structure representsation of Move color temperature command payload. More...
 
typedef struct
zb_zcl_color_control_step_color_temp_req_s 
zb_zcl_color_control_step_color_temp_req_t
 Structure representsation of Step color temperature command command payload. More...
 
#define ZB_ZCL_COLOR_CONTROL_SEND_ENHANCED_MOVE_TO_HUE_REQ(buffer, addr, dst_addr_mode,dst_ep, ep, prfl_id, def_resp, cb, ex_hue, direction, transition_time)
 Send Enhanced Move to Hue command. More...
 
#define ZB_ZCL_COLOR_CONTROL_GET_ENHANCED_MOVE_TO_HUE_REQ(data_ptr, buffer, status)
 Macro for getting Enhanced Move to Hue command. More...
 
#define ZB_ZCL_COLOR_CONTROL_SEND_ENHANCED_MOVE_HUE_REQ(buffer, addr, dst_addr_mode,dst_ep, ep, prfl_id, def_resp, cb, move_mode, rate)
 Send Enhanced Move Hue command. More...
 
#define ZB_ZCL_COLOR_CONTROL_GET_ENHANCED_MOVE_HUE_REQ(data_ptr, buffer, status)
 Macro for getting Enhanced Move Hue command. More...
 
#define ZB_ZCL_COLOR_CONTROL_SEND_ENHANCED_STEP_HUE_REQ(buffer, addr, dst_addr_mode,dst_ep, ep, prfl_id, def_resp, cb, step_mode, step_size, transition_time)
 Send Enhanced Step Hue command. More...
 
#define ZB_ZCL_COLOR_CONTROL_GET_ENHANCED_STEP_HUE_REQ(data_ptr, buffer, status)
 Macro for getting Enhanced Step Hue command. More...
 
#define ZB_ZCL_COLOR_CONTROL_SEND_ENHANCED_MOVE_TO_HUE_SATURATION_REQ(buffer, addr, dst_addr_mode,dst_ep, ep, prfl_id, def_resp, cb, enhanced_hue, saturation, transition_time)
 Send Enhanced Move to Hue and Saturation command. More...
 
#define ZB_ZCL_COLOR_CONTROL_GET_ENHANCED_MOVE_TO_HUE_SATURATION_REQ(data_ptr, buffer, status)
 Macro for getting Enhanced Move To Hue and Saturation command. More...
 
#define ZB_ZCL_COLOR_CONTROL_FILL_COLOR_LOOP_SET_DATA(buf, cmd_info_)
 
#define ZB_ZCL_COLOR_CONTROL_SEND_COLOR_LOOP_SET_REQ(buffer, addr, dst_addr_mode,dst_ep, ep, prfl_id, def_resp, cb, update_flags, action, direction, time, start_hue)
 Send Color Loop Set command. More...
 
#define ZB_ZCL_COLOR_CONTROL_GET_COLOR_LOOP_SET_REQ(data_ptr, buffer, status)
 Macro for getting Color Loop Set command. More...
 
#define ZB_ZCL_COLOR_CONTROL_SEND_STOP_MOVE_STEP_REQ(buffer, addr, dst_addr_mode,dst_ep, ep, prfl_id, def_resp, cb)
 Stop move step command, see spec 6.8.1.3.7. More...
 
#define ZB_ZCL_COLOR_CONTROL_SEND_MOVE_COLOR_TEMP_REQ(buffer, addr, dst_addr_mode,dst_ep, ep, prfl_id, def_resp, cb, move_mode, rate, color_temp_min, color_temp_max)
 Send Move color temperature command. More...
 
#define ZB_ZCL_COLOR_CONTROL_GET_MOVE_COLOR_TEMP_REQ(data_ptr, buffer, status)
 Macro for getting Move color temperature command. More...
 
#define ZB_ZCL_COLOR_CONTROL_SEND_STEP_COLOR_TEMP_REQ(buffer, addr, dst_addr_mode,dst_ep, ep, prfl_id, def_resp, cb, step_mode, step_size, transition_time, color_temp_min, color_temp_max)
 Step color temperature command. More...
 
#define ZB_ZCL_COLOR_CONTROL_GET_STEP_COLOR_TEMP_REQ(data_ptr, buffer, status)
 Macro for getting Move color temperature command. More...
 

Detailed Description

ZLL additions to Color control cluster.

Macro Definition Documentation

#define ZB_SET_ATTR_DESCR_WITH_ZB_ZCL_ATTR_COLOR_CONTROL_COLOR_CAPABILITIES_ZLL_ID (   data_ptr)
Value:
{ \
ZB_ZCL_ATTR_COLOR_CONTROL_COLOR_CAPABILITIES_ZLL_ID, \
(zb_voidp_t) data_ptr \
}
Definition: zb_zcl_common.h:456
Definition: zb_zcl_common.h:490
void * zb_voidp_t
Project-local "pointer to void" type.
Definition: zb_types.h:293
#define ZB_SET_ATTR_DESCR_WITH_ZB_ZCL_ATTR_COLOR_CONTROL_COLOR_LOOP_ACTIVE_ZLL_ID (   data_ptr)
Value:
{ \
ZB_ZCL_ATTR_COLOR_CONTROL_COLOR_LOOP_ACTIVE_ZLL_ID, \
(zb_voidp_t) data_ptr \
}
Definition: zb_zcl_common.h:495
Definition: zb_zcl_common.h:490
void * zb_voidp_t
Project-local "pointer to void" type.
Definition: zb_types.h:293
Definition: zb_zcl_common.h:455
#define ZB_SET_ATTR_DESCR_WITH_ZB_ZCL_ATTR_COLOR_CONTROL_COLOR_LOOP_DIRECTION_ZLL_ID (   data_ptr)
Value:
{ \
ZB_ZCL_ATTR_COLOR_CONTROL_COLOR_LOOP_DIRECTION_ZLL_ID, \
(zb_voidp_t) data_ptr \
}
Definition: zb_zcl_common.h:495
Definition: zb_zcl_common.h:490
void * zb_voidp_t
Project-local "pointer to void" type.
Definition: zb_types.h:293
Definition: zb_zcl_common.h:455
#define ZB_SET_ATTR_DESCR_WITH_ZB_ZCL_ATTR_COLOR_CONTROL_COLOR_LOOP_START_ZLL_ID (   data_ptr)
Value:
{ \
ZB_ZCL_ATTR_COLOR_CONTROL_COLOR_LOOP_START_ZLL_ID, \
(zb_voidp_t) data_ptr \
}
Definition: zb_zcl_common.h:456
Definition: zb_zcl_common.h:490
void * zb_voidp_t
Project-local "pointer to void" type.
Definition: zb_types.h:293
#define ZB_SET_ATTR_DESCR_WITH_ZB_ZCL_ATTR_COLOR_CONTROL_COLOR_LOOP_STORED_ZLL_ID (   data_ptr)
Value:
{ \
ZB_ZCL_ATTR_COLOR_CONTROL_COLOR_LOOP_STORED_ZLL_ID, \
(zb_voidp_t) data_ptr \
}
Definition: zb_zcl_common.h:456
Definition: zb_zcl_common.h:490
void * zb_voidp_t
Project-local "pointer to void" type.
Definition: zb_types.h:293
#define ZB_SET_ATTR_DESCR_WITH_ZB_ZCL_ATTR_COLOR_CONTROL_COLOR_LOOP_TIME_ZLL_ID (   data_ptr)
Value:
{ \
ZB_ZCL_ATTR_COLOR_CONTROL_COLOR_LOOP_TIME_ZLL_ID, \
(zb_voidp_t) data_ptr \
}
Definition: zb_zcl_common.h:456
Definition: zb_zcl_common.h:495
Definition: zb_zcl_common.h:490
void * zb_voidp_t
Project-local "pointer to void" type.
Definition: zb_types.h:293
#define ZB_SET_ATTR_DESCR_WITH_ZB_ZCL_ATTR_COLOR_CONTROL_COLOR_TEMP_PHYSICAL_MAX_ZLL_ID (   data_ptr)
Value:
{ \
ZB_ZCL_ATTR_COLOR_CONTROL_COLOR_TEMP_PHYSICAL_MAX_ZLL_ID, \
(zb_voidp_t) data_ptr \
}
Definition: zb_zcl_common.h:456
Definition: zb_zcl_common.h:490
void * zb_voidp_t
Project-local "pointer to void" type.
Definition: zb_types.h:293
#define ZB_SET_ATTR_DESCR_WITH_ZB_ZCL_ATTR_COLOR_CONTROL_COLOR_TEMP_PHYSICAL_MIN_ZLL_ID (   data_ptr)
Value:
{ \
ZB_ZCL_ATTR_COLOR_CONTROL_COLOR_TEMP_PHYSICAL_MIN_ZLL_ID, \
(zb_voidp_t) data_ptr \
}
Definition: zb_zcl_common.h:456
Definition: zb_zcl_common.h:490
void * zb_voidp_t
Project-local "pointer to void" type.
Definition: zb_types.h:293
#define ZB_SET_ATTR_DESCR_WITH_ZB_ZCL_ATTR_COLOR_CONTROL_ENHANCED_COLOR_MODE_ZLL_ID (   data_ptr)
Value:
{ \
ZB_ZCL_ATTR_COLOR_CONTROL_ENHANCED_COLOR_MODE_ZLL_ID, \
(zb_voidp_t) data_ptr \
}
Definition: zb_zcl_common.h:490
void * zb_voidp_t
Project-local "pointer to void" type.
Definition: zb_types.h:293
Definition: zb_zcl_common.h:455
#define ZB_SET_ATTR_DESCR_WITH_ZB_ZCL_ATTR_COLOR_CONTROL_ENHANCED_CURRENT_HUE_ZLL_ID (   data_ptr)
Value:
{ \
ZB_ZCL_ATTR_COLOR_CONTROL_ENHANCED_CURRENT_HUE_ZLL_ID, \
(zb_voidp_t) data_ptr \
}
Definition: zb_zcl_common.h:456
Definition: zb_zcl_common.h:495
Definition: zb_zcl_common.h:490
void * zb_voidp_t
Project-local "pointer to void" type.
Definition: zb_types.h:293
#define ZB_ZCL_COLOR_CONTROL_FILL_COLOR_LOOP_SET_DATA (   buf,
  cmd_info_ 
)
Value:
{ \
zb_zcl_color_control_color_loop_set_t *loop_data = \
ZB_MEMMOVE(&(loop_data->cmd_info), (cmd_info_), sizeof(zb_zcl_parsed_hdr_t)); \
loop_data->last_time = ZB_TIMER_GET(); \
}
Definition: zb_zcl_common.h:863
Definition: zb_zcl_color_control_zll_adds.h:675
#define ZB_GET_BUF_PARAM(zbbuf, type)
Definition: zboss_api_core.h:920
#define ZB_TIMER_GET()
Definition: zboss_api_core.h:105
#define ZB_ZCL_COLOR_CONTROL_GET_COLOR_LOOP_SET_REQ (   data_ptr,
  buffer,
  status 
)
Value:
{ \
{ \
} \
else \
{ \
ZB_MEMCPY((data_ptr), src_ptr, sizeof(zb_zcl_color_control_color_loop_set_req_t)); \
ZB_HTOLE16(&((data_ptr)->time), &(src_ptr->time)); \
ZB_HTOLE16(&((data_ptr)->start_hue), &(src_ptr->start_hue)); \
} \
}
Structure representsation of Color Loop Set command payload.
Definition: zb_zcl_color_control_zll_adds.h:623
Definition: zb_zcl_common.h:252
#define ZB_BUF_BEGIN(zbbuf)
Definition: zboss_api_core.h:722
#define ZB_BUF_LEN(zbbuf)
Definition: zboss_api_core.h:731
Definition: zb_zcl_common.h:251
struct zb_zcl_color_control_color_loop_set_req_s zb_zcl_color_control_color_loop_set_req_t
Structure representsation of Color Loop Set command payload.

Macro for getting Color Loop Set command.

Attention
Assumes that ZCL header already cut.
Parameters
data_ptr- pointer to a variable of type zb_zcl_color_control_color_loop_set_req_s.
buffercontaining the packet (by pointer).
status- variable to put parse status to (see zb_zcl_parse_status_t).
#define ZB_ZCL_COLOR_CONTROL_GET_ENHANCED_MOVE_HUE_REQ (   data_ptr,
  buffer,
  status 
)
Value:
{ \
{ \
} \
else \
{ \
(data_ptr)->move_mode = src_ptr->move_mode; \
ZB_HTOLE16(&((data_ptr)->rate), &(src_ptr->rate)); \
} \
}
Definition: zb_zcl_common.h:252
Structure representsation of Enhanced Move Hue command payload.
Definition: zb_zcl_color_control_zll_adds.h:433
struct zb_zcl_color_control_enhanced_move_hue_req_s zb_zcl_color_control_enhanced_move_hue_req_t
Structure representsation of Enhanced Move Hue command payload.
#define ZB_BUF_BEGIN(zbbuf)
Definition: zboss_api_core.h:722
#define ZB_BUF_LEN(zbbuf)
Definition: zboss_api_core.h:731
Definition: zb_zcl_common.h:251

Macro for getting Enhanced Move Hue command.

Attention
Assumes that ZCL header already cut.
Parameters
data_ptr- pointer to a variable of type zb_zcl_color_control_enhanced_move_hue_req_s.
buffercontaining the packet (by pointer).
status- variable to put parse status to (see zb_zcl_parse_status_t).
#define ZB_ZCL_COLOR_CONTROL_GET_ENHANCED_MOVE_TO_HUE_REQ (   data_ptr,
  buffer,
  status 
)
Value:
{ \
{ \
} \
else \
{ \
ZB_HTOLE16(&((data_ptr)->ehnanced_hue), &(src_ptr->ehnanced_hue)); \
(data_ptr)->direction = src_ptr->direction; \
ZB_HTOLE16(&((data_ptr)->transition_time), &(src_ptr->transition_time)); \
} \
}
Definition: zb_zcl_common.h:252
#define ZB_BUF_BEGIN(zbbuf)
Definition: zboss_api_core.h:722
#define ZB_BUF_LEN(zbbuf)
Definition: zboss_api_core.h:731
Definition: zb_zcl_common.h:251
struct zb_zcl_color_control_enhanced_move_to_hue_req_s zb_zcl_color_control_enhanced_move_to_hue_req_t
Structure representsation of Enhanced Move To Hue command payload.
Structure representsation of Enhanced Move To Hue command payload.
Definition: zb_zcl_color_control_zll_adds.h:368

Macro for getting Enhanced Move to Hue command.

Attention
Assumes that ZCL header already cut.
Parameters
data_ptr- pointer to a variable of type zb_zcl_color_control_enhanced_move_to_hue_req_s.
buffercontaining the packet (by pointer).
status- variable to put parse status to (see zb_zcl_parse_status_t).
#define ZB_ZCL_COLOR_CONTROL_GET_ENHANCED_MOVE_TO_HUE_SATURATION_REQ (   data_ptr,
  buffer,
  status 
)
Value:
{ \
{ \
} \
else \
{ \
ZB_HTOLE16(&((data_ptr)->enhanced_hue), &(src_ptr->enhanced_hue)); \
(data_ptr)->saturation = src_ptr->saturation; \
ZB_HTOLE16(&((data_ptr)->transition_time), &(src_ptr->transition_time)); \
} \
}
Definition: zb_zcl_common.h:252
Structure representsation of Move To Hue and Saturation command payload.
Definition: zb_zcl_color_control_zll_adds.h:558
#define ZB_BUF_BEGIN(zbbuf)
Definition: zboss_api_core.h:722
#define ZB_BUF_LEN(zbbuf)
Definition: zboss_api_core.h:731
Definition: zb_zcl_common.h:251
struct zb_zcl_color_control_enhanced_move_to_hue_saturation_req_s zb_zcl_color_control_enhanced_move_to_hue_saturation_req_t
Structure representsation of Move To Hue and Saturation command payload.

Macro for getting Enhanced Move To Hue and Saturation command.

Attention
Assumes that ZCL header already cut.
Parameters
data_ptr- pointer to a variable of type zb_zcl_color_control_enhanced_move_to_hue_saturation_req_s.
buffercontaining the packet (by pointer).
status- variable to put parse status to (see zb_zcl_parse_status_t).
#define ZB_ZCL_COLOR_CONTROL_GET_ENHANCED_STEP_HUE_REQ (   data_ptr,
  buffer,
  status 
)
Value:
{ \
{ \
} \
else \
{ \
(data_ptr)->step_mode = src_ptr->step_mode; \
ZB_HTOLE16(&((data_ptr)->step_size), &(src_ptr->step_size)); \
ZB_HTOLE16(&((data_ptr)->transition_time), &(src_ptr->transition_time)); \
} \
}
Structure representsation of Enhanced Step Hue command payload.
Definition: zb_zcl_color_control_zll_adds.h:493
Definition: zb_zcl_common.h:252
#define ZB_BUF_BEGIN(zbbuf)
Definition: zboss_api_core.h:722
#define ZB_BUF_LEN(zbbuf)
Definition: zboss_api_core.h:731
Definition: zb_zcl_common.h:251
struct zb_zcl_color_control_enhanced_step_hue_req_s zb_zcl_color_control_enhanced_step_hue_req_t
Structure representsation of Enhanced Step Hue command payload.

Macro for getting Enhanced Step Hue command.

Attention
Assumes that ZCL header already cut.
Parameters
data_ptr- pointer to a variable of type zb_zcl_color_control_enhanced_step_hue_req_s.
buffercontaining the packet (by pointer).
status- variable to put parse status to (see zb_zcl_parse_status_t).
#define ZB_ZCL_COLOR_CONTROL_GET_MOVE_COLOR_TEMP_REQ (   data_ptr,
  buffer,
  status 
)
Value:
{ \
{ \
} \
else \
{ \
(data_ptr)->move_mode = src_ptr->move_mode; \
ZB_HTOLE16(&((data_ptr)->rate), &(src_ptr->rate)); \
ZB_HTOLE16(&((data_ptr)->color_temp_min), &(src_ptr->color_temp_min)); \
ZB_HTOLE16(&((data_ptr)->color_temp_max), &(src_ptr->color_temp_max)); \
} \
}
Definition: zb_zcl_common.h:252
#define ZB_BUF_BEGIN(zbbuf)
Definition: zboss_api_core.h:722
#define ZB_BUF_LEN(zbbuf)
Definition: zboss_api_core.h:731
Definition: zb_zcl_common.h:251
struct zb_zcl_color_control_move_color_temp_req_s zb_zcl_color_control_move_color_temp_req_t
Structure representsation of Move color temperature command payload.
Structure representsation of Move color temperature command payload.
Definition: zb_zcl_color_control_zll_adds.h:775

Macro for getting Move color temperature command.

Attention
Assumes that ZCL header already cut.
Parameters
data_ptr- pointer to a variable of type zb_zcl_color_control_move_color_temp_req_s.
buffercontaining the packet (by pointer).
status- variable to put parse status to (see zb_zcl_parse_status_t).
#define ZB_ZCL_COLOR_CONTROL_GET_STEP_COLOR_TEMP_REQ (   data_ptr,
  buffer,
  status 
)
Value:
{ \
{ \
} \
else \
{ \
(data_ptr)->step_mode = src_ptr->step_mode; \
ZB_HTOLE16(&((data_ptr)->step_size), &(src_ptr->step_size)); \
ZB_HTOLE16(&((data_ptr)->transition_time), &(src_ptr->transition_time)); \
ZB_HTOLE16(&((data_ptr)->color_temp_min), &(src_ptr->color_temp_min)); \
ZB_HTOLE16(&((data_ptr)->color_temp_max), &(src_ptr->color_temp_max)); \
} \
}
Definition: zb_zcl_common.h:252
#define ZB_BUF_BEGIN(zbbuf)
Definition: zboss_api_core.h:722
#define ZB_BUF_LEN(zbbuf)
Definition: zboss_api_core.h:731
Definition: zb_zcl_common.h:251
struct zb_zcl_color_control_step_color_temp_req_s zb_zcl_color_control_step_color_temp_req_t
Structure representsation of Step color temperature command command payload.
Structure representsation of Step color temperature command command payload.
Definition: zb_zcl_color_control_zll_adds.h:845

Macro for getting Move color temperature command.

Attention
Assumes that ZCL header already cut.
Parameters
data_ptr- pointer to a variable of type zb_zcl_color_control_step_color_temp_req_s.
buffercontaining the packet (by pointer).
status- variable to put parse status to (see zb_zcl_parse_status_t).
#define ZB_ZCL_COLOR_CONTROL_SEND_COLOR_LOOP_SET_REQ (   buffer,
  addr,
  dst_addr_mode,
  dst_ep,
  ep,
  prfl_id,
  def_resp,
  cb,
  update_flags,
  action,
  direction,
  time,
  start_hue 
)
Value:
{ \
ZB_ZCL_CONSTRUCT_SPECIFIC_COMMAND_REQ_FRAME_CONTROL(ptr, (def_resp)); \
ZB_ZCL_PACKET_PUT_DATA8(ptr, (update_flags)); \
ZB_ZCL_PACKET_PUT_DATA8(ptr, (action)); \
ZB_ZCL_PACKET_PUT_DATA8(ptr, (direction)); \
ZB_ZCL_PACKET_PUT_DATA16_VAL(ptr, (start_hue)); \
ZB_ZCL_FINISH_PACKET((buffer), ptr); \
ZB_ZCL_SEND_COMMAND_SHORT( \
buffer, addr, dst_addr_mode, dst_ep, ep, prfl_id, ZB_ZCL_CLUSTER_ID_COLOR_CONTROL, cb); \
}
#define ZB_ZCL_PACKET_PUT_DATA8(ptr, val)
Put 8 bit value to packet.
Definition: zb_zcl_common.h:1273
#define ZB_ZCL_GET_SEQ_NUM()
Return next sequence number for ZCL frame.
Definition: zb_zcl_common.h:1170
#define ZB_ZCL_START_PACKET(zbbuf)
Initializes zb_buf_t buffer and returns pointer to the beginning of array.
Definition: zb_zcl_common.h:1252
#define ZB_ZCL_CONSTRUCT_COMMAND_HEADER(data_ptr, tsn, cmd_id)
Construct ZCL header.
Definition: zb_zcl_common.h:1127
#define ZB_ZCL_PACKET_PUT_DATA16_VAL(ptr, val)
Definition: zb_zcl_common.h:1291
#define ZB_ZCL_FINISH_PACKET(zbbuf, ptr)
Definition: zb_zcl_common.h:1538
unsigned char zb_uint8_t
Project-local 1-byte unsigned int type.
Definition: zb_types.h:115
Definition: zb_zcl_color_control_zll_adds.h:353
Definition: zb_zcl_common.h:190

Send Color Loop Set command.

Parameters
buffer- to put packet to
addr- address to send packet to
dst_addr_mode- addressing mode
dst_ep- destination endpoint
ep- sending endpoint
prfl_id- profile identifier
def_resp- enable/disable default response
cb- callback for getting command send status
update_flags- update flags, see zb_zcl_color_control_color_loop_update_e
action- action, see zb_zcl_color_control_color_loop_action_e
direction- direction, see zb_zcl_color_control_color_loop_direction_e
time- time
start_hue- start hue
#define ZB_ZCL_COLOR_CONTROL_SEND_ENHANCED_MOVE_HUE_REQ (   buffer,
  addr,
  dst_addr_mode,
  dst_ep,
  ep,
  prfl_id,
  def_resp,
  cb,
  move_mode,
  rate 
)
Value:
{ \
ZB_ZCL_CONSTRUCT_SPECIFIC_COMMAND_REQ_FRAME_CONTROL(ptr, (def_resp)); \
ZB_ZCL_PACKET_PUT_DATA8(ptr, (move_mode)); \
ZB_ZCL_FINISH_PACKET((buffer), ptr); \
ZB_ZCL_SEND_COMMAND_SHORT( \
buffer, addr, dst_addr_mode, dst_ep, ep, prfl_id, ZB_ZCL_CLUSTER_ID_COLOR_CONTROL, cb); \
}
#define ZB_ZCL_PACKET_PUT_DATA8(ptr, val)
Put 8 bit value to packet.
Definition: zb_zcl_common.h:1273
#define ZB_ZCL_GET_SEQ_NUM()
Return next sequence number for ZCL frame.
Definition: zb_zcl_common.h:1170
#define ZB_ZCL_START_PACKET(zbbuf)
Initializes zb_buf_t buffer and returns pointer to the beginning of array.
Definition: zb_zcl_common.h:1252
#define ZB_ZCL_CONSTRUCT_COMMAND_HEADER(data_ptr, tsn, cmd_id)
Construct ZCL header.
Definition: zb_zcl_common.h:1127
#define ZB_ZCL_PACKET_PUT_DATA16_VAL(ptr, val)
Definition: zb_zcl_common.h:1291
#define ZB_ZCL_FINISH_PACKET(zbbuf, ptr)
Definition: zb_zcl_common.h:1538
unsigned char zb_uint8_t
Project-local 1-byte unsigned int type.
Definition: zb_types.h:115
Definition: zb_zcl_common.h:190
Definition: zb_zcl_color_control_zll_adds.h:347

Send Enhanced Move Hue command.

Parameters
buffer- to put packet to
addr- address to send packet to
dst_addr_mode- addressing mode
dst_ep- destination endpoint
ep- sending endpoint
prfl_id- profile identifier
def_resp- enable/disable default response
cb- callback for getting command send status
move_mode- Move mode, see zb_zcl_color_control_move_direction_e
rate- Rate
#define ZB_ZCL_COLOR_CONTROL_SEND_ENHANCED_MOVE_TO_HUE_REQ (   buffer,
  addr,
  dst_addr_mode,
  dst_ep,
  ep,
  prfl_id,
  def_resp,
  cb,
  ex_hue,
  direction,
  transition_time 
)
Value:
{ \
ZB_ZCL_CONSTRUCT_SPECIFIC_COMMAND_REQ_FRAME_CONTROL(ptr, (def_resp)); \
ZB_ZCL_PACKET_PUT_DATA8(ptr, (direction)); \
ZB_ZCL_PACKET_PUT_DATA16_VAL(ptr, (transition_time)); \
ZB_ZCL_FINISH_PACKET((buffer), ptr); \
ZB_ZCL_SEND_COMMAND_SHORT( \
buffer, addr, dst_addr_mode, dst_ep, ep, prfl_id, ZB_ZCL_CLUSTER_ID_COLOR_CONTROL, cb); \
}
#define ZB_ZCL_PACKET_PUT_DATA8(ptr, val)
Put 8 bit value to packet.
Definition: zb_zcl_common.h:1273
Definition: zb_zcl_color_control_zll_adds.h:345
#define ZB_ZCL_GET_SEQ_NUM()
Return next sequence number for ZCL frame.
Definition: zb_zcl_common.h:1170
#define ZB_ZCL_START_PACKET(zbbuf)
Initializes zb_buf_t buffer and returns pointer to the beginning of array.
Definition: zb_zcl_common.h:1252
#define ZB_ZCL_CONSTRUCT_COMMAND_HEADER(data_ptr, tsn, cmd_id)
Construct ZCL header.
Definition: zb_zcl_common.h:1127
#define ZB_ZCL_PACKET_PUT_DATA16_VAL(ptr, val)
Definition: zb_zcl_common.h:1291
#define ZB_ZCL_FINISH_PACKET(zbbuf, ptr)
Definition: zb_zcl_common.h:1538
unsigned char zb_uint8_t
Project-local 1-byte unsigned int type.
Definition: zb_types.h:115
Definition: zb_zcl_common.h:190

Send Enhanced Move to Hue command.

Parameters
buffer- to put packet to
addr- address to send packet to
dst_addr_mode- addressing mode
dst_ep- destination endpoint
ep- sending endpoint
prfl_id- profile identifier
def_resp- enable/disable default response
cb- callback for getting command send status
ex_hue- Enhanced Hue value
direction- Direction value, see zb_zcl_color_control_move_to_hue_direction_e
transition_time- Transition Time value
#define ZB_ZCL_COLOR_CONTROL_SEND_ENHANCED_MOVE_TO_HUE_SATURATION_REQ (   buffer,
  addr,
  dst_addr_mode,
  dst_ep,
  ep,
  prfl_id,
  def_resp,
  cb,
  enhanced_hue,
  saturation,
  transition_time 
)
Value:
{ \
ZB_ZCL_CONSTRUCT_SPECIFIC_COMMAND_REQ_FRAME_CONTROL(ptr, (def_resp)); \
ZB_ZCL_PACKET_PUT_DATA16_VAL(ptr, (enhanced_hue)); \
ZB_ZCL_PACKET_PUT_DATA8(ptr, (saturation)); \
ZB_ZCL_PACKET_PUT_DATA16_VAL(ptr, (transition_time)); \
ZB_ZCL_FINISH_PACKET((buffer), ptr); \
ZB_ZCL_SEND_COMMAND_SHORT( \
buffer, addr, dst_addr_mode, dst_ep, ep, prfl_id, ZB_ZCL_CLUSTER_ID_COLOR_CONTROL, cb); \
}
#define ZB_ZCL_PACKET_PUT_DATA8(ptr, val)
Put 8 bit value to packet.
Definition: zb_zcl_common.h:1273
#define ZB_ZCL_GET_SEQ_NUM()
Return next sequence number for ZCL frame.
Definition: zb_zcl_common.h:1170
#define ZB_ZCL_START_PACKET(zbbuf)
Initializes zb_buf_t buffer and returns pointer to the beginning of array.
Definition: zb_zcl_common.h:1252
#define ZB_ZCL_CONSTRUCT_COMMAND_HEADER(data_ptr, tsn, cmd_id)
Construct ZCL header.
Definition: zb_zcl_common.h:1127
#define ZB_ZCL_PACKET_PUT_DATA16_VAL(ptr, val)
Definition: zb_zcl_common.h:1291
Definition: zb_zcl_color_control_zll_adds.h:351
#define ZB_ZCL_FINISH_PACKET(zbbuf, ptr)
Definition: zb_zcl_common.h:1538
unsigned char zb_uint8_t
Project-local 1-byte unsigned int type.
Definition: zb_types.h:115
Definition: zb_zcl_common.h:190

Send Enhanced Move to Hue and Saturation command.

Parameters
buffer- to put packet to
addr- address to send packet to
dst_addr_mode- addressing mode
dst_ep- destination endpoint
ep- sending endpoint
prfl_id- profile identifier
def_resp- enable/disable default response
cb- callback for getting command send status
enhanced_hue- enhanced hue
saturation- saturation
transition_time- Transition Time value
#define ZB_ZCL_COLOR_CONTROL_SEND_ENHANCED_STEP_HUE_REQ (   buffer,
  addr,
  dst_addr_mode,
  dst_ep,
  ep,
  prfl_id,
  def_resp,
  cb,
  step_mode,
  step_size,
  transition_time 
)
Value:
{ \
ZB_ZCL_CONSTRUCT_SPECIFIC_COMMAND_REQ_FRAME_CONTROL(ptr, (def_resp)); \
ZB_ZCL_PACKET_PUT_DATA8(ptr, (step_mode)); \
ZB_ZCL_PACKET_PUT_DATA16_VAL(ptr, (step_size)); \
ZB_ZCL_PACKET_PUT_DATA16_VAL(ptr, (transition_time)); \
ZB_ZCL_FINISH_PACKET((buffer), ptr); \
ZB_ZCL_SEND_COMMAND_SHORT( \
buffer, addr, dst_addr_mode, dst_ep, ep, prfl_id, ZB_ZCL_CLUSTER_ID_COLOR_CONTROL, cb); \
}
#define ZB_ZCL_PACKET_PUT_DATA8(ptr, val)
Put 8 bit value to packet.
Definition: zb_zcl_common.h:1273
#define ZB_ZCL_GET_SEQ_NUM()
Return next sequence number for ZCL frame.
Definition: zb_zcl_common.h:1170
#define ZB_ZCL_START_PACKET(zbbuf)
Initializes zb_buf_t buffer and returns pointer to the beginning of array.
Definition: zb_zcl_common.h:1252
#define ZB_ZCL_CONSTRUCT_COMMAND_HEADER(data_ptr, tsn, cmd_id)
Construct ZCL header.
Definition: zb_zcl_common.h:1127
Definition: zb_zcl_color_control_zll_adds.h:349
#define ZB_ZCL_PACKET_PUT_DATA16_VAL(ptr, val)
Definition: zb_zcl_common.h:1291
#define ZB_ZCL_FINISH_PACKET(zbbuf, ptr)
Definition: zb_zcl_common.h:1538
unsigned char zb_uint8_t
Project-local 1-byte unsigned int type.
Definition: zb_types.h:115
Definition: zb_zcl_common.h:190

Send Enhanced Step Hue command.

Parameters
buffer- to put packet to
addr- address to send packet to
dst_addr_mode- addressing mode
dst_ep- destination endpoint
ep- sending endpoint
prfl_id- profile identifier
def_resp- enable/disable default response
cb- callback for getting command send status
step_mode- step mode value, see zb_zcl_color_control_step_mode_e
step_size- step size value
transition_time- Transition Time value
#define ZB_ZCL_COLOR_CONTROL_SEND_MOVE_COLOR_TEMP_REQ (   buffer,
  addr,
  dst_addr_mode,
  dst_ep,
  ep,
  prfl_id,
  def_resp,
  cb,
  move_mode,
  rate,
  color_temp_min,
  color_temp_max 
)
Value:
{ \
ZB_ZCL_CONSTRUCT_SPECIFIC_COMMAND_REQ_FRAME_CONTROL(ptr, (def_resp)); \
ZB_ZCL_PACKET_PUT_DATA8(ptr, (move_mode)); \
ZB_ZCL_PACKET_PUT_DATA16_VAL(ptr, (color_temp_min)); \
ZB_ZCL_PACKET_PUT_DATA16_VAL(ptr, (color_temp_max)); \
ZB_ZCL_FINISH_PACKET((buffer), ptr); \
ZB_ZCL_SEND_COMMAND_SHORT( \
buffer, addr, dst_addr_mode, dst_ep, ep, prfl_id, ZB_ZCL_CLUSTER_ID_COLOR_CONTROL, cb); \
}
#define ZB_ZCL_PACKET_PUT_DATA8(ptr, val)
Put 8 bit value to packet.
Definition: zb_zcl_common.h:1273
#define ZB_ZCL_GET_SEQ_NUM()
Return next sequence number for ZCL frame.
Definition: zb_zcl_common.h:1170
#define ZB_ZCL_START_PACKET(zbbuf)
Initializes zb_buf_t buffer and returns pointer to the beginning of array.
Definition: zb_zcl_common.h:1252
#define ZB_ZCL_CONSTRUCT_COMMAND_HEADER(data_ptr, tsn, cmd_id)
Construct ZCL header.
Definition: zb_zcl_common.h:1127
Definition: zb_zcl_color_control_zll_adds.h:357
#define ZB_ZCL_PACKET_PUT_DATA16_VAL(ptr, val)
Definition: zb_zcl_common.h:1291
#define ZB_ZCL_FINISH_PACKET(zbbuf, ptr)
Definition: zb_zcl_common.h:1538
unsigned char zb_uint8_t
Project-local 1-byte unsigned int type.
Definition: zb_types.h:115
Definition: zb_zcl_common.h:190

Send Move color temperature command.

Parameters
buffer- to put packet to
addr- address to send packet to
dst_addr_mode- addressing mode
dst_ep- destination endpoint
ep- sending endpoint
prfl_id- profile identifier
def_resp- enable/disable default response
cb- callback for getting command send status
move_mode- move mode, see zb_zcl_color_control_move_direction_e
rate- rate
color_temp_min- color temperature minimum
color_temp_max- color temperature maximum
#define ZB_ZCL_COLOR_CONTROL_SEND_STEP_COLOR_TEMP_REQ (   buffer,
  addr,
  dst_addr_mode,
  dst_ep,
  ep,
  prfl_id,
  def_resp,
  cb,
  step_mode,
  step_size,
  transition_time,
  color_temp_min,
  color_temp_max 
)
Value:
{ \
ZB_ZCL_CONSTRUCT_SPECIFIC_COMMAND_REQ_FRAME_CONTROL(ptr, (def_resp)); \
ZB_ZCL_PACKET_PUT_DATA8(ptr, (step_mode)); \
ZB_ZCL_PACKET_PUT_DATA16_VAL(ptr, (step_size)); \
ZB_ZCL_PACKET_PUT_DATA16_VAL(ptr, (transition_time)); \
ZB_ZCL_PACKET_PUT_DATA16_VAL(ptr, (color_temp_min)); \
ZB_ZCL_PACKET_PUT_DATA16_VAL(ptr, (color_temp_max)); \
ZB_ZCL_FINISH_PACKET((buffer), ptr); \
ZB_ZCL_SEND_COMMAND_SHORT( \
buffer, addr, dst_addr_mode, dst_ep, ep, prfl_id, ZB_ZCL_CLUSTER_ID_COLOR_CONTROL, cb); \
}
#define ZB_ZCL_PACKET_PUT_DATA8(ptr, val)
Put 8 bit value to packet.
Definition: zb_zcl_common.h:1273
#define ZB_ZCL_GET_SEQ_NUM()
Return next sequence number for ZCL frame.
Definition: zb_zcl_common.h:1170
#define ZB_ZCL_START_PACKET(zbbuf)
Initializes zb_buf_t buffer and returns pointer to the beginning of array.
Definition: zb_zcl_common.h:1252
#define ZB_ZCL_CONSTRUCT_COMMAND_HEADER(data_ptr, tsn, cmd_id)
Construct ZCL header.
Definition: zb_zcl_common.h:1127
Definition: zb_zcl_color_control_zll_adds.h:359
#define ZB_ZCL_PACKET_PUT_DATA16_VAL(ptr, val)
Definition: zb_zcl_common.h:1291
#define ZB_ZCL_FINISH_PACKET(zbbuf, ptr)
Definition: zb_zcl_common.h:1538
unsigned char zb_uint8_t
Project-local 1-byte unsigned int type.
Definition: zb_types.h:115
Definition: zb_zcl_common.h:190

Step color temperature command.

Parameters
buffer- to put packet to
addr- address to send packet to
dst_addr_mode- addressing mode
dst_ep- destination endpoint
ep- sending endpoint
prfl_id- profile identifier
def_resp- enable/disable default response
cb- callback for getting command send status
step_mode- move mode, see zb_zcl_color_control_step_mode_e
step_size- step size
transition_time- Transition Time value
color_temp_min- color temperature minimum
color_temp_max- color temperature maximum
#define ZB_ZCL_COLOR_CONTROL_SEND_STOP_MOVE_STEP_REQ (   buffer,
  addr,
  dst_addr_mode,
  dst_ep,
  ep,
  prfl_id,
  def_resp,
  cb 
)
Value:
{ \
ZB_ZCL_CONSTRUCT_SPECIFIC_COMMAND_REQ_FRAME_CONTROL(ptr, (def_resp)); \
ZB_ZCL_FINISH_PACKET((buffer), ptr); \
ZB_ZCL_SEND_COMMAND_SHORT( \
buffer, addr, dst_addr_mode, dst_ep, ep, prfl_id, ZB_ZCL_CLUSTER_ID_COLOR_CONTROL, cb); \
}
#define ZB_ZCL_GET_SEQ_NUM()
Return next sequence number for ZCL frame.
Definition: zb_zcl_common.h:1170
#define ZB_ZCL_START_PACKET(zbbuf)
Initializes zb_buf_t buffer and returns pointer to the beginning of array.
Definition: zb_zcl_common.h:1252
#define ZB_ZCL_CONSTRUCT_COMMAND_HEADER(data_ptr, tsn, cmd_id)
Construct ZCL header.
Definition: zb_zcl_common.h:1127
Definition: zb_zcl_color_control_zll_adds.h:355
#define ZB_ZCL_FINISH_PACKET(zbbuf, ptr)
Definition: zb_zcl_common.h:1538
unsigned char zb_uint8_t
Project-local 1-byte unsigned int type.
Definition: zb_types.h:115
Definition: zb_zcl_common.h:190

Stop move step command, see spec 6.8.1.3.7.

Parameters
buffer- to put packet to
addr- address to send packet to
dst_addr_mode- addressing mode
dst_ep- destination endpoint
ep- sending endpoint
prfl_id- profile identifier
def_resp- enable/disable default response
cb- callback for getting command send status
#define ZB_ZCL_DECLARE_COLOR_CONTROL_ATTRIB_LIST_ZLL (   attr_list,
  current_hue,
  current_saturation,
  remaining_time,
  current_X,
  current_Y,
  color_temperature,
  color_mode,
  number_primaries,
  primary_1_X,
  primary_1_Y,
  primary_1_intensity,
  primary_2_X,
  primary_2_Y,
  primary_2_intensity,
  primary_3_X,
  primary_3_Y,
  primary_3_intensity,
  primary_4_X,
  primary_4_Y,
  primary_4_intensity,
  primary_5_X,
  primary_5_Y,
  primary_5_intensity,
  primary_6_X,
  primary_6_Y,
  primary_6_intensity,
  enhanced_current_hue,
  enhanced_color_mode,
  color_loop_active,
  color_loop_direction,
  color_loop_time,
  color_loop_start,
  color_loop_stored,
  color_capabilities,
  color_temp_physical_min,
  color_temp_physical_max 
)

Declare attribute list for Color Control cluster

Parameters
attr_list- attribure list name
current_hue- pointer to variable to store current_hue attribute value
current_saturation- pointer to variable to store current_saturation attribute value
remaining_time- pointer to variable to store remaining_time attribute value
current_X- pointer to variable to store current_X attribute value
current_Y- pointer to variable to store current_Y attribute value
color_temperature- pointer to variable to store color_temperature attribute value
color_mode- pointer to variable to store color_mode attribute value
number_primaries- pointer to variable to store number_primaries attribute value
primary_1_X- pointer to variable to store primary_1_X attribute value
primary_1_Y- pointer to variable to store primary_1_Y attribute value
primary_1_intensity- pointer to variable to store primary_1_intensity attribute value
primary_2_X- pointer to variable to store primary_2_X attribute value
primary_2_Y- pointer to variable to store primary_2_Y attribute value
primary_2_intensity- pointer to variable to store primary_2_intensity attribute value
primary_3_X- pointer to variable to store primary_3_X attribute value
primary_3_Y- pointer to variable to store primary_3_Y attribute value
primary_3_intensity- pointer to variable to store primary_3_intensity attribute value
primary_4_X- pointer to variable to store primary_4_X attribute value
primary_4_Y- pointer to variable to store primary_4_Y attribute value
primary_4_intensity- pointer to variable to store primary_4_intensity attribute value
primary_5_X- pointer to variable to store primary_5_X attribute value
primary_5_Y- pointer to variable to store primary_5_Y attribute value
primary_5_intensity- pointer to variable to store primary_5_intensity attribute value
primary_6_X- pointer to variable to store primary_6_X attribute value
primary_6_Y- pointer to variable to store primary_6_Y attribute value
primary_6_intensity- pointer to variable to store primary_6_intensity attribute value
enhanced_current_hue- pointer to variable to store Enhanced Current Hue attribute value
enhanced_color_mode- pointer to variable to store Enhanced Color Mode attribute value
color_loop_active- pointer to variable to store Color Loop Active attribute value
color_loop_direction- pointer to variable to store Color Loop Direction attribute value
color_loop_time- pointer to variable to store Color Loop Time attribute value
color_loop_start- pointer to variable to store Color Loop Start Enhanced Hue attribute value
color_loop_stored- pointer to variable to store Color Loop Stored Enhanced Hue attribute value
color_capabilities- pointer to variable to store Color Capabilities attribute value
color_temp_physical_min- pointer to variable to store Color Temp Physical Min attribute value
color_temp_physical_max- pointer to variable to store Color Temp Physical Max attribute value

Typedef Documentation

Structure representsation of Color Loop Set command payload.

See also
ZLL spec, subclause 6.8.1.3.6

Structure representsation of Enhanced Move Hue command payload.

See also
ZLL spec, subclause 6.8.1.3.3

Structure representsation of Enhanced Move To Hue command payload.

See also
ZLL spec, subclause 6.8.1.3.2

Structure representsation of Move To Hue and Saturation command payload.

See also
ZLL spec, subclause 6.8.1.3.5

Structure representsation of Enhanced Step Hue command payload.

See also
ZCL spec, subclause 6.8.1.3.4

Structure representsation of Move color temperature command payload.

See also
ZLL spec, subclause 6.8.1.3.8

Structure representsation of Step color temperature command command payload.

See also
ZLL spec, subclause 8.8.1.3.9

Enumeration Type Documentation

Color Control cluster information extended attribute identifiers.

See also
ZLL spec 6.8.1.1 Color control attribute list

Color control cluster extended command identifiers.

See also
ZLL spec, subclause 6.8.1.3
Enumerator
ZB_ZCL_CMD_COLOR_CONTROL_ENHANCED_MOVE_TO_HUE 

Enhanced move to hue command

ZB_ZCL_CMD_COLOR_CONTROL_ENHANCED_MOVE_HUE 

Enhanced move hue command

ZB_ZCL_CMD_COLOR_CONTROL_ENHANCED_STEP_HUE 

Enhanced step hue command

ZB_ZCL_CMD_COLOR_CONTROL_ENHANCED_MOVE_TO_HUE_SATURATION 

Enhanced move to hue and saturation command

ZB_ZCL_CMD_COLOR_CONTROL_COLOR_LOOP_SET 

Color loop set command

ZB_ZCL_CMD_COLOR_CONTROL_STOP_MOVE_STEP 

Stop move step command

ZB_ZCL_CMD_COLOR_CONTROL_MOVE_COLOR_TEMPERATURE 

Move color temperature command

ZB_ZCL_CMD_COLOR_CONTROL_STEP_COLOR_TEMPERATURE 

Step color temperature command

Enhanced Color Capabilities attribute flags.

See also
spec, subclause 6.8.1.1.8
Enumerator
ZB_ZCL_COLOR_CONTROL_CAPABILITIES_HUE_SATURATION 

Hue/saturation supported

ZB_ZCL_COLOR_CONTROL_CAPABILITIES_EX_HUE 

Enhanced hue supported

ZB_ZCL_COLOR_CONTROL_CAPABILITIES_COLOR_LOOP 

Color loop supported

ZB_ZCL_COLOR_CONTROL_CAPABILITIES_X_Y 

XY supported

ZB_ZCL_COLOR_CONTROL_CAPABILITIES_COLOR_TEMP 

Color temperature supported

Action enumerate for Color Loop Set command See specs 6.8.1.3.6.2.

Enumerator
ZB_ZCL_CMD_COLOR_CONTROL_LOOP_ACTION_DEACTIVATE 

De-activate the color loop

ZB_ZCL_CMD_COLOR_CONTROL_LOOP_ACTION_START_HUE 

Activate the color loop from the value in the Color Loop Start Enhanced Hue field

ZB_ZCL_CMD_COLOR_CONTROL_LOOP_ACTION_CURRENT_HUE 

Activate the color loop from the value of the Enhanced Current Hue attribute

Direction enumerate for Color Loop Set command See specs 6.8.1.3.6.3.

Enumerator
ZB_ZCL_CMD_COLOR_CONTROL_LOOP_DIRECTION_DECREMENT 

Decrement the hue in the color loop

ZB_ZCL_CMD_COLOR_CONTROL_LOOP_DIRECTION_INCREMENT 

Increment the hue in the color loop

Update flag for Color Loop Set command See specs 6.8.1.3.6.1.

Enumerator
ZB_ZCL_CMD_COLOR_CONTROL_LOOP_UPDATE_ACTION 

Update action

ZB_ZCL_CMD_COLOR_CONTROL_LOOP_UPDATE_DIRECTION 

Update direction

ZB_ZCL_CMD_COLOR_CONTROL_LOOP_UPDATE_TIME 

Update time

ZB_ZCL_CMD_COLOR_CONTROL_LOOP_UPDATE_START_HUE 

Update start hue

Enhanced Color Mode attribute enumeration.

See also
spec, subclause 6.8.1.1.2
Enumerator
ZB_ZCL_COLOR_CONTROL_COLOR_EX_MODE_HUE_SATURATION 

CurrentHue and CurrentSaturation

ZB_ZCL_COLOR_CONTROL_COLOR_EX_MODE_CURRENT_X_Y 

CurrentX and CurrentY

ZB_ZCL_COLOR_CONTROL_COLOR_EX_MODE_TEMPERATURE 

ColorTemperature

ZB_ZCL_COLOR_CONTROL_COLOR_EX_MODE_HUE_SATURATION_EX 

EnhancedCurrentHue and EnhancedCurrentSaturation