Z-Wave Protocol Controller Reference
zwave_rx_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
26#ifndef ZWAVE_RX_INTERNALS_H
27#define ZWAVE_RX_INTERNALS_H
28
29// Includes from other components
31#include "sl_status.h"
32
33// Helper macro to return if the index exceeds the array length
34#define ZWAVE_RX_VERIFY_OVERFLOW(current_index, array_length) \
35 if (current_index >= array_length) { \
36 return; \
37 }
38
39#ifdef __cplusplus
40extern "C" {
41#endif
42
83sl_status_t zwave_rx_init(const char *serial_port,
84 int *serial_port_fd,
85 int8_t normal_tx_power_dbm,
86 int8_t measured_0dBm_power,
87 int16_t max_lr_tx_power_dbm,
89
97
103
104#ifdef __cplusplus
105}
106#endif
109#endif //ZWAVE_RX_INTERNALS_H
uint32_t sl_status_t
Definition: sl_status.h:139
zwave_rf_region_t
Definition: zwave_rf_region.h:31
void zwave_rx_on_zwave_api_started()
Inform other components that Z-Wave RX just receievd a Z-Wave API started notification.
Definition: zwave_rx_callbacks.c:69
sl_status_t zwave_rx_init(const char *serial_port, int *serial_port_fd, int8_t normal_tx_power_dbm, int8_t measured_0dBm_power, int16_t max_lr_tx_power_dbm, zwave_controller_region_t region)
Initialize the Z-Wave Rx component.
Definition: zwave_rx.c:110
void zwave_rx_shutdown()
Shutdown the module.
Definition: zwave_rx.c:260
SL Status Codes.