Zigbee Protocol Controller 1.6.0
|
Listen to ZCL command messages received by Protocol Controller from its PAN nodes. More...
Modules | |
ZigPC ZCL Command Parser Internal API | |
Internal API for Command Parser logic. | |
Typedefs | |
typedef void(* | zigpc_zclcmdparse_callback_t) (const zigbee_eui64_t eui64, const zigbee_endpoint_id_t endpoint, const zigpc_zclcmdparse_callback_data_t *data) |
Functions | |
sl_status_t | zigpc_zclcmdparse_setup (void) |
Initialize the command parser component. This function should Listen to gateway cluster commands received and initialize logic to parse the incoming messages. More... | |
sl_status_t | zigpc_zclcmdparse_register_callback (zcl_cluster_id_t cluster_id, zcl_command_id_t command_id, zigpc_zclcmdparse_callback_t callback) |
Register a callback when a particular command is parsed based on the ZCL Cluster ID + ZCL Command ID values passed in. More... | |
sl_status_t | zigpc_zclcmdparse_remove_callback (zcl_cluster_id_t cluster_id, zcl_command_id_t command_id, zigpc_zclcmdparse_callback_t callback) |
Remove a registered callback when a particular command is parsed based on the ZCL Cluster ID + ZCL Command ID values passed in. More... | |
Listen to ZCL command messages received by Protocol Controller from its PAN nodes.
This component allows other components to listen to ZCL cluster command specific messages sent by PAN nodes to the Protocol Controller. This is done by using ZAP to generate the supported cluster and command handlers. If a callback is registered to a particular cluster/command combination the registered callback will be called with the associated command data.
typedef void(* zigpc_zclcmdparse_callback_t) (const zigbee_eui64_t eui64, const zigbee_endpoint_id_t endpoint, const zigpc_zclcmdparse_callback_data_t *data) |
eui64 | Device identifier |
endpoint | Device endpoint identifier |
data | Command data |
sl_status_t zigpc_zclcmdparse_register_callback | ( | zcl_cluster_id_t | cluster_id, |
zcl_command_id_t | command_id, | ||
zigpc_zclcmdparse_callback_t | callback | ||
) |
Register a callback when a particular command is parsed based on the ZCL Cluster ID + ZCL Command ID values passed in.
cluster_id | ZCL cluster ID value. |
cluster_id | ZCL command ID value. |
callback | Pointer to function that receives this type of callback. |
sl_status_t zigpc_zclcmdparse_remove_callback | ( | zcl_cluster_id_t | cluster_id, |
zcl_command_id_t | command_id, | ||
zigpc_zclcmdparse_callback_t | callback | ||
) |
Remove a registered callback when a particular command is parsed based on the ZCL Cluster ID + ZCL Command ID values passed in.
cluster_id | ZCL cluster ID value. |
cluster_id | ZCL command ID value. |
callback | Pointer to function that receives this type of callback. |
sl_status_t zigpc_zclcmdparse_setup | ( | void | ) |
Initialize the command parser component. This function should Listen to gateway cluster commands received and initialize logic to parse the incoming messages.