XBee Firmware Library  1.6.0
Functions | Variables
zcl_commissioning.c File Reference

Functions

int _zcl_comm_command_build (wpan_envelope_t FAR *envelope, zcl_header_nomfg_t *header)
 
int _zcl_comm_command_send (wpan_envelope_t FAR *envelope)
 
int _zcl_comm_startup_control_set (const zcl_attribute_full_t FAR *attribute, zcl_attribute_write_rec_t *rec)
 
int rand_range (int range)
 
int zcl_comm_clust_handler (const wpan_envelope_t FAR *envelope, void FAR *context)
 
void zcl_comm_factory_reset (uint16_t ms_delay)
 Perform a locally-triggered factory reset to default SAS. More...
 
int zcl_comm_reset_parameters (wpan_envelope_t FAR *envelope, const zcl_comm_reset_startup_param_t *parameters)
 Send a "Reset Startup Parameters" command to the ZCL Commissioning Cluster. More...
 
int zcl_comm_response (const wpan_envelope_t FAR *envelope, uint_fast8_t status)
 Send response to a Commissioning Server Cluster request. More...
 
int zcl_comm_restart_device (wpan_envelope_t FAR *envelope, const zcl_comm_restart_device_cmd_t *parameters)
 Send a "Restart Device" command to the ZCL Commissioning Cluster. More...
 
void zcl_comm_sas_init (zcl_comm_startup_param_t *parameters)
 
bool_t zcl_comm_sas_is_valid (const zcl_comm_state_t FAR *comm)
 

Variables

const zcl64_t zcl_comm_global_epid = ZCL_COMM_GLOBAL_EPID
 
const zcl_attribute_tree_t zcl_comm_startup_attribute_tree []
 
const zcl_comm_startup_attr_t zcl_comm_startup_attributes
 
zcl_comm_state_t zcl_comm_state = { { 0 } }
 

Detailed Description

Implementation of ZCL Commissioning Cluster.

For devices with limited resources (e.g., PXBee), we could have a "minimal" zcl_comm_startup_param_t structure and zcl_comm_startup_attributes object, similar to how we have "base" and "full" attribute types.

It would be necessary to have a flag though, so either the minimal or full structure can be passed to functions that process it.