Coverage Report

Created: 2025-06-24 06:17

/src/connectedhomeip/zzz_generated/app-common/clusters/SmokeCoAlarm/Attributes.ipp
Line
Count
Source (jump to first uncovered line)
1
/*
2
 *
3
 *    Copyright (c) 2022 Project CHIP Authors
4
 *
5
 *    Licensed under the Apache License, Version 2.0 (the "License");
6
 *    you may not use this file except in compliance with the License.
7
 *    You may obtain a copy of the License at
8
 *
9
 *        http://www.apache.org/licenses/LICENSE-2.0
10
 *
11
 *    Unless required by applicable law or agreed to in writing, software
12
 *    distributed under the License is distributed on an "AS IS" BASIS,
13
 *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
 *    See the License for the specific language governing permissions and
15
 *    limitations under the License.
16
 */
17
18
// THIS FILE IS GENERATED BY ZAP
19
// This file is generated from clusters-Attributes.ipp.zapt
20
21
#include <clusters/SmokeCoAlarm/Attributes.h>
22
23
#include <app/data-model/Decode.h>
24
#include <app/data-model/WrappedStructEncoder.h>
25
26
namespace chip {
27
namespace app {
28
namespace Clusters {
29
namespace SmokeCoAlarm {
30
namespace Attributes {
31
CHIP_ERROR TypeInfo::DecodableType::Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path)
32
0
{
33
0
    switch (path.mAttributeId)
34
0
    {
35
0
    case Attributes::ExpressedState::TypeInfo::GetAttributeId():
36
0
        return DataModel::Decode(reader, expressedState);
37
0
    case Attributes::SmokeState::TypeInfo::GetAttributeId():
38
0
        return DataModel::Decode(reader, smokeState);
39
0
    case Attributes::COState::TypeInfo::GetAttributeId():
40
0
        return DataModel::Decode(reader, COState);
41
0
    case Attributes::BatteryAlert::TypeInfo::GetAttributeId():
42
0
        return DataModel::Decode(reader, batteryAlert);
43
0
    case Attributes::DeviceMuted::TypeInfo::GetAttributeId():
44
0
        return DataModel::Decode(reader, deviceMuted);
45
0
    case Attributes::TestInProgress::TypeInfo::GetAttributeId():
46
0
        return DataModel::Decode(reader, testInProgress);
47
0
    case Attributes::HardwareFaultAlert::TypeInfo::GetAttributeId():
48
0
        return DataModel::Decode(reader, hardwareFaultAlert);
49
0
    case Attributes::EndOfServiceAlert::TypeInfo::GetAttributeId():
50
0
        return DataModel::Decode(reader, endOfServiceAlert);
51
0
    case Attributes::InterconnectSmokeAlarm::TypeInfo::GetAttributeId():
52
0
        return DataModel::Decode(reader, interconnectSmokeAlarm);
53
0
    case Attributes::InterconnectCOAlarm::TypeInfo::GetAttributeId():
54
0
        return DataModel::Decode(reader, interconnectCOAlarm);
55
0
    case Attributes::ContaminationState::TypeInfo::GetAttributeId():
56
0
        return DataModel::Decode(reader, contaminationState);
57
0
    case Attributes::SmokeSensitivityLevel::TypeInfo::GetAttributeId():
58
0
        return DataModel::Decode(reader, smokeSensitivityLevel);
59
0
    case Attributes::ExpiryDate::TypeInfo::GetAttributeId():
60
0
        return DataModel::Decode(reader, expiryDate);
61
0
    case Attributes::GeneratedCommandList::TypeInfo::GetAttributeId():
62
0
        return DataModel::Decode(reader, generatedCommandList);
63
0
    case Attributes::AcceptedCommandList::TypeInfo::GetAttributeId():
64
0
        return DataModel::Decode(reader, acceptedCommandList);
65
0
    case Attributes::AttributeList::TypeInfo::GetAttributeId():
66
0
        return DataModel::Decode(reader, attributeList);
67
0
    case Attributes::FeatureMap::TypeInfo::GetAttributeId():
68
0
        return DataModel::Decode(reader, featureMap);
69
0
    case Attributes::ClusterRevision::TypeInfo::GetAttributeId():
70
0
        return DataModel::Decode(reader, clusterRevision);
71
0
    default:
72
0
        return CHIP_NO_ERROR;
73
0
    }
74
0
}
75
} // namespace Attributes
76
} // namespace SmokeCoAlarm
77
} // namespace Clusters
78
} // namespace app
79
} // namespace chip