| /* |
| * |
| * 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.h.zapt |
| |
| #pragma once |
| |
| #include <app/ConcreteAttributePath.h> |
| #include <app/data-model/DecodableList.h> |
| #include <app/data-model/List.h> |
| #include <app/data-model/Nullable.h> |
| #include <app/util/basic-types.h> |
| #include <lib/core/TLV.h> |
| #include <lib/support/BitMask.h> |
| |
| #include <clusters/shared/Attributes.h> |
| #include <clusters/shared/Enums.h> |
| #include <clusters/shared/Structs.h> |
| |
| #include <clusters/SmokeCoAlarm/AttributeIds.h> |
| #include <clusters/SmokeCoAlarm/ClusterId.h> |
| #include <clusters/SmokeCoAlarm/Enums.h> |
| #include <clusters/SmokeCoAlarm/Structs.h> |
| |
| namespace chip { |
| namespace app { |
| namespace Clusters { |
| namespace SmokeCoAlarm { |
| namespace Attributes { |
| |
| namespace ExpressedState { |
| struct TypeInfo |
| { |
| using Type = chip::app::Clusters::SmokeCoAlarm::ExpressedStateEnum; |
| using DecodableType = chip::app::Clusters::SmokeCoAlarm::ExpressedStateEnum; |
| using DecodableArgType = chip::app::Clusters::SmokeCoAlarm::ExpressedStateEnum; |
| |
| static constexpr ClusterId GetClusterId() { return Clusters::SmokeCoAlarm::Id; } |
| static constexpr AttributeId GetAttributeId() { return Attributes::ExpressedState::Id; } |
| static constexpr bool MustUseTimedWrite() { return false; } |
| }; |
| } // namespace ExpressedState |
| namespace SmokeState { |
| struct TypeInfo |
| { |
| using Type = chip::app::Clusters::SmokeCoAlarm::AlarmStateEnum; |
| using DecodableType = chip::app::Clusters::SmokeCoAlarm::AlarmStateEnum; |
| using DecodableArgType = chip::app::Clusters::SmokeCoAlarm::AlarmStateEnum; |
| |
| static constexpr ClusterId GetClusterId() { return Clusters::SmokeCoAlarm::Id; } |
| static constexpr AttributeId GetAttributeId() { return Attributes::SmokeState::Id; } |
| static constexpr bool MustUseTimedWrite() { return false; } |
| }; |
| } // namespace SmokeState |
| namespace COState { |
| struct TypeInfo |
| { |
| using Type = chip::app::Clusters::SmokeCoAlarm::AlarmStateEnum; |
| using DecodableType = chip::app::Clusters::SmokeCoAlarm::AlarmStateEnum; |
| using DecodableArgType = chip::app::Clusters::SmokeCoAlarm::AlarmStateEnum; |
| |
| static constexpr ClusterId GetClusterId() { return Clusters::SmokeCoAlarm::Id; } |
| static constexpr AttributeId GetAttributeId() { return Attributes::COState::Id; } |
| static constexpr bool MustUseTimedWrite() { return false; } |
| }; |
| } // namespace COState |
| namespace BatteryAlert { |
| struct TypeInfo |
| { |
| using Type = chip::app::Clusters::SmokeCoAlarm::AlarmStateEnum; |
| using DecodableType = chip::app::Clusters::SmokeCoAlarm::AlarmStateEnum; |
| using DecodableArgType = chip::app::Clusters::SmokeCoAlarm::AlarmStateEnum; |
| |
| static constexpr ClusterId GetClusterId() { return Clusters::SmokeCoAlarm::Id; } |
| static constexpr AttributeId GetAttributeId() { return Attributes::BatteryAlert::Id; } |
| static constexpr bool MustUseTimedWrite() { return false; } |
| }; |
| } // namespace BatteryAlert |
| namespace DeviceMuted { |
| struct TypeInfo |
| { |
| using Type = chip::app::Clusters::SmokeCoAlarm::MuteStateEnum; |
| using DecodableType = chip::app::Clusters::SmokeCoAlarm::MuteStateEnum; |
| using DecodableArgType = chip::app::Clusters::SmokeCoAlarm::MuteStateEnum; |
| |
| static constexpr ClusterId GetClusterId() { return Clusters::SmokeCoAlarm::Id; } |
| static constexpr AttributeId GetAttributeId() { return Attributes::DeviceMuted::Id; } |
| static constexpr bool MustUseTimedWrite() { return false; } |
| }; |
| } // namespace DeviceMuted |
| namespace TestInProgress { |
| struct TypeInfo |
| { |
| using Type = bool; |
| using DecodableType = bool; |
| using DecodableArgType = bool; |
| |
| static constexpr ClusterId GetClusterId() { return Clusters::SmokeCoAlarm::Id; } |
| static constexpr AttributeId GetAttributeId() { return Attributes::TestInProgress::Id; } |
| static constexpr bool MustUseTimedWrite() { return false; } |
| }; |
| } // namespace TestInProgress |
| namespace HardwareFaultAlert { |
| struct TypeInfo |
| { |
| using Type = bool; |
| using DecodableType = bool; |
| using DecodableArgType = bool; |
| |
| static constexpr ClusterId GetClusterId() { return Clusters::SmokeCoAlarm::Id; } |
| static constexpr AttributeId GetAttributeId() { return Attributes::HardwareFaultAlert::Id; } |
| static constexpr bool MustUseTimedWrite() { return false; } |
| }; |
| } // namespace HardwareFaultAlert |
| namespace EndOfServiceAlert { |
| struct TypeInfo |
| { |
| using Type = chip::app::Clusters::SmokeCoAlarm::EndOfServiceEnum; |
| using DecodableType = chip::app::Clusters::SmokeCoAlarm::EndOfServiceEnum; |
| using DecodableArgType = chip::app::Clusters::SmokeCoAlarm::EndOfServiceEnum; |
| |
| static constexpr ClusterId GetClusterId() { return Clusters::SmokeCoAlarm::Id; } |
| static constexpr AttributeId GetAttributeId() { return Attributes::EndOfServiceAlert::Id; } |
| static constexpr bool MustUseTimedWrite() { return false; } |
| }; |
| } // namespace EndOfServiceAlert |
| namespace InterconnectSmokeAlarm { |
| struct TypeInfo |
| { |
| using Type = chip::app::Clusters::SmokeCoAlarm::AlarmStateEnum; |
| using DecodableType = chip::app::Clusters::SmokeCoAlarm::AlarmStateEnum; |
| using DecodableArgType = chip::app::Clusters::SmokeCoAlarm::AlarmStateEnum; |
| |
| static constexpr ClusterId GetClusterId() { return Clusters::SmokeCoAlarm::Id; } |
| static constexpr AttributeId GetAttributeId() { return Attributes::InterconnectSmokeAlarm::Id; } |
| static constexpr bool MustUseTimedWrite() { return false; } |
| }; |
| } // namespace InterconnectSmokeAlarm |
| namespace InterconnectCOAlarm { |
| struct TypeInfo |
| { |
| using Type = chip::app::Clusters::SmokeCoAlarm::AlarmStateEnum; |
| using DecodableType = chip::app::Clusters::SmokeCoAlarm::AlarmStateEnum; |
| using DecodableArgType = chip::app::Clusters::SmokeCoAlarm::AlarmStateEnum; |
| |
| static constexpr ClusterId GetClusterId() { return Clusters::SmokeCoAlarm::Id; } |
| static constexpr AttributeId GetAttributeId() { return Attributes::InterconnectCOAlarm::Id; } |
| static constexpr bool MustUseTimedWrite() { return false; } |
| }; |
| } // namespace InterconnectCOAlarm |
| namespace ContaminationState { |
| struct TypeInfo |
| { |
| using Type = chip::app::Clusters::SmokeCoAlarm::ContaminationStateEnum; |
| using DecodableType = chip::app::Clusters::SmokeCoAlarm::ContaminationStateEnum; |
| using DecodableArgType = chip::app::Clusters::SmokeCoAlarm::ContaminationStateEnum; |
| |
| static constexpr ClusterId GetClusterId() { return Clusters::SmokeCoAlarm::Id; } |
| static constexpr AttributeId GetAttributeId() { return Attributes::ContaminationState::Id; } |
| static constexpr bool MustUseTimedWrite() { return false; } |
| }; |
| } // namespace ContaminationState |
| namespace SmokeSensitivityLevel { |
| struct TypeInfo |
| { |
| using Type = chip::app::Clusters::SmokeCoAlarm::SensitivityEnum; |
| using DecodableType = chip::app::Clusters::SmokeCoAlarm::SensitivityEnum; |
| using DecodableArgType = chip::app::Clusters::SmokeCoAlarm::SensitivityEnum; |
| |
| static constexpr ClusterId GetClusterId() { return Clusters::SmokeCoAlarm::Id; } |
| static constexpr AttributeId GetAttributeId() { return Attributes::SmokeSensitivityLevel::Id; } |
| static constexpr bool MustUseTimedWrite() { return false; } |
| }; |
| } // namespace SmokeSensitivityLevel |
| namespace ExpiryDate { |
| struct TypeInfo |
| { |
| using Type = uint32_t; |
| using DecodableType = uint32_t; |
| using DecodableArgType = uint32_t; |
| |
| static constexpr ClusterId GetClusterId() { return Clusters::SmokeCoAlarm::Id; } |
| static constexpr AttributeId GetAttributeId() { return Attributes::ExpiryDate::Id; } |
| static constexpr bool MustUseTimedWrite() { return false; } |
| }; |
| } // namespace ExpiryDate |
| namespace GeneratedCommandList { |
| struct TypeInfo : public Clusters::Globals::Attributes::GeneratedCommandList::TypeInfo |
| { |
| static constexpr ClusterId GetClusterId() { return Clusters::SmokeCoAlarm::Id; } |
| }; |
| } // namespace GeneratedCommandList |
| namespace AcceptedCommandList { |
| struct TypeInfo : public Clusters::Globals::Attributes::AcceptedCommandList::TypeInfo |
| { |
| static constexpr ClusterId GetClusterId() { return Clusters::SmokeCoAlarm::Id; } |
| }; |
| } // namespace AcceptedCommandList |
| namespace AttributeList { |
| struct TypeInfo : public Clusters::Globals::Attributes::AttributeList::TypeInfo |
| { |
| static constexpr ClusterId GetClusterId() { return Clusters::SmokeCoAlarm::Id; } |
| }; |
| } // namespace AttributeList |
| namespace FeatureMap { |
| struct TypeInfo : public Clusters::Globals::Attributes::FeatureMap::TypeInfo |
| { |
| static constexpr ClusterId GetClusterId() { return Clusters::SmokeCoAlarm::Id; } |
| }; |
| } // namespace FeatureMap |
| namespace ClusterRevision { |
| struct TypeInfo : public Clusters::Globals::Attributes::ClusterRevision::TypeInfo |
| { |
| static constexpr ClusterId GetClusterId() { return Clusters::SmokeCoAlarm::Id; } |
| }; |
| } // namespace ClusterRevision |
| |
| struct TypeInfo |
| { |
| struct DecodableType |
| { |
| static constexpr ClusterId GetClusterId() { return Clusters::SmokeCoAlarm::Id; } |
| |
| CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); |
| |
| Attributes::ExpressedState::TypeInfo::DecodableType expressedState = |
| static_cast<chip::app::Clusters::SmokeCoAlarm::ExpressedStateEnum>(0); |
| Attributes::SmokeState::TypeInfo::DecodableType smokeState = |
| static_cast<chip::app::Clusters::SmokeCoAlarm::AlarmStateEnum>(0); |
| Attributes::COState::TypeInfo::DecodableType COState = static_cast<chip::app::Clusters::SmokeCoAlarm::AlarmStateEnum>(0); |
| Attributes::BatteryAlert::TypeInfo::DecodableType batteryAlert = |
| static_cast<chip::app::Clusters::SmokeCoAlarm::AlarmStateEnum>(0); |
| Attributes::DeviceMuted::TypeInfo::DecodableType deviceMuted = |
| static_cast<chip::app::Clusters::SmokeCoAlarm::MuteStateEnum>(0); |
| Attributes::TestInProgress::TypeInfo::DecodableType testInProgress = static_cast<bool>(0); |
| Attributes::HardwareFaultAlert::TypeInfo::DecodableType hardwareFaultAlert = static_cast<bool>(0); |
| Attributes::EndOfServiceAlert::TypeInfo::DecodableType endOfServiceAlert = |
| static_cast<chip::app::Clusters::SmokeCoAlarm::EndOfServiceEnum>(0); |
| Attributes::InterconnectSmokeAlarm::TypeInfo::DecodableType interconnectSmokeAlarm = |
| static_cast<chip::app::Clusters::SmokeCoAlarm::AlarmStateEnum>(0); |
| Attributes::InterconnectCOAlarm::TypeInfo::DecodableType interconnectCOAlarm = |
| static_cast<chip::app::Clusters::SmokeCoAlarm::AlarmStateEnum>(0); |
| Attributes::ContaminationState::TypeInfo::DecodableType contaminationState = |
| static_cast<chip::app::Clusters::SmokeCoAlarm::ContaminationStateEnum>(0); |
| Attributes::SmokeSensitivityLevel::TypeInfo::DecodableType smokeSensitivityLevel = |
| static_cast<chip::app::Clusters::SmokeCoAlarm::SensitivityEnum>(0); |
| Attributes::ExpiryDate::TypeInfo::DecodableType expiryDate = static_cast<uint32_t>(0); |
| Attributes::GeneratedCommandList::TypeInfo::DecodableType generatedCommandList; |
| Attributes::AcceptedCommandList::TypeInfo::DecodableType acceptedCommandList; |
| Attributes::AttributeList::TypeInfo::DecodableType attributeList; |
| Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast<uint32_t>(0); |
| Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast<uint16_t>(0); |
| }; |
| }; |
| } // namespace Attributes |
| } // namespace SmokeCoAlarm |
| } // namespace Clusters |
| } // namespace app |
| } // namespace chip |