Data Structures | |
| struct | zb_zcl_color_ctrl_attrs_set_color_inf_t |
| Color information set for Color cluster attributes according to ZCL Spec 5.2.2.2.1. More... | |
| struct | zb_zcl_color_ctrl_attrs_set_color_inf_ext_t |
| Color information extended set for Color cluster attributes according to ZCL Spec 5.2.2.2.1. More... | |
| struct | zb_zcl_color_ctrl_attrs_set_defined_primaries_inf_t |
| Defined primaries information attribute set for Color cluster attributes according to ZCL Spec 5.2.2.2.2. More... | |
| struct | zb_zcl_color_ctrl_attrs_set_defined_primaries_inf_ext_t |
| Defined primaries information extended attribute set for Color cluster attributes according to ZCL Spec 5.2.2.2.2. More... | |
| struct | zb_zcl_color_ctrl_attrs_set_add_prim_inf_ext_t |
| Color cluster extended attributes according to ZCL Spec 5.2.2.2.3. More... | |
| struct | zb_zcl_color_control_attrs_t |
| Color cluster attributes according to ZCL Spec 5.2.2.2. More... | |
| struct | zb_zcl_color_control_attrs_ext_t |
| Color cluster extended attributes according to ZCL Spec 5.2.2.2. More... | |
Macros | |
| #define | ZB_ZCL_COLOR_CONTROL_SEND_MOVE_TO_HUE_SATURATION_REQ_NO_APS_ACK(buffer, addr, dst_addr_mode, dst_ep, ep, prfl_id, def_resp, cb, hue, saturation, transition_time) |
| Macro equivalent to ZB_ZCL_COLOR_CONTROL_SEND_MOVE_TO_HUE_SATURATION_REQ, but command is sent without APS ACK. More... | |
| #define | ZB_ZCL_DECLARE_COLOR_CONTROL_CLIENT_ATTRIB_LIST(attr_list) |
| Declare attribute list for Color control cluster (client). More... | |
| #define | ZB_ZCL_DECLARE_COLOR_CONTROL_ATTRIB_LIST_HS(attr_list, current_hue, current_saturation, color_mode, options, number_primaries, enhanced_color_mode, color_capabilities) |
| Declare attribute list for Color Control cluster (extended with hue and saturation attributes) More... | |
Detailed Description
Copyright (c) 2018 - 2021, Nordic Semiconductor ASA
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form, except as embedded into a Nordic Semiconductor ASA integrated circuit in a product or a software update for such product, must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
- Neither the name of Nordic Semiconductor ASA nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
- This software, with or without modification, must only be used with a Nordic Semiconductor ASA integrated circuit.
- Any software provided in binary form under this license must not be reverse engineered, decompiled, modified and/or disassembled.
THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Macro Definition Documentation
◆ ZB_ZCL_COLOR_CONTROL_SEND_MOVE_TO_HUE_SATURATION_REQ_NO_APS_ACK
| #define ZB_ZCL_COLOR_CONTROL_SEND_MOVE_TO_HUE_SATURATION_REQ_NO_APS_ACK | ( | buffer, | |
| addr, | |||
| dst_addr_mode, | |||
| dst_ep, | |||
| ep, | |||
| prfl_id, | |||
| def_resp, | |||
| cb, | |||
| hue, | |||
| saturation, | |||
| transition_time | |||
| ) |
{ \ 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, (hue)); \ ZB_ZCL_PACKET_PUT_DATA8(ptr, (saturation)); \ ZB_ZCL_PACKET_PUT_DATA16_VAL(ptr, (transition_time)); \ ZB_ZCL_SEND_COMMAND_SHORT_WITHOUT_ACK((buffer), ptr, addr, dst_addr_mode, \ dst_ep, ep, prfl_id, ZB_ZCL_CLUSTER_ID_COLOR_CONTROL, cb, 0); \}#define ZB_ZCL_GET_SEQ_NUM()Return next sequence number for ZCL frame. Definition: zb_zcl_common.h:1443
Definition: zb_zcl_color_control.h:1051
#define ZB_ZCL_CLUSTER_ID_COLOR_CONTROLDefinition: zb_zcl_common.h:267
Macro equivalent to ZB_ZCL_COLOR_CONTROL_SEND_MOVE_TO_HUE_SATURATION_REQ, but command is sent without APS ACK.
◆ ZB_ZCL_DECLARE_COLOR_CONTROL_ATTRIB_LIST_HS
| #define ZB_ZCL_DECLARE_COLOR_CONTROL_ATTRIB_LIST_HS | ( | attr_list, | |
| current_hue, | |||
| current_saturation, | |||
| color_mode, | |||
| options, | |||
| number_primaries, | |||
| enhanced_color_mode, | |||
| color_capabilities | |||
| ) |
ZB_ZCL_START_DECLARE_ATTRIB_LIST_CLUSTER_REVISION(attr_list, ZB_ZCL_COLOR_CONTROL) \ ZB_ZCL_SET_ATTR_DESC(ZB_ZCL_ATTR_COLOR_CONTROL_CURRENT_HUE_ID, (current_hue)) \ ZB_ZCL_SET_ATTR_DESC(ZB_ZCL_ATTR_COLOR_CONTROL_CURRENT_SATURATION_ID, (current_saturation)) \ ZB_ZCL_SET_ATTR_DESC(ZB_ZCL_ATTR_COLOR_CONTROL_COLOR_MODE_ID, (color_mode)) \ ZB_ZCL_SET_ATTR_DESC(ZB_ZCL_ATTR_COLOR_CONTROL_OPTIONS_ID, (options)) \ ZB_ZCL_SET_ATTR_DESC(ZB_ZCL_ATTR_COLOR_CONTROL_NUMBER_OF_PRIMARIES_ID, (number_primaries)) \ ZB_ZCL_SET_ATTR_DESC(ZB_ZCL_ATTR_COLOR_CONTROL_ENHANCED_COLOR_MODE_ID, (enhanced_color_mode)) \ ZB_ZCL_SET_ATTR_DESC(ZB_ZCL_ATTR_COLOR_CONTROL_COLOR_CAPABILITIES_ID, (color_capabilities)) \ ZB_ZCL_FINISH_DECLARE_ATTRIB_LISTDefinition: zb_zcl_color_control.h:118
Definition: zb_zcl_color_control.h:99
Definition: zb_zcl_color_control.h:93
Declare attribute list for Color Control cluster (extended with hue and saturation attributes)
- 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 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 enhanced_color_mode - pointer to variable to store Enhanced Color Mode attribute value color_capabilities - pointer to variable to store Color Capabilities attribute value
◆ ZB_ZCL_DECLARE_COLOR_CONTROL_CLIENT_ATTRIB_LIST
| #define ZB_ZCL_DECLARE_COLOR_CONTROL_CLIENT_ATTRIB_LIST | ( | attr_list | ) |
ZB_ZCL_START_DECLARE_ATTRIB_LIST_CLUSTER_REVISION(attr_list, ZB_ZCL_COLOR_CONTROL) \ ZB_ZCL_FINISH_DECLARE_ATTRIB_LIST
Declare attribute list for Color control cluster (client).
- Parameters
-
attr_list - attribute list name.