Z-Wave Protocol Controller Reference
zwave_command_handler_internals.h
Go to the documentation of this file.
1/******************************************************************************
2 * # License
3 * <b>Copyright 2021 Silicon Laboratories Inc. www.silabs.com</b>
4 ******************************************************************************
5 * The licensor of this software is Silicon Laboratories Inc. Your use of this
6 * software is governed by the terms of Silicon Labs Master Software License
7 * Agreement (MSLA) available at
8 * www.silabs.com/about-us/legal/master-software-license-agreement. This
9 * software is distributed to you in Source Code format and is governed by the
10 * sections of the MSLA applicable to Source Code.
11 *
12 *****************************************************************************/
13
14#ifndef ZWAVE_COMMAND_HANDLER_INTERNALS_H
15#define ZWAVE_COMMAND_HANDLER_INTERNALS_H
16
17// Includes from this component
19
20// Includes from other components
22#include "zwave_controller.h"
23
24// Generic includes
25#include <vector>
26#include <set>
27#include <string>
28
37#ifdef __cplusplus
38extern "C" {
39#endif
40
41// Our shared variables between source files in this module:
43
44// Compare 2 command class handlers.
47 const zwave_command_handler_t &b) const
48 {
49 return a.command_class < b.command_class;
50 }
51};
52
55 const zwave_command_handler_t &b) const
56 {
57 return (std::string(a.command_class_name)
58 < std::string(b.command_class_name));
59 }
60};
61
62typedef std::set<zwave_command_handler_t,
65
66// The command class handler list (shared amongst files in the component)
67extern std::multiset<zwave_command_handler_t, zwave_command_handler_compare>
69
87
88#ifdef __cplusplus
89}
90#endif
93#endif //ZWAVE_COMMAND_HANDLER_INTERNALS_H
bool supports_frame_at_security_level(zwave_command_handler_it_t it, zwave_controller_encapsulation_scheme_t scheme)
Verifies if a Command Class is supported at a certain Security level.
zwave_controller_encapsulation_scheme_t zpc_highest_scheme
std::multiset< zwave_command_handler_t, zwave_command_handler_compare > command_handler_list
std::set< zwave_command_handler_t, zwave_command_handler_compare >::iterator zwave_command_handler_it_t
Definition: zwave_command_handler_internals.h:64
zwave_controller_encapsulation_scheme_t
Definition: zwave_controller_connection_info.h:33
Definition: zwave_command_handler_internals.h:53
bool operator()(const zwave_command_handler_t &a, const zwave_command_handler_t &b) const
Definition: zwave_command_handler_internals.h:54
Definition: zwave_command_handler_internals.h:45
bool operator()(const zwave_command_handler_t &a, const zwave_command_handler_t &b) const
Definition: zwave_command_handler_internals.h:46
Z-Wave Command Class handler object.
Definition: zwave_command_handler.h:82
const char * command_class_name
Definition: zwave_command_handler.h:102
zwave_command_class_t command_class
Definition: zwave_command_handler.h:98