Z-Wave Protocol Controller Reference
zwave_controller_transport.c File Reference
#include "zwave_controller_transport.h"
#include "zwave_controller_internal.h"
#include "zwave_controller_transport_internal.h"
#include <assert.h>
#include <string.h>
#include "zwave_tx.h"
#include "zwave_rx.h"
#include "sl_log.h"
Include dependency graph for zwave_controller_transport.c:

Macros

#define LOG_TAG   "zwave_controller_transport"
 

Functions

sl_status_t zwave_controller_transport_init ()
 Initialize the Z-Wave Controller transport component. More...
 
sl_status_t zwave_controller_transport_register (const zwave_controller_transport_t *new_transport)
 Must be called to register a transport. More...
 
static const zwave_controller_transport_tget_transport_by_class (zwave_command_class_t cmd_class)
 Get the transport by class object. More...
 
zwave_cc_version_t zwave_controller_transport_is_encapsulation_cc (zwave_command_class_t command_class)
 check if a command class is registered as an encapsulation cc in Z-Wave controller transport framework. If it does, the module will retrun the version of the encapsulation command class. More...
 
sl_status_t zwave_controller_transport_on_frame_received (const zwave_controller_connection_info_t *connection_info, const zwave_rx_receive_options_t *rx_options, const uint8_t *frame_data, uint16_t frame_length)
 Entry point of of frame to the transport plugin system . More...
 
sl_status_t zwave_controller_transport_send_data (const zwave_controller_connection_info_t *connection, uint16_t data_length, const uint8_t *data, const zwave_tx_options_t *tx_options, const on_zwave_tx_send_data_complete_t on_send_complete, void *user, zwave_tx_session_id_t parent_session_id)
 Send a frame with transport plugin system. More...
 
sl_status_t zwave_controller_transport_abort_send_data (zwave_tx_session_id_t session_id)
 Functions to abort the ongoing transport sessions. More...
 

Variables

static zwave_controller_transport_t transports [NUMBER_OF_TRANSPORTS] = {}
 

Macro Definition Documentation

◆ LOG_TAG

#define LOG_TAG   "zwave_controller_transport"

Function Documentation

◆ get_transport_by_class()

static const zwave_controller_transport_t * get_transport_by_class ( zwave_command_class_t  cmd_class)
static

Get the transport by class object.

This function retrieves the transport for matching a paticular class. If no transport is found this function return nullptr

Parameters
cmd_classCommand class to fe
Returns
const zwave_controller_transport_t*
Here is the caller graph for this function:

Variable Documentation

◆ transports