Z-Wave Protocol Controller Reference
zwave_command_class_multi_command.c File Reference
#include "zwave_command_class_multi_command.h"
#include <stdbool.h>
#include <string.h>
#include "ZW_classcmd.h"
#include "zwave_command_class_indices.h"
#include "zwave_controller_connection_info.h"
#include "zwave_command_handler.h"
#include "zwave_controller_internal.h"
#include "zwave_rx.h"
#include "zwave_tx.h"
Include dependency graph for zwave_command_class_multi_command.c:

Macros

#define NUMBER_OF_COMMANDS_INDEX   2
 

Functions

static sl_status_t zwave_command_class_multi_command_support_handler (const zwave_controller_connection_info_t *connection_info, const uint8_t *frame_data, uint16_t frame_length)
 Decapsulate Multi Command encapsulation and inject the frames back to the Z-Wave Controller. More...
 
sl_status_t zwave_command_class_multi_command_init ()
 Initialize the Multi Command handler. More...
 

Macro Definition Documentation

◆ NUMBER_OF_COMMANDS_INDEX

#define NUMBER_OF_COMMANDS_INDEX   2

Function Documentation

◆ zwave_command_class_multi_command_support_handler()

static sl_status_t zwave_command_class_multi_command_support_handler ( const zwave_controller_connection_info_t connection_info,
const uint8_t *  frame_data,
uint16_t  frame_length 
)
static

Decapsulate Multi Command encapsulation and inject the frames back to the Z-Wave Controller.

The provided payload will be Multi Command decapsulated and the endpoint data will be copied in connection->remote.endpoint_id and connection->local.endpoint_id and passed to the zwave_command_handler_dispatch() function.

Parameters
connection_infoConnection object describing the source and destination.
frame_dataLength of the frame to send
frame_lengthPoints to the payload to send
Returns
  • SL_STATUS_NOT_SUPPORTED if the frame data is not multi command encapsulated properly to generate a decapsulated frame
  • SL_STATUS_FAIL If not all incapsulated commands processed correctly
  • SL_STATUS_OK If all incapsulated commands processed correctly.
Here is the call graph for this function:
Here is the caller graph for this function: