Trident IoT Zigbee SDK
Loading...
Searching...
No Matches
tr_identify_server.h
Go to the documentation of this file.
1
10#ifndef TR_IDENTIFY_SERVER_H
11#define TR_IDENTIFY_SERVER_H
12
13#include "tr_af.h"
14
18#if defined(TR_IDENTIFY_SERVER_PLUGIN_PRINT_ENABLE) && (TR_IDENTIFY_SERVER_PLUGIN_PRINT_ENABLE == 1)
19#define tr_identify_server_printf(...) tr_zcl_printf(__VA_ARGS__)
20#define tr_identify_server_println(...) tr_zcl_println(__VA_ARGS__)
21#else
22#define tr_identify_server_printf(...)
23#define tr_identify_server_println(...)
24#endif
25
31
35
39zb_bool_t tr_identify_server_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
56zb_bool_t tr_identify_server_identify_cb(zb_zcl_parsed_hdr_t *cmd_info,
57 zb_uint8_t endpoint,
58 zb_uint16_t identify_time);
59
64zb_bool_t tr_identify_server_identify_query_cb(zb_zcl_parsed_hdr_t *cmd_info,
65 zb_uint8_t endpoint);
66
72zb_bool_t tr_identify_server_ez_mode_invoke_cb(zb_zcl_parsed_hdr_t *cmd_info,
73 zb_uint8_t endpoint,
74 zb_uint8_t action);
75
82zb_bool_t tr_identify_server_update_commission_state_cb(zb_zcl_parsed_hdr_t *cmd_info,
83 zb_uint8_t endpoint,
84 zb_uint8_t action,
85 zb_uint8_t commission_state_mask);
86
93zb_bool_t tr_identify_server_trigger_effect_cb(zb_zcl_parsed_hdr_t *cmd_info,
94 zb_uint8_t endpoint,
95 zb_uint8_t effect_id,
96 zb_uint8_t effect_variant);
97
102 zb_uint16_t timeout_sec);
103
107
117
119
125
131 zb_uint16_t timeout_sec);
132
137
143
145
151
152#endif // TR_IDENTIFY_SERVER_H
zb_uint8_t effect_variant
Definition tr_zcl_cmd_structs.h:37
zb_uint8_t effect_id
Definition tr_zcl_cmd_structs.h:36
zb_uint8_t commission_state_mask
Definition tr_zcl_cmd_structs.h:30
zb_uint8_t action
Definition tr_zcl_cmd_structs.h:23
zb_uint16_t identify_time
Definition tr_zcl_cmd_structs.h:17
tr_status_t
Definition tr_zcl_type.h:2292
tr_status_t tr_identify_server_start_identifying(zb_uint8_t endpoint, zb_uint16_t timeout_sec)
API used to start identify on the local device.
tr_status_t tr_identify_server_stop_identifying(zb_uint8_t endpoint)
API used to stop identify on the local device.
zb_uint16_t tr_identify_server_is_identifying(zb_uint8_t endpoint)
API used to check if local device is identifing.
zb_bool_t tr_identify_server_identify_cb(zb_zcl_parsed_hdr_t *cmd_info, zb_uint8_t endpoint, zb_uint16_t identify_time)
Callback that user can declare to handle identify cluster identify command.
void tr_identify_server_init_cb(zb_uint8_t endpoint)
Callback fires when the Identify server cluster plugin is initialized.
void tr_identify_server_identify_stop_cb(zb_uint8_t endpoint)
Callback fires when identify behavior stops.
zb_bool_t tr_identify_server_ez_mode_invoke_cb(zb_zcl_parsed_hdr_t *cmd_info, zb_uint8_t endpoint, zb_uint8_t action)
Callback that user can declare to handle identify clusterez mode invoke command.
void tr_identify_server_message_sent_cb(zb_bufid_t param)
Callback fires when identify plugin response has a message sent status This status is based on the AP...
zb_bool_t tr_identify_server_trigger_effect_cb(zb_zcl_parsed_hdr_t *cmd_info, zb_uint8_t endpoint, zb_uint8_t effect_id, zb_uint8_t effect_variant)
Callback that user can declare to handle identify cluster trigger effect command.
void tr_identify_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 Identify server attribute is about to be written.
zb_bool_t tr_identify_server_update_commission_state_cb(zb_zcl_parsed_hdr_t *cmd_info, zb_uint8_t endpoint, zb_uint8_t action, zb_uint8_t commission_state_mask)
Callback that user can declare to handle identify cluster update commission state command.
zb_bool_t tr_identify_server_identify_query_cb(zb_zcl_parsed_hdr_t *cmd_info, zb_uint8_t endpoint)
Callback that user can declare to handle identify cluster identify query command.
zb_bool_t tr_identify_server_command_received_cb(zb_zcl_parsed_hdr_t *cmd_info)
Callback that user can declare to handle any Identify server commands.
void tr_identify_server_identify_start_cb(zb_uint8_t endpoint, zb_uint16_t timeout_sec)
Callback fires when identify behavior is started.
Trident application framework include.
tr_conn_state_e
Definition tr_af.h:24
void tr_identify_server_connection_state_cb(tr_conn_state_e conn_state)
void tr_identify_server_init(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