Zigbee Protocol Controller 1.6.0
zigpc_datastore::util Namespace Reference

Functions

attribute_store_node_t get_device_parent (void)
 Retrieve the attribute store node ID of the device parent, the network entity. More...
 
attribute_store_node_t get_endpoint_parent (zigbee_eui64_uint_t eui64)
 Retrieve the attribute store node ID of the endpoint parent (the device entity) More...
 
attribute_store_node_t get_cluster_parent (zigbee_eui64_uint_t eui64, zigbee_endpoint_id_t endpoint_id)
 Retrieve the attribute store node ID of the cluster parent (the endpoint entity) More...
 
void log_attributes_under_cluster (attribute_store_node_t cluster_parent, ClusterAccessor &cluster, zcl_cluster_side_t cluster_side, zcl_cluster_id_t cluster_id)
 Helper to log attributes under a cluster. More...
 
void log_clusters_under_ep (attribute_store_node_t ep_parent, EndpointAccessor &endpoint, zigbee_endpoint_id_t endpoint_id, zcl_cluster_side_t cluster_side)
 Helper to log clusters under an enedpoint. More...
 
void log_endpoints_under_dev (attribute_store_node_t dev_parent, DeviceAccessor &device, zigbee_eui64_uint_t device_id)
 Helper to log clusters under an enedpoint. More...
 

Function Documentation

◆ get_cluster_parent()

attribute_store_node_t zigpc_datastore::util::get_cluster_parent ( zigbee_eui64_uint_t  eui64,
zigbee_endpoint_id_t  endpoint_id 
)
inline

Retrieve the attribute store node ID of the cluster parent (the endpoint entity)

Parameters
eui64Device identifier.
endpoint_idEndpoint identifier.
Returns
attribute_store_node_t Parent endpoint attribute store node ID, or ATTRIBUTE_STORE_INVALID_NODE if not found.

◆ get_device_parent()

attribute_store_node_t zigpc_datastore::util::get_device_parent ( void  )
inline

Retrieve the attribute store node ID of the device parent, the network entity.

Returns
attribute_store_node_t Parent network attribute store node ID, or ATTRIBUTE_STORE_INVALID_NODE if not found.

◆ get_endpoint_parent()

attribute_store_node_t zigpc_datastore::util::get_endpoint_parent ( zigbee_eui64_uint_t  eui64)
inline

Retrieve the attribute store node ID of the endpoint parent (the device entity)

Parameters
eui64Device identifier.
Returns
attribute_store_node_t Parent device attribute store node ID, or ATTRIBUTE_STORE_INVALID_NODE if not found.

◆ log_attributes_under_cluster()

void zigpc_datastore::util::log_attributes_under_cluster ( attribute_store_node_t  cluster_parent,
ClusterAccessor cluster,
zcl_cluster_side_t  cluster_side,
zcl_cluster_id_t  cluster_id 
)

Helper to log attributes under a cluster.

Parameters
cluster_parentParent entity node ID (Endpoint).
clusterCluster Accessor.
cluster_sideCluster side (server/client).
cluster_idCluster Identifier.

◆ log_clusters_under_ep()

void zigpc_datastore::util::log_clusters_under_ep ( attribute_store_node_t  ep_parent,
EndpointAccessor endpoint,
zigbee_endpoint_id_t  endpoint_id,
zcl_cluster_side_t  cluster_side 
)

Helper to log clusters under an enedpoint.

Parameters
ep_parentParent entity node ID (Device).
endpointEndpoint Accessor.
endpoint_idEndpoint identifier.
cluster_sideCluster side (server/client).

◆ log_endpoints_under_dev()

void zigpc_datastore::util::log_endpoints_under_dev ( attribute_store_node_t  dev_parent,
DeviceAccessor device,
zigbee_eui64_uint_t  device_id 
)

Helper to log clusters under an enedpoint.

Parameters
dev_parentParent entity node ID (Network).
deviceDevice Accessor.
device_idDevice identifier.