Logo
DSR GreenBOSS  1.1.0
Macros
Commands to be sent by the Bidirectional in Operational application

Macros

#define GBOSS_CMD_ID_ATTR_REPORT_RX(device_config, tx_cfg, zb_cluster_id, attr_count, attr_reports, rx_after_tx)   gboss_cmd_attr_report_rx((zb_cluster_id), (attr_count), (attr_reports), (device_config), (tx_cfg), (rx_after_tx))
 GPD command ZCL Attribute Reporting for Bidirectional on Operational mode. More...
 
#define GBOSS_CMD_ATTR_REQUEST(device_config, tx_cfg, zb_cluster_id, attr_count, attr_reports)   gboss_cmd_attr_request((zb_cluster_id), (attr_count), (attr_reports), (device_config), (tx_cfg))
 GPD command Attributes Request. More...
 

Detailed Description

Macro Definition Documentation

§ GBOSS_CMD_ID_ATTR_REPORT_RX

#define GBOSS_CMD_ID_ATTR_REPORT_RX (   device_config,
  tx_cfg,
  zb_cluster_id,
  attr_count,
  attr_reports,
  rx_after_tx 
)    gboss_cmd_attr_report_rx((zb_cluster_id), (attr_count), (attr_reports), (device_config), (tx_cfg), (rx_after_tx))

GPD command ZCL Attribute Reporting for Bidirectional on Operational mode.

Parameters
device_configDescribes main configuration constants of a GP device
tx_cfgTX configuration outlining how a transmission should proceed concerning the channels to be used and the number of repetitions
zb_cluster_idCluster ID used for this report
attr_countNumber of attributes being reported
attr_reportsArray of reports, which contain Attribute ID, Attribute Type and Attribute Data for each one rx_after_tx The value of RxAfterTx flag in GPDF header

§ GBOSS_CMD_ATTR_REQUEST

#define GBOSS_CMD_ATTR_REQUEST (   device_config,
  tx_cfg,
  zb_cluster_id,
  attr_count,
  attr_reports 
)    gboss_cmd_attr_request((zb_cluster_id), (attr_count), (attr_reports), (device_config), (tx_cfg))

GPD command Attributes Request.

To be transmitted by GPD which supports Bidirectional in Operational mode. Requests GPS to send Write Attributes to GPD.

Parameters
device_configDescribes main configuration constants of a GP device
tx_cfgTX configuration outlining how a transmission should proceed concerning the channels to be used and the number of repetitions
zb_cluster_idCluster ID used for this report
attr_countNumber of attributes being reported
attr_reportsArray of reports, which contain Attribute ID, Attribute Type and Attribute Data for each one
ret = GBOSS_CMD_ATTR_REQUEST(&g_device_config, &g_tx_cfg,
ZB_ZCL_ATTRIB_LIST_GET_PTR(power_config_battery_voltage_attrs) + 1);