Trident IoT Zigbee SDK
Loading...
Searching...
No Matches
tr_on_off_switch_configuration_server.h
Go to the documentation of this file.
1
10#ifndef TR_ON_OFF_SWITCH_CONFIGURATION_SERVER_H
11#define TR_ON_OFF_SWITCH_CONFIGURATION_SERVER_H
12
13#include "tr_af.h"
14
18#if defined(TR_ON_OFF_SWITCH_CONFIGURATION_SERVER_PLUGIN_PRINT_ENABLE) && (TR_ON_OFF_SWITCH_CONFIGURATION_SERVER_PLUGIN_PRINT_ENABLE == 1)
19#define tr_on_off_switch_configuration_server_printf(...) tr_zcl_printf(__VA_ARGS__)
20#define tr_on_off_switch_configuration_server_println(...) tr_zcl_println(__VA_ARGS__)
21#else
22#define tr_on_off_switch_configuration_server_printf(...)
23#define tr_on_off_switch_configuration_server_println(...)
24#endif
25
31
35
39zb_bool_t tr_on_off_switch_configuration_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
52
57
58#endif // TR_ON_OFF_SWITCH_CONFIGURATION_SERVER_H
void tr_on_off_switch_configuration_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 On/off Switch Configuration server attribute is about to be written.
void tr_on_off_switch_configuration_server_init_cb(zb_uint8_t endpoint)
Callback fires when the On/off Switch Configuration server cluster plugin is initialized.
zb_bool_t tr_on_off_switch_configuration_server_command_received_cb(zb_zcl_parsed_hdr_t *cmd_info)
Callback that user can declare to handle any On/off Switch Configuration server commands.
Trident application framework include.
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_on_off_switch_configuration_server_init(void)