nRF5 SDK for Thread and Zigbee v3.2.0
Data Structures
ZCL Color control cluster

Data Structures

struct  zb_zcl_color_control_req_options_s
 Structured representsation of Level Control command payload (optional part) More...
 
struct  zb_zcl_color_control_move_to_hue_req_s
 Structure representsation of Move To Hue command payload. More...
 
struct  zb_zcl_color_control_move_hue_req_s
 Structure representsation of Move Hue command payload. More...
 
struct  zb_zcl_color_control_step_hue_req_s
 Structure representsation of Step Hue command payload. More...
 
struct  zb_zcl_color_control_move_to_saturation_req_s
 Structure representsation of Move To Saturation command payload. More...
 
struct  zb_zcl_color_control_move_saturation_req_s
 Structure representsation of Move Saturation command payload. More...
 
struct  zb_zcl_color_control_step_saturation_req_s
 Structure representsation of Step Saturation command payload. More...
 
struct  zb_zcl_color_control_move_to_hue_saturation_req_s
 Structure representsation of Move To Hue and Saturation command payload. More...
 
struct  zb_zcl_color_control_move_to_color_req_s
 Structure representsation of Move To Color command payload. More...
 
struct  zb_zcl_color_control_move_color_req_s
 Structure representsation of Move Color command payload. More...
 
struct  zb_zcl_color_control_step_color_req_s
 Structure representsation of Step Color command payload. More...
 
struct  zb_zcl_color_control_move_to_color_temperature_req_s
 Structure representsation of Move To Color Temperature command payload. More...
 
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...
 

Color Control cluster attributes

enum  zb_zcl_color_control_attr_e {
  ZB_ZCL_ATTR_COLOR_CONTROL_CURRENT_HUE_ID = 0x0000, ZB_ZCL_ATTR_COLOR_CONTROL_CURRENT_SATURATION_ID = 0x0001, ZB_ZCL_ATTR_COLOR_CONTROL_REMAINING_TIME_ID = 0x0002, ZB_ZCL_ATTR_COLOR_CONTROL_CURRENT_X_ID = 0x0003,
  ZB_ZCL_ATTR_COLOR_CONTROL_CURRENT_Y_ID = 0x0004, ZB_ZCL_ATTR_COLOR_CONTROL_DRIFT_COMPENSATION_ID = 0x0005, ZB_ZCL_ATTR_COLOR_CONTROL_COMPENSATION_TEXT_ID = 0x0006, ZB_ZCL_ATTR_COLOR_CONTROL_COLOR_TEMPERATURE_ID = 0x0007,
  ZB_ZCL_ATTR_COLOR_CONTROL_COLOR_MODE_ID = 0x0008, ZB_ZCL_ATTR_COLOR_CONTROL_OPTIONS_ID = 0x000f, ZB_ZCL_ATTR_COLOR_CONTROL_ENHANCED_CURRENT_HUE_ID = 0x4000, ZB_ZCL_ATTR_COLOR_CONTROL_ENHANCED_COLOR_MODE_ID = 0x4001,
  ZB_ZCL_ATTR_COLOR_CONTROL_COLOR_LOOP_ACTIVE_ID = 0x4002, ZB_ZCL_ATTR_COLOR_CONTROL_COLOR_LOOP_DIRECTION_ID = 0x4003, ZB_ZCL_ATTR_COLOR_CONTROL_COLOR_LOOP_TIME_ID = 0x4004, ZB_ZCL_ATTR_COLOR_CONTROL_COLOR_LOOP_START_ENHANCED_HUE_ID = 0x4005,
  ZB_ZCL_ATTR_COLOR_CONTROL_COLOR_LOOP_STORED_ENHANCED_HUE_ID = 0x4006, ZB_ZCL_ATTR_COLOR_CONTROL_COLOR_CAPABILITIES_ID = 0x400a, ZB_ZCL_ATTR_COLOR_CONTROL_COLOR_TEMP_PHYSICAL_MIN_MIREDS_ID = 0x400b, ZB_ZCL_ATTR_COLOR_CONTROL_COLOR_TEMP_PHYSICAL_MAX_MIREDS_ID = 0x400c,
  ZB_ZCL_ATTR_COLOR_CONTROL_COUPLE_COLOR_TEMP_TO_LEVEL_MIN_MIREDS_ID = 0x400d, ZB_ZCL_ATTR_COLOR_CONTROL_START_UP_COLOR_TEMPERATURE_MIREDS_ID = 0x4010, ZB_ZCL_ATTR_COLOR_CONTROL_NUMBER_OF_PRIMARIES_ID = 0x0010, ZB_ZCL_ATTR_COLOR_CONTROL_PRIMARY_1_X_ID = 0x0011,
  ZB_ZCL_ATTR_COLOR_CONTROL_PRIMARY_1_Y_ID = 0x0012, ZB_ZCL_ATTR_COLOR_CONTROL_PRIMARY_1_INTENSITY_ID = 0x0013, ZB_ZCL_ATTR_COLOR_CONTROL_PRIMARY_2_X_ID = 0x0015, ZB_ZCL_ATTR_COLOR_CONTROL_PRIMARY_2_Y_ID = 0x0016,
  ZB_ZCL_ATTR_COLOR_CONTROL_PRIMARY_2_INTENSITY_ID = 0x0017, ZB_ZCL_ATTR_COLOR_CONTROL_PRIMARY_3_X_ID = 0x0019, ZB_ZCL_ATTR_COLOR_CONTROL_PRIMARY_3_Y_ID = 0x001a, ZB_ZCL_ATTR_COLOR_CONTROL_PRIMARY_3_INTENSITY_ID = 0x001b,
  ZB_ZCL_ATTR_COLOR_CONTROL_PRIMARY_4_X_ID = 0x0020, ZB_ZCL_ATTR_COLOR_CONTROL_PRIMARY_4_Y_ID = 0x0021, ZB_ZCL_ATTR_COLOR_CONTROL_PRIMARY_4_INTENSITY_ID = 0x0022, ZB_ZCL_ATTR_COLOR_CONTROL_PRIMARY_5_X_ID = 0x0024,
  ZB_ZCL_ATTR_COLOR_CONTROL_PRIMARY_5_Y_ID = 0x0025, ZB_ZCL_ATTR_COLOR_CONTROL_PRIMARY_5_INTENSITY_ID = 0x0026, ZB_ZCL_ATTR_COLOR_CONTROL_PRIMARY_6_X_ID = 0x0028, ZB_ZCL_ATTR_COLOR_CONTROL_PRIMARY_6_Y_ID = 0x0029,
  ZB_ZCL_ATTR_COLOR_CONTROL_PRIMARY_6_INTENSITY_ID = 0x002a, ZB_ZCL_ATTR_COLOR_CONTROL_WHITE_POINT_X_ID = 0x0030, ZB_ZCL_ATTR_COLOR_CONTROL_WHITE_POINT_Y_ID = 0x0031, ZB_ZCL_ATTR_COLOR_CONTROL_COLOR_POINT_RX_ID = 0x0032,
  ZB_ZCL_ATTR_COLOR_CONTROL_COLOR_POINT_RY_ID = 0x0033, ZB_ZCL_ATTR_COLOR_CONTROL_COLOR_POINT_R_INTENSITY_ID = 0x0034, ZB_ZCL_ATTR_COLOR_CONTROL_COLOR_POINT_GX_ID = 0x0036, ZB_ZCL_ATTR_COLOR_CONTROL_COLOR_POINT_GY_ID = 0x0037,
  ZB_ZCL_ATTR_COLOR_CONTROL_COLOR_POINT_G_INTENSITY_ID = 0x0038, ZB_ZCL_ATTR_COLOR_CONTROL_COLOR_POINT_BX_ID = 0x003a, ZB_ZCL_ATTR_COLOR_CONTROL_COLOR_POINT_BY_ID = 0x003b, ZB_ZCL_ATTR_COLOR_CONTROL_COLOR_POINT_B_INTENSITY_ID = 0x003c
}
 Color Control cluster information attribute identifiers. More...
 
enum  zb_zcl_color_control_hue_e { ZB_ZCL_COLOR_CONTROL_HUE_RED = 0, ZB_ZCL_COLOR_CONTROL_HUE_GREEN = 85, ZB_ZCL_COLOR_CONTROL_HUE_BLUE = 169 }
 Color control Hue value. More...
 
enum  zb_zcl_color_control_color_mode_e { ZB_ZCL_COLOR_CONTROL_COLOR_MODE_HUE_SATURATION = 0x00, ZB_ZCL_COLOR_CONTROL_COLOR_MODE_CURRENT_X_Y = 0x01, ZB_ZCL_COLOR_CONTROL_COLOR_MODE_TEMPERATURE = 0x02 }
 Color Mode attribute enumeration. More...
 
enum  zb_zcl_color_control_options_e { ZB_ZCL_COLOR_CONTROL_OPTIONS_EXECUTE_IF_OFF = 0 }
 Options attribute flags. More...
 
enum  zb_zcl_color_control_enhanced_color_mode_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_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_CURRENT_HUE_MIN_VALUE   0
 Current Hue attribute minimum value.
 
#define ZB_ZCL_COLOR_CONTROL_CURRENT_HUE_MAX_VALUE   0xfe
 Current Hue attribute maximum value.
 
#define ZB_ZCL_COLOR_CONTROL_CURRENT_SATURATION_MIN_VALUE   0
 Current Saturation attribute minimum value.
 
#define ZB_ZCL_COLOR_CONTROL_CURRENT_SATURATION_MAX_VALUE   0xfe
 Current Saturation attribute maximum value.
 
#define ZB_ZCL_COLOR_CONTROL_REMAINING_TIME_MIN_VALUE   0
 Remaining Time attribute minimum value.
 
#define ZB_ZCL_COLOR_CONTROL_REMAINING_TIME_MAX_VALUE   0xfffe
 Remaining Time attribute maximum value.
 
#define ZB_ZCL_COLOR_CONTROL_CURRENT_X_DEF_VALUE   0x616b
 Current X attribute default value.
 
#define ZB_ZCL_COLOR_CONTROL_CURRENT_HUE_DEFAULT_VALUE   ((zb_uint8_t)0x00)
 Default value for CurrentHue attribute.
 
#define ZB_ZCL_COLOR_CONTROL_CURRENT_SATURATION_DEFAULT_VALUE   ((zb_uint8_t)0x00)
 Default value for CurrentSaturation attribute.
 
#define ZB_ZCL_COLOR_CONTROL_REMAINING_TIME_DEFAULT_VALUE   ((zb_uint16_t)0x00)
 Default value for RemainingTime attribute.
 
#define ZB_ZCL_COLOR_CONTROL_CURRENT_X_MIN_VALUE   0
 Current X attribute minimum value.
 
#define ZB_ZCL_COLOR_CONTROL_CURRENT_X_MAX_VALUE   0xfeff
 Current X attribute maximum value.
 
#define ZB_ZCL_COLOR_CONTROL_CURRENT_Y_DEF_VALUE   0x607d
 Current Y attribute default value.
 
#define ZB_ZCL_COLOR_CONTROL_CURRENT_Y_MIN_VALUE   0
 Current Y attribute minimum value.
 
#define ZB_ZCL_COLOR_CONTROL_CURRENT_Y_MAX_VALUE   0xfeff
 Current Y attribute maximum value.
 
#define ZB_ZCL_COLOR_CONTROL_COLOR_X_RED   (zb_uint16_t)(0.735484*ZB_ZCL_COLOR_CONTROL_CURRENT_X_MAX_VALUE)
 Current Hue attribute red value.
 
#define ZB_ZCL_COLOR_CONTROL_COLOR_X_GREEN   (zb_uint16_t)(0.0138702*ZB_ZCL_COLOR_CONTROL_CURRENT_X_MAX_VALUE)
 Current Hue attribute green value.
 
#define ZB_ZCL_COLOR_CONTROL_COLOR_X_BLUE   (zb_uint16_t)(0.0995467*ZB_ZCL_COLOR_CONTROL_CURRENT_X_MAX_VALUE)
 Current Hue attribute blue value.
 
#define ZB_ZCL_COLOR_CONTROL_COLOR_Y_RED   (zb_uint16_t)(0.264516*ZB_ZCL_COLOR_CONTROL_CURRENT_Y_MAX_VALUE)
 Current Hue attribute red value.
 
#define ZB_ZCL_COLOR_CONTROL_COLOR_Y_GREEN   (zb_uint16_t)(0.750186*ZB_ZCL_COLOR_CONTROL_CURRENT_Y_MAX_VALUE)
 Current Hue attribute green value.
 
#define ZB_ZCL_COLOR_CONTROL_COLOR_Y_BLUE   (zb_uint16_t)(0.11196*ZB_ZCL_COLOR_CONTROL_CURRENT_Y_MAX_VALUE)
 Current Hue attribute blue value.
 
#define ZB_ZCL_COLOR_CONTROL_COLOR_TEMPERATURE_DEF_VALUE   0x00fa
 Color Temperature default value (4000K)
 
#define ZB_ZCL_COLOR_CONTROL_COLOR_TEMPERATURE_MIN_VALUE   0
 Color Temperature minimum value.
 
#define ZB_ZCL_COLOR_CONTROL_COLOR_TEMPERATURE_MAX_VALUE   0xfeff
 Color Temperature maximum value.
 
#define ZB_ZCL_COLOR_CONTROL_COLOR_MODE_DEFAULT_VALUE   ((zb_uint8_t)0x01)
 Default value for ColorMode attribute.
 
#define ZB_ZCL_COLOR_CONTROL_OPTIONS_DEFAULT_VALUE   ((zb_uint8_t)0x00)
 Default value for Options attribute.
 
#define ZB_ZCL_COLOR_CONTROL_ENHANCED_CURRENT_HUE_DEFAULT_VALUE   ((zb_uint16_t)0x0000)
 Default value for EnhancedCurrentHue attribute.
 
#define ZB_ZCL_COLOR_CONTROL_ENHANCED_COLOR_MODE_DEFAULT_VALUE   ((zb_uint8_t)0x01)
 Default value for EnhancedColorMode attribute.
 
#define ZB_ZCL_COLOR_CONTROL_COLOR_LOOP_ACTIVE_DEFAULT_VALUE   ((zb_uint8_t)0x00)
 Default value for ColorLoopActive attribute.
 
#define ZB_ZCL_COLOR_CONTROL_COLOR_LOOP_DIRECTION_DEFAULT_VALUE   ((zb_uint8_t)0x00)
 Default value for ColorLoopDirection attribute.
 
#define ZB_ZCL_COLOR_CONTROL_COLOR_TEMP_PHYSICAL_MIREDS_INVALID_VALUE   ((zb_uint16_t)0xffff)
 Invalid value for Physical Mireds attribute.
 
#define ZB_ZCL_COLOR_CONTROL_NUMBER_OF_PRIMARIES_MAX_VALUE   6
 Number Of Primaries attribute maximum value.
 
#define ZB_ZCL_COLOR_CONTROL_PRIMARY_X_MAX_VALUE   0xfeff
 Primary X attribute maximum value.
 
#define ZB_ZCL_COLOR_CONTROL_PRIMARY_Y_MAX_VALUE   0xfeff
 Primary Y attribute maximum value.
 
#define ZB_ZCL_COLOR_CONTROL_PRIMARY_INTENSITY_MAX_VALUE   0xfe
 Primary Intensity attribute maximum value.
 
#define ZB_ZCL_COLOR_CONTROL_PRIMARY_INTENSITY_NON_USED_VALUE   0xff
 Primary Intensity attribute not used value.
 
#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_LOOP_STORED_ENHANCED_HUE_DEFAULT_VALUE   ((zb_uint16_t)0x0000)
 Default value for ColorLoopStoredEnhancedHue attribute.
 
#define ZB_ZCL_COLOR_CONTROL_COLOR_CAPABILITIES_DEFAULT_VALUE   ((zb_uint16_t)0x0000)
 Default value for ColorCapabilities attribute.
 
#define ZB_ZCL_COLOR_CONTROL_COLOR_TEMP_PHYSICAL_MIN_MIREDS_DEFAULT_VALUE   ((zb_uint16_t)0x0000)
 Default value for ColorTempPhysicalMinMireds attribute.
 
#define ZB_ZCL_COLOR_CONTROL_COLOR_TEMP_PHYSICAL_MAX_MIREDS_DEFAULT_VALUE   ((zb_uint16_t)0xFEFF)
 Default value for ColorTempPhysicalMaxMireds attribute.
 
#define ZB_ZCL_COLOR_CONTROL_COLOR_CAPABILITIES_MAX_VALUE   0x001f
 Color Capabilities attribute maximum value.
 
#define ZB_ZCL_COLOR_CONTROL_START_UP_COLOR_TEMPERATURE_MAX_VALUE   ZB_ZCL_COLOR_CONTROL_COLOR_TEMPERATURE_MAX_VALUE
 Start Up Color Temperature Mireds Max value.
 
#define ZB_ZCL_COLOR_CONTROL_START_UP_COLOR_TEMPERATURE_USE_PREVIOUS_VALUE   0xffff
 Start Up Color Temperature Mireds Use Previous value.
 
#define ZB_ZCL_DECLARE_COLOR_CONTROL_ATTRIB_LIST_EXT(attr_list, current_hue,current_saturation, remaining_time, current_X, current_Y, color_temperature,color_mode, options, 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,couple_color_temp_to_level_min, start_up_color_temp)
 Declare attribute list for Color Control cluster (extended attribute set) More...
 
#define ZB_ZCL_DECLARE_COLOR_CONTROL_ATTRIB_LIST(attr_list, current_X, current_Y)
 Declare attribute list for Color Control cluster (mandatory attribute set) More...
 

Color Control cluster commands

enum  zb_zcl_color_control_cmd_e {
  ZB_ZCL_CMD_COLOR_CONTROL_MOVE_TO_HUE = 0x00, ZB_ZCL_CMD_COLOR_CONTROL_MOVE_HUE = 0x01, ZB_ZCL_CMD_COLOR_CONTROL_STEP_HUE = 0x02, ZB_ZCL_CMD_COLOR_CONTROL_MOVE_TO_SATURATION = 0x03,
  ZB_ZCL_CMD_COLOR_CONTROL_MOVE_SATURATION = 0x04, ZB_ZCL_CMD_COLOR_CONTROL_STEP_SATURATION = 0x05, ZB_ZCL_CMD_COLOR_CONTROL_MOVE_TO_HUE_SATURATION = 0x06, ZB_ZCL_CMD_COLOR_CONTROL_MOVE_TO_COLOR = 0x07,
  ZB_ZCL_CMD_COLOR_CONTROL_MOVE_COLOR = 0x08, ZB_ZCL_CMD_COLOR_CONTROL_STEP_COLOR = 0x09, ZB_ZCL_CMD_COLOR_CONTROL_MOVE_TO_COLOR_TEMPERATURE = 0x0a, 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 command identifiers. More...
 
enum  zb_zcl_color_control_move_direction_e { ZB_ZCL_CMD_COLOR_CONTROL_MOVE_STOP = 0x00, ZB_ZCL_CMD_COLOR_CONTROL_MOVE_UP = 0x01, ZB_ZCL_CMD_COLOR_CONTROL_MOVE_DOWN = 0x03 }
 Direction of Move Hue command. See specs 5.2.2.3.3.2, 5.2.2.3.6.2. More...
 
enum  zb_zcl_color_control_step_mode_e { ZB_ZCL_CMD_COLOR_CONTROL_STEP_UP = 0x01, ZB_ZCL_CMD_COLOR_CONTROL_STEP_DOWN = 0x03 }
 Direction of Step command. See specs 5.2.2.3.4.2, 5.2.2.3.7.2. More...
 
enum  zb_zcl_color_control_move_to_hue_direction_e { ZB_ZCL_CMD_COLOR_CONTROL_MOVE_TO_HUE_SHORTEST = 0x00, ZB_ZCL_CMD_COLOR_CONTROL_MOVE_TO_HUE_LONGEST = 0x01, ZB_ZCL_CMD_COLOR_CONTROL_MOVE_TO_HUE_UP = 0x02, ZB_ZCL_CMD_COLOR_CONTROL_MOVE_TO_HUE_DOWN = 0x03 }
 Direction of Move to Hue command. See spec 5.2.2.3.2.3. 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 ZCL specs 5.2.2.3.18.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 ZCL specs 5.2.2.3.18.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 ZCL specs 5.2.2.3.18.3. More...
 
typedef struct
zb_zcl_color_control_req_options_s 
zb_zcl_color_control_req_options_t
 Structured representsation of Level Control command payload (optional part) More...
 
typedef struct
zb_zcl_color_control_move_to_hue_req_s 
zb_zcl_color_control_move_to_hue_req_t
 Structure representsation of Move To Hue command payload. More...
 
typedef struct
zb_zcl_color_control_move_hue_req_s 
zb_zcl_color_control_move_hue_req_t
 Structure representsation of Move Hue command payload. More...
 
typedef struct
zb_zcl_color_control_step_hue_req_s 
zb_zcl_color_control_step_hue_req_t
 Structure representsation of Step Hue command payload. More...
 
typedef struct
zb_zcl_color_control_move_to_saturation_req_s 
zb_zcl_color_control_move_to_saturation_req_t
 Structure representsation of Move To Saturation command payload. More...
 
typedef struct
zb_zcl_color_control_move_saturation_req_s 
zb_zcl_color_control_move_saturation_req_t
 Structure representsation of Move Saturation command payload. More...
 
typedef struct
zb_zcl_color_control_step_saturation_req_s 
zb_zcl_color_control_step_saturation_req_t
 Structure representsation of Step Saturation command payload. More...
 
typedef struct
zb_zcl_color_control_move_to_hue_saturation_req_s 
zb_zcl_color_control_move_to_hue_saturation_req_t
 Structure representsation of Move To Hue and Saturation command payload. More...
 
typedef struct
zb_zcl_color_control_move_to_color_req_s 
zb_zcl_color_control_move_to_color_req_t
 Structure representsation of Move To Color command payload. More...
 
typedef struct
zb_zcl_color_control_move_color_req_s 
zb_zcl_color_control_move_color_req_t
 Structure representsation of Move Color command payload. More...
 
typedef struct
zb_zcl_color_control_step_color_req_s 
zb_zcl_color_control_step_color_req_t
 Structure representsation of Step Color command payload. More...
 
typedef struct
zb_zcl_color_control_move_to_color_temperature_req_s 
zb_zcl_color_control_move_to_color_temperature_req_t
 Structure representsation of Move To Color Temperature command payload. 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_REQ_OPTIONS_PAYLOAD_LEN   sizeof(zb_zcl_color_control_req_options_t)
 Move to Level payload length macro.
 
#define ZB_ZCL_COLOR_CONTROL_GET_CMD_OPTIONS(data_buf, req_options, status)
 
#define ZB_ZCL_COLOR_CONTROL_MOVE_TO_HUE_REQ_PAYLOAD_LEN   sizeof(zb_zcl_color_control_move_to_hue_req_t)
 Move Hue payload length macro.
 
#define ZB_ZCL_COLOR_CONTROL_SEND_MOVE_TO_HUE_REQ(buffer, addr, dst_addr_mode,dst_ep, ep, prfl_id, def_resp, cb, hue, direction, transition_time)
 Send Move to Hue command. More...
 
#define ZB_ZCL_COLOR_CONTROL_GET_MOVE_TO_HUE_REQ(buffer, move_to_hue_req, status)
 Macro for getting Move to Hue command. More...
 
#define ZB_ZCL_COLOR_CONTROL_MOVE_HUE_REQ_PAYLOAD_LEN   sizeof(zb_zcl_color_control_move_hue_req_t)
 Move Hue payload length macro.
 
#define ZB_ZCL_COLOR_CONTROL_SEND_MOVE_HUE_REQ(buffer, addr, dst_addr_mode,dst_ep, ep, prfl_id, def_resp, cb, move_mode, rate)
 Send Move Hue command. More...
 
#define ZB_ZCL_COLOR_CONTROL_GET_MOVE_HUE_REQ(buffer, move_hue_req, status)
 Macro for getting Move Hue command. More...
 
#define ZB_ZCL_COLOR_CONTROL_STEP_HUE_REQ_PAYLOAD_LEN   sizeof(zb_zcl_color_control_step_hue_req_t)
 Step Hue payload length macro.
 
#define ZB_ZCL_COLOR_CONTROL_SEND_STEP_HUE_REQ(buffer, addr, dst_addr_mode,dst_ep, ep, prfl_id, def_resp, cb, step_mode, step_size, transition_time)
 Send Step Hue command. More...
 
#define ZB_ZCL_COLOR_CONTROL_GET_STEP_HUE_REQ(buffer, step_hue_req, status)
 Macro for getting Step Hue command. More...
 
#define ZB_ZCL_COLOR_CONTROL_MOVE_TO_SATURATION_REQ_PAYLOAD_LEN   sizeof(zb_zcl_color_control_move_to_saturation_req_t)
 Move To Saturation payload length macro.
 
#define ZB_ZCL_COLOR_CONTROL_SEND_MOVE_TO_SATURATION_REQ(buffer, addr, dst_addr_mode,dst_ep, ep, prfl_id, def_resp, cb, saturation, transition_time)
 Send Move to Saturation command. More...
 
#define ZB_ZCL_COLOR_CONTROL_GET_MOVE_TO_SATURATION_REQ(buffer, move_to_saturation_req, status)
 Macro for getting Move To Saturation command. More...
 
#define ZB_ZCL_COLOR_CONTROL_MOVE_SATURATION_REQ_PAYLOAD_LEN   sizeof(zb_zcl_color_control_move_saturation_req_t)
 Move Saturation payload length macro.
 
#define ZB_ZCL_COLOR_CONTROL_SEND_MOVE_SATURATION_REQ(buffer, addr, dst_addr_mode,dst_ep, ep, prfl_id, def_resp, cb, move_mode, rate)
 Send Move Saturation command. More...
 
#define ZB_ZCL_COLOR_CONTROL_GET_MOVE_SATURATION_REQ(buffer, move_saturation_req, status)
 Macro for getting Move Saturation command. More...
 
#define ZB_ZCL_COLOR_CONTROL_STEP_SATURATION_REQ_PAYLOAD_LEN   sizeof(zb_zcl_color_control_step_saturation_req_t)
 Move Saturation payload length macro.
 
#define ZB_ZCL_COLOR_CONTROL_SEND_STEP_SATURATION_REQ(buffer, addr, dst_addr_mode,dst_ep, ep, prfl_id, def_resp, cb, step_mode, step_size, transition_time)
 Send Step Saturation command. More...
 
#define ZB_ZCL_COLOR_CONTROL_GET_STEP_SATURATION_REQ(buffer, step_saturation_req, status)
 Macro for getting Step Saturation command. More...
 
#define ZB_ZCL_COLOR_CONTROL_MOVE_TO_HUE_SATURATION_REQ_PAYLOAD_LEN   sizeof(zb_zcl_color_control_move_to_hue_saturation_req_t)
 Move to Hue and Saturation payload length macro.
 
#define ZB_ZCL_COLOR_CONTROL_SEND_MOVE_TO_HUE_SATURATION_REQ(buffer, addr, dst_addr_mode,dst_ep, ep, prfl_id, def_resp, cb, hue, saturation, transition_time)
 Send Move to Hue and Saturation command. More...
 
#define ZB_ZCL_COLOR_CONTROL_GET_MOVE_TO_HUE_SATURATION_REQ(buffer, move_to_hue_saturation_req, status)
 Macro for getting Move To Hue and Saturation command. More...
 
#define ZB_ZCL_COLOR_CONTROL_MOVE_TO_COLOR_REQ_PAYLOAD_LEN   sizeof(zb_zcl_color_control_move_to_color_req_t)
 Move to Color payload length macro.
 
#define ZB_ZCL_COLOR_CONTROL_SEND_MOVE_TO_COLOR_REQ(buffer, addr, dst_addr_mode,dst_ep, ep, prfl_id, def_resp, cb, color_x, color_y, transition_time)
 Send Move to Color command. More...
 
#define ZB_ZCL_COLOR_CONTROL_GET_MOVE_TO_COLOR_REQ(buffer, move_to_color_req, status)
 Macro for getting Move To Color command. More...
 
#define ZB_ZCL_COLOR_CONTROL_MOVE_COLOR_REQ_PAYLOAD_LEN   sizeof(zb_zcl_color_control_move_color_req_t)
 Move Color payload length macro.
 
#define ZB_ZCL_COLOR_CONTROL_SEND_MOVE_COLOR_REQ(buffer, addr, dst_addr_mode,dst_ep, ep, prfl_id, def_resp, cb, rate_x, rate_y)
 Send Move Color command. More...
 
#define ZB_ZCL_COLOR_CONTROL_GET_MOVE_COLOR_REQ(buffer, move_color_req, status)
 Macro for getting Move Color command. More...
 
#define ZB_ZCL_COLOR_CONTROL_STEP_COLOR_REQ_PAYLOAD_LEN   sizeof(zb_zcl_color_control_step_color_req_t)
 Step Color payload length macro.
 
#define ZB_ZCL_COLOR_CONTROL_SEND_STEP_COLOR_REQ(buffer, addr, dst_addr_mode,dst_ep, ep, prfl_id, def_resp, cb, step_x, step_y, transition_time)
 Send Step Color command. More...
 
#define ZB_ZCL_COLOR_CONTROL_GET_STEP_COLOR_REQ(buffer, step_color_req, status)
 Macro for getting Move Color command. More...
 
#define ZB_ZCL_COLOR_CONTROL_GET_STEP_COLOR_REQ(buffer, step_color_req, status)
 Macro for getting Move Color command. More...
 
#define ZB_ZCL_COLOR_CONTROL_MOVE_TO_COLOR_TEMP_REQ_PAYLOAD_LEN   sizeof(zb_zcl_color_control_move_to_color_temperature_req_t)
 Move to Color Temperature payload length macro.
 
#define ZB_ZCL_COLOR_CONTROL_SEND_MOVE_TO_COLOR_TEMPERATURE_REQ(buffer, addr, dst_addr_mode,dst_ep, ep, prfl_id, def_resp, cb, color_temperature, transition_time)
 Send Move To Color Temperature command. More...
 
#define ZB_ZCL_COLOR_CONTROL_GET_MOVE_TO_COLOR_TEMPERATURE_REQ(buffer, move_to_color_temperature_req, status)
 Macro for getting Move to Color Temperature command. More...
 
#define ZB_ZCL_COLOR_CONTROL_ENHANCED_MOVE_TO_HUE_REQ_PAYLOAD_LEN   sizeof(zb_zcl_color_control_enhanced_move_to_hue_req_t)
 Enhanced Move to Hue payload length macro.
 
#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(buffer, enhanced_move_to_hue_req, status)
 Macro for getting Enhanced Move to Hue command. More...
 
#define ZB_ZCL_COLOR_CONTROL_ENHANCED_MOVE_HUE_REQ_PAYLOAD_LEN   sizeof(zb_zcl_color_control_enhanced_move_hue_req_t)
 Enhanced Move to Hue payload length macro.
 
#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(buffer, enhanced_move_hue_req, status)
 Macro for getting Enhanced Move Hue command. More...
 
#define ZB_ZCL_COLOR_CONTROL_ENHANCED_STEP_HUE_REQ_PAYLOAD_LEN   sizeof(zb_zcl_color_control_enhanced_step_hue_req_t)
 Enhanced Move to Hue payload length macro.
 
#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(buffer, enhanced_step_hue_req, status)
 Macro for getting Enhanced Step Hue command. More...
 
#define ZB_ZCL_COLOR_CONTROL_ENHANCED_MOVE_TO_HUE_SATURATION_REQ_PAYLOAD_LEN   sizeof(zb_zcl_color_control_enhanced_move_to_hue_saturation_req_t)
 Enhanced Move to Hue payload length macro.
 
#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(buffer, enhanced_move_to_hue_saturation_req, status)
 Macro for getting Enhanced Move To Hue and Saturation command. More...
 
#define ZB_ZCL_COLOR_CONTROL_COLOR_LOOR_SET_REQ_PAYLOAD_LEN   sizeof(zb_zcl_color_control_color_loop_set_req_t)
 Enhanced Color Loop Set payload length macro.
 
#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(buffer, color_loop_set_req, 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 ZCL spec 5.2.2.3.19. More...
 
#define ZB_ZCL_COLOR_CONTROL_MOVE_COLOR_TEMP_REQ_PAYLOAD_LEN   sizeof(zb_zcl_color_control_move_color_temp_req_t)
 Enhanced Move Color Temperature payload length macro.
 
#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(buffer, move_color_temp_req, status)
 Macro for getting Move color temperature command. More...
 
#define ZB_ZCL_COLOR_CONTROL_GET_MOVE_COLOR_TEMP_REQ(buffer, move_color_temp_req, status)
 Macro for getting Move color temperature command. More...
 
#define ZB_ZCL_COLOR_CONTROL_STEP_COLOR_TEMP_REQ_PAYLOAD_LEN   sizeof(zb_zcl_color_control_step_color_temp_req_t)
 Enhanced Move Color Temperature payload length macro.
 
#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(buffer, step_color_temp_req, status)
 Macro for getting Move color temperature command. More...
 

Detailed Description

Macro Definition Documentation

#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:949
Definition: zb_zcl_color_control.h:2306
#define ZB_GET_BUF_PARAM(zbbuf, type)
Definition: zboss_api_core.h:965
#define ZB_TIMER_GET()
Definition: zboss_api_core.h:104
#define ZB_ZCL_COLOR_CONTROL_GET_CMD_OPTIONS (   data_buf,
  req_options,
  status 
)
Value:
{ \
(req_options_ptr) = ZB_BUF_LEN(data_buf) >= \
if (req_options_ptr) \
{ \
req_options.options_mask = req_options_ptr->options_mask; \
req_options.options_override = req_options_ptr->options_override; \
status = ZB_TRUE; \
} \
else \
{ \
status = ZB_FALSE; \
} \
}
#define ZB_ZCL_COLOR_CONTROL_REQ_OPTIONS_PAYLOAD_LEN
Move to Level payload length macro.
Definition: zb_zcl_color_control.h:1134
#define ZB_BUF_BEGIN(zbbuf)
Definition: zboss_api_core.h:767
#define ZB_BUF_LEN(zbbuf)
Definition: zboss_api_core.h:776
struct zb_zcl_color_control_req_options_s zb_zcl_color_control_req_options_t
Structured representsation of Level Control command payload (optional part)
Definition: zb_types.h:101
Structured representsation of Level Control command payload (optional part)
Definition: zb_zcl_color_control.h:1125
void * zb_buf_cut_left(zb_buf_t *zbbuf, zb_uint8_t size)
Definition: zb_types.h:100
#define ZB_ZCL_COLOR_CONTROL_GET_COLOR_LOOP_SET_REQ (   buffer,
  color_loop_set_req,
  status 
)
Value:
{ \
(color_loop_set_req_ptr) = ZB_BUF_LEN(buffer) >= \
if (color_loop_set_req_ptr) \
{ \
color_loop_set_req.update_flags = color_loop_set_req_ptr->update_flags; \
color_loop_set_req.action = color_loop_set_req_ptr->action; \
color_loop_set_req.direction = color_loop_set_req_ptr->direction; \
ZB_HTOLE16(&(color_loop_set_req).time, &(color_loop_set_req_ptr->time)); \
ZB_HTOLE16(&(color_loop_set_req).start_hue, &(color_loop_set_req_ptr->start_hue)); \
} \
else \
{ \
} \
}
#define ZB_ZCL_COLOR_CONTROL_COLOR_LOOR_SET_REQ_PAYLOAD_LEN
Enhanced Color Loop Set payload length macro.
Definition: zb_zcl_color_control.h:2265
Structure representsation of Color Loop Set command payload.
Definition: zb_zcl_color_control.h:2250
Definition: zb_zcl_common.h:319
#define ZB_BUF_BEGIN(zbbuf)
Definition: zboss_api_core.h:767
#define ZB_BUF_LEN(zbbuf)
Definition: zboss_api_core.h:776
Definition: zb_zcl_common.h:318
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.
void * zb_buf_cut_left(zb_buf_t *zbbuf, zb_uint8_t size)

Macro for getting Color Loop Set command.

Attention
Assumes that ZCL header already cut.
Parameters
buffercontaining the packet (by pointer).
color_loop_set_req- pointer to a variable of type zb_zcl_color_control_color_loop_set_req_t
status- variable to put parse status to (see zb_zcl_parse_status_t).
#define ZB_ZCL_COLOR_CONTROL_GET_ENHANCED_MOVE_HUE_REQ (   buffer,
  enhanced_move_hue_req,
  status 
)
Value:
{ \
zb_zcl_color_control_enhanced_move_hue_req_t *enhanced_move_hue_req_ptr; \
(enhanced_move_hue_req_ptr) = ZB_BUF_LEN(buffer) >= \
if (enhanced_move_hue_req_ptr) \
{ \
enhanced_move_hue_req.move_mode = enhanced_move_hue_req_ptr->move_mode; \
ZB_HTOLE16(&(enhanced_move_hue_req).rate, &(enhanced_move_hue_req_ptr->rate)); \
} \
else \
{ \
} \
}
Definition: zb_zcl_common.h:319
Structure representsation of Enhanced Move Hue command payload.
Definition: zb_zcl_color_control.h:2039
#define ZB_BUF_BEGIN(zbbuf)
Definition: zboss_api_core.h:767
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_LEN(zbbuf)
Definition: zboss_api_core.h:776
Definition: zb_zcl_common.h:318
#define ZB_ZCL_COLOR_CONTROL_ENHANCED_MOVE_HUE_REQ_PAYLOAD_LEN
Enhanced Move to Hue payload length macro.
Definition: zb_zcl_color_control.h:2048
void * zb_buf_cut_left(zb_buf_t *zbbuf, zb_uint8_t size)

Macro for getting Enhanced Move Hue command.

Attention
Assumes that ZCL header already cut.
Parameters
buffercontaining the packet (by pointer).
enhanced_move_hue_req- variable of type zb_zcl_color_control_enhanced_move_hue_req_s.
status- variable to put parse status to (see zb_zcl_parse_status_t).
#define ZB_ZCL_COLOR_CONTROL_GET_ENHANCED_MOVE_TO_HUE_REQ (   buffer,
  enhanced_move_to_hue_req,
  status 
)
Value:
{ \
zb_zcl_color_control_enhanced_move_to_hue_req_t *enhanced_move_to_hue_req_ptr; \
(enhanced_move_to_hue_req_ptr) = ZB_BUF_LEN(buffer) >= \
if (enhanced_move_to_hue_req_ptr) \
{ \
ZB_HTOLE16(&(enhanced_move_to_hue_req).enhanced_hue, &(enhanced_move_to_hue_req_ptr->enhanced_hue)); \
enhanced_move_to_hue_req.direction = enhanced_move_to_hue_req_ptr->direction; \
ZB_HTOLE16(&(enhanced_move_to_hue_req).transition_time, &(enhanced_move_to_hue_req_ptr->transition_time)); \
} \
else \
{ \
} \
}
Definition: zb_zcl_common.h:319
#define ZB_BUF_BEGIN(zbbuf)
Definition: zboss_api_core.h:767
#define ZB_BUF_LEN(zbbuf)
Definition: zboss_api_core.h:776
Definition: zb_zcl_common.h:318
Structure representsation of Enhanced Move To Hue command payload.
Definition: zb_zcl_color_control.h:1967
void * zb_buf_cut_left(zb_buf_t *zbbuf, zb_uint8_t size)
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.
#define ZB_ZCL_COLOR_CONTROL_ENHANCED_MOVE_TO_HUE_REQ_PAYLOAD_LEN
Enhanced Move to Hue payload length macro.
Definition: zb_zcl_color_control.h:1978

Macro for getting Enhanced Move to Hue command.

Attention
Assumes that ZCL header already cut.
Parameters
buffercontaining the packet (by pointer).
enhanced_move_to_hue_req- variable of type zb_zcl_color_control_enhanced_move_to_hue_req_s.
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 (   buffer,
  enhanced_move_to_hue_saturation_req,
  status 
)
Value:
{ \
zb_zcl_color_control_enhanced_move_to_hue_saturation_req_t *enhanced_move_to_hue_saturation_req_ptr; \
(enhanced_move_to_hue_saturation_req_ptr) = ZB_BUF_LEN(buffer) >= \
if (enhanced_move_to_hue_saturation_req_ptr) \
{ \
ZB_HTOLE16(&(enhanced_move_to_hue_saturation_req).enhanced_hue, &(enhanced_move_to_hue_saturation_req_ptr->enhanced_hue)); \
enhanced_move_to_hue_saturation_req.saturation = enhanced_move_to_hue_saturation_req_ptr->saturation; \
ZB_HTOLE16(&(enhanced_move_to_hue_saturation_req).transition_time, &(enhanced_move_to_hue_saturation_req_ptr->transition_time)); \
} \
else \
{ \
} \
}
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.
Definition: zb_zcl_common.h:319
#define ZB_ZCL_COLOR_CONTROL_ENHANCED_MOVE_TO_HUE_SATURATION_REQ_PAYLOAD_LEN
Enhanced Move to Hue payload length macro.
Definition: zb_zcl_color_control.h:2189
Structure representsation of Move To Hue and Saturation command payload.
Definition: zb_zcl_color_control.h:2178
#define ZB_BUF_BEGIN(zbbuf)
Definition: zboss_api_core.h:767
#define ZB_BUF_LEN(zbbuf)
Definition: zboss_api_core.h:776
Definition: zb_zcl_common.h:318
void * zb_buf_cut_left(zb_buf_t *zbbuf, zb_uint8_t size)

Macro for getting Enhanced Move To Hue and Saturation command.

Attention
Assumes that ZCL header already cut.
Parameters
buffercontaining the packet (by pointer).
enhanced_move_to_hue_saturation_req- variable of type zb_zcl_color_control_enhanced_move_to_hue_saturation_req_s.
status- variable to put parse status to (see zb_zcl_parse_status_t).
#define ZB_ZCL_COLOR_CONTROL_GET_ENHANCED_STEP_HUE_REQ (   buffer,
  enhanced_step_hue_req,
  status 
)
Value:
{ \
zb_zcl_color_control_enhanced_step_hue_req_t *enhanced_step_hue_req_ptr; \
(enhanced_step_hue_req_ptr) = ZB_BUF_LEN(buffer) >= \
if (enhanced_step_hue_req_ptr) \
{ \
enhanced_step_hue_req.step_mode = enhanced_step_hue_req_ptr->step_mode; \
ZB_HTOLE16(&(enhanced_step_hue_req).step_size, &(enhanced_step_hue_req_ptr->step_size)); \
ZB_HTOLE16(&(enhanced_step_hue_req).transition_time, &(enhanced_step_hue_req_ptr->transition_time)); \
} \
else \
{ \
} \
}
Structure representsation of Enhanced Step Hue command payload.
Definition: zb_zcl_color_control.h:2106
Definition: zb_zcl_common.h:319
#define ZB_ZCL_COLOR_CONTROL_ENHANCED_STEP_HUE_REQ_PAYLOAD_LEN
Enhanced Move to Hue payload length macro.
Definition: zb_zcl_color_control.h:2117
#define ZB_BUF_BEGIN(zbbuf)
Definition: zboss_api_core.h:767
#define ZB_BUF_LEN(zbbuf)
Definition: zboss_api_core.h:776
Definition: zb_zcl_common.h:318
void * zb_buf_cut_left(zb_buf_t *zbbuf, zb_uint8_t size)
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
buffercontaining the packet (by pointer).
enhanced_step_hue_req- variable of type zb_zcl_color_control_enhanced_step_hue_req_s.
status- variable to put parse status to (see zb_zcl_parse_status_t).
#define ZB_ZCL_COLOR_CONTROL_GET_MOVE_COLOR_REQ (   buffer,
  move_color_req,
  status 
)
Value:
{ \
(move_color_req_ptr) = ZB_BUF_LEN(buffer) >= \
if (move_color_req_ptr) \
{ \
ZB_HTOLE16(&(move_color_req).rate_x, &(move_color_req_ptr->rate_x)); \
ZB_HTOLE16(&(move_color_req).rate_y, &(move_color_req_ptr->rate_y)); \
} \
else \
{ \
} \
}
#define ZB_ZCL_COLOR_CONTROL_MOVE_COLOR_REQ_PAYLOAD_LEN
Move Color payload length macro.
Definition: zb_zcl_color_control.h:1744
Structure representsation of Move Color command payload.
Definition: zb_zcl_color_control.h:1735
Definition: zb_zcl_common.h:319
#define ZB_BUF_BEGIN(zbbuf)
Definition: zboss_api_core.h:767
#define ZB_BUF_LEN(zbbuf)
Definition: zboss_api_core.h:776
struct zb_zcl_color_control_move_color_req_s zb_zcl_color_control_move_color_req_t
Structure representsation of Move Color command payload.
Definition: zb_zcl_common.h:318
void * zb_buf_cut_left(zb_buf_t *zbbuf, zb_uint8_t size)

Macro for getting Move Color command.

Attention
Assumes that ZCL header already cut.
Parameters
buffercontaining the packet (by pointer).
move_color_req- variable of type zb_zcl_color_control_move_color_req_s.
status- variable to put parse status to (see zb_zcl_parse_status_t).
#define ZB_ZCL_COLOR_CONTROL_GET_MOVE_COLOR_TEMP_REQ (   buffer,
  move_color_temp_req,
  status 
)
Value:
{ \
(move_color_temp_req_ptr) = ZB_BUF_LEN(buffer) >= \
if (move_color_temp_req_ptr) \
{ \
move_color_temp_req.move_mode = move_color_temp_req_ptr->move_mode; \
ZB_HTOLE16(&(move_color_temp_req).rate, &(move_color_temp_req_ptr->rate)); \
ZB_HTOLE16(&(move_color_temp_req).color_temp_min, &(move_color_temp_req_ptr->color_temp_min)); \
ZB_HTOLE16(&(move_color_temp_req).color_temp_max, &(move_color_temp_req_ptr->color_temp_max)); \
} \
else \
{ \
} \
}
#define ZB_ZCL_COLOR_CONTROL_MOVE_COLOR_TEMP_REQ_PAYLOAD_LEN
Enhanced Move Color Temperature payload length macro.
Definition: zb_zcl_color_control.h:2424
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.
Definition: zb_zcl_common.h:319
#define ZB_BUF_BEGIN(zbbuf)
Definition: zboss_api_core.h:767
#define ZB_BUF_LEN(zbbuf)
Definition: zboss_api_core.h:776
Definition: zb_zcl_common.h:318
Structure representsation of Move color temperature command payload.
Definition: zb_zcl_color_control.h:2411
void * zb_buf_cut_left(zb_buf_t *zbbuf, zb_uint8_t size)

Macro for getting Move color temperature command.

Attention
Assumes that ZCL header already cut.
Parameters
buffercontaining the packet (by pointer).
move_color_temp_req- variable of type zb_zcl_color_control_move_color_temp_req_s.
status- variable to put parse status to (see zb_zcl_parse_status_t).
#define ZB_ZCL_COLOR_CONTROL_GET_MOVE_COLOR_TEMP_REQ (   buffer,
  move_color_temp_req,
  status 
)
Value:
{ \
(move_color_temp_req_ptr) = ZB_BUF_LEN(buffer) >= \
if (move_color_temp_req_ptr) \
{ \
move_color_temp_req.move_mode = move_color_temp_req_ptr->move_mode; \
ZB_HTOLE16(&(move_color_temp_req).rate, &(move_color_temp_req_ptr->rate)); \
ZB_HTOLE16(&(move_color_temp_req).color_temp_min, &(move_color_temp_req_ptr->color_temp_min)); \
ZB_HTOLE16(&(move_color_temp_req).color_temp_max, &(move_color_temp_req_ptr->color_temp_max)); \
} \
else \
{ \
} \
}
#define ZB_ZCL_COLOR_CONTROL_MOVE_COLOR_TEMP_REQ_PAYLOAD_LEN
Enhanced Move Color Temperature payload length macro.
Definition: zb_zcl_color_control.h:2424
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.
Definition: zb_zcl_common.h:319
#define ZB_BUF_BEGIN(zbbuf)
Definition: zboss_api_core.h:767
#define ZB_BUF_LEN(zbbuf)
Definition: zboss_api_core.h:776
Definition: zb_zcl_common.h:318
Structure representsation of Move color temperature command payload.
Definition: zb_zcl_color_control.h:2411
void * zb_buf_cut_left(zb_buf_t *zbbuf, zb_uint8_t size)

Macro for getting Move color temperature command.

Attention
Assumes that ZCL header already cut.
Parameters
buffercontaining the packet (by pointer).
move_color_temp_req- variable of type zb_zcl_color_control_move_color_temp_req_s.
status- variable to put parse status to (see zb_zcl_parse_status_t).
#define ZB_ZCL_COLOR_CONTROL_GET_MOVE_HUE_REQ (   buffer,
  move_hue_req,
  status 
)
Value:
{ \
(move_hue_req_ptr) = ZB_BUF_LEN(buffer) >= \
if (move_hue_req_ptr) \
{ \
move_hue_req.move_mode = move_hue_req_ptr->move_mode; \
move_hue_req.rate = move_hue_req_ptr->rate; \
} \
else \
{ \
} \
}
Definition: zb_zcl_common.h:319
#define ZB_BUF_BEGIN(zbbuf)
Definition: zboss_api_core.h:767
struct zb_zcl_color_control_move_hue_req_s zb_zcl_color_control_move_hue_req_t
Structure representsation of Move Hue command payload.
#define ZB_BUF_LEN(zbbuf)
Definition: zboss_api_core.h:776
Structure representsation of Move Hue command payload.
Definition: zb_zcl_color_control.h:1246
Definition: zb_zcl_common.h:318
#define ZB_ZCL_COLOR_CONTROL_MOVE_HUE_REQ_PAYLOAD_LEN
Move Hue payload length macro.
Definition: zb_zcl_color_control.h:1255
void * zb_buf_cut_left(zb_buf_t *zbbuf, zb_uint8_t size)

Macro for getting Move Hue command.

Attention
Assumes that ZCL header already cut.
Parameters
buffercontaining the packet (by pointer).
move_hue_req- variable of type zb_zcl_color_control_move_hue_req_s.
status- variable to put parse status to (see zb_zcl_parse_status_t).
#define ZB_ZCL_COLOR_CONTROL_GET_MOVE_SATURATION_REQ (   buffer,
  move_saturation_req,
  status 
)
Value:
{ \
(move_saturation_req_ptr) = ZB_BUF_LEN(buffer) >= \
if (move_saturation_req_ptr) \
{ \
move_saturation_req.move_mode = move_saturation_req_ptr->move_mode; \
move_saturation_req.rate = move_saturation_req_ptr->rate; \
} \
else \
{ \
} \
}
#define ZB_ZCL_COLOR_CONTROL_MOVE_SATURATION_REQ_PAYLOAD_LEN
Move Saturation payload length macro.
Definition: zb_zcl_color_control.h:1460
struct zb_zcl_color_control_move_saturation_req_s zb_zcl_color_control_move_saturation_req_t
Structure representsation of Move Saturation command payload.
Definition: zb_zcl_common.h:319
#define ZB_BUF_BEGIN(zbbuf)
Definition: zboss_api_core.h:767
#define ZB_BUF_LEN(zbbuf)
Definition: zboss_api_core.h:776
Definition: zb_zcl_common.h:318
Structure representsation of Move Saturation command payload.
Definition: zb_zcl_color_control.h:1451
void * zb_buf_cut_left(zb_buf_t *zbbuf, zb_uint8_t size)

Macro for getting Move Saturation command.

Attention
Assumes that ZCL header already cut.
Parameters
buffercontaining the packet (by pointer).
move_saturation_req- variable of type zb_zcl_color_control_move_saturation_req_s.
status- variable to put parse status to (see zb_zcl_parse_status_t).
#define ZB_ZCL_COLOR_CONTROL_GET_MOVE_TO_COLOR_REQ (   buffer,
  move_to_color_req,
  status 
)
Value:
{ \
(move_to_color_req_ptr) = ZB_BUF_LEN(buffer) >= \
if (move_to_color_req_ptr) \
{ \
ZB_HTOLE16(&(move_to_color_req).color_x, &(move_to_color_req_ptr->color_x)); \
ZB_HTOLE16(&(move_to_color_req).color_y, &(move_to_color_req_ptr->color_y)); \
ZB_HTOLE16(&(move_to_color_req).transition_time, &(move_to_color_req_ptr->transition_time)); \
} \
else \
{ \
} \
}
Definition: zb_zcl_common.h:319
Structure representsation of Move To Color command payload.
Definition: zb_zcl_color_control.h:1662
#define ZB_BUF_BEGIN(zbbuf)
Definition: zboss_api_core.h:767
#define ZB_BUF_LEN(zbbuf)
Definition: zboss_api_core.h:776
#define ZB_ZCL_COLOR_CONTROL_MOVE_TO_COLOR_REQ_PAYLOAD_LEN
Move to Color payload length macro.
Definition: zb_zcl_color_control.h:1673
struct zb_zcl_color_control_move_to_color_req_s zb_zcl_color_control_move_to_color_req_t
Structure representsation of Move To Color command payload.
Definition: zb_zcl_common.h:318
void * zb_buf_cut_left(zb_buf_t *zbbuf, zb_uint8_t size)

Macro for getting Move To Color command.

Attention
Assumes that ZCL header already cut.
Parameters
buffercontaining the packet (by pointer). zb_zcl_color_control_move_to_color_req_s.
move_to_color_reqcontaining the packet (by pointer).
status- variable to put parse status to (see zb_zcl_parse_status_t).
#define ZB_ZCL_COLOR_CONTROL_GET_MOVE_TO_COLOR_TEMPERATURE_REQ (   buffer,
  move_to_color_temperature_req,
  status 
)
Value:
{ \
(move_to_color_temp_req_ptr) = ZB_BUF_LEN(buffer) >= \
if (move_to_color_temp_req_ptr) \
{ \
ZB_HTOLE16(&(move_to_color_temperature_req).color_temperature, &(move_to_color_temp_req_ptr->color_temperature)); \
ZB_HTOLE16(&(move_to_color_temperature_req).transition_time, &(move_to_color_temp_req_ptr->transition_time)); \
} \
else \
{ \
} \
}
Definition: zb_zcl_common.h:319
#define ZB_BUF_BEGIN(zbbuf)
Definition: zboss_api_core.h:767
#define ZB_BUF_LEN(zbbuf)
Definition: zboss_api_core.h:776
struct zb_zcl_color_control_move_to_color_temperature_req_s zb_zcl_color_control_move_to_color_temperature_req_t
Structure representsation of Move To Color Temperature command payload.
#define ZB_ZCL_COLOR_CONTROL_MOVE_TO_COLOR_TEMP_REQ_PAYLOAD_LEN
Move to Color Temperature payload length macro.
Definition: zb_zcl_color_control.h:1883
Definition: zb_zcl_common.h:318
Structure representsation of Move To Color Temperature command payload.
Definition: zb_zcl_color_control.h:1874
void * zb_buf_cut_left(zb_buf_t *zbbuf, zb_uint8_t size)

Macro for getting Move to Color Temperature command.

Attention
Assumes that ZCL header already cut.
Parameters
buffercontaining the packet (by pointer).
move_to_color_temperature_req- variable of type zb_zcl_color_control_move_to_color_temperature_req_s.
status- variable to put parse status to (see zb_zcl_parse_status_t).
#define ZB_ZCL_COLOR_CONTROL_GET_MOVE_TO_HUE_REQ (   buffer,
  move_to_hue_req,
  status 
)
Value:
{ \
(move_to_hue_req_ptr) = ZB_BUF_LEN(buffer) >= \
if (move_to_hue_req_ptr) \
{ \
move_to_hue_req.hue = move_to_hue_req_ptr->hue; \
move_to_hue_req.direction = move_to_hue_req_ptr->direction; \
ZB_HTOLE16(&(move_to_hue_req).transition_time, &(move_to_hue_req_ptr->transition_time)); \
} \
else \
{ \
} \
}
struct zb_zcl_color_control_move_to_hue_req_s zb_zcl_color_control_move_to_hue_req_t
Structure representsation of Move To Hue command payload.
Definition: zb_zcl_common.h:319
#define ZB_BUF_BEGIN(zbbuf)
Definition: zboss_api_core.h:767
#define ZB_BUF_LEN(zbbuf)
Definition: zboss_api_core.h:776
Structure representsation of Move To Hue command payload.
Definition: zb_zcl_color_control.h:1175
Definition: zb_zcl_common.h:318
#define ZB_ZCL_COLOR_CONTROL_MOVE_TO_HUE_REQ_PAYLOAD_LEN
Move Hue payload length macro.
Definition: zb_zcl_color_control.h:1186
void * zb_buf_cut_left(zb_buf_t *zbbuf, zb_uint8_t size)

Macro for getting Move to Hue command.

Attention
Assumes that ZCL header already cut.
Parameters
buffercontaining the packet (by pointer).
move_to_hue_req- pointer to a variable of type zb_zcl_color_control_move_to_hue_req_s.
status- variable to put parse status to (see zb_zcl_parse_status_t).
#define ZB_ZCL_COLOR_CONTROL_GET_MOVE_TO_HUE_SATURATION_REQ (   buffer,
  move_to_hue_saturation_req,
  status 
)
Value:
{ \
zb_zcl_color_control_move_to_hue_saturation_req_t *move_to_hue_saturation_req_ptr; \
(move_to_hue_saturation_req_ptr) = ZB_BUF_LEN(buffer) >= \
if (move_to_hue_saturation_req_ptr) \
{ \
move_to_hue_saturation_req.hue = move_to_hue_saturation_req_ptr->hue; \
move_to_hue_saturation_req.saturation = move_to_hue_saturation_req_ptr->saturation; \
ZB_HTOLE16(&(move_to_hue_saturation_req).transition_time, &(move_to_hue_saturation_req_ptr->transition_time)); \
} \
else \
{ \
} \
}
struct zb_zcl_color_control_move_to_hue_saturation_req_s zb_zcl_color_control_move_to_hue_saturation_req_t
Structure representsation of Move To Hue and Saturation command payload.
Definition: zb_zcl_common.h:319
#define ZB_BUF_BEGIN(zbbuf)
Definition: zboss_api_core.h:767
#define ZB_BUF_LEN(zbbuf)
Definition: zboss_api_core.h:776
Definition: zb_zcl_common.h:318
#define ZB_ZCL_COLOR_CONTROL_MOVE_TO_HUE_SATURATION_REQ_PAYLOAD_LEN
Move to Hue and Saturation payload length macro.
Definition: zb_zcl_color_control.h:1601
Structure representsation of Move To Hue and Saturation command payload.
Definition: zb_zcl_color_control.h:1590
void * zb_buf_cut_left(zb_buf_t *zbbuf, zb_uint8_t size)

Macro for getting Move To Hue and Saturation command.

Attention
Assumes that ZCL header already cut.
Parameters
buffercontaining the packet (by pointer).
move_to_hue_saturation_req- pointer to a variable of type zb_zcl_color_control_move_to_hue_saturation_req_s.
status- variable to put parse status to (see zb_zcl_parse_status_t).
#define ZB_ZCL_COLOR_CONTROL_GET_MOVE_TO_SATURATION_REQ (   buffer,
  move_to_saturation_req,
  status 
)
Value:
{ \
zb_zcl_color_control_move_to_saturation_req_t *move_to_saturation_req_ptr; \
(move_to_saturation_req_ptr) = ZB_BUF_LEN(buffer) >= \
if (move_to_saturation_req_ptr) \
{ \
move_to_saturation_req.saturation = move_to_saturation_req_ptr->saturation; \
ZB_HTOLE16(&(move_to_saturation_req).transition_time, &(move_to_saturation_req_ptr->transition_time)); \
} \
else \
{ \
} \
}
Definition: zb_zcl_common.h:319
#define ZB_BUF_BEGIN(zbbuf)
Definition: zboss_api_core.h:767
#define ZB_BUF_LEN(zbbuf)
Definition: zboss_api_core.h:776
#define ZB_ZCL_COLOR_CONTROL_MOVE_TO_SATURATION_REQ_PAYLOAD_LEN
Move To Saturation payload length macro.
Definition: zb_zcl_color_control.h:1394
Structure representsation of Move To Saturation command payload.
Definition: zb_zcl_color_control.h:1385
Definition: zb_zcl_common.h:318
struct zb_zcl_color_control_move_to_saturation_req_s zb_zcl_color_control_move_to_saturation_req_t
Structure representsation of Move To Saturation command payload.
void * zb_buf_cut_left(zb_buf_t *zbbuf, zb_uint8_t size)

Macro for getting Move To Saturation command.

Attention
Assumes that ZCL header already cut.
Parameters
buffercontaining the packet (by pointer).
move_to_saturation_req- variable of type zb_zcl_color_control_move_to_saturation_req_s.
status- variable to put parse status to (see zb_zcl_parse_status_t).
#define ZB_ZCL_COLOR_CONTROL_GET_STEP_COLOR_REQ (   buffer,
  step_color_req,
  status 
)
Value:
{ \
(step_color_req_ptr) = ZB_BUF_LEN(buffer) >= \
if (step_color_req_ptr) \
{ \
ZB_HTOLE16(&(step_color_req).step_x, &(step_color_req_ptr->step_x)); \
ZB_HTOLE16(&(step_color_req).step_y, &(step_color_req_ptr->step_y)); \
ZB_HTOLE16(&(step_color_req).transition_time, &(step_color_req_ptr->transition_time)); \
} \
else \
{ \
} \
}
Definition: zb_zcl_common.h:319
#define ZB_BUF_BEGIN(zbbuf)
Definition: zboss_api_core.h:767
#define ZB_BUF_LEN(zbbuf)
Definition: zboss_api_core.h:776
Definition: zb_zcl_common.h:318
#define ZB_ZCL_COLOR_CONTROL_STEP_COLOR_REQ_PAYLOAD_LEN
Step Color payload length macro.
Definition: zb_zcl_color_control.h:1813
Structure representsation of Step Color command payload.
Definition: zb_zcl_color_control.h:1802
void * zb_buf_cut_left(zb_buf_t *zbbuf, zb_uint8_t size)
struct zb_zcl_color_control_step_color_req_s zb_zcl_color_control_step_color_req_t
Structure representsation of Step Color command payload.

Macro for getting Move Color command.

Macro for getting Step Color Temperature command.

Attention
Assumes that ZCL header already cut.
Parameters
buffercontaining the packet (by pointer).
step_color_req- variable of type zb_zcl_color_control_step_color_req_s.
status- variable to put parse status to (see zb_zcl_parse_status_t).
Attention
Assumes that ZCL header already cut.
Parameters
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_REQ (   buffer,
  step_color_req,
  status 
)
Value:
{ \
(step_color_req_ptr) = ZB_BUF_LEN(buffer) >= \
if (step_color_req_ptr) \
{ \
ZB_HTOLE16(&(step_color_req).step_x, &(step_color_req_ptr->step_x)); \
ZB_HTOLE16(&(step_color_req).step_y, &(step_color_req_ptr->step_y)); \
ZB_HTOLE16(&(step_color_req).transition_time, &(step_color_req_ptr->transition_time)); \
} \
else \
{ \
} \
}
Definition: zb_zcl_common.h:319
#define ZB_BUF_BEGIN(zbbuf)
Definition: zboss_api_core.h:767
#define ZB_BUF_LEN(zbbuf)
Definition: zboss_api_core.h:776
Definition: zb_zcl_common.h:318
#define ZB_ZCL_COLOR_CONTROL_STEP_COLOR_REQ_PAYLOAD_LEN
Step Color payload length macro.
Definition: zb_zcl_color_control.h:1813
Structure representsation of Step Color command payload.
Definition: zb_zcl_color_control.h:1802
void * zb_buf_cut_left(zb_buf_t *zbbuf, zb_uint8_t size)
struct zb_zcl_color_control_step_color_req_s zb_zcl_color_control_step_color_req_t
Structure representsation of Step Color command payload.

Macro for getting Move Color command.

Macro for getting Step Color Temperature command.

Attention
Assumes that ZCL header already cut.
Parameters
buffercontaining the packet (by pointer).
step_color_req- variable of type zb_zcl_color_control_step_color_req_s.
status- variable to put parse status to (see zb_zcl_parse_status_t).
Attention
Assumes that ZCL header already cut.
Parameters
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 (   buffer,
  step_color_temp_req,
  status 
)
Value:
{ \
(step_color_temp_req_ptr) = ZB_BUF_LEN(buffer) >= \
if (step_color_temp_req_ptr) \
{ \
step_color_temp_req.step_mode = step_color_temp_req_ptr->step_mode; \
ZB_HTOLE16(&(step_color_temp_req).step_size, &(step_color_temp_req_ptr->step_size)); \
ZB_HTOLE16(&(step_color_temp_req).transition_time, &(step_color_temp_req_ptr->transition_time)); \
ZB_HTOLE16(&(step_color_temp_req).color_temp_min, &(step_color_temp_req_ptr->color_temp_min)); \
ZB_HTOLE16(&(step_color_temp_req).color_temp_max, &(step_color_temp_req_ptr->color_temp_max)); \
} \
else \
{ \
} \
}
Definition: zb_zcl_common.h:319
#define ZB_BUF_BEGIN(zbbuf)
Definition: zboss_api_core.h:767
#define ZB_BUF_LEN(zbbuf)
Definition: zboss_api_core.h:776
#define ZB_ZCL_COLOR_CONTROL_STEP_COLOR_TEMP_REQ_PAYLOAD_LEN
Enhanced Move Color Temperature payload length macro.
Definition: zb_zcl_color_control.h:2503
Definition: zb_zcl_common.h:318
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.
void * zb_buf_cut_left(zb_buf_t *zbbuf, zb_uint8_t size)
Structure representsation of Step color temperature command command payload.
Definition: zb_zcl_color_control.h:2488

Macro for getting Move color temperature command.

Attention
Assumes that ZCL header already cut.
Parameters
buffercontaining the packet (by pointer).
step_color_temp_req- variable of type zb_zcl_color_control_step_color_temp_req_s.
status- variable to put parse status to (see zb_zcl_parse_status_t).
#define ZB_ZCL_COLOR_CONTROL_GET_STEP_HUE_REQ (   buffer,
  step_hue_req,
  status 
)
Value:
{ \
(step_hue_req_ptr) = ZB_BUF_LEN(buffer) >= \
if (step_hue_req_ptr) \
{ \
step_hue_req.step_mode = step_hue_req_ptr->step_mode; \
step_hue_req.step_size = step_hue_req_ptr->step_size; \
ZB_HTOLE16(&(step_hue_req).transition_time, &(step_hue_req_ptr->transition_time)); \
} \
else \
{ \
} \
}
Definition: zb_zcl_common.h:319
#define ZB_BUF_BEGIN(zbbuf)
Definition: zboss_api_core.h:767
struct zb_zcl_color_control_step_hue_req_s zb_zcl_color_control_step_hue_req_t
Structure representsation of Step Hue command payload.
#define ZB_BUF_LEN(zbbuf)
Definition: zboss_api_core.h:776
Definition: zb_zcl_common.h:318
Structure representsation of Step Hue command payload.
Definition: zb_zcl_color_control.h:1313
void * zb_buf_cut_left(zb_buf_t *zbbuf, zb_uint8_t size)
#define ZB_ZCL_COLOR_CONTROL_STEP_HUE_REQ_PAYLOAD_LEN
Step Hue payload length macro.
Definition: zb_zcl_color_control.h:1324

Macro for getting Step Hue command.

Attention
Assumes that ZCL header already cut.
Parameters
buffercontaining the packet (by pointer).
step_hue_req- pointer to a variable of type zb_zcl_color_control_step_hue_req_s.
status- variable to put parse status to (see zb_zcl_parse_status_t).
#define ZB_ZCL_COLOR_CONTROL_GET_STEP_SATURATION_REQ (   buffer,
  step_saturation_req,
  status 
)
Value:
{ \
(step_saturation_req_ptr) = ZB_BUF_LEN(buffer) >= \
if (step_saturation_req_ptr) \
{ \
step_saturation_req.step_mode = step_saturation_req_ptr->step_mode; \
step_saturation_req.step_size = step_saturation_req_ptr->step_size; \
step_saturation_req.transition_time = step_saturation_req_ptr->transition_time; \
} \
else \
{ \
} \
}
#define ZB_ZCL_COLOR_CONTROL_STEP_SATURATION_REQ_PAYLOAD_LEN
Move Saturation payload length macro.
Definition: zb_zcl_color_control.h:1529
Structure representsation of Step Saturation command payload.
Definition: zb_zcl_color_control.h:1518
Definition: zb_zcl_common.h:319
#define ZB_BUF_BEGIN(zbbuf)
Definition: zboss_api_core.h:767
#define ZB_BUF_LEN(zbbuf)
Definition: zboss_api_core.h:776
Definition: zb_zcl_common.h:318
struct zb_zcl_color_control_step_saturation_req_s zb_zcl_color_control_step_saturation_req_t
Structure representsation of Step Saturation command payload.
void * zb_buf_cut_left(zb_buf_t *zbbuf, zb_uint8_t size)

Macro for getting Step Saturation command.

Attention
Assumes that ZCL header already cut.
Parameters
buffercontaining the packet (by pointer).
step_saturation_req- variable of type zb_zcl_color_control_step_saturation_req_s.
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_uint8_t* ptr = ZB_ZCL_START_PACKET_REQ(buffer) \
ZB_ZCL_CONSTRUCT_SPECIFIC_COMMAND_REQ_FRAME_CONTROL(ptr, (def_resp)) \
ZB_ZCL_CONSTRUCT_COMMAND_HEADER_REQ(ptr, ZB_ZCL_GET_SEQ_NUM(), ZB_ZCL_CMD_COLOR_CONTROL_COLOR_LOOP_SET); \
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:1353
#define ZB_ZCL_GET_SEQ_NUM()
Return next sequence number for ZCL frame.
Definition: zb_zcl_common.h:1250
#define ZB_ZCL_PACKET_PUT_DATA16_VAL(ptr, val)
Definition: zb_zcl_common.h:1371
#define ZB_ZCL_FINISH_PACKET(zbbuf, ptr)
Definition: zb_zcl_common.h:1654
unsigned char zb_uint8_t
Project-local 1-byte unsigned int type.
Definition: zb_types.h:116
Definition: zb_zcl_color_control.h:1055
Definition: zb_zcl_common.h:253

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_uint8_t* ptr = ZB_ZCL_START_PACKET_REQ(buffer) \
ZB_ZCL_CONSTRUCT_SPECIFIC_COMMAND_REQ_FRAME_CONTROL(ptr, (def_resp)) \
ZB_ZCL_CONSTRUCT_COMMAND_HEADER_REQ(ptr, ZB_ZCL_GET_SEQ_NUM(), ZB_ZCL_CMD_COLOR_CONTROL_ENHANCED_MOVE_HUE); \
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:1353
#define ZB_ZCL_GET_SEQ_NUM()
Return next sequence number for ZCL frame.
Definition: zb_zcl_common.h:1250
#define ZB_ZCL_PACKET_PUT_DATA16_VAL(ptr, val)
Definition: zb_zcl_common.h:1371
#define ZB_ZCL_FINISH_PACKET(zbbuf, ptr)
Definition: zb_zcl_common.h:1654
Definition: zb_zcl_color_control.h:1049
unsigned char zb_uint8_t
Project-local 1-byte unsigned int type.
Definition: zb_types.h:116
Definition: zb_zcl_common.h:253

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_uint8_t* ptr = ZB_ZCL_START_PACKET_REQ(buffer) \
ZB_ZCL_CONSTRUCT_SPECIFIC_COMMAND_REQ_FRAME_CONTROL(ptr, (def_resp)) \
ZB_ZCL_CONSTRUCT_COMMAND_HEADER_REQ(ptr, ZB_ZCL_GET_SEQ_NUM(), ZB_ZCL_CMD_COLOR_CONTROL_ENHANCED_MOVE_TO_HUE); \
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:1353
#define ZB_ZCL_GET_SEQ_NUM()
Return next sequence number for ZCL frame.
Definition: zb_zcl_common.h:1250
#define ZB_ZCL_PACKET_PUT_DATA16_VAL(ptr, val)
Definition: zb_zcl_common.h:1371
#define ZB_ZCL_FINISH_PACKET(zbbuf, ptr)
Definition: zb_zcl_common.h:1654
Definition: zb_zcl_color_control.h:1047
unsigned char zb_uint8_t
Project-local 1-byte unsigned int type.
Definition: zb_types.h:116
Definition: zb_zcl_common.h:253

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_uint8_t* ptr = ZB_ZCL_START_PACKET_REQ(buffer) \
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:1353
#define ZB_ZCL_GET_SEQ_NUM()
Return next sequence number for ZCL frame.
Definition: zb_zcl_common.h:1250
Definition: zb_zcl_color_control.h:1053
#define ZB_ZCL_PACKET_PUT_DATA16_VAL(ptr, val)
Definition: zb_zcl_common.h:1371
#define ZB_ZCL_FINISH_PACKET(zbbuf, ptr)
Definition: zb_zcl_common.h:1654
unsigned char zb_uint8_t
Project-local 1-byte unsigned int type.
Definition: zb_types.h:116
Definition: zb_zcl_common.h:253

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_uint8_t* ptr = ZB_ZCL_START_PACKET_REQ(buffer) \
ZB_ZCL_CONSTRUCT_SPECIFIC_COMMAND_REQ_FRAME_CONTROL(ptr, (def_resp)) \
ZB_ZCL_CONSTRUCT_COMMAND_HEADER_REQ(ptr, ZB_ZCL_GET_SEQ_NUM(), ZB_ZCL_CMD_COLOR_CONTROL_ENHANCED_STEP_HUE); \
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:1353
#define ZB_ZCL_GET_SEQ_NUM()
Return next sequence number for ZCL frame.
Definition: zb_zcl_common.h:1250
#define ZB_ZCL_PACKET_PUT_DATA16_VAL(ptr, val)
Definition: zb_zcl_common.h:1371
#define ZB_ZCL_FINISH_PACKET(zbbuf, ptr)
Definition: zb_zcl_common.h:1654
unsigned char zb_uint8_t
Project-local 1-byte unsigned int type.
Definition: zb_types.h:116
Definition: zb_zcl_common.h:253
Definition: zb_zcl_color_control.h:1051

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_REQ (   buffer,
  addr,
  dst_addr_mode,
  dst_ep,
  ep,
  prfl_id,
  def_resp,
  cb,
  rate_x,
  rate_y 
)
Value:
{ \
zb_uint8_t* ptr = ZB_ZCL_START_PACKET_REQ(buffer) \
ZB_ZCL_CONSTRUCT_SPECIFIC_COMMAND_REQ_FRAME_CONTROL(ptr, (def_resp)) \
ZB_ZCL_CONSTRUCT_COMMAND_HEADER_REQ(ptr, ZB_ZCL_GET_SEQ_NUM(), ZB_ZCL_CMD_COLOR_CONTROL_MOVE_COLOR); \
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:1250
#define ZB_ZCL_PACKET_PUT_DATA16_VAL(ptr, val)
Definition: zb_zcl_common.h:1371
#define ZB_ZCL_FINISH_PACKET(zbbuf, ptr)
Definition: zb_zcl_common.h:1654
Definition: zb_zcl_color_control.h:1041
unsigned char zb_uint8_t
Project-local 1-byte unsigned int type.
Definition: zb_types.h:116
Definition: zb_zcl_common.h:253

Send Move Color 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
rate_x- RateX
rate_y- RateY
#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_uint8_t* ptr = ZB_ZCL_START_PACKET_REQ(buffer) \
ZB_ZCL_CONSTRUCT_SPECIFIC_COMMAND_REQ_FRAME_CONTROL(ptr, (def_resp)) \
ZB_ZCL_CONSTRUCT_COMMAND_HEADER_REQ(ptr, ZB_ZCL_GET_SEQ_NUM(), ZB_ZCL_CMD_COLOR_CONTROL_MOVE_COLOR_TEMPERATURE); \
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:1353
#define ZB_ZCL_GET_SEQ_NUM()
Return next sequence number for ZCL frame.
Definition: zb_zcl_common.h:1250
Definition: zb_zcl_color_control.h:1059
#define ZB_ZCL_PACKET_PUT_DATA16_VAL(ptr, val)
Definition: zb_zcl_common.h:1371
#define ZB_ZCL_FINISH_PACKET(zbbuf, ptr)
Definition: zb_zcl_common.h:1654
unsigned char zb_uint8_t
Project-local 1-byte unsigned int type.
Definition: zb_types.h:116
Definition: zb_zcl_common.h:253

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_MOVE_HUE_REQ (   buffer,
  addr,
  dst_addr_mode,
  dst_ep,
  ep,
  prfl_id,
  def_resp,
  cb,
  move_mode,
  rate 
)
Value:
{ \
zb_uint8_t* ptr = ZB_ZCL_START_PACKET_REQ(buffer) \
ZB_ZCL_CONSTRUCT_SPECIFIC_COMMAND_REQ_FRAME_CONTROL(ptr, (def_resp)) \
ZB_ZCL_CONSTRUCT_COMMAND_HEADER_REQ(ptr, ZB_ZCL_GET_SEQ_NUM(), ZB_ZCL_CMD_COLOR_CONTROL_MOVE_HUE); \
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:1353
#define ZB_ZCL_GET_SEQ_NUM()
Return next sequence number for ZCL frame.
Definition: zb_zcl_common.h:1250
#define ZB_ZCL_FINISH_PACKET(zbbuf, ptr)
Definition: zb_zcl_common.h:1654
unsigned char zb_uint8_t
Project-local 1-byte unsigned int type.
Definition: zb_types.h:116
Definition: zb_zcl_common.h:253
Definition: zb_zcl_color_control.h:1027

Send 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_MOVE_SATURATION_REQ (   buffer,
  addr,
  dst_addr_mode,
  dst_ep,
  ep,
  prfl_id,
  def_resp,
  cb,
  move_mode,
  rate 
)
Value:
{ \
zb_uint8_t* ptr = ZB_ZCL_START_PACKET_REQ(buffer) \
ZB_ZCL_CONSTRUCT_SPECIFIC_COMMAND_REQ_FRAME_CONTROL(ptr, (def_resp)) \
ZB_ZCL_CONSTRUCT_COMMAND_HEADER_REQ(ptr, ZB_ZCL_GET_SEQ_NUM(), ZB_ZCL_CMD_COLOR_CONTROL_MOVE_SATURATION); \
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:1353
#define ZB_ZCL_GET_SEQ_NUM()
Return next sequence number for ZCL frame.
Definition: zb_zcl_common.h:1250
Definition: zb_zcl_color_control.h:1033
#define ZB_ZCL_FINISH_PACKET(zbbuf, ptr)
Definition: zb_zcl_common.h:1654
unsigned char zb_uint8_t
Project-local 1-byte unsigned int type.
Definition: zb_types.h:116
Definition: zb_zcl_common.h:253

Send Move 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
move_mode- Move mode, see zb_zcl_color_control_move_direction_e
rate- Rate
#define ZB_ZCL_COLOR_CONTROL_SEND_MOVE_TO_COLOR_REQ (   buffer,
  addr,
  dst_addr_mode,
  dst_ep,
  ep,
  prfl_id,
  def_resp,
  cb,
  color_x,
  color_y,
  transition_time 
)
Value:
{ \
zb_uint8_t* ptr = ZB_ZCL_START_PACKET_REQ(buffer) \
ZB_ZCL_CONSTRUCT_SPECIFIC_COMMAND_REQ_FRAME_CONTROL(ptr, (def_resp)) \
ZB_ZCL_CONSTRUCT_COMMAND_HEADER_REQ(ptr, ZB_ZCL_GET_SEQ_NUM(), ZB_ZCL_CMD_COLOR_CONTROL_MOVE_TO_COLOR); \
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_GET_SEQ_NUM()
Return next sequence number for ZCL frame.
Definition: zb_zcl_common.h:1250
#define ZB_ZCL_PACKET_PUT_DATA16_VAL(ptr, val)
Definition: zb_zcl_common.h:1371
#define ZB_ZCL_FINISH_PACKET(zbbuf, ptr)
Definition: zb_zcl_common.h:1654
unsigned char zb_uint8_t
Project-local 1-byte unsigned int type.
Definition: zb_types.h:116
Definition: zb_zcl_common.h:253
Definition: zb_zcl_color_control.h:1039

Send Move to Color 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
color_x- colorX
color_y- colorY
transition_time- Transition Time value
#define ZB_ZCL_COLOR_CONTROL_SEND_MOVE_TO_COLOR_TEMPERATURE_REQ (   buffer,
  addr,
  dst_addr_mode,
  dst_ep,
  ep,
  prfl_id,
  def_resp,
  cb,
  color_temperature,
  transition_time 
)
Value:
{ \
zb_uint8_t* ptr = ZB_ZCL_START_PACKET_REQ(buffer) \
ZB_ZCL_CONSTRUCT_SPECIFIC_COMMAND_REQ_FRAME_CONTROL(ptr, (def_resp)) \
ZB_ZCL_CONSTRUCT_COMMAND_HEADER_REQ(ptr, ZB_ZCL_GET_SEQ_NUM(), ZB_ZCL_CMD_COLOR_CONTROL_MOVE_TO_COLOR_TEMPERATURE); \
ZB_ZCL_PACKET_PUT_DATA16_VAL(ptr, (color_temperature)); \
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_GET_SEQ_NUM()
Return next sequence number for ZCL frame.
Definition: zb_zcl_common.h:1250
Definition: zb_zcl_color_control.h:1045
#define ZB_ZCL_PACKET_PUT_DATA16_VAL(ptr, val)
Definition: zb_zcl_common.h:1371
#define ZB_ZCL_FINISH_PACKET(zbbuf, ptr)
Definition: zb_zcl_common.h:1654
unsigned char zb_uint8_t
Project-local 1-byte unsigned int type.
Definition: zb_types.h:116
Definition: zb_zcl_common.h:253

Send Move To 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
color_temperature- Color Temperature
transition_time- Transition Time value
#define ZB_ZCL_COLOR_CONTROL_SEND_MOVE_TO_HUE_REQ (   buffer,
  addr,
  dst_addr_mode,
  dst_ep,
  ep,
  prfl_id,
  def_resp,
  cb,
  hue,
  direction,
  transition_time 
)
Value:
{ \
zb_uint8_t* ptr = ZB_ZCL_START_PACKET_REQ(buffer) \
ZB_ZCL_CONSTRUCT_SPECIFIC_COMMAND_REQ_FRAME_CONTROL(ptr, (def_resp)) \
ZB_ZCL_CONSTRUCT_COMMAND_HEADER_REQ(ptr, ZB_ZCL_GET_SEQ_NUM(), ZB_ZCL_CMD_COLOR_CONTROL_MOVE_TO_HUE); \
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:1353
#define ZB_ZCL_GET_SEQ_NUM()
Return next sequence number for ZCL frame.
Definition: zb_zcl_common.h:1250
#define ZB_ZCL_PACKET_PUT_DATA16_VAL(ptr, val)
Definition: zb_zcl_common.h:1371
#define ZB_ZCL_FINISH_PACKET(zbbuf, ptr)
Definition: zb_zcl_common.h:1654
unsigned char zb_uint8_t
Project-local 1-byte unsigned int type.
Definition: zb_types.h:116
Definition: zb_zcl_common.h:253
Definition: zb_zcl_color_control.h:1025

Send 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
hue- 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_MOVE_TO_HUE_SATURATION_REQ (   buffer,
  addr,
  dst_addr_mode,
  dst_ep,
  ep,
  prfl_id,
  def_resp,
  cb,
  hue,
  saturation,
  transition_time 
)
Value:
{ \
zb_uint8_t* ptr = ZB_ZCL_START_PACKET_REQ(buffer) \
ZB_ZCL_CONSTRUCT_SPECIFIC_COMMAND_REQ_FRAME_CONTROL(ptr, (def_resp)) \
ZB_ZCL_CONSTRUCT_COMMAND_HEADER_REQ(ptr, ZB_ZCL_GET_SEQ_NUM(), ZB_ZCL_CMD_COLOR_CONTROL_MOVE_TO_HUE_SATURATION); \
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:1353
#define ZB_ZCL_GET_SEQ_NUM()
Return next sequence number for ZCL frame.
Definition: zb_zcl_common.h:1250
#define ZB_ZCL_PACKET_PUT_DATA16_VAL(ptr, val)
Definition: zb_zcl_common.h:1371
#define ZB_ZCL_FINISH_PACKET(zbbuf, ptr)
Definition: zb_zcl_common.h:1654
Definition: zb_zcl_color_control.h:1037
unsigned char zb_uint8_t
Project-local 1-byte unsigned int type.
Definition: zb_types.h:116
Definition: zb_zcl_common.h:253

Send 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
hue- hue
saturation- saturation
transition_time- Transition Time value
#define ZB_ZCL_COLOR_CONTROL_SEND_MOVE_TO_SATURATION_REQ (   buffer,
  addr,
  dst_addr_mode,
  dst_ep,
  ep,
  prfl_id,
  def_resp,
  cb,
  saturation,
  transition_time 
)
Value:
{ \
zb_uint8_t* ptr = ZB_ZCL_START_PACKET_REQ(buffer) \
ZB_ZCL_CONSTRUCT_SPECIFIC_COMMAND_REQ_FRAME_CONTROL(ptr, (def_resp)) \
ZB_ZCL_CONSTRUCT_COMMAND_HEADER_REQ(ptr, ZB_ZCL_GET_SEQ_NUM(), ZB_ZCL_CMD_COLOR_CONTROL_MOVE_TO_SATURATION); \
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:1353
#define ZB_ZCL_GET_SEQ_NUM()
Return next sequence number for ZCL frame.
Definition: zb_zcl_common.h:1250
Definition: zb_zcl_color_control.h:1031
#define ZB_ZCL_PACKET_PUT_DATA16_VAL(ptr, val)
Definition: zb_zcl_common.h:1371
#define ZB_ZCL_FINISH_PACKET(zbbuf, ptr)
Definition: zb_zcl_common.h:1654
unsigned char zb_uint8_t
Project-local 1-byte unsigned int type.
Definition: zb_types.h:116
Definition: zb_zcl_common.h:253

Send Move to 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
saturation- saturation
transition_time- Transition Time value
#define ZB_ZCL_COLOR_CONTROL_SEND_STEP_COLOR_REQ (   buffer,
  addr,
  dst_addr_mode,
  dst_ep,
  ep,
  prfl_id,
  def_resp,
  cb,
  step_x,
  step_y,
  transition_time 
)
Value:
{ \
zb_uint8_t* ptr = ZB_ZCL_START_PACKET_REQ(buffer) \
ZB_ZCL_CONSTRUCT_SPECIFIC_COMMAND_REQ_FRAME_CONTROL(ptr, (def_resp)) \
ZB_ZCL_CONSTRUCT_COMMAND_HEADER_REQ(ptr, ZB_ZCL_GET_SEQ_NUM(), ZB_ZCL_CMD_COLOR_CONTROL_STEP_COLOR); \
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_GET_SEQ_NUM()
Return next sequence number for ZCL frame.
Definition: zb_zcl_common.h:1250
#define ZB_ZCL_PACKET_PUT_DATA16_VAL(ptr, val)
Definition: zb_zcl_common.h:1371
#define ZB_ZCL_FINISH_PACKET(zbbuf, ptr)
Definition: zb_zcl_common.h:1654
unsigned char zb_uint8_t
Project-local 1-byte unsigned int type.
Definition: zb_types.h:116
Definition: zb_zcl_common.h:253
Definition: zb_zcl_color_control.h:1043

Send Step Color 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_x- StepX
step_y- StepY
transition_time- Transition Time value
#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_uint8_t* ptr = ZB_ZCL_START_PACKET_REQ(buffer) \
ZB_ZCL_CONSTRUCT_SPECIFIC_COMMAND_REQ_FRAME_CONTROL(ptr, (def_resp)) \
ZB_ZCL_CONSTRUCT_COMMAND_HEADER_REQ(ptr, ZB_ZCL_GET_SEQ_NUM(), ZB_ZCL_CMD_COLOR_CONTROL_STEP_COLOR_TEMPERATURE); \
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:1353
#define ZB_ZCL_GET_SEQ_NUM()
Return next sequence number for ZCL frame.
Definition: zb_zcl_common.h:1250
#define ZB_ZCL_PACKET_PUT_DATA16_VAL(ptr, val)
Definition: zb_zcl_common.h:1371
#define ZB_ZCL_FINISH_PACKET(zbbuf, ptr)
Definition: zb_zcl_common.h:1654
unsigned char zb_uint8_t
Project-local 1-byte unsigned int type.
Definition: zb_types.h:116
Definition: zb_zcl_color_control.h:1061
Definition: zb_zcl_common.h:253

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_STEP_HUE_REQ (   buffer,
  addr,
  dst_addr_mode,
  dst_ep,
  ep,
  prfl_id,
  def_resp,
  cb,
  step_mode,
  step_size,
  transition_time 
)
Value:
{ \
zb_uint8_t* ptr = ZB_ZCL_START_PACKET_REQ(buffer) \
ZB_ZCL_CONSTRUCT_SPECIFIC_COMMAND_REQ_FRAME_CONTROL(ptr, (def_resp)) \
ZB_ZCL_CONSTRUCT_COMMAND_HEADER_REQ(ptr, ZB_ZCL_GET_SEQ_NUM(), ZB_ZCL_CMD_COLOR_CONTROL_STEP_HUE); \
ZB_ZCL_PACKET_PUT_DATA8(ptr, (step_mode)); \
ZB_ZCL_PACKET_PUT_DATA8(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:1353
#define ZB_ZCL_GET_SEQ_NUM()
Return next sequence number for ZCL frame.
Definition: zb_zcl_common.h:1250
#define ZB_ZCL_PACKET_PUT_DATA16_VAL(ptr, val)
Definition: zb_zcl_common.h:1371
#define ZB_ZCL_FINISH_PACKET(zbbuf, ptr)
Definition: zb_zcl_common.h:1654
unsigned char zb_uint8_t
Project-local 1-byte unsigned int type.
Definition: zb_types.h:116
Definition: zb_zcl_common.h:253
Definition: zb_zcl_color_control.h:1029

Send 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_STEP_SATURATION_REQ (   buffer,
  addr,
  dst_addr_mode,
  dst_ep,
  ep,
  prfl_id,
  def_resp,
  cb,
  step_mode,
  step_size,
  transition_time 
)
Value:
{ \
zb_uint8_t* ptr = ZB_ZCL_START_PACKET_REQ(buffer) \
ZB_ZCL_CONSTRUCT_SPECIFIC_COMMAND_REQ_FRAME_CONTROL(ptr, (def_resp)) \
ZB_ZCL_CONSTRUCT_COMMAND_HEADER_REQ(ptr, ZB_ZCL_GET_SEQ_NUM(), ZB_ZCL_CMD_COLOR_CONTROL_STEP_SATURATION); \
ZB_ZCL_PACKET_PUT_DATA8(ptr, (step_mode)); \
ZB_ZCL_PACKET_PUT_DATA8(ptr, (step_size)); \
ZB_ZCL_PACKET_PUT_DATA8(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:1353
#define ZB_ZCL_GET_SEQ_NUM()
Return next sequence number for ZCL frame.
Definition: zb_zcl_common.h:1250
#define ZB_ZCL_FINISH_PACKET(zbbuf, ptr)
Definition: zb_zcl_common.h:1654
unsigned char zb_uint8_t
Project-local 1-byte unsigned int type.
Definition: zb_types.h:116
Definition: zb_zcl_color_control.h:1035
Definition: zb_zcl_common.h:253

Send Step 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
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_STOP_MOVE_STEP_REQ (   buffer,
  addr,
  dst_addr_mode,
  dst_ep,
  ep,
  prfl_id,
  def_resp,
  cb 
)
Value:
{ \
zb_uint8_t* ptr = ZB_ZCL_START_PACKET_REQ(buffer) \
ZB_ZCL_CONSTRUCT_SPECIFIC_COMMAND_REQ_FRAME_CONTROL(ptr, (def_resp)) \
ZB_ZCL_CONSTRUCT_COMMAND_HEADER_REQ(ptr, ZB_ZCL_GET_SEQ_NUM(), ZB_ZCL_CMD_COLOR_CONTROL_STOP_MOVE_STEP); \
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:1250
#define ZB_ZCL_FINISH_PACKET(zbbuf, ptr)
Definition: zb_zcl_common.h:1654
unsigned char zb_uint8_t
Project-local 1-byte unsigned int type.
Definition: zb_types.h:116
Definition: zb_zcl_color_control.h:1057
Definition: zb_zcl_common.h:253

Stop move step command, see ZCL spec 5.2.2.3.19.

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 (   attr_list,
  current_X,
  current_Y 
)
Value:
ZB_ZCL_START_DECLARE_ATTRIB_LIST(attr_list) \
ZB_ZCL_SET_ATTR_DESC(ZB_ZCL_ATTR_COLOR_CONTROL_CURRENT_X_ID, (current_X)) \
ZB_ZCL_SET_ATTR_DESC(ZB_ZCL_ATTR_COLOR_CONTROL_CURRENT_Y_ID, (current_Y)) \
ZB_ZCL_FINISH_DECLARE_ATTRIB_LIST

Declare attribute list for Color Control cluster (mandatory attribute set)

Parameters
attr_list- attribute list name
current_X- pointer to variable to store current_X attribute value
current_Y- pointer to variable to store current_Y attribute value
#define ZB_ZCL_DECLARE_COLOR_CONTROL_ATTRIB_LIST_EXT (   attr_list,
  current_hue,
  current_saturation,
  remaining_time,
  current_X,
  current_Y,
  color_temperature,
  color_mode,
  options,
  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,
  couple_color_temp_to_level_min,
  start_up_color_temp 
)

Declare attribute list for Color Control cluster (extended attribute set)

Parameters
attr_list- attribute 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
options- pointer to variable to store options 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
couple_color_temp_to_level_min- pointer to variable to store Couple Color Temp To Level Min Mireds attribute value
start_up_color_temp- pointer to variable to store Start Up Color Temperature Mireds attribute value

Typedef Documentation

Structure representsation of Color Loop Set command payload.

See also
ZCL spec, subclause 5.2.2.3.18

Structure representsation of Enhanced Move Hue command payload.

See also
ZCL spec, subclause 5.2.2.3.15

Structure representsation of Enhanced Move To Hue command payload.

See also
ZCL spec, subclause 5.2.2.3.14

Structure representsation of Move To Hue and Saturation command payload.

See also
ZCL spec, subclause 5.2.2.3.17

Structure representsation of Enhanced Step Hue command payload.

See also
ZCL spec, subclause 5.2.2.3.16

Structure representsation of Move Color command payload.

See also
ZCL spec, subclause 5.2.2.3.10

Structure representsation of Move color temperature command payload.

See also
ZCL spec, subclause 5.2.2.3.20

Structure representsation of Move Hue command payload.

See also
ZCL spec, subclause 5.2.2.3.3

Structure representsation of Move Saturation command payload.

See also
ZCL spec, subclause 5.2.2.3.6

Structure representsation of Move To Color command payload.

See also
ZCL spec, subclause 5.2.2.3.9

Structure representsation of Move To Color Temperature command payload.

See also
ZCL spec, subclause 5.2.2.3.12

Structure representsation of Move To Hue command payload.

See also
ZCL spec, subclause 5.2.2.3.2

Structure representsation of Move To Hue and Saturation command payload.

See also
ZCL spec, subclause 5.2.2.3.8

Structure representsation of Move To Saturation command payload.

See also
ZCL spec, subclause 5.2.2.3.5

Structured representsation of Level Control command payload (optional part)

See also
ZCL spec, subclause 3.10.2.3.1.1

Structure representsation of Step Color command payload.

See also
ZCL spec, subclause 5.2.2.3.11

Structure representsation of Step color temperature command command payload.

See also
ZCL spec, subclause 5.2.2.3.21

Structure representsation of Step Hue command payload.

See also
ZCL spec, subclause 5.2.2.3.4

Structure representsation of Step Saturation command payload.

See also
ZCL spec, subclause 5.2.2.3.7

Enumeration Type Documentation

Color Control cluster information attribute identifiers.

See also
ZCL spec, subclause 5.2.2.2.3 Color control attribute list
Enumerator
ZB_ZCL_ATTR_COLOR_CONTROL_DRIFT_COMPENSATION_ID 

The DriftCompensation attribute indicates what mechanism, if any, is in use for compensation for color/intensity drift over time.

ZB_ZCL_ATTR_COLOR_CONTROL_COMPENSATION_TEXT_ID 

The CompensationText attribute holds a textual indication of what mechanism, if any, is in use to compensate for color/intensity drift over time.

ZB_ZCL_ATTR_COLOR_CONTROL_OPTIONS_ID 

The Options attribute is a bitmap that determines the default behavior of some cluster commands.

ZB_ZCL_ATTR_COLOR_CONTROL_ENHANCED_CURRENT_HUE_ID 

The EnhancedCurrentHue attribute represents non-equidistant steps along the CIE 1931 color triangle, and it provides 16-bits precision.

ZB_ZCL_ATTR_COLOR_CONTROL_ENHANCED_COLOR_MODE_ID 

The EnhancedColorMode attribute specifies which attributes are currently determining the color of the device.

ZB_ZCL_ATTR_COLOR_CONTROL_COLOR_LOOP_ACTIVE_ID 

The ColorLoopActive attribute specifies the current active status of the color loop.

ZB_ZCL_ATTR_COLOR_CONTROL_COLOR_LOOP_DIRECTION_ID 

The ColorLoopDirection attribute specifies the current direction of the color loop.

ZB_ZCL_ATTR_COLOR_CONTROL_COLOR_LOOP_TIME_ID 

The ColorLoopTime attribute specifies the number of seconds it SHALL take to perform a full color loop, i.e., to cycle all values of the EnhancedCurrentHue attribute (between 0x0000 and 0xffff).

ZB_ZCL_ATTR_COLOR_CONTROL_COLOR_LOOP_START_ENHANCED_HUE_ID 

The ColorLoopStartEnhancedHue attribute specifies the value of the EnhancedCurrentHue attribute from which the color loop SHALL be started.

ZB_ZCL_ATTR_COLOR_CONTROL_COLOR_LOOP_STORED_ENHANCED_HUE_ID 

The ColorLoopStoredEnhancedHue attribute specifies the value of the EnhancedCurrentHue attribute before the color loop was started.

ZB_ZCL_ATTR_COLOR_CONTROL_COLOR_CAPABILITIES_ID 

The ColorCapabilities attribute specifies the color capabilities of the device supporting the color control cluster.

ZB_ZCL_ATTR_COLOR_CONTROL_COLOR_TEMP_PHYSICAL_MIN_MIREDS_ID 

The ColorTempPhysicalMinMireds attribute indicates the minimum mired value supported by the hardware.

ZB_ZCL_ATTR_COLOR_CONTROL_COLOR_TEMP_PHYSICAL_MAX_MIREDS_ID 

The ColorTempPhysicalMaxMireds attribute indicates the maximum mired value supported by the hardware.

ZB_ZCL_ATTR_COLOR_CONTROL_COUPLE_COLOR_TEMP_TO_LEVEL_MIN_MIREDS_ID 

The CoupleColorTempToLevelMinMireds attribute specifies a lower bound on the value of the ColorTemperatureMireds attribute for the purposes of coupling the ColorTemperatureMireds attribute to the CurrentLevel attribute when the CoupleColorTempToLevel bit of the Options attribute of the Level Control cluster is equal to 1.

ZB_ZCL_ATTR_COLOR_CONTROL_START_UP_COLOR_TEMPERATURE_MIREDS_ID 

The StartUpColorTemperatureMireds attribute SHALL define the desired startup color temperature value a lamp SHALL use when it is supplied with power and this value SHALL be reflected in the ColorTemperatureMireds attribute.

ZB_ZCL_ATTR_COLOR_CONTROL_WHITE_POINT_X_ID 

The WhitePointX attribute contains the normalized chromaticity value x, as defined in the CIE xyY Color Space, of the current white point of the device.

ZB_ZCL_ATTR_COLOR_CONTROL_WHITE_POINT_Y_ID 

The WhitePointY attribute contains the normalized chromaticity value y, as defined in the CIE xyY Color Space, of the current white point of the device.

ZB_ZCL_ATTR_COLOR_CONTROL_COLOR_POINT_RX_ID 

The ColorPointRX attribute contains the normalized chromaticity value x, as defined in the CIE xyY Color Space, of the red color point of the device.

ZB_ZCL_ATTR_COLOR_CONTROL_COLOR_POINT_RY_ID 

The ColorPointRY attribute contains the normalized chromaticity value y, as defined in the CIE xyY Color Space, of the red color point of the device.

ZB_ZCL_ATTR_COLOR_CONTROL_COLOR_POINT_R_INTENSITY_ID 

The ColorPointRIntensity attribute contains a representation of the relative intensity of the red color point as defined in the Dimming Light Curve in the Ballast Configuration cluster.

ZB_ZCL_ATTR_COLOR_CONTROL_COLOR_POINT_GX_ID 

The ColorPointGX attribute contains the normalized chromaticity value x, as defined in the CIE xyY Color Space, of the green color point of the device.

ZB_ZCL_ATTR_COLOR_CONTROL_COLOR_POINT_GY_ID 

The ColorPointGY attribute contains the normalized chromaticity value y, as defined in the CIE xyY Color Space, of the green color point of the device.

ZB_ZCL_ATTR_COLOR_CONTROL_COLOR_POINT_G_INTENSITY_ID 

The ColorPointGIntensity attribute contains a representation of the relative intensity of the green color point as defined in the Dimming Light Curve in the Ballast Configuration cluster.

ZB_ZCL_ATTR_COLOR_CONTROL_COLOR_POINT_BX_ID 

The ColorPointBX attribute contains the normalized chromaticity value x, as defined in the CIE xyY Color Space, of the blue color point of the device.

ZB_ZCL_ATTR_COLOR_CONTROL_COLOR_POINT_BY_ID 

The ColorPointBY attribute contains the normalized chromaticity value y, as defined in the CIE xyY Color Space, of the blue color point of the device.

ZB_ZCL_ATTR_COLOR_CONTROL_COLOR_POINT_B_INTENSITY_ID 

The ColorPointBIntensity attribute contains a representation of the relative intensity of the blue color point as defined in the Dimming Light Curve in the Ballast Configuration cluster.

Color control cluster command identifiers.

See also
ZCL spec, subclause 5.2.2.3
Enumerator
ZB_ZCL_CMD_COLOR_CONTROL_MOVE_TO_HUE 

Move To Hue command

ZB_ZCL_CMD_COLOR_CONTROL_MOVE_HUE 

Move Hue command

ZB_ZCL_CMD_COLOR_CONTROL_STEP_HUE 

Step Hue command

ZB_ZCL_CMD_COLOR_CONTROL_MOVE_TO_SATURATION 

Move To Saturation command

ZB_ZCL_CMD_COLOR_CONTROL_MOVE_SATURATION 

Move Saturation command

ZB_ZCL_CMD_COLOR_CONTROL_STEP_SATURATION 

Step Saturation command

ZB_ZCL_CMD_COLOR_CONTROL_MOVE_TO_HUE_SATURATION 

Move To Hue and Saturation command

ZB_ZCL_CMD_COLOR_CONTROL_MOVE_TO_COLOR 

Move To Color command

ZB_ZCL_CMD_COLOR_CONTROL_MOVE_COLOR 

Move Color command

ZB_ZCL_CMD_COLOR_CONTROL_STEP_COLOR 

Step Color command

ZB_ZCL_CMD_COLOR_CONTROL_MOVE_TO_COLOR_TEMPERATURE 

Move to color temperature command

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
ZCL spec, subclause 5.2.2.2.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 ZCL specs 5.2.2.3.18.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 ZCL specs 5.2.2.3.18.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 ZCL specs 5.2.2.3.18.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

Color Mode attribute enumeration.

See also
ZCL spec, subclause 5.2.2.2.1.9
Enumerator
ZB_ZCL_COLOR_CONTROL_COLOR_MODE_HUE_SATURATION 

CurrentHue and CurrentSaturation

ZB_ZCL_COLOR_CONTROL_COLOR_MODE_CURRENT_X_Y 

CurrentX and CurrentY

ZB_ZCL_COLOR_CONTROL_COLOR_MODE_TEMPERATURE 

ColorTemperature

Enhanced Color Mode attribute enumeration.

See also
ZCL spec, subclause 5.2.2.2.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

Color control Hue value.

Enumerator
ZB_ZCL_COLOR_CONTROL_HUE_RED 

Current Hue attribute red value.

ZB_ZCL_COLOR_CONTROL_HUE_GREEN 

Current Hue attribute green value.

ZB_ZCL_COLOR_CONTROL_HUE_BLUE 

Current Hue attribute blue value.

Direction of Move Hue command. See specs 5.2.2.3.3.2, 5.2.2.3.6.2.

Enumerator
ZB_ZCL_CMD_COLOR_CONTROL_MOVE_STOP 

Stop

ZB_ZCL_CMD_COLOR_CONTROL_MOVE_UP 

Up

ZB_ZCL_CMD_COLOR_CONTROL_MOVE_DOWN 

Down

Direction of Move to Hue command. See spec 5.2.2.3.2.3.

Enumerator
ZB_ZCL_CMD_COLOR_CONTROL_MOVE_TO_HUE_SHORTEST 

Shortest distance

ZB_ZCL_CMD_COLOR_CONTROL_MOVE_TO_HUE_LONGEST 

Longest distance

ZB_ZCL_CMD_COLOR_CONTROL_MOVE_TO_HUE_UP 

Up

ZB_ZCL_CMD_COLOR_CONTROL_MOVE_TO_HUE_DOWN 

Down

Options attribute flags.

See also
ZCL spec, subclause 5.2.2.1.1.10
Enumerator
ZB_ZCL_COLOR_CONTROL_OPTIONS_EXECUTE_IF_OFF 

Execute command if the On/Off cluster, OnOff attribute is 0x00 (FALSE)

Direction of Step command. See specs 5.2.2.3.4.2, 5.2.2.3.7.2.

Enumerator
ZB_ZCL_CMD_COLOR_CONTROL_STEP_UP 

Up

ZB_ZCL_CMD_COLOR_CONTROL_STEP_DOWN 

Down


Documentation feedback | Developer Zone | Subscribe | Updated