Z-Wave Protocol Controller Reference
zwave_command_class_barrier_operator.c File Reference
#include "zwave_command_class_barrier_operator.h"
#include "zwave_command_classes_utils.h"
#include "zwave_command_class_barrier_operator_types.h"
#include <stdlib.h>
#include "ZW_classcmd.h"
#include "attribute_store_defined_attribute_types.h"
#include "zpc_attribute_store_network_helper.h"
#include "zwave_command_class_indices.h"
#include "zwave_command_handler.h"
#include "zpc_attribute_resolver.h"
#include "dotdot_mqtt.h"
#include "dotdot_mqtt_generated_commands.h"
#include "attribute_resolver.h"
#include "attribute_store_helper.h"
#include "sl_log.h"
#include "attribute_timeouts.h"
Include dependency graph for zwave_command_class_barrier_operator.c:

Macros

#define LOG_TAG   "zwave_command_class_barrier_operator"
 
#define ATTRIBUTE(type)   ATTRIBUTE_COMMAND_CLASS_BARRIER_OPERATOR_##type
 
#define TARGET_VALUE_INDEX   2
 
#define STATE_INDEX   2
 
#define SUPPORTED_REPORT_BITMASK_INDEX   2
 
#define SUBSYSTEM_TYPE_INDEX   2
 
#define SUBSYSTEM_STATE_INDEX   3
 
#define CLOSING_STATE   0xFC
 
#define OPENING_STATE   0xFE
 

Functions

static sl_status_t zwave_command_class_barrier_operator_get (attribute_store_node_t node, uint8_t *frame, uint16_t *frame_length)
 Generates a Barrier Operator Get Command. More...
 
static sl_status_t zwave_command_class_barrier_operator_set (attribute_store_node_t node, uint8_t *frame, uint16_t *frame_length)
 Generates a Barrier Operator Set Command. More...
 
static sl_status_t zwave_command_class_barrier_operator_supported_get (attribute_store_node_t node, uint8_t *frame, uint16_t *frame_length)
 Generates a Barrier Operator Supported Get Command. More...
 
static sl_status_t zwave_command_class_barrier_operator_signal_set (attribute_store_node_t node, uint8_t *frame, uint16_t *frame_length)
 Generates a Barrier Operator Signal Set Command. More...
 
static sl_status_t zwave_command_class_barrier_operator_signal_get (attribute_store_node_t node, uint8_t *frame, uint16_t *frame_length)
 Generates a Barrier Operator Signal Get Command. More...
 
static sl_status_t zwave_command_class_barrier_operator_handle_set (const zwave_controller_connection_info_t *connection_info, const uint8_t *frame, uint16_t frame_length)
 Handles incoming Barrier Operator Set Commands. More...
 
static sl_status_t zwave_command_class_barrier_operator_handle_report (const zwave_controller_connection_info_t *connection_info, const uint8_t *frame, uint16_t frame_length)
 Handle incoming Barrier Operator Report Commands. More...
 
static sl_status_t zwave_command_class_barrier_operator_handle_signal_report (const zwave_controller_connection_info_t *connection_info, const uint8_t *frame, uint16_t frame_length)
 Handle incoming Barrier Operator Singal Report Commands. More...
 
static sl_status_t zwave_command_class_barrier_operator_handle_supported_report (const zwave_controller_connection_info_t *connection_info, const uint8_t *frame, uint16_t frame_length)
 Handle incoming Barrier Operator Supported Report Commands. More...
 
static void zwave_command_class_barrier_operator_on_version_attribute_update (attribute_store_node_t updated_node, attribute_store_change_t change)
 Attribute callback function listening for Barrier Operator version attribute updates. More...
 
sl_status_t zwave_command_class_barrier_operator_control_handler (const zwave_controller_connection_info_t *connection_info, const uint8_t *frame_data, uint16_t frame_length)
 
sl_status_t zwave_command_class_barrier_operator_init ()
 This function initialize the Barrier Operator Command Class handler. More...
 

Macro Definition Documentation

◆ ATTRIBUTE

#define ATTRIBUTE (   type)    ATTRIBUTE_COMMAND_CLASS_BARRIER_OPERATOR_##type

◆ CLOSING_STATE

#define CLOSING_STATE   0xFC

◆ LOG_TAG

#define LOG_TAG   "zwave_command_class_barrier_operator"

◆ OPENING_STATE

#define OPENING_STATE   0xFE

◆ STATE_INDEX

#define STATE_INDEX   2

◆ SUBSYSTEM_STATE_INDEX

#define SUBSYSTEM_STATE_INDEX   3

◆ SUBSYSTEM_TYPE_INDEX

#define SUBSYSTEM_TYPE_INDEX   2

◆ SUPPORTED_REPORT_BITMASK_INDEX

#define SUPPORTED_REPORT_BITMASK_INDEX   2

◆ TARGET_VALUE_INDEX

#define TARGET_VALUE_INDEX   2

Function Documentation

◆ zwave_command_class_barrier_operator_control_handler()

sl_status_t zwave_command_class_barrier_operator_control_handler ( const zwave_controller_connection_info_t connection_info,
const uint8_t *  frame_data,
uint16_t  frame_length 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ zwave_command_class_barrier_operator_get()

static sl_status_t zwave_command_class_barrier_operator_get ( attribute_store_node_t  node,
uint8_t *  frame,
uint16_t *  frame_length 
)
static

Generates a Barrier Operator Get Command.

Parameters
nodeAttribute Store node that the resolver tries to resolve.
framePointer at which frame data can be written.
frame_lengthPointer at which the frame data length can be written.
Returns
sl_status_t following the attribute_resolver_function_t return codes.
Here is the caller graph for this function:

◆ zwave_command_class_barrier_operator_handle_report()

static sl_status_t zwave_command_class_barrier_operator_handle_report ( const zwave_controller_connection_info_t connection_info,
const uint8_t *  frame,
uint16_t  frame_length 
)
static

Handle incoming Barrier Operator Report Commands.

Parameters
connection_infozwave_controller_connection_info_t object.
framePointer to frame data
frame_lengthNumber of bytes contained in the frame
Returns
sl_status_t following the frame handling return codes.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ zwave_command_class_barrier_operator_handle_set()

static sl_status_t zwave_command_class_barrier_operator_handle_set ( const zwave_controller_connection_info_t connection_info,
const uint8_t *  frame,
uint16_t  frame_length 
)
static

Handles incoming Barrier Operator Set Commands.

It will convert it into a Generated GoToPercent command

Parameters
connection_infoConnection information with the sender
framePointer to frame data
frame_lengthNumber of bytes contained in the frame
Returns
sl_status_t following the attribute_resolver_function_t return codes.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ zwave_command_class_barrier_operator_handle_signal_report()

static sl_status_t zwave_command_class_barrier_operator_handle_signal_report ( const zwave_controller_connection_info_t connection_info,
const uint8_t *  frame,
uint16_t  frame_length 
)
static

Handle incoming Barrier Operator Singal Report Commands.

Parameters
connection_infozwave_controller_connection_info_t object.
framePointer to frame data
frame_lengthNumber of bytes contained in the frame
Returns
sl_status_t following the frame handling return codes.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ zwave_command_class_barrier_operator_handle_supported_report()

static sl_status_t zwave_command_class_barrier_operator_handle_supported_report ( const zwave_controller_connection_info_t connection_info,
const uint8_t *  frame,
uint16_t  frame_length 
)
static

Handle incoming Barrier Operator Supported Report Commands.

Parameters
connection_infozwave_controller_connection_info_t object.
framePointer to frame data
frame_lengthNumber of bytes contained in the frame
Returns
sl_status_t following the frame handling return codes.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ zwave_command_class_barrier_operator_on_version_attribute_update()

static void zwave_command_class_barrier_operator_on_version_attribute_update ( attribute_store_node_t  updated_node,
attribute_store_change_t  change 
)
static

Attribute callback function listening for Barrier Operator version attribute updates.

Parameters
updated_nodeAttribute Store node that was modified.
changeType of change applied to the node.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ zwave_command_class_barrier_operator_set()

static sl_status_t zwave_command_class_barrier_operator_set ( attribute_store_node_t  node,
uint8_t *  frame,
uint16_t *  frame_length 
)
static

Generates a Barrier Operator Set Command.

Parameters
nodeAttribute Store node that the resolver tries to resolve.
framePointer at which frame data can be written.
frame_lengthPointer at which the frame data length can be written.
Returns
sl_status_t following the attribute_resolver_function_t return codes.
Here is the caller graph for this function:

◆ zwave_command_class_barrier_operator_signal_get()

static sl_status_t zwave_command_class_barrier_operator_signal_get ( attribute_store_node_t  node,
uint8_t *  frame,
uint16_t *  frame_length 
)
static

Generates a Barrier Operator Signal Get Command.

Parameters
nodeAttribute Store node that the resolver tries to resolve.
framePointer at which frame data can be written.
frame_lengthPointer at which the frame data length can be written.
Returns
sl_status_t following the attribute_resolver_function_t return codes.
Here is the caller graph for this function:

◆ zwave_command_class_barrier_operator_signal_set()

static sl_status_t zwave_command_class_barrier_operator_signal_set ( attribute_store_node_t  node,
uint8_t *  frame,
uint16_t *  frame_length 
)
static

Generates a Barrier Operator Signal Set Command.

Parameters
nodeAttribute Store node that the resolver tries to resolve.
framePointer at which frame data can be written.
frame_lengthPointer at which the frame data length can be written.
Returns
sl_status_t following the attribute_resolver_function_t return codes.
Here is the caller graph for this function:

◆ zwave_command_class_barrier_operator_supported_get()

static sl_status_t zwave_command_class_barrier_operator_supported_get ( attribute_store_node_t  node,
uint8_t *  frame,
uint16_t *  frame_length 
)
static

Generates a Barrier Operator Supported Get Command.

Parameters
nodeAttribute Store node that the resolver tries to resolve.
framePointer at which frame data can be written.
frame_lengthPointer at which the frame data length can be written.
Returns
sl_status_t following the attribute_resolver_function_t return codes.
Here is the caller graph for this function: