|
Z-Wave Protocol Controller Reference
|
S0 Bootstrapping state machine. More...
#include <ctimer.h>#include <stddef.h>#include <string.h>#include "zwave_s0_sm.h"#include "sl_log.h"#include "ZW_classcmd.h"#include "zwave_s0_internal.h"#include "zwave_s0_transport.h"#include "zwave_s0_network.h"#include "s2_keystore.h"#include "s2_classcmd.h"#include "zwave_helper_macros.h"Classes | |
| struct | s0_transition_t |
| struct | s0_sm_t |
Macros | |
| #define | LOG_TAG "zwave_s0_sm" |
| #define | S0_INCLUSION_TIMER 10 * CLOCK_SECOND |
| #define | ELEM_COUNT(ARRAY) (sizeof(ARRAY) / (sizeof(ARRAY[0]))) |
| #define | S0_KEY_LENGTH 16 |
| #define | UNUSED(x) x = x; |
Functions | |
| const char * | s0_event_name (s0_bootstrap_event_t ev) |
| const char * | s0_incl_state_name (s0_bootstrap_state_t state) |
| const char * | s0_action_name (s0_action_t action) |
| void | s0_scheme_report_received (const uint8_t scheme, zwave_node_id_t from_node) |
| This function is used to notify the S0 Inclusion state machine that S0 Scheme report frame was received. More... | |
| void | s0_handle_net_key_verify () |
| static void | s0_sm_process_event (uint16_t evt) |
| static void | reset_s0_sm () |
| static void | s0_abort_bootstrap () |
| static void | s0_timeout (void *data) |
| static void | s0_send_data_callback (uint8_t status, const zwapi_tx_report_t *tx_info, void *user) |
| static sl_status_t | s0_bootstrap_frames_generic_send (zwave_controller_encapsulation_scheme_t en, const uint8_t *frame, uint8_t frame_len) |
| static sl_status_t | s0_send_scheme_inherit () |
| static sl_status_t | s0_send_key_set () |
| static sl_status_t | s0_send_scheme_get () |
| void | s0_bootstrapping_start (const zwave_controller_connection_info_t *conn, uint8_t is_controller) |
| Start the S0 add node process. More... | |
| void | s0_network_key_verify_received (zwave_node_id_t from_node) |
| This function is used to notify the S0 Inclusion state machine that S0 network key verify frame was received. More... | |
| void | s0_set_callback (s0_on_bootstrapping_complete_cb cb) |
| Set callback function for the S0 bootstrap. This callback function is copied internally into S0 and called when S0 bootstrap is complete. More... | |
| s0_bootstrap_state_t | get_s0_sm_state () |
| Get the state of S0 Bootstrap state machine. More... | |
| void | s0_bootstrapping_stop () |
| Stop the S0 bootstrapping timers. More... | |
Variables | |
| static s0_on_bootstrapping_complete_cb | s0_on_bootstrapping_complete_callback = NULL |
| s0_sm_t | s0_sm |
| static const s0_transition_t | s0_transition_table [] |
S0 Bootstrapping state machine.
Copyright 2021 Silicon Laboratories Inc. www.silabs.com
The licensor of this software is Silicon Laboratories Inc. Your use of this software is governed by the terms of Silicon Labs Master Software License Agreement (MSLA) available at www.silabs.com/about-us/legal/master-software-license-agreement. This software is distributed to you in Source Code format and is governed by the sections of the MSLA applicable to Source Code.
| #define ELEM_COUNT | ( | ARRAY | ) | (sizeof(ARRAY) / (sizeof(ARRAY[0]))) |
| #define LOG_TAG "zwave_s0_sm" |
| #define S0_INCLUSION_TIMER 10 * CLOCK_SECOND |
| #define S0_KEY_LENGTH 16 |
| #define UNUSED | ( | x | ) | x = x; |
| enum s0_action_t |
| enum s0_bootstrap_event_t |
|
static |
|
static |
| const char * s0_action_name | ( | s0_action_t | action | ) |
|
static |
| const char * s0_event_name | ( | s0_bootstrap_event_t | ev | ) |
| void s0_handle_net_key_verify | ( | ) |
| const char * s0_incl_state_name | ( | s0_bootstrap_state_t | state | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
| s0_sm_t s0_sm |
|
static |