Digi XBee(R) ANSI C Host Library
Data Fields
zcl_array_t Struct Reference

If a zcl_attribute_base_t has a type of ZCL_TYPE_ARRAY, its .value points to this structure. More...

#include "zigbee/zcl.h"

Data Fields

uint16_t max_count
 maximum number of elements to store
 
uint16_t current_count
 current number of elements
 
uint16_t element_size
 number of bytes in each element
 
uint8_t type
 type of data stored in array
 
const void FARvalue
 

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

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