/*
 *
 *    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/FanControl/AttributeIds.h>
#include <clusters/FanControl/ClusterId.h>
#include <clusters/FanControl/Enums.h>
#include <clusters/FanControl/Structs.h>

namespace chip {
namespace app {
namespace Clusters {
namespace FanControl {
namespace Attributes {

namespace FanMode {
struct TypeInfo {
  using Type = chip::app::Clusters::FanControl::FanModeEnum;
  using DecodableType = chip::app::Clusters::FanControl::FanModeEnum;
  using DecodableArgType = chip::app::Clusters::FanControl::FanModeEnum;

  static constexpr ClusterId GetClusterId() { return Clusters::FanControl::Id; }
  static constexpr AttributeId GetAttributeId() {
    return Attributes::FanMode::Id;
  }
  static constexpr bool MustUseTimedWrite() { return false; }
};
} // namespace FanMode
namespace FanModeSequence {
struct TypeInfo {
  using Type = chip::app::Clusters::FanControl::FanModeSequenceEnum;
  using DecodableType = chip::app::Clusters::FanControl::FanModeSequenceEnum;
  using DecodableArgType = chip::app::Clusters::FanControl::FanModeSequenceEnum;

  static constexpr ClusterId GetClusterId() { return Clusters::FanControl::Id; }
  static constexpr AttributeId GetAttributeId() {
    return Attributes::FanModeSequence::Id;
  }
  static constexpr bool MustUseTimedWrite() { return false; }
};
} // namespace FanModeSequence
namespace PercentSetting {
struct TypeInfo {
  using Type = chip::app::DataModel::Nullable<chip::Percent>;
  using DecodableType = chip::app::DataModel::Nullable<chip::Percent>;
  using DecodableArgType =
      const chip::app::DataModel::Nullable<chip::Percent> &;

  static constexpr ClusterId GetClusterId() { return Clusters::FanControl::Id; }
  static constexpr AttributeId GetAttributeId() {
    return Attributes::PercentSetting::Id;
  }
  static constexpr bool MustUseTimedWrite() { return false; }
};
} // namespace PercentSetting
namespace PercentCurrent {
struct TypeInfo {
  using Type = chip::Percent;
  using DecodableType = chip::Percent;
  using DecodableArgType = chip::Percent;

  static constexpr ClusterId GetClusterId() { return Clusters::FanControl::Id; }
  static constexpr AttributeId GetAttributeId() {
    return Attributes::PercentCurrent::Id;
  }
  static constexpr bool MustUseTimedWrite() { return false; }
};
} // namespace PercentCurrent
namespace SpeedMax {
struct TypeInfo {
  using Type = uint8_t;
  using DecodableType = uint8_t;
  using DecodableArgType = uint8_t;

  static constexpr ClusterId GetClusterId() { return Clusters::FanControl::Id; }
  static constexpr AttributeId GetAttributeId() {
    return Attributes::SpeedMax::Id;
  }
  static constexpr bool MustUseTimedWrite() { return false; }
};
} // namespace SpeedMax
namespace SpeedSetting {
struct TypeInfo {
  using Type = chip::app::DataModel::Nullable<uint8_t>;
  using DecodableType = chip::app::DataModel::Nullable<uint8_t>;
  using DecodableArgType = const chip::app::DataModel::Nullable<uint8_t> &;

  static constexpr ClusterId GetClusterId() { return Clusters::FanControl::Id; }
  static constexpr AttributeId GetAttributeId() {
    return Attributes::SpeedSetting::Id;
  }
  static constexpr bool MustUseTimedWrite() { return false; }
};
} // namespace SpeedSetting
namespace SpeedCurrent {
struct TypeInfo {
  using Type = uint8_t;
  using DecodableType = uint8_t;
  using DecodableArgType = uint8_t;

  static constexpr ClusterId GetClusterId() { return Clusters::FanControl::Id; }
  static constexpr AttributeId GetAttributeId() {
    return Attributes::SpeedCurrent::Id;
  }
  static constexpr bool MustUseTimedWrite() { return false; }
};
} // namespace SpeedCurrent
namespace RockSupport {
struct TypeInfo {
  using Type = chip::BitMask<chip::app::Clusters::FanControl::RockBitmap>;
  using DecodableType =
      chip::BitMask<chip::app::Clusters::FanControl::RockBitmap>;
  using DecodableArgType =
      chip::BitMask<chip::app::Clusters::FanControl::RockBitmap>;

  static constexpr ClusterId GetClusterId() { return Clusters::FanControl::Id; }
  static constexpr AttributeId GetAttributeId() {
    return Attributes::RockSupport::Id;
  }
  static constexpr bool MustUseTimedWrite() { return false; }
};
} // namespace RockSupport
namespace RockSetting {
struct TypeInfo {
  using Type = chip::BitMask<chip::app::Clusters::FanControl::RockBitmap>;
  using DecodableType =
      chip::BitMask<chip::app::Clusters::FanControl::RockBitmap>;
  using DecodableArgType =
      chip::BitMask<chip::app::Clusters::FanControl::RockBitmap>;

  static constexpr ClusterId GetClusterId() { return Clusters::FanControl::Id; }
  static constexpr AttributeId GetAttributeId() {
    return Attributes::RockSetting::Id;
  }
  static constexpr bool MustUseTimedWrite() { return false; }
};
} // namespace RockSetting
namespace WindSupport {
struct TypeInfo {
  using Type = chip::BitMask<chip::app::Clusters::FanControl::WindBitmap>;
  using DecodableType =
      chip::BitMask<chip::app::Clusters::FanControl::WindBitmap>;
  using DecodableArgType =
      chip::BitMask<chip::app::Clusters::FanControl::WindBitmap>;

  static constexpr ClusterId GetClusterId() { return Clusters::FanControl::Id; }
  static constexpr AttributeId GetAttributeId() {
    return Attributes::WindSupport::Id;
  }
  static constexpr bool MustUseTimedWrite() { return false; }
};
} // namespace WindSupport
namespace WindSetting {
struct TypeInfo {
  using Type = chip::BitMask<chip::app::Clusters::FanControl::WindBitmap>;
  using DecodableType =
      chip::BitMask<chip::app::Clusters::FanControl::WindBitmap>;
  using DecodableArgType =
      chip::BitMask<chip::app::Clusters::FanControl::WindBitmap>;

  static constexpr ClusterId GetClusterId() { return Clusters::FanControl::Id; }
  static constexpr AttributeId GetAttributeId() {
    return Attributes::WindSetting::Id;
  }
  static constexpr bool MustUseTimedWrite() { return false; }
};
} // namespace WindSetting
namespace AirflowDirection {
struct TypeInfo {
  using Type = chip::app::Clusters::FanControl::AirflowDirectionEnum;
  using DecodableType = chip::app::Clusters::FanControl::AirflowDirectionEnum;
  using DecodableArgType =
      chip::app::Clusters::FanControl::AirflowDirectionEnum;

  static constexpr ClusterId GetClusterId() { return Clusters::FanControl::Id; }
  static constexpr AttributeId GetAttributeId() {
    return Attributes::AirflowDirection::Id;
  }
  static constexpr bool MustUseTimedWrite() { return false; }
};
} // namespace AirflowDirection
namespace GeneratedCommandList {
struct TypeInfo
    : public Clusters::Globals::Attributes::GeneratedCommandList::TypeInfo {
  static constexpr ClusterId GetClusterId() { return Clusters::FanControl::Id; }
};
} // namespace GeneratedCommandList
namespace AcceptedCommandList {
struct TypeInfo
    : public Clusters::Globals::Attributes::AcceptedCommandList::TypeInfo {
  static constexpr ClusterId GetClusterId() { return Clusters::FanControl::Id; }
};
} // namespace AcceptedCommandList
namespace AttributeList {
struct TypeInfo
    : public Clusters::Globals::Attributes::AttributeList::TypeInfo {
  static constexpr ClusterId GetClusterId() { return Clusters::FanControl::Id; }
};
} // namespace AttributeList
namespace FeatureMap {
struct TypeInfo : public Clusters::Globals::Attributes::FeatureMap::TypeInfo {
  static constexpr ClusterId GetClusterId() { return Clusters::FanControl::Id; }
};
} // namespace FeatureMap
namespace ClusterRevision {
struct TypeInfo
    : public Clusters::Globals::Attributes::ClusterRevision::TypeInfo {
  static constexpr ClusterId GetClusterId() { return Clusters::FanControl::Id; }
};
} // namespace ClusterRevision

struct TypeInfo {
  struct DecodableType {
    static constexpr ClusterId GetClusterId() {
      return Clusters::FanControl::Id;
    }

    CHIP_ERROR Decode(TLV::TLVReader &reader,
                      const ConcreteAttributePath &path);

    Attributes::FanMode::TypeInfo::DecodableType fanMode =
        static_cast<chip::app::Clusters::FanControl::FanModeEnum>(0);
    Attributes::FanModeSequence::TypeInfo::DecodableType fanModeSequence =
        static_cast<chip::app::Clusters::FanControl::FanModeSequenceEnum>(0);
    Attributes::PercentSetting::TypeInfo::DecodableType percentSetting;
    Attributes::PercentCurrent::TypeInfo::DecodableType percentCurrent =
        static_cast<chip::Percent>(0);
    Attributes::SpeedMax::TypeInfo::DecodableType speedMax =
        static_cast<uint8_t>(0);
    Attributes::SpeedSetting::TypeInfo::DecodableType speedSetting;
    Attributes::SpeedCurrent::TypeInfo::DecodableType speedCurrent =
        static_cast<uint8_t>(0);
    Attributes::RockSupport::TypeInfo::DecodableType rockSupport =
        static_cast<chip::BitMask<chip::app::Clusters::FanControl::RockBitmap>>(
            0);
    Attributes::RockSetting::TypeInfo::DecodableType rockSetting =
        static_cast<chip::BitMask<chip::app::Clusters::FanControl::RockBitmap>>(
            0);
    Attributes::WindSupport::TypeInfo::DecodableType windSupport =
        static_cast<chip::BitMask<chip::app::Clusters::FanControl::WindBitmap>>(
            0);
    Attributes::WindSetting::TypeInfo::DecodableType windSetting =
        static_cast<chip::BitMask<chip::app::Clusters::FanControl::WindBitmap>>(
            0);
    Attributes::AirflowDirection::TypeInfo::DecodableType airflowDirection =
        static_cast<chip::app::Clusters::FanControl::AirflowDirectionEnum>(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 FanControl
} // namespace Clusters
} // namespace app
} // namespace chip
