Z-Wave Protocol Controller Reference
zwapi_utils.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
19#ifndef ZWAPI_UTILS_H
20#define ZWAPI_UTILS_H
21
22// Generic includes
23#include <stdint.h>
24#include <stdbool.h>
25
27
28#ifdef __cplusplus
29extern "C" {
30#endif
31
37zwave_node_id_t zwapi_read_node_id(uint8_t *pData, uint8_t *index);
38
43void zwapi_write_node_id(uint8_t *pData,
44 uint8_t *index,
46
47#ifdef __cplusplus
48}
49#endif
50
51#endif // ZWAPI_UTILS_H
uint16_t zwave_node_id_t
Z-Wave NodeID type.
Definition: zwave_node_id_definitions.h:84
const zwave_node_id_t node_id
zwave_node_id_t zwapi_read_node_id(uint8_t *pData, uint8_t *index)
Read the node ID from buffer based on node ID basetype. Note that this helper also advances the index...
Definition: zwapi_utils.c:17
void zwapi_write_node_id(uint8_t *pData, uint8_t *index, zwave_node_id_t node_id)
Write the node ID in buffer based on node ID basetype. Note that this helper also advances the index.
Definition: zwapi_utils.c:27