Trident IoT Zigbee SDK
Loading...
Searching...
No Matches
Collaboration diagram for Alarms server Callbacks:

Functions

void tr_alarms_server_init_cb (zb_uint8_t endpoint)
 Callback fires when the Alarms server cluster plugin is initialized.
zb_bool_t tr_alarms_server_command_received_cb (zb_zcl_parsed_hdr_t *cmd_info)
 Callback that user can declare to handle any Alarms server commands.
void tr_alarms_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 Alarms server attribute is about to be written.
zb_bool_t tr_alarms_server_reset_alarm_cb (zb_zcl_parsed_hdr_t *cmd_info, zb_uint8_t endpoint, zb_uint8_t alarm_code, zb_uint16_t cluster_id)
 Callback that user can declare to handle alarms cluster reset alarm command.
zb_bool_t tr_alarms_server_reset_all_alarms_cb (zb_zcl_parsed_hdr_t *cmd_info, zb_uint8_t endpoint)
 Callback that user can declare to handle alarms cluster reset all alarms command.
zb_bool_t tr_alarms_server_get_alarm_cb (zb_zcl_parsed_hdr_t *cmd_info, zb_uint8_t endpoint)
 Callback that user can declare to handle alarms cluster get alarm command.
zb_bool_t tr_alarms_server_reset_alarm_log_cb (zb_zcl_parsed_hdr_t *cmd_info, zb_uint8_t endpoint)
 Callback that user can declare to handle alarms cluster reset alarm log command.

Detailed Description



Function Documentation

◆ tr_alarms_server_command_received_cb()

zb_bool_t tr_alarms_server_command_received_cb ( zb_zcl_parsed_hdr_t * cmd_info)

Callback that user can declare to handle any Alarms server commands.

Parameters
cmd_infostruct that contains zcl header info
Returns
ZB_FALSE to allow framework to continue processing the command

◆ tr_alarms_server_get_alarm_cb()

zb_bool_t tr_alarms_server_get_alarm_cb ( zb_zcl_parsed_hdr_t * cmd_info,
zb_uint8_t endpoint )

Callback that user can declare to handle alarms cluster get alarm command.

Parameters
cmd_infostruct that contains zcl header info
endpointdevice endpoint
Returns
ZB_FALSE to allow framework to continue processing the command

◆ tr_alarms_server_init_cb()

void tr_alarms_server_init_cb ( zb_uint8_t endpoint)

Callback fires when the Alarms server cluster plugin is initialized.

Parameters
endpointdevice endpoint being initialized

◆ tr_alarms_server_reset_alarm_cb()

zb_bool_t tr_alarms_server_reset_alarm_cb ( zb_zcl_parsed_hdr_t * cmd_info,
zb_uint8_t endpoint,
zb_uint8_t alarm_code,
zb_uint16_t cluster_id )

Callback that user can declare to handle alarms cluster reset alarm command.

Parameters
cmd_infostruct that contains zcl header info
endpointdevice endpoint
alarm_codespecific alarm code to reset
cluster_idcluster_id of the alarm to reset
Returns
ZB_FALSE to allow framework to continue processing the command

◆ tr_alarms_server_reset_alarm_log_cb()

zb_bool_t tr_alarms_server_reset_alarm_log_cb ( zb_zcl_parsed_hdr_t * cmd_info,
zb_uint8_t endpoint )

Callback that user can declare to handle alarms cluster reset alarm log command.

Parameters
cmd_infostruct that contains zcl header info
endpointdevice endpoint
Returns
ZB_FALSE to allow framework to continue processing the command

◆ tr_alarms_server_reset_all_alarms_cb()

zb_bool_t tr_alarms_server_reset_all_alarms_cb ( zb_zcl_parsed_hdr_t * cmd_info,
zb_uint8_t endpoint )

Callback that user can declare to handle alarms cluster reset all alarms command.

Parameters
cmd_infostruct that contains zcl header info
endpointdevice endpoint
Returns
ZB_FALSE to allow framework to continue processing the command

◆ tr_alarms_server_write_attr_cb()

void tr_alarms_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 Alarms server attribute is about to be written.

Parameters
endpointdevice endpoint
attr_idZCL attribute id
new_valuepointer to the new attribute value
manuf_codemanufacturer specific code