Z-Wave Protocol Controller Reference
zwave_s2_nonce_management.c File Reference
#include "zwave_s2_nonce_management.h"
#include "zwave_s2_internal.h"
#include "s2_protocol.h"
#include <string.h>
#include "zwave_network_management.h"
#include "sl_log.h"
Include dependency graph for zwave_s2_nonce_management.c:

Macros

#define LOG_TAG   "zwave_s2_nonce_management"
 

Functions

static void zwave_s2_configure_span_table_entry (struct SPAN *entry, const span_entry_t *span_data, zwave_node_id_t node_id)
 Copies a Span entry object into an entry of the S2 Context SPAN table. More...
 
static void zwave_s2_configure_mpan_table_entry (struct MPAN *entry, const mpan_entry_t *mpan_data, zwave_node_id_t owner_node_id)
 Copies a MPAN entry object into an entry of the S2 MPAN table. More...
 
sl_status_t zwave_s2_get_span_data (zwave_node_id_t node_id, span_entry_t *span_data)
 Fetches a Span entry object from the S2 SPAN table. More...
 
void zwave_s2_reset_span (zwave_node_id_t node_id)
 Resets the SPAN for node_id by setting its state to SPAN_NOT_USED. More...
 
void zwave_s2_reset_mpan (zwave_node_id_t owner_node_id, zwave_multicast_group_id_t group_id)
 Resets the MPAN entry matching owner_node_id and group_id by setting its state to MPAN_NOT_USED. More...
 
void zwave_s2_set_span_table (zwave_node_id_t node_id, const span_entry_t *span_data)
 Copies a Span entry object into an entry of the S2 SPAN table. More...
 
sl_status_t zwave_s2_get_mpan_data (zwave_node_id_t owner_node_id, zwave_multicast_group_id_t group_id, mpan_entry_t *mpan_data)
 Fetches an MPAN entry object from the S2 MPAN table. More...
 
void zwave_s2_set_mpan_data (zwave_node_id_t owner_node_id, zwave_multicast_group_id_t group_id, const mpan_entry_t *mpan_data)
 Copies an MPAN entry object into an entry of the S2 MPAN table. More...
 

Macro Definition Documentation

◆ LOG_TAG

#define LOG_TAG   "zwave_s2_nonce_management"

Function Documentation

◆ zwave_s2_configure_mpan_table_entry()

static void zwave_s2_configure_mpan_table_entry ( struct MPAN *  entry,
const mpan_entry_t mpan_data,
zwave_node_id_t  owner_node_id 
)
static

Copies a MPAN entry object into an entry of the S2 MPAN table.

We assume here that we copy MPANs that are in the MPAN_SET state.

Parameters
entry[out] S2 MPAN table entry pointer
mpan_data[in] S2 MPAN data to be copied in the MPAN table
owner_node_id[in] Z-Wave Remote NodeID for that MPAN entry
Here is the caller graph for this function:

◆ zwave_s2_configure_span_table_entry()

static void zwave_s2_configure_span_table_entry ( struct SPAN *  entry,
const span_entry_t span_data,
zwave_node_id_t  node_id 
)
static

Copies a Span entry object into an entry of the S2 Context SPAN table.

We assume here that we copy SPANS that are in the SPAN_NEGOTIATED state.

Parameters
entry[out] S2 SPAN table entry pointer
span_data[in] S2 Span data to be copied in the span table
node_id[in] Z-Wave Remote NodeID for that SPAN entry
Here is the call graph for this function:
Here is the caller graph for this function: