Z-Wave Protocol Controller Reference
zwave_command_handler.h File Reference
#include "zwave_controller_connection_info.h"
#include "zwave_controller.h"
#include "zwave_rx.h"
#include "sl_status.h"
#include "zwave_command_class_version_types.h"
#include <stdbool.h>
Include dependency graph for zwave_command_handler.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  zwave_command_handler_t
 Z-Wave Command Class handler object. More...
 

Typedefs

typedef sl_status_t(* zwave_command_class_handler_t) (const zwave_controller_connection_info_t *connection, const uint8_t *frame_data, uint16_t frame_length)
 This is the function which will be executed when the frame of a given Command Class is received. More...
 

Functions

sl_status_t zwave_command_handler_init (void)
 Initialize the command handlers. More...
 
int zwave_command_handler_teardown (void)
 Teardown of the Z-Wave command handler. More...
 
sl_status_t zwave_command_handler_register_handler (zwave_command_handler_t new_command_class_handler)
 Register a command class handler. More...
 
zwave_cc_version_t zwave_command_handler_get_version (zwave_command_class_t command_class)
 Get the version of Command Class that the handler handles. More...
 
sl_status_t zwave_command_handler_dispatch (const zwave_controller_connection_info_t *connection_info, const uint8_t *frame_data, uint16_t frame_length)
 Dispatches a frame to its respective Command Class handler. More...
 
bool zwave_command_handler_controls (zwave_command_class_t command_class)
 Check if we control a given command class. More...
 
void zwave_command_handler_print_info (int fd)
 Print Command Class Version info. More...