Z-Wave Protocol Controller Reference
zwave_command_class_time.c File Reference
#include <time.h>
#include "assert.h"
#include "platform_date_time.h"
#include "ZW_classcmd.h"
#include "zwave_command_class_time.h"
#include "zwave_command_handler.h"
#include "zwave_command_class_indices.h"
#include "zwave_command_classes_utils.h"
#include "zwave_controller_connection_info.h"
#include "zwave_tx.h"
Include dependency graph for zwave_command_class_time.c:

Functions

static sl_status_t zwave_command_class_time_handle_date_get (const zwave_controller_connection_info_t *connection_info)
 Command handler for the Date Get command. More...
 
static sl_status_t zwave_command_class_time_handle_time_get (const zwave_controller_connection_info_t *connection_info)
 Command handler for the Time Get command. More...
 
sl_status_t zwave_command_class_time_support_handler (const zwave_controller_connection_info_t *connection_info, const uint8_t *frame_data, uint16_t frame_length)
 Handles incoming time encapsulated commands. More...
 
sl_status_t zwave_command_class_time_init ()
 setup for time command class More...
 

Function Documentation

◆ zwave_command_class_time_handle_date_get()

static sl_status_t zwave_command_class_time_handle_date_get ( const zwave_controller_connection_info_t connection_info)
static

Command handler for the Date Get command.

The Gateway will send return a Date Report frame containing the current date (day, month and year).

Parameters
connection_infoInfo about the connection properties of this frame.
Returns
sl_status_t indicating the outcome of returning the date.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ zwave_command_class_time_handle_time_get()

static sl_status_t zwave_command_class_time_handle_time_get ( const zwave_controller_connection_info_t connection_info)
static

Command handler for the Time Get command.

The Gateway will send return a Time Report frame containing the current time (hours, minutes and seconds).

Parameters
connection_infoInfo about the connection properties of this frame.
Returns
sl_status_t indicating the outcome of returning the time.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ zwave_command_class_time_init()

sl_status_t zwave_command_class_time_init ( void  )

setup for time 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_time_support_handler()

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

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