blob: 7673ee7a6c24c1b6250ab4962fa123092fbc4a9b [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-Attributes.ipp.zapt
#include <clusters/GeneralCommissioning/Attributes.h>
#include <app/data-model/Decode.h>
#include <app/data-model/WrappedStructEncoder.h>
namespace chip {
namespace app {
namespace Clusters {
namespace GeneralCommissioning {
namespace Attributes {
CHIP_ERROR TypeInfo::DecodableType::Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path)
{
switch (path.mAttributeId)
{
case Attributes::Breadcrumb::TypeInfo::GetAttributeId():
return DataModel::Decode(reader, breadcrumb);
case Attributes::BasicCommissioningInfo::TypeInfo::GetAttributeId():
return DataModel::Decode(reader, basicCommissioningInfo);
case Attributes::RegulatoryConfig::TypeInfo::GetAttributeId():
return DataModel::Decode(reader, regulatoryConfig);
case Attributes::LocationCapability::TypeInfo::GetAttributeId():
return DataModel::Decode(reader, locationCapability);
case Attributes::SupportsConcurrentConnection::TypeInfo::GetAttributeId():
return DataModel::Decode(reader, supportsConcurrentConnection);
case Attributes::TCAcceptedVersion::TypeInfo::GetAttributeId():
return DataModel::Decode(reader, TCAcceptedVersion);
case Attributes::TCMinRequiredVersion::TypeInfo::GetAttributeId():
return DataModel::Decode(reader, TCMinRequiredVersion);
case Attributes::TCAcknowledgements::TypeInfo::GetAttributeId():
return DataModel::Decode(reader, TCAcknowledgements);
case Attributes::TCAcknowledgementsRequired::TypeInfo::GetAttributeId():
return DataModel::Decode(reader, TCAcknowledgementsRequired);
case Attributes::TCUpdateDeadline::TypeInfo::GetAttributeId():
return DataModel::Decode(reader, TCUpdateDeadline);
case Attributes::RecoveryIdentifier::TypeInfo::GetAttributeId():
return DataModel::Decode(reader, recoveryIdentifier);
case Attributes::NetworkRecoveryReason::TypeInfo::GetAttributeId():
return DataModel::Decode(reader, networkRecoveryReason);
case Attributes::GeneratedCommandList::TypeInfo::GetAttributeId():
return DataModel::Decode(reader, generatedCommandList);
case Attributes::AcceptedCommandList::TypeInfo::GetAttributeId():
return DataModel::Decode(reader, acceptedCommandList);
case Attributes::AttributeList::TypeInfo::GetAttributeId():
return DataModel::Decode(reader, attributeList);
case Attributes::FeatureMap::TypeInfo::GetAttributeId():
return DataModel::Decode(reader, featureMap);
case Attributes::ClusterRevision::TypeInfo::GetAttributeId():
return DataModel::Decode(reader, clusterRevision);
default:
return CHIP_NO_ERROR;
}
}
} // namespace Attributes
} // namespace GeneralCommissioning
} // namespace Clusters
} // namespace app
} // namespace chip