Z-Wave Protocol Controller Reference
zwave_command_class_version.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
154#ifndef ZWAVE_COMMAND_CLASS_VERSION_H
155#define ZWAVE_COMMAND_CLASS_VERSION_H
156
157#define COMMAND_CLASS_VERSION_ATTRIBUTE_TYPE_MASK 0xFF0000FF
158#define COMMAND_CLASS_IDENTIFIER_ATTRIBUTE_TYPE_MASK 0x0000FF00
159
160#define IS_ATTRIBUTE_TYPE_VERSION_CC_ATTRIBUTE(type) \
161 ((COMMAND_CLASS_VERSION_ATTRIBUTE_TYPE_MASK & type) == 0x00000001) \
162 && (((COMMAND_CLASS_IDENTIFIER_ATTRIBUTE_TYPE_MASK & type) >> 8) > 0x19)
163
164#ifdef __cplusplus
165extern "C" {
166#endif
167
168// Includes from other components
169#include "sl_status.h"
170#include "attribute_store.h"
171
172// Generic includes
173#include <stdbool.h>
174
185bool is_version_cc_found(attribute_store_node_t node);
186
198
199#ifdef __cplusplus
200}
201#endif
202
203#endif //ZWAVE_COMMAND_CLASS_VERSION_H
uint32_t sl_status_t
Definition: sl_status.h:139
bool is_version_cc_found(attribute_store_node_t node)
Checks we know that the version CC is supported by the node.
Definition: zwave_command_class_version.c:1017
sl_status_t zwave_command_class_version_init()
Intitialize the Version Command Class control APIs.
Definition: zwave_command_class_version.c:1028
SL Status Codes.