blob: 374956092d7a5bb32c121facb47b4f5322231547 [file] [log] [blame]
/*
*
* Copyright (c) 2022 Project CHIP Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// THIS FILE IS GENERATED BY ZAP
// This file is generated from clusters-shared-Attributes.h.zapt
#pragma once
#include <app/data-model/DecodableList.h>
#include <app/data-model/List.h>
#include <clusters/shared/GlobalIds.h>
#include <lib/core/DataModelTypes.h>
#include <lib/core/TLV.h>
#include <lib/support/BitMask.h>
#include <clusters/shared/Enums.h>
namespace chip {
namespace app {
namespace Clusters {
namespace Globals {
namespace Attributes {
namespace GeneratedCommandList {
struct TypeInfo
{
using Type = DataModel::List<const chip::CommandId>;
using DecodableType = DataModel::DecodableList<chip::CommandId>;
using DecodableArgType = const DataModel::DecodableList<chip::CommandId> &;
static constexpr AttributeId GetAttributeId() { return Attributes::GeneratedCommandList::Id; }
static constexpr bool MustUseTimedWrite() { return false; }
};
} // namespace GeneratedCommandList
namespace AcceptedCommandList {
struct TypeInfo
{
using Type = DataModel::List<const chip::CommandId>;
using DecodableType = DataModel::DecodableList<chip::CommandId>;
using DecodableArgType = const DataModel::DecodableList<chip::CommandId> &;
static constexpr AttributeId GetAttributeId() { return Attributes::AcceptedCommandList::Id; }
static constexpr bool MustUseTimedWrite() { return false; }
};
} // namespace AcceptedCommandList
namespace AttributeList {
struct TypeInfo
{
using Type = DataModel::List<const chip::AttributeId>;
using DecodableType = DataModel::DecodableList<chip::AttributeId>;
using DecodableArgType = const DataModel::DecodableList<chip::AttributeId> &;
static constexpr AttributeId GetAttributeId() { return Attributes::AttributeList::Id; }
static constexpr bool MustUseTimedWrite() { return false; }
};
} // namespace AttributeList
namespace FeatureMap {
struct TypeInfo
{
using Type = uint32_t;
using DecodableType = uint32_t;
using DecodableArgType = uint32_t;
static constexpr AttributeId GetAttributeId() { return Attributes::FeatureMap::Id; }
static constexpr bool MustUseTimedWrite() { return false; }
};
} // namespace FeatureMap
namespace ClusterRevision {
struct TypeInfo
{
using Type = uint16_t;
using DecodableType = uint16_t;
using DecodableArgType = uint16_t;
static constexpr AttributeId GetAttributeId() { return Attributes::ClusterRevision::Id; }
static constexpr bool MustUseTimedWrite() { return false; }
};
} // namespace ClusterRevision
} // namespace Attributes
} // namespace Globals
} // namespace Clusters
} // namespace app
} // namespace chip