29
29
#include < app/MessageDef/StatusIB.h>
30
30
#include < app/WriteHandler.h>
31
31
#include < app/data-model/Decode.h>
32
- #include < app/util/att-storage.h>
33
32
#include < app/util/attribute-storage.h>
34
33
#include < app/util/attribute-table.h>
35
34
#include < app/util/endpoint-config-api.h>
@@ -197,7 +196,7 @@ uint8_t emberAfClusterCount(EndpointId endpoint, bool server)
197
196
198
197
uint8_t emberAfClusterCountForEndpointType (const EmberAfEndpointType * type, bool server)
199
198
{
200
- const EmberAfClusterMask cluster_mask = server ? CLUSTER_MASK_SERVER : CLUSTER_MASK_CLIENT ;
199
+ const EmberAfClusterMask cluster_mask = server ? MATTER_CLUSTER_BITMAP_SERVER : MATTER_CLUSTER_BITMAP_CLIENT ;
201
200
202
201
return static_cast <uint8_t >(std::count_if (type->cluster , type->cluster + type->clusterCount ,
203
202
[=](const EmberAfCluster & cluster) { return (cluster.mask & cluster_mask) != 0 ; }));
@@ -210,7 +209,7 @@ Optional<AttributeId> emberAfGetServerAttributeIdByIndex(EndpointId endpoint, Cl
210
209
211
210
uint8_t emberAfClusterIndex (EndpointId endpoint, ClusterId clusterId, EmberAfClusterMask mask)
212
211
{
213
- if (endpoint == kSupportedEndpoint && clusterId == OtaSoftwareUpdateProvider::Id && (mask & CLUSTER_MASK_SERVER ))
212
+ if (endpoint == kSupportedEndpoint && clusterId == OtaSoftwareUpdateProvider::Id && (mask & MATTER_CLUSTER_BITMAP_SERVER ))
214
213
{
215
214
return 0 ;
216
215
}
@@ -234,7 +233,7 @@ const EmberAfCluster otaProviderCluster{
234
233
.attributes = nullptr ,
235
234
.attributeCount = 0 ,
236
235
.clusterSize = 0 ,
237
- .mask = CLUSTER_MASK_SERVER ,
236
+ .mask = MATTER_CLUSTER_BITMAP_SERVER ,
238
237
.functions = nullptr ,
239
238
.acceptedCommandList = acceptedCommands,
240
239
.generatedCommandList = generatedCommands,
0 commit comments