Z-Wave Protocol Controller Reference
zcl_rf_telemetry_cluster_server.c File Reference
#include "zcl_rf_telemetry_cluster_server.h"
#include "zwave_controller_callbacks.h"
#include "zwave_network_management.h"
#include "zwave_rx.h"
#include "zpc_attribute_store.h"
#include "zpc_attribute_store_network_helper.h"
#include "zwapi_protocol_basis.h"
#include "zwave_api_transport.h"
#include "sl_log.h"
#include "dotdot_mqtt.h"
#include "dotdot_mqtt_supported_generated_commands.h"
#include "dotdot_mqtt_generated_commands.h"
#include "attribute_store_helper.h"
#include "unify_dotdot_attribute_store_helpers.h"
#include "unify_dotdot_defined_attribute_types.h"
#include <string.h>
#include <stdlib.h>
Include dependency graph for zcl_rf_telemetry_cluster_server.c:

Macros

#define LOG_TAG   "zcl_zwave_telemetry_cluster_server"
 
#define DEFAULT_TX_REPORT_ENABLED   false
 Default value for Tx Report enabled the first time we create the attribute. More...
 
#define ZPC_ENDPOINT_ID   0
 Under which ZPC endpoint the RF Telemetry is available. More...
 
#define ATTRIBUTE(type)    DOTDOT_ATTRIBUTE_ID_PROTOCOL_CONTROLLER_RF_TELEMETRY_##type
 

Functions

static void create_rf_telemetry_attributes ()
 
static void publish_rf_telemetry_supported_generated_commands ()
 Publishes the RFTelemetry supported generated commands. More...
 
static void on_rf_telemetry_tx_report_enabled_desired_update (attribute_store_node_t node, attribute_store_change_t change)
 
static void on_rf_telemetry_pti_enabled_desired_update (attribute_store_node_t node, attribute_store_change_t change)
 
static void zcl_zwave_telemetry_on_frame_transmission (bool transmission_successful, const zwapi_tx_report_t *tx_report, zwave_node_id_t node_id)
 
sl_status_t zcl_rf_telemetry_cluster_server_init ()
 Initialize the ZCL ProtocolController RF Telemetry cluster service. More...
 

Variables

static zwave_controller_callbacks_t zcl_zwave_telemetry_callbacks = {.on_frame_transmission = &zcl_zwave_telemetry_on_frame_transmission}
 

Macro Definition Documentation

◆ ATTRIBUTE

#define ATTRIBUTE (   type)     DOTDOT_ATTRIBUTE_ID_PROTOCOL_CONTROLLER_RF_TELEMETRY_##type

◆ DEFAULT_TX_REPORT_ENABLED

#define DEFAULT_TX_REPORT_ENABLED   false

Default value for Tx Report enabled the first time we create the attribute.

◆ LOG_TAG

#define LOG_TAG   "zcl_zwave_telemetry_cluster_server"

◆ ZPC_ENDPOINT_ID

#define ZPC_ENDPOINT_ID   0

Under which ZPC endpoint the RF Telemetry is available.

Function Documentation

◆ create_rf_telemetry_attributes()

static void create_rf_telemetry_attributes ( )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ on_rf_telemetry_pti_enabled_desired_update()

static void on_rf_telemetry_pti_enabled_desired_update ( attribute_store_node_t  node,
attribute_store_change_t  change 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ on_rf_telemetry_tx_report_enabled_desired_update()

static void on_rf_telemetry_tx_report_enabled_desired_update ( attribute_store_node_t  node,
attribute_store_change_t  change 
)
static
Here is the caller graph for this function:

◆ publish_rf_telemetry_supported_generated_commands()

static void publish_rf_telemetry_supported_generated_commands ( )
static

Publishes the RFTelemetry supported generated commands.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ zcl_zwave_telemetry_on_frame_transmission()

static void zcl_zwave_telemetry_on_frame_transmission ( bool  transmission_successful,
const zwapi_tx_report_t tx_report,
zwave_node_id_t  node_id 
)
static
Here is the call graph for this function:

Variable Documentation

◆ zcl_zwave_telemetry_callbacks

zwave_controller_callbacks_t zcl_zwave_telemetry_callbacks = {.on_frame_transmission = &zcl_zwave_telemetry_on_frame_transmission}
static