Z-Wave Protocol Controller Reference
zwave_command_class_manufacturer_specific.c File Reference
#include "zwave_command_class_manufacturer_specific.h"
#include <string.h>
#include <stdio.h>
#include "assert.h"
#include "zwave_command_class_indices.h"
#include "zwave_controller_connection_info.h"
#include "zwave_controller_utils.h"
#include "zwave_command_classes_utils.h"
#include "zwave_command_handler.h"
#include "zwave_tx.h"
#include "zpc_config.h"
#include "zpc_hex_to_int.h"
#include "ZW_classcmd.h"
#include "zwave_security_validation.h"
#include "sl_log.h"
Include dependency graph for zwave_command_class_manufacturer_specific.c:

Macros

#define LOG_TAG   "zwave_command_class_manufacturer_specific"
 
#define MANUFACTURER_SPECIFIC_SCHEME    ZWAVE_CONTROLLER_ENCAPSULATION_NETWORK_SCHEME
 
#define MAX_DEVICE_ID_LEN   64
 Command handler for the device speicific get. More...
 

Functions

static sl_status_t zwave_command_class_manufacturer_specific_handle_manufacturer_specific_get (const zwave_controller_connection_info_t *connection_info)
 Command handler for the manufacter specific get. More...
 
static sl_status_t zwave_command_class_manufacturer_specific_handle_device_specific_get (const zwave_controller_connection_info_t *connection_info)
 
sl_status_t zwave_command_class_manufacturer_specific_support_handler (const zwave_controller_connection_info_t *connection, const uint8_t *frame_data, uint16_t frame_length)
 Handles incoming manufacturer specific encapsulated commands. More...
 
sl_status_t zwave_command_class_manufacturer_specific_init ()
 setup for manufacturer specific command class More...
 

Macro Definition Documentation

◆ LOG_TAG

#define LOG_TAG   "zwave_command_class_manufacturer_specific"

◆ MANUFACTURER_SPECIFIC_SCHEME

#define MANUFACTURER_SPECIFIC_SCHEME    ZWAVE_CONTROLLER_ENCAPSULATION_NETWORK_SCHEME

◆ MAX_DEVICE_ID_LEN

#define MAX_DEVICE_ID_LEN   64

Command handler for the device speicific get.

The Gateway will send return a device specific report containing the device specific data

Parameters
connection_infoInfo about the connection properties of this frame.

Function Documentation

◆ zwave_command_class_manufacturer_specific_handle_device_specific_get()

static sl_status_t zwave_command_class_manufacturer_specific_handle_device_specific_get ( const zwave_controller_connection_info_t connection_info)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ zwave_command_class_manufacturer_specific_handle_manufacturer_specific_get()

static sl_status_t zwave_command_class_manufacturer_specific_handle_manufacturer_specific_get ( const zwave_controller_connection_info_t connection_info)
static

Command handler for the manufacter specific get.

The Gateway will send return a manufacturer speicifc Report frame containing the manufacturer id, product type and product id

Parameters
connection_infoInfo about the connection properties of this frame.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ zwave_command_class_manufacturer_specific_init()

sl_status_t zwave_command_class_manufacturer_specific_init ( void  )

setup for manufacturer specific command class

This setup will register the manufacturer specific command handler to the Z-Wave CC framework,

Returns
SL_STATUS_OK if successful
SL_STATUS_FAIL if an error occurred
Here is the call graph for this function:
Here is the caller graph for this function:

◆ zwave_command_class_manufacturer_specific_support_handler()

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

Handles incoming manufacturer specific encapsulated commands.

Parameters
connection_infoInfo about the connection properties of this frame.
frame_dataThe data payload of this frame.
frame_lengthThe length of this frame.
Returns
sl_status_t representing the outcome of receiving the frame In case where the command is controlled, it should be set to SL_STATUS_OK, even when encountering some parsing errors In case where the command is supported, it should be set to the sl_status_t corresponding to the correct time Status code. Refer to zwave_command_handler_t
Here is the call graph for this function:
Here is the caller graph for this function: