|
Z-Wave Protocol Controller Reference
|
#include <assert.h>#include <string.h>#include <stdio.h>#include "zwapi_internal.h"#include "zwapi_func_ids.h"#include "zwapi_protocol_controller.h"#include "zwapi_protocol_transport.h"#include "zwapi_session.h"#include "zwapi_init.h"#include "zwapi_utils.h"#include "zwave_controller_endian.h"#include "sl_log.h"Macros | |
| #define | LOG_TAG "zwapi_protocol_rx_dispatch" |
Functions | |
| void | zwave_api_protocol_init_callbacks (void) |
| Initialize functions pointers for Z-Wave module callbacks. More... | |
| static bool | zwave_api_detect_buffer_overflow (uint16_t len) |
| static const char * | zwapi_frame_to_string (const uint8_t *buffer, uint16_t buffer_length) |
| static void | fill_default_tx_report_values (zwapi_tx_report_t *tx_report) |
| Fills default values in the Tx Report in case it is too short or incomplete coming from the Z-Wave API. More... | |
| void | zwave_api_protocol_rx_dispatch (uint8_t *pData, uint16_t len) |
| Execute a callback based on a received frame from the Z-Wave module. More... | |
| #define LOG_TAG "zwapi_protocol_rx_dispatch" |
|
static |
Fills default values in the Tx Report in case it is too short or incomplete coming from the Z-Wave API.
| tx_report | [out] Pointer to the struct where the default values are written. |
|
static |
|
static |
| void zwave_api_protocol_init_callbacks | ( | void | ) |
Initialize functions pointers for Z-Wave module callbacks.
These callbacks are handlers for incoming REQ frames from the Z-Wave module
| void zwave_api_protocol_rx_dispatch | ( | uint8_t * | pData, |
| uint16_t | len | ||
| ) |
Execute a callback based on a received frame from the Z-Wave module.
| pData | Pointer to data frame (without SOF) |
| len | Length of data frame |
FIXME: We should really not treat those functions as a bulk and assume they return the same payload.
|
static |
| void(* zwapi_add_node_to_network_callback) (struct LEARN_INFO *) | ( | struct LEARN_INFO * | ) |
| void(* zwapi_assign_return_route_callback) (uint8_t bStatus) | ( | uint8_t | bStatus | ) |
| void(* zwapi_assign_suc_return_route_callback) (uint8_t bStatus) | ( | uint8_t | bStatus | ) |
|
static |
| void(* zwapi_create_new_primarly_ctrl_callback) (struct LEARN_INFO *) | ( | struct LEARN_INFO * | ) |
| void(* zwapi_delete_return_route_callback) (uint8_t bStatus) | ( | uint8_t | bStatus | ) |
| void(* zwapi_delete_suc_return_route_callback) (uint8_t bStatus) | ( | uint8_t | bStatus | ) |
| void(* zwapi_memory_put_buffer_callback) (void) | ( | void | ) |
| void(* zwapi_remove_failed_node_callback) (uint8_t txStatus) | ( | uint8_t | txStatus | ) |
| void(* zwapi_remove_node_from_network_callback) (struct LEARN_INFO *) | ( | struct LEARN_INFO * | ) |
| void(* zwapi_replace_failed_node_callback) (uint8_t txStatus) | ( | uint8_t | txStatus | ) |
| void(* zwapi_request_neighbor_update_callback) (uint8_t bStatus) | ( | uint8_t | bStatus | ) |
| void(* zwapi_request_network_update_callback) (uint8_t txStatus) | ( | uint8_t | txStatus | ) |
| void(* zwapi_send_controller_replication_callback) (uint8_t txStatus) | ( | uint8_t | txStatus | ) |
| void(* zwapi_send_data_bridge_callback) (uint8_t, zwapi_tx_report_t *) | ( | uint8_t | , |
| zwapi_tx_report_t * | |||
| ) |
| void(* zwapi_send_data_callback) (uint8_t, zwapi_tx_report_t *) | ( | uint8_t | , |
| zwapi_tx_report_t * | |||
| ) |
Serial API response frame callbacks
| void(* zwapi_send_data_multi_bridge_callback) (uint8_t) | ( | uint8_t | ) |
| void(* zwapi_send_data_multi_callback) (uint8_t) | ( | uint8_t | ) |
| void(* zwapi_send_node_information_callback) (uint8_t txStatus) | ( | uint8_t | txStatus | ) |
| void(* zwapi_send_nop_callback) (uint8_t, zwapi_tx_report_t *) | ( | uint8_t | , |
| zwapi_tx_report_t * | |||
| ) |
| void(* zwapi_send_test_frame_callback) (uint8_t) | ( | uint8_t | ) |
| void(* zwapi_set_default_callback) (void) | ( | void | ) |
| void(* zwapi_set_learn_mode_callback) (struct LEARN_INFO *) | ( | struct LEARN_INFO * | ) |
| void(* zwapi_set_suc_node_id_callback) (uint8_t bStatus) | ( | uint8_t | bStatus | ) |
| void(* zwapi_set_virtual_node_to_learn_mode_callback) (uint8_t bStatus, zwave_node_id_t orgID, zwave_node_id_t newID) | ( | uint8_t | bStatus, |
| zwave_node_id_t | orgID, | ||
| zwave_node_id_t | newID | ||
| ) |
| void(* zwapi_transfer_primary_ctrl_role_callback) (struct LEARN_INFO *) | ( | struct LEARN_INFO * | ) |