Functions | |
| void | tr_door_lock_server_init_cb (zb_uint8_t endpoint) |
| Callback fires when the Door Lock server cluster plugin is initialized. | |
| zb_bool_t | tr_door_lock_server_command_received_cb (zb_zcl_parsed_hdr_t *cmd_info) |
| Callback that user can declare to handle any Door Lock server commands. | |
| void | tr_door_lock_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 Door Lock server attribute is about to be written. | |
| zb_bool_t | tr_door_lock_server_lock_door_cb (zb_zcl_parsed_hdr_t *cmd_info, zb_uint8_t endpoint, tr_door_lock_event_source_t event_source, zb_uint8_t *pin) |
| Callback that user can declare to handle door lock cluster lock door command. | |
| zb_bool_t | tr_door_lock_server_unlock_door_cb (zb_zcl_parsed_hdr_t *cmd_info, zb_uint8_t endpoint, tr_door_lock_event_source_t event_source, zb_uint8_t *pin) |
| Callback that user can declare to handle door lock cluster unlock door command. | |
| zb_bool_t | tr_door_lock_server_set_pin_cb (zb_zcl_parsed_hdr_t *cmd_info, zb_uint8_t endpoint, zb_uint16_t user_id, tr_door_lock_user_status_t user_status, tr_door_lock_user_type_t user_type, zb_uint8_t *pin) |
| Callback that user can declare to handle door lock cluster set pin command. | |
| zb_bool_t | tr_door_lock_server_get_pin_cb (zb_zcl_parsed_hdr_t *cmd_info, zb_uint8_t endpoint, zb_uint16_t user_id) |
| Callback that user can declare to handle door lock cluster get pin command. | |
| zb_bool_t | tr_door_lock_server_clear_pin_cb (zb_zcl_parsed_hdr_t *cmd_info, zb_uint8_t endpoint, zb_uint16_t user_id) |
| Callback that user can declare to handle door lock cluster clear pin command. | |
| zb_bool_t | tr_door_lock_server_clear_all_pins_cb (zb_zcl_parsed_hdr_t *cmd_info, zb_uint8_t endpoint) |
| Callback that user can declare to handle door lock cluster clear all pins command. | |
| zb_bool_t | tr_door_lock_server_set_user_status_cb (zb_zcl_parsed_hdr_t *cmd_info, zb_uint8_t endpoint, zb_uint16_t user_id, tr_door_lock_user_status_t user_status) |
| Callback that user can declare to handle door lock cluster set user status command. | |
| zb_bool_t | tr_door_lock_server_get_user_status_cb (zb_zcl_parsed_hdr_t *cmd_info, zb_uint8_t endpoint, zb_uint16_t user_id) |
| Callback that user can declare to handle door lock cluster get user status command. | |
| zb_bool_t | tr_door_lock_server_set_user_type_cb (zb_zcl_parsed_hdr_t *cmd_info, zb_uint8_t endpoint, zb_uint16_t user_id, tr_door_lock_user_type_t user_type) |
| Callback that user can declare to handle door lock cluster set user type command. | |
| zb_bool_t | tr_door_lock_server_get_user_type_cb (zb_zcl_parsed_hdr_t *cmd_info, zb_uint8_t endpoint, zb_uint16_t user_id) |
| Callback that user can declare to handle door lock cluster get user type command. | |
| void | tr_door_lock_server_resp_sent_cb (zb_bufid_t param) |
| Callback fires when door lock server response completes. | |
| zb_bool_t tr_door_lock_server_clear_all_pins_cb | ( | zb_zcl_parsed_hdr_t * | cmd_info, |
| zb_uint8_t | endpoint ) |
Callback that user can declare to handle door lock cluster clear all pins command.
| cmd_info | struct that contains zcl header info |
| endpoint | destination endpoint of the lock command |
| zb_bool_t tr_door_lock_server_clear_pin_cb | ( | zb_zcl_parsed_hdr_t * | cmd_info, |
| zb_uint8_t | endpoint, | ||
| zb_uint16_t | user_id ) |
Callback that user can declare to handle door lock cluster clear pin command.
| cmd_info | struct that contains zcl header info |
| endpoint | destination endpoint of the lock command |
| user_id | user id for pin to clear |
| zb_bool_t tr_door_lock_server_command_received_cb | ( | zb_zcl_parsed_hdr_t * | cmd_info | ) |
Callback that user can declare to handle any Door Lock server commands.
| cmd_info | struct that contains zcl header info |
| zb_bool_t tr_door_lock_server_get_pin_cb | ( | zb_zcl_parsed_hdr_t * | cmd_info, |
| zb_uint8_t | endpoint, | ||
| zb_uint16_t | user_id ) |
Callback that user can declare to handle door lock cluster get pin command.
| cmd_info | struct that contains zcl header info |
| endpoint | destination endpoint of the lock command |
| user_id | user id for pin to return |
| zb_bool_t tr_door_lock_server_get_user_status_cb | ( | zb_zcl_parsed_hdr_t * | cmd_info, |
| zb_uint8_t | endpoint, | ||
| zb_uint16_t | user_id ) |
Callback that user can declare to handle door lock cluster get user status command.
| cmd_info | struct that contains zcl header info |
| endpoint | destination endpoint of the lock command |
| user_id | user id for status to get |
| zb_bool_t tr_door_lock_server_get_user_type_cb | ( | zb_zcl_parsed_hdr_t * | cmd_info, |
| zb_uint8_t | endpoint, | ||
| zb_uint16_t | user_id ) |
Callback that user can declare to handle door lock cluster get user type command.
| cmd_info | struct that contains zcl header info |
| endpoint | destination endpoint of the lock command |
| user_id | user id for type to get |
| void tr_door_lock_server_init_cb | ( | zb_uint8_t | endpoint | ) |
Callback fires when the Door Lock server cluster plugin is initialized.
| endpoint | device endpoint being initialized |
| zb_bool_t tr_door_lock_server_lock_door_cb | ( | zb_zcl_parsed_hdr_t * | cmd_info, |
| zb_uint8_t | endpoint, | ||
| tr_door_lock_event_source_t | event_source, | ||
| zb_uint8_t * | pin ) |
Callback that user can declare to handle door lock cluster lock door command.
| cmd_info | struct that contains zcl header info |
| endpoint | destination endpoint of the lock operation |
| event_source | source of the lock event operation |
| pin | pointer to ZCL octet string (length prefixed) pin code in ASCII |
| void tr_door_lock_server_resp_sent_cb | ( | zb_bufid_t | param | ) |
Callback fires when door lock server response completes.
This callback is triggered when the door lock server response either receives an APS Ack or times out. To check the status:
| param | buffer with information on the response sent. This buffer must be freed using zb_buf_free(). |
| zb_bool_t tr_door_lock_server_set_pin_cb | ( | zb_zcl_parsed_hdr_t * | cmd_info, |
| zb_uint8_t | endpoint, | ||
| zb_uint16_t | user_id, | ||
| tr_door_lock_user_status_t | user_status, | ||
| tr_door_lock_user_type_t | user_type, | ||
| zb_uint8_t * | pin ) |
Callback that user can declare to handle door lock cluster set pin command.
| cmd_info | struct that contains zcl header info |
| endpoint | destination endpoint of the lock command |
| user_id | id of the user for this pin code |
| user_status | user status for this pin code |
| user_type | user type for this pin code |
| pin | pointer to ZCL octet string (length prefixed) pin code in ASCII |
| zb_bool_t tr_door_lock_server_set_user_status_cb | ( | zb_zcl_parsed_hdr_t * | cmd_info, |
| zb_uint8_t | endpoint, | ||
| zb_uint16_t | user_id, | ||
| tr_door_lock_user_status_t | user_status ) |
Callback that user can declare to handle door lock cluster set user status command.
| cmd_info | struct that contains zcl header info |
| endpoint | destination endpoint of the lock command |
| user_id | user id for status to set |
| user_status | user status to set |
| zb_bool_t tr_door_lock_server_set_user_type_cb | ( | zb_zcl_parsed_hdr_t * | cmd_info, |
| zb_uint8_t | endpoint, | ||
| zb_uint16_t | user_id, | ||
| tr_door_lock_user_type_t | user_type ) |
Callback that user can declare to handle door lock cluster set user type command.
| cmd_info | struct that contains zcl header info |
| endpoint | destination endpoint of the lock command |
| user_id | user id for type to set |
| user_type | user type to set |
| zb_bool_t tr_door_lock_server_unlock_door_cb | ( | zb_zcl_parsed_hdr_t * | cmd_info, |
| zb_uint8_t | endpoint, | ||
| tr_door_lock_event_source_t | event_source, | ||
| zb_uint8_t * | pin ) |
Callback that user can declare to handle door lock cluster unlock door command.
| cmd_info | struct that contains zcl header info |
| endpoint | destination endpoint of the unlock operation |
| event_source | source of the unlock event operation |
| pin | pointer to ZCL octet string (length prefixed) pin code in ASCII |
| void tr_door_lock_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 Door Lock server attribute is about to be written.
| endpoint | device endpoint |
| attr_id | ZCL attribute id |
| new_value | pointer to the new attribute value |
| manuf_code | manufacturer specific code |