Z-Wave Protocol Controller Reference
zwave_rx_zwapi_callbacks.c File Reference
#include <stdlib.h>
#include <stdbool.h>
#include "zwave_rx.h"
#include "zwave_rx_internals.h"
#include "zwave_rx_zwapi_callbacks.h"
#include "zwave_controller_internal.h"
#include "zwave_controller_utils.h"
#include "zwave_rx_process.h"
#include "zwapi_protocol_controller.h"
#include "zwapi_protocol_mem.h"
Include dependency graph for zwave_rx_zwapi_callbacks.c:

Functions

static void zwave_rx_map_node_information (zwave_node_id_t node_id, const uint8_t *zwapi_zwave_nif, uint8_t zwapi_zwave_nif_length, zwave_node_info_t *destination_node_info)
 function that converts the data received from the Z-Wave API to fit in a zwave_node_info_t. More...
 
void zwave_rx_protocol_cc_encryption_request (const zwave_node_id_t destination_node_id, const uint8_t payload_length, const uint8_t *const payload, const uint8_t protocol_metadata_length, const uint8_t *const protocol_metadata, const uint8_t use_supervision, const uint8_t session_id)
 protocol_cc_encryption_request function for zwapi_callbacks. Z-Wave API controller libraries will call this function for incoming protocol command class frame from the Z-Wave controller will be dispatched to this function. More...
 
void zwave_rx_application_command_handler (uint8_t rx_status, zwave_node_id_t destination_node_id, zwave_node_id_t source_node_id, const uint8_t *zwave_command_payload, uint8_t zwave_command_payload_length, int8_t rssi_value)
 application_command_handler function for zwapi_callbacks. Z-Wave API controller libraries will call this function for incoming frames from the Z-Wave nodes (e.g. Basic Report) will be dispatched to this function. More...
 
void zwave_rx_application_command_handler_bridge (uint8_t rx_status, zwave_node_id_t destination_node_id, zwave_node_id_t source_node_id, const uint8_t *zwave_command_payload, uint8_t zwave_command_payload_length, int8_t rssi_value)
 application_command_handler_bridge function for zwapi_callbacks. Z-Wave API Bridge libraries will call this function instead of application_command_handler(). Incoming frames from the Z-Wave nodes (e.g. Basic Report) will be dispatched to this function. More...
 
void zwave_rx_application_controller_update (uint8_t status, zwave_node_id_t node_id, const uint8_t *zwave_nif, uint8_t zwave_nif_length, zwave_home_id_t nwi_home_id)
 application_controller_update function for zwapi_callbacks. Incoming NIF from the Z-Wave nodes will be dispatched to this function. More...
 
void zwave_rx_zwave_api_started (const uint8_t *buffer, uint8_t buffer_length)
 functions handling when the Z-Wave API is ready to use. This is called after soft reset. See zwapi_callbacks More...
 
void zwave_rx_poll_request ()
 Request call zwapi_poll again. More...
 

Function Documentation

◆ zwave_rx_map_node_information()

static void zwave_rx_map_node_information ( zwave_node_id_t  node_id,
const uint8_t *  zwapi_zwave_nif,
uint8_t  zwapi_zwave_nif_length,
zwave_node_info_t destination_node_info 
)
static

function that converts the data received from the Z-Wave API to fit in a zwave_node_info_t.

Parameters
node_idThe NodeID for which the NIF is being forwarded. In case of SmartStart frames, NIFs come from foreign netowrks and this parameter must be set to 0
zwapi_zwave_nifThe node info frame data received from Z-Wave API
zwapi_zwave_nif_lengthThe length of the data contained in the zwapi_zwave_nif pointer
destination_node_infoA pointer to a zwave_node_info_t where the converted data will be written
Here is the call graph for this function:
Here is the caller graph for this function: