blob: 3d1a17d764d224c74f617339c3c282f3a4e79318 [file] [log] [blame]
{{> header}}
// Prevent multiple inclusion
#pragma once
#include <app-common/zap-generated/ids/Clusters.h>
// This is the mapping of IDs to cluster names assuming a format according
// to the "EmberAfClusterName" defined in the ZCL header.
// The names of clusters that are not present, are removed.
{{#zcl_clusters}}
#if defined(ZCL_USING_{{asDelimitedMacro this.define}}_SERVER) || defined(ZCL_USING_{{asDelimitedMacro this.define}}_CLIENT)
#define CHIP_PRINTCLUSTER_{{asDelimitedMacro this.define}} { chip::app::Clusters::{{asUpperCamelCase this.label}}::Id, "{{this.label}}" },
#else
#define CHIP_PRINTCLUSTER_{{asDelimitedMacro this.define}}
#endif
{{/zcl_clusters}}
#define CLUSTER_IDS_TO_NAMES \
{{#zcl_clusters}}
CHIP_PRINTCLUSTER_{{asDelimitedMacro this.define}} \
{{/zcl_clusters}}
#define MAX_CLUSTER_NAME_LENGTH {{zcl_cluster_largest_label_length}}