Z-Wave Protocol Controller Reference
zwave_command_class_humidity_control_mode.c File Reference
#include <stdlib.h>
#include "zwave_command_class_humidity_control_mode.h"
#include "zwave_command_class_humidity_control_types.h"
#include "zwave_command_classes_utils.h"
#include "ZW_classcmd.h"
#include "zwave_command_class_indices.h"
#include "zwave_command_handler.h"
#include "zwave_command_class_version_types.h"
#include "zpc_attribute_store_network_helper.h"
#include "attribute_store_defined_attribute_types.h"
#include "attribute_resolver.h"
#include "attribute_store.h"
#include "attribute_store_helper.h"
#include "sl_log.h"
Include dependency graph for zwave_command_class_humidity_control_mode.c:

Macros

#define LOG_TAG   "zwave_command_class_humidity_control_mode"
 
#define HUMIDITY_CONTROL_MODE_SET_MODE_HUMIDIFY_BITMASK   0x01
 
#define HUMIDITY_CONTROL_MODE_SET_MODE_DEHUMIDIFY_BITMASK   0x02
 
#define HUMIDITY_CONTROL_MODE_SET_MODE_AUTO_BITMASK   0x04
 

Functions

static zwave_cc_version_t get_humidity_control_mode_version (attribute_store_node_t endpoint_node)
 Get current humidity control mode version of the CC. More...
 
static bool is_humidity_control_mode_compatible_with_version (humidity_control_mode_t supported_humidity_control_mode_type, zwave_cc_version_t current_version)
 Check if the humidity control mode is compatible with the current version. More...
 
static bool is_humidity_control_mode_supported (humidity_control_mode_t humidity_control_mode_type, attribute_store_node_t endpoint_id_node)
 
static void zwave_command_class_humidity_control_mode_on_version_attribute_update (attribute_store_node_t updated_node, attribute_store_change_t change)
 
static sl_status_t zwave_command_class_humidity_control_mode_get (attribute_store_node_t node, uint8_t *frame, uint16_t *frame_length)
 
static sl_status_t zwave_command_class_humidity_control_mode_set (attribute_store_node_t node, uint8_t *frame, uint16_t *frame_length)
 
sl_status_t zwave_command_class_humidity_control_mode_handle_report (const zwave_controller_connection_info_t *connection_info, const uint8_t *frame_data, uint16_t frame_length)
 
static sl_status_t zwave_command_class_humidity_control_mode_supported_get (attribute_store_node_t node, uint8_t *frame, uint16_t *frame_length)
 
sl_status_t zwave_command_class_humidity_control_mode_supported_handle_report (const zwave_controller_connection_info_t *connection_info, const uint8_t *frame_data, uint16_t frame_length)
 
sl_status_t zwave_command_class_humidity_control_mode_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_humidity_control_mode_init ()
 

Macro Definition Documentation

◆ HUMIDITY_CONTROL_MODE_SET_MODE_AUTO_BITMASK

#define HUMIDITY_CONTROL_MODE_SET_MODE_AUTO_BITMASK   0x04

◆ HUMIDITY_CONTROL_MODE_SET_MODE_DEHUMIDIFY_BITMASK

#define HUMIDITY_CONTROL_MODE_SET_MODE_DEHUMIDIFY_BITMASK   0x02

◆ HUMIDITY_CONTROL_MODE_SET_MODE_HUMIDIFY_BITMASK

#define HUMIDITY_CONTROL_MODE_SET_MODE_HUMIDIFY_BITMASK   0x01

◆ LOG_TAG

#define LOG_TAG   "zwave_command_class_humidity_control_mode"

Function Documentation

◆ get_humidity_control_mode_version()

static zwave_cc_version_t get_humidity_control_mode_version ( attribute_store_node_t  endpoint_node)
static

Get current humidity control mode version of the CC.

Parameters
nodeEndpoint node
Returns
zwave_cc_version_t 0 if anything goes wrong, version number otherwise
Here is the caller graph for this function:

◆ is_humidity_control_mode_compatible_with_version()

static bool is_humidity_control_mode_compatible_with_version ( humidity_control_mode_t  supported_humidity_control_mode_type,
zwave_cc_version_t  current_version 
)
static

Check if the humidity control mode is compatible with the current version.

Parameters
supported_humidity_control_mode_typeTested humidity control mode
current_versionCurrent Z-Wave command class version
Returns
true if supported_humidity_control_mode_type is compatible with current_version; false otherwise
Here is the caller graph for this function:

◆ is_humidity_control_mode_supported()

static bool is_humidity_control_mode_supported ( humidity_control_mode_t  humidity_control_mode_type,
attribute_store_node_t  endpoint_id_node 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ zwave_command_class_humidity_control_mode_control_handler()

sl_status_t zwave_command_class_humidity_control_mode_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_humidity_control_mode_get()

static sl_status_t zwave_command_class_humidity_control_mode_get ( attribute_store_node_t  node,
uint8_t *  frame,
uint16_t *  frame_length 
)
static
Here is the caller graph for this function:

◆ zwave_command_class_humidity_control_mode_handle_report()

sl_status_t zwave_command_class_humidity_control_mode_handle_report ( 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_humidity_control_mode_on_version_attribute_update()

static void zwave_command_class_humidity_control_mode_on_version_attribute_update ( attribute_store_node_t  updated_node,
attribute_store_change_t  change 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ zwave_command_class_humidity_control_mode_set()

static sl_status_t zwave_command_class_humidity_control_mode_set ( attribute_store_node_t  node,
uint8_t *  frame,
uint16_t *  frame_length 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ zwave_command_class_humidity_control_mode_supported_get()

static sl_status_t zwave_command_class_humidity_control_mode_supported_get ( attribute_store_node_t  node,
uint8_t *  frame,
uint16_t *  frame_length 
)
static
Here is the caller graph for this function:

◆ zwave_command_class_humidity_control_mode_supported_handle_report()

sl_status_t zwave_command_class_humidity_control_mode_supported_handle_report ( 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: