Z-Wave Protocol Controller Reference
zpc_attribute_store_network_helper.h
Go to the documentation of this file.
1/******************************************************************************
2 * # License
3 * <b>Copyright 2021 Silicon Laboratories Inc. www.silabs.com</b>
4 ******************************************************************************
5 * The licensor of this software is Silicon Laboratories Inc. Your use of this
6 * software is governed by the terms of Silicon Labs Master Software License
7 * Agreement (MSLA) available at
8 * www.silabs.com/about-us/legal/master-software-license-agreement. This
9 * software is distributed to you in Source Code format and is governed by the
10 * sections of the MSLA applicable to Source Code.
11 *
12 *****************************************************************************/
13
14#ifndef ATTRIBUTE_STORE_NETWORK_HELPER_H
15#define ATTRIBUTE_STORE_NETWORK_HELPER_H
16
17// Includes from this component
18#include "attribute_store.h"
19
20// Includes from other components
21#include "sl_status.h"
22#include "zwave_unid.h"
23#include "zwave_controller_types.h" // for zwave_endpoint_id_t
24
25
39#ifdef __cplusplus
40extern "C" {
41#endif
42
54attribute_store_node_t
56
68attribute_store_node_t
70
85 const unid_t node_unid, zwave_endpoint_id_t endpoint_id);
86
97attribute_store_node_t
99
109attribute_store_node_t
111
127
140 const unid_t node_unid, zwave_endpoint_id_t endpoint_id);
141
149attribute_store_node_t
151
169 attribute_store_node_t node, unid_t unid, zwave_endpoint_id_t *endpoint_id);
170
187 attribute_store_network_helper_get_unid_from_node(attribute_store_node_t node,
188 unid_t unid);
189
205 attribute_store_node_t node, zwave_node_id_t *zwave_node_id);
206
222 attribute_store_node_t node, zwave_endpoint_id_t *zwave_endpoint_id);
223
240 attribute_store_node_t node,
241 zwave_node_id_t *zwave_node_id,
242 zwave_endpoint_id_t *zwave_endpoint_id);
243
252attribute_store_node_t
255
256#ifdef __cplusplus
257}
258#endif
259
262#endif //ATTRIBUTE_STORE_NETWORK_HELPER_H
uint32_t sl_status_t
Definition: sl_status.h:139
sl_status_t attribute_store_network_helper_get_endpoint_id_from_node(attribute_store_node_t node, zwave_endpoint_id_t *zwave_endpoint_id)
Traverse up the tree from a node and finds under which Z-Wave endpoint id it is located.
Definition: zpc_attribute_store_network_helper.c:338
attribute_store_node_t attribute_store_network_helper_get_home_id_node(const unid_t node_unid)
Take a UNID and return its attribute store node representing the HomeID.
Definition: zpc_attribute_store_network_helper.c:147
attribute_store_node_t attribute_store_get_endpoint_0_node(attribute_store_node_t node_id_node)
Returns the Attribute Store node for Endpoint 0, under a NodeID node.
Definition: zpc_attribute_store_network_helper.c:218
attribute_store_node_t attribute_store_network_helper_create_endpoint_node(const unid_t node_unid, zwave_endpoint_id_t endpoint_id)
Take a UNID/endpoint combination and returns its attribute store node.
Definition: zpc_attribute_store_network_helper.c:109
attribute_store_node_t attribute_store_network_helper_create_home_id_node(const unid_t node_unid)
Take a UNID and return its attribute store node representing the HomeID.
Definition: zpc_attribute_store_network_helper.c:37
attribute_store_node_t zwave_command_class_get_endpoint_id_node(zwave_node_id_t node_id, zwave_endpoint_id_t endpoint_id)
Gets the Attribute Store Endpoint ID node for a given Z-Wave NodeID / Endpoint ID in our network.
Definition: zpc_attribute_store_network_helper.c:404
sl_status_t attribute_store_network_helper_get_node_id_from_node(attribute_store_node_t node, zwave_node_id_t *zwave_node_id)
Traverse up the tree from a node and finds under which Z-Wave NodeID it is.
Definition: zpc_attribute_store_network_helper.c:318
attribute_store_node_t attribute_store_network_helper_get_zwave_node_id_node(zwave_node_id_t node_id)
Take a Z-Wave NodeID and return its Attribute Store node representing the NodeID.
Definition: zpc_attribute_store_network_helper.c:190
attribute_store_node_t attribute_store_network_helper_create_node_id_node(const unid_t node_unid)
Take a UNID and return its attribute store node representing the NodeID.
Definition: zpc_attribute_store_network_helper.c:74
sl_status_t attribute_store_network_helper_get_zwave_ids_from_node(attribute_store_node_t node, zwave_node_id_t *zwave_node_id, zwave_endpoint_id_t *zwave_endpoint_id)
Traverse up the tree from a node and finds under which Z-Wave NodeID/endpoint id it is located.
Definition: zpc_attribute_store_network_helper.c:358
sl_status_t attribute_store_network_helper_get_unid_from_node(attribute_store_node_t node, unid_t unid)
Traverse up the tree from a node and finds under which UNID it is.
Definition: zpc_attribute_store_network_helper.c:280
attribute_store_node_t attribute_store_network_helper_get_endpoint_node(const unid_t node_unid, zwave_endpoint_id_t endpoint_id)
Take a UNID/endpoint combination and returns its attribute store node.
Definition: zpc_attribute_store_network_helper.c:199
sl_status_t attribute_store_network_helper_get_unid_endpoint_from_node(attribute_store_node_t node, unid_t unid, zwave_endpoint_id_t *endpoint_id)
Traverse the tree up from a node and find under which UNID/endpoints it is.
Definition: zpc_attribute_store_network_helper.c:229
attribute_store_node_t attribute_store_network_helper_get_node_id_node(const unid_t node_unid)
Take a UNID and return its attribute store node representing the NodeID.
Definition: zpc_attribute_store_network_helper.c:169
uint8_t zwave_endpoint_id_t
Z-Wave Endpoint ID type.
Definition: zwave_node_id_definitions.h:125
uint16_t zwave_node_id_t
Z-Wave NodeID type.
Definition: zwave_node_id_definitions.h:84
char unid_t[17]
Definition: zwave_unid.h:35
SL Status Codes.
attribute_store_node_t node_id_node
const zwave_endpoint_id_t endpoint_id
const zwave_node_id_t node_id