Z-Wave Protocol Controller Reference
zwave_controller_storage.c File Reference
#include "zwave_controller_storage.h"
#include "sl_log.h"
#include <assert.h>
Include dependency graph for zwave_controller_storage.c:

Macros

#define LOG_TAG   "zwave_controller_storage"
 

Typedefs

typedef sl_status_t(* set_node_as_s2_capable_t) (zwave_node_id_t node_id)
 Callback to set a node as S2 capable, meaning that we know it supports S2,and it will forever do. More...
 
typedef bool(* is_node_S2_capable_t) (zwave_node_id_t node_id)
 Callback to check if a node is supporting S2. More...
 
typedef sl_status_t(* get_node_granted_keys_t) (zwave_node_id_t node_id, zwave_keyset_t *keys)
 Callback to get granted keys from persitant storage. More...
 
typedef zwave_protocol_t(* get_inclusion_protocol_t) (zwave_node_id_t node_id)
 Callback to get is a node is included using Z-Wave longrange. More...
 
typedef zwave_cc_version_t(* zwave_controller_storage_cc_version_t) (zwave_command_class_t command_class, zwave_node_id_t node_id, zwave_endpoint_id_t endpoint_id)
 Callback to get is a the command calss version supported via the node. More...
 

Functions

sl_status_t zwave_controller_storage_callback_register (const zwave_controller_storage_callback_t *callbacks)
 zwave_controller_storage callbacks register API More...
 
bool zwave_controller_storage_is_node_s2_capable (zwave_node_id_t node_id)
 Verify if the registered node is supporting S2. More...
 
sl_status_t zwave_controller_storage_as_set_node_s2_capable (zwave_node_id_t node_id)
 Set the Z-Wave node as s2 capable when it supports S2. More...
 
zwave_cc_version_t zwave_controller_storage_get_cc_version (zwave_command_class_t command_class, zwave_node_id_t node_id, zwave_endpoint_id_t endpoint_id)
 Return the version of a Command Class implemented by a node. More...
 
sl_status_t zwave_controller_storage_get_node_granted_keys (zwave_node_id_t node_id, zwave_keyset_t *keys)
 Return the granted keys for a node. More...
 
zwave_protocol_t zwave_controller_storage_inclusion_protocol (zwave_node_id_t node_id)
 Returns the protocol that the node is running in this network. More...
 

Variables

static set_node_as_s2_capable_t set_node_as_s2_capable_cb
 
static is_node_S2_capable_t verify_node_is_s2_cb
 
static zwave_controller_storage_cc_version_t zwave_node_cc_version_cb
 
static get_node_granted_keys_t granted_keys_cb
 
static get_inclusion_protocol_t get_inclusion_protocol_cb
 

Macro Definition Documentation

◆ LOG_TAG

#define LOG_TAG   "zwave_controller_storage"

Typedef Documentation

◆ get_inclusion_protocol_t

typedef zwave_protocol_t(* get_inclusion_protocol_t) (zwave_node_id_t node_id)

Callback to get is a node is included using Z-Wave longrange.

◆ get_node_granted_keys_t

typedef sl_status_t(* get_node_granted_keys_t) (zwave_node_id_t node_id, zwave_keyset_t *keys)

Callback to get granted keys from persitant storage.

◆ is_node_S2_capable_t

typedef bool(* is_node_S2_capable_t) (zwave_node_id_t node_id)

Callback to check if a node is supporting S2.

◆ set_node_as_s2_capable_t

typedef sl_status_t(* set_node_as_s2_capable_t) (zwave_node_id_t node_id)

Callback to set a node as S2 capable, meaning that we know it supports S2,and it will forever do.

◆ zwave_controller_storage_cc_version_t

typedef zwave_cc_version_t(* zwave_controller_storage_cc_version_t) (zwave_command_class_t command_class, zwave_node_id_t node_id, zwave_endpoint_id_t endpoint_id)

Callback to get is a the command calss version supported via the node.

Variable Documentation

◆ get_inclusion_protocol_cb

get_inclusion_protocol_t get_inclusion_protocol_cb
static

◆ granted_keys_cb

get_node_granted_keys_t granted_keys_cb
static

◆ set_node_as_s2_capable_cb

set_node_as_s2_capable_t set_node_as_s2_capable_cb
static

◆ verify_node_is_s2_cb

is_node_S2_capable_t verify_node_is_s2_cb
static

◆ zwave_node_cc_version_cb

zwave_controller_storage_cc_version_t zwave_node_cc_version_cb
static