27#ifndef ZWAVE_S2_NETWORK_H
28#define ZWAVE_S2_NETWORK_H
uint8_t zwave_dsk_t[ZWAVE_DSK_LENGTH]
Definition: zwave_controller_types.h:41
uint8_t zwave_keyset_t
Definition: zwave_keyset_definitions.h:32
zwave_kex_fail_type_t
Error codes used in S2 inclusion.
Definition: zwave_network_management_types.h:59
uint32_t zwave_home_id_t
Z-Wave HomeID type.
Definition: zwave_node_id_definitions.h:87
uint16_t zwave_node_id_t
Z-Wave NodeID type.
Definition: zwave_node_id_definitions.h:84
void zwave_s2_abort_join()
Definition: zwave_s2_network.c:210
void zwave_s2_network_init()
Initialize the S2 network layer.
Definition: zwave_s2_network.c:115
struct zwave_s2_network_callbacks zwave_s2_network_callbacks_t
void zwave_s2_refresh_home_id(zwave_home_id_t current_home_id)
Update the homeID for the S2 engine.
Definition: zwave_s2_network.c:215
void zwave_s2_neighbor_discovery_complete()
Definition: zwave_s2_network.c:186
void zwave_s2_start_learn_mode(zwave_node_id_t node_id)
Start the S2 learn mode.
Definition: zwave_s2_network.c:160
void zwave_s2_set_network_callbacks(const zwave_s2_network_callbacks_t *cb)
Set callback function for the S2 inclusion. This structure is copied internally.
Definition: zwave_s2_network.c:205
void zwave_s2_dsk_accept(bool accept, uint8_t *dsk, uint8_t len)
Must be called as a response to the on_dsk_challenge callbacks.
Definition: zwave_s2_network.c:110
void zwave_s2_start_add_node(zwave_node_id_t node_id)
Start the S2 add node process.
Definition: zwave_s2_network.c:191
void zwave_s2_key_grant(bool accept, uint8_t keys, bool csa)
Must be called as a response to the on_keys_request callback.
Definition: zwave_s2_network.c:105
Definition: transport_service.c:356
Definition: zwave_s2_network.h:36
void(* on_inclusion_started)()
Definition: zwave_s2_network.h:40
void(* on_dsk_challenge)(zwave_keyset_t granted_keys, int num_blank_bytes, zwave_dsk_t dsk)
Definition: zwave_s2_network.h:60
void(* on_keys_request)(zwave_keyset_t requested_keys, bool csa)
Definition: zwave_s2_network.h:52
void(* on_inclusion_complete)(zwave_keyset_t granted_keys, zwave_kex_fail_type_t kex_fail_code)
Definition: zwave_s2_network.h:45
const zwave_node_id_t node_id