Trident IoT Zigbee SDK
Loading...
Searching...
No Matches
tr_color_control_server.h File Reference

ZCL Color Control cluster server implementation. More...

#include "tr_af.h"
Include dependency graph for tr_color_control_server.h:

Go to the source code of this file.

Macros

#define tr_color_control_server_printf(...)
#define tr_color_control_server_println(...)
#define TR_COLOR_CONTROL_SERVER_MIN_KELVIN   2000
#define TR_COLOR_CONTROL_SERVER_MAX_KELVIN   6500
#define TR_COLOR_CONTROL_SERVER_MIN_MIREDS   153
#define TR_COLOR_CONTROL_SERVER_MAX_MIREDS   500
#define TR_COLOR_CONTROL_SERVER_TIMER_TO_DETERMINE_RATE   0xFFFF
#define TR_COLOR_CONTROL_SERVER_TIMER_TO_DETERMINE_DIR   0xFF

Functions

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_command_received_cb (zb_zcl_parsed_hdr_t *cmd_info)
 Callback that user can declare to handle any Color Control server commands.
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_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.
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_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_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.
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_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.
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.
void tr_color_control_server_init (void)
void tr_color_control_server_attributes_ready (void)

Detailed Description

ZCL Color Control cluster server implementation.


SPDX-License-Identifier: LicenseRef-TridentMSLA SPDX-FileCopyrightText: 2025 Trident IoT, LLC https://www.tridentiot.com


Macro Definition Documentation

◆ TR_COLOR_CONTROL_SERVER_MAX_KELVIN

#define TR_COLOR_CONTROL_SERVER_MAX_KELVIN   6500

◆ TR_COLOR_CONTROL_SERVER_MAX_MIREDS

#define TR_COLOR_CONTROL_SERVER_MAX_MIREDS   500

◆ TR_COLOR_CONTROL_SERVER_MIN_KELVIN

#define TR_COLOR_CONTROL_SERVER_MIN_KELVIN   2000

◆ TR_COLOR_CONTROL_SERVER_MIN_MIREDS

#define TR_COLOR_CONTROL_SERVER_MIN_MIREDS   153

◆ tr_color_control_server_printf

#define tr_color_control_server_printf ( ...)

debug prints


◆ tr_color_control_server_println

#define tr_color_control_server_println ( ...)

◆ TR_COLOR_CONTROL_SERVER_TIMER_TO_DETERMINE_DIR

#define TR_COLOR_CONTROL_SERVER_TIMER_TO_DETERMINE_DIR   0xFF

◆ TR_COLOR_CONTROL_SERVER_TIMER_TO_DETERMINE_RATE

#define TR_COLOR_CONTROL_SERVER_TIMER_TO_DETERMINE_RATE   0xFFFF

Function Documentation

◆ tr_color_control_server_attributes_ready()

void tr_color_control_server_attributes_ready ( void )

◆ tr_color_control_server_init()

void tr_color_control_server_init ( void )

function prototypes consumed by framework