Digi XBee(R) ANSI C Host Library
|
Implementation of ZCL Commissioning Cluster. More...
Functions | |
int | _zcl_comm_startup_control_set (const zcl_attribute_full_t FAR *attribute, zcl_attribute_write_rec_t *rec) |
Limit values of startup_control based on firmware type (e.g., some firmwares can't be ZCL_COMM_STARTUP_COORDINATOR). More... | |
int | zcl_comm_response (const wpan_envelope_t FAR *envelope, uint_fast8_t status) |
Send response to a Commissioning Server Cluster request. | |
int | _zcl_comm_command_build (wpan_envelope_t FAR *envelope, zcl_header_nomfg_t *header) |
Common function used by zcl_comm_restart_device and zcl_comm_reset_parameters. More... | |
int | _zcl_comm_command_send (wpan_envelope_t FAR *envelope) |
Common function used by zcl_comm_restart_device and zcl_comm_reset_parameters. 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... | |
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 | rand_range (int range) |
bool_t | zcl_comm_sas_is_valid (const zcl_comm_state_t FAR *comm) |
Partial implementation of a function to validate a Startup Attribute Set before trying to use it. More... | |
int | zcl_comm_clust_handler (const wpan_envelope_t FAR *envelope, void FAR *context) |
void | zcl_comm_sas_init (zcl_comm_startup_param_t *parameters) |
void | zcl_comm_factory_reset (uint16_t ms_delay) |
Perform a locally-triggered factory reset to default SAS. More... | |
Variables | |
const zcl64_t | zcl_comm_global_epid = ZCL_COMM_GLOBAL_EPID |
zcl_comm_state_t | zcl_comm_state = { { 0 } } |
const zcl_comm_startup_attr_t | zcl_comm_startup_attributes |
const zcl_attribute_tree_t | zcl_comm_startup_attribute_tree [] |
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.