Z-Wave Protocol Controller Reference
zwave_command_class_powerlevel.h File Reference
#include "sl_status.h"
#include "zwave_rx.h"
#include "zwapi_protocol_basis.h"
#include "ctimer.h"
#include "ZW_classcmd.h"
Include dependency graph for zwave_command_class_powerlevel.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  power_level_test
 
struct  power_level_setting
 

Typedefs

typedef struct power_level_test power_level_test_t
 
typedef struct power_level_setting powerlevel_setting_t
 

Enumerations

enum  power_level_test_status_t { TEST_FAILED = POWERLEVEL_TEST_NODE_REPORT_ZW_TEST_FAILED , TEST_SUCCESSFUL = POWERLEVEL_TEST_NODE_REPORT_ZW_TEST_SUCCES , TEST_IN_PROGRESS = POWERLEVEL_TEST_NODE_REPORT_ZW_TEST_INPROGRESS }
 

Functions

sl_status_t zwave_command_class_powerlevel_init (void)
 setup for powerelvel command class More...
 
sl_status_t zwave_command_class_powerlevel_support_handler (const zwave_controller_connection_info_t *connection_info, const uint8_t *frame_data, uint16_t frame_length)
 Handles incoming powerlevel commands. More...
 

Typedef Documentation

◆ power_level_test_t

Settings and state of powerlevel test.

◆ powerlevel_setting_t

Powerlevel configuration

Enumeration Type Documentation

◆ power_level_test_status_t

Possible values for Powerlevel test status

Enumerator
TEST_FAILED 

None of the frames were acknowdledged by the destination.

Test completed and at least one frame was acknowledged by the destination

TEST_SUCCESSFUL 

Test is ongoing.

TEST_IN_PROGRESS 

Function Documentation

◆ zwave_command_class_powerlevel_init()

sl_status_t zwave_command_class_powerlevel_init ( void  )

setup for powerelvel command class

This setup will register the time 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_powerlevel_support_handler()

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

Handles incoming powerlevel 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: