Logo
DSR GreenBOSS  1.1.0
Data Fields
gboss_device_config_s Struct Reference

Main configuration constants of a GP device. More...

#include <gboss_app.h>

Data Fields

zb_uint16_t manufacturer
 Manufacturer id. More...
 
zb_uint16_t model
 Model id. More...
 
zb_ieee_addr_t src_addr
 64-bit source address for ApplicationID = 0b010 mode More...
 
zb_uint32_t src_id
 32-bit device identifier for the GP NWK layer More...
 
zb_uint8_t application_id
 ApplicationID value. Only 0 and 2 values are supported now - gboss_app_ids_t. More...
 
zb_uint8_t endpoint
 Endpoint id if ApplicationID = 0b010. More...
 
zb_uint8_t device_id
 8-bit device id used in a commissioning command - gboss_dev_id_t More...
 
gboss_comm_options_t comm_options
 Commissioning options. More...
 
gboss_comm_ext_options_t comm_extended_options
 Commissioning extended options. More...
 
gboss_comm_app_info_t comm_app_info
 Commissioning application info. More...
 
zb_uint8_t cmd_list_count
 Number of items in the cmd_list array. More...
 
const zb_uint8_tcmd_list
 Pointer to the cmd array or NULL. More...
 
zb_uint8_t cluster_srv_cnt
 Number of supported server clusters. More...
 
const zb_uint16_tcluster_list_srv
 List of supported server clusters or NULL. More...
 
zb_uint8_t cluster_cli_cnt
 Number of supported client clusters. More...
 
const zb_uint16_tcluster_list_cli
 List of supported client clusters or NULL. More...
 

Detailed Description

Main configuration constants of a GP device.

static const zb_uint8_t gs_commands[] = {
GBOSS_APP_CMD_ID_OFF,
GBOSS_APP_CMD_ID_ON,
GBOSS_APP_CMD_ID_TOGGLE
};
static const zb_uint16_t gs_clusters_cli[] = {
ZB_ZCL_CLUSTER_ID_LEVEL_CONTROL
};
static const zb_uint16_t gs_clusters_srv[] = {
ZB_ZCL_CLUSTER_ID_REL_HUMIDITY_MEASUREMENT
};
static const gboss_device_config_t g_device_config = {
.manufacturer = 0x1234, /* DSR */
.model = 0x0001,
.src_addr = {0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88},
.src_id = 0xabacadac,
.application_id = GBOSS_APP_ID_0,
.endpoint = 0x55,
.comm_options = {
.mac_sequence_number_capability = GBOSS_MAC_SEQ_NUM_INCREMENTAL,
.rx_on_capability = ZB_FALSE,
.application_info_present = ZB_TRUE,
.pan_id_request = ZB_FALSE,
.gp_security_key_request = ZB_FALSE,
.fixed_location = ZB_FALSE,
.extended_options_present = ZB_TRUE},
.comm_extended_options = {
.security_level_capabilities = GBOSS_SECURITY_KEY_CAP_L3,
.gpd_key_present = ZB_TRUE,
.gpd_key_encryption = ZB_TRUE,
.gpd_outgoing_counter_present = ZB_TRUE},
.comm_app_info = {
.manuf_id_present = ZB_TRUE,
.model_id_present = ZB_TRUE,
.gpd_commands_present = ZB_TRUE,
.cluster_list_present = ZB_TRUE,
.switch_info_present = ZB_FALSE,
.gpd_app_descr_command_follows = ZB_FALSE},
.cmd_list_count = ZB_ARRAY_SIZE(gs_commands),
.cmd_list = gs_commands,
.cluster_srv_cnt = ZB_ARRAY_SIZE(gs_clusters_srv),
.cluster_list_srv = gs_clusters_srv,
.cluster_cli_cnt = ZB_ARRAY_SIZE(gs_clusters_cli),
.cluster_list_cli = gs_clusters_cli
};

Field Documentation

§ manufacturer

zb_uint16_t gboss_device_config_s::manufacturer

Manufacturer id.

§ model

zb_uint16_t gboss_device_config_s::model

Model id.

§ src_addr

zb_ieee_addr_t gboss_device_config_s::src_addr

64-bit source address for ApplicationID = 0b010 mode

§ src_id

zb_uint32_t gboss_device_config_s::src_id

32-bit device identifier for the GP NWK layer

§ application_id

zb_uint8_t gboss_device_config_s::application_id

ApplicationID value. Only 0 and 2 values are supported now - gboss_app_ids_t.

Referenced by zb_nwk_frame_prepare().

§ endpoint

zb_uint8_t gboss_device_config_s::endpoint

Endpoint id if ApplicationID = 0b010.

§ device_id

zb_uint8_t gboss_device_config_s::device_id

8-bit device id used in a commissioning command - gboss_dev_id_t

§ comm_options

gboss_comm_options_t gboss_device_config_s::comm_options

Commissioning options.

§ comm_extended_options

gboss_comm_ext_options_t gboss_device_config_s::comm_extended_options

Commissioning extended options.

§ comm_app_info

gboss_comm_app_info_t gboss_device_config_s::comm_app_info

Commissioning application info.

§ cmd_list_count

zb_uint8_t gboss_device_config_s::cmd_list_count

Number of items in the cmd_list array.

Referenced by zb_commission_prepare().

§ cmd_list

const zb_uint8_t* gboss_device_config_s::cmd_list

Pointer to the cmd array or NULL.

Referenced by zb_commission_prepare().

§ cluster_srv_cnt

zb_uint8_t gboss_device_config_s::cluster_srv_cnt

Number of supported server clusters.

Referenced by zb_commission_prepare().

§ cluster_list_srv

const zb_uint16_t* gboss_device_config_s::cluster_list_srv

List of supported server clusters or NULL.

Referenced by zb_commission_prepare().

§ cluster_cli_cnt

zb_uint8_t gboss_device_config_s::cluster_cli_cnt

Number of supported client clusters.

Referenced by zb_commission_prepare().

§ cluster_list_cli

const zb_uint16_t* gboss_device_config_s::cluster_list_cli

List of supported client clusters or NULL.

Referenced by zb_commission_prepare().


The documentation for this struct was generated from the following file: