tsZCL_ClusterDefinition
This structure defines a cluster used on a device:
typedef struct
{
uint16 u16ClusterEnum;
bool_t bIsManufacturerSpecificCluster;
uint8 u8ClusterControlFlags;
uint16 u16NumberOfAttributes;
tsZCL_AttributeDefinition *psAttributeDefinition;
tsZCL_SceneExtensionTable *psSceneExtensionTable;
#ifdef ZCL_COMMAND_DISCOVERY_SUPPORTED
uint8 u8NumberOfCommands;
tsZCL_CommandDefinition *psCommandDefinition;
#endif
} tsZCL_ClusterDefinition;
Where:
u16ClusterEnum
is the Cluster ID.bIsManufacturerSpecificCluster
indicates whether the cluster is specific to a manufacturer (proprietary):TRUE - proprietary cluster
FALSE - ZigBee cluster
u8ClusterControlFlags is a bitmap containing control bits in two parts, as follows:
Bits |
Description |
Values |
---|---|---|
0 - 3 |
Type of security |
Indicates the type of security key used via one of the following |
Bits |
Description |
Values |
---|---|---|
0 - 3 |
Type of security |
Indicates the type of security key used via one of the following teZCL_ZCLSend Security enumerations (see Section 7.1.6): E_ZCL_SECURITY_NETWORK, E_ZCL_SECURITY_APPLINK |
4 - 7 |
Cluster mirror |
Used internally to indicate whether the cluster is mirrored, as follows: |
u16NumberOfAttributes
indicates the number of attributes in the cluster.psAttributeDefinition
is a pointer to an array of attribute definition structures - see Section 6.1.3.psSceneExtensionTable
is a pointer to a structure containing a Scene Extension table - see Section 6.1.20.The following optional pair of fields are related to the Command Discovery feature (see Section 2.9):
u8NumberOfCommands
is the number of supported commands in the Command Definition table (see below).psCommandDefinition
is a pointer to a Command Definition table which contains a list of the commands supported by the cluster - each entry of the table contains the details of a supported command in atsZCL_CommandDefinition
structure (see Section 6.1.19).
Parent topic:General Structures