Trident IoT Zigbee SDK
Loading...
Searching...
No Matches
tr_scenes_client.h
Go to the documentation of this file.
1
10#ifndef TR_SCENES_CLIENT_H
11#define TR_SCENES_CLIENT_H
12
13#include "tr_af.h"
14
18#if defined(TR_SCENES_CLIENT_PLUGIN_PRINT_ENABLE) && (TR_SCENES_CLIENT_PLUGIN_PRINT_ENABLE == 1)
19#define tr_scenes_client_printf(...) tr_zcl_printf(__VA_ARGS__)
20#define tr_scenes_client_println(...) tr_zcl_println(__VA_ARGS__)
21#else
22#define tr_scenes_client_printf(...)
23#define tr_scenes_client_println(...)
24#endif
25
31
35
39zb_bool_t tr_scenes_client_command_received_cb(zb_zcl_parsed_hdr_t *cmd_info);
40
47 zb_uint16_t attr_id,
48 zb_uint8_t *new_value,
49 zb_uint16_t manuf_code);
50
58zb_bool_t tr_scenes_client_add_scene_response_cb(zb_zcl_parsed_hdr_t *cmd_info,
59 zb_uint8_t endpoint,
60 zb_uint8_t status,
61 zb_uint16_t group_id,
62 zb_uint8_t scene_id);
63
75zb_bool_t tr_scenes_client_view_scene_response_cb(zb_zcl_parsed_hdr_t *cmd_info,
76 zb_uint8_t endpoint,
77 zb_uint8_t status,
78 zb_uint16_t group_id,
79 zb_uint8_t scene_id,
80 zb_uint16_t transition_time,
81 zb_uint8_t *scene_name,
82 zb_uint8_t extensions_length,
83 zb_uint8_t *extensions_ptr);
84
92zb_bool_t tr_scenes_client_remove_scene_response_cb(zb_zcl_parsed_hdr_t *cmd_info,
93 zb_uint8_t endpoint,
94 zb_uint8_t status,
95 zb_uint16_t group_id,
96 zb_uint8_t scene_id);
97
104zb_bool_t tr_scenes_client_remove_all_scenes_response_cb(zb_zcl_parsed_hdr_t *cmd_info,
105 zb_uint8_t endpoint,
106 zb_uint8_t status,
107 zb_uint16_t group_id);
108
116zb_bool_t tr_scenes_client_store_scene_response_cb(zb_zcl_parsed_hdr_t *cmd_info,
117 zb_uint8_t endpoint,
118 zb_uint8_t status,
119 zb_uint16_t group_id,
120 zb_uint8_t scene_id);
121
131zb_bool_t tr_scenes_client_get_scene_membership_response_cb(zb_zcl_parsed_hdr_t *cmd_info,
132 zb_uint8_t endpoint,
133 zb_uint8_t status,
134 zb_uint8_t capacity,
135 zb_uint16_t group_id,
136 zb_uint8_t scene_count,
137 zb_uint8_t *scene_list);
138
146zb_bool_t tr_scenes_client_enhanced_add_scene_response_cb(zb_zcl_parsed_hdr_t *cmd_info,
147 zb_uint8_t endpoint,
148 zb_uint8_t status,
149 zb_uint16_t group_id,
150 zb_uint8_t scene_id);
151
163zb_bool_t tr_scenes_client_enhanced_view_scene_response_cb(zb_zcl_parsed_hdr_t *cmd_info,
164 zb_uint8_t endpoint,
165 zb_uint8_t status,
166 zb_uint16_t group_id,
167 zb_uint8_t scene_id,
168 zb_uint16_t transition_time,
169 zb_uint8_t *scene_name,
170 zb_uint8_t extensions_length,
171 zb_uint8_t *extensions_ptr);
172
180zb_bool_t tr_scenes_client_copy_scene_response_cb(zb_zcl_parsed_hdr_t *cmd_info,
181 zb_uint8_t endpoint,
182 zb_uint8_t status,
183 zb_uint16_t group_id_from,
184 zb_uint8_t scene_id_from);
185
187
192
193#endif // TR_SCENES_CLIENT_H
zb_uint8_t scene_id_from
Definition tr_zcl_cmd_structs.h:182
zb_uint16_t group_id_from
Definition tr_zcl_cmd_structs.h:181
zb_bool_t tr_scenes_client_store_scene_response_cb(zb_zcl_parsed_hdr_t *cmd_info, zb_uint8_t endpoint, zb_uint8_t status, zb_uint16_t group_id, zb_uint8_t scene_id)
Callback that user can declare to handle scenes cluster store scene response command.
zb_bool_t tr_scenes_client_enhanced_add_scene_response_cb(zb_zcl_parsed_hdr_t *cmd_info, zb_uint8_t endpoint, zb_uint8_t status, zb_uint16_t group_id, zb_uint8_t scene_id)
Callback that user can declare to handle scenes cluster enhanced add scene response command.
zb_bool_t tr_scenes_client_command_received_cb(zb_zcl_parsed_hdr_t *cmd_info)
Callback that user can declare to handle any Scenes client commands.
zb_bool_t tr_scenes_client_enhanced_view_scene_response_cb(zb_zcl_parsed_hdr_t *cmd_info, zb_uint8_t endpoint, zb_uint8_t status, zb_uint16_t group_id, zb_uint8_t scene_id, zb_uint16_t transition_time, zb_uint8_t *scene_name, zb_uint8_t extensions_length, zb_uint8_t *extensions_ptr)
Callback that user can declare to handle scenes cluster enhanced view scene response command.
zb_bool_t tr_scenes_client_copy_scene_response_cb(zb_zcl_parsed_hdr_t *cmd_info, zb_uint8_t endpoint, zb_uint8_t status, zb_uint16_t group_id_from, zb_uint8_t scene_id_from)
Callback that user can declare to handle scenes cluster copy scene response command.
zb_bool_t tr_scenes_client_remove_scene_response_cb(zb_zcl_parsed_hdr_t *cmd_info, zb_uint8_t endpoint, zb_uint8_t status, zb_uint16_t group_id, zb_uint8_t scene_id)
Callback that user can declare to handle scenes cluster remove scene response command.
void tr_scenes_client_init_cb(zb_uint8_t endpoint)
Callback fires when the Scenes client cluster plugin is initialized.
zb_bool_t tr_scenes_client_view_scene_response_cb(zb_zcl_parsed_hdr_t *cmd_info, zb_uint8_t endpoint, zb_uint8_t status, zb_uint16_t group_id, zb_uint8_t scene_id, zb_uint16_t transition_time, zb_uint8_t *scene_name, zb_uint8_t extensions_length, zb_uint8_t *extensions_ptr)
Callback that user can declare to handle scenes cluster view scene response command.
zb_bool_t tr_scenes_client_get_scene_membership_response_cb(zb_zcl_parsed_hdr_t *cmd_info, zb_uint8_t endpoint, zb_uint8_t status, zb_uint8_t capacity, zb_uint16_t group_id, zb_uint8_t scene_count, zb_uint8_t *scene_list)
Callback that user can declare to handle scenes cluster get scene membership response command.
zb_bool_t tr_scenes_client_add_scene_response_cb(zb_zcl_parsed_hdr_t *cmd_info, zb_uint8_t endpoint, zb_uint8_t status, zb_uint16_t group_id, zb_uint8_t scene_id)
Callback that user can declare to handle scenes cluster add scene response command.
void tr_scenes_client_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 Scenes client attribute is about to be written.
zb_bool_t tr_scenes_client_remove_all_scenes_response_cb(zb_zcl_parsed_hdr_t *cmd_info, zb_uint8_t endpoint, zb_uint8_t status, zb_uint16_t group_id)
Callback that user can declare to handle scenes cluster remove all scenes response command.
Trident application framework include.
tr_door_lock_user_status_t status
Definition tr_door_lock_server.h:26
zb_uint16_t group_id
Definition tr_groups_server.h:25
zb_uint8_t capacity
Definition tr_groups_server.h:31
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
void tr_scenes_client_init(void)
zb_uint8_t scene_name[TR_SCENES_COMMON_SCENE_NAME_MAX_LEN]
Definition tr_scenes_common.h:50
zb_uint8_t scene_count
Definition tr_scenes_common.h:85
zb_uint8_t scene_id
Definition tr_scenes_common.h:40
zb_uint16_t transition_time
Definition tr_scenes_common.h:49
zb_uint8_t scene_list[ZB_ZCL_MAX_SCENE_TABLE_RECORDS]
Definition tr_scenes_common.h:86