10#ifndef TR_SCENES_CLIENT_H
11#define TR_SCENES_CLIENT_H
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__)
22#define tr_scenes_client_printf(...)
23#define tr_scenes_client_println(...)
48 zb_uint8_t *new_value,
82 zb_uint8_t extensions_length,
83 zb_uint8_t *extensions_ptr);
170 zb_uint8_t extensions_length,
171 zb_uint8_t *extensions_ptr);
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