10#ifndef TR_COLOR_CONTROL_SERVER_H
11#define TR_COLOR_CONTROL_SERVER_H
18#if defined(TR_COLOR_CONTROL_SERVER_PLUGIN_PRINT_ENABLE) && (TR_COLOR_CONTROL_SERVER_PLUGIN_PRINT_ENABLE == 1)
19#define tr_color_control_server_printf(...) tr_zcl_printf(__VA_ARGS__)
20#define tr_color_control_server_println(...) tr_zcl_println(__VA_ARGS__)
22#define tr_color_control_server_printf(...)
23#define tr_color_control_server_println(...)
26#define TR_COLOR_CONTROL_SERVER_MIN_KELVIN 2000
27#define TR_COLOR_CONTROL_SERVER_MAX_KELVIN 6500
28#define TR_COLOR_CONTROL_SERVER_MIN_MIREDS 153
29#define TR_COLOR_CONTROL_SERVER_MAX_MIREDS 500
30#define TR_COLOR_CONTROL_SERVER_TIMER_TO_DETERMINE_RATE 0xFFFF
31#define TR_COLOR_CONTROL_SERVER_TIMER_TO_DETERMINE_DIR 0xFF
55 zb_uint8_t *new_value,
zb_uint8_t step_size
Definition tr_zcl_cmd_structs.h:303
zb_int16_t step_y
Definition tr_zcl_cmd_structs.h:1650
zb_int16_t rate_x
Definition tr_zcl_cmd_structs.h:1640
zb_int16_t rate_y
Definition tr_zcl_cmd_structs.h:1641
zb_int16_t step_x
Definition tr_zcl_cmd_structs.h:1649
zb_uint8_t step_mode
Definition tr_zcl_cmd_structs.h:302
zb_uint16_t color_x
Definition tr_zcl_cmd_structs.h:1630
zb_uint8_t rate
Definition tr_zcl_cmd_structs.h:294
zb_uint16_t color_y
Definition tr_zcl_cmd_structs.h:1631
zb_uint8_t options_override
Definition tr_zcl_cmd_structs.h:1567
zb_uint16_t color_temperature_maximum
Definition tr_zcl_cmd_structs.h:1719
zb_uint16_t color_temperature
Definition tr_zcl_cmd_structs.h:1659
zb_uint8_t move_mode
Definition tr_zcl_cmd_structs.h:293
zb_uint8_t options_mask
Definition tr_zcl_cmd_structs.h:1566
zb_uint16_t color_temperature_minimum
Definition tr_zcl_cmd_structs.h:1718
zb_bool_t tr_color_control_server_move_color_cb(zb_zcl_parsed_hdr_t *cmd_info, zb_uint8_t endpoint, zb_int16_t rate_x, zb_int16_t rate_y, zb_uint8_t options_mask, zb_uint8_t options_override)
Callback that user can declare to handle color control cluster move color command.
zb_bool_t tr_color_control_server_command_received_cb(zb_zcl_parsed_hdr_t *cmd_info)
Callback that user can declare to handle any Color Control server commands.
zb_bool_t tr_color_control_server_stop_move_step_cb(zb_zcl_parsed_hdr_t *cmd_info, zb_uint8_t endpoint, zb_uint8_t options_mask, zb_uint8_t options_override)
Callback that user can declare to handle color control cluster stop move step command.
zb_bool_t tr_color_control_server_move_to_color_temperature_cb(zb_zcl_parsed_hdr_t *cmd_info, zb_uint8_t endpoint, zb_uint16_t color_temperature, zb_uint16_t transition_time, zb_uint8_t options_mask, zb_uint8_t options_override)
Callback that user can declare to handle color control cluster move to color temperature command.
void tr_color_control_server_write_attr_cb(zb_uint8_t endpoint, zb_uint16_t attr_id, zb_uint8_t *new_value, zb_uint16_t manuf_code)
Callback fires when an Color Control server attribute is about to be written.
zb_bool_t tr_color_control_server_step_color_temperature_cb(zb_zcl_parsed_hdr_t *cmd_info, zb_uint8_t endpoint, zb_uint8_t step_mode, zb_uint16_t step_size, zb_uint16_t transition_time, zb_uint16_t color_temperature_minimum, zb_uint16_t color_temperature_maximum, zb_uint8_t options_mask, zb_uint8_t options_override)
Callback that user can declare to handle color control cluster step color temperature command.
zb_bool_t tr_color_control_server_step_color_cb(zb_zcl_parsed_hdr_t *cmd_info, zb_uint8_t endpoint, zb_int16_t step_x, zb_int16_t step_y, zb_uint16_t transition_time, zb_uint8_t options_mask, zb_uint8_t options_override)
Callback that user can declare to handle color control cluster step color command.
zb_bool_t tr_color_control_server_move_to_color_cb(zb_zcl_parsed_hdr_t *cmd_info, zb_uint8_t endpoint, zb_uint16_t color_x, zb_uint16_t color_y, zb_uint16_t transition_time, zb_uint8_t options_mask, zb_uint8_t options_override)
Callback that user can declare to handle color control cluster move to color command.
void tr_color_control_server_init_cb(zb_uint8_t endpoint)
Callback fires when the Color Control server cluster plugin is initialized.
zb_bool_t tr_color_control_server_move_color_temperature_cb(zb_zcl_parsed_hdr_t *cmd_info, zb_uint8_t endpoint, zb_uint8_t move_mode, zb_uint16_t rate, zb_uint16_t color_temperature_minimum, zb_uint16_t color_temperature_maximum, zb_uint8_t options_mask, zb_uint8_t options_override)
Callback that user can declare to handle color control cluster move color temperature command.
Trident application framework include.
void tr_color_control_server_init(void)
void tr_color_control_server_attributes_ready(void)
zb_uint8_t endpoint
Definition tr_nvram_attr.h:176
zb_uint16_t manuf_code
Definition tr_nvram_attr.h:180
zb_uint16_t attr_id
Definition tr_nvram_attr.h:178
zb_uint16_t transition_time
Definition tr_scenes_common.h:49