Z-Wave Protocol Controller Reference
zwave_command_class_scene_controller_configuration_control.c File Reference
Include dependency graph for zwave_command_class_scene_controller_configuration_control.c:

Macros

#define LOG_TAG   "zwave_command_class_scene_controller_configuration"
 
#define ATTRIBUTE(type)   ATTRIBUTE_COMMAND_CLASS_SCENE_##type
 
#define CONFIGURATION_REPORT_GROUP_ID_INDEX   2
 
#define CONFIGURATION_REPORT_SCENE_ID_INDEX   3
 
#define CONFIGURATION_REPORT_DIMMING_DURATION_INDEX   4
 

Functions

static sl_status_t scene_controller_configuration_set (attribute_store_node_t node, uint8_t *frame, uint16_t *frame_length)
 Prepares a Scene Controller Configuration Set Command. More...
 
static sl_status_t scene_controller_configuration_get (attribute_store_node_t node, uint8_t *frame, uint16_t *frame_length)
 
static void on_desired_scene_controller_configuration_update (attribute_store_node_t updated_node, attribute_store_change_t change)
 Reacts to desired values updates under the Controller Configuration attribute. More...
 
static void on_association_group_id_update (attribute_store_node_t group_id_node, attribute_store_change_t change)
 Reacts to Association Group ID updates and. More...
 
static void on_scene_controller_configuration_set_send_data_complete (attribute_store_node_t node, resolver_rule_type_t rule_type, zpc_resolver_event_t event)
 Decides what to do after we've sent a Scene Controller Configuration Set Command. More...
 
static sl_status_t handle_scene_controller_configuration_report (const zwave_controller_connection_info_t *info, const uint8_t *frame, uint16_t frame_length)
 Process an incoming Scene Controller Configuration Report Command. More...
 
static sl_status_t scene_activation_control_handler (const zwave_controller_connection_info_t *connection, const uint8_t *frame_data, uint16_t frame_length)
 
sl_status_t zwave_command_class_scene_controller_configuration_control_init ()
 Initializes the Scene Controller Configuration Command Class control handler. More...
 

Macro Definition Documentation

◆ ATTRIBUTE

#define ATTRIBUTE (   type)    ATTRIBUTE_COMMAND_CLASS_SCENE_##type

◆ CONFIGURATION_REPORT_DIMMING_DURATION_INDEX

#define CONFIGURATION_REPORT_DIMMING_DURATION_INDEX   4

◆ CONFIGURATION_REPORT_GROUP_ID_INDEX

#define CONFIGURATION_REPORT_GROUP_ID_INDEX   2

◆ CONFIGURATION_REPORT_SCENE_ID_INDEX

#define CONFIGURATION_REPORT_SCENE_ID_INDEX   3

◆ LOG_TAG

#define LOG_TAG   "zwave_command_class_scene_controller_configuration"

Function Documentation

◆ handle_scene_controller_configuration_report()

static sl_status_t handle_scene_controller_configuration_report ( const zwave_controller_connection_info_t info,
const uint8_t *  frame,
uint16_t  frame_length 
)
static

Process an incoming Scene Controller Configuration Report Command.

Parameters
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:

◆ on_association_group_id_update()

static void on_association_group_id_update ( attribute_store_node_t  group_id_node,
attribute_store_change_t  change 
)
static

Reacts to Association Group ID updates and.

Parameters
group_id_node
change
Here is the call graph for this function:
Here is the caller graph for this function:

◆ on_desired_scene_controller_configuration_update()

static void on_desired_scene_controller_configuration_update ( attribute_store_node_t  updated_node,
attribute_store_change_t  change 
)
static

Reacts to desired values updates under the Controller Configuration attribute.

Parameters
updated_nodeThe child node of the Controller configuration node
changeType of attribute store change that was applied.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ on_scene_controller_configuration_set_send_data_complete()

static void on_scene_controller_configuration_set_send_data_complete ( attribute_store_node_t  node,
resolver_rule_type_t  rule_type,
zpc_resolver_event_t  event 
)
static

Decides what to do after we've sent a Scene Controller Configuration Set Command.

Parameters
nodeAttribute Store node that was resolved
rule_typeThe type of rule that was applied (Set/Get)
eventThe outcome of the resolution.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ scene_activation_control_handler()

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

◆ scene_controller_configuration_get()

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

◆ scene_controller_configuration_set()

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

Prepares a Scene Controller Configuration Set Command.

Parameters
nodeAttribute Store node to resolve (Controller configuration)
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: