The ApplicationType attribute indicates the specific application usage for the cluster. ApplicationType is subdivided into Group, Type and an Index number, as follows:
Group = Bits 24 to 31 An indication of the cluster this attribute is part of. Multistate Input clusters have Group = 0x0d.
Type = Bits 16 to 23 The physical quantity that the PresentValue attribute of the cluster represents.
Index = Bits 0 to 15 The specific application usage of the cluster.
§ ZB_ZCL_MI_GROUP_ID
| #define ZB_ZCL_MI_GROUP_ID 0x0d |
§ ZB_ZCL_MI_SET_APP_TYPE_WITH_ID
| #define ZB_ZCL_MI_SET_APP_TYPE_WITH_ID |
( |
|
_type, |
|
|
|
_id |
|
) |
| ((ZB_ZCL_MI_GROUP_ID << 24) | ((_type & 0xff) << 16) | (_id & 0xffff)) |
§ zb_zcl_mi_application_types_e