XBee Firmware Library  1.6.0
Data Fields
zcl_array_t Struct Reference

Data Fields

uint16_t current_count
 current number of elements More...
 
uint16_t element_size
 number of bytes in each element More...
 
uint16_t max_count
 maximum number of elements to store More...
 
uint8_t type
 type of data stored in array More...
 
const void FAR * value
 

Detailed Description

If a zcl_attribute_base_t has a type of ZCL_TYPE_ARRAY, its .value points to this structure. It's possible to read and write values of the array by accessing

(uint8_t FAR *)arr->value + index * arr->element_size