tsZCL_ClusterInstance
This structure contains information about an instance of a cluster on a device:
struct tsZCL_ClusterInstance
{
bool_t bIsServer;
tsZCL_ClusterDefinition *psClusterDefinition;
void *pvEndPointSharedStructPtr;
uint8 *pu8AttributeControlBits;
void *pvEndPointCustomStructPtr;
tfpZCL_ZCLCustomcallCallBackFunction
pCustomcallCallBackFunction;
};
where:
bIsServerindicates whether the cluster instance is a server or client:TRUE - server
FALSE - client
psClusterDefinitionis a pointer to the cluster definition structure - see Section 6.1.2pvEndPointSharedStructPtris a pointer to the shared device structure that contains the cluster’s attributespu8AttributeControlBitsis a pointer to an array of bitmaps, one for each attribute in the relevant cluster - for internal cluster definition use only, array should be initialized to 0pvEndPointCustomStructPtris a pointer to any custom data (only relevant to a user-defined cluster)pCustomcallCallBackFunctionis a pointer to a custom callback function (only relevant to a user-defined cluster)
Parent topic:General Structures