From 311035a9f3e123a5cbdea7564d5a29702020461c Mon Sep 17 00:00:00 2001 From: Vivien Nicolas Date: Thu, 8 Jul 2021 21:33:36 +0200 Subject: [PATCH] Zap add accessors helpers for attributes (#7183) * Add Attributes Accessors into src/app/common/gen * Update some ZCL definition types to use the types from the spec * Update gen/ folders --- src/app/common/gen/attributes/Accessors.cpp | 8221 +++++++++++++++++ src/app/common/gen/attributes/Accessors.h | 2197 +++++ src/app/common/gen/callback.h | 12 +- src/app/common/gen/client-command-macro.h | 12 +- src/app/common/templates/templates.json | 11 + src/app/zap-templates/common/StructHelper.js | 28 + .../common/attributes/Accessors.js | 56 + src/app/zap-templates/common/override.js | 2 + .../app/attributes/Accessors-src.zapt | 50 + .../templates/app/attributes/Accessors.zapt | 41 + .../templates/app/ids/Attributes.zapt | 6 +- .../chip/diagnostic-logs-cluster.xml | 2 +- .../zcl/data-model/silabs/ami.xml | 10 +- .../zcl/data-model/silabs/general.xml | 2 +- .../zcl/data-model/silabs/ha.xml | 242 +- 15 files changed, 10748 insertions(+), 144 deletions(-) create mode 100644 src/app/common/gen/attributes/Accessors.cpp create mode 100644 src/app/common/gen/attributes/Accessors.h create mode 100644 src/app/zap-templates/common/StructHelper.js create mode 100644 src/app/zap-templates/common/attributes/Accessors.js create mode 100644 src/app/zap-templates/templates/app/attributes/Accessors-src.zapt create mode 100644 src/app/zap-templates/templates/app/attributes/Accessors.zapt diff --git a/src/app/common/gen/attributes/Accessors.cpp b/src/app/common/gen/attributes/Accessors.cpp new file mode 100644 index 00000000000000..3378ea7c58a6d6 --- /dev/null +++ b/src/app/common/gen/attributes/Accessors.cpp @@ -0,0 +1,8221 @@ +/* + * + * Copyright (c) 2021 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 + +/** + * @file + * This file contains definitions for accessors around clusters attributes. + */ + +#pragma once + +#include + +#include +#include + +namespace chip { +namespace app { +namespace Clusters { + +namespace PowerConfiguration { +namespace Attributes { +EmberAfStatus GetMainsVoltage(chip::EndpointId endpoint, uint16_t * mainsVoltage) +{ + return emberAfReadServerAttribute(endpoint, PowerConfiguration::Id, Ids::MainsVoltage, (uint8_t *) mainsVoltage, + sizeof(*mainsVoltage)); +} +EmberAfStatus SetMainsVoltage(chip::EndpointId endpoint, uint16_t mainsVoltage) +{ + return emberAfWriteServerAttribute(endpoint, PowerConfiguration::Id, Ids::MainsVoltage, (uint8_t *) &mainsVoltage, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMainsFrequency(chip::EndpointId endpoint, uint8_t * mainsFrequency) +{ + return emberAfReadServerAttribute(endpoint, PowerConfiguration::Id, Ids::MainsFrequency, (uint8_t *) mainsFrequency, + sizeof(*mainsFrequency)); +} +EmberAfStatus SetMainsFrequency(chip::EndpointId endpoint, uint8_t mainsFrequency) +{ + return emberAfWriteServerAttribute(endpoint, PowerConfiguration::Id, Ids::MainsFrequency, (uint8_t *) &mainsFrequency, + ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMainsAlarmMask(chip::EndpointId endpoint, uint8_t * mainsAlarmMask) +{ + return emberAfReadServerAttribute(endpoint, PowerConfiguration::Id, Ids::MainsAlarmMask, (uint8_t *) mainsAlarmMask, + sizeof(*mainsAlarmMask)); +} +EmberAfStatus SetMainsAlarmMask(chip::EndpointId endpoint, uint8_t mainsAlarmMask) +{ + return emberAfWriteServerAttribute(endpoint, PowerConfiguration::Id, Ids::MainsAlarmMask, (uint8_t *) &mainsAlarmMask, + ZCL_BITMAP8_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMainsVoltageMinThreshold(chip::EndpointId endpoint, uint16_t * mainsVoltageMinThreshold) +{ + return emberAfReadServerAttribute(endpoint, PowerConfiguration::Id, Ids::MainsVoltageMinThreshold, + (uint8_t *) mainsVoltageMinThreshold, sizeof(*mainsVoltageMinThreshold)); +} +EmberAfStatus SetMainsVoltageMinThreshold(chip::EndpointId endpoint, uint16_t mainsVoltageMinThreshold) +{ + return emberAfWriteServerAttribute(endpoint, PowerConfiguration::Id, Ids::MainsVoltageMinThreshold, + (uint8_t *) &mainsVoltageMinThreshold, ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMainsVoltageMaxThreshold(chip::EndpointId endpoint, uint16_t * mainsVoltageMaxThreshold) +{ + return emberAfReadServerAttribute(endpoint, PowerConfiguration::Id, Ids::MainsVoltageMaxThreshold, + (uint8_t *) mainsVoltageMaxThreshold, sizeof(*mainsVoltageMaxThreshold)); +} +EmberAfStatus SetMainsVoltageMaxThreshold(chip::EndpointId endpoint, uint16_t mainsVoltageMaxThreshold) +{ + return emberAfWriteServerAttribute(endpoint, PowerConfiguration::Id, Ids::MainsVoltageMaxThreshold, + (uint8_t *) &mainsVoltageMaxThreshold, ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMainsVoltageDwellTrip(chip::EndpointId endpoint, uint16_t * mainsVoltageDwellTrip) +{ + return emberAfReadServerAttribute(endpoint, PowerConfiguration::Id, Ids::MainsVoltageDwellTrip, + (uint8_t *) mainsVoltageDwellTrip, sizeof(*mainsVoltageDwellTrip)); +} +EmberAfStatus SetMainsVoltageDwellTrip(chip::EndpointId endpoint, uint16_t mainsVoltageDwellTrip) +{ + return emberAfWriteServerAttribute(endpoint, PowerConfiguration::Id, Ids::MainsVoltageDwellTrip, + (uint8_t *) &mainsVoltageDwellTrip, ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetBatteryVoltage(chip::EndpointId endpoint, uint8_t * batteryVoltage) +{ + return emberAfReadServerAttribute(endpoint, PowerConfiguration::Id, Ids::BatteryVoltage, (uint8_t *) batteryVoltage, + sizeof(*batteryVoltage)); +} +EmberAfStatus SetBatteryVoltage(chip::EndpointId endpoint, uint8_t batteryVoltage) +{ + return emberAfWriteServerAttribute(endpoint, PowerConfiguration::Id, Ids::BatteryVoltage, (uint8_t *) &batteryVoltage, + ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetBatteryPercentageRemaining(chip::EndpointId endpoint, uint8_t * batteryPercentageRemaining) +{ + return emberAfReadServerAttribute(endpoint, PowerConfiguration::Id, Ids::BatteryPercentageRemaining, + (uint8_t *) batteryPercentageRemaining, sizeof(*batteryPercentageRemaining)); +} +EmberAfStatus SetBatteryPercentageRemaining(chip::EndpointId endpoint, uint8_t batteryPercentageRemaining) +{ + return emberAfWriteServerAttribute(endpoint, PowerConfiguration::Id, Ids::BatteryPercentageRemaining, + (uint8_t *) &batteryPercentageRemaining, ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetBatterySize(chip::EndpointId endpoint, uint8_t * batterySize) +{ + return emberAfReadServerAttribute(endpoint, PowerConfiguration::Id, Ids::BatterySize, (uint8_t *) batterySize, + sizeof(*batterySize)); +} +EmberAfStatus SetBatterySize(chip::EndpointId endpoint, uint8_t batterySize) +{ + return emberAfWriteServerAttribute(endpoint, PowerConfiguration::Id, Ids::BatterySize, (uint8_t *) &batterySize, + ZCL_ENUM8_ATTRIBUTE_TYPE); +} +EmberAfStatus GetBatteryAhrRating(chip::EndpointId endpoint, uint16_t * batteryAhrRating) +{ + return emberAfReadServerAttribute(endpoint, PowerConfiguration::Id, Ids::BatteryAhrRating, (uint8_t *) batteryAhrRating, + sizeof(*batteryAhrRating)); +} +EmberAfStatus SetBatteryAhrRating(chip::EndpointId endpoint, uint16_t batteryAhrRating) +{ + return emberAfWriteServerAttribute(endpoint, PowerConfiguration::Id, Ids::BatteryAhrRating, (uint8_t *) &batteryAhrRating, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetBatteryQuantity(chip::EndpointId endpoint, uint8_t * batteryQuantity) +{ + return emberAfReadServerAttribute(endpoint, PowerConfiguration::Id, Ids::BatteryQuantity, (uint8_t *) batteryQuantity, + sizeof(*batteryQuantity)); +} +EmberAfStatus SetBatteryQuantity(chip::EndpointId endpoint, uint8_t batteryQuantity) +{ + return emberAfWriteServerAttribute(endpoint, PowerConfiguration::Id, Ids::BatteryQuantity, (uint8_t *) &batteryQuantity, + ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetBatteryRatedVoltage(chip::EndpointId endpoint, uint8_t * batteryRatedVoltage) +{ + return emberAfReadServerAttribute(endpoint, PowerConfiguration::Id, Ids::BatteryRatedVoltage, (uint8_t *) batteryRatedVoltage, + sizeof(*batteryRatedVoltage)); +} +EmberAfStatus SetBatteryRatedVoltage(chip::EndpointId endpoint, uint8_t batteryRatedVoltage) +{ + return emberAfWriteServerAttribute(endpoint, PowerConfiguration::Id, Ids::BatteryRatedVoltage, (uint8_t *) &batteryRatedVoltage, + ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetBatteryAlarmMask(chip::EndpointId endpoint, uint8_t * batteryAlarmMask) +{ + return emberAfReadServerAttribute(endpoint, PowerConfiguration::Id, Ids::BatteryAlarmMask, (uint8_t *) batteryAlarmMask, + sizeof(*batteryAlarmMask)); +} +EmberAfStatus SetBatteryAlarmMask(chip::EndpointId endpoint, uint8_t batteryAlarmMask) +{ + return emberAfWriteServerAttribute(endpoint, PowerConfiguration::Id, Ids::BatteryAlarmMask, (uint8_t *) &batteryAlarmMask, + ZCL_BITMAP8_ATTRIBUTE_TYPE); +} +EmberAfStatus GetBatteryVoltageMinThreshold(chip::EndpointId endpoint, uint8_t * batteryVoltageMinThreshold) +{ + return emberAfReadServerAttribute(endpoint, PowerConfiguration::Id, Ids::BatteryVoltageMinThreshold, + (uint8_t *) batteryVoltageMinThreshold, sizeof(*batteryVoltageMinThreshold)); +} +EmberAfStatus SetBatteryVoltageMinThreshold(chip::EndpointId endpoint, uint8_t batteryVoltageMinThreshold) +{ + return emberAfWriteServerAttribute(endpoint, PowerConfiguration::Id, Ids::BatteryVoltageMinThreshold, + (uint8_t *) &batteryVoltageMinThreshold, ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetBatteryVoltageThreshold1(chip::EndpointId endpoint, uint8_t * batteryVoltageThreshold1) +{ + return emberAfReadServerAttribute(endpoint, PowerConfiguration::Id, Ids::BatteryVoltageThreshold1, + (uint8_t *) batteryVoltageThreshold1, sizeof(*batteryVoltageThreshold1)); +} +EmberAfStatus SetBatteryVoltageThreshold1(chip::EndpointId endpoint, uint8_t batteryVoltageThreshold1) +{ + return emberAfWriteServerAttribute(endpoint, PowerConfiguration::Id, Ids::BatteryVoltageThreshold1, + (uint8_t *) &batteryVoltageThreshold1, ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetBatteryVoltageThreshold2(chip::EndpointId endpoint, uint8_t * batteryVoltageThreshold2) +{ + return emberAfReadServerAttribute(endpoint, PowerConfiguration::Id, Ids::BatteryVoltageThreshold2, + (uint8_t *) batteryVoltageThreshold2, sizeof(*batteryVoltageThreshold2)); +} +EmberAfStatus SetBatteryVoltageThreshold2(chip::EndpointId endpoint, uint8_t batteryVoltageThreshold2) +{ + return emberAfWriteServerAttribute(endpoint, PowerConfiguration::Id, Ids::BatteryVoltageThreshold2, + (uint8_t *) &batteryVoltageThreshold2, ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetBatteryVoltageThreshold3(chip::EndpointId endpoint, uint8_t * batteryVoltageThreshold3) +{ + return emberAfReadServerAttribute(endpoint, PowerConfiguration::Id, Ids::BatteryVoltageThreshold3, + (uint8_t *) batteryVoltageThreshold3, sizeof(*batteryVoltageThreshold3)); +} +EmberAfStatus SetBatteryVoltageThreshold3(chip::EndpointId endpoint, uint8_t batteryVoltageThreshold3) +{ + return emberAfWriteServerAttribute(endpoint, PowerConfiguration::Id, Ids::BatteryVoltageThreshold3, + (uint8_t *) &batteryVoltageThreshold3, ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetBatteryPercentageMinThreshold(chip::EndpointId endpoint, uint8_t * batteryPercentageMinThreshold) +{ + return emberAfReadServerAttribute(endpoint, PowerConfiguration::Id, Ids::BatteryPercentageMinThreshold, + (uint8_t *) batteryPercentageMinThreshold, sizeof(*batteryPercentageMinThreshold)); +} +EmberAfStatus SetBatteryPercentageMinThreshold(chip::EndpointId endpoint, uint8_t batteryPercentageMinThreshold) +{ + return emberAfWriteServerAttribute(endpoint, PowerConfiguration::Id, Ids::BatteryPercentageMinThreshold, + (uint8_t *) &batteryPercentageMinThreshold, ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetBatteryPercentageThreshold1(chip::EndpointId endpoint, uint8_t * batteryPercentageThreshold1) +{ + return emberAfReadServerAttribute(endpoint, PowerConfiguration::Id, Ids::BatteryPercentageThreshold1, + (uint8_t *) batteryPercentageThreshold1, sizeof(*batteryPercentageThreshold1)); +} +EmberAfStatus SetBatteryPercentageThreshold1(chip::EndpointId endpoint, uint8_t batteryPercentageThreshold1) +{ + return emberAfWriteServerAttribute(endpoint, PowerConfiguration::Id, Ids::BatteryPercentageThreshold1, + (uint8_t *) &batteryPercentageThreshold1, ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetBatteryPercentageThreshold2(chip::EndpointId endpoint, uint8_t * batteryPercentageThreshold2) +{ + return emberAfReadServerAttribute(endpoint, PowerConfiguration::Id, Ids::BatteryPercentageThreshold2, + (uint8_t *) batteryPercentageThreshold2, sizeof(*batteryPercentageThreshold2)); +} +EmberAfStatus SetBatteryPercentageThreshold2(chip::EndpointId endpoint, uint8_t batteryPercentageThreshold2) +{ + return emberAfWriteServerAttribute(endpoint, PowerConfiguration::Id, Ids::BatteryPercentageThreshold2, + (uint8_t *) &batteryPercentageThreshold2, ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetBatteryPercentageThreshold3(chip::EndpointId endpoint, uint8_t * batteryPercentageThreshold3) +{ + return emberAfReadServerAttribute(endpoint, PowerConfiguration::Id, Ids::BatteryPercentageThreshold3, + (uint8_t *) batteryPercentageThreshold3, sizeof(*batteryPercentageThreshold3)); +} +EmberAfStatus SetBatteryPercentageThreshold3(chip::EndpointId endpoint, uint8_t batteryPercentageThreshold3) +{ + return emberAfWriteServerAttribute(endpoint, PowerConfiguration::Id, Ids::BatteryPercentageThreshold3, + (uint8_t *) &batteryPercentageThreshold3, ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetBatteryAlarmState(chip::EndpointId endpoint, uint32_t * batteryAlarmState) +{ + return emberAfReadServerAttribute(endpoint, PowerConfiguration::Id, Ids::BatteryAlarmState, (uint8_t *) batteryAlarmState, + sizeof(*batteryAlarmState)); +} +EmberAfStatus SetBatteryAlarmState(chip::EndpointId endpoint, uint32_t batteryAlarmState) +{ + return emberAfWriteServerAttribute(endpoint, PowerConfiguration::Id, Ids::BatteryAlarmState, (uint8_t *) &batteryAlarmState, + ZCL_BITMAP32_ATTRIBUTE_TYPE); +} +EmberAfStatus GetBattery2Voltage(chip::EndpointId endpoint, uint8_t * battery2Voltage) +{ + return emberAfReadServerAttribute(endpoint, PowerConfiguration::Id, Ids::Battery2Voltage, (uint8_t *) battery2Voltage, + sizeof(*battery2Voltage)); +} +EmberAfStatus SetBattery2Voltage(chip::EndpointId endpoint, uint8_t battery2Voltage) +{ + return emberAfWriteServerAttribute(endpoint, PowerConfiguration::Id, Ids::Battery2Voltage, (uint8_t *) &battery2Voltage, + ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetBattery2PercentageRemaining(chip::EndpointId endpoint, uint8_t * battery2PercentageRemaining) +{ + return emberAfReadServerAttribute(endpoint, PowerConfiguration::Id, Ids::Battery2PercentageRemaining, + (uint8_t *) battery2PercentageRemaining, sizeof(*battery2PercentageRemaining)); +} +EmberAfStatus SetBattery2PercentageRemaining(chip::EndpointId endpoint, uint8_t battery2PercentageRemaining) +{ + return emberAfWriteServerAttribute(endpoint, PowerConfiguration::Id, Ids::Battery2PercentageRemaining, + (uint8_t *) &battery2PercentageRemaining, ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetBattery2Size(chip::EndpointId endpoint, uint8_t * battery2Size) +{ + return emberAfReadServerAttribute(endpoint, PowerConfiguration::Id, Ids::Battery2Size, (uint8_t *) battery2Size, + sizeof(*battery2Size)); +} +EmberAfStatus SetBattery2Size(chip::EndpointId endpoint, uint8_t battery2Size) +{ + return emberAfWriteServerAttribute(endpoint, PowerConfiguration::Id, Ids::Battery2Size, (uint8_t *) &battery2Size, + ZCL_ENUM8_ATTRIBUTE_TYPE); +} +EmberAfStatus GetBattery2AhrRating(chip::EndpointId endpoint, uint16_t * battery2AhrRating) +{ + return emberAfReadServerAttribute(endpoint, PowerConfiguration::Id, Ids::Battery2AhrRating, (uint8_t *) battery2AhrRating, + sizeof(*battery2AhrRating)); +} +EmberAfStatus SetBattery2AhrRating(chip::EndpointId endpoint, uint16_t battery2AhrRating) +{ + return emberAfWriteServerAttribute(endpoint, PowerConfiguration::Id, Ids::Battery2AhrRating, (uint8_t *) &battery2AhrRating, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetBattery2Quantity(chip::EndpointId endpoint, uint8_t * battery2Quantity) +{ + return emberAfReadServerAttribute(endpoint, PowerConfiguration::Id, Ids::Battery2Quantity, (uint8_t *) battery2Quantity, + sizeof(*battery2Quantity)); +} +EmberAfStatus SetBattery2Quantity(chip::EndpointId endpoint, uint8_t battery2Quantity) +{ + return emberAfWriteServerAttribute(endpoint, PowerConfiguration::Id, Ids::Battery2Quantity, (uint8_t *) &battery2Quantity, + ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetBattery2RatedVoltage(chip::EndpointId endpoint, uint8_t * battery2RatedVoltage) +{ + return emberAfReadServerAttribute(endpoint, PowerConfiguration::Id, Ids::Battery2RatedVoltage, (uint8_t *) battery2RatedVoltage, + sizeof(*battery2RatedVoltage)); +} +EmberAfStatus SetBattery2RatedVoltage(chip::EndpointId endpoint, uint8_t battery2RatedVoltage) +{ + return emberAfWriteServerAttribute(endpoint, PowerConfiguration::Id, Ids::Battery2RatedVoltage, + (uint8_t *) &battery2RatedVoltage, ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetBattery2AlarmMask(chip::EndpointId endpoint, uint8_t * battery2AlarmMask) +{ + return emberAfReadServerAttribute(endpoint, PowerConfiguration::Id, Ids::Battery2AlarmMask, (uint8_t *) battery2AlarmMask, + sizeof(*battery2AlarmMask)); +} +EmberAfStatus SetBattery2AlarmMask(chip::EndpointId endpoint, uint8_t battery2AlarmMask) +{ + return emberAfWriteServerAttribute(endpoint, PowerConfiguration::Id, Ids::Battery2AlarmMask, (uint8_t *) &battery2AlarmMask, + ZCL_BITMAP8_ATTRIBUTE_TYPE); +} +EmberAfStatus GetBattery2VoltageMinThreshold(chip::EndpointId endpoint, uint8_t * battery2VoltageMinThreshold) +{ + return emberAfReadServerAttribute(endpoint, PowerConfiguration::Id, Ids::Battery2VoltageMinThreshold, + (uint8_t *) battery2VoltageMinThreshold, sizeof(*battery2VoltageMinThreshold)); +} +EmberAfStatus SetBattery2VoltageMinThreshold(chip::EndpointId endpoint, uint8_t battery2VoltageMinThreshold) +{ + return emberAfWriteServerAttribute(endpoint, PowerConfiguration::Id, Ids::Battery2VoltageMinThreshold, + (uint8_t *) &battery2VoltageMinThreshold, ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetBattery2VoltageThreshold1(chip::EndpointId endpoint, uint8_t * battery2VoltageThreshold1) +{ + return emberAfReadServerAttribute(endpoint, PowerConfiguration::Id, Ids::Battery2VoltageThreshold1, + (uint8_t *) battery2VoltageThreshold1, sizeof(*battery2VoltageThreshold1)); +} +EmberAfStatus SetBattery2VoltageThreshold1(chip::EndpointId endpoint, uint8_t battery2VoltageThreshold1) +{ + return emberAfWriteServerAttribute(endpoint, PowerConfiguration::Id, Ids::Battery2VoltageThreshold1, + (uint8_t *) &battery2VoltageThreshold1, ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetBattery2VoltageThreshold2(chip::EndpointId endpoint, uint8_t * battery2VoltageThreshold2) +{ + return emberAfReadServerAttribute(endpoint, PowerConfiguration::Id, Ids::Battery2VoltageThreshold2, + (uint8_t *) battery2VoltageThreshold2, sizeof(*battery2VoltageThreshold2)); +} +EmberAfStatus SetBattery2VoltageThreshold2(chip::EndpointId endpoint, uint8_t battery2VoltageThreshold2) +{ + return emberAfWriteServerAttribute(endpoint, PowerConfiguration::Id, Ids::Battery2VoltageThreshold2, + (uint8_t *) &battery2VoltageThreshold2, ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetBattery2VoltageThreshold3(chip::EndpointId endpoint, uint8_t * battery2VoltageThreshold3) +{ + return emberAfReadServerAttribute(endpoint, PowerConfiguration::Id, Ids::Battery2VoltageThreshold3, + (uint8_t *) battery2VoltageThreshold3, sizeof(*battery2VoltageThreshold3)); +} +EmberAfStatus SetBattery2VoltageThreshold3(chip::EndpointId endpoint, uint8_t battery2VoltageThreshold3) +{ + return emberAfWriteServerAttribute(endpoint, PowerConfiguration::Id, Ids::Battery2VoltageThreshold3, + (uint8_t *) &battery2VoltageThreshold3, ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetBattery2PercentageMinThreshold(chip::EndpointId endpoint, uint8_t * battery2PercentageMinThreshold) +{ + return emberAfReadServerAttribute(endpoint, PowerConfiguration::Id, Ids::Battery2PercentageMinThreshold, + (uint8_t *) battery2PercentageMinThreshold, sizeof(*battery2PercentageMinThreshold)); +} +EmberAfStatus SetBattery2PercentageMinThreshold(chip::EndpointId endpoint, uint8_t battery2PercentageMinThreshold) +{ + return emberAfWriteServerAttribute(endpoint, PowerConfiguration::Id, Ids::Battery2PercentageMinThreshold, + (uint8_t *) &battery2PercentageMinThreshold, ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetBattery2PercentageThreshold1(chip::EndpointId endpoint, uint8_t * battery2PercentageThreshold1) +{ + return emberAfReadServerAttribute(endpoint, PowerConfiguration::Id, Ids::Battery2PercentageThreshold1, + (uint8_t *) battery2PercentageThreshold1, sizeof(*battery2PercentageThreshold1)); +} +EmberAfStatus SetBattery2PercentageThreshold1(chip::EndpointId endpoint, uint8_t battery2PercentageThreshold1) +{ + return emberAfWriteServerAttribute(endpoint, PowerConfiguration::Id, Ids::Battery2PercentageThreshold1, + (uint8_t *) &battery2PercentageThreshold1, ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetBattery2PercentageThreshold2(chip::EndpointId endpoint, uint8_t * battery2PercentageThreshold2) +{ + return emberAfReadServerAttribute(endpoint, PowerConfiguration::Id, Ids::Battery2PercentageThreshold2, + (uint8_t *) battery2PercentageThreshold2, sizeof(*battery2PercentageThreshold2)); +} +EmberAfStatus SetBattery2PercentageThreshold2(chip::EndpointId endpoint, uint8_t battery2PercentageThreshold2) +{ + return emberAfWriteServerAttribute(endpoint, PowerConfiguration::Id, Ids::Battery2PercentageThreshold2, + (uint8_t *) &battery2PercentageThreshold2, ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetBattery2PercentageThreshold3(chip::EndpointId endpoint, uint8_t * battery2PercentageThreshold3) +{ + return emberAfReadServerAttribute(endpoint, PowerConfiguration::Id, Ids::Battery2PercentageThreshold3, + (uint8_t *) battery2PercentageThreshold3, sizeof(*battery2PercentageThreshold3)); +} +EmberAfStatus SetBattery2PercentageThreshold3(chip::EndpointId endpoint, uint8_t battery2PercentageThreshold3) +{ + return emberAfWriteServerAttribute(endpoint, PowerConfiguration::Id, Ids::Battery2PercentageThreshold3, + (uint8_t *) &battery2PercentageThreshold3, ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetBattery2AlarmState(chip::EndpointId endpoint, uint32_t * battery2AlarmState) +{ + return emberAfReadServerAttribute(endpoint, PowerConfiguration::Id, Ids::Battery2AlarmState, (uint8_t *) battery2AlarmState, + sizeof(*battery2AlarmState)); +} +EmberAfStatus SetBattery2AlarmState(chip::EndpointId endpoint, uint32_t battery2AlarmState) +{ + return emberAfWriteServerAttribute(endpoint, PowerConfiguration::Id, Ids::Battery2AlarmState, (uint8_t *) &battery2AlarmState, + ZCL_BITMAP32_ATTRIBUTE_TYPE); +} +EmberAfStatus GetBattery3Voltage(chip::EndpointId endpoint, uint8_t * battery3Voltage) +{ + return emberAfReadServerAttribute(endpoint, PowerConfiguration::Id, Ids::Battery3Voltage, (uint8_t *) battery3Voltage, + sizeof(*battery3Voltage)); +} +EmberAfStatus SetBattery3Voltage(chip::EndpointId endpoint, uint8_t battery3Voltage) +{ + return emberAfWriteServerAttribute(endpoint, PowerConfiguration::Id, Ids::Battery3Voltage, (uint8_t *) &battery3Voltage, + ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetBattery3PercentageRemaining(chip::EndpointId endpoint, uint8_t * battery3PercentageRemaining) +{ + return emberAfReadServerAttribute(endpoint, PowerConfiguration::Id, Ids::Battery3PercentageRemaining, + (uint8_t *) battery3PercentageRemaining, sizeof(*battery3PercentageRemaining)); +} +EmberAfStatus SetBattery3PercentageRemaining(chip::EndpointId endpoint, uint8_t battery3PercentageRemaining) +{ + return emberAfWriteServerAttribute(endpoint, PowerConfiguration::Id, Ids::Battery3PercentageRemaining, + (uint8_t *) &battery3PercentageRemaining, ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetBattery3Size(chip::EndpointId endpoint, uint8_t * battery3Size) +{ + return emberAfReadServerAttribute(endpoint, PowerConfiguration::Id, Ids::Battery3Size, (uint8_t *) battery3Size, + sizeof(*battery3Size)); +} +EmberAfStatus SetBattery3Size(chip::EndpointId endpoint, uint8_t battery3Size) +{ + return emberAfWriteServerAttribute(endpoint, PowerConfiguration::Id, Ids::Battery3Size, (uint8_t *) &battery3Size, + ZCL_ENUM8_ATTRIBUTE_TYPE); +} +EmberAfStatus GetBattery3AhrRating(chip::EndpointId endpoint, uint16_t * battery3AhrRating) +{ + return emberAfReadServerAttribute(endpoint, PowerConfiguration::Id, Ids::Battery3AhrRating, (uint8_t *) battery3AhrRating, + sizeof(*battery3AhrRating)); +} +EmberAfStatus SetBattery3AhrRating(chip::EndpointId endpoint, uint16_t battery3AhrRating) +{ + return emberAfWriteServerAttribute(endpoint, PowerConfiguration::Id, Ids::Battery3AhrRating, (uint8_t *) &battery3AhrRating, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetBattery3Quantity(chip::EndpointId endpoint, uint8_t * battery3Quantity) +{ + return emberAfReadServerAttribute(endpoint, PowerConfiguration::Id, Ids::Battery3Quantity, (uint8_t *) battery3Quantity, + sizeof(*battery3Quantity)); +} +EmberAfStatus SetBattery3Quantity(chip::EndpointId endpoint, uint8_t battery3Quantity) +{ + return emberAfWriteServerAttribute(endpoint, PowerConfiguration::Id, Ids::Battery3Quantity, (uint8_t *) &battery3Quantity, + ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetBattery3RatedVoltage(chip::EndpointId endpoint, uint8_t * battery3RatedVoltage) +{ + return emberAfReadServerAttribute(endpoint, PowerConfiguration::Id, Ids::Battery3RatedVoltage, (uint8_t *) battery3RatedVoltage, + sizeof(*battery3RatedVoltage)); +} +EmberAfStatus SetBattery3RatedVoltage(chip::EndpointId endpoint, uint8_t battery3RatedVoltage) +{ + return emberAfWriteServerAttribute(endpoint, PowerConfiguration::Id, Ids::Battery3RatedVoltage, + (uint8_t *) &battery3RatedVoltage, ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetBattery3AlarmMask(chip::EndpointId endpoint, uint8_t * battery3AlarmMask) +{ + return emberAfReadServerAttribute(endpoint, PowerConfiguration::Id, Ids::Battery3AlarmMask, (uint8_t *) battery3AlarmMask, + sizeof(*battery3AlarmMask)); +} +EmberAfStatus SetBattery3AlarmMask(chip::EndpointId endpoint, uint8_t battery3AlarmMask) +{ + return emberAfWriteServerAttribute(endpoint, PowerConfiguration::Id, Ids::Battery3AlarmMask, (uint8_t *) &battery3AlarmMask, + ZCL_BITMAP8_ATTRIBUTE_TYPE); +} +EmberAfStatus GetBattery3VoltageMinThreshold(chip::EndpointId endpoint, uint8_t * battery3VoltageMinThreshold) +{ + return emberAfReadServerAttribute(endpoint, PowerConfiguration::Id, Ids::Battery3VoltageMinThreshold, + (uint8_t *) battery3VoltageMinThreshold, sizeof(*battery3VoltageMinThreshold)); +} +EmberAfStatus SetBattery3VoltageMinThreshold(chip::EndpointId endpoint, uint8_t battery3VoltageMinThreshold) +{ + return emberAfWriteServerAttribute(endpoint, PowerConfiguration::Id, Ids::Battery3VoltageMinThreshold, + (uint8_t *) &battery3VoltageMinThreshold, ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetBattery3VoltageThreshold1(chip::EndpointId endpoint, uint8_t * battery3VoltageThreshold1) +{ + return emberAfReadServerAttribute(endpoint, PowerConfiguration::Id, Ids::Battery3VoltageThreshold1, + (uint8_t *) battery3VoltageThreshold1, sizeof(*battery3VoltageThreshold1)); +} +EmberAfStatus SetBattery3VoltageThreshold1(chip::EndpointId endpoint, uint8_t battery3VoltageThreshold1) +{ + return emberAfWriteServerAttribute(endpoint, PowerConfiguration::Id, Ids::Battery3VoltageThreshold1, + (uint8_t *) &battery3VoltageThreshold1, ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetBattery3VoltageThreshold2(chip::EndpointId endpoint, uint8_t * battery3VoltageThreshold2) +{ + return emberAfReadServerAttribute(endpoint, PowerConfiguration::Id, Ids::Battery3VoltageThreshold2, + (uint8_t *) battery3VoltageThreshold2, sizeof(*battery3VoltageThreshold2)); +} +EmberAfStatus SetBattery3VoltageThreshold2(chip::EndpointId endpoint, uint8_t battery3VoltageThreshold2) +{ + return emberAfWriteServerAttribute(endpoint, PowerConfiguration::Id, Ids::Battery3VoltageThreshold2, + (uint8_t *) &battery3VoltageThreshold2, ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetBattery3VoltageThreshold3(chip::EndpointId endpoint, uint8_t * battery3VoltageThreshold3) +{ + return emberAfReadServerAttribute(endpoint, PowerConfiguration::Id, Ids::Battery3VoltageThreshold3, + (uint8_t *) battery3VoltageThreshold3, sizeof(*battery3VoltageThreshold3)); +} +EmberAfStatus SetBattery3VoltageThreshold3(chip::EndpointId endpoint, uint8_t battery3VoltageThreshold3) +{ + return emberAfWriteServerAttribute(endpoint, PowerConfiguration::Id, Ids::Battery3VoltageThreshold3, + (uint8_t *) &battery3VoltageThreshold3, ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetBattery3PercentageMinThreshold(chip::EndpointId endpoint, uint8_t * battery3PercentageMinThreshold) +{ + return emberAfReadServerAttribute(endpoint, PowerConfiguration::Id, Ids::Battery3PercentageMinThreshold, + (uint8_t *) battery3PercentageMinThreshold, sizeof(*battery3PercentageMinThreshold)); +} +EmberAfStatus SetBattery3PercentageMinThreshold(chip::EndpointId endpoint, uint8_t battery3PercentageMinThreshold) +{ + return emberAfWriteServerAttribute(endpoint, PowerConfiguration::Id, Ids::Battery3PercentageMinThreshold, + (uint8_t *) &battery3PercentageMinThreshold, ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetBattery3PercentageThreshold1(chip::EndpointId endpoint, uint8_t * battery3PercentageThreshold1) +{ + return emberAfReadServerAttribute(endpoint, PowerConfiguration::Id, Ids::Battery3PercentageThreshold1, + (uint8_t *) battery3PercentageThreshold1, sizeof(*battery3PercentageThreshold1)); +} +EmberAfStatus SetBattery3PercentageThreshold1(chip::EndpointId endpoint, uint8_t battery3PercentageThreshold1) +{ + return emberAfWriteServerAttribute(endpoint, PowerConfiguration::Id, Ids::Battery3PercentageThreshold1, + (uint8_t *) &battery3PercentageThreshold1, ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetBattery3PercentageThreshold2(chip::EndpointId endpoint, uint8_t * battery3PercentageThreshold2) +{ + return emberAfReadServerAttribute(endpoint, PowerConfiguration::Id, Ids::Battery3PercentageThreshold2, + (uint8_t *) battery3PercentageThreshold2, sizeof(*battery3PercentageThreshold2)); +} +EmberAfStatus SetBattery3PercentageThreshold2(chip::EndpointId endpoint, uint8_t battery3PercentageThreshold2) +{ + return emberAfWriteServerAttribute(endpoint, PowerConfiguration::Id, Ids::Battery3PercentageThreshold2, + (uint8_t *) &battery3PercentageThreshold2, ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetBattery3PercentageThreshold3(chip::EndpointId endpoint, uint8_t * battery3PercentageThreshold3) +{ + return emberAfReadServerAttribute(endpoint, PowerConfiguration::Id, Ids::Battery3PercentageThreshold3, + (uint8_t *) battery3PercentageThreshold3, sizeof(*battery3PercentageThreshold3)); +} +EmberAfStatus SetBattery3PercentageThreshold3(chip::EndpointId endpoint, uint8_t battery3PercentageThreshold3) +{ + return emberAfWriteServerAttribute(endpoint, PowerConfiguration::Id, Ids::Battery3PercentageThreshold3, + (uint8_t *) &battery3PercentageThreshold3, ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetBattery3AlarmState(chip::EndpointId endpoint, uint32_t * battery3AlarmState) +{ + return emberAfReadServerAttribute(endpoint, PowerConfiguration::Id, Ids::Battery3AlarmState, (uint8_t *) battery3AlarmState, + sizeof(*battery3AlarmState)); +} +EmberAfStatus SetBattery3AlarmState(chip::EndpointId endpoint, uint32_t battery3AlarmState) +{ + return emberAfWriteServerAttribute(endpoint, PowerConfiguration::Id, Ids::Battery3AlarmState, (uint8_t *) &battery3AlarmState, + ZCL_BITMAP32_ATTRIBUTE_TYPE); +} +} // namespace Attributes +} // namespace PowerConfiguration + +namespace DeviceTemperatureConfiguration { +namespace Attributes { +EmberAfStatus GetCurrentTemperature(chip::EndpointId endpoint, int16_t * currentTemperature) +{ + return emberAfReadServerAttribute(endpoint, DeviceTemperatureConfiguration::Id, Ids::CurrentTemperature, + (uint8_t *) currentTemperature, sizeof(*currentTemperature)); +} +EmberAfStatus SetCurrentTemperature(chip::EndpointId endpoint, int16_t currentTemperature) +{ + return emberAfWriteServerAttribute(endpoint, DeviceTemperatureConfiguration::Id, Ids::CurrentTemperature, + (uint8_t *) ¤tTemperature, ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMinTempExperienced(chip::EndpointId endpoint, int16_t * minTempExperienced) +{ + return emberAfReadServerAttribute(endpoint, DeviceTemperatureConfiguration::Id, Ids::MinTempExperienced, + (uint8_t *) minTempExperienced, sizeof(*minTempExperienced)); +} +EmberAfStatus SetMinTempExperienced(chip::EndpointId endpoint, int16_t minTempExperienced) +{ + return emberAfWriteServerAttribute(endpoint, DeviceTemperatureConfiguration::Id, Ids::MinTempExperienced, + (uint8_t *) &minTempExperienced, ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMaxTempExperienced(chip::EndpointId endpoint, int16_t * maxTempExperienced) +{ + return emberAfReadServerAttribute(endpoint, DeviceTemperatureConfiguration::Id, Ids::MaxTempExperienced, + (uint8_t *) maxTempExperienced, sizeof(*maxTempExperienced)); +} +EmberAfStatus SetMaxTempExperienced(chip::EndpointId endpoint, int16_t maxTempExperienced) +{ + return emberAfWriteServerAttribute(endpoint, DeviceTemperatureConfiguration::Id, Ids::MaxTempExperienced, + (uint8_t *) &maxTempExperienced, ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetOverTempTotalDwell(chip::EndpointId endpoint, uint16_t * overTempTotalDwell) +{ + return emberAfReadServerAttribute(endpoint, DeviceTemperatureConfiguration::Id, Ids::OverTempTotalDwell, + (uint8_t *) overTempTotalDwell, sizeof(*overTempTotalDwell)); +} +EmberAfStatus SetOverTempTotalDwell(chip::EndpointId endpoint, uint16_t overTempTotalDwell) +{ + return emberAfWriteServerAttribute(endpoint, DeviceTemperatureConfiguration::Id, Ids::OverTempTotalDwell, + (uint8_t *) &overTempTotalDwell, ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetDeviceTempAlarmMask(chip::EndpointId endpoint, uint8_t * deviceTempAlarmMask) +{ + return emberAfReadServerAttribute(endpoint, DeviceTemperatureConfiguration::Id, Ids::DeviceTempAlarmMask, + (uint8_t *) deviceTempAlarmMask, sizeof(*deviceTempAlarmMask)); +} +EmberAfStatus SetDeviceTempAlarmMask(chip::EndpointId endpoint, uint8_t deviceTempAlarmMask) +{ + return emberAfWriteServerAttribute(endpoint, DeviceTemperatureConfiguration::Id, Ids::DeviceTempAlarmMask, + (uint8_t *) &deviceTempAlarmMask, ZCL_BITMAP8_ATTRIBUTE_TYPE); +} +EmberAfStatus GetLowTempThreshold(chip::EndpointId endpoint, int16_t * lowTempThreshold) +{ + return emberAfReadServerAttribute(endpoint, DeviceTemperatureConfiguration::Id, Ids::LowTempThreshold, + (uint8_t *) lowTempThreshold, sizeof(*lowTempThreshold)); +} +EmberAfStatus SetLowTempThreshold(chip::EndpointId endpoint, int16_t lowTempThreshold) +{ + return emberAfWriteServerAttribute(endpoint, DeviceTemperatureConfiguration::Id, Ids::LowTempThreshold, + (uint8_t *) &lowTempThreshold, ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetHighTempThreshold(chip::EndpointId endpoint, int16_t * highTempThreshold) +{ + return emberAfReadServerAttribute(endpoint, DeviceTemperatureConfiguration::Id, Ids::HighTempThreshold, + (uint8_t *) highTempThreshold, sizeof(*highTempThreshold)); +} +EmberAfStatus SetHighTempThreshold(chip::EndpointId endpoint, int16_t highTempThreshold) +{ + return emberAfWriteServerAttribute(endpoint, DeviceTemperatureConfiguration::Id, Ids::HighTempThreshold, + (uint8_t *) &highTempThreshold, ZCL_INT16S_ATTRIBUTE_TYPE); +} +} // namespace Attributes +} // namespace DeviceTemperatureConfiguration + +namespace Identify { +namespace Attributes { +EmberAfStatus GetIdentifyTime(chip::EndpointId endpoint, uint16_t * identifyTime) +{ + return emberAfReadServerAttribute(endpoint, Identify::Id, Ids::IdentifyTime, (uint8_t *) identifyTime, sizeof(*identifyTime)); +} +EmberAfStatus SetIdentifyTime(chip::EndpointId endpoint, uint16_t identifyTime) +{ + return emberAfWriteServerAttribute(endpoint, Identify::Id, Ids::IdentifyTime, (uint8_t *) &identifyTime, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetCommissionState(chip::EndpointId endpoint, uint8_t * commissionState) +{ + return emberAfReadServerAttribute(endpoint, Identify::Id, Ids::CommissionState, (uint8_t *) commissionState, + sizeof(*commissionState)); +} +EmberAfStatus SetCommissionState(chip::EndpointId endpoint, uint8_t commissionState) +{ + return emberAfWriteServerAttribute(endpoint, Identify::Id, Ids::CommissionState, (uint8_t *) &commissionState, + ZCL_BITMAP8_ATTRIBUTE_TYPE); +} +} // namespace Attributes +} // namespace Identify + +namespace Groups { +namespace Attributes { +EmberAfStatus GetNameSupport(chip::EndpointId endpoint, uint8_t * nameSupport) +{ + return emberAfReadServerAttribute(endpoint, Groups::Id, Ids::NameSupport, (uint8_t *) nameSupport, sizeof(*nameSupport)); +} +EmberAfStatus SetNameSupport(chip::EndpointId endpoint, uint8_t nameSupport) +{ + return emberAfWriteServerAttribute(endpoint, Groups::Id, Ids::NameSupport, (uint8_t *) &nameSupport, + ZCL_BITMAP8_ATTRIBUTE_TYPE); +} +} // namespace Attributes +} // namespace Groups + +namespace Scenes { +namespace Attributes { +EmberAfStatus GetSceneCount(chip::EndpointId endpoint, uint8_t * sceneCount) +{ + return emberAfReadServerAttribute(endpoint, Scenes::Id, Ids::SceneCount, (uint8_t *) sceneCount, sizeof(*sceneCount)); +} +EmberAfStatus SetSceneCount(chip::EndpointId endpoint, uint8_t sceneCount) +{ + return emberAfWriteServerAttribute(endpoint, Scenes::Id, Ids::SceneCount, (uint8_t *) &sceneCount, ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetCurrentScene(chip::EndpointId endpoint, uint8_t * currentScene) +{ + return emberAfReadServerAttribute(endpoint, Scenes::Id, Ids::CurrentScene, (uint8_t *) currentScene, sizeof(*currentScene)); +} +EmberAfStatus SetCurrentScene(chip::EndpointId endpoint, uint8_t currentScene) +{ + return emberAfWriteServerAttribute(endpoint, Scenes::Id, Ids::CurrentScene, (uint8_t *) ¤tScene, + ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetCurrentGroup(chip::EndpointId endpoint, uint16_t * currentGroup) +{ + return emberAfReadServerAttribute(endpoint, Scenes::Id, Ids::CurrentGroup, (uint8_t *) currentGroup, sizeof(*currentGroup)); +} +EmberAfStatus SetCurrentGroup(chip::EndpointId endpoint, uint16_t currentGroup) +{ + return emberAfWriteServerAttribute(endpoint, Scenes::Id, Ids::CurrentGroup, (uint8_t *) ¤tGroup, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetSceneValid(chip::EndpointId endpoint, uint8_t * sceneValid) +{ + return emberAfReadServerAttribute(endpoint, Scenes::Id, Ids::SceneValid, (uint8_t *) sceneValid, sizeof(*sceneValid)); +} +EmberAfStatus SetSceneValid(chip::EndpointId endpoint, uint8_t sceneValid) +{ + return emberAfWriteServerAttribute(endpoint, Scenes::Id, Ids::SceneValid, (uint8_t *) &sceneValid, ZCL_BOOLEAN_ATTRIBUTE_TYPE); +} +EmberAfStatus GetNameSupport(chip::EndpointId endpoint, uint8_t * nameSupport) +{ + return emberAfReadServerAttribute(endpoint, Scenes::Id, Ids::NameSupport, (uint8_t *) nameSupport, sizeof(*nameSupport)); +} +EmberAfStatus SetNameSupport(chip::EndpointId endpoint, uint8_t nameSupport) +{ + return emberAfWriteServerAttribute(endpoint, Scenes::Id, Ids::NameSupport, (uint8_t *) &nameSupport, + ZCL_BITMAP8_ATTRIBUTE_TYPE); +} +EmberAfStatus GetLastConfiguredBy(chip::EndpointId endpoint, /* TYPE WARNING: unknown defaults to */ uint8_t ** lastConfiguredBy) +{ + return emberAfReadServerAttribute(endpoint, Scenes::Id, Ids::LastConfiguredBy, (uint8_t *) lastConfiguredBy, + sizeof(*lastConfiguredBy)); +} +EmberAfStatus SetLastConfiguredBy(chip::EndpointId endpoint, /* TYPE WARNING: unknown defaults to */ uint8_t * lastConfiguredBy) +{ + return emberAfWriteServerAttribute(endpoint, Scenes::Id, Ids::LastConfiguredBy, (uint8_t *) &lastConfiguredBy, + ZCL_EUI64_ATTRIBUTE_TYPE); +} +} // namespace Attributes +} // namespace Scenes + +namespace OnOff { +namespace Attributes { +EmberAfStatus GetOnOff(chip::EndpointId endpoint, uint8_t * onOff) +{ + return emberAfReadServerAttribute(endpoint, OnOff::Id, Ids::OnOff, (uint8_t *) onOff, sizeof(*onOff)); +} +EmberAfStatus SetOnOff(chip::EndpointId endpoint, uint8_t onOff) +{ + return emberAfWriteServerAttribute(endpoint, OnOff::Id, Ids::OnOff, (uint8_t *) &onOff, ZCL_BOOLEAN_ATTRIBUTE_TYPE); +} +EmberAfStatus GetSampleMfgSpecificAttribute0x00000x1002(chip::EndpointId endpoint, + uint16_t * sampleMfgSpecificAttribute0x00000x1002) +{ + return emberAfReadServerAttribute(endpoint, OnOff::Id, Ids::SampleMfgSpecificAttribute0x00000x1002, + (uint8_t *) sampleMfgSpecificAttribute0x00000x1002, + sizeof(*sampleMfgSpecificAttribute0x00000x1002)); +} +EmberAfStatus SetSampleMfgSpecificAttribute0x00000x1002(chip::EndpointId endpoint, uint16_t sampleMfgSpecificAttribute0x00000x1002) +{ + return emberAfWriteServerAttribute(endpoint, OnOff::Id, Ids::SampleMfgSpecificAttribute0x00000x1002, + (uint8_t *) &sampleMfgSpecificAttribute0x00000x1002, ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetSampleMfgSpecificAttribute0x00000x1049(chip::EndpointId endpoint, uint8_t * sampleMfgSpecificAttribute0x00000x1049) +{ + return emberAfReadServerAttribute(endpoint, OnOff::Id, Ids::SampleMfgSpecificAttribute0x00000x1049, + (uint8_t *) sampleMfgSpecificAttribute0x00000x1049, + sizeof(*sampleMfgSpecificAttribute0x00000x1049)); +} +EmberAfStatus SetSampleMfgSpecificAttribute0x00000x1049(chip::EndpointId endpoint, uint8_t sampleMfgSpecificAttribute0x00000x1049) +{ + return emberAfWriteServerAttribute(endpoint, OnOff::Id, Ids::SampleMfgSpecificAttribute0x00000x1049, + (uint8_t *) &sampleMfgSpecificAttribute0x00000x1049, ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetSampleMfgSpecificAttribute0x00010x1002(chip::EndpointId endpoint, uint8_t * sampleMfgSpecificAttribute0x00010x1002) +{ + return emberAfReadServerAttribute(endpoint, OnOff::Id, Ids::SampleMfgSpecificAttribute0x00010x1002, + (uint8_t *) sampleMfgSpecificAttribute0x00010x1002, + sizeof(*sampleMfgSpecificAttribute0x00010x1002)); +} +EmberAfStatus SetSampleMfgSpecificAttribute0x00010x1002(chip::EndpointId endpoint, uint8_t sampleMfgSpecificAttribute0x00010x1002) +{ + return emberAfWriteServerAttribute(endpoint, OnOff::Id, Ids::SampleMfgSpecificAttribute0x00010x1002, + (uint8_t *) &sampleMfgSpecificAttribute0x00010x1002, ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetSampleMfgSpecificAttribute0x00010x1040(chip::EndpointId endpoint, + uint16_t * sampleMfgSpecificAttribute0x00010x1040) +{ + return emberAfReadServerAttribute(endpoint, OnOff::Id, Ids::SampleMfgSpecificAttribute0x00010x1040, + (uint8_t *) sampleMfgSpecificAttribute0x00010x1040, + sizeof(*sampleMfgSpecificAttribute0x00010x1040)); +} +EmberAfStatus SetSampleMfgSpecificAttribute0x00010x1040(chip::EndpointId endpoint, uint16_t sampleMfgSpecificAttribute0x00010x1040) +{ + return emberAfWriteServerAttribute(endpoint, OnOff::Id, Ids::SampleMfgSpecificAttribute0x00010x1040, + (uint8_t *) &sampleMfgSpecificAttribute0x00010x1040, ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetGlobalSceneControl(chip::EndpointId endpoint, uint8_t * globalSceneControl) +{ + return emberAfReadServerAttribute(endpoint, OnOff::Id, Ids::GlobalSceneControl, (uint8_t *) globalSceneControl, + sizeof(*globalSceneControl)); +} +EmberAfStatus SetGlobalSceneControl(chip::EndpointId endpoint, uint8_t globalSceneControl) +{ + return emberAfWriteServerAttribute(endpoint, OnOff::Id, Ids::GlobalSceneControl, (uint8_t *) &globalSceneControl, + ZCL_BOOLEAN_ATTRIBUTE_TYPE); +} +EmberAfStatus GetOnTime(chip::EndpointId endpoint, uint16_t * onTime) +{ + return emberAfReadServerAttribute(endpoint, OnOff::Id, Ids::OnTime, (uint8_t *) onTime, sizeof(*onTime)); +} +EmberAfStatus SetOnTime(chip::EndpointId endpoint, uint16_t onTime) +{ + return emberAfWriteServerAttribute(endpoint, OnOff::Id, Ids::OnTime, (uint8_t *) &onTime, ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetOffWaitTime(chip::EndpointId endpoint, uint16_t * offWaitTime) +{ + return emberAfReadServerAttribute(endpoint, OnOff::Id, Ids::OffWaitTime, (uint8_t *) offWaitTime, sizeof(*offWaitTime)); +} +EmberAfStatus SetOffWaitTime(chip::EndpointId endpoint, uint16_t offWaitTime) +{ + return emberAfWriteServerAttribute(endpoint, OnOff::Id, Ids::OffWaitTime, (uint8_t *) &offWaitTime, ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetStartUpOnOff(chip::EndpointId endpoint, uint8_t * startUpOnOff) +{ + return emberAfReadServerAttribute(endpoint, OnOff::Id, Ids::StartUpOnOff, (uint8_t *) startUpOnOff, sizeof(*startUpOnOff)); +} +EmberAfStatus SetStartUpOnOff(chip::EndpointId endpoint, uint8_t startUpOnOff) +{ + return emberAfWriteServerAttribute(endpoint, OnOff::Id, Ids::StartUpOnOff, (uint8_t *) &startUpOnOff, ZCL_ENUM8_ATTRIBUTE_TYPE); +} +} // namespace Attributes +} // namespace OnOff + +namespace OnOffSwitchConfiguration { +namespace Attributes { +EmberAfStatus GetSwitchType(chip::EndpointId endpoint, uint8_t * switchType) +{ + return emberAfReadServerAttribute(endpoint, OnOffSwitchConfiguration::Id, Ids::SwitchType, (uint8_t *) switchType, + sizeof(*switchType)); +} +EmberAfStatus SetSwitchType(chip::EndpointId endpoint, uint8_t switchType) +{ + return emberAfWriteServerAttribute(endpoint, OnOffSwitchConfiguration::Id, Ids::SwitchType, (uint8_t *) &switchType, + ZCL_ENUM8_ATTRIBUTE_TYPE); +} +EmberAfStatus GetSwitchActions(chip::EndpointId endpoint, uint8_t * switchActions) +{ + return emberAfReadServerAttribute(endpoint, OnOffSwitchConfiguration::Id, Ids::SwitchActions, (uint8_t *) switchActions, + sizeof(*switchActions)); +} +EmberAfStatus SetSwitchActions(chip::EndpointId endpoint, uint8_t switchActions) +{ + return emberAfWriteServerAttribute(endpoint, OnOffSwitchConfiguration::Id, Ids::SwitchActions, (uint8_t *) &switchActions, + ZCL_ENUM8_ATTRIBUTE_TYPE); +} +} // namespace Attributes +} // namespace OnOffSwitchConfiguration + +namespace LevelControl { +namespace Attributes { +EmberAfStatus GetCurrentLevel(chip::EndpointId endpoint, uint8_t * currentLevel) +{ + return emberAfReadServerAttribute(endpoint, LevelControl::Id, Ids::CurrentLevel, (uint8_t *) currentLevel, + sizeof(*currentLevel)); +} +EmberAfStatus SetCurrentLevel(chip::EndpointId endpoint, uint8_t currentLevel) +{ + return emberAfWriteServerAttribute(endpoint, LevelControl::Id, Ids::CurrentLevel, (uint8_t *) ¤tLevel, + ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetRemainingTime(chip::EndpointId endpoint, uint16_t * remainingTime) +{ + return emberAfReadServerAttribute(endpoint, LevelControl::Id, Ids::RemainingTime, (uint8_t *) remainingTime, + sizeof(*remainingTime)); +} +EmberAfStatus SetRemainingTime(chip::EndpointId endpoint, uint16_t remainingTime) +{ + return emberAfWriteServerAttribute(endpoint, LevelControl::Id, Ids::RemainingTime, (uint8_t *) &remainingTime, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetOptions(chip::EndpointId endpoint, uint8_t * options) +{ + return emberAfReadServerAttribute(endpoint, LevelControl::Id, Ids::Options, (uint8_t *) options, sizeof(*options)); +} +EmberAfStatus SetOptions(chip::EndpointId endpoint, uint8_t options) +{ + return emberAfWriteServerAttribute(endpoint, LevelControl::Id, Ids::Options, (uint8_t *) &options, ZCL_BITMAP8_ATTRIBUTE_TYPE); +} +EmberAfStatus GetOnOffTransitionTime(chip::EndpointId endpoint, uint16_t * onOffTransitionTime) +{ + return emberAfReadServerAttribute(endpoint, LevelControl::Id, Ids::OnOffTransitionTime, (uint8_t *) onOffTransitionTime, + sizeof(*onOffTransitionTime)); +} +EmberAfStatus SetOnOffTransitionTime(chip::EndpointId endpoint, uint16_t onOffTransitionTime) +{ + return emberAfWriteServerAttribute(endpoint, LevelControl::Id, Ids::OnOffTransitionTime, (uint8_t *) &onOffTransitionTime, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetOnLevel(chip::EndpointId endpoint, uint8_t * onLevel) +{ + return emberAfReadServerAttribute(endpoint, LevelControl::Id, Ids::OnLevel, (uint8_t *) onLevel, sizeof(*onLevel)); +} +EmberAfStatus SetOnLevel(chip::EndpointId endpoint, uint8_t onLevel) +{ + return emberAfWriteServerAttribute(endpoint, LevelControl::Id, Ids::OnLevel, (uint8_t *) &onLevel, ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetOnTransitionTime(chip::EndpointId endpoint, uint16_t * onTransitionTime) +{ + return emberAfReadServerAttribute(endpoint, LevelControl::Id, Ids::OnTransitionTime, (uint8_t *) onTransitionTime, + sizeof(*onTransitionTime)); +} +EmberAfStatus SetOnTransitionTime(chip::EndpointId endpoint, uint16_t onTransitionTime) +{ + return emberAfWriteServerAttribute(endpoint, LevelControl::Id, Ids::OnTransitionTime, (uint8_t *) &onTransitionTime, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetOffTransitionTime(chip::EndpointId endpoint, uint16_t * offTransitionTime) +{ + return emberAfReadServerAttribute(endpoint, LevelControl::Id, Ids::OffTransitionTime, (uint8_t *) offTransitionTime, + sizeof(*offTransitionTime)); +} +EmberAfStatus SetOffTransitionTime(chip::EndpointId endpoint, uint16_t offTransitionTime) +{ + return emberAfWriteServerAttribute(endpoint, LevelControl::Id, Ids::OffTransitionTime, (uint8_t *) &offTransitionTime, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetDefaultMoveRate(chip::EndpointId endpoint, uint8_t * defaultMoveRate) +{ + return emberAfReadServerAttribute(endpoint, LevelControl::Id, Ids::DefaultMoveRate, (uint8_t *) defaultMoveRate, + sizeof(*defaultMoveRate)); +} +EmberAfStatus SetDefaultMoveRate(chip::EndpointId endpoint, uint8_t defaultMoveRate) +{ + return emberAfWriteServerAttribute(endpoint, LevelControl::Id, Ids::DefaultMoveRate, (uint8_t *) &defaultMoveRate, + ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetStartUpCurrentLevel(chip::EndpointId endpoint, uint8_t * startUpCurrentLevel) +{ + return emberAfReadServerAttribute(endpoint, LevelControl::Id, Ids::StartUpCurrentLevel, (uint8_t *) startUpCurrentLevel, + sizeof(*startUpCurrentLevel)); +} +EmberAfStatus SetStartUpCurrentLevel(chip::EndpointId endpoint, uint8_t startUpCurrentLevel) +{ + return emberAfWriteServerAttribute(endpoint, LevelControl::Id, Ids::StartUpCurrentLevel, (uint8_t *) &startUpCurrentLevel, + ZCL_INT8U_ATTRIBUTE_TYPE); +} +} // namespace Attributes +} // namespace LevelControl + +namespace Alarms { +namespace Attributes { +EmberAfStatus GetAlarmCount(chip::EndpointId endpoint, uint16_t * alarmCount) +{ + return emberAfReadServerAttribute(endpoint, Alarms::Id, Ids::AlarmCount, (uint8_t *) alarmCount, sizeof(*alarmCount)); +} +EmberAfStatus SetAlarmCount(chip::EndpointId endpoint, uint16_t alarmCount) +{ + return emberAfWriteServerAttribute(endpoint, Alarms::Id, Ids::AlarmCount, (uint8_t *) &alarmCount, ZCL_INT16U_ATTRIBUTE_TYPE); +} +} // namespace Attributes +} // namespace Alarms + +namespace Time { +namespace Attributes { +EmberAfStatus GetTime(chip::EndpointId endpoint, /* TYPE WARNING: utc defaults to */ uint8_t ** time) +{ + return emberAfReadServerAttribute(endpoint, Time::Id, Ids::Time, (uint8_t *) time, sizeof(*time)); +} +EmberAfStatus SetTime(chip::EndpointId endpoint, /* TYPE WARNING: utc defaults to */ uint8_t * time) +{ + return emberAfWriteServerAttribute(endpoint, Time::Id, Ids::Time, (uint8_t *) &time, ZCL_UTC_ATTRIBUTE_TYPE); +} +EmberAfStatus GetTimeStatus(chip::EndpointId endpoint, uint8_t * timeStatus) +{ + return emberAfReadServerAttribute(endpoint, Time::Id, Ids::TimeStatus, (uint8_t *) timeStatus, sizeof(*timeStatus)); +} +EmberAfStatus SetTimeStatus(chip::EndpointId endpoint, uint8_t timeStatus) +{ + return emberAfWriteServerAttribute(endpoint, Time::Id, Ids::TimeStatus, (uint8_t *) &timeStatus, ZCL_BITMAP8_ATTRIBUTE_TYPE); +} +EmberAfStatus GetTimeZone(chip::EndpointId endpoint, int32_t * timeZone) +{ + return emberAfReadServerAttribute(endpoint, Time::Id, Ids::TimeZone, (uint8_t *) timeZone, sizeof(*timeZone)); +} +EmberAfStatus SetTimeZone(chip::EndpointId endpoint, int32_t timeZone) +{ + return emberAfWriteServerAttribute(endpoint, Time::Id, Ids::TimeZone, (uint8_t *) &timeZone, ZCL_INT32S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetDstStart(chip::EndpointId endpoint, uint32_t * dstStart) +{ + return emberAfReadServerAttribute(endpoint, Time::Id, Ids::DstStart, (uint8_t *) dstStart, sizeof(*dstStart)); +} +EmberAfStatus SetDstStart(chip::EndpointId endpoint, uint32_t dstStart) +{ + return emberAfWriteServerAttribute(endpoint, Time::Id, Ids::DstStart, (uint8_t *) &dstStart, ZCL_INT32U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetDstEnd(chip::EndpointId endpoint, uint32_t * dstEnd) +{ + return emberAfReadServerAttribute(endpoint, Time::Id, Ids::DstEnd, (uint8_t *) dstEnd, sizeof(*dstEnd)); +} +EmberAfStatus SetDstEnd(chip::EndpointId endpoint, uint32_t dstEnd) +{ + return emberAfWriteServerAttribute(endpoint, Time::Id, Ids::DstEnd, (uint8_t *) &dstEnd, ZCL_INT32U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetDstShift(chip::EndpointId endpoint, int32_t * dstShift) +{ + return emberAfReadServerAttribute(endpoint, Time::Id, Ids::DstShift, (uint8_t *) dstShift, sizeof(*dstShift)); +} +EmberAfStatus SetDstShift(chip::EndpointId endpoint, int32_t dstShift) +{ + return emberAfWriteServerAttribute(endpoint, Time::Id, Ids::DstShift, (uint8_t *) &dstShift, ZCL_INT32S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetStandardTime(chip::EndpointId endpoint, uint32_t * standardTime) +{ + return emberAfReadServerAttribute(endpoint, Time::Id, Ids::StandardTime, (uint8_t *) standardTime, sizeof(*standardTime)); +} +EmberAfStatus SetStandardTime(chip::EndpointId endpoint, uint32_t standardTime) +{ + return emberAfWriteServerAttribute(endpoint, Time::Id, Ids::StandardTime, (uint8_t *) &standardTime, ZCL_INT32U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetLocalTime(chip::EndpointId endpoint, uint32_t * localTime) +{ + return emberAfReadServerAttribute(endpoint, Time::Id, Ids::LocalTime, (uint8_t *) localTime, sizeof(*localTime)); +} +EmberAfStatus SetLocalTime(chip::EndpointId endpoint, uint32_t localTime) +{ + return emberAfWriteServerAttribute(endpoint, Time::Id, Ids::LocalTime, (uint8_t *) &localTime, ZCL_INT32U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetLastSetTime(chip::EndpointId endpoint, /* TYPE WARNING: utc defaults to */ uint8_t ** lastSetTime) +{ + return emberAfReadServerAttribute(endpoint, Time::Id, Ids::LastSetTime, (uint8_t *) lastSetTime, sizeof(*lastSetTime)); +} +EmberAfStatus SetLastSetTime(chip::EndpointId endpoint, /* TYPE WARNING: utc defaults to */ uint8_t * lastSetTime) +{ + return emberAfWriteServerAttribute(endpoint, Time::Id, Ids::LastSetTime, (uint8_t *) &lastSetTime, ZCL_UTC_ATTRIBUTE_TYPE); +} +EmberAfStatus GetValidUntilTime(chip::EndpointId endpoint, /* TYPE WARNING: utc defaults to */ uint8_t ** validUntilTime) +{ + return emberAfReadServerAttribute(endpoint, Time::Id, Ids::ValidUntilTime, (uint8_t *) validUntilTime, sizeof(*validUntilTime)); +} +EmberAfStatus SetValidUntilTime(chip::EndpointId endpoint, /* TYPE WARNING: utc defaults to */ uint8_t * validUntilTime) +{ + return emberAfWriteServerAttribute(endpoint, Time::Id, Ids::ValidUntilTime, (uint8_t *) &validUntilTime, + ZCL_UTC_ATTRIBUTE_TYPE); +} +} // namespace Attributes +} // namespace Time + +namespace BinaryInputBasic { +namespace Attributes { +EmberAfStatus GetOutOfService(chip::EndpointId endpoint, uint8_t * outOfService) +{ + return emberAfReadServerAttribute(endpoint, BinaryInputBasic::Id, Ids::OutOfService, (uint8_t *) outOfService, + sizeof(*outOfService)); +} +EmberAfStatus SetOutOfService(chip::EndpointId endpoint, uint8_t outOfService) +{ + return emberAfWriteServerAttribute(endpoint, BinaryInputBasic::Id, Ids::OutOfService, (uint8_t *) &outOfService, + ZCL_BOOLEAN_ATTRIBUTE_TYPE); +} +EmberAfStatus GetPolarity(chip::EndpointId endpoint, uint8_t * polarity) +{ + return emberAfReadServerAttribute(endpoint, BinaryInputBasic::Id, Ids::Polarity, (uint8_t *) polarity, sizeof(*polarity)); +} +EmberAfStatus SetPolarity(chip::EndpointId endpoint, uint8_t polarity) +{ + return emberAfWriteServerAttribute(endpoint, BinaryInputBasic::Id, Ids::Polarity, (uint8_t *) &polarity, + ZCL_ENUM8_ATTRIBUTE_TYPE); +} +EmberAfStatus GetPresentValue(chip::EndpointId endpoint, uint8_t * presentValue) +{ + return emberAfReadServerAttribute(endpoint, BinaryInputBasic::Id, Ids::PresentValue, (uint8_t *) presentValue, + sizeof(*presentValue)); +} +EmberAfStatus SetPresentValue(chip::EndpointId endpoint, uint8_t presentValue) +{ + return emberAfWriteServerAttribute(endpoint, BinaryInputBasic::Id, Ids::PresentValue, (uint8_t *) &presentValue, + ZCL_BOOLEAN_ATTRIBUTE_TYPE); +} +EmberAfStatus GetReliability(chip::EndpointId endpoint, uint8_t * reliability) +{ + return emberAfReadServerAttribute(endpoint, BinaryInputBasic::Id, Ids::Reliability, (uint8_t *) reliability, + sizeof(*reliability)); +} +EmberAfStatus SetReliability(chip::EndpointId endpoint, uint8_t reliability) +{ + return emberAfWriteServerAttribute(endpoint, BinaryInputBasic::Id, Ids::Reliability, (uint8_t *) &reliability, + ZCL_ENUM8_ATTRIBUTE_TYPE); +} +EmberAfStatus GetStatusFlags(chip::EndpointId endpoint, uint8_t * statusFlags) +{ + return emberAfReadServerAttribute(endpoint, BinaryInputBasic::Id, Ids::StatusFlags, (uint8_t *) statusFlags, + sizeof(*statusFlags)); +} +EmberAfStatus SetStatusFlags(chip::EndpointId endpoint, uint8_t statusFlags) +{ + return emberAfWriteServerAttribute(endpoint, BinaryInputBasic::Id, Ids::StatusFlags, (uint8_t *) &statusFlags, + ZCL_BITMAP8_ATTRIBUTE_TYPE); +} +EmberAfStatus GetApplicationType(chip::EndpointId endpoint, uint32_t * applicationType) +{ + return emberAfReadServerAttribute(endpoint, BinaryInputBasic::Id, Ids::ApplicationType, (uint8_t *) applicationType, + sizeof(*applicationType)); +} +EmberAfStatus SetApplicationType(chip::EndpointId endpoint, uint32_t applicationType) +{ + return emberAfWriteServerAttribute(endpoint, BinaryInputBasic::Id, Ids::ApplicationType, (uint8_t *) &applicationType, + ZCL_INT32U_ATTRIBUTE_TYPE); +} +} // namespace Attributes +} // namespace BinaryInputBasic + +namespace PowerProfile { +namespace Attributes { +EmberAfStatus GetTotalProfileNum(chip::EndpointId endpoint, uint8_t * totalProfileNum) +{ + return emberAfReadServerAttribute(endpoint, PowerProfile::Id, Ids::TotalProfileNum, (uint8_t *) totalProfileNum, + sizeof(*totalProfileNum)); +} +EmberAfStatus SetTotalProfileNum(chip::EndpointId endpoint, uint8_t totalProfileNum) +{ + return emberAfWriteServerAttribute(endpoint, PowerProfile::Id, Ids::TotalProfileNum, (uint8_t *) &totalProfileNum, + ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMultipleScheduling(chip::EndpointId endpoint, uint8_t * multipleScheduling) +{ + return emberAfReadServerAttribute(endpoint, PowerProfile::Id, Ids::MultipleScheduling, (uint8_t *) multipleScheduling, + sizeof(*multipleScheduling)); +} +EmberAfStatus SetMultipleScheduling(chip::EndpointId endpoint, uint8_t multipleScheduling) +{ + return emberAfWriteServerAttribute(endpoint, PowerProfile::Id, Ids::MultipleScheduling, (uint8_t *) &multipleScheduling, + ZCL_BOOLEAN_ATTRIBUTE_TYPE); +} +EmberAfStatus GetEnergyFormatting(chip::EndpointId endpoint, uint8_t * energyFormatting) +{ + return emberAfReadServerAttribute(endpoint, PowerProfile::Id, Ids::EnergyFormatting, (uint8_t *) energyFormatting, + sizeof(*energyFormatting)); +} +EmberAfStatus SetEnergyFormatting(chip::EndpointId endpoint, uint8_t energyFormatting) +{ + return emberAfWriteServerAttribute(endpoint, PowerProfile::Id, Ids::EnergyFormatting, (uint8_t *) &energyFormatting, + ZCL_BITMAP8_ATTRIBUTE_TYPE); +} +EmberAfStatus GetEnergyRemote(chip::EndpointId endpoint, uint8_t * energyRemote) +{ + return emberAfReadServerAttribute(endpoint, PowerProfile::Id, Ids::EnergyRemote, (uint8_t *) energyRemote, + sizeof(*energyRemote)); +} +EmberAfStatus SetEnergyRemote(chip::EndpointId endpoint, uint8_t energyRemote) +{ + return emberAfWriteServerAttribute(endpoint, PowerProfile::Id, Ids::EnergyRemote, (uint8_t *) &energyRemote, + ZCL_BOOLEAN_ATTRIBUTE_TYPE); +} +EmberAfStatus GetScheduleMode(chip::EndpointId endpoint, uint8_t * scheduleMode) +{ + return emberAfReadServerAttribute(endpoint, PowerProfile::Id, Ids::ScheduleMode, (uint8_t *) scheduleMode, + sizeof(*scheduleMode)); +} +EmberAfStatus SetScheduleMode(chip::EndpointId endpoint, uint8_t scheduleMode) +{ + return emberAfWriteServerAttribute(endpoint, PowerProfile::Id, Ids::ScheduleMode, (uint8_t *) &scheduleMode, + ZCL_BITMAP8_ATTRIBUTE_TYPE); +} +} // namespace Attributes +} // namespace PowerProfile + +namespace ApplianceControl { +namespace Attributes { +EmberAfStatus GetStartTime(chip::EndpointId endpoint, uint16_t * startTime) +{ + return emberAfReadServerAttribute(endpoint, ApplianceControl::Id, Ids::StartTime, (uint8_t *) startTime, sizeof(*startTime)); +} +EmberAfStatus SetStartTime(chip::EndpointId endpoint, uint16_t startTime) +{ + return emberAfWriteServerAttribute(endpoint, ApplianceControl::Id, Ids::StartTime, (uint8_t *) &startTime, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetFinishTime(chip::EndpointId endpoint, uint16_t * finishTime) +{ + return emberAfReadServerAttribute(endpoint, ApplianceControl::Id, Ids::FinishTime, (uint8_t *) finishTime, sizeof(*finishTime)); +} +EmberAfStatus SetFinishTime(chip::EndpointId endpoint, uint16_t finishTime) +{ + return emberAfWriteServerAttribute(endpoint, ApplianceControl::Id, Ids::FinishTime, (uint8_t *) &finishTime, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetRemainingTime(chip::EndpointId endpoint, uint16_t * remainingTime) +{ + return emberAfReadServerAttribute(endpoint, ApplianceControl::Id, Ids::RemainingTime, (uint8_t *) remainingTime, + sizeof(*remainingTime)); +} +EmberAfStatus SetRemainingTime(chip::EndpointId endpoint, uint16_t remainingTime) +{ + return emberAfWriteServerAttribute(endpoint, ApplianceControl::Id, Ids::RemainingTime, (uint8_t *) &remainingTime, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +} // namespace Attributes +} // namespace ApplianceControl + +namespace Descriptor { +namespace Attributes { +} // namespace Attributes +} // namespace Descriptor + +namespace PollControl { +namespace Attributes { +EmberAfStatus GetCheckInInterval(chip::EndpointId endpoint, uint32_t * checkInInterval) +{ + return emberAfReadServerAttribute(endpoint, PollControl::Id, Ids::CheckInInterval, (uint8_t *) checkInInterval, + sizeof(*checkInInterval)); +} +EmberAfStatus SetCheckInInterval(chip::EndpointId endpoint, uint32_t checkInInterval) +{ + return emberAfWriteServerAttribute(endpoint, PollControl::Id, Ids::CheckInInterval, (uint8_t *) &checkInInterval, + ZCL_INT32U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetLongPollInterval(chip::EndpointId endpoint, uint32_t * longPollInterval) +{ + return emberAfReadServerAttribute(endpoint, PollControl::Id, Ids::LongPollInterval, (uint8_t *) longPollInterval, + sizeof(*longPollInterval)); +} +EmberAfStatus SetLongPollInterval(chip::EndpointId endpoint, uint32_t longPollInterval) +{ + return emberAfWriteServerAttribute(endpoint, PollControl::Id, Ids::LongPollInterval, (uint8_t *) &longPollInterval, + ZCL_INT32U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetShortPollInterval(chip::EndpointId endpoint, uint16_t * shortPollInterval) +{ + return emberAfReadServerAttribute(endpoint, PollControl::Id, Ids::ShortPollInterval, (uint8_t *) shortPollInterval, + sizeof(*shortPollInterval)); +} +EmberAfStatus SetShortPollInterval(chip::EndpointId endpoint, uint16_t shortPollInterval) +{ + return emberAfWriteServerAttribute(endpoint, PollControl::Id, Ids::ShortPollInterval, (uint8_t *) &shortPollInterval, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetFastPollTimeout(chip::EndpointId endpoint, uint16_t * fastPollTimeout) +{ + return emberAfReadServerAttribute(endpoint, PollControl::Id, Ids::FastPollTimeout, (uint8_t *) fastPollTimeout, + sizeof(*fastPollTimeout)); +} +EmberAfStatus SetFastPollTimeout(chip::EndpointId endpoint, uint16_t fastPollTimeout) +{ + return emberAfWriteServerAttribute(endpoint, PollControl::Id, Ids::FastPollTimeout, (uint8_t *) &fastPollTimeout, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetCheckInIntervalMin(chip::EndpointId endpoint, uint32_t * checkInIntervalMin) +{ + return emberAfReadServerAttribute(endpoint, PollControl::Id, Ids::CheckInIntervalMin, (uint8_t *) checkInIntervalMin, + sizeof(*checkInIntervalMin)); +} +EmberAfStatus SetCheckInIntervalMin(chip::EndpointId endpoint, uint32_t checkInIntervalMin) +{ + return emberAfWriteServerAttribute(endpoint, PollControl::Id, Ids::CheckInIntervalMin, (uint8_t *) &checkInIntervalMin, + ZCL_INT32U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetLongPollIntervalMin(chip::EndpointId endpoint, uint32_t * longPollIntervalMin) +{ + return emberAfReadServerAttribute(endpoint, PollControl::Id, Ids::LongPollIntervalMin, (uint8_t *) longPollIntervalMin, + sizeof(*longPollIntervalMin)); +} +EmberAfStatus SetLongPollIntervalMin(chip::EndpointId endpoint, uint32_t longPollIntervalMin) +{ + return emberAfWriteServerAttribute(endpoint, PollControl::Id, Ids::LongPollIntervalMin, (uint8_t *) &longPollIntervalMin, + ZCL_INT32U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetFastPollTimeoutMax(chip::EndpointId endpoint, uint16_t * fastPollTimeoutMax) +{ + return emberAfReadServerAttribute(endpoint, PollControl::Id, Ids::FastPollTimeoutMax, (uint8_t *) fastPollTimeoutMax, + sizeof(*fastPollTimeoutMax)); +} +EmberAfStatus SetFastPollTimeoutMax(chip::EndpointId endpoint, uint16_t fastPollTimeoutMax) +{ + return emberAfWriteServerAttribute(endpoint, PollControl::Id, Ids::FastPollTimeoutMax, (uint8_t *) &fastPollTimeoutMax, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +} // namespace Attributes +} // namespace PollControl + +namespace Basic { +namespace Attributes { +EmberAfStatus GetInteractionModelVersion(chip::EndpointId endpoint, uint16_t * interactionModelVersion) +{ + return emberAfReadServerAttribute(endpoint, Basic::Id, Ids::InteractionModelVersion, (uint8_t *) interactionModelVersion, + sizeof(*interactionModelVersion)); +} +EmberAfStatus SetInteractionModelVersion(chip::EndpointId endpoint, uint16_t interactionModelVersion) +{ + return emberAfWriteServerAttribute(endpoint, Basic::Id, Ids::InteractionModelVersion, (uint8_t *) &interactionModelVersion, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetVendorID(chip::EndpointId endpoint, uint16_t * vendorID) +{ + return emberAfReadServerAttribute(endpoint, Basic::Id, Ids::VendorID, (uint8_t *) vendorID, sizeof(*vendorID)); +} +EmberAfStatus SetVendorID(chip::EndpointId endpoint, uint16_t vendorID) +{ + return emberAfWriteServerAttribute(endpoint, Basic::Id, Ids::VendorID, (uint8_t *) &vendorID, ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetProductID(chip::EndpointId endpoint, uint16_t * productID) +{ + return emberAfReadServerAttribute(endpoint, Basic::Id, Ids::ProductID, (uint8_t *) productID, sizeof(*productID)); +} +EmberAfStatus SetProductID(chip::EndpointId endpoint, uint16_t productID) +{ + return emberAfWriteServerAttribute(endpoint, Basic::Id, Ids::ProductID, (uint8_t *) &productID, ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetHardwareVersion(chip::EndpointId endpoint, uint16_t * hardwareVersion) +{ + return emberAfReadServerAttribute(endpoint, Basic::Id, Ids::HardwareVersion, (uint8_t *) hardwareVersion, + sizeof(*hardwareVersion)); +} +EmberAfStatus SetHardwareVersion(chip::EndpointId endpoint, uint16_t hardwareVersion) +{ + return emberAfWriteServerAttribute(endpoint, Basic::Id, Ids::HardwareVersion, (uint8_t *) &hardwareVersion, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetSoftwareVersion(chip::EndpointId endpoint, uint32_t * softwareVersion) +{ + return emberAfReadServerAttribute(endpoint, Basic::Id, Ids::SoftwareVersion, (uint8_t *) softwareVersion, + sizeof(*softwareVersion)); +} +EmberAfStatus SetSoftwareVersion(chip::EndpointId endpoint, uint32_t softwareVersion) +{ + return emberAfWriteServerAttribute(endpoint, Basic::Id, Ids::SoftwareVersion, (uint8_t *) &softwareVersion, + ZCL_INT32U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetLocalConfigDisabled(chip::EndpointId endpoint, uint8_t * localConfigDisabled) +{ + return emberAfReadServerAttribute(endpoint, Basic::Id, Ids::LocalConfigDisabled, (uint8_t *) localConfigDisabled, + sizeof(*localConfigDisabled)); +} +EmberAfStatus SetLocalConfigDisabled(chip::EndpointId endpoint, uint8_t localConfigDisabled) +{ + return emberAfWriteServerAttribute(endpoint, Basic::Id, Ids::LocalConfigDisabled, (uint8_t *) &localConfigDisabled, + ZCL_BOOLEAN_ATTRIBUTE_TYPE); +} +EmberAfStatus GetReachable(chip::EndpointId endpoint, uint8_t * reachable) +{ + return emberAfReadServerAttribute(endpoint, Basic::Id, Ids::Reachable, (uint8_t *) reachable, sizeof(*reachable)); +} +EmberAfStatus SetReachable(chip::EndpointId endpoint, uint8_t reachable) +{ + return emberAfWriteServerAttribute(endpoint, Basic::Id, Ids::Reachable, (uint8_t *) &reachable, ZCL_BOOLEAN_ATTRIBUTE_TYPE); +} +} // namespace Attributes +} // namespace Basic + +namespace GeneralCommissioning { +namespace Attributes { +EmberAfStatus GetBreadcrumb(chip::EndpointId endpoint, uint64_t * breadcrumb) +{ + return emberAfReadServerAttribute(endpoint, GeneralCommissioning::Id, Ids::Breadcrumb, (uint8_t *) breadcrumb, + sizeof(*breadcrumb)); +} +EmberAfStatus SetBreadcrumb(chip::EndpointId endpoint, uint64_t breadcrumb) +{ + return emberAfWriteServerAttribute(endpoint, GeneralCommissioning::Id, Ids::Breadcrumb, (uint8_t *) &breadcrumb, + ZCL_INT64U_ATTRIBUTE_TYPE); +} +} // namespace Attributes +} // namespace GeneralCommissioning + +namespace GeneralDiagnostics { +namespace Attributes { +EmberAfStatus GetRebootCount(chip::EndpointId endpoint, uint16_t * rebootCount) +{ + return emberAfReadServerAttribute(endpoint, GeneralDiagnostics::Id, Ids::RebootCount, (uint8_t *) rebootCount, + sizeof(*rebootCount)); +} +EmberAfStatus SetRebootCount(chip::EndpointId endpoint, uint16_t rebootCount) +{ + return emberAfWriteServerAttribute(endpoint, GeneralDiagnostics::Id, Ids::RebootCount, (uint8_t *) &rebootCount, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetUpTime(chip::EndpointId endpoint, uint64_t * upTime) +{ + return emberAfReadServerAttribute(endpoint, GeneralDiagnostics::Id, Ids::UpTime, (uint8_t *) upTime, sizeof(*upTime)); +} +EmberAfStatus SetUpTime(chip::EndpointId endpoint, uint64_t upTime) +{ + return emberAfWriteServerAttribute(endpoint, GeneralDiagnostics::Id, Ids::UpTime, (uint8_t *) &upTime, + ZCL_INT64U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetTotalOperationalHours(chip::EndpointId endpoint, uint32_t * totalOperationalHours) +{ + return emberAfReadServerAttribute(endpoint, GeneralDiagnostics::Id, Ids::TotalOperationalHours, + (uint8_t *) totalOperationalHours, sizeof(*totalOperationalHours)); +} +EmberAfStatus SetTotalOperationalHours(chip::EndpointId endpoint, uint32_t totalOperationalHours) +{ + return emberAfWriteServerAttribute(endpoint, GeneralDiagnostics::Id, Ids::TotalOperationalHours, + (uint8_t *) &totalOperationalHours, ZCL_INT32U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetBootReasons(chip::EndpointId endpoint, uint8_t * bootReasons) +{ + return emberAfReadServerAttribute(endpoint, GeneralDiagnostics::Id, Ids::BootReasons, (uint8_t *) bootReasons, + sizeof(*bootReasons)); +} +EmberAfStatus SetBootReasons(chip::EndpointId endpoint, uint8_t bootReasons) +{ + return emberAfWriteServerAttribute(endpoint, GeneralDiagnostics::Id, Ids::BootReasons, (uint8_t *) &bootReasons, + ZCL_ENUM8_ATTRIBUTE_TYPE); +} +} // namespace Attributes +} // namespace GeneralDiagnostics + +namespace SoftwareDiagnostics { +namespace Attributes { +EmberAfStatus GetCurrentHeapFree(chip::EndpointId endpoint, uint64_t * currentHeapFree) +{ + return emberAfReadServerAttribute(endpoint, SoftwareDiagnostics::Id, Ids::CurrentHeapFree, (uint8_t *) currentHeapFree, + sizeof(*currentHeapFree)); +} +EmberAfStatus SetCurrentHeapFree(chip::EndpointId endpoint, uint64_t currentHeapFree) +{ + return emberAfWriteServerAttribute(endpoint, SoftwareDiagnostics::Id, Ids::CurrentHeapFree, (uint8_t *) ¤tHeapFree, + ZCL_INT64U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetCurrentHeapUsed(chip::EndpointId endpoint, uint64_t * currentHeapUsed) +{ + return emberAfReadServerAttribute(endpoint, SoftwareDiagnostics::Id, Ids::CurrentHeapUsed, (uint8_t *) currentHeapUsed, + sizeof(*currentHeapUsed)); +} +EmberAfStatus SetCurrentHeapUsed(chip::EndpointId endpoint, uint64_t currentHeapUsed) +{ + return emberAfWriteServerAttribute(endpoint, SoftwareDiagnostics::Id, Ids::CurrentHeapUsed, (uint8_t *) ¤tHeapUsed, + ZCL_INT64U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetCurrentHeapHighWatermark(chip::EndpointId endpoint, uint64_t * currentHeapHighWatermark) +{ + return emberAfReadServerAttribute(endpoint, SoftwareDiagnostics::Id, Ids::CurrentHeapHighWatermark, + (uint8_t *) currentHeapHighWatermark, sizeof(*currentHeapHighWatermark)); +} +EmberAfStatus SetCurrentHeapHighWatermark(chip::EndpointId endpoint, uint64_t currentHeapHighWatermark) +{ + return emberAfWriteServerAttribute(endpoint, SoftwareDiagnostics::Id, Ids::CurrentHeapHighWatermark, + (uint8_t *) ¤tHeapHighWatermark, ZCL_INT64U_ATTRIBUTE_TYPE); +} +} // namespace Attributes +} // namespace SoftwareDiagnostics + +namespace ThreadNetworkDiagnostics { +namespace Attributes { +EmberAfStatus GetChannel(chip::EndpointId endpoint, uint8_t * channel) +{ + return emberAfReadServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::Channel, (uint8_t *) channel, sizeof(*channel)); +} +EmberAfStatus SetChannel(chip::EndpointId endpoint, uint8_t channel) +{ + return emberAfWriteServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::Channel, (uint8_t *) &channel, + ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetRoutingRole(chip::EndpointId endpoint, uint8_t * routingRole) +{ + return emberAfReadServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::RoutingRole, (uint8_t *) routingRole, + sizeof(*routingRole)); +} +EmberAfStatus SetRoutingRole(chip::EndpointId endpoint, uint8_t routingRole) +{ + return emberAfWriteServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::RoutingRole, (uint8_t *) &routingRole, + ZCL_ENUM8_ATTRIBUTE_TYPE); +} +EmberAfStatus GetPanId(chip::EndpointId endpoint, uint16_t * panId) +{ + return emberAfReadServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::PanId, (uint8_t *) panId, sizeof(*panId)); +} +EmberAfStatus SetPanId(chip::EndpointId endpoint, uint16_t panId) +{ + return emberAfWriteServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::PanId, (uint8_t *) &panId, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetExtendedPanId(chip::EndpointId endpoint, uint64_t * extendedPanId) +{ + return emberAfReadServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::ExtendedPanId, (uint8_t *) extendedPanId, + sizeof(*extendedPanId)); +} +EmberAfStatus SetExtendedPanId(chip::EndpointId endpoint, uint64_t extendedPanId) +{ + return emberAfWriteServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::ExtendedPanId, (uint8_t *) &extendedPanId, + ZCL_INT64U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetOverrunCount(chip::EndpointId endpoint, uint64_t * overrunCount) +{ + return emberAfReadServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::OverrunCount, (uint8_t *) overrunCount, + sizeof(*overrunCount)); +} +EmberAfStatus SetOverrunCount(chip::EndpointId endpoint, uint64_t overrunCount) +{ + return emberAfWriteServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::OverrunCount, (uint8_t *) &overrunCount, + ZCL_INT64U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetPartitionId(chip::EndpointId endpoint, uint32_t * partitionId) +{ + return emberAfReadServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::PartitionId, (uint8_t *) partitionId, + sizeof(*partitionId)); +} +EmberAfStatus SetPartitionId(chip::EndpointId endpoint, uint32_t partitionId) +{ + return emberAfWriteServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::PartitionId, (uint8_t *) &partitionId, + ZCL_INT32U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetWeighting(chip::EndpointId endpoint, uint8_t * weighting) +{ + return emberAfReadServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::Weighting, (uint8_t *) weighting, + sizeof(*weighting)); +} +EmberAfStatus SetWeighting(chip::EndpointId endpoint, uint8_t weighting) +{ + return emberAfWriteServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::Weighting, (uint8_t *) &weighting, + ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetDataVersion(chip::EndpointId endpoint, uint8_t * dataVersion) +{ + return emberAfReadServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::DataVersion, (uint8_t *) dataVersion, + sizeof(*dataVersion)); +} +EmberAfStatus SetDataVersion(chip::EndpointId endpoint, uint8_t dataVersion) +{ + return emberAfWriteServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::DataVersion, (uint8_t *) &dataVersion, + ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetStableDataVersion(chip::EndpointId endpoint, uint8_t * stableDataVersion) +{ + return emberAfReadServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::StableDataVersion, (uint8_t *) stableDataVersion, + sizeof(*stableDataVersion)); +} +EmberAfStatus SetStableDataVersion(chip::EndpointId endpoint, uint8_t stableDataVersion) +{ + return emberAfWriteServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::StableDataVersion, + (uint8_t *) &stableDataVersion, ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetLeaderRouterId(chip::EndpointId endpoint, uint8_t * leaderRouterId) +{ + return emberAfReadServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::LeaderRouterId, (uint8_t *) leaderRouterId, + sizeof(*leaderRouterId)); +} +EmberAfStatus SetLeaderRouterId(chip::EndpointId endpoint, uint8_t leaderRouterId) +{ + return emberAfWriteServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::LeaderRouterId, (uint8_t *) &leaderRouterId, + ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetDetachedRoleCount(chip::EndpointId endpoint, uint16_t * detachedRoleCount) +{ + return emberAfReadServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::DetachedRoleCount, (uint8_t *) detachedRoleCount, + sizeof(*detachedRoleCount)); +} +EmberAfStatus SetDetachedRoleCount(chip::EndpointId endpoint, uint16_t detachedRoleCount) +{ + return emberAfWriteServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::DetachedRoleCount, + (uint8_t *) &detachedRoleCount, ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetChildRoleCount(chip::EndpointId endpoint, uint16_t * childRoleCount) +{ + return emberAfReadServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::ChildRoleCount, (uint8_t *) childRoleCount, + sizeof(*childRoleCount)); +} +EmberAfStatus SetChildRoleCount(chip::EndpointId endpoint, uint16_t childRoleCount) +{ + return emberAfWriteServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::ChildRoleCount, (uint8_t *) &childRoleCount, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetRouterRoleCount(chip::EndpointId endpoint, uint16_t * routerRoleCount) +{ + return emberAfReadServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::RouterRoleCount, (uint8_t *) routerRoleCount, + sizeof(*routerRoleCount)); +} +EmberAfStatus SetRouterRoleCount(chip::EndpointId endpoint, uint16_t routerRoleCount) +{ + return emberAfWriteServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::RouterRoleCount, (uint8_t *) &routerRoleCount, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetLeaderRoleCount(chip::EndpointId endpoint, uint16_t * leaderRoleCount) +{ + return emberAfReadServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::LeaderRoleCount, (uint8_t *) leaderRoleCount, + sizeof(*leaderRoleCount)); +} +EmberAfStatus SetLeaderRoleCount(chip::EndpointId endpoint, uint16_t leaderRoleCount) +{ + return emberAfWriteServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::LeaderRoleCount, (uint8_t *) &leaderRoleCount, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetAttachAttemptCount(chip::EndpointId endpoint, uint16_t * attachAttemptCount) +{ + return emberAfReadServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::AttachAttemptCount, + (uint8_t *) attachAttemptCount, sizeof(*attachAttemptCount)); +} +EmberAfStatus SetAttachAttemptCount(chip::EndpointId endpoint, uint16_t attachAttemptCount) +{ + return emberAfWriteServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::AttachAttemptCount, + (uint8_t *) &attachAttemptCount, ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetPartitionIdChangeCount(chip::EndpointId endpoint, uint16_t * partitionIdChangeCount) +{ + return emberAfReadServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::PartitionIdChangeCount, + (uint8_t *) partitionIdChangeCount, sizeof(*partitionIdChangeCount)); +} +EmberAfStatus SetPartitionIdChangeCount(chip::EndpointId endpoint, uint16_t partitionIdChangeCount) +{ + return emberAfWriteServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::PartitionIdChangeCount, + (uint8_t *) &partitionIdChangeCount, ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetBetterPartitionAttachAttemptCount(chip::EndpointId endpoint, uint16_t * betterPartitionAttachAttemptCount) +{ + return emberAfReadServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::BetterPartitionAttachAttemptCount, + (uint8_t *) betterPartitionAttachAttemptCount, sizeof(*betterPartitionAttachAttemptCount)); +} +EmberAfStatus SetBetterPartitionAttachAttemptCount(chip::EndpointId endpoint, uint16_t betterPartitionAttachAttemptCount) +{ + return emberAfWriteServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::BetterPartitionAttachAttemptCount, + (uint8_t *) &betterPartitionAttachAttemptCount, ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetParentChangeCount(chip::EndpointId endpoint, uint16_t * parentChangeCount) +{ + return emberAfReadServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::ParentChangeCount, (uint8_t *) parentChangeCount, + sizeof(*parentChangeCount)); +} +EmberAfStatus SetParentChangeCount(chip::EndpointId endpoint, uint16_t parentChangeCount) +{ + return emberAfWriteServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::ParentChangeCount, + (uint8_t *) &parentChangeCount, ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetTxTotalCount(chip::EndpointId endpoint, uint32_t * txTotalCount) +{ + return emberAfReadServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::TxTotalCount, (uint8_t *) txTotalCount, + sizeof(*txTotalCount)); +} +EmberAfStatus SetTxTotalCount(chip::EndpointId endpoint, uint32_t txTotalCount) +{ + return emberAfWriteServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::TxTotalCount, (uint8_t *) &txTotalCount, + ZCL_INT32U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetTxUnicastCount(chip::EndpointId endpoint, uint32_t * txUnicastCount) +{ + return emberAfReadServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::TxUnicastCount, (uint8_t *) txUnicastCount, + sizeof(*txUnicastCount)); +} +EmberAfStatus SetTxUnicastCount(chip::EndpointId endpoint, uint32_t txUnicastCount) +{ + return emberAfWriteServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::TxUnicastCount, (uint8_t *) &txUnicastCount, + ZCL_INT32U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetTxBroadcastCount(chip::EndpointId endpoint, uint32_t * txBroadcastCount) +{ + return emberAfReadServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::TxBroadcastCount, (uint8_t *) txBroadcastCount, + sizeof(*txBroadcastCount)); +} +EmberAfStatus SetTxBroadcastCount(chip::EndpointId endpoint, uint32_t txBroadcastCount) +{ + return emberAfWriteServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::TxBroadcastCount, (uint8_t *) &txBroadcastCount, + ZCL_INT32U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetTxAckRequestedCount(chip::EndpointId endpoint, uint32_t * txAckRequestedCount) +{ + return emberAfReadServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::TxAckRequestedCount, + (uint8_t *) txAckRequestedCount, sizeof(*txAckRequestedCount)); +} +EmberAfStatus SetTxAckRequestedCount(chip::EndpointId endpoint, uint32_t txAckRequestedCount) +{ + return emberAfWriteServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::TxAckRequestedCount, + (uint8_t *) &txAckRequestedCount, ZCL_INT32U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetTxAckedCount(chip::EndpointId endpoint, uint32_t * txAckedCount) +{ + return emberAfReadServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::TxAckedCount, (uint8_t *) txAckedCount, + sizeof(*txAckedCount)); +} +EmberAfStatus SetTxAckedCount(chip::EndpointId endpoint, uint32_t txAckedCount) +{ + return emberAfWriteServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::TxAckedCount, (uint8_t *) &txAckedCount, + ZCL_INT32U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetTxNoAckRequestedCount(chip::EndpointId endpoint, uint32_t * txNoAckRequestedCount) +{ + return emberAfReadServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::TxNoAckRequestedCount, + (uint8_t *) txNoAckRequestedCount, sizeof(*txNoAckRequestedCount)); +} +EmberAfStatus SetTxNoAckRequestedCount(chip::EndpointId endpoint, uint32_t txNoAckRequestedCount) +{ + return emberAfWriteServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::TxNoAckRequestedCount, + (uint8_t *) &txNoAckRequestedCount, ZCL_INT32U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetTxDataCount(chip::EndpointId endpoint, uint32_t * txDataCount) +{ + return emberAfReadServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::TxDataCount, (uint8_t *) txDataCount, + sizeof(*txDataCount)); +} +EmberAfStatus SetTxDataCount(chip::EndpointId endpoint, uint32_t txDataCount) +{ + return emberAfWriteServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::TxDataCount, (uint8_t *) &txDataCount, + ZCL_INT32U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetTxDataPollCount(chip::EndpointId endpoint, uint32_t * txDataPollCount) +{ + return emberAfReadServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::TxDataPollCount, (uint8_t *) txDataPollCount, + sizeof(*txDataPollCount)); +} +EmberAfStatus SetTxDataPollCount(chip::EndpointId endpoint, uint32_t txDataPollCount) +{ + return emberAfWriteServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::TxDataPollCount, (uint8_t *) &txDataPollCount, + ZCL_INT32U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetTxBeaconCount(chip::EndpointId endpoint, uint32_t * txBeaconCount) +{ + return emberAfReadServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::TxBeaconCount, (uint8_t *) txBeaconCount, + sizeof(*txBeaconCount)); +} +EmberAfStatus SetTxBeaconCount(chip::EndpointId endpoint, uint32_t txBeaconCount) +{ + return emberAfWriteServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::TxBeaconCount, (uint8_t *) &txBeaconCount, + ZCL_INT32U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetTxBeaconRequestCount(chip::EndpointId endpoint, uint32_t * txBeaconRequestCount) +{ + return emberAfReadServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::TxBeaconRequestCount, + (uint8_t *) txBeaconRequestCount, sizeof(*txBeaconRequestCount)); +} +EmberAfStatus SetTxBeaconRequestCount(chip::EndpointId endpoint, uint32_t txBeaconRequestCount) +{ + return emberAfWriteServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::TxBeaconRequestCount, + (uint8_t *) &txBeaconRequestCount, ZCL_INT32U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetTxOtherCount(chip::EndpointId endpoint, uint32_t * txOtherCount) +{ + return emberAfReadServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::TxOtherCount, (uint8_t *) txOtherCount, + sizeof(*txOtherCount)); +} +EmberAfStatus SetTxOtherCount(chip::EndpointId endpoint, uint32_t txOtherCount) +{ + return emberAfWriteServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::TxOtherCount, (uint8_t *) &txOtherCount, + ZCL_INT32U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetTxRetryCount(chip::EndpointId endpoint, uint32_t * txRetryCount) +{ + return emberAfReadServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::TxRetryCount, (uint8_t *) txRetryCount, + sizeof(*txRetryCount)); +} +EmberAfStatus SetTxRetryCount(chip::EndpointId endpoint, uint32_t txRetryCount) +{ + return emberAfWriteServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::TxRetryCount, (uint8_t *) &txRetryCount, + ZCL_INT32U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetTxDirectMaxRetryExpiryCount(chip::EndpointId endpoint, uint32_t * txDirectMaxRetryExpiryCount) +{ + return emberAfReadServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::TxDirectMaxRetryExpiryCount, + (uint8_t *) txDirectMaxRetryExpiryCount, sizeof(*txDirectMaxRetryExpiryCount)); +} +EmberAfStatus SetTxDirectMaxRetryExpiryCount(chip::EndpointId endpoint, uint32_t txDirectMaxRetryExpiryCount) +{ + return emberAfWriteServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::TxDirectMaxRetryExpiryCount, + (uint8_t *) &txDirectMaxRetryExpiryCount, ZCL_INT32U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetTxIndirectMaxRetryExpiryCount(chip::EndpointId endpoint, uint32_t * txIndirectMaxRetryExpiryCount) +{ + return emberAfReadServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::TxIndirectMaxRetryExpiryCount, + (uint8_t *) txIndirectMaxRetryExpiryCount, sizeof(*txIndirectMaxRetryExpiryCount)); +} +EmberAfStatus SetTxIndirectMaxRetryExpiryCount(chip::EndpointId endpoint, uint32_t txIndirectMaxRetryExpiryCount) +{ + return emberAfWriteServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::TxIndirectMaxRetryExpiryCount, + (uint8_t *) &txIndirectMaxRetryExpiryCount, ZCL_INT32U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetTxErrCcaCount(chip::EndpointId endpoint, uint32_t * txErrCcaCount) +{ + return emberAfReadServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::TxErrCcaCount, (uint8_t *) txErrCcaCount, + sizeof(*txErrCcaCount)); +} +EmberAfStatus SetTxErrCcaCount(chip::EndpointId endpoint, uint32_t txErrCcaCount) +{ + return emberAfWriteServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::TxErrCcaCount, (uint8_t *) &txErrCcaCount, + ZCL_INT32U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetTxErrAbortCount(chip::EndpointId endpoint, uint32_t * txErrAbortCount) +{ + return emberAfReadServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::TxErrAbortCount, (uint8_t *) txErrAbortCount, + sizeof(*txErrAbortCount)); +} +EmberAfStatus SetTxErrAbortCount(chip::EndpointId endpoint, uint32_t txErrAbortCount) +{ + return emberAfWriteServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::TxErrAbortCount, (uint8_t *) &txErrAbortCount, + ZCL_INT32U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetTxErrBusyChannelCount(chip::EndpointId endpoint, uint32_t * txErrBusyChannelCount) +{ + return emberAfReadServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::TxErrBusyChannelCount, + (uint8_t *) txErrBusyChannelCount, sizeof(*txErrBusyChannelCount)); +} +EmberAfStatus SetTxErrBusyChannelCount(chip::EndpointId endpoint, uint32_t txErrBusyChannelCount) +{ + return emberAfWriteServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::TxErrBusyChannelCount, + (uint8_t *) &txErrBusyChannelCount, ZCL_INT32U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetRxTotalCount(chip::EndpointId endpoint, uint32_t * rxTotalCount) +{ + return emberAfReadServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::RxTotalCount, (uint8_t *) rxTotalCount, + sizeof(*rxTotalCount)); +} +EmberAfStatus SetRxTotalCount(chip::EndpointId endpoint, uint32_t rxTotalCount) +{ + return emberAfWriteServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::RxTotalCount, (uint8_t *) &rxTotalCount, + ZCL_INT32U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetRxUnicastCount(chip::EndpointId endpoint, uint32_t * rxUnicastCount) +{ + return emberAfReadServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::RxUnicastCount, (uint8_t *) rxUnicastCount, + sizeof(*rxUnicastCount)); +} +EmberAfStatus SetRxUnicastCount(chip::EndpointId endpoint, uint32_t rxUnicastCount) +{ + return emberAfWriteServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::RxUnicastCount, (uint8_t *) &rxUnicastCount, + ZCL_INT32U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetRxBroadcastCount(chip::EndpointId endpoint, uint32_t * rxBroadcastCount) +{ + return emberAfReadServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::RxBroadcastCount, (uint8_t *) rxBroadcastCount, + sizeof(*rxBroadcastCount)); +} +EmberAfStatus SetRxBroadcastCount(chip::EndpointId endpoint, uint32_t rxBroadcastCount) +{ + return emberAfWriteServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::RxBroadcastCount, (uint8_t *) &rxBroadcastCount, + ZCL_INT32U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetRxDataCount(chip::EndpointId endpoint, uint32_t * rxDataCount) +{ + return emberAfReadServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::RxDataCount, (uint8_t *) rxDataCount, + sizeof(*rxDataCount)); +} +EmberAfStatus SetRxDataCount(chip::EndpointId endpoint, uint32_t rxDataCount) +{ + return emberAfWriteServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::RxDataCount, (uint8_t *) &rxDataCount, + ZCL_INT32U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetRxDataPollCount(chip::EndpointId endpoint, uint32_t * rxDataPollCount) +{ + return emberAfReadServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::RxDataPollCount, (uint8_t *) rxDataPollCount, + sizeof(*rxDataPollCount)); +} +EmberAfStatus SetRxDataPollCount(chip::EndpointId endpoint, uint32_t rxDataPollCount) +{ + return emberAfWriteServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::RxDataPollCount, (uint8_t *) &rxDataPollCount, + ZCL_INT32U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetRxBeaconCount(chip::EndpointId endpoint, uint32_t * rxBeaconCount) +{ + return emberAfReadServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::RxBeaconCount, (uint8_t *) rxBeaconCount, + sizeof(*rxBeaconCount)); +} +EmberAfStatus SetRxBeaconCount(chip::EndpointId endpoint, uint32_t rxBeaconCount) +{ + return emberAfWriteServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::RxBeaconCount, (uint8_t *) &rxBeaconCount, + ZCL_INT32U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetRxBeaconRequestCount(chip::EndpointId endpoint, uint32_t * rxBeaconRequestCount) +{ + return emberAfReadServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::RxBeaconRequestCount, + (uint8_t *) rxBeaconRequestCount, sizeof(*rxBeaconRequestCount)); +} +EmberAfStatus SetRxBeaconRequestCount(chip::EndpointId endpoint, uint32_t rxBeaconRequestCount) +{ + return emberAfWriteServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::RxBeaconRequestCount, + (uint8_t *) &rxBeaconRequestCount, ZCL_INT32U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetRxOtherCount(chip::EndpointId endpoint, uint32_t * rxOtherCount) +{ + return emberAfReadServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::RxOtherCount, (uint8_t *) rxOtherCount, + sizeof(*rxOtherCount)); +} +EmberAfStatus SetRxOtherCount(chip::EndpointId endpoint, uint32_t rxOtherCount) +{ + return emberAfWriteServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::RxOtherCount, (uint8_t *) &rxOtherCount, + ZCL_INT32U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetRxAddressFilteredCount(chip::EndpointId endpoint, uint32_t * rxAddressFilteredCount) +{ + return emberAfReadServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::RxAddressFilteredCount, + (uint8_t *) rxAddressFilteredCount, sizeof(*rxAddressFilteredCount)); +} +EmberAfStatus SetRxAddressFilteredCount(chip::EndpointId endpoint, uint32_t rxAddressFilteredCount) +{ + return emberAfWriteServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::RxAddressFilteredCount, + (uint8_t *) &rxAddressFilteredCount, ZCL_INT32U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetRxDestAddrFilteredCount(chip::EndpointId endpoint, uint32_t * rxDestAddrFilteredCount) +{ + return emberAfReadServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::RxDestAddrFilteredCount, + (uint8_t *) rxDestAddrFilteredCount, sizeof(*rxDestAddrFilteredCount)); +} +EmberAfStatus SetRxDestAddrFilteredCount(chip::EndpointId endpoint, uint32_t rxDestAddrFilteredCount) +{ + return emberAfWriteServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::RxDestAddrFilteredCount, + (uint8_t *) &rxDestAddrFilteredCount, ZCL_INT32U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetRxDuplicatedCount(chip::EndpointId endpoint, uint32_t * rxDuplicatedCount) +{ + return emberAfReadServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::RxDuplicatedCount, (uint8_t *) rxDuplicatedCount, + sizeof(*rxDuplicatedCount)); +} +EmberAfStatus SetRxDuplicatedCount(chip::EndpointId endpoint, uint32_t rxDuplicatedCount) +{ + return emberAfWriteServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::RxDuplicatedCount, + (uint8_t *) &rxDuplicatedCount, ZCL_INT32U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetRxErrNoFrameCount(chip::EndpointId endpoint, uint32_t * rxErrNoFrameCount) +{ + return emberAfReadServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::RxErrNoFrameCount, (uint8_t *) rxErrNoFrameCount, + sizeof(*rxErrNoFrameCount)); +} +EmberAfStatus SetRxErrNoFrameCount(chip::EndpointId endpoint, uint32_t rxErrNoFrameCount) +{ + return emberAfWriteServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::RxErrNoFrameCount, + (uint8_t *) &rxErrNoFrameCount, ZCL_INT32U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetRxErrUnknownNeighborCount(chip::EndpointId endpoint, uint32_t * rxErrUnknownNeighborCount) +{ + return emberAfReadServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::RxErrUnknownNeighborCount, + (uint8_t *) rxErrUnknownNeighborCount, sizeof(*rxErrUnknownNeighborCount)); +} +EmberAfStatus SetRxErrUnknownNeighborCount(chip::EndpointId endpoint, uint32_t rxErrUnknownNeighborCount) +{ + return emberAfWriteServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::RxErrUnknownNeighborCount, + (uint8_t *) &rxErrUnknownNeighborCount, ZCL_INT32U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetRxErrInvalidSrcAddrCount(chip::EndpointId endpoint, uint32_t * rxErrInvalidSrcAddrCount) +{ + return emberAfReadServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::RxErrInvalidSrcAddrCount, + (uint8_t *) rxErrInvalidSrcAddrCount, sizeof(*rxErrInvalidSrcAddrCount)); +} +EmberAfStatus SetRxErrInvalidSrcAddrCount(chip::EndpointId endpoint, uint32_t rxErrInvalidSrcAddrCount) +{ + return emberAfWriteServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::RxErrInvalidSrcAddrCount, + (uint8_t *) &rxErrInvalidSrcAddrCount, ZCL_INT32U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetRxErrSecCount(chip::EndpointId endpoint, uint32_t * rxErrSecCount) +{ + return emberAfReadServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::RxErrSecCount, (uint8_t *) rxErrSecCount, + sizeof(*rxErrSecCount)); +} +EmberAfStatus SetRxErrSecCount(chip::EndpointId endpoint, uint32_t rxErrSecCount) +{ + return emberAfWriteServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::RxErrSecCount, (uint8_t *) &rxErrSecCount, + ZCL_INT32U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetRxErrFcsCount(chip::EndpointId endpoint, uint32_t * rxErrFcsCount) +{ + return emberAfReadServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::RxErrFcsCount, (uint8_t *) rxErrFcsCount, + sizeof(*rxErrFcsCount)); +} +EmberAfStatus SetRxErrFcsCount(chip::EndpointId endpoint, uint32_t rxErrFcsCount) +{ + return emberAfWriteServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::RxErrFcsCount, (uint8_t *) &rxErrFcsCount, + ZCL_INT32U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetRxErrOtherCount(chip::EndpointId endpoint, uint32_t * rxErrOtherCount) +{ + return emberAfReadServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::RxErrOtherCount, (uint8_t *) rxErrOtherCount, + sizeof(*rxErrOtherCount)); +} +EmberAfStatus SetRxErrOtherCount(chip::EndpointId endpoint, uint32_t rxErrOtherCount) +{ + return emberAfWriteServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::RxErrOtherCount, (uint8_t *) &rxErrOtherCount, + ZCL_INT32U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetActiveTimestamp(chip::EndpointId endpoint, uint64_t * activeTimestamp) +{ + return emberAfReadServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::ActiveTimestamp, (uint8_t *) activeTimestamp, + sizeof(*activeTimestamp)); +} +EmberAfStatus SetActiveTimestamp(chip::EndpointId endpoint, uint64_t activeTimestamp) +{ + return emberAfWriteServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::ActiveTimestamp, (uint8_t *) &activeTimestamp, + ZCL_INT64U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetPendingTimestamp(chip::EndpointId endpoint, uint64_t * pendingTimestamp) +{ + return emberAfReadServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::PendingTimestamp, (uint8_t *) pendingTimestamp, + sizeof(*pendingTimestamp)); +} +EmberAfStatus SetPendingTimestamp(chip::EndpointId endpoint, uint64_t pendingTimestamp) +{ + return emberAfWriteServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::PendingTimestamp, (uint8_t *) &pendingTimestamp, + ZCL_INT64U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetDelay(chip::EndpointId endpoint, uint32_t * delay) +{ + return emberAfReadServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::Delay, (uint8_t *) delay, sizeof(*delay)); +} +EmberAfStatus SetDelay(chip::EndpointId endpoint, uint32_t delay) +{ + return emberAfWriteServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::Delay, (uint8_t *) &delay, + ZCL_INT32U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetChannelMask(chip::EndpointId endpoint, uint8_t * channelMask) +{ + return emberAfReadServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::ChannelMask, (uint8_t *) channelMask, + sizeof(*channelMask)); +} +EmberAfStatus SetChannelMask(chip::EndpointId endpoint, uint8_t channelMask) +{ + return emberAfWriteServerAttribute(endpoint, ThreadNetworkDiagnostics::Id, Ids::ChannelMask, (uint8_t *) &channelMask, + ZCL_INT8U_ATTRIBUTE_TYPE); +} +} // namespace Attributes +} // namespace ThreadNetworkDiagnostics + +namespace WiFiNetworkDiagnostics { +namespace Attributes { +EmberAfStatus GetSecurityType(chip::EndpointId endpoint, uint8_t * securityType) +{ + return emberAfReadServerAttribute(endpoint, WiFiNetworkDiagnostics::Id, Ids::SecurityType, (uint8_t *) securityType, + sizeof(*securityType)); +} +EmberAfStatus SetSecurityType(chip::EndpointId endpoint, uint8_t securityType) +{ + return emberAfWriteServerAttribute(endpoint, WiFiNetworkDiagnostics::Id, Ids::SecurityType, (uint8_t *) &securityType, + ZCL_ENUM8_ATTRIBUTE_TYPE); +} +EmberAfStatus GetWiFiVersion(chip::EndpointId endpoint, uint8_t * wiFiVersion) +{ + return emberAfReadServerAttribute(endpoint, WiFiNetworkDiagnostics::Id, Ids::WiFiVersion, (uint8_t *) wiFiVersion, + sizeof(*wiFiVersion)); +} +EmberAfStatus SetWiFiVersion(chip::EndpointId endpoint, uint8_t wiFiVersion) +{ + return emberAfWriteServerAttribute(endpoint, WiFiNetworkDiagnostics::Id, Ids::WiFiVersion, (uint8_t *) &wiFiVersion, + ZCL_ENUM8_ATTRIBUTE_TYPE); +} +EmberAfStatus GetChannelNumber(chip::EndpointId endpoint, uint16_t * channelNumber) +{ + return emberAfReadServerAttribute(endpoint, WiFiNetworkDiagnostics::Id, Ids::ChannelNumber, (uint8_t *) channelNumber, + sizeof(*channelNumber)); +} +EmberAfStatus SetChannelNumber(chip::EndpointId endpoint, uint16_t channelNumber) +{ + return emberAfWriteServerAttribute(endpoint, WiFiNetworkDiagnostics::Id, Ids::ChannelNumber, (uint8_t *) &channelNumber, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetRssi(chip::EndpointId endpoint, int8_t * rssi) +{ + return emberAfReadServerAttribute(endpoint, WiFiNetworkDiagnostics::Id, Ids::Rssi, (uint8_t *) rssi, sizeof(*rssi)); +} +EmberAfStatus SetRssi(chip::EndpointId endpoint, int8_t rssi) +{ + return emberAfWriteServerAttribute(endpoint, WiFiNetworkDiagnostics::Id, Ids::Rssi, (uint8_t *) &rssi, + ZCL_INT8S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetBeaconLostCount(chip::EndpointId endpoint, uint32_t * beaconLostCount) +{ + return emberAfReadServerAttribute(endpoint, WiFiNetworkDiagnostics::Id, Ids::BeaconLostCount, (uint8_t *) beaconLostCount, + sizeof(*beaconLostCount)); +} +EmberAfStatus SetBeaconLostCount(chip::EndpointId endpoint, uint32_t beaconLostCount) +{ + return emberAfWriteServerAttribute(endpoint, WiFiNetworkDiagnostics::Id, Ids::BeaconLostCount, (uint8_t *) &beaconLostCount, + ZCL_INT32U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetBeaconRxCount(chip::EndpointId endpoint, uint32_t * beaconRxCount) +{ + return emberAfReadServerAttribute(endpoint, WiFiNetworkDiagnostics::Id, Ids::BeaconRxCount, (uint8_t *) beaconRxCount, + sizeof(*beaconRxCount)); +} +EmberAfStatus SetBeaconRxCount(chip::EndpointId endpoint, uint32_t beaconRxCount) +{ + return emberAfWriteServerAttribute(endpoint, WiFiNetworkDiagnostics::Id, Ids::BeaconRxCount, (uint8_t *) &beaconRxCount, + ZCL_INT32U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetPacketMulticastRxCount(chip::EndpointId endpoint, uint32_t * packetMulticastRxCount) +{ + return emberAfReadServerAttribute(endpoint, WiFiNetworkDiagnostics::Id, Ids::PacketMulticastRxCount, + (uint8_t *) packetMulticastRxCount, sizeof(*packetMulticastRxCount)); +} +EmberAfStatus SetPacketMulticastRxCount(chip::EndpointId endpoint, uint32_t packetMulticastRxCount) +{ + return emberAfWriteServerAttribute(endpoint, WiFiNetworkDiagnostics::Id, Ids::PacketMulticastRxCount, + (uint8_t *) &packetMulticastRxCount, ZCL_INT32U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetPacketMulticastTxCount(chip::EndpointId endpoint, uint32_t * packetMulticastTxCount) +{ + return emberAfReadServerAttribute(endpoint, WiFiNetworkDiagnostics::Id, Ids::PacketMulticastTxCount, + (uint8_t *) packetMulticastTxCount, sizeof(*packetMulticastTxCount)); +} +EmberAfStatus SetPacketMulticastTxCount(chip::EndpointId endpoint, uint32_t packetMulticastTxCount) +{ + return emberAfWriteServerAttribute(endpoint, WiFiNetworkDiagnostics::Id, Ids::PacketMulticastTxCount, + (uint8_t *) &packetMulticastTxCount, ZCL_INT32U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetPacketUnicastRxCount(chip::EndpointId endpoint, uint32_t * packetUnicastRxCount) +{ + return emberAfReadServerAttribute(endpoint, WiFiNetworkDiagnostics::Id, Ids::PacketUnicastRxCount, + (uint8_t *) packetUnicastRxCount, sizeof(*packetUnicastRxCount)); +} +EmberAfStatus SetPacketUnicastRxCount(chip::EndpointId endpoint, uint32_t packetUnicastRxCount) +{ + return emberAfWriteServerAttribute(endpoint, WiFiNetworkDiagnostics::Id, Ids::PacketUnicastRxCount, + (uint8_t *) &packetUnicastRxCount, ZCL_INT32U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetPacketUnicastTxCount(chip::EndpointId endpoint, uint32_t * packetUnicastTxCount) +{ + return emberAfReadServerAttribute(endpoint, WiFiNetworkDiagnostics::Id, Ids::PacketUnicastTxCount, + (uint8_t *) packetUnicastTxCount, sizeof(*packetUnicastTxCount)); +} +EmberAfStatus SetPacketUnicastTxCount(chip::EndpointId endpoint, uint32_t packetUnicastTxCount) +{ + return emberAfWriteServerAttribute(endpoint, WiFiNetworkDiagnostics::Id, Ids::PacketUnicastTxCount, + (uint8_t *) &packetUnicastTxCount, ZCL_INT32U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetCurrentMaxRate(chip::EndpointId endpoint, uint64_t * currentMaxRate) +{ + return emberAfReadServerAttribute(endpoint, WiFiNetworkDiagnostics::Id, Ids::CurrentMaxRate, (uint8_t *) currentMaxRate, + sizeof(*currentMaxRate)); +} +EmberAfStatus SetCurrentMaxRate(chip::EndpointId endpoint, uint64_t currentMaxRate) +{ + return emberAfWriteServerAttribute(endpoint, WiFiNetworkDiagnostics::Id, Ids::CurrentMaxRate, (uint8_t *) ¤tMaxRate, + ZCL_INT64U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetOverrunCount(chip::EndpointId endpoint, uint64_t * overrunCount) +{ + return emberAfReadServerAttribute(endpoint, WiFiNetworkDiagnostics::Id, Ids::OverrunCount, (uint8_t *) overrunCount, + sizeof(*overrunCount)); +} +EmberAfStatus SetOverrunCount(chip::EndpointId endpoint, uint64_t overrunCount) +{ + return emberAfWriteServerAttribute(endpoint, WiFiNetworkDiagnostics::Id, Ids::OverrunCount, (uint8_t *) &overrunCount, + ZCL_INT64U_ATTRIBUTE_TYPE); +} +} // namespace Attributes +} // namespace WiFiNetworkDiagnostics + +namespace EthernetNetworkDiagnostics { +namespace Attributes { +EmberAfStatus GetPHYRate(chip::EndpointId endpoint, uint8_t * pHYRate) +{ + return emberAfReadServerAttribute(endpoint, EthernetNetworkDiagnostics::Id, Ids::PHYRate, (uint8_t *) pHYRate, + sizeof(*pHYRate)); +} +EmberAfStatus SetPHYRate(chip::EndpointId endpoint, uint8_t pHYRate) +{ + return emberAfWriteServerAttribute(endpoint, EthernetNetworkDiagnostics::Id, Ids::PHYRate, (uint8_t *) &pHYRate, + ZCL_ENUM8_ATTRIBUTE_TYPE); +} +EmberAfStatus GetFullDuplex(chip::EndpointId endpoint, uint8_t * fullDuplex) +{ + return emberAfReadServerAttribute(endpoint, EthernetNetworkDiagnostics::Id, Ids::FullDuplex, (uint8_t *) fullDuplex, + sizeof(*fullDuplex)); +} +EmberAfStatus SetFullDuplex(chip::EndpointId endpoint, uint8_t fullDuplex) +{ + return emberAfWriteServerAttribute(endpoint, EthernetNetworkDiagnostics::Id, Ids::FullDuplex, (uint8_t *) &fullDuplex, + ZCL_BOOLEAN_ATTRIBUTE_TYPE); +} +EmberAfStatus GetPacketRxCount(chip::EndpointId endpoint, uint64_t * packetRxCount) +{ + return emberAfReadServerAttribute(endpoint, EthernetNetworkDiagnostics::Id, Ids::PacketRxCount, (uint8_t *) packetRxCount, + sizeof(*packetRxCount)); +} +EmberAfStatus SetPacketRxCount(chip::EndpointId endpoint, uint64_t packetRxCount) +{ + return emberAfWriteServerAttribute(endpoint, EthernetNetworkDiagnostics::Id, Ids::PacketRxCount, (uint8_t *) &packetRxCount, + ZCL_INT64U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetPacketTxCount(chip::EndpointId endpoint, uint64_t * packetTxCount) +{ + return emberAfReadServerAttribute(endpoint, EthernetNetworkDiagnostics::Id, Ids::PacketTxCount, (uint8_t *) packetTxCount, + sizeof(*packetTxCount)); +} +EmberAfStatus SetPacketTxCount(chip::EndpointId endpoint, uint64_t packetTxCount) +{ + return emberAfWriteServerAttribute(endpoint, EthernetNetworkDiagnostics::Id, Ids::PacketTxCount, (uint8_t *) &packetTxCount, + ZCL_INT64U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetTxErrCount(chip::EndpointId endpoint, uint64_t * txErrCount) +{ + return emberAfReadServerAttribute(endpoint, EthernetNetworkDiagnostics::Id, Ids::TxErrCount, (uint8_t *) txErrCount, + sizeof(*txErrCount)); +} +EmberAfStatus SetTxErrCount(chip::EndpointId endpoint, uint64_t txErrCount) +{ + return emberAfWriteServerAttribute(endpoint, EthernetNetworkDiagnostics::Id, Ids::TxErrCount, (uint8_t *) &txErrCount, + ZCL_INT64U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetCollisionCount(chip::EndpointId endpoint, uint64_t * collisionCount) +{ + return emberAfReadServerAttribute(endpoint, EthernetNetworkDiagnostics::Id, Ids::CollisionCount, (uint8_t *) collisionCount, + sizeof(*collisionCount)); +} +EmberAfStatus SetCollisionCount(chip::EndpointId endpoint, uint64_t collisionCount) +{ + return emberAfWriteServerAttribute(endpoint, EthernetNetworkDiagnostics::Id, Ids::CollisionCount, (uint8_t *) &collisionCount, + ZCL_INT64U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetOverrunCount(chip::EndpointId endpoint, uint64_t * overrunCount) +{ + return emberAfReadServerAttribute(endpoint, EthernetNetworkDiagnostics::Id, Ids::OverrunCount, (uint8_t *) overrunCount, + sizeof(*overrunCount)); +} +EmberAfStatus SetOverrunCount(chip::EndpointId endpoint, uint64_t overrunCount) +{ + return emberAfWriteServerAttribute(endpoint, EthernetNetworkDiagnostics::Id, Ids::OverrunCount, (uint8_t *) &overrunCount, + ZCL_INT64U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetCarrierDetect(chip::EndpointId endpoint, uint8_t * carrierDetect) +{ + return emberAfReadServerAttribute(endpoint, EthernetNetworkDiagnostics::Id, Ids::CarrierDetect, (uint8_t *) carrierDetect, + sizeof(*carrierDetect)); +} +EmberAfStatus SetCarrierDetect(chip::EndpointId endpoint, uint8_t carrierDetect) +{ + return emberAfWriteServerAttribute(endpoint, EthernetNetworkDiagnostics::Id, Ids::CarrierDetect, (uint8_t *) &carrierDetect, + ZCL_BOOLEAN_ATTRIBUTE_TYPE); +} +EmberAfStatus GetTimeSinceReset(chip::EndpointId endpoint, uint64_t * timeSinceReset) +{ + return emberAfReadServerAttribute(endpoint, EthernetNetworkDiagnostics::Id, Ids::TimeSinceReset, (uint8_t *) timeSinceReset, + sizeof(*timeSinceReset)); +} +EmberAfStatus SetTimeSinceReset(chip::EndpointId endpoint, uint64_t timeSinceReset) +{ + return emberAfWriteServerAttribute(endpoint, EthernetNetworkDiagnostics::Id, Ids::TimeSinceReset, (uint8_t *) &timeSinceReset, + ZCL_INT64U_ATTRIBUTE_TYPE); +} +} // namespace Attributes +} // namespace EthernetNetworkDiagnostics + +namespace BridgedDeviceBasic { +namespace Attributes { +EmberAfStatus GetVendorID(chip::EndpointId endpoint, uint16_t * vendorID) +{ + return emberAfReadServerAttribute(endpoint, BridgedDeviceBasic::Id, Ids::VendorID, (uint8_t *) vendorID, sizeof(*vendorID)); +} +EmberAfStatus SetVendorID(chip::EndpointId endpoint, uint16_t vendorID) +{ + return emberAfWriteServerAttribute(endpoint, BridgedDeviceBasic::Id, Ids::VendorID, (uint8_t *) &vendorID, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetHardwareVersion(chip::EndpointId endpoint, uint16_t * hardwareVersion) +{ + return emberAfReadServerAttribute(endpoint, BridgedDeviceBasic::Id, Ids::HardwareVersion, (uint8_t *) hardwareVersion, + sizeof(*hardwareVersion)); +} +EmberAfStatus SetHardwareVersion(chip::EndpointId endpoint, uint16_t hardwareVersion) +{ + return emberAfWriteServerAttribute(endpoint, BridgedDeviceBasic::Id, Ids::HardwareVersion, (uint8_t *) &hardwareVersion, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetSoftwareVersion(chip::EndpointId endpoint, uint32_t * softwareVersion) +{ + return emberAfReadServerAttribute(endpoint, BridgedDeviceBasic::Id, Ids::SoftwareVersion, (uint8_t *) softwareVersion, + sizeof(*softwareVersion)); +} +EmberAfStatus SetSoftwareVersion(chip::EndpointId endpoint, uint32_t softwareVersion) +{ + return emberAfWriteServerAttribute(endpoint, BridgedDeviceBasic::Id, Ids::SoftwareVersion, (uint8_t *) &softwareVersion, + ZCL_INT32U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetReachable(chip::EndpointId endpoint, uint8_t * reachable) +{ + return emberAfReadServerAttribute(endpoint, BridgedDeviceBasic::Id, Ids::Reachable, (uint8_t *) reachable, sizeof(*reachable)); +} +EmberAfStatus SetReachable(chip::EndpointId endpoint, uint8_t reachable) +{ + return emberAfWriteServerAttribute(endpoint, BridgedDeviceBasic::Id, Ids::Reachable, (uint8_t *) &reachable, + ZCL_BOOLEAN_ATTRIBUTE_TYPE); +} +} // namespace Attributes +} // namespace BridgedDeviceBasic + +namespace Switch { +namespace Attributes { +EmberAfStatus GetNumberOfPositions(chip::EndpointId endpoint, uint8_t * numberOfPositions) +{ + return emberAfReadServerAttribute(endpoint, Switch::Id, Ids::NumberOfPositions, (uint8_t *) numberOfPositions, + sizeof(*numberOfPositions)); +} +EmberAfStatus SetNumberOfPositions(chip::EndpointId endpoint, uint8_t numberOfPositions) +{ + return emberAfWriteServerAttribute(endpoint, Switch::Id, Ids::NumberOfPositions, (uint8_t *) &numberOfPositions, + ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetCurrentPosition(chip::EndpointId endpoint, uint8_t * currentPosition) +{ + return emberAfReadServerAttribute(endpoint, Switch::Id, Ids::CurrentPosition, (uint8_t *) currentPosition, + sizeof(*currentPosition)); +} +EmberAfStatus SetCurrentPosition(chip::EndpointId endpoint, uint8_t currentPosition) +{ + return emberAfWriteServerAttribute(endpoint, Switch::Id, Ids::CurrentPosition, (uint8_t *) ¤tPosition, + ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMultiPressMax(chip::EndpointId endpoint, uint8_t * multiPressMax) +{ + return emberAfReadServerAttribute(endpoint, Switch::Id, Ids::MultiPressMax, (uint8_t *) multiPressMax, sizeof(*multiPressMax)); +} +EmberAfStatus SetMultiPressMax(chip::EndpointId endpoint, uint8_t multiPressMax) +{ + return emberAfWriteServerAttribute(endpoint, Switch::Id, Ids::MultiPressMax, (uint8_t *) &multiPressMax, + ZCL_INT8U_ATTRIBUTE_TYPE); +} +} // namespace Attributes +} // namespace Switch + +namespace OperationalCredentials { +namespace Attributes { +} // namespace Attributes +} // namespace OperationalCredentials + +namespace FixedLabel { +namespace Attributes { +} // namespace Attributes +} // namespace FixedLabel + +namespace ShadeConfiguration { +namespace Attributes { +EmberAfStatus GetPhysicalClosedLimit(chip::EndpointId endpoint, uint16_t * physicalClosedLimit) +{ + return emberAfReadServerAttribute(endpoint, ShadeConfiguration::Id, Ids::PhysicalClosedLimit, (uint8_t *) physicalClosedLimit, + sizeof(*physicalClosedLimit)); +} +EmberAfStatus SetPhysicalClosedLimit(chip::EndpointId endpoint, uint16_t physicalClosedLimit) +{ + return emberAfWriteServerAttribute(endpoint, ShadeConfiguration::Id, Ids::PhysicalClosedLimit, (uint8_t *) &physicalClosedLimit, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMotorStepSize(chip::EndpointId endpoint, uint8_t * motorStepSize) +{ + return emberAfReadServerAttribute(endpoint, ShadeConfiguration::Id, Ids::MotorStepSize, (uint8_t *) motorStepSize, + sizeof(*motorStepSize)); +} +EmberAfStatus SetMotorStepSize(chip::EndpointId endpoint, uint8_t motorStepSize) +{ + return emberAfWriteServerAttribute(endpoint, ShadeConfiguration::Id, Ids::MotorStepSize, (uint8_t *) &motorStepSize, + ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetStatus(chip::EndpointId endpoint, uint8_t * status) +{ + return emberAfReadServerAttribute(endpoint, ShadeConfiguration::Id, Ids::Status, (uint8_t *) status, sizeof(*status)); +} +EmberAfStatus SetStatus(chip::EndpointId endpoint, uint8_t status) +{ + return emberAfWriteServerAttribute(endpoint, ShadeConfiguration::Id, Ids::Status, (uint8_t *) &status, + ZCL_BITMAP8_ATTRIBUTE_TYPE); +} +EmberAfStatus GetClosedLimit(chip::EndpointId endpoint, uint16_t * closedLimit) +{ + return emberAfReadServerAttribute(endpoint, ShadeConfiguration::Id, Ids::ClosedLimit, (uint8_t *) closedLimit, + sizeof(*closedLimit)); +} +EmberAfStatus SetClosedLimit(chip::EndpointId endpoint, uint16_t closedLimit) +{ + return emberAfWriteServerAttribute(endpoint, ShadeConfiguration::Id, Ids::ClosedLimit, (uint8_t *) &closedLimit, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMode(chip::EndpointId endpoint, uint8_t * mode) +{ + return emberAfReadServerAttribute(endpoint, ShadeConfiguration::Id, Ids::Mode, (uint8_t *) mode, sizeof(*mode)); +} +EmberAfStatus SetMode(chip::EndpointId endpoint, uint8_t mode) +{ + return emberAfWriteServerAttribute(endpoint, ShadeConfiguration::Id, Ids::Mode, (uint8_t *) &mode, ZCL_ENUM8_ATTRIBUTE_TYPE); +} +} // namespace Attributes +} // namespace ShadeConfiguration + +namespace DoorLock { +namespace Attributes { +EmberAfStatus GetLockState(chip::EndpointId endpoint, uint8_t * lockState) +{ + return emberAfReadServerAttribute(endpoint, DoorLock::Id, Ids::LockState, (uint8_t *) lockState, sizeof(*lockState)); +} +EmberAfStatus SetLockState(chip::EndpointId endpoint, uint8_t lockState) +{ + return emberAfWriteServerAttribute(endpoint, DoorLock::Id, Ids::LockState, (uint8_t *) &lockState, ZCL_ENUM8_ATTRIBUTE_TYPE); +} +EmberAfStatus GetLockType(chip::EndpointId endpoint, uint8_t * lockType) +{ + return emberAfReadServerAttribute(endpoint, DoorLock::Id, Ids::LockType, (uint8_t *) lockType, sizeof(*lockType)); +} +EmberAfStatus SetLockType(chip::EndpointId endpoint, uint8_t lockType) +{ + return emberAfWriteServerAttribute(endpoint, DoorLock::Id, Ids::LockType, (uint8_t *) &lockType, ZCL_ENUM8_ATTRIBUTE_TYPE); +} +EmberAfStatus GetActuatorEnabled(chip::EndpointId endpoint, uint8_t * actuatorEnabled) +{ + return emberAfReadServerAttribute(endpoint, DoorLock::Id, Ids::ActuatorEnabled, (uint8_t *) actuatorEnabled, + sizeof(*actuatorEnabled)); +} +EmberAfStatus SetActuatorEnabled(chip::EndpointId endpoint, uint8_t actuatorEnabled) +{ + return emberAfWriteServerAttribute(endpoint, DoorLock::Id, Ids::ActuatorEnabled, (uint8_t *) &actuatorEnabled, + ZCL_BOOLEAN_ATTRIBUTE_TYPE); +} +EmberAfStatus GetDoorState(chip::EndpointId endpoint, uint8_t * doorState) +{ + return emberAfReadServerAttribute(endpoint, DoorLock::Id, Ids::DoorState, (uint8_t *) doorState, sizeof(*doorState)); +} +EmberAfStatus SetDoorState(chip::EndpointId endpoint, uint8_t doorState) +{ + return emberAfWriteServerAttribute(endpoint, DoorLock::Id, Ids::DoorState, (uint8_t *) &doorState, ZCL_ENUM8_ATTRIBUTE_TYPE); +} +EmberAfStatus GetDoorOpenEvents(chip::EndpointId endpoint, uint32_t * doorOpenEvents) +{ + return emberAfReadServerAttribute(endpoint, DoorLock::Id, Ids::DoorOpenEvents, (uint8_t *) doorOpenEvents, + sizeof(*doorOpenEvents)); +} +EmberAfStatus SetDoorOpenEvents(chip::EndpointId endpoint, uint32_t doorOpenEvents) +{ + return emberAfWriteServerAttribute(endpoint, DoorLock::Id, Ids::DoorOpenEvents, (uint8_t *) &doorOpenEvents, + ZCL_INT32U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetDoorClosedEvents(chip::EndpointId endpoint, uint32_t * doorClosedEvents) +{ + return emberAfReadServerAttribute(endpoint, DoorLock::Id, Ids::DoorClosedEvents, (uint8_t *) doorClosedEvents, + sizeof(*doorClosedEvents)); +} +EmberAfStatus SetDoorClosedEvents(chip::EndpointId endpoint, uint32_t doorClosedEvents) +{ + return emberAfWriteServerAttribute(endpoint, DoorLock::Id, Ids::DoorClosedEvents, (uint8_t *) &doorClosedEvents, + ZCL_INT32U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetOpenPeriod(chip::EndpointId endpoint, uint16_t * openPeriod) +{ + return emberAfReadServerAttribute(endpoint, DoorLock::Id, Ids::OpenPeriod, (uint8_t *) openPeriod, sizeof(*openPeriod)); +} +EmberAfStatus SetOpenPeriod(chip::EndpointId endpoint, uint16_t openPeriod) +{ + return emberAfWriteServerAttribute(endpoint, DoorLock::Id, Ids::OpenPeriod, (uint8_t *) &openPeriod, ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetNumLockRecordsSupported(chip::EndpointId endpoint, uint16_t * numLockRecordsSupported) +{ + return emberAfReadServerAttribute(endpoint, DoorLock::Id, Ids::NumLockRecordsSupported, (uint8_t *) numLockRecordsSupported, + sizeof(*numLockRecordsSupported)); +} +EmberAfStatus SetNumLockRecordsSupported(chip::EndpointId endpoint, uint16_t numLockRecordsSupported) +{ + return emberAfWriteServerAttribute(endpoint, DoorLock::Id, Ids::NumLockRecordsSupported, (uint8_t *) &numLockRecordsSupported, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetNumTotalUsersSupported(chip::EndpointId endpoint, uint16_t * numTotalUsersSupported) +{ + return emberAfReadServerAttribute(endpoint, DoorLock::Id, Ids::NumTotalUsersSupported, (uint8_t *) numTotalUsersSupported, + sizeof(*numTotalUsersSupported)); +} +EmberAfStatus SetNumTotalUsersSupported(chip::EndpointId endpoint, uint16_t numTotalUsersSupported) +{ + return emberAfWriteServerAttribute(endpoint, DoorLock::Id, Ids::NumTotalUsersSupported, (uint8_t *) &numTotalUsersSupported, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetNumPinUsersSupported(chip::EndpointId endpoint, uint16_t * numPinUsersSupported) +{ + return emberAfReadServerAttribute(endpoint, DoorLock::Id, Ids::NumPinUsersSupported, (uint8_t *) numPinUsersSupported, + sizeof(*numPinUsersSupported)); +} +EmberAfStatus SetNumPinUsersSupported(chip::EndpointId endpoint, uint16_t numPinUsersSupported) +{ + return emberAfWriteServerAttribute(endpoint, DoorLock::Id, Ids::NumPinUsersSupported, (uint8_t *) &numPinUsersSupported, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetNumRfidUsersSupported(chip::EndpointId endpoint, uint16_t * numRfidUsersSupported) +{ + return emberAfReadServerAttribute(endpoint, DoorLock::Id, Ids::NumRfidUsersSupported, (uint8_t *) numRfidUsersSupported, + sizeof(*numRfidUsersSupported)); +} +EmberAfStatus SetNumRfidUsersSupported(chip::EndpointId endpoint, uint16_t numRfidUsersSupported) +{ + return emberAfWriteServerAttribute(endpoint, DoorLock::Id, Ids::NumRfidUsersSupported, (uint8_t *) &numRfidUsersSupported, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetNumWeekdaySchedulesSupportedPerUser(chip::EndpointId endpoint, uint8_t * numWeekdaySchedulesSupportedPerUser) +{ + return emberAfReadServerAttribute(endpoint, DoorLock::Id, Ids::NumWeekdaySchedulesSupportedPerUser, + (uint8_t *) numWeekdaySchedulesSupportedPerUser, + sizeof(*numWeekdaySchedulesSupportedPerUser)); +} +EmberAfStatus SetNumWeekdaySchedulesSupportedPerUser(chip::EndpointId endpoint, uint8_t numWeekdaySchedulesSupportedPerUser) +{ + return emberAfWriteServerAttribute(endpoint, DoorLock::Id, Ids::NumWeekdaySchedulesSupportedPerUser, + (uint8_t *) &numWeekdaySchedulesSupportedPerUser, ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetNumYeardaySchedulesSupportedPerUser(chip::EndpointId endpoint, uint8_t * numYeardaySchedulesSupportedPerUser) +{ + return emberAfReadServerAttribute(endpoint, DoorLock::Id, Ids::NumYeardaySchedulesSupportedPerUser, + (uint8_t *) numYeardaySchedulesSupportedPerUser, + sizeof(*numYeardaySchedulesSupportedPerUser)); +} +EmberAfStatus SetNumYeardaySchedulesSupportedPerUser(chip::EndpointId endpoint, uint8_t numYeardaySchedulesSupportedPerUser) +{ + return emberAfWriteServerAttribute(endpoint, DoorLock::Id, Ids::NumYeardaySchedulesSupportedPerUser, + (uint8_t *) &numYeardaySchedulesSupportedPerUser, ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetNumHolidaySchedulesSupportedPerUser(chip::EndpointId endpoint, uint8_t * numHolidaySchedulesSupportedPerUser) +{ + return emberAfReadServerAttribute(endpoint, DoorLock::Id, Ids::NumHolidaySchedulesSupportedPerUser, + (uint8_t *) numHolidaySchedulesSupportedPerUser, + sizeof(*numHolidaySchedulesSupportedPerUser)); +} +EmberAfStatus SetNumHolidaySchedulesSupportedPerUser(chip::EndpointId endpoint, uint8_t numHolidaySchedulesSupportedPerUser) +{ + return emberAfWriteServerAttribute(endpoint, DoorLock::Id, Ids::NumHolidaySchedulesSupportedPerUser, + (uint8_t *) &numHolidaySchedulesSupportedPerUser, ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMaxPinLength(chip::EndpointId endpoint, uint8_t * maxPinLength) +{ + return emberAfReadServerAttribute(endpoint, DoorLock::Id, Ids::MaxPinLength, (uint8_t *) maxPinLength, sizeof(*maxPinLength)); +} +EmberAfStatus SetMaxPinLength(chip::EndpointId endpoint, uint8_t maxPinLength) +{ + return emberAfWriteServerAttribute(endpoint, DoorLock::Id, Ids::MaxPinLength, (uint8_t *) &maxPinLength, + ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMinPinLength(chip::EndpointId endpoint, uint8_t * minPinLength) +{ + return emberAfReadServerAttribute(endpoint, DoorLock::Id, Ids::MinPinLength, (uint8_t *) minPinLength, sizeof(*minPinLength)); +} +EmberAfStatus SetMinPinLength(chip::EndpointId endpoint, uint8_t minPinLength) +{ + return emberAfWriteServerAttribute(endpoint, DoorLock::Id, Ids::MinPinLength, (uint8_t *) &minPinLength, + ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMaxRfidCodeLength(chip::EndpointId endpoint, uint8_t * maxRfidCodeLength) +{ + return emberAfReadServerAttribute(endpoint, DoorLock::Id, Ids::MaxRfidCodeLength, (uint8_t *) maxRfidCodeLength, + sizeof(*maxRfidCodeLength)); +} +EmberAfStatus SetMaxRfidCodeLength(chip::EndpointId endpoint, uint8_t maxRfidCodeLength) +{ + return emberAfWriteServerAttribute(endpoint, DoorLock::Id, Ids::MaxRfidCodeLength, (uint8_t *) &maxRfidCodeLength, + ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMinRfidCodeLength(chip::EndpointId endpoint, uint8_t * minRfidCodeLength) +{ + return emberAfReadServerAttribute(endpoint, DoorLock::Id, Ids::MinRfidCodeLength, (uint8_t *) minRfidCodeLength, + sizeof(*minRfidCodeLength)); +} +EmberAfStatus SetMinRfidCodeLength(chip::EndpointId endpoint, uint8_t minRfidCodeLength) +{ + return emberAfWriteServerAttribute(endpoint, DoorLock::Id, Ids::MinRfidCodeLength, (uint8_t *) &minRfidCodeLength, + ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetEnableLogging(chip::EndpointId endpoint, uint8_t * enableLogging) +{ + return emberAfReadServerAttribute(endpoint, DoorLock::Id, Ids::EnableLogging, (uint8_t *) enableLogging, + sizeof(*enableLogging)); +} +EmberAfStatus SetEnableLogging(chip::EndpointId endpoint, uint8_t enableLogging) +{ + return emberAfWriteServerAttribute(endpoint, DoorLock::Id, Ids::EnableLogging, (uint8_t *) &enableLogging, + ZCL_BOOLEAN_ATTRIBUTE_TYPE); +} +EmberAfStatus GetLedSettings(chip::EndpointId endpoint, uint8_t * ledSettings) +{ + return emberAfReadServerAttribute(endpoint, DoorLock::Id, Ids::LedSettings, (uint8_t *) ledSettings, sizeof(*ledSettings)); +} +EmberAfStatus SetLedSettings(chip::EndpointId endpoint, uint8_t ledSettings) +{ + return emberAfWriteServerAttribute(endpoint, DoorLock::Id, Ids::LedSettings, (uint8_t *) &ledSettings, + ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetAutoRelockTime(chip::EndpointId endpoint, uint32_t * autoRelockTime) +{ + return emberAfReadServerAttribute(endpoint, DoorLock::Id, Ids::AutoRelockTime, (uint8_t *) autoRelockTime, + sizeof(*autoRelockTime)); +} +EmberAfStatus SetAutoRelockTime(chip::EndpointId endpoint, uint32_t autoRelockTime) +{ + return emberAfWriteServerAttribute(endpoint, DoorLock::Id, Ids::AutoRelockTime, (uint8_t *) &autoRelockTime, + ZCL_INT32U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetSoundVolume(chip::EndpointId endpoint, uint8_t * soundVolume) +{ + return emberAfReadServerAttribute(endpoint, DoorLock::Id, Ids::SoundVolume, (uint8_t *) soundVolume, sizeof(*soundVolume)); +} +EmberAfStatus SetSoundVolume(chip::EndpointId endpoint, uint8_t soundVolume) +{ + return emberAfWriteServerAttribute(endpoint, DoorLock::Id, Ids::SoundVolume, (uint8_t *) &soundVolume, + ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetOperatingMode(chip::EndpointId endpoint, uint8_t * operatingMode) +{ + return emberAfReadServerAttribute(endpoint, DoorLock::Id, Ids::OperatingMode, (uint8_t *) operatingMode, + sizeof(*operatingMode)); +} +EmberAfStatus SetOperatingMode(chip::EndpointId endpoint, uint8_t operatingMode) +{ + return emberAfWriteServerAttribute(endpoint, DoorLock::Id, Ids::OperatingMode, (uint8_t *) &operatingMode, + ZCL_ENUM8_ATTRIBUTE_TYPE); +} +EmberAfStatus GetSupportedOperatingModes(chip::EndpointId endpoint, uint16_t * supportedOperatingModes) +{ + return emberAfReadServerAttribute(endpoint, DoorLock::Id, Ids::SupportedOperatingModes, (uint8_t *) supportedOperatingModes, + sizeof(*supportedOperatingModes)); +} +EmberAfStatus SetSupportedOperatingModes(chip::EndpointId endpoint, uint16_t supportedOperatingModes) +{ + return emberAfWriteServerAttribute(endpoint, DoorLock::Id, Ids::SupportedOperatingModes, (uint8_t *) &supportedOperatingModes, + ZCL_BITMAP16_ATTRIBUTE_TYPE); +} +EmberAfStatus GetDefaultConfigurationRegister(chip::EndpointId endpoint, uint16_t * defaultConfigurationRegister) +{ + return emberAfReadServerAttribute(endpoint, DoorLock::Id, Ids::DefaultConfigurationRegister, + (uint8_t *) defaultConfigurationRegister, sizeof(*defaultConfigurationRegister)); +} +EmberAfStatus SetDefaultConfigurationRegister(chip::EndpointId endpoint, uint16_t defaultConfigurationRegister) +{ + return emberAfWriteServerAttribute(endpoint, DoorLock::Id, Ids::DefaultConfigurationRegister, + (uint8_t *) &defaultConfigurationRegister, ZCL_BITMAP16_ATTRIBUTE_TYPE); +} +EmberAfStatus GetEnableLocalProgramming(chip::EndpointId endpoint, uint8_t * enableLocalProgramming) +{ + return emberAfReadServerAttribute(endpoint, DoorLock::Id, Ids::EnableLocalProgramming, (uint8_t *) enableLocalProgramming, + sizeof(*enableLocalProgramming)); +} +EmberAfStatus SetEnableLocalProgramming(chip::EndpointId endpoint, uint8_t enableLocalProgramming) +{ + return emberAfWriteServerAttribute(endpoint, DoorLock::Id, Ids::EnableLocalProgramming, (uint8_t *) &enableLocalProgramming, + ZCL_BOOLEAN_ATTRIBUTE_TYPE); +} +EmberAfStatus GetEnableOneTouchLocking(chip::EndpointId endpoint, uint8_t * enableOneTouchLocking) +{ + return emberAfReadServerAttribute(endpoint, DoorLock::Id, Ids::EnableOneTouchLocking, (uint8_t *) enableOneTouchLocking, + sizeof(*enableOneTouchLocking)); +} +EmberAfStatus SetEnableOneTouchLocking(chip::EndpointId endpoint, uint8_t enableOneTouchLocking) +{ + return emberAfWriteServerAttribute(endpoint, DoorLock::Id, Ids::EnableOneTouchLocking, (uint8_t *) &enableOneTouchLocking, + ZCL_BOOLEAN_ATTRIBUTE_TYPE); +} +EmberAfStatus GetEnableInsideStatusLed(chip::EndpointId endpoint, uint8_t * enableInsideStatusLed) +{ + return emberAfReadServerAttribute(endpoint, DoorLock::Id, Ids::EnableInsideStatusLed, (uint8_t *) enableInsideStatusLed, + sizeof(*enableInsideStatusLed)); +} +EmberAfStatus SetEnableInsideStatusLed(chip::EndpointId endpoint, uint8_t enableInsideStatusLed) +{ + return emberAfWriteServerAttribute(endpoint, DoorLock::Id, Ids::EnableInsideStatusLed, (uint8_t *) &enableInsideStatusLed, + ZCL_BOOLEAN_ATTRIBUTE_TYPE); +} +EmberAfStatus GetEnablePrivacyModeButton(chip::EndpointId endpoint, uint8_t * enablePrivacyModeButton) +{ + return emberAfReadServerAttribute(endpoint, DoorLock::Id, Ids::EnablePrivacyModeButton, (uint8_t *) enablePrivacyModeButton, + sizeof(*enablePrivacyModeButton)); +} +EmberAfStatus SetEnablePrivacyModeButton(chip::EndpointId endpoint, uint8_t enablePrivacyModeButton) +{ + return emberAfWriteServerAttribute(endpoint, DoorLock::Id, Ids::EnablePrivacyModeButton, (uint8_t *) &enablePrivacyModeButton, + ZCL_BOOLEAN_ATTRIBUTE_TYPE); +} +EmberAfStatus GetWrongCodeEntryLimit(chip::EndpointId endpoint, uint8_t * wrongCodeEntryLimit) +{ + return emberAfReadServerAttribute(endpoint, DoorLock::Id, Ids::WrongCodeEntryLimit, (uint8_t *) wrongCodeEntryLimit, + sizeof(*wrongCodeEntryLimit)); +} +EmberAfStatus SetWrongCodeEntryLimit(chip::EndpointId endpoint, uint8_t wrongCodeEntryLimit) +{ + return emberAfWriteServerAttribute(endpoint, DoorLock::Id, Ids::WrongCodeEntryLimit, (uint8_t *) &wrongCodeEntryLimit, + ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetUserCodeTemporaryDisableTime(chip::EndpointId endpoint, uint8_t * userCodeTemporaryDisableTime) +{ + return emberAfReadServerAttribute(endpoint, DoorLock::Id, Ids::UserCodeTemporaryDisableTime, + (uint8_t *) userCodeTemporaryDisableTime, sizeof(*userCodeTemporaryDisableTime)); +} +EmberAfStatus SetUserCodeTemporaryDisableTime(chip::EndpointId endpoint, uint8_t userCodeTemporaryDisableTime) +{ + return emberAfWriteServerAttribute(endpoint, DoorLock::Id, Ids::UserCodeTemporaryDisableTime, + (uint8_t *) &userCodeTemporaryDisableTime, ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetSendPinOverTheAir(chip::EndpointId endpoint, uint8_t * sendPinOverTheAir) +{ + return emberAfReadServerAttribute(endpoint, DoorLock::Id, Ids::SendPinOverTheAir, (uint8_t *) sendPinOverTheAir, + sizeof(*sendPinOverTheAir)); +} +EmberAfStatus SetSendPinOverTheAir(chip::EndpointId endpoint, uint8_t sendPinOverTheAir) +{ + return emberAfWriteServerAttribute(endpoint, DoorLock::Id, Ids::SendPinOverTheAir, (uint8_t *) &sendPinOverTheAir, + ZCL_BOOLEAN_ATTRIBUTE_TYPE); +} +EmberAfStatus GetRequirePinForRfOperation(chip::EndpointId endpoint, uint8_t * requirePinForRfOperation) +{ + return emberAfReadServerAttribute(endpoint, DoorLock::Id, Ids::RequirePinForRfOperation, (uint8_t *) requirePinForRfOperation, + sizeof(*requirePinForRfOperation)); +} +EmberAfStatus SetRequirePinForRfOperation(chip::EndpointId endpoint, uint8_t requirePinForRfOperation) +{ + return emberAfWriteServerAttribute(endpoint, DoorLock::Id, Ids::RequirePinForRfOperation, (uint8_t *) &requirePinForRfOperation, + ZCL_BOOLEAN_ATTRIBUTE_TYPE); +} +EmberAfStatus GetZigbeeSecurityLevel(chip::EndpointId endpoint, uint8_t * zigbeeSecurityLevel) +{ + return emberAfReadServerAttribute(endpoint, DoorLock::Id, Ids::ZigbeeSecurityLevel, (uint8_t *) zigbeeSecurityLevel, + sizeof(*zigbeeSecurityLevel)); +} +EmberAfStatus SetZigbeeSecurityLevel(chip::EndpointId endpoint, uint8_t zigbeeSecurityLevel) +{ + return emberAfWriteServerAttribute(endpoint, DoorLock::Id, Ids::ZigbeeSecurityLevel, (uint8_t *) &zigbeeSecurityLevel, + ZCL_ENUM8_ATTRIBUTE_TYPE); +} +EmberAfStatus GetAlarmMask(chip::EndpointId endpoint, uint16_t * alarmMask) +{ + return emberAfReadServerAttribute(endpoint, DoorLock::Id, Ids::AlarmMask, (uint8_t *) alarmMask, sizeof(*alarmMask)); +} +EmberAfStatus SetAlarmMask(chip::EndpointId endpoint, uint16_t alarmMask) +{ + return emberAfWriteServerAttribute(endpoint, DoorLock::Id, Ids::AlarmMask, (uint8_t *) &alarmMask, ZCL_BITMAP16_ATTRIBUTE_TYPE); +} +EmberAfStatus GetKeypadOperationEventMask(chip::EndpointId endpoint, uint16_t * keypadOperationEventMask) +{ + return emberAfReadServerAttribute(endpoint, DoorLock::Id, Ids::KeypadOperationEventMask, (uint8_t *) keypadOperationEventMask, + sizeof(*keypadOperationEventMask)); +} +EmberAfStatus SetKeypadOperationEventMask(chip::EndpointId endpoint, uint16_t keypadOperationEventMask) +{ + return emberAfWriteServerAttribute(endpoint, DoorLock::Id, Ids::KeypadOperationEventMask, (uint8_t *) &keypadOperationEventMask, + ZCL_BITMAP16_ATTRIBUTE_TYPE); +} +EmberAfStatus GetRfOperationEventMask(chip::EndpointId endpoint, uint16_t * rfOperationEventMask) +{ + return emberAfReadServerAttribute(endpoint, DoorLock::Id, Ids::RfOperationEventMask, (uint8_t *) rfOperationEventMask, + sizeof(*rfOperationEventMask)); +} +EmberAfStatus SetRfOperationEventMask(chip::EndpointId endpoint, uint16_t rfOperationEventMask) +{ + return emberAfWriteServerAttribute(endpoint, DoorLock::Id, Ids::RfOperationEventMask, (uint8_t *) &rfOperationEventMask, + ZCL_BITMAP16_ATTRIBUTE_TYPE); +} +EmberAfStatus GetManualOperationEventMask(chip::EndpointId endpoint, uint16_t * manualOperationEventMask) +{ + return emberAfReadServerAttribute(endpoint, DoorLock::Id, Ids::ManualOperationEventMask, (uint8_t *) manualOperationEventMask, + sizeof(*manualOperationEventMask)); +} +EmberAfStatus SetManualOperationEventMask(chip::EndpointId endpoint, uint16_t manualOperationEventMask) +{ + return emberAfWriteServerAttribute(endpoint, DoorLock::Id, Ids::ManualOperationEventMask, (uint8_t *) &manualOperationEventMask, + ZCL_BITMAP16_ATTRIBUTE_TYPE); +} +EmberAfStatus GetRfidOperationEventMask(chip::EndpointId endpoint, uint16_t * rfidOperationEventMask) +{ + return emberAfReadServerAttribute(endpoint, DoorLock::Id, Ids::RfidOperationEventMask, (uint8_t *) rfidOperationEventMask, + sizeof(*rfidOperationEventMask)); +} +EmberAfStatus SetRfidOperationEventMask(chip::EndpointId endpoint, uint16_t rfidOperationEventMask) +{ + return emberAfWriteServerAttribute(endpoint, DoorLock::Id, Ids::RfidOperationEventMask, (uint8_t *) &rfidOperationEventMask, + ZCL_BITMAP16_ATTRIBUTE_TYPE); +} +EmberAfStatus GetKeypadProgrammingEventMask(chip::EndpointId endpoint, uint16_t * keypadProgrammingEventMask) +{ + return emberAfReadServerAttribute(endpoint, DoorLock::Id, Ids::KeypadProgrammingEventMask, + (uint8_t *) keypadProgrammingEventMask, sizeof(*keypadProgrammingEventMask)); +} +EmberAfStatus SetKeypadProgrammingEventMask(chip::EndpointId endpoint, uint16_t keypadProgrammingEventMask) +{ + return emberAfWriteServerAttribute(endpoint, DoorLock::Id, Ids::KeypadProgrammingEventMask, + (uint8_t *) &keypadProgrammingEventMask, ZCL_BITMAP16_ATTRIBUTE_TYPE); +} +EmberAfStatus GetRfProgrammingEventMask(chip::EndpointId endpoint, uint16_t * rfProgrammingEventMask) +{ + return emberAfReadServerAttribute(endpoint, DoorLock::Id, Ids::RfProgrammingEventMask, (uint8_t *) rfProgrammingEventMask, + sizeof(*rfProgrammingEventMask)); +} +EmberAfStatus SetRfProgrammingEventMask(chip::EndpointId endpoint, uint16_t rfProgrammingEventMask) +{ + return emberAfWriteServerAttribute(endpoint, DoorLock::Id, Ids::RfProgrammingEventMask, (uint8_t *) &rfProgrammingEventMask, + ZCL_BITMAP16_ATTRIBUTE_TYPE); +} +EmberAfStatus GetRfidProgrammingEventMask(chip::EndpointId endpoint, uint16_t * rfidProgrammingEventMask) +{ + return emberAfReadServerAttribute(endpoint, DoorLock::Id, Ids::RfidProgrammingEventMask, (uint8_t *) rfidProgrammingEventMask, + sizeof(*rfidProgrammingEventMask)); +} +EmberAfStatus SetRfidProgrammingEventMask(chip::EndpointId endpoint, uint16_t rfidProgrammingEventMask) +{ + return emberAfWriteServerAttribute(endpoint, DoorLock::Id, Ids::RfidProgrammingEventMask, (uint8_t *) &rfidProgrammingEventMask, + ZCL_BITMAP16_ATTRIBUTE_TYPE); +} +} // namespace Attributes +} // namespace DoorLock + +namespace WindowCovering { +namespace Attributes { +EmberAfStatus GetType(chip::EndpointId endpoint, uint8_t * type) +{ + return emberAfReadServerAttribute(endpoint, WindowCovering::Id, Ids::Type, (uint8_t *) type, sizeof(*type)); +} +EmberAfStatus SetType(chip::EndpointId endpoint, uint8_t type) +{ + return emberAfWriteServerAttribute(endpoint, WindowCovering::Id, Ids::Type, (uint8_t *) &type, ZCL_ENUM8_ATTRIBUTE_TYPE); +} +EmberAfStatus GetPhysicalClosedLimitLift(chip::EndpointId endpoint, uint16_t * physicalClosedLimitLift) +{ + return emberAfReadServerAttribute(endpoint, WindowCovering::Id, Ids::PhysicalClosedLimitLift, + (uint8_t *) physicalClosedLimitLift, sizeof(*physicalClosedLimitLift)); +} +EmberAfStatus SetPhysicalClosedLimitLift(chip::EndpointId endpoint, uint16_t physicalClosedLimitLift) +{ + return emberAfWriteServerAttribute(endpoint, WindowCovering::Id, Ids::PhysicalClosedLimitLift, + (uint8_t *) &physicalClosedLimitLift, ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetPhysicalClosedLimitTilt(chip::EndpointId endpoint, uint16_t * physicalClosedLimitTilt) +{ + return emberAfReadServerAttribute(endpoint, WindowCovering::Id, Ids::PhysicalClosedLimitTilt, + (uint8_t *) physicalClosedLimitTilt, sizeof(*physicalClosedLimitTilt)); +} +EmberAfStatus SetPhysicalClosedLimitTilt(chip::EndpointId endpoint, uint16_t physicalClosedLimitTilt) +{ + return emberAfWriteServerAttribute(endpoint, WindowCovering::Id, Ids::PhysicalClosedLimitTilt, + (uint8_t *) &physicalClosedLimitTilt, ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetCurrentPositionLift(chip::EndpointId endpoint, uint16_t * currentPositionLift) +{ + return emberAfReadServerAttribute(endpoint, WindowCovering::Id, Ids::CurrentPositionLift, (uint8_t *) currentPositionLift, + sizeof(*currentPositionLift)); +} +EmberAfStatus SetCurrentPositionLift(chip::EndpointId endpoint, uint16_t currentPositionLift) +{ + return emberAfWriteServerAttribute(endpoint, WindowCovering::Id, Ids::CurrentPositionLift, (uint8_t *) ¤tPositionLift, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetCurrentPositionTilt(chip::EndpointId endpoint, uint16_t * currentPositionTilt) +{ + return emberAfReadServerAttribute(endpoint, WindowCovering::Id, Ids::CurrentPositionTilt, (uint8_t *) currentPositionTilt, + sizeof(*currentPositionTilt)); +} +EmberAfStatus SetCurrentPositionTilt(chip::EndpointId endpoint, uint16_t currentPositionTilt) +{ + return emberAfWriteServerAttribute(endpoint, WindowCovering::Id, Ids::CurrentPositionTilt, (uint8_t *) ¤tPositionTilt, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetNumberOfActuationsLift(chip::EndpointId endpoint, uint16_t * numberOfActuationsLift) +{ + return emberAfReadServerAttribute(endpoint, WindowCovering::Id, Ids::NumberOfActuationsLift, (uint8_t *) numberOfActuationsLift, + sizeof(*numberOfActuationsLift)); +} +EmberAfStatus SetNumberOfActuationsLift(chip::EndpointId endpoint, uint16_t numberOfActuationsLift) +{ + return emberAfWriteServerAttribute(endpoint, WindowCovering::Id, Ids::NumberOfActuationsLift, + (uint8_t *) &numberOfActuationsLift, ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetNumberOfActuationsTilt(chip::EndpointId endpoint, uint16_t * numberOfActuationsTilt) +{ + return emberAfReadServerAttribute(endpoint, WindowCovering::Id, Ids::NumberOfActuationsTilt, (uint8_t *) numberOfActuationsTilt, + sizeof(*numberOfActuationsTilt)); +} +EmberAfStatus SetNumberOfActuationsTilt(chip::EndpointId endpoint, uint16_t numberOfActuationsTilt) +{ + return emberAfWriteServerAttribute(endpoint, WindowCovering::Id, Ids::NumberOfActuationsTilt, + (uint8_t *) &numberOfActuationsTilt, ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetConfigStatus(chip::EndpointId endpoint, uint8_t * configStatus) +{ + return emberAfReadServerAttribute(endpoint, WindowCovering::Id, Ids::ConfigStatus, (uint8_t *) configStatus, + sizeof(*configStatus)); +} +EmberAfStatus SetConfigStatus(chip::EndpointId endpoint, uint8_t configStatus) +{ + return emberAfWriteServerAttribute(endpoint, WindowCovering::Id, Ids::ConfigStatus, (uint8_t *) &configStatus, + ZCL_BITMAP8_ATTRIBUTE_TYPE); +} +EmberAfStatus GetCurrentPositionLiftPercentage(chip::EndpointId endpoint, uint8_t * currentPositionLiftPercentage) +{ + return emberAfReadServerAttribute(endpoint, WindowCovering::Id, Ids::CurrentPositionLiftPercentage, + (uint8_t *) currentPositionLiftPercentage, sizeof(*currentPositionLiftPercentage)); +} +EmberAfStatus SetCurrentPositionLiftPercentage(chip::EndpointId endpoint, uint8_t currentPositionLiftPercentage) +{ + return emberAfWriteServerAttribute(endpoint, WindowCovering::Id, Ids::CurrentPositionLiftPercentage, + (uint8_t *) ¤tPositionLiftPercentage, ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetCurrentPositionTiltPercentage(chip::EndpointId endpoint, uint8_t * currentPositionTiltPercentage) +{ + return emberAfReadServerAttribute(endpoint, WindowCovering::Id, Ids::CurrentPositionTiltPercentage, + (uint8_t *) currentPositionTiltPercentage, sizeof(*currentPositionTiltPercentage)); +} +EmberAfStatus SetCurrentPositionTiltPercentage(chip::EndpointId endpoint, uint8_t currentPositionTiltPercentage) +{ + return emberAfWriteServerAttribute(endpoint, WindowCovering::Id, Ids::CurrentPositionTiltPercentage, + (uint8_t *) ¤tPositionTiltPercentage, ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetOperationalStatus(chip::EndpointId endpoint, uint8_t * operationalStatus) +{ + return emberAfReadServerAttribute(endpoint, WindowCovering::Id, Ids::OperationalStatus, (uint8_t *) operationalStatus, + sizeof(*operationalStatus)); +} +EmberAfStatus SetOperationalStatus(chip::EndpointId endpoint, uint8_t operationalStatus) +{ + return emberAfWriteServerAttribute(endpoint, WindowCovering::Id, Ids::OperationalStatus, (uint8_t *) &operationalStatus, + ZCL_BITMAP8_ATTRIBUTE_TYPE); +} +EmberAfStatus GetTargetPositionLiftPercent100ths(chip::EndpointId endpoint, uint16_t * targetPositionLiftPercent100ths) +{ + return emberAfReadServerAttribute(endpoint, WindowCovering::Id, Ids::TargetPositionLiftPercent100ths, + (uint8_t *) targetPositionLiftPercent100ths, sizeof(*targetPositionLiftPercent100ths)); +} +EmberAfStatus SetTargetPositionLiftPercent100ths(chip::EndpointId endpoint, uint16_t targetPositionLiftPercent100ths) +{ + return emberAfWriteServerAttribute(endpoint, WindowCovering::Id, Ids::TargetPositionLiftPercent100ths, + (uint8_t *) &targetPositionLiftPercent100ths, ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetTargetPositionTiltPercent100ths(chip::EndpointId endpoint, uint16_t * targetPositionTiltPercent100ths) +{ + return emberAfReadServerAttribute(endpoint, WindowCovering::Id, Ids::TargetPositionTiltPercent100ths, + (uint8_t *) targetPositionTiltPercent100ths, sizeof(*targetPositionTiltPercent100ths)); +} +EmberAfStatus SetTargetPositionTiltPercent100ths(chip::EndpointId endpoint, uint16_t targetPositionTiltPercent100ths) +{ + return emberAfWriteServerAttribute(endpoint, WindowCovering::Id, Ids::TargetPositionTiltPercent100ths, + (uint8_t *) &targetPositionTiltPercent100ths, ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetEndProductType(chip::EndpointId endpoint, uint8_t * endProductType) +{ + return emberAfReadServerAttribute(endpoint, WindowCovering::Id, Ids::EndProductType, (uint8_t *) endProductType, + sizeof(*endProductType)); +} +EmberAfStatus SetEndProductType(chip::EndpointId endpoint, uint8_t endProductType) +{ + return emberAfWriteServerAttribute(endpoint, WindowCovering::Id, Ids::EndProductType, (uint8_t *) &endProductType, + ZCL_ENUM8_ATTRIBUTE_TYPE); +} +EmberAfStatus GetCurrentPositionLiftPercent100ths(chip::EndpointId endpoint, uint16_t * currentPositionLiftPercent100ths) +{ + return emberAfReadServerAttribute(endpoint, WindowCovering::Id, Ids::CurrentPositionLiftPercent100ths, + (uint8_t *) currentPositionLiftPercent100ths, sizeof(*currentPositionLiftPercent100ths)); +} +EmberAfStatus SetCurrentPositionLiftPercent100ths(chip::EndpointId endpoint, uint16_t currentPositionLiftPercent100ths) +{ + return emberAfWriteServerAttribute(endpoint, WindowCovering::Id, Ids::CurrentPositionLiftPercent100ths, + (uint8_t *) ¤tPositionLiftPercent100ths, ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetCurrentPositionTiltPercent100ths(chip::EndpointId endpoint, uint16_t * currentPositionTiltPercent100ths) +{ + return emberAfReadServerAttribute(endpoint, WindowCovering::Id, Ids::CurrentPositionTiltPercent100ths, + (uint8_t *) currentPositionTiltPercent100ths, sizeof(*currentPositionTiltPercent100ths)); +} +EmberAfStatus SetCurrentPositionTiltPercent100ths(chip::EndpointId endpoint, uint16_t currentPositionTiltPercent100ths) +{ + return emberAfWriteServerAttribute(endpoint, WindowCovering::Id, Ids::CurrentPositionTiltPercent100ths, + (uint8_t *) ¤tPositionTiltPercent100ths, ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetInstalledOpenLimitLift(chip::EndpointId endpoint, uint16_t * installedOpenLimitLift) +{ + return emberAfReadServerAttribute(endpoint, WindowCovering::Id, Ids::InstalledOpenLimitLift, (uint8_t *) installedOpenLimitLift, + sizeof(*installedOpenLimitLift)); +} +EmberAfStatus SetInstalledOpenLimitLift(chip::EndpointId endpoint, uint16_t installedOpenLimitLift) +{ + return emberAfWriteServerAttribute(endpoint, WindowCovering::Id, Ids::InstalledOpenLimitLift, + (uint8_t *) &installedOpenLimitLift, ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetInstalledClosedLimitLift(chip::EndpointId endpoint, uint16_t * installedClosedLimitLift) +{ + return emberAfReadServerAttribute(endpoint, WindowCovering::Id, Ids::InstalledClosedLimitLift, + (uint8_t *) installedClosedLimitLift, sizeof(*installedClosedLimitLift)); +} +EmberAfStatus SetInstalledClosedLimitLift(chip::EndpointId endpoint, uint16_t installedClosedLimitLift) +{ + return emberAfWriteServerAttribute(endpoint, WindowCovering::Id, Ids::InstalledClosedLimitLift, + (uint8_t *) &installedClosedLimitLift, ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetInstalledOpenLimitTilt(chip::EndpointId endpoint, uint16_t * installedOpenLimitTilt) +{ + return emberAfReadServerAttribute(endpoint, WindowCovering::Id, Ids::InstalledOpenLimitTilt, (uint8_t *) installedOpenLimitTilt, + sizeof(*installedOpenLimitTilt)); +} +EmberAfStatus SetInstalledOpenLimitTilt(chip::EndpointId endpoint, uint16_t installedOpenLimitTilt) +{ + return emberAfWriteServerAttribute(endpoint, WindowCovering::Id, Ids::InstalledOpenLimitTilt, + (uint8_t *) &installedOpenLimitTilt, ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetInstalledClosedLimitTilt(chip::EndpointId endpoint, uint16_t * installedClosedLimitTilt) +{ + return emberAfReadServerAttribute(endpoint, WindowCovering::Id, Ids::InstalledClosedLimitTilt, + (uint8_t *) installedClosedLimitTilt, sizeof(*installedClosedLimitTilt)); +} +EmberAfStatus SetInstalledClosedLimitTilt(chip::EndpointId endpoint, uint16_t installedClosedLimitTilt) +{ + return emberAfWriteServerAttribute(endpoint, WindowCovering::Id, Ids::InstalledClosedLimitTilt, + (uint8_t *) &installedClosedLimitTilt, ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetVelocityLift(chip::EndpointId endpoint, uint16_t * velocityLift) +{ + return emberAfReadServerAttribute(endpoint, WindowCovering::Id, Ids::VelocityLift, (uint8_t *) velocityLift, + sizeof(*velocityLift)); +} +EmberAfStatus SetVelocityLift(chip::EndpointId endpoint, uint16_t velocityLift) +{ + return emberAfWriteServerAttribute(endpoint, WindowCovering::Id, Ids::VelocityLift, (uint8_t *) &velocityLift, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetAccelerationTimeLift(chip::EndpointId endpoint, uint16_t * accelerationTimeLift) +{ + return emberAfReadServerAttribute(endpoint, WindowCovering::Id, Ids::AccelerationTimeLift, (uint8_t *) accelerationTimeLift, + sizeof(*accelerationTimeLift)); +} +EmberAfStatus SetAccelerationTimeLift(chip::EndpointId endpoint, uint16_t accelerationTimeLift) +{ + return emberAfWriteServerAttribute(endpoint, WindowCovering::Id, Ids::AccelerationTimeLift, (uint8_t *) &accelerationTimeLift, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetDecelerationTimeLift(chip::EndpointId endpoint, uint16_t * decelerationTimeLift) +{ + return emberAfReadServerAttribute(endpoint, WindowCovering::Id, Ids::DecelerationTimeLift, (uint8_t *) decelerationTimeLift, + sizeof(*decelerationTimeLift)); +} +EmberAfStatus SetDecelerationTimeLift(chip::EndpointId endpoint, uint16_t decelerationTimeLift) +{ + return emberAfWriteServerAttribute(endpoint, WindowCovering::Id, Ids::DecelerationTimeLift, (uint8_t *) &decelerationTimeLift, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMode(chip::EndpointId endpoint, uint8_t * mode) +{ + return emberAfReadServerAttribute(endpoint, WindowCovering::Id, Ids::Mode, (uint8_t *) mode, sizeof(*mode)); +} +EmberAfStatus SetMode(chip::EndpointId endpoint, uint8_t mode) +{ + return emberAfWriteServerAttribute(endpoint, WindowCovering::Id, Ids::Mode, (uint8_t *) &mode, ZCL_BITMAP8_ATTRIBUTE_TYPE); +} +EmberAfStatus GetSafetyStatus(chip::EndpointId endpoint, uint16_t * safetyStatus) +{ + return emberAfReadServerAttribute(endpoint, WindowCovering::Id, Ids::SafetyStatus, (uint8_t *) safetyStatus, + sizeof(*safetyStatus)); +} +EmberAfStatus SetSafetyStatus(chip::EndpointId endpoint, uint16_t safetyStatus) +{ + return emberAfWriteServerAttribute(endpoint, WindowCovering::Id, Ids::SafetyStatus, (uint8_t *) &safetyStatus, + ZCL_BITMAP16_ATTRIBUTE_TYPE); +} +} // namespace Attributes +} // namespace WindowCovering + +namespace BarrierControl { +namespace Attributes { +EmberAfStatus GetBarrierMovingState(chip::EndpointId endpoint, uint8_t * barrierMovingState) +{ + return emberAfReadServerAttribute(endpoint, BarrierControl::Id, Ids::BarrierMovingState, (uint8_t *) barrierMovingState, + sizeof(*barrierMovingState)); +} +EmberAfStatus SetBarrierMovingState(chip::EndpointId endpoint, uint8_t barrierMovingState) +{ + return emberAfWriteServerAttribute(endpoint, BarrierControl::Id, Ids::BarrierMovingState, (uint8_t *) &barrierMovingState, + ZCL_ENUM8_ATTRIBUTE_TYPE); +} +EmberAfStatus GetBarrierSafetyStatus(chip::EndpointId endpoint, uint16_t * barrierSafetyStatus) +{ + return emberAfReadServerAttribute(endpoint, BarrierControl::Id, Ids::BarrierSafetyStatus, (uint8_t *) barrierSafetyStatus, + sizeof(*barrierSafetyStatus)); +} +EmberAfStatus SetBarrierSafetyStatus(chip::EndpointId endpoint, uint16_t barrierSafetyStatus) +{ + return emberAfWriteServerAttribute(endpoint, BarrierControl::Id, Ids::BarrierSafetyStatus, (uint8_t *) &barrierSafetyStatus, + ZCL_BITMAP16_ATTRIBUTE_TYPE); +} +EmberAfStatus GetBarrierCapabilities(chip::EndpointId endpoint, uint8_t * barrierCapabilities) +{ + return emberAfReadServerAttribute(endpoint, BarrierControl::Id, Ids::BarrierCapabilities, (uint8_t *) barrierCapabilities, + sizeof(*barrierCapabilities)); +} +EmberAfStatus SetBarrierCapabilities(chip::EndpointId endpoint, uint8_t barrierCapabilities) +{ + return emberAfWriteServerAttribute(endpoint, BarrierControl::Id, Ids::BarrierCapabilities, (uint8_t *) &barrierCapabilities, + ZCL_BITMAP8_ATTRIBUTE_TYPE); +} +EmberAfStatus GetBarrierOpenEvents(chip::EndpointId endpoint, uint16_t * barrierOpenEvents) +{ + return emberAfReadServerAttribute(endpoint, BarrierControl::Id, Ids::BarrierOpenEvents, (uint8_t *) barrierOpenEvents, + sizeof(*barrierOpenEvents)); +} +EmberAfStatus SetBarrierOpenEvents(chip::EndpointId endpoint, uint16_t barrierOpenEvents) +{ + return emberAfWriteServerAttribute(endpoint, BarrierControl::Id, Ids::BarrierOpenEvents, (uint8_t *) &barrierOpenEvents, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetBarrierCloseEvents(chip::EndpointId endpoint, uint16_t * barrierCloseEvents) +{ + return emberAfReadServerAttribute(endpoint, BarrierControl::Id, Ids::BarrierCloseEvents, (uint8_t *) barrierCloseEvents, + sizeof(*barrierCloseEvents)); +} +EmberAfStatus SetBarrierCloseEvents(chip::EndpointId endpoint, uint16_t barrierCloseEvents) +{ + return emberAfWriteServerAttribute(endpoint, BarrierControl::Id, Ids::BarrierCloseEvents, (uint8_t *) &barrierCloseEvents, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetBarrierCommandOpenEvents(chip::EndpointId endpoint, uint16_t * barrierCommandOpenEvents) +{ + return emberAfReadServerAttribute(endpoint, BarrierControl::Id, Ids::BarrierCommandOpenEvents, + (uint8_t *) barrierCommandOpenEvents, sizeof(*barrierCommandOpenEvents)); +} +EmberAfStatus SetBarrierCommandOpenEvents(chip::EndpointId endpoint, uint16_t barrierCommandOpenEvents) +{ + return emberAfWriteServerAttribute(endpoint, BarrierControl::Id, Ids::BarrierCommandOpenEvents, + (uint8_t *) &barrierCommandOpenEvents, ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetBarrierCommandCloseEvents(chip::EndpointId endpoint, uint16_t * barrierCommandCloseEvents) +{ + return emberAfReadServerAttribute(endpoint, BarrierControl::Id, Ids::BarrierCommandCloseEvents, + (uint8_t *) barrierCommandCloseEvents, sizeof(*barrierCommandCloseEvents)); +} +EmberAfStatus SetBarrierCommandCloseEvents(chip::EndpointId endpoint, uint16_t barrierCommandCloseEvents) +{ + return emberAfWriteServerAttribute(endpoint, BarrierControl::Id, Ids::BarrierCommandCloseEvents, + (uint8_t *) &barrierCommandCloseEvents, ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetBarrierOpenPeriod(chip::EndpointId endpoint, uint16_t * barrierOpenPeriod) +{ + return emberAfReadServerAttribute(endpoint, BarrierControl::Id, Ids::BarrierOpenPeriod, (uint8_t *) barrierOpenPeriod, + sizeof(*barrierOpenPeriod)); +} +EmberAfStatus SetBarrierOpenPeriod(chip::EndpointId endpoint, uint16_t barrierOpenPeriod) +{ + return emberAfWriteServerAttribute(endpoint, BarrierControl::Id, Ids::BarrierOpenPeriod, (uint8_t *) &barrierOpenPeriod, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetBarrierClosePeriod(chip::EndpointId endpoint, uint16_t * barrierClosePeriod) +{ + return emberAfReadServerAttribute(endpoint, BarrierControl::Id, Ids::BarrierClosePeriod, (uint8_t *) barrierClosePeriod, + sizeof(*barrierClosePeriod)); +} +EmberAfStatus SetBarrierClosePeriod(chip::EndpointId endpoint, uint16_t barrierClosePeriod) +{ + return emberAfWriteServerAttribute(endpoint, BarrierControl::Id, Ids::BarrierClosePeriod, (uint8_t *) &barrierClosePeriod, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetBarrierPosition(chip::EndpointId endpoint, uint8_t * barrierPosition) +{ + return emberAfReadServerAttribute(endpoint, BarrierControl::Id, Ids::BarrierPosition, (uint8_t *) barrierPosition, + sizeof(*barrierPosition)); +} +EmberAfStatus SetBarrierPosition(chip::EndpointId endpoint, uint8_t barrierPosition) +{ + return emberAfWriteServerAttribute(endpoint, BarrierControl::Id, Ids::BarrierPosition, (uint8_t *) &barrierPosition, + ZCL_INT8U_ATTRIBUTE_TYPE); +} +} // namespace Attributes +} // namespace BarrierControl + +namespace PumpConfigurationAndControl { +namespace Attributes { +EmberAfStatus GetMaxPressure(chip::EndpointId endpoint, int16_t * maxPressure) +{ + return emberAfReadServerAttribute(endpoint, PumpConfigurationAndControl::Id, Ids::MaxPressure, (uint8_t *) maxPressure, + sizeof(*maxPressure)); +} +EmberAfStatus SetMaxPressure(chip::EndpointId endpoint, int16_t maxPressure) +{ + return emberAfWriteServerAttribute(endpoint, PumpConfigurationAndControl::Id, Ids::MaxPressure, (uint8_t *) &maxPressure, + ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMaxSpeed(chip::EndpointId endpoint, uint16_t * maxSpeed) +{ + return emberAfReadServerAttribute(endpoint, PumpConfigurationAndControl::Id, Ids::MaxSpeed, (uint8_t *) maxSpeed, + sizeof(*maxSpeed)); +} +EmberAfStatus SetMaxSpeed(chip::EndpointId endpoint, uint16_t maxSpeed) +{ + return emberAfWriteServerAttribute(endpoint, PumpConfigurationAndControl::Id, Ids::MaxSpeed, (uint8_t *) &maxSpeed, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMaxFlow(chip::EndpointId endpoint, uint16_t * maxFlow) +{ + return emberAfReadServerAttribute(endpoint, PumpConfigurationAndControl::Id, Ids::MaxFlow, (uint8_t *) maxFlow, + sizeof(*maxFlow)); +} +EmberAfStatus SetMaxFlow(chip::EndpointId endpoint, uint16_t maxFlow) +{ + return emberAfWriteServerAttribute(endpoint, PumpConfigurationAndControl::Id, Ids::MaxFlow, (uint8_t *) &maxFlow, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMinConstPressure(chip::EndpointId endpoint, int16_t * minConstPressure) +{ + return emberAfReadServerAttribute(endpoint, PumpConfigurationAndControl::Id, Ids::MinConstPressure, + (uint8_t *) minConstPressure, sizeof(*minConstPressure)); +} +EmberAfStatus SetMinConstPressure(chip::EndpointId endpoint, int16_t minConstPressure) +{ + return emberAfWriteServerAttribute(endpoint, PumpConfigurationAndControl::Id, Ids::MinConstPressure, + (uint8_t *) &minConstPressure, ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMaxConstPressure(chip::EndpointId endpoint, int16_t * maxConstPressure) +{ + return emberAfReadServerAttribute(endpoint, PumpConfigurationAndControl::Id, Ids::MaxConstPressure, + (uint8_t *) maxConstPressure, sizeof(*maxConstPressure)); +} +EmberAfStatus SetMaxConstPressure(chip::EndpointId endpoint, int16_t maxConstPressure) +{ + return emberAfWriteServerAttribute(endpoint, PumpConfigurationAndControl::Id, Ids::MaxConstPressure, + (uint8_t *) &maxConstPressure, ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMinCompPressure(chip::EndpointId endpoint, int16_t * minCompPressure) +{ + return emberAfReadServerAttribute(endpoint, PumpConfigurationAndControl::Id, Ids::MinCompPressure, (uint8_t *) minCompPressure, + sizeof(*minCompPressure)); +} +EmberAfStatus SetMinCompPressure(chip::EndpointId endpoint, int16_t minCompPressure) +{ + return emberAfWriteServerAttribute(endpoint, PumpConfigurationAndControl::Id, Ids::MinCompPressure, + (uint8_t *) &minCompPressure, ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMaxCompPressure(chip::EndpointId endpoint, int16_t * maxCompPressure) +{ + return emberAfReadServerAttribute(endpoint, PumpConfigurationAndControl::Id, Ids::MaxCompPressure, (uint8_t *) maxCompPressure, + sizeof(*maxCompPressure)); +} +EmberAfStatus SetMaxCompPressure(chip::EndpointId endpoint, int16_t maxCompPressure) +{ + return emberAfWriteServerAttribute(endpoint, PumpConfigurationAndControl::Id, Ids::MaxCompPressure, + (uint8_t *) &maxCompPressure, ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMinConstSpeed(chip::EndpointId endpoint, uint16_t * minConstSpeed) +{ + return emberAfReadServerAttribute(endpoint, PumpConfigurationAndControl::Id, Ids::MinConstSpeed, (uint8_t *) minConstSpeed, + sizeof(*minConstSpeed)); +} +EmberAfStatus SetMinConstSpeed(chip::EndpointId endpoint, uint16_t minConstSpeed) +{ + return emberAfWriteServerAttribute(endpoint, PumpConfigurationAndControl::Id, Ids::MinConstSpeed, (uint8_t *) &minConstSpeed, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMaxConstSpeed(chip::EndpointId endpoint, uint16_t * maxConstSpeed) +{ + return emberAfReadServerAttribute(endpoint, PumpConfigurationAndControl::Id, Ids::MaxConstSpeed, (uint8_t *) maxConstSpeed, + sizeof(*maxConstSpeed)); +} +EmberAfStatus SetMaxConstSpeed(chip::EndpointId endpoint, uint16_t maxConstSpeed) +{ + return emberAfWriteServerAttribute(endpoint, PumpConfigurationAndControl::Id, Ids::MaxConstSpeed, (uint8_t *) &maxConstSpeed, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMinConstFlow(chip::EndpointId endpoint, uint16_t * minConstFlow) +{ + return emberAfReadServerAttribute(endpoint, PumpConfigurationAndControl::Id, Ids::MinConstFlow, (uint8_t *) minConstFlow, + sizeof(*minConstFlow)); +} +EmberAfStatus SetMinConstFlow(chip::EndpointId endpoint, uint16_t minConstFlow) +{ + return emberAfWriteServerAttribute(endpoint, PumpConfigurationAndControl::Id, Ids::MinConstFlow, (uint8_t *) &minConstFlow, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMaxConstFlow(chip::EndpointId endpoint, uint16_t * maxConstFlow) +{ + return emberAfReadServerAttribute(endpoint, PumpConfigurationAndControl::Id, Ids::MaxConstFlow, (uint8_t *) maxConstFlow, + sizeof(*maxConstFlow)); +} +EmberAfStatus SetMaxConstFlow(chip::EndpointId endpoint, uint16_t maxConstFlow) +{ + return emberAfWriteServerAttribute(endpoint, PumpConfigurationAndControl::Id, Ids::MaxConstFlow, (uint8_t *) &maxConstFlow, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMinConstTemp(chip::EndpointId endpoint, int16_t * minConstTemp) +{ + return emberAfReadServerAttribute(endpoint, PumpConfigurationAndControl::Id, Ids::MinConstTemp, (uint8_t *) minConstTemp, + sizeof(*minConstTemp)); +} +EmberAfStatus SetMinConstTemp(chip::EndpointId endpoint, int16_t minConstTemp) +{ + return emberAfWriteServerAttribute(endpoint, PumpConfigurationAndControl::Id, Ids::MinConstTemp, (uint8_t *) &minConstTemp, + ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMaxConstTemp(chip::EndpointId endpoint, int16_t * maxConstTemp) +{ + return emberAfReadServerAttribute(endpoint, PumpConfigurationAndControl::Id, Ids::MaxConstTemp, (uint8_t *) maxConstTemp, + sizeof(*maxConstTemp)); +} +EmberAfStatus SetMaxConstTemp(chip::EndpointId endpoint, int16_t maxConstTemp) +{ + return emberAfWriteServerAttribute(endpoint, PumpConfigurationAndControl::Id, Ids::MaxConstTemp, (uint8_t *) &maxConstTemp, + ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetPumpStatus(chip::EndpointId endpoint, uint16_t * pumpStatus) +{ + return emberAfReadServerAttribute(endpoint, PumpConfigurationAndControl::Id, Ids::PumpStatus, (uint8_t *) pumpStatus, + sizeof(*pumpStatus)); +} +EmberAfStatus SetPumpStatus(chip::EndpointId endpoint, uint16_t pumpStatus) +{ + return emberAfWriteServerAttribute(endpoint, PumpConfigurationAndControl::Id, Ids::PumpStatus, (uint8_t *) &pumpStatus, + ZCL_BITMAP16_ATTRIBUTE_TYPE); +} +EmberAfStatus GetEffectiveOperationMode(chip::EndpointId endpoint, uint8_t * effectiveOperationMode) +{ + return emberAfReadServerAttribute(endpoint, PumpConfigurationAndControl::Id, Ids::EffectiveOperationMode, + (uint8_t *) effectiveOperationMode, sizeof(*effectiveOperationMode)); +} +EmberAfStatus SetEffectiveOperationMode(chip::EndpointId endpoint, uint8_t effectiveOperationMode) +{ + return emberAfWriteServerAttribute(endpoint, PumpConfigurationAndControl::Id, Ids::EffectiveOperationMode, + (uint8_t *) &effectiveOperationMode, ZCL_ENUM8_ATTRIBUTE_TYPE); +} +EmberAfStatus GetEffectiveControlMode(chip::EndpointId endpoint, uint8_t * effectiveControlMode) +{ + return emberAfReadServerAttribute(endpoint, PumpConfigurationAndControl::Id, Ids::EffectiveControlMode, + (uint8_t *) effectiveControlMode, sizeof(*effectiveControlMode)); +} +EmberAfStatus SetEffectiveControlMode(chip::EndpointId endpoint, uint8_t effectiveControlMode) +{ + return emberAfWriteServerAttribute(endpoint, PumpConfigurationAndControl::Id, Ids::EffectiveControlMode, + (uint8_t *) &effectiveControlMode, ZCL_ENUM8_ATTRIBUTE_TYPE); +} +EmberAfStatus GetCapacity(chip::EndpointId endpoint, int16_t * capacity) +{ + return emberAfReadServerAttribute(endpoint, PumpConfigurationAndControl::Id, Ids::Capacity, (uint8_t *) capacity, + sizeof(*capacity)); +} +EmberAfStatus SetCapacity(chip::EndpointId endpoint, int16_t capacity) +{ + return emberAfWriteServerAttribute(endpoint, PumpConfigurationAndControl::Id, Ids::Capacity, (uint8_t *) &capacity, + ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetSpeed(chip::EndpointId endpoint, uint16_t * speed) +{ + return emberAfReadServerAttribute(endpoint, PumpConfigurationAndControl::Id, Ids::Speed, (uint8_t *) speed, sizeof(*speed)); +} +EmberAfStatus SetSpeed(chip::EndpointId endpoint, uint16_t speed) +{ + return emberAfWriteServerAttribute(endpoint, PumpConfigurationAndControl::Id, Ids::Speed, (uint8_t *) &speed, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetLifetimeEnergyConsumed(chip::EndpointId endpoint, uint32_t * lifetimeEnergyConsumed) +{ + return emberAfReadServerAttribute(endpoint, PumpConfigurationAndControl::Id, Ids::LifetimeEnergyConsumed, + (uint8_t *) lifetimeEnergyConsumed, sizeof(*lifetimeEnergyConsumed)); +} +EmberAfStatus SetLifetimeEnergyConsumed(chip::EndpointId endpoint, uint32_t lifetimeEnergyConsumed) +{ + return emberAfWriteServerAttribute(endpoint, PumpConfigurationAndControl::Id, Ids::LifetimeEnergyConsumed, + (uint8_t *) &lifetimeEnergyConsumed, ZCL_INT32U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetOperationMode(chip::EndpointId endpoint, uint8_t * operationMode) +{ + return emberAfReadServerAttribute(endpoint, PumpConfigurationAndControl::Id, Ids::OperationMode, (uint8_t *) operationMode, + sizeof(*operationMode)); +} +EmberAfStatus SetOperationMode(chip::EndpointId endpoint, uint8_t operationMode) +{ + return emberAfWriteServerAttribute(endpoint, PumpConfigurationAndControl::Id, Ids::OperationMode, (uint8_t *) &operationMode, + ZCL_ENUM8_ATTRIBUTE_TYPE); +} +EmberAfStatus GetControlMode(chip::EndpointId endpoint, uint8_t * controlMode) +{ + return emberAfReadServerAttribute(endpoint, PumpConfigurationAndControl::Id, Ids::ControlMode, (uint8_t *) controlMode, + sizeof(*controlMode)); +} +EmberAfStatus SetControlMode(chip::EndpointId endpoint, uint8_t controlMode) +{ + return emberAfWriteServerAttribute(endpoint, PumpConfigurationAndControl::Id, Ids::ControlMode, (uint8_t *) &controlMode, + ZCL_ENUM8_ATTRIBUTE_TYPE); +} +EmberAfStatus GetAlarmMask(chip::EndpointId endpoint, uint16_t * alarmMask) +{ + return emberAfReadServerAttribute(endpoint, PumpConfigurationAndControl::Id, Ids::AlarmMask, (uint8_t *) alarmMask, + sizeof(*alarmMask)); +} +EmberAfStatus SetAlarmMask(chip::EndpointId endpoint, uint16_t alarmMask) +{ + return emberAfWriteServerAttribute(endpoint, PumpConfigurationAndControl::Id, Ids::AlarmMask, (uint8_t *) &alarmMask, + ZCL_BITMAP16_ATTRIBUTE_TYPE); +} +} // namespace Attributes +} // namespace PumpConfigurationAndControl + +namespace Thermostat { +namespace Attributes { +EmberAfStatus GetLocalTemperature(chip::EndpointId endpoint, int16_t * localTemperature) +{ + return emberAfReadServerAttribute(endpoint, Thermostat::Id, Ids::LocalTemperature, (uint8_t *) localTemperature, + sizeof(*localTemperature)); +} +EmberAfStatus SetLocalTemperature(chip::EndpointId endpoint, int16_t localTemperature) +{ + return emberAfWriteServerAttribute(endpoint, Thermostat::Id, Ids::LocalTemperature, (uint8_t *) &localTemperature, + ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetOutdoorTemperature(chip::EndpointId endpoint, int16_t * outdoorTemperature) +{ + return emberAfReadServerAttribute(endpoint, Thermostat::Id, Ids::OutdoorTemperature, (uint8_t *) outdoorTemperature, + sizeof(*outdoorTemperature)); +} +EmberAfStatus SetOutdoorTemperature(chip::EndpointId endpoint, int16_t outdoorTemperature) +{ + return emberAfWriteServerAttribute(endpoint, Thermostat::Id, Ids::OutdoorTemperature, (uint8_t *) &outdoorTemperature, + ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetOccupancy(chip::EndpointId endpoint, uint8_t * occupancy) +{ + return emberAfReadServerAttribute(endpoint, Thermostat::Id, Ids::Occupancy, (uint8_t *) occupancy, sizeof(*occupancy)); +} +EmberAfStatus SetOccupancy(chip::EndpointId endpoint, uint8_t occupancy) +{ + return emberAfWriteServerAttribute(endpoint, Thermostat::Id, Ids::Occupancy, (uint8_t *) &occupancy, + ZCL_BITMAP8_ATTRIBUTE_TYPE); +} +EmberAfStatus GetAbsMinHeatSetpointLimit(chip::EndpointId endpoint, int16_t * absMinHeatSetpointLimit) +{ + return emberAfReadServerAttribute(endpoint, Thermostat::Id, Ids::AbsMinHeatSetpointLimit, (uint8_t *) absMinHeatSetpointLimit, + sizeof(*absMinHeatSetpointLimit)); +} +EmberAfStatus SetAbsMinHeatSetpointLimit(chip::EndpointId endpoint, int16_t absMinHeatSetpointLimit) +{ + return emberAfWriteServerAttribute(endpoint, Thermostat::Id, Ids::AbsMinHeatSetpointLimit, (uint8_t *) &absMinHeatSetpointLimit, + ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetAbsMaxHeatSetpointLimit(chip::EndpointId endpoint, int16_t * absMaxHeatSetpointLimit) +{ + return emberAfReadServerAttribute(endpoint, Thermostat::Id, Ids::AbsMaxHeatSetpointLimit, (uint8_t *) absMaxHeatSetpointLimit, + sizeof(*absMaxHeatSetpointLimit)); +} +EmberAfStatus SetAbsMaxHeatSetpointLimit(chip::EndpointId endpoint, int16_t absMaxHeatSetpointLimit) +{ + return emberAfWriteServerAttribute(endpoint, Thermostat::Id, Ids::AbsMaxHeatSetpointLimit, (uint8_t *) &absMaxHeatSetpointLimit, + ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetAbsMinCoolSetpointLimit(chip::EndpointId endpoint, int16_t * absMinCoolSetpointLimit) +{ + return emberAfReadServerAttribute(endpoint, Thermostat::Id, Ids::AbsMinCoolSetpointLimit, (uint8_t *) absMinCoolSetpointLimit, + sizeof(*absMinCoolSetpointLimit)); +} +EmberAfStatus SetAbsMinCoolSetpointLimit(chip::EndpointId endpoint, int16_t absMinCoolSetpointLimit) +{ + return emberAfWriteServerAttribute(endpoint, Thermostat::Id, Ids::AbsMinCoolSetpointLimit, (uint8_t *) &absMinCoolSetpointLimit, + ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetAbsMaxCoolSetpointLimit(chip::EndpointId endpoint, int16_t * absMaxCoolSetpointLimit) +{ + return emberAfReadServerAttribute(endpoint, Thermostat::Id, Ids::AbsMaxCoolSetpointLimit, (uint8_t *) absMaxCoolSetpointLimit, + sizeof(*absMaxCoolSetpointLimit)); +} +EmberAfStatus SetAbsMaxCoolSetpointLimit(chip::EndpointId endpoint, int16_t absMaxCoolSetpointLimit) +{ + return emberAfWriteServerAttribute(endpoint, Thermostat::Id, Ids::AbsMaxCoolSetpointLimit, (uint8_t *) &absMaxCoolSetpointLimit, + ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetPiCoolingDemand(chip::EndpointId endpoint, uint8_t * piCoolingDemand) +{ + return emberAfReadServerAttribute(endpoint, Thermostat::Id, Ids::PiCoolingDemand, (uint8_t *) piCoolingDemand, + sizeof(*piCoolingDemand)); +} +EmberAfStatus SetPiCoolingDemand(chip::EndpointId endpoint, uint8_t piCoolingDemand) +{ + return emberAfWriteServerAttribute(endpoint, Thermostat::Id, Ids::PiCoolingDemand, (uint8_t *) &piCoolingDemand, + ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetPiHeatingDemand(chip::EndpointId endpoint, uint8_t * piHeatingDemand) +{ + return emberAfReadServerAttribute(endpoint, Thermostat::Id, Ids::PiHeatingDemand, (uint8_t *) piHeatingDemand, + sizeof(*piHeatingDemand)); +} +EmberAfStatus SetPiHeatingDemand(chip::EndpointId endpoint, uint8_t piHeatingDemand) +{ + return emberAfWriteServerAttribute(endpoint, Thermostat::Id, Ids::PiHeatingDemand, (uint8_t *) &piHeatingDemand, + ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetHvacSystemTypeConfiguration(chip::EndpointId endpoint, uint8_t * hvacSystemTypeConfiguration) +{ + return emberAfReadServerAttribute(endpoint, Thermostat::Id, Ids::HvacSystemTypeConfiguration, + (uint8_t *) hvacSystemTypeConfiguration, sizeof(*hvacSystemTypeConfiguration)); +} +EmberAfStatus SetHvacSystemTypeConfiguration(chip::EndpointId endpoint, uint8_t hvacSystemTypeConfiguration) +{ + return emberAfWriteServerAttribute(endpoint, Thermostat::Id, Ids::HvacSystemTypeConfiguration, + (uint8_t *) &hvacSystemTypeConfiguration, ZCL_BITMAP8_ATTRIBUTE_TYPE); +} +EmberAfStatus GetLocalTemperatureCalibration(chip::EndpointId endpoint, int8_t * localTemperatureCalibration) +{ + return emberAfReadServerAttribute(endpoint, Thermostat::Id, Ids::LocalTemperatureCalibration, + (uint8_t *) localTemperatureCalibration, sizeof(*localTemperatureCalibration)); +} +EmberAfStatus SetLocalTemperatureCalibration(chip::EndpointId endpoint, int8_t localTemperatureCalibration) +{ + return emberAfWriteServerAttribute(endpoint, Thermostat::Id, Ids::LocalTemperatureCalibration, + (uint8_t *) &localTemperatureCalibration, ZCL_INT8S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetOccupiedCoolingSetpoint(chip::EndpointId endpoint, int16_t * occupiedCoolingSetpoint) +{ + return emberAfReadServerAttribute(endpoint, Thermostat::Id, Ids::OccupiedCoolingSetpoint, (uint8_t *) occupiedCoolingSetpoint, + sizeof(*occupiedCoolingSetpoint)); +} +EmberAfStatus SetOccupiedCoolingSetpoint(chip::EndpointId endpoint, int16_t occupiedCoolingSetpoint) +{ + return emberAfWriteServerAttribute(endpoint, Thermostat::Id, Ids::OccupiedCoolingSetpoint, (uint8_t *) &occupiedCoolingSetpoint, + ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetOccupiedHeatingSetpoint(chip::EndpointId endpoint, int16_t * occupiedHeatingSetpoint) +{ + return emberAfReadServerAttribute(endpoint, Thermostat::Id, Ids::OccupiedHeatingSetpoint, (uint8_t *) occupiedHeatingSetpoint, + sizeof(*occupiedHeatingSetpoint)); +} +EmberAfStatus SetOccupiedHeatingSetpoint(chip::EndpointId endpoint, int16_t occupiedHeatingSetpoint) +{ + return emberAfWriteServerAttribute(endpoint, Thermostat::Id, Ids::OccupiedHeatingSetpoint, (uint8_t *) &occupiedHeatingSetpoint, + ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetUnoccupiedCoolingSetpoint(chip::EndpointId endpoint, int16_t * unoccupiedCoolingSetpoint) +{ + return emberAfReadServerAttribute(endpoint, Thermostat::Id, Ids::UnoccupiedCoolingSetpoint, + (uint8_t *) unoccupiedCoolingSetpoint, sizeof(*unoccupiedCoolingSetpoint)); +} +EmberAfStatus SetUnoccupiedCoolingSetpoint(chip::EndpointId endpoint, int16_t unoccupiedCoolingSetpoint) +{ + return emberAfWriteServerAttribute(endpoint, Thermostat::Id, Ids::UnoccupiedCoolingSetpoint, + (uint8_t *) &unoccupiedCoolingSetpoint, ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetUnoccupiedHeatingSetpoint(chip::EndpointId endpoint, int16_t * unoccupiedHeatingSetpoint) +{ + return emberAfReadServerAttribute(endpoint, Thermostat::Id, Ids::UnoccupiedHeatingSetpoint, + (uint8_t *) unoccupiedHeatingSetpoint, sizeof(*unoccupiedHeatingSetpoint)); +} +EmberAfStatus SetUnoccupiedHeatingSetpoint(chip::EndpointId endpoint, int16_t unoccupiedHeatingSetpoint) +{ + return emberAfWriteServerAttribute(endpoint, Thermostat::Id, Ids::UnoccupiedHeatingSetpoint, + (uint8_t *) &unoccupiedHeatingSetpoint, ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMinHeatSetpointLimit(chip::EndpointId endpoint, int16_t * minHeatSetpointLimit) +{ + return emberAfReadServerAttribute(endpoint, Thermostat::Id, Ids::MinHeatSetpointLimit, (uint8_t *) minHeatSetpointLimit, + sizeof(*minHeatSetpointLimit)); +} +EmberAfStatus SetMinHeatSetpointLimit(chip::EndpointId endpoint, int16_t minHeatSetpointLimit) +{ + return emberAfWriteServerAttribute(endpoint, Thermostat::Id, Ids::MinHeatSetpointLimit, (uint8_t *) &minHeatSetpointLimit, + ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMaxHeatSetpointLimit(chip::EndpointId endpoint, int16_t * maxHeatSetpointLimit) +{ + return emberAfReadServerAttribute(endpoint, Thermostat::Id, Ids::MaxHeatSetpointLimit, (uint8_t *) maxHeatSetpointLimit, + sizeof(*maxHeatSetpointLimit)); +} +EmberAfStatus SetMaxHeatSetpointLimit(chip::EndpointId endpoint, int16_t maxHeatSetpointLimit) +{ + return emberAfWriteServerAttribute(endpoint, Thermostat::Id, Ids::MaxHeatSetpointLimit, (uint8_t *) &maxHeatSetpointLimit, + ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMinCoolSetpointLimit(chip::EndpointId endpoint, int16_t * minCoolSetpointLimit) +{ + return emberAfReadServerAttribute(endpoint, Thermostat::Id, Ids::MinCoolSetpointLimit, (uint8_t *) minCoolSetpointLimit, + sizeof(*minCoolSetpointLimit)); +} +EmberAfStatus SetMinCoolSetpointLimit(chip::EndpointId endpoint, int16_t minCoolSetpointLimit) +{ + return emberAfWriteServerAttribute(endpoint, Thermostat::Id, Ids::MinCoolSetpointLimit, (uint8_t *) &minCoolSetpointLimit, + ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMaxCoolSetpointLimit(chip::EndpointId endpoint, int16_t * maxCoolSetpointLimit) +{ + return emberAfReadServerAttribute(endpoint, Thermostat::Id, Ids::MaxCoolSetpointLimit, (uint8_t *) maxCoolSetpointLimit, + sizeof(*maxCoolSetpointLimit)); +} +EmberAfStatus SetMaxCoolSetpointLimit(chip::EndpointId endpoint, int16_t maxCoolSetpointLimit) +{ + return emberAfWriteServerAttribute(endpoint, Thermostat::Id, Ids::MaxCoolSetpointLimit, (uint8_t *) &maxCoolSetpointLimit, + ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMinSetpointDeadBand(chip::EndpointId endpoint, int8_t * minSetpointDeadBand) +{ + return emberAfReadServerAttribute(endpoint, Thermostat::Id, Ids::MinSetpointDeadBand, (uint8_t *) minSetpointDeadBand, + sizeof(*minSetpointDeadBand)); +} +EmberAfStatus SetMinSetpointDeadBand(chip::EndpointId endpoint, int8_t minSetpointDeadBand) +{ + return emberAfWriteServerAttribute(endpoint, Thermostat::Id, Ids::MinSetpointDeadBand, (uint8_t *) &minSetpointDeadBand, + ZCL_INT8S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetRemoteSensing(chip::EndpointId endpoint, uint8_t * remoteSensing) +{ + return emberAfReadServerAttribute(endpoint, Thermostat::Id, Ids::RemoteSensing, (uint8_t *) remoteSensing, + sizeof(*remoteSensing)); +} +EmberAfStatus SetRemoteSensing(chip::EndpointId endpoint, uint8_t remoteSensing) +{ + return emberAfWriteServerAttribute(endpoint, Thermostat::Id, Ids::RemoteSensing, (uint8_t *) &remoteSensing, + ZCL_BITMAP8_ATTRIBUTE_TYPE); +} +EmberAfStatus GetControlSequenceOfOperation(chip::EndpointId endpoint, uint8_t * controlSequenceOfOperation) +{ + return emberAfReadServerAttribute(endpoint, Thermostat::Id, Ids::ControlSequenceOfOperation, + (uint8_t *) controlSequenceOfOperation, sizeof(*controlSequenceOfOperation)); +} +EmberAfStatus SetControlSequenceOfOperation(chip::EndpointId endpoint, uint8_t controlSequenceOfOperation) +{ + return emberAfWriteServerAttribute(endpoint, Thermostat::Id, Ids::ControlSequenceOfOperation, + (uint8_t *) &controlSequenceOfOperation, ZCL_ENUM8_ATTRIBUTE_TYPE); +} +EmberAfStatus GetSystemMode(chip::EndpointId endpoint, uint8_t * systemMode) +{ + return emberAfReadServerAttribute(endpoint, Thermostat::Id, Ids::SystemMode, (uint8_t *) systemMode, sizeof(*systemMode)); +} +EmberAfStatus SetSystemMode(chip::EndpointId endpoint, uint8_t systemMode) +{ + return emberAfWriteServerAttribute(endpoint, Thermostat::Id, Ids::SystemMode, (uint8_t *) &systemMode, + ZCL_ENUM8_ATTRIBUTE_TYPE); +} +EmberAfStatus GetAlarmMask(chip::EndpointId endpoint, uint8_t * alarmMask) +{ + return emberAfReadServerAttribute(endpoint, Thermostat::Id, Ids::AlarmMask, (uint8_t *) alarmMask, sizeof(*alarmMask)); +} +EmberAfStatus SetAlarmMask(chip::EndpointId endpoint, uint8_t alarmMask) +{ + return emberAfWriteServerAttribute(endpoint, Thermostat::Id, Ids::AlarmMask, (uint8_t *) &alarmMask, + ZCL_BITMAP8_ATTRIBUTE_TYPE); +} +EmberAfStatus GetThermostatRunningMode(chip::EndpointId endpoint, uint8_t * thermostatRunningMode) +{ + return emberAfReadServerAttribute(endpoint, Thermostat::Id, Ids::ThermostatRunningMode, (uint8_t *) thermostatRunningMode, + sizeof(*thermostatRunningMode)); +} +EmberAfStatus SetThermostatRunningMode(chip::EndpointId endpoint, uint8_t thermostatRunningMode) +{ + return emberAfWriteServerAttribute(endpoint, Thermostat::Id, Ids::ThermostatRunningMode, (uint8_t *) &thermostatRunningMode, + ZCL_ENUM8_ATTRIBUTE_TYPE); +} +EmberAfStatus GetStartOfWeek(chip::EndpointId endpoint, uint8_t * startOfWeek) +{ + return emberAfReadServerAttribute(endpoint, Thermostat::Id, Ids::StartOfWeek, (uint8_t *) startOfWeek, sizeof(*startOfWeek)); +} +EmberAfStatus SetStartOfWeek(chip::EndpointId endpoint, uint8_t startOfWeek) +{ + return emberAfWriteServerAttribute(endpoint, Thermostat::Id, Ids::StartOfWeek, (uint8_t *) &startOfWeek, + ZCL_ENUM8_ATTRIBUTE_TYPE); +} +EmberAfStatus GetNumberOfWeeklyTransitions(chip::EndpointId endpoint, uint8_t * numberOfWeeklyTransitions) +{ + return emberAfReadServerAttribute(endpoint, Thermostat::Id, Ids::NumberOfWeeklyTransitions, + (uint8_t *) numberOfWeeklyTransitions, sizeof(*numberOfWeeklyTransitions)); +} +EmberAfStatus SetNumberOfWeeklyTransitions(chip::EndpointId endpoint, uint8_t numberOfWeeklyTransitions) +{ + return emberAfWriteServerAttribute(endpoint, Thermostat::Id, Ids::NumberOfWeeklyTransitions, + (uint8_t *) &numberOfWeeklyTransitions, ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetNumberOfDailyTransitions(chip::EndpointId endpoint, uint8_t * numberOfDailyTransitions) +{ + return emberAfReadServerAttribute(endpoint, Thermostat::Id, Ids::NumberOfDailyTransitions, (uint8_t *) numberOfDailyTransitions, + sizeof(*numberOfDailyTransitions)); +} +EmberAfStatus SetNumberOfDailyTransitions(chip::EndpointId endpoint, uint8_t numberOfDailyTransitions) +{ + return emberAfWriteServerAttribute(endpoint, Thermostat::Id, Ids::NumberOfDailyTransitions, + (uint8_t *) &numberOfDailyTransitions, ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetTemperatureSetpointHold(chip::EndpointId endpoint, uint8_t * temperatureSetpointHold) +{ + return emberAfReadServerAttribute(endpoint, Thermostat::Id, Ids::TemperatureSetpointHold, (uint8_t *) temperatureSetpointHold, + sizeof(*temperatureSetpointHold)); +} +EmberAfStatus SetTemperatureSetpointHold(chip::EndpointId endpoint, uint8_t temperatureSetpointHold) +{ + return emberAfWriteServerAttribute(endpoint, Thermostat::Id, Ids::TemperatureSetpointHold, (uint8_t *) &temperatureSetpointHold, + ZCL_ENUM8_ATTRIBUTE_TYPE); +} +EmberAfStatus GetTemperatureSetpointHoldDuration(chip::EndpointId endpoint, uint16_t * temperatureSetpointHoldDuration) +{ + return emberAfReadServerAttribute(endpoint, Thermostat::Id, Ids::TemperatureSetpointHoldDuration, + (uint8_t *) temperatureSetpointHoldDuration, sizeof(*temperatureSetpointHoldDuration)); +} +EmberAfStatus SetTemperatureSetpointHoldDuration(chip::EndpointId endpoint, uint16_t temperatureSetpointHoldDuration) +{ + return emberAfWriteServerAttribute(endpoint, Thermostat::Id, Ids::TemperatureSetpointHoldDuration, + (uint8_t *) &temperatureSetpointHoldDuration, ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetThermostatProgrammingOperationMode(chip::EndpointId endpoint, uint8_t * thermostatProgrammingOperationMode) +{ + return emberAfReadServerAttribute(endpoint, Thermostat::Id, Ids::ThermostatProgrammingOperationMode, + (uint8_t *) thermostatProgrammingOperationMode, sizeof(*thermostatProgrammingOperationMode)); +} +EmberAfStatus SetThermostatProgrammingOperationMode(chip::EndpointId endpoint, uint8_t thermostatProgrammingOperationMode) +{ + return emberAfWriteServerAttribute(endpoint, Thermostat::Id, Ids::ThermostatProgrammingOperationMode, + (uint8_t *) &thermostatProgrammingOperationMode, ZCL_BITMAP8_ATTRIBUTE_TYPE); +} +EmberAfStatus GetHvacRelayState(chip::EndpointId endpoint, uint16_t * hvacRelayState) +{ + return emberAfReadServerAttribute(endpoint, Thermostat::Id, Ids::HvacRelayState, (uint8_t *) hvacRelayState, + sizeof(*hvacRelayState)); +} +EmberAfStatus SetHvacRelayState(chip::EndpointId endpoint, uint16_t hvacRelayState) +{ + return emberAfWriteServerAttribute(endpoint, Thermostat::Id, Ids::HvacRelayState, (uint8_t *) &hvacRelayState, + ZCL_BITMAP16_ATTRIBUTE_TYPE); +} +EmberAfStatus GetSetpointChangeSource(chip::EndpointId endpoint, uint8_t * setpointChangeSource) +{ + return emberAfReadServerAttribute(endpoint, Thermostat::Id, Ids::SetpointChangeSource, (uint8_t *) setpointChangeSource, + sizeof(*setpointChangeSource)); +} +EmberAfStatus SetSetpointChangeSource(chip::EndpointId endpoint, uint8_t setpointChangeSource) +{ + return emberAfWriteServerAttribute(endpoint, Thermostat::Id, Ids::SetpointChangeSource, (uint8_t *) &setpointChangeSource, + ZCL_ENUM8_ATTRIBUTE_TYPE); +} +EmberAfStatus GetSetpointChangeAmount(chip::EndpointId endpoint, int16_t * setpointChangeAmount) +{ + return emberAfReadServerAttribute(endpoint, Thermostat::Id, Ids::SetpointChangeAmount, (uint8_t *) setpointChangeAmount, + sizeof(*setpointChangeAmount)); +} +EmberAfStatus SetSetpointChangeAmount(chip::EndpointId endpoint, int16_t setpointChangeAmount) +{ + return emberAfWriteServerAttribute(endpoint, Thermostat::Id, Ids::SetpointChangeAmount, (uint8_t *) &setpointChangeAmount, + ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetSetpointChangeSourceTimestamp(chip::EndpointId endpoint, + /* TYPE WARNING: utc defaults to */ uint8_t ** setpointChangeSourceTimestamp) +{ + return emberAfReadServerAttribute(endpoint, Thermostat::Id, Ids::SetpointChangeSourceTimestamp, + (uint8_t *) setpointChangeSourceTimestamp, sizeof(*setpointChangeSourceTimestamp)); +} +EmberAfStatus SetSetpointChangeSourceTimestamp(chip::EndpointId endpoint, + /* TYPE WARNING: utc defaults to */ uint8_t * setpointChangeSourceTimestamp) +{ + return emberAfWriteServerAttribute(endpoint, Thermostat::Id, Ids::SetpointChangeSourceTimestamp, + (uint8_t *) &setpointChangeSourceTimestamp, ZCL_UTC_ATTRIBUTE_TYPE); +} +EmberAfStatus GetAcType(chip::EndpointId endpoint, uint8_t * acType) +{ + return emberAfReadServerAttribute(endpoint, Thermostat::Id, Ids::AcType, (uint8_t *) acType, sizeof(*acType)); +} +EmberAfStatus SetAcType(chip::EndpointId endpoint, uint8_t acType) +{ + return emberAfWriteServerAttribute(endpoint, Thermostat::Id, Ids::AcType, (uint8_t *) &acType, ZCL_ENUM8_ATTRIBUTE_TYPE); +} +EmberAfStatus GetAcCapacity(chip::EndpointId endpoint, uint16_t * acCapacity) +{ + return emberAfReadServerAttribute(endpoint, Thermostat::Id, Ids::AcCapacity, (uint8_t *) acCapacity, sizeof(*acCapacity)); +} +EmberAfStatus SetAcCapacity(chip::EndpointId endpoint, uint16_t acCapacity) +{ + return emberAfWriteServerAttribute(endpoint, Thermostat::Id, Ids::AcCapacity, (uint8_t *) &acCapacity, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetAcRefrigerantType(chip::EndpointId endpoint, uint8_t * acRefrigerantType) +{ + return emberAfReadServerAttribute(endpoint, Thermostat::Id, Ids::AcRefrigerantType, (uint8_t *) acRefrigerantType, + sizeof(*acRefrigerantType)); +} +EmberAfStatus SetAcRefrigerantType(chip::EndpointId endpoint, uint8_t acRefrigerantType) +{ + return emberAfWriteServerAttribute(endpoint, Thermostat::Id, Ids::AcRefrigerantType, (uint8_t *) &acRefrigerantType, + ZCL_ENUM8_ATTRIBUTE_TYPE); +} +EmberAfStatus GetAcCompressor(chip::EndpointId endpoint, uint8_t * acCompressor) +{ + return emberAfReadServerAttribute(endpoint, Thermostat::Id, Ids::AcCompressor, (uint8_t *) acCompressor, sizeof(*acCompressor)); +} +EmberAfStatus SetAcCompressor(chip::EndpointId endpoint, uint8_t acCompressor) +{ + return emberAfWriteServerAttribute(endpoint, Thermostat::Id, Ids::AcCompressor, (uint8_t *) &acCompressor, + ZCL_ENUM8_ATTRIBUTE_TYPE); +} +EmberAfStatus GetAcErrorCode(chip::EndpointId endpoint, uint32_t * acErrorCode) +{ + return emberAfReadServerAttribute(endpoint, Thermostat::Id, Ids::AcErrorCode, (uint8_t *) acErrorCode, sizeof(*acErrorCode)); +} +EmberAfStatus SetAcErrorCode(chip::EndpointId endpoint, uint32_t acErrorCode) +{ + return emberAfWriteServerAttribute(endpoint, Thermostat::Id, Ids::AcErrorCode, (uint8_t *) &acErrorCode, + ZCL_BITMAP32_ATTRIBUTE_TYPE); +} +EmberAfStatus GetAcLouverPosition(chip::EndpointId endpoint, uint8_t * acLouverPosition) +{ + return emberAfReadServerAttribute(endpoint, Thermostat::Id, Ids::AcLouverPosition, (uint8_t *) acLouverPosition, + sizeof(*acLouverPosition)); +} +EmberAfStatus SetAcLouverPosition(chip::EndpointId endpoint, uint8_t acLouverPosition) +{ + return emberAfWriteServerAttribute(endpoint, Thermostat::Id, Ids::AcLouverPosition, (uint8_t *) &acLouverPosition, + ZCL_ENUM8_ATTRIBUTE_TYPE); +} +EmberAfStatus GetAcCoilTemperature(chip::EndpointId endpoint, int16_t * acCoilTemperature) +{ + return emberAfReadServerAttribute(endpoint, Thermostat::Id, Ids::AcCoilTemperature, (uint8_t *) acCoilTemperature, + sizeof(*acCoilTemperature)); +} +EmberAfStatus SetAcCoilTemperature(chip::EndpointId endpoint, int16_t acCoilTemperature) +{ + return emberAfWriteServerAttribute(endpoint, Thermostat::Id, Ids::AcCoilTemperature, (uint8_t *) &acCoilTemperature, + ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetAcCapacityFormat(chip::EndpointId endpoint, uint8_t * acCapacityFormat) +{ + return emberAfReadServerAttribute(endpoint, Thermostat::Id, Ids::AcCapacityFormat, (uint8_t *) acCapacityFormat, + sizeof(*acCapacityFormat)); +} +EmberAfStatus SetAcCapacityFormat(chip::EndpointId endpoint, uint8_t acCapacityFormat) +{ + return emberAfWriteServerAttribute(endpoint, Thermostat::Id, Ids::AcCapacityFormat, (uint8_t *) &acCapacityFormat, + ZCL_ENUM8_ATTRIBUTE_TYPE); +} +} // namespace Attributes +} // namespace Thermostat + +namespace FanControl { +namespace Attributes { +EmberAfStatus GetFanMode(chip::EndpointId endpoint, uint8_t * fanMode) +{ + return emberAfReadServerAttribute(endpoint, FanControl::Id, Ids::FanMode, (uint8_t *) fanMode, sizeof(*fanMode)); +} +EmberAfStatus SetFanMode(chip::EndpointId endpoint, uint8_t fanMode) +{ + return emberAfWriteServerAttribute(endpoint, FanControl::Id, Ids::FanMode, (uint8_t *) &fanMode, ZCL_ENUM8_ATTRIBUTE_TYPE); +} +EmberAfStatus GetFanModeSequence(chip::EndpointId endpoint, uint8_t * fanModeSequence) +{ + return emberAfReadServerAttribute(endpoint, FanControl::Id, Ids::FanModeSequence, (uint8_t *) fanModeSequence, + sizeof(*fanModeSequence)); +} +EmberAfStatus SetFanModeSequence(chip::EndpointId endpoint, uint8_t fanModeSequence) +{ + return emberAfWriteServerAttribute(endpoint, FanControl::Id, Ids::FanModeSequence, (uint8_t *) &fanModeSequence, + ZCL_ENUM8_ATTRIBUTE_TYPE); +} +} // namespace Attributes +} // namespace FanControl + +namespace DehumidificationControl { +namespace Attributes { +EmberAfStatus GetRelativeHumidity(chip::EndpointId endpoint, uint8_t * relativeHumidity) +{ + return emberAfReadServerAttribute(endpoint, DehumidificationControl::Id, Ids::RelativeHumidity, (uint8_t *) relativeHumidity, + sizeof(*relativeHumidity)); +} +EmberAfStatus SetRelativeHumidity(chip::EndpointId endpoint, uint8_t relativeHumidity) +{ + return emberAfWriteServerAttribute(endpoint, DehumidificationControl::Id, Ids::RelativeHumidity, (uint8_t *) &relativeHumidity, + ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetDehumidificationCooling(chip::EndpointId endpoint, uint8_t * dehumidificationCooling) +{ + return emberAfReadServerAttribute(endpoint, DehumidificationControl::Id, Ids::DehumidificationCooling, + (uint8_t *) dehumidificationCooling, sizeof(*dehumidificationCooling)); +} +EmberAfStatus SetDehumidificationCooling(chip::EndpointId endpoint, uint8_t dehumidificationCooling) +{ + return emberAfWriteServerAttribute(endpoint, DehumidificationControl::Id, Ids::DehumidificationCooling, + (uint8_t *) &dehumidificationCooling, ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetRhDehumidificationSetpoint(chip::EndpointId endpoint, uint8_t * rhDehumidificationSetpoint) +{ + return emberAfReadServerAttribute(endpoint, DehumidificationControl::Id, Ids::RhDehumidificationSetpoint, + (uint8_t *) rhDehumidificationSetpoint, sizeof(*rhDehumidificationSetpoint)); +} +EmberAfStatus SetRhDehumidificationSetpoint(chip::EndpointId endpoint, uint8_t rhDehumidificationSetpoint) +{ + return emberAfWriteServerAttribute(endpoint, DehumidificationControl::Id, Ids::RhDehumidificationSetpoint, + (uint8_t *) &rhDehumidificationSetpoint, ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetRelativeHumidityMode(chip::EndpointId endpoint, uint8_t * relativeHumidityMode) +{ + return emberAfReadServerAttribute(endpoint, DehumidificationControl::Id, Ids::RelativeHumidityMode, + (uint8_t *) relativeHumidityMode, sizeof(*relativeHumidityMode)); +} +EmberAfStatus SetRelativeHumidityMode(chip::EndpointId endpoint, uint8_t relativeHumidityMode) +{ + return emberAfWriteServerAttribute(endpoint, DehumidificationControl::Id, Ids::RelativeHumidityMode, + (uint8_t *) &relativeHumidityMode, ZCL_ENUM8_ATTRIBUTE_TYPE); +} +EmberAfStatus GetDehumidificationLockout(chip::EndpointId endpoint, uint8_t * dehumidificationLockout) +{ + return emberAfReadServerAttribute(endpoint, DehumidificationControl::Id, Ids::DehumidificationLockout, + (uint8_t *) dehumidificationLockout, sizeof(*dehumidificationLockout)); +} +EmberAfStatus SetDehumidificationLockout(chip::EndpointId endpoint, uint8_t dehumidificationLockout) +{ + return emberAfWriteServerAttribute(endpoint, DehumidificationControl::Id, Ids::DehumidificationLockout, + (uint8_t *) &dehumidificationLockout, ZCL_ENUM8_ATTRIBUTE_TYPE); +} +EmberAfStatus GetDehumidificationHysteresis(chip::EndpointId endpoint, uint8_t * dehumidificationHysteresis) +{ + return emberAfReadServerAttribute(endpoint, DehumidificationControl::Id, Ids::DehumidificationHysteresis, + (uint8_t *) dehumidificationHysteresis, sizeof(*dehumidificationHysteresis)); +} +EmberAfStatus SetDehumidificationHysteresis(chip::EndpointId endpoint, uint8_t dehumidificationHysteresis) +{ + return emberAfWriteServerAttribute(endpoint, DehumidificationControl::Id, Ids::DehumidificationHysteresis, + (uint8_t *) &dehumidificationHysteresis, ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetDehumidificationMaxCool(chip::EndpointId endpoint, uint8_t * dehumidificationMaxCool) +{ + return emberAfReadServerAttribute(endpoint, DehumidificationControl::Id, Ids::DehumidificationMaxCool, + (uint8_t *) dehumidificationMaxCool, sizeof(*dehumidificationMaxCool)); +} +EmberAfStatus SetDehumidificationMaxCool(chip::EndpointId endpoint, uint8_t dehumidificationMaxCool) +{ + return emberAfWriteServerAttribute(endpoint, DehumidificationControl::Id, Ids::DehumidificationMaxCool, + (uint8_t *) &dehumidificationMaxCool, ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetRelativeHumidityDisplay(chip::EndpointId endpoint, uint8_t * relativeHumidityDisplay) +{ + return emberAfReadServerAttribute(endpoint, DehumidificationControl::Id, Ids::RelativeHumidityDisplay, + (uint8_t *) relativeHumidityDisplay, sizeof(*relativeHumidityDisplay)); +} +EmberAfStatus SetRelativeHumidityDisplay(chip::EndpointId endpoint, uint8_t relativeHumidityDisplay) +{ + return emberAfWriteServerAttribute(endpoint, DehumidificationControl::Id, Ids::RelativeHumidityDisplay, + (uint8_t *) &relativeHumidityDisplay, ZCL_ENUM8_ATTRIBUTE_TYPE); +} +} // namespace Attributes +} // namespace DehumidificationControl + +namespace ThermostatUserInterfaceConfiguration { +namespace Attributes { +EmberAfStatus GetTemperatureDisplayMode(chip::EndpointId endpoint, uint8_t * temperatureDisplayMode) +{ + return emberAfReadServerAttribute(endpoint, ThermostatUserInterfaceConfiguration::Id, Ids::TemperatureDisplayMode, + (uint8_t *) temperatureDisplayMode, sizeof(*temperatureDisplayMode)); +} +EmberAfStatus SetTemperatureDisplayMode(chip::EndpointId endpoint, uint8_t temperatureDisplayMode) +{ + return emberAfWriteServerAttribute(endpoint, ThermostatUserInterfaceConfiguration::Id, Ids::TemperatureDisplayMode, + (uint8_t *) &temperatureDisplayMode, ZCL_ENUM8_ATTRIBUTE_TYPE); +} +EmberAfStatus GetKeypadLockout(chip::EndpointId endpoint, uint8_t * keypadLockout) +{ + return emberAfReadServerAttribute(endpoint, ThermostatUserInterfaceConfiguration::Id, Ids::KeypadLockout, + (uint8_t *) keypadLockout, sizeof(*keypadLockout)); +} +EmberAfStatus SetKeypadLockout(chip::EndpointId endpoint, uint8_t keypadLockout) +{ + return emberAfWriteServerAttribute(endpoint, ThermostatUserInterfaceConfiguration::Id, Ids::KeypadLockout, + (uint8_t *) &keypadLockout, ZCL_ENUM8_ATTRIBUTE_TYPE); +} +EmberAfStatus GetScheduleProgrammingVisibility(chip::EndpointId endpoint, uint8_t * scheduleProgrammingVisibility) +{ + return emberAfReadServerAttribute(endpoint, ThermostatUserInterfaceConfiguration::Id, Ids::ScheduleProgrammingVisibility, + (uint8_t *) scheduleProgrammingVisibility, sizeof(*scheduleProgrammingVisibility)); +} +EmberAfStatus SetScheduleProgrammingVisibility(chip::EndpointId endpoint, uint8_t scheduleProgrammingVisibility) +{ + return emberAfWriteServerAttribute(endpoint, ThermostatUserInterfaceConfiguration::Id, Ids::ScheduleProgrammingVisibility, + (uint8_t *) &scheduleProgrammingVisibility, ZCL_ENUM8_ATTRIBUTE_TYPE); +} +} // namespace Attributes +} // namespace ThermostatUserInterfaceConfiguration + +namespace ColorControl { +namespace Attributes { +EmberAfStatus GetCurrentHue(chip::EndpointId endpoint, uint8_t * currentHue) +{ + return emberAfReadServerAttribute(endpoint, ColorControl::Id, Ids::CurrentHue, (uint8_t *) currentHue, sizeof(*currentHue)); +} +EmberAfStatus SetCurrentHue(chip::EndpointId endpoint, uint8_t currentHue) +{ + return emberAfWriteServerAttribute(endpoint, ColorControl::Id, Ids::CurrentHue, (uint8_t *) ¤tHue, + ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetCurrentSaturation(chip::EndpointId endpoint, uint8_t * currentSaturation) +{ + return emberAfReadServerAttribute(endpoint, ColorControl::Id, Ids::CurrentSaturation, (uint8_t *) currentSaturation, + sizeof(*currentSaturation)); +} +EmberAfStatus SetCurrentSaturation(chip::EndpointId endpoint, uint8_t currentSaturation) +{ + return emberAfWriteServerAttribute(endpoint, ColorControl::Id, Ids::CurrentSaturation, (uint8_t *) ¤tSaturation, + ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetRemainingTime(chip::EndpointId endpoint, uint16_t * remainingTime) +{ + return emberAfReadServerAttribute(endpoint, ColorControl::Id, Ids::RemainingTime, (uint8_t *) remainingTime, + sizeof(*remainingTime)); +} +EmberAfStatus SetRemainingTime(chip::EndpointId endpoint, uint16_t remainingTime) +{ + return emberAfWriteServerAttribute(endpoint, ColorControl::Id, Ids::RemainingTime, (uint8_t *) &remainingTime, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetCurrentX(chip::EndpointId endpoint, uint16_t * currentX) +{ + return emberAfReadServerAttribute(endpoint, ColorControl::Id, Ids::CurrentX, (uint8_t *) currentX, sizeof(*currentX)); +} +EmberAfStatus SetCurrentX(chip::EndpointId endpoint, uint16_t currentX) +{ + return emberAfWriteServerAttribute(endpoint, ColorControl::Id, Ids::CurrentX, (uint8_t *) ¤tX, ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetCurrentY(chip::EndpointId endpoint, uint16_t * currentY) +{ + return emberAfReadServerAttribute(endpoint, ColorControl::Id, Ids::CurrentY, (uint8_t *) currentY, sizeof(*currentY)); +} +EmberAfStatus SetCurrentY(chip::EndpointId endpoint, uint16_t currentY) +{ + return emberAfWriteServerAttribute(endpoint, ColorControl::Id, Ids::CurrentY, (uint8_t *) ¤tY, ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetDriftCompensation(chip::EndpointId endpoint, uint8_t * driftCompensation) +{ + return emberAfReadServerAttribute(endpoint, ColorControl::Id, Ids::DriftCompensation, (uint8_t *) driftCompensation, + sizeof(*driftCompensation)); +} +EmberAfStatus SetDriftCompensation(chip::EndpointId endpoint, uint8_t driftCompensation) +{ + return emberAfWriteServerAttribute(endpoint, ColorControl::Id, Ids::DriftCompensation, (uint8_t *) &driftCompensation, + ZCL_ENUM8_ATTRIBUTE_TYPE); +} +EmberAfStatus GetColorTemperature(chip::EndpointId endpoint, uint16_t * colorTemperature) +{ + return emberAfReadServerAttribute(endpoint, ColorControl::Id, Ids::ColorTemperature, (uint8_t *) colorTemperature, + sizeof(*colorTemperature)); +} +EmberAfStatus SetColorTemperature(chip::EndpointId endpoint, uint16_t colorTemperature) +{ + return emberAfWriteServerAttribute(endpoint, ColorControl::Id, Ids::ColorTemperature, (uint8_t *) &colorTemperature, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetColorMode(chip::EndpointId endpoint, uint8_t * colorMode) +{ + return emberAfReadServerAttribute(endpoint, ColorControl::Id, Ids::ColorMode, (uint8_t *) colorMode, sizeof(*colorMode)); +} +EmberAfStatus SetColorMode(chip::EndpointId endpoint, uint8_t colorMode) +{ + return emberAfWriteServerAttribute(endpoint, ColorControl::Id, Ids::ColorMode, (uint8_t *) &colorMode, + ZCL_ENUM8_ATTRIBUTE_TYPE); +} +EmberAfStatus GetColorControlOptions(chip::EndpointId endpoint, uint8_t * colorControlOptions) +{ + return emberAfReadServerAttribute(endpoint, ColorControl::Id, Ids::ColorControlOptions, (uint8_t *) colorControlOptions, + sizeof(*colorControlOptions)); +} +EmberAfStatus SetColorControlOptions(chip::EndpointId endpoint, uint8_t colorControlOptions) +{ + return emberAfWriteServerAttribute(endpoint, ColorControl::Id, Ids::ColorControlOptions, (uint8_t *) &colorControlOptions, + ZCL_BITMAP8_ATTRIBUTE_TYPE); +} +EmberAfStatus GetNumberOfPrimaries(chip::EndpointId endpoint, uint8_t * numberOfPrimaries) +{ + return emberAfReadServerAttribute(endpoint, ColorControl::Id, Ids::NumberOfPrimaries, (uint8_t *) numberOfPrimaries, + sizeof(*numberOfPrimaries)); +} +EmberAfStatus SetNumberOfPrimaries(chip::EndpointId endpoint, uint8_t numberOfPrimaries) +{ + return emberAfWriteServerAttribute(endpoint, ColorControl::Id, Ids::NumberOfPrimaries, (uint8_t *) &numberOfPrimaries, + ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetPrimary1X(chip::EndpointId endpoint, uint16_t * primary1X) +{ + return emberAfReadServerAttribute(endpoint, ColorControl::Id, Ids::Primary1X, (uint8_t *) primary1X, sizeof(*primary1X)); +} +EmberAfStatus SetPrimary1X(chip::EndpointId endpoint, uint16_t primary1X) +{ + return emberAfWriteServerAttribute(endpoint, ColorControl::Id, Ids::Primary1X, (uint8_t *) &primary1X, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetPrimary1Y(chip::EndpointId endpoint, uint16_t * primary1Y) +{ + return emberAfReadServerAttribute(endpoint, ColorControl::Id, Ids::Primary1Y, (uint8_t *) primary1Y, sizeof(*primary1Y)); +} +EmberAfStatus SetPrimary1Y(chip::EndpointId endpoint, uint16_t primary1Y) +{ + return emberAfWriteServerAttribute(endpoint, ColorControl::Id, Ids::Primary1Y, (uint8_t *) &primary1Y, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetPrimary1Intensity(chip::EndpointId endpoint, uint8_t * primary1Intensity) +{ + return emberAfReadServerAttribute(endpoint, ColorControl::Id, Ids::Primary1Intensity, (uint8_t *) primary1Intensity, + sizeof(*primary1Intensity)); +} +EmberAfStatus SetPrimary1Intensity(chip::EndpointId endpoint, uint8_t primary1Intensity) +{ + return emberAfWriteServerAttribute(endpoint, ColorControl::Id, Ids::Primary1Intensity, (uint8_t *) &primary1Intensity, + ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetPrimary2X(chip::EndpointId endpoint, uint16_t * primary2X) +{ + return emberAfReadServerAttribute(endpoint, ColorControl::Id, Ids::Primary2X, (uint8_t *) primary2X, sizeof(*primary2X)); +} +EmberAfStatus SetPrimary2X(chip::EndpointId endpoint, uint16_t primary2X) +{ + return emberAfWriteServerAttribute(endpoint, ColorControl::Id, Ids::Primary2X, (uint8_t *) &primary2X, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetPrimary2Y(chip::EndpointId endpoint, uint16_t * primary2Y) +{ + return emberAfReadServerAttribute(endpoint, ColorControl::Id, Ids::Primary2Y, (uint8_t *) primary2Y, sizeof(*primary2Y)); +} +EmberAfStatus SetPrimary2Y(chip::EndpointId endpoint, uint16_t primary2Y) +{ + return emberAfWriteServerAttribute(endpoint, ColorControl::Id, Ids::Primary2Y, (uint8_t *) &primary2Y, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetPrimary2Intensity(chip::EndpointId endpoint, uint8_t * primary2Intensity) +{ + return emberAfReadServerAttribute(endpoint, ColorControl::Id, Ids::Primary2Intensity, (uint8_t *) primary2Intensity, + sizeof(*primary2Intensity)); +} +EmberAfStatus SetPrimary2Intensity(chip::EndpointId endpoint, uint8_t primary2Intensity) +{ + return emberAfWriteServerAttribute(endpoint, ColorControl::Id, Ids::Primary2Intensity, (uint8_t *) &primary2Intensity, + ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetPrimary3X(chip::EndpointId endpoint, uint16_t * primary3X) +{ + return emberAfReadServerAttribute(endpoint, ColorControl::Id, Ids::Primary3X, (uint8_t *) primary3X, sizeof(*primary3X)); +} +EmberAfStatus SetPrimary3X(chip::EndpointId endpoint, uint16_t primary3X) +{ + return emberAfWriteServerAttribute(endpoint, ColorControl::Id, Ids::Primary3X, (uint8_t *) &primary3X, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetPrimary3Y(chip::EndpointId endpoint, uint16_t * primary3Y) +{ + return emberAfReadServerAttribute(endpoint, ColorControl::Id, Ids::Primary3Y, (uint8_t *) primary3Y, sizeof(*primary3Y)); +} +EmberAfStatus SetPrimary3Y(chip::EndpointId endpoint, uint16_t primary3Y) +{ + return emberAfWriteServerAttribute(endpoint, ColorControl::Id, Ids::Primary3Y, (uint8_t *) &primary3Y, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetPrimary3Intensity(chip::EndpointId endpoint, uint8_t * primary3Intensity) +{ + return emberAfReadServerAttribute(endpoint, ColorControl::Id, Ids::Primary3Intensity, (uint8_t *) primary3Intensity, + sizeof(*primary3Intensity)); +} +EmberAfStatus SetPrimary3Intensity(chip::EndpointId endpoint, uint8_t primary3Intensity) +{ + return emberAfWriteServerAttribute(endpoint, ColorControl::Id, Ids::Primary3Intensity, (uint8_t *) &primary3Intensity, + ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetPrimary4X(chip::EndpointId endpoint, uint16_t * primary4X) +{ + return emberAfReadServerAttribute(endpoint, ColorControl::Id, Ids::Primary4X, (uint8_t *) primary4X, sizeof(*primary4X)); +} +EmberAfStatus SetPrimary4X(chip::EndpointId endpoint, uint16_t primary4X) +{ + return emberAfWriteServerAttribute(endpoint, ColorControl::Id, Ids::Primary4X, (uint8_t *) &primary4X, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetPrimary4Y(chip::EndpointId endpoint, uint16_t * primary4Y) +{ + return emberAfReadServerAttribute(endpoint, ColorControl::Id, Ids::Primary4Y, (uint8_t *) primary4Y, sizeof(*primary4Y)); +} +EmberAfStatus SetPrimary4Y(chip::EndpointId endpoint, uint16_t primary4Y) +{ + return emberAfWriteServerAttribute(endpoint, ColorControl::Id, Ids::Primary4Y, (uint8_t *) &primary4Y, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetPrimary4Intensity(chip::EndpointId endpoint, uint8_t * primary4Intensity) +{ + return emberAfReadServerAttribute(endpoint, ColorControl::Id, Ids::Primary4Intensity, (uint8_t *) primary4Intensity, + sizeof(*primary4Intensity)); +} +EmberAfStatus SetPrimary4Intensity(chip::EndpointId endpoint, uint8_t primary4Intensity) +{ + return emberAfWriteServerAttribute(endpoint, ColorControl::Id, Ids::Primary4Intensity, (uint8_t *) &primary4Intensity, + ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetPrimary5X(chip::EndpointId endpoint, uint16_t * primary5X) +{ + return emberAfReadServerAttribute(endpoint, ColorControl::Id, Ids::Primary5X, (uint8_t *) primary5X, sizeof(*primary5X)); +} +EmberAfStatus SetPrimary5X(chip::EndpointId endpoint, uint16_t primary5X) +{ + return emberAfWriteServerAttribute(endpoint, ColorControl::Id, Ids::Primary5X, (uint8_t *) &primary5X, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetPrimary5Y(chip::EndpointId endpoint, uint16_t * primary5Y) +{ + return emberAfReadServerAttribute(endpoint, ColorControl::Id, Ids::Primary5Y, (uint8_t *) primary5Y, sizeof(*primary5Y)); +} +EmberAfStatus SetPrimary5Y(chip::EndpointId endpoint, uint16_t primary5Y) +{ + return emberAfWriteServerAttribute(endpoint, ColorControl::Id, Ids::Primary5Y, (uint8_t *) &primary5Y, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetPrimary5Intensity(chip::EndpointId endpoint, uint8_t * primary5Intensity) +{ + return emberAfReadServerAttribute(endpoint, ColorControl::Id, Ids::Primary5Intensity, (uint8_t *) primary5Intensity, + sizeof(*primary5Intensity)); +} +EmberAfStatus SetPrimary5Intensity(chip::EndpointId endpoint, uint8_t primary5Intensity) +{ + return emberAfWriteServerAttribute(endpoint, ColorControl::Id, Ids::Primary5Intensity, (uint8_t *) &primary5Intensity, + ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetPrimary6X(chip::EndpointId endpoint, uint16_t * primary6X) +{ + return emberAfReadServerAttribute(endpoint, ColorControl::Id, Ids::Primary6X, (uint8_t *) primary6X, sizeof(*primary6X)); +} +EmberAfStatus SetPrimary6X(chip::EndpointId endpoint, uint16_t primary6X) +{ + return emberAfWriteServerAttribute(endpoint, ColorControl::Id, Ids::Primary6X, (uint8_t *) &primary6X, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetPrimary6Y(chip::EndpointId endpoint, uint16_t * primary6Y) +{ + return emberAfReadServerAttribute(endpoint, ColorControl::Id, Ids::Primary6Y, (uint8_t *) primary6Y, sizeof(*primary6Y)); +} +EmberAfStatus SetPrimary6Y(chip::EndpointId endpoint, uint16_t primary6Y) +{ + return emberAfWriteServerAttribute(endpoint, ColorControl::Id, Ids::Primary6Y, (uint8_t *) &primary6Y, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetPrimary6Intensity(chip::EndpointId endpoint, uint8_t * primary6Intensity) +{ + return emberAfReadServerAttribute(endpoint, ColorControl::Id, Ids::Primary6Intensity, (uint8_t *) primary6Intensity, + sizeof(*primary6Intensity)); +} +EmberAfStatus SetPrimary6Intensity(chip::EndpointId endpoint, uint8_t primary6Intensity) +{ + return emberAfWriteServerAttribute(endpoint, ColorControl::Id, Ids::Primary6Intensity, (uint8_t *) &primary6Intensity, + ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetWhitePointX(chip::EndpointId endpoint, uint16_t * whitePointX) +{ + return emberAfReadServerAttribute(endpoint, ColorControl::Id, Ids::WhitePointX, (uint8_t *) whitePointX, sizeof(*whitePointX)); +} +EmberAfStatus SetWhitePointX(chip::EndpointId endpoint, uint16_t whitePointX) +{ + return emberAfWriteServerAttribute(endpoint, ColorControl::Id, Ids::WhitePointX, (uint8_t *) &whitePointX, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetWhitePointY(chip::EndpointId endpoint, uint16_t * whitePointY) +{ + return emberAfReadServerAttribute(endpoint, ColorControl::Id, Ids::WhitePointY, (uint8_t *) whitePointY, sizeof(*whitePointY)); +} +EmberAfStatus SetWhitePointY(chip::EndpointId endpoint, uint16_t whitePointY) +{ + return emberAfWriteServerAttribute(endpoint, ColorControl::Id, Ids::WhitePointY, (uint8_t *) &whitePointY, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetColorPointRX(chip::EndpointId endpoint, uint16_t * colorPointRX) +{ + return emberAfReadServerAttribute(endpoint, ColorControl::Id, Ids::ColorPointRX, (uint8_t *) colorPointRX, + sizeof(*colorPointRX)); +} +EmberAfStatus SetColorPointRX(chip::EndpointId endpoint, uint16_t colorPointRX) +{ + return emberAfWriteServerAttribute(endpoint, ColorControl::Id, Ids::ColorPointRX, (uint8_t *) &colorPointRX, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetColorPointRY(chip::EndpointId endpoint, uint16_t * colorPointRY) +{ + return emberAfReadServerAttribute(endpoint, ColorControl::Id, Ids::ColorPointRY, (uint8_t *) colorPointRY, + sizeof(*colorPointRY)); +} +EmberAfStatus SetColorPointRY(chip::EndpointId endpoint, uint16_t colorPointRY) +{ + return emberAfWriteServerAttribute(endpoint, ColorControl::Id, Ids::ColorPointRY, (uint8_t *) &colorPointRY, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetColorPointRIntensity(chip::EndpointId endpoint, uint8_t * colorPointRIntensity) +{ + return emberAfReadServerAttribute(endpoint, ColorControl::Id, Ids::ColorPointRIntensity, (uint8_t *) colorPointRIntensity, + sizeof(*colorPointRIntensity)); +} +EmberAfStatus SetColorPointRIntensity(chip::EndpointId endpoint, uint8_t colorPointRIntensity) +{ + return emberAfWriteServerAttribute(endpoint, ColorControl::Id, Ids::ColorPointRIntensity, (uint8_t *) &colorPointRIntensity, + ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetColorPointGX(chip::EndpointId endpoint, uint16_t * colorPointGX) +{ + return emberAfReadServerAttribute(endpoint, ColorControl::Id, Ids::ColorPointGX, (uint8_t *) colorPointGX, + sizeof(*colorPointGX)); +} +EmberAfStatus SetColorPointGX(chip::EndpointId endpoint, uint16_t colorPointGX) +{ + return emberAfWriteServerAttribute(endpoint, ColorControl::Id, Ids::ColorPointGX, (uint8_t *) &colorPointGX, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetColorPointGY(chip::EndpointId endpoint, uint16_t * colorPointGY) +{ + return emberAfReadServerAttribute(endpoint, ColorControl::Id, Ids::ColorPointGY, (uint8_t *) colorPointGY, + sizeof(*colorPointGY)); +} +EmberAfStatus SetColorPointGY(chip::EndpointId endpoint, uint16_t colorPointGY) +{ + return emberAfWriteServerAttribute(endpoint, ColorControl::Id, Ids::ColorPointGY, (uint8_t *) &colorPointGY, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetColorPointGIntensity(chip::EndpointId endpoint, uint8_t * colorPointGIntensity) +{ + return emberAfReadServerAttribute(endpoint, ColorControl::Id, Ids::ColorPointGIntensity, (uint8_t *) colorPointGIntensity, + sizeof(*colorPointGIntensity)); +} +EmberAfStatus SetColorPointGIntensity(chip::EndpointId endpoint, uint8_t colorPointGIntensity) +{ + return emberAfWriteServerAttribute(endpoint, ColorControl::Id, Ids::ColorPointGIntensity, (uint8_t *) &colorPointGIntensity, + ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetColorPointBX(chip::EndpointId endpoint, uint16_t * colorPointBX) +{ + return emberAfReadServerAttribute(endpoint, ColorControl::Id, Ids::ColorPointBX, (uint8_t *) colorPointBX, + sizeof(*colorPointBX)); +} +EmberAfStatus SetColorPointBX(chip::EndpointId endpoint, uint16_t colorPointBX) +{ + return emberAfWriteServerAttribute(endpoint, ColorControl::Id, Ids::ColorPointBX, (uint8_t *) &colorPointBX, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetColorPointBY(chip::EndpointId endpoint, uint16_t * colorPointBY) +{ + return emberAfReadServerAttribute(endpoint, ColorControl::Id, Ids::ColorPointBY, (uint8_t *) colorPointBY, + sizeof(*colorPointBY)); +} +EmberAfStatus SetColorPointBY(chip::EndpointId endpoint, uint16_t colorPointBY) +{ + return emberAfWriteServerAttribute(endpoint, ColorControl::Id, Ids::ColorPointBY, (uint8_t *) &colorPointBY, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetColorPointBIntensity(chip::EndpointId endpoint, uint8_t * colorPointBIntensity) +{ + return emberAfReadServerAttribute(endpoint, ColorControl::Id, Ids::ColorPointBIntensity, (uint8_t *) colorPointBIntensity, + sizeof(*colorPointBIntensity)); +} +EmberAfStatus SetColorPointBIntensity(chip::EndpointId endpoint, uint8_t colorPointBIntensity) +{ + return emberAfWriteServerAttribute(endpoint, ColorControl::Id, Ids::ColorPointBIntensity, (uint8_t *) &colorPointBIntensity, + ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetEnhancedCurrentHue(chip::EndpointId endpoint, uint16_t * enhancedCurrentHue) +{ + return emberAfReadServerAttribute(endpoint, ColorControl::Id, Ids::EnhancedCurrentHue, (uint8_t *) enhancedCurrentHue, + sizeof(*enhancedCurrentHue)); +} +EmberAfStatus SetEnhancedCurrentHue(chip::EndpointId endpoint, uint16_t enhancedCurrentHue) +{ + return emberAfWriteServerAttribute(endpoint, ColorControl::Id, Ids::EnhancedCurrentHue, (uint8_t *) &enhancedCurrentHue, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetEnhancedColorMode(chip::EndpointId endpoint, uint8_t * enhancedColorMode) +{ + return emberAfReadServerAttribute(endpoint, ColorControl::Id, Ids::EnhancedColorMode, (uint8_t *) enhancedColorMode, + sizeof(*enhancedColorMode)); +} +EmberAfStatus SetEnhancedColorMode(chip::EndpointId endpoint, uint8_t enhancedColorMode) +{ + return emberAfWriteServerAttribute(endpoint, ColorControl::Id, Ids::EnhancedColorMode, (uint8_t *) &enhancedColorMode, + ZCL_ENUM8_ATTRIBUTE_TYPE); +} +EmberAfStatus GetColorLoopActive(chip::EndpointId endpoint, uint8_t * colorLoopActive) +{ + return emberAfReadServerAttribute(endpoint, ColorControl::Id, Ids::ColorLoopActive, (uint8_t *) colorLoopActive, + sizeof(*colorLoopActive)); +} +EmberAfStatus SetColorLoopActive(chip::EndpointId endpoint, uint8_t colorLoopActive) +{ + return emberAfWriteServerAttribute(endpoint, ColorControl::Id, Ids::ColorLoopActive, (uint8_t *) &colorLoopActive, + ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetColorLoopDirection(chip::EndpointId endpoint, uint8_t * colorLoopDirection) +{ + return emberAfReadServerAttribute(endpoint, ColorControl::Id, Ids::ColorLoopDirection, (uint8_t *) colorLoopDirection, + sizeof(*colorLoopDirection)); +} +EmberAfStatus SetColorLoopDirection(chip::EndpointId endpoint, uint8_t colorLoopDirection) +{ + return emberAfWriteServerAttribute(endpoint, ColorControl::Id, Ids::ColorLoopDirection, (uint8_t *) &colorLoopDirection, + ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetColorLoopTime(chip::EndpointId endpoint, uint16_t * colorLoopTime) +{ + return emberAfReadServerAttribute(endpoint, ColorControl::Id, Ids::ColorLoopTime, (uint8_t *) colorLoopTime, + sizeof(*colorLoopTime)); +} +EmberAfStatus SetColorLoopTime(chip::EndpointId endpoint, uint16_t colorLoopTime) +{ + return emberAfWriteServerAttribute(endpoint, ColorControl::Id, Ids::ColorLoopTime, (uint8_t *) &colorLoopTime, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetColorLoopStartEnhancedHue(chip::EndpointId endpoint, uint16_t * colorLoopStartEnhancedHue) +{ + return emberAfReadServerAttribute(endpoint, ColorControl::Id, Ids::ColorLoopStartEnhancedHue, + (uint8_t *) colorLoopStartEnhancedHue, sizeof(*colorLoopStartEnhancedHue)); +} +EmberAfStatus SetColorLoopStartEnhancedHue(chip::EndpointId endpoint, uint16_t colorLoopStartEnhancedHue) +{ + return emberAfWriteServerAttribute(endpoint, ColorControl::Id, Ids::ColorLoopStartEnhancedHue, + (uint8_t *) &colorLoopStartEnhancedHue, ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetColorLoopStoredEnhancedHue(chip::EndpointId endpoint, uint16_t * colorLoopStoredEnhancedHue) +{ + return emberAfReadServerAttribute(endpoint, ColorControl::Id, Ids::ColorLoopStoredEnhancedHue, + (uint8_t *) colorLoopStoredEnhancedHue, sizeof(*colorLoopStoredEnhancedHue)); +} +EmberAfStatus SetColorLoopStoredEnhancedHue(chip::EndpointId endpoint, uint16_t colorLoopStoredEnhancedHue) +{ + return emberAfWriteServerAttribute(endpoint, ColorControl::Id, Ids::ColorLoopStoredEnhancedHue, + (uint8_t *) &colorLoopStoredEnhancedHue, ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetColorCapabilities(chip::EndpointId endpoint, uint16_t * colorCapabilities) +{ + return emberAfReadServerAttribute(endpoint, ColorControl::Id, Ids::ColorCapabilities, (uint8_t *) colorCapabilities, + sizeof(*colorCapabilities)); +} +EmberAfStatus SetColorCapabilities(chip::EndpointId endpoint, uint16_t colorCapabilities) +{ + return emberAfWriteServerAttribute(endpoint, ColorControl::Id, Ids::ColorCapabilities, (uint8_t *) &colorCapabilities, + ZCL_BITMAP16_ATTRIBUTE_TYPE); +} +EmberAfStatus GetColorTempPhysicalMin(chip::EndpointId endpoint, uint16_t * colorTempPhysicalMin) +{ + return emberAfReadServerAttribute(endpoint, ColorControl::Id, Ids::ColorTempPhysicalMin, (uint8_t *) colorTempPhysicalMin, + sizeof(*colorTempPhysicalMin)); +} +EmberAfStatus SetColorTempPhysicalMin(chip::EndpointId endpoint, uint16_t colorTempPhysicalMin) +{ + return emberAfWriteServerAttribute(endpoint, ColorControl::Id, Ids::ColorTempPhysicalMin, (uint8_t *) &colorTempPhysicalMin, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetColorTempPhysicalMax(chip::EndpointId endpoint, uint16_t * colorTempPhysicalMax) +{ + return emberAfReadServerAttribute(endpoint, ColorControl::Id, Ids::ColorTempPhysicalMax, (uint8_t *) colorTempPhysicalMax, + sizeof(*colorTempPhysicalMax)); +} +EmberAfStatus SetColorTempPhysicalMax(chip::EndpointId endpoint, uint16_t colorTempPhysicalMax) +{ + return emberAfWriteServerAttribute(endpoint, ColorControl::Id, Ids::ColorTempPhysicalMax, (uint8_t *) &colorTempPhysicalMax, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetCoupleColorTempToLevelMinMireds(chip::EndpointId endpoint, uint16_t * coupleColorTempToLevelMinMireds) +{ + return emberAfReadServerAttribute(endpoint, ColorControl::Id, Ids::CoupleColorTempToLevelMinMireds, + (uint8_t *) coupleColorTempToLevelMinMireds, sizeof(*coupleColorTempToLevelMinMireds)); +} +EmberAfStatus SetCoupleColorTempToLevelMinMireds(chip::EndpointId endpoint, uint16_t coupleColorTempToLevelMinMireds) +{ + return emberAfWriteServerAttribute(endpoint, ColorControl::Id, Ids::CoupleColorTempToLevelMinMireds, + (uint8_t *) &coupleColorTempToLevelMinMireds, ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetStartUpColorTemperatureMireds(chip::EndpointId endpoint, uint16_t * startUpColorTemperatureMireds) +{ + return emberAfReadServerAttribute(endpoint, ColorControl::Id, Ids::StartUpColorTemperatureMireds, + (uint8_t *) startUpColorTemperatureMireds, sizeof(*startUpColorTemperatureMireds)); +} +EmberAfStatus SetStartUpColorTemperatureMireds(chip::EndpointId endpoint, uint16_t startUpColorTemperatureMireds) +{ + return emberAfWriteServerAttribute(endpoint, ColorControl::Id, Ids::StartUpColorTemperatureMireds, + (uint8_t *) &startUpColorTemperatureMireds, ZCL_INT16U_ATTRIBUTE_TYPE); +} +} // namespace Attributes +} // namespace ColorControl + +namespace BallastConfiguration { +namespace Attributes { +EmberAfStatus GetPhysicalMinLevel(chip::EndpointId endpoint, uint8_t * physicalMinLevel) +{ + return emberAfReadServerAttribute(endpoint, BallastConfiguration::Id, Ids::PhysicalMinLevel, (uint8_t *) physicalMinLevel, + sizeof(*physicalMinLevel)); +} +EmberAfStatus SetPhysicalMinLevel(chip::EndpointId endpoint, uint8_t physicalMinLevel) +{ + return emberAfWriteServerAttribute(endpoint, BallastConfiguration::Id, Ids::PhysicalMinLevel, (uint8_t *) &physicalMinLevel, + ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetPhysicalMaxLevel(chip::EndpointId endpoint, uint8_t * physicalMaxLevel) +{ + return emberAfReadServerAttribute(endpoint, BallastConfiguration::Id, Ids::PhysicalMaxLevel, (uint8_t *) physicalMaxLevel, + sizeof(*physicalMaxLevel)); +} +EmberAfStatus SetPhysicalMaxLevel(chip::EndpointId endpoint, uint8_t physicalMaxLevel) +{ + return emberAfWriteServerAttribute(endpoint, BallastConfiguration::Id, Ids::PhysicalMaxLevel, (uint8_t *) &physicalMaxLevel, + ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetBallastStatus(chip::EndpointId endpoint, uint8_t * ballastStatus) +{ + return emberAfReadServerAttribute(endpoint, BallastConfiguration::Id, Ids::BallastStatus, (uint8_t *) ballastStatus, + sizeof(*ballastStatus)); +} +EmberAfStatus SetBallastStatus(chip::EndpointId endpoint, uint8_t ballastStatus) +{ + return emberAfWriteServerAttribute(endpoint, BallastConfiguration::Id, Ids::BallastStatus, (uint8_t *) &ballastStatus, + ZCL_BITMAP8_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMinLevel(chip::EndpointId endpoint, uint8_t * minLevel) +{ + return emberAfReadServerAttribute(endpoint, BallastConfiguration::Id, Ids::MinLevel, (uint8_t *) minLevel, sizeof(*minLevel)); +} +EmberAfStatus SetMinLevel(chip::EndpointId endpoint, uint8_t minLevel) +{ + return emberAfWriteServerAttribute(endpoint, BallastConfiguration::Id, Ids::MinLevel, (uint8_t *) &minLevel, + ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMaxLevel(chip::EndpointId endpoint, uint8_t * maxLevel) +{ + return emberAfReadServerAttribute(endpoint, BallastConfiguration::Id, Ids::MaxLevel, (uint8_t *) maxLevel, sizeof(*maxLevel)); +} +EmberAfStatus SetMaxLevel(chip::EndpointId endpoint, uint8_t maxLevel) +{ + return emberAfWriteServerAttribute(endpoint, BallastConfiguration::Id, Ids::MaxLevel, (uint8_t *) &maxLevel, + ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetPowerOnLevel(chip::EndpointId endpoint, uint8_t * powerOnLevel) +{ + return emberAfReadServerAttribute(endpoint, BallastConfiguration::Id, Ids::PowerOnLevel, (uint8_t *) powerOnLevel, + sizeof(*powerOnLevel)); +} +EmberAfStatus SetPowerOnLevel(chip::EndpointId endpoint, uint8_t powerOnLevel) +{ + return emberAfWriteServerAttribute(endpoint, BallastConfiguration::Id, Ids::PowerOnLevel, (uint8_t *) &powerOnLevel, + ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetPowerOnFadeTime(chip::EndpointId endpoint, uint16_t * powerOnFadeTime) +{ + return emberAfReadServerAttribute(endpoint, BallastConfiguration::Id, Ids::PowerOnFadeTime, (uint8_t *) powerOnFadeTime, + sizeof(*powerOnFadeTime)); +} +EmberAfStatus SetPowerOnFadeTime(chip::EndpointId endpoint, uint16_t powerOnFadeTime) +{ + return emberAfWriteServerAttribute(endpoint, BallastConfiguration::Id, Ids::PowerOnFadeTime, (uint8_t *) &powerOnFadeTime, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetIntrinsicBallastFactor(chip::EndpointId endpoint, uint8_t * intrinsicBallastFactor) +{ + return emberAfReadServerAttribute(endpoint, BallastConfiguration::Id, Ids::IntrinsicBallastFactor, + (uint8_t *) intrinsicBallastFactor, sizeof(*intrinsicBallastFactor)); +} +EmberAfStatus SetIntrinsicBallastFactor(chip::EndpointId endpoint, uint8_t intrinsicBallastFactor) +{ + return emberAfWriteServerAttribute(endpoint, BallastConfiguration::Id, Ids::IntrinsicBallastFactor, + (uint8_t *) &intrinsicBallastFactor, ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetBallastFactorAdjustment(chip::EndpointId endpoint, uint8_t * ballastFactorAdjustment) +{ + return emberAfReadServerAttribute(endpoint, BallastConfiguration::Id, Ids::BallastFactorAdjustment, + (uint8_t *) ballastFactorAdjustment, sizeof(*ballastFactorAdjustment)); +} +EmberAfStatus SetBallastFactorAdjustment(chip::EndpointId endpoint, uint8_t ballastFactorAdjustment) +{ + return emberAfWriteServerAttribute(endpoint, BallastConfiguration::Id, Ids::BallastFactorAdjustment, + (uint8_t *) &ballastFactorAdjustment, ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetLampQuality(chip::EndpointId endpoint, uint8_t * lampQuality) +{ + return emberAfReadServerAttribute(endpoint, BallastConfiguration::Id, Ids::LampQuality, (uint8_t *) lampQuality, + sizeof(*lampQuality)); +} +EmberAfStatus SetLampQuality(chip::EndpointId endpoint, uint8_t lampQuality) +{ + return emberAfWriteServerAttribute(endpoint, BallastConfiguration::Id, Ids::LampQuality, (uint8_t *) &lampQuality, + ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetLampAlarmMode(chip::EndpointId endpoint, uint8_t * lampAlarmMode) +{ + return emberAfReadServerAttribute(endpoint, BallastConfiguration::Id, Ids::LampAlarmMode, (uint8_t *) lampAlarmMode, + sizeof(*lampAlarmMode)); +} +EmberAfStatus SetLampAlarmMode(chip::EndpointId endpoint, uint8_t lampAlarmMode) +{ + return emberAfWriteServerAttribute(endpoint, BallastConfiguration::Id, Ids::LampAlarmMode, (uint8_t *) &lampAlarmMode, + ZCL_BITMAP8_ATTRIBUTE_TYPE); +} +} // namespace Attributes +} // namespace BallastConfiguration + +namespace IlluminanceMeasurement { +namespace Attributes { +EmberAfStatus GetMeasuredValue(chip::EndpointId endpoint, uint16_t * measuredValue) +{ + return emberAfReadServerAttribute(endpoint, IlluminanceMeasurement::Id, Ids::MeasuredValue, (uint8_t *) measuredValue, + sizeof(*measuredValue)); +} +EmberAfStatus SetMeasuredValue(chip::EndpointId endpoint, uint16_t measuredValue) +{ + return emberAfWriteServerAttribute(endpoint, IlluminanceMeasurement::Id, Ids::MeasuredValue, (uint8_t *) &measuredValue, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMinMeasuredValue(chip::EndpointId endpoint, uint16_t * minMeasuredValue) +{ + return emberAfReadServerAttribute(endpoint, IlluminanceMeasurement::Id, Ids::MinMeasuredValue, (uint8_t *) minMeasuredValue, + sizeof(*minMeasuredValue)); +} +EmberAfStatus SetMinMeasuredValue(chip::EndpointId endpoint, uint16_t minMeasuredValue) +{ + return emberAfWriteServerAttribute(endpoint, IlluminanceMeasurement::Id, Ids::MinMeasuredValue, (uint8_t *) &minMeasuredValue, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMaxMeasuredValue(chip::EndpointId endpoint, uint16_t * maxMeasuredValue) +{ + return emberAfReadServerAttribute(endpoint, IlluminanceMeasurement::Id, Ids::MaxMeasuredValue, (uint8_t *) maxMeasuredValue, + sizeof(*maxMeasuredValue)); +} +EmberAfStatus SetMaxMeasuredValue(chip::EndpointId endpoint, uint16_t maxMeasuredValue) +{ + return emberAfWriteServerAttribute(endpoint, IlluminanceMeasurement::Id, Ids::MaxMeasuredValue, (uint8_t *) &maxMeasuredValue, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetTolerance(chip::EndpointId endpoint, uint16_t * tolerance) +{ + return emberAfReadServerAttribute(endpoint, IlluminanceMeasurement::Id, Ids::Tolerance, (uint8_t *) tolerance, + sizeof(*tolerance)); +} +EmberAfStatus SetTolerance(chip::EndpointId endpoint, uint16_t tolerance) +{ + return emberAfWriteServerAttribute(endpoint, IlluminanceMeasurement::Id, Ids::Tolerance, (uint8_t *) &tolerance, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetLightSensorType(chip::EndpointId endpoint, uint8_t * lightSensorType) +{ + return emberAfReadServerAttribute(endpoint, IlluminanceMeasurement::Id, Ids::LightSensorType, (uint8_t *) lightSensorType, + sizeof(*lightSensorType)); +} +EmberAfStatus SetLightSensorType(chip::EndpointId endpoint, uint8_t lightSensorType) +{ + return emberAfWriteServerAttribute(endpoint, IlluminanceMeasurement::Id, Ids::LightSensorType, (uint8_t *) &lightSensorType, + ZCL_ENUM8_ATTRIBUTE_TYPE); +} +} // namespace Attributes +} // namespace IlluminanceMeasurement + +namespace IlluminanceLevelSensing { +namespace Attributes { +EmberAfStatus GetLevelStatus(chip::EndpointId endpoint, uint8_t * levelStatus) +{ + return emberAfReadServerAttribute(endpoint, IlluminanceLevelSensing::Id, Ids::LevelStatus, (uint8_t *) levelStatus, + sizeof(*levelStatus)); +} +EmberAfStatus SetLevelStatus(chip::EndpointId endpoint, uint8_t levelStatus) +{ + return emberAfWriteServerAttribute(endpoint, IlluminanceLevelSensing::Id, Ids::LevelStatus, (uint8_t *) &levelStatus, + ZCL_ENUM8_ATTRIBUTE_TYPE); +} +EmberAfStatus GetLightSensorType(chip::EndpointId endpoint, uint8_t * lightSensorType) +{ + return emberAfReadServerAttribute(endpoint, IlluminanceLevelSensing::Id, Ids::LightSensorType, (uint8_t *) lightSensorType, + sizeof(*lightSensorType)); +} +EmberAfStatus SetLightSensorType(chip::EndpointId endpoint, uint8_t lightSensorType) +{ + return emberAfWriteServerAttribute(endpoint, IlluminanceLevelSensing::Id, Ids::LightSensorType, (uint8_t *) &lightSensorType, + ZCL_ENUM8_ATTRIBUTE_TYPE); +} +EmberAfStatus GetIlluminanceLevelTarget(chip::EndpointId endpoint, uint16_t * illuminanceLevelTarget) +{ + return emberAfReadServerAttribute(endpoint, IlluminanceLevelSensing::Id, Ids::IlluminanceLevelTarget, + (uint8_t *) illuminanceLevelTarget, sizeof(*illuminanceLevelTarget)); +} +EmberAfStatus SetIlluminanceLevelTarget(chip::EndpointId endpoint, uint16_t illuminanceLevelTarget) +{ + return emberAfWriteServerAttribute(endpoint, IlluminanceLevelSensing::Id, Ids::IlluminanceLevelTarget, + (uint8_t *) &illuminanceLevelTarget, ZCL_INT16U_ATTRIBUTE_TYPE); +} +} // namespace Attributes +} // namespace IlluminanceLevelSensing + +namespace TemperatureMeasurement { +namespace Attributes { +EmberAfStatus GetMeasuredValue(chip::EndpointId endpoint, int16_t * measuredValue) +{ + return emberAfReadServerAttribute(endpoint, TemperatureMeasurement::Id, Ids::MeasuredValue, (uint8_t *) measuredValue, + sizeof(*measuredValue)); +} +EmberAfStatus SetMeasuredValue(chip::EndpointId endpoint, int16_t measuredValue) +{ + return emberAfWriteServerAttribute(endpoint, TemperatureMeasurement::Id, Ids::MeasuredValue, (uint8_t *) &measuredValue, + ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMinMeasuredValue(chip::EndpointId endpoint, int16_t * minMeasuredValue) +{ + return emberAfReadServerAttribute(endpoint, TemperatureMeasurement::Id, Ids::MinMeasuredValue, (uint8_t *) minMeasuredValue, + sizeof(*minMeasuredValue)); +} +EmberAfStatus SetMinMeasuredValue(chip::EndpointId endpoint, int16_t minMeasuredValue) +{ + return emberAfWriteServerAttribute(endpoint, TemperatureMeasurement::Id, Ids::MinMeasuredValue, (uint8_t *) &minMeasuredValue, + ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMaxMeasuredValue(chip::EndpointId endpoint, int16_t * maxMeasuredValue) +{ + return emberAfReadServerAttribute(endpoint, TemperatureMeasurement::Id, Ids::MaxMeasuredValue, (uint8_t *) maxMeasuredValue, + sizeof(*maxMeasuredValue)); +} +EmberAfStatus SetMaxMeasuredValue(chip::EndpointId endpoint, int16_t maxMeasuredValue) +{ + return emberAfWriteServerAttribute(endpoint, TemperatureMeasurement::Id, Ids::MaxMeasuredValue, (uint8_t *) &maxMeasuredValue, + ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetTolerance(chip::EndpointId endpoint, uint16_t * tolerance) +{ + return emberAfReadServerAttribute(endpoint, TemperatureMeasurement::Id, Ids::Tolerance, (uint8_t *) tolerance, + sizeof(*tolerance)); +} +EmberAfStatus SetTolerance(chip::EndpointId endpoint, uint16_t tolerance) +{ + return emberAfWriteServerAttribute(endpoint, TemperatureMeasurement::Id, Ids::Tolerance, (uint8_t *) &tolerance, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +} // namespace Attributes +} // namespace TemperatureMeasurement + +namespace PressureMeasurement { +namespace Attributes { +EmberAfStatus GetMeasuredValue(chip::EndpointId endpoint, int16_t * measuredValue) +{ + return emberAfReadServerAttribute(endpoint, PressureMeasurement::Id, Ids::MeasuredValue, (uint8_t *) measuredValue, + sizeof(*measuredValue)); +} +EmberAfStatus SetMeasuredValue(chip::EndpointId endpoint, int16_t measuredValue) +{ + return emberAfWriteServerAttribute(endpoint, PressureMeasurement::Id, Ids::MeasuredValue, (uint8_t *) &measuredValue, + ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMinMeasuredValue(chip::EndpointId endpoint, int16_t * minMeasuredValue) +{ + return emberAfReadServerAttribute(endpoint, PressureMeasurement::Id, Ids::MinMeasuredValue, (uint8_t *) minMeasuredValue, + sizeof(*minMeasuredValue)); +} +EmberAfStatus SetMinMeasuredValue(chip::EndpointId endpoint, int16_t minMeasuredValue) +{ + return emberAfWriteServerAttribute(endpoint, PressureMeasurement::Id, Ids::MinMeasuredValue, (uint8_t *) &minMeasuredValue, + ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMaxMeasuredValue(chip::EndpointId endpoint, int16_t * maxMeasuredValue) +{ + return emberAfReadServerAttribute(endpoint, PressureMeasurement::Id, Ids::MaxMeasuredValue, (uint8_t *) maxMeasuredValue, + sizeof(*maxMeasuredValue)); +} +EmberAfStatus SetMaxMeasuredValue(chip::EndpointId endpoint, int16_t maxMeasuredValue) +{ + return emberAfWriteServerAttribute(endpoint, PressureMeasurement::Id, Ids::MaxMeasuredValue, (uint8_t *) &maxMeasuredValue, + ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetTolerance(chip::EndpointId endpoint, uint16_t * tolerance) +{ + return emberAfReadServerAttribute(endpoint, PressureMeasurement::Id, Ids::Tolerance, (uint8_t *) tolerance, sizeof(*tolerance)); +} +EmberAfStatus SetTolerance(chip::EndpointId endpoint, uint16_t tolerance) +{ + return emberAfWriteServerAttribute(endpoint, PressureMeasurement::Id, Ids::Tolerance, (uint8_t *) &tolerance, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetScaledValue(chip::EndpointId endpoint, int16_t * scaledValue) +{ + return emberAfReadServerAttribute(endpoint, PressureMeasurement::Id, Ids::ScaledValue, (uint8_t *) scaledValue, + sizeof(*scaledValue)); +} +EmberAfStatus SetScaledValue(chip::EndpointId endpoint, int16_t scaledValue) +{ + return emberAfWriteServerAttribute(endpoint, PressureMeasurement::Id, Ids::ScaledValue, (uint8_t *) &scaledValue, + ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMinScaledValue(chip::EndpointId endpoint, int16_t * minScaledValue) +{ + return emberAfReadServerAttribute(endpoint, PressureMeasurement::Id, Ids::MinScaledValue, (uint8_t *) minScaledValue, + sizeof(*minScaledValue)); +} +EmberAfStatus SetMinScaledValue(chip::EndpointId endpoint, int16_t minScaledValue) +{ + return emberAfWriteServerAttribute(endpoint, PressureMeasurement::Id, Ids::MinScaledValue, (uint8_t *) &minScaledValue, + ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMaxScaledValue(chip::EndpointId endpoint, int16_t * maxScaledValue) +{ + return emberAfReadServerAttribute(endpoint, PressureMeasurement::Id, Ids::MaxScaledValue, (uint8_t *) maxScaledValue, + sizeof(*maxScaledValue)); +} +EmberAfStatus SetMaxScaledValue(chip::EndpointId endpoint, int16_t maxScaledValue) +{ + return emberAfWriteServerAttribute(endpoint, PressureMeasurement::Id, Ids::MaxScaledValue, (uint8_t *) &maxScaledValue, + ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetScaledTolerance(chip::EndpointId endpoint, int16_t * scaledTolerance) +{ + return emberAfReadServerAttribute(endpoint, PressureMeasurement::Id, Ids::ScaledTolerance, (uint8_t *) scaledTolerance, + sizeof(*scaledTolerance)); +} +EmberAfStatus SetScaledTolerance(chip::EndpointId endpoint, int16_t scaledTolerance) +{ + return emberAfWriteServerAttribute(endpoint, PressureMeasurement::Id, Ids::ScaledTolerance, (uint8_t *) &scaledTolerance, + ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetScale(chip::EndpointId endpoint, int8_t * scale) +{ + return emberAfReadServerAttribute(endpoint, PressureMeasurement::Id, Ids::Scale, (uint8_t *) scale, sizeof(*scale)); +} +EmberAfStatus SetScale(chip::EndpointId endpoint, int8_t scale) +{ + return emberAfWriteServerAttribute(endpoint, PressureMeasurement::Id, Ids::Scale, (uint8_t *) &scale, ZCL_INT8S_ATTRIBUTE_TYPE); +} +} // namespace Attributes +} // namespace PressureMeasurement + +namespace FlowMeasurement { +namespace Attributes { +EmberAfStatus GetMeasuredValue(chip::EndpointId endpoint, int16_t * measuredValue) +{ + return emberAfReadServerAttribute(endpoint, FlowMeasurement::Id, Ids::MeasuredValue, (uint8_t *) measuredValue, + sizeof(*measuredValue)); +} +EmberAfStatus SetMeasuredValue(chip::EndpointId endpoint, int16_t measuredValue) +{ + return emberAfWriteServerAttribute(endpoint, FlowMeasurement::Id, Ids::MeasuredValue, (uint8_t *) &measuredValue, + ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMinMeasuredValue(chip::EndpointId endpoint, int16_t * minMeasuredValue) +{ + return emberAfReadServerAttribute(endpoint, FlowMeasurement::Id, Ids::MinMeasuredValue, (uint8_t *) minMeasuredValue, + sizeof(*minMeasuredValue)); +} +EmberAfStatus SetMinMeasuredValue(chip::EndpointId endpoint, int16_t minMeasuredValue) +{ + return emberAfWriteServerAttribute(endpoint, FlowMeasurement::Id, Ids::MinMeasuredValue, (uint8_t *) &minMeasuredValue, + ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMaxMeasuredValue(chip::EndpointId endpoint, int16_t * maxMeasuredValue) +{ + return emberAfReadServerAttribute(endpoint, FlowMeasurement::Id, Ids::MaxMeasuredValue, (uint8_t *) maxMeasuredValue, + sizeof(*maxMeasuredValue)); +} +EmberAfStatus SetMaxMeasuredValue(chip::EndpointId endpoint, int16_t maxMeasuredValue) +{ + return emberAfWriteServerAttribute(endpoint, FlowMeasurement::Id, Ids::MaxMeasuredValue, (uint8_t *) &maxMeasuredValue, + ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetTolerance(chip::EndpointId endpoint, uint16_t * tolerance) +{ + return emberAfReadServerAttribute(endpoint, FlowMeasurement::Id, Ids::Tolerance, (uint8_t *) tolerance, sizeof(*tolerance)); +} +EmberAfStatus SetTolerance(chip::EndpointId endpoint, uint16_t tolerance) +{ + return emberAfWriteServerAttribute(endpoint, FlowMeasurement::Id, Ids::Tolerance, (uint8_t *) &tolerance, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +} // namespace Attributes +} // namespace FlowMeasurement + +namespace RelativeHumidityMeasurement { +namespace Attributes { +EmberAfStatus GetMeasuredValue(chip::EndpointId endpoint, uint16_t * measuredValue) +{ + return emberAfReadServerAttribute(endpoint, RelativeHumidityMeasurement::Id, Ids::MeasuredValue, (uint8_t *) measuredValue, + sizeof(*measuredValue)); +} +EmberAfStatus SetMeasuredValue(chip::EndpointId endpoint, uint16_t measuredValue) +{ + return emberAfWriteServerAttribute(endpoint, RelativeHumidityMeasurement::Id, Ids::MeasuredValue, (uint8_t *) &measuredValue, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMinMeasuredValue(chip::EndpointId endpoint, uint16_t * minMeasuredValue) +{ + return emberAfReadServerAttribute(endpoint, RelativeHumidityMeasurement::Id, Ids::MinMeasuredValue, + (uint8_t *) minMeasuredValue, sizeof(*minMeasuredValue)); +} +EmberAfStatus SetMinMeasuredValue(chip::EndpointId endpoint, uint16_t minMeasuredValue) +{ + return emberAfWriteServerAttribute(endpoint, RelativeHumidityMeasurement::Id, Ids::MinMeasuredValue, + (uint8_t *) &minMeasuredValue, ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMaxMeasuredValue(chip::EndpointId endpoint, uint16_t * maxMeasuredValue) +{ + return emberAfReadServerAttribute(endpoint, RelativeHumidityMeasurement::Id, Ids::MaxMeasuredValue, + (uint8_t *) maxMeasuredValue, sizeof(*maxMeasuredValue)); +} +EmberAfStatus SetMaxMeasuredValue(chip::EndpointId endpoint, uint16_t maxMeasuredValue) +{ + return emberAfWriteServerAttribute(endpoint, RelativeHumidityMeasurement::Id, Ids::MaxMeasuredValue, + (uint8_t *) &maxMeasuredValue, ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetTolerance(chip::EndpointId endpoint, uint16_t * tolerance) +{ + return emberAfReadServerAttribute(endpoint, RelativeHumidityMeasurement::Id, Ids::Tolerance, (uint8_t *) tolerance, + sizeof(*tolerance)); +} +EmberAfStatus SetTolerance(chip::EndpointId endpoint, uint16_t tolerance) +{ + return emberAfWriteServerAttribute(endpoint, RelativeHumidityMeasurement::Id, Ids::Tolerance, (uint8_t *) &tolerance, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +} // namespace Attributes +} // namespace RelativeHumidityMeasurement + +namespace OccupancySensing { +namespace Attributes { +EmberAfStatus GetOccupancy(chip::EndpointId endpoint, uint8_t * occupancy) +{ + return emberAfReadServerAttribute(endpoint, OccupancySensing::Id, Ids::Occupancy, (uint8_t *) occupancy, sizeof(*occupancy)); +} +EmberAfStatus SetOccupancy(chip::EndpointId endpoint, uint8_t occupancy) +{ + return emberAfWriteServerAttribute(endpoint, OccupancySensing::Id, Ids::Occupancy, (uint8_t *) &occupancy, + ZCL_BITMAP8_ATTRIBUTE_TYPE); +} +EmberAfStatus GetOccupancySensorType(chip::EndpointId endpoint, uint8_t * occupancySensorType) +{ + return emberAfReadServerAttribute(endpoint, OccupancySensing::Id, Ids::OccupancySensorType, (uint8_t *) occupancySensorType, + sizeof(*occupancySensorType)); +} +EmberAfStatus SetOccupancySensorType(chip::EndpointId endpoint, uint8_t occupancySensorType) +{ + return emberAfWriteServerAttribute(endpoint, OccupancySensing::Id, Ids::OccupancySensorType, (uint8_t *) &occupancySensorType, + ZCL_ENUM8_ATTRIBUTE_TYPE); +} +EmberAfStatus GetOccupancySensorTypeBitmap(chip::EndpointId endpoint, uint8_t * occupancySensorTypeBitmap) +{ + return emberAfReadServerAttribute(endpoint, OccupancySensing::Id, Ids::OccupancySensorTypeBitmap, + (uint8_t *) occupancySensorTypeBitmap, sizeof(*occupancySensorTypeBitmap)); +} +EmberAfStatus SetOccupancySensorTypeBitmap(chip::EndpointId endpoint, uint8_t occupancySensorTypeBitmap) +{ + return emberAfWriteServerAttribute(endpoint, OccupancySensing::Id, Ids::OccupancySensorTypeBitmap, + (uint8_t *) &occupancySensorTypeBitmap, ZCL_BITMAP8_ATTRIBUTE_TYPE); +} +EmberAfStatus GetPirOccupiedToUnoccupiedDelay(chip::EndpointId endpoint, uint16_t * pirOccupiedToUnoccupiedDelay) +{ + return emberAfReadServerAttribute(endpoint, OccupancySensing::Id, Ids::PirOccupiedToUnoccupiedDelay, + (uint8_t *) pirOccupiedToUnoccupiedDelay, sizeof(*pirOccupiedToUnoccupiedDelay)); +} +EmberAfStatus SetPirOccupiedToUnoccupiedDelay(chip::EndpointId endpoint, uint16_t pirOccupiedToUnoccupiedDelay) +{ + return emberAfWriteServerAttribute(endpoint, OccupancySensing::Id, Ids::PirOccupiedToUnoccupiedDelay, + (uint8_t *) &pirOccupiedToUnoccupiedDelay, ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetPirUnoccupiedToOccupiedDelay(chip::EndpointId endpoint, uint16_t * pirUnoccupiedToOccupiedDelay) +{ + return emberAfReadServerAttribute(endpoint, OccupancySensing::Id, Ids::PirUnoccupiedToOccupiedDelay, + (uint8_t *) pirUnoccupiedToOccupiedDelay, sizeof(*pirUnoccupiedToOccupiedDelay)); +} +EmberAfStatus SetPirUnoccupiedToOccupiedDelay(chip::EndpointId endpoint, uint16_t pirUnoccupiedToOccupiedDelay) +{ + return emberAfWriteServerAttribute(endpoint, OccupancySensing::Id, Ids::PirUnoccupiedToOccupiedDelay, + (uint8_t *) &pirUnoccupiedToOccupiedDelay, ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetPirUnoccupiedToOccupiedThreshold(chip::EndpointId endpoint, uint8_t * pirUnoccupiedToOccupiedThreshold) +{ + return emberAfReadServerAttribute(endpoint, OccupancySensing::Id, Ids::PirUnoccupiedToOccupiedThreshold, + (uint8_t *) pirUnoccupiedToOccupiedThreshold, sizeof(*pirUnoccupiedToOccupiedThreshold)); +} +EmberAfStatus SetPirUnoccupiedToOccupiedThreshold(chip::EndpointId endpoint, uint8_t pirUnoccupiedToOccupiedThreshold) +{ + return emberAfWriteServerAttribute(endpoint, OccupancySensing::Id, Ids::PirUnoccupiedToOccupiedThreshold, + (uint8_t *) &pirUnoccupiedToOccupiedThreshold, ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetUltrasonicOccupiedToUnoccupiedDelay(chip::EndpointId endpoint, uint16_t * ultrasonicOccupiedToUnoccupiedDelay) +{ + return emberAfReadServerAttribute(endpoint, OccupancySensing::Id, Ids::UltrasonicOccupiedToUnoccupiedDelay, + (uint8_t *) ultrasonicOccupiedToUnoccupiedDelay, + sizeof(*ultrasonicOccupiedToUnoccupiedDelay)); +} +EmberAfStatus SetUltrasonicOccupiedToUnoccupiedDelay(chip::EndpointId endpoint, uint16_t ultrasonicOccupiedToUnoccupiedDelay) +{ + return emberAfWriteServerAttribute(endpoint, OccupancySensing::Id, Ids::UltrasonicOccupiedToUnoccupiedDelay, + (uint8_t *) &ultrasonicOccupiedToUnoccupiedDelay, ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetUltrasonicUnoccupiedToOccupiedDelay(chip::EndpointId endpoint, uint16_t * ultrasonicUnoccupiedToOccupiedDelay) +{ + return emberAfReadServerAttribute(endpoint, OccupancySensing::Id, Ids::UltrasonicUnoccupiedToOccupiedDelay, + (uint8_t *) ultrasonicUnoccupiedToOccupiedDelay, + sizeof(*ultrasonicUnoccupiedToOccupiedDelay)); +} +EmberAfStatus SetUltrasonicUnoccupiedToOccupiedDelay(chip::EndpointId endpoint, uint16_t ultrasonicUnoccupiedToOccupiedDelay) +{ + return emberAfWriteServerAttribute(endpoint, OccupancySensing::Id, Ids::UltrasonicUnoccupiedToOccupiedDelay, + (uint8_t *) &ultrasonicUnoccupiedToOccupiedDelay, ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetUltrasonicUnoccupiedToOccupiedThreshold(chip::EndpointId endpoint, + uint8_t * ultrasonicUnoccupiedToOccupiedThreshold) +{ + return emberAfReadServerAttribute(endpoint, OccupancySensing::Id, Ids::UltrasonicUnoccupiedToOccupiedThreshold, + (uint8_t *) ultrasonicUnoccupiedToOccupiedThreshold, + sizeof(*ultrasonicUnoccupiedToOccupiedThreshold)); +} +EmberAfStatus SetUltrasonicUnoccupiedToOccupiedThreshold(chip::EndpointId endpoint, uint8_t ultrasonicUnoccupiedToOccupiedThreshold) +{ + return emberAfWriteServerAttribute(endpoint, OccupancySensing::Id, Ids::UltrasonicUnoccupiedToOccupiedThreshold, + (uint8_t *) &ultrasonicUnoccupiedToOccupiedThreshold, ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetPhysicalContactOccupiedToUnoccupiedDelay(chip::EndpointId endpoint, + uint16_t * physicalContactOccupiedToUnoccupiedDelay) +{ + return emberAfReadServerAttribute(endpoint, OccupancySensing::Id, Ids::PhysicalContactOccupiedToUnoccupiedDelay, + (uint8_t *) physicalContactOccupiedToUnoccupiedDelay, + sizeof(*physicalContactOccupiedToUnoccupiedDelay)); +} +EmberAfStatus SetPhysicalContactOccupiedToUnoccupiedDelay(chip::EndpointId endpoint, + uint16_t physicalContactOccupiedToUnoccupiedDelay) +{ + return emberAfWriteServerAttribute(endpoint, OccupancySensing::Id, Ids::PhysicalContactOccupiedToUnoccupiedDelay, + (uint8_t *) &physicalContactOccupiedToUnoccupiedDelay, ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetPhysicalContactUnoccupiedToOccupiedDelay(chip::EndpointId endpoint, + uint16_t * physicalContactUnoccupiedToOccupiedDelay) +{ + return emberAfReadServerAttribute(endpoint, OccupancySensing::Id, Ids::PhysicalContactUnoccupiedToOccupiedDelay, + (uint8_t *) physicalContactUnoccupiedToOccupiedDelay, + sizeof(*physicalContactUnoccupiedToOccupiedDelay)); +} +EmberAfStatus SetPhysicalContactUnoccupiedToOccupiedDelay(chip::EndpointId endpoint, + uint16_t physicalContactUnoccupiedToOccupiedDelay) +{ + return emberAfWriteServerAttribute(endpoint, OccupancySensing::Id, Ids::PhysicalContactUnoccupiedToOccupiedDelay, + (uint8_t *) &physicalContactUnoccupiedToOccupiedDelay, ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetPhysicalContactUnoccupiedToOccupiedThreshold(chip::EndpointId endpoint, + uint8_t * physicalContactUnoccupiedToOccupiedThreshold) +{ + return emberAfReadServerAttribute(endpoint, OccupancySensing::Id, Ids::PhysicalContactUnoccupiedToOccupiedThreshold, + (uint8_t *) physicalContactUnoccupiedToOccupiedThreshold, + sizeof(*physicalContactUnoccupiedToOccupiedThreshold)); +} +EmberAfStatus SetPhysicalContactUnoccupiedToOccupiedThreshold(chip::EndpointId endpoint, + uint8_t physicalContactUnoccupiedToOccupiedThreshold) +{ + return emberAfWriteServerAttribute(endpoint, OccupancySensing::Id, Ids::PhysicalContactUnoccupiedToOccupiedThreshold, + (uint8_t *) &physicalContactUnoccupiedToOccupiedThreshold, ZCL_INT8U_ATTRIBUTE_TYPE); +} +} // namespace Attributes +} // namespace OccupancySensing + +namespace CarbonMonoxideConcentrationMeasurement { +namespace Attributes { +EmberAfStatus GetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** measuredValue) +{ + return emberAfReadServerAttribute(endpoint, CarbonMonoxideConcentrationMeasurement::Id, Ids::MeasuredValue, + (uint8_t *) measuredValue, sizeof(*measuredValue)); +} +EmberAfStatus SetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * measuredValue) +{ + return emberAfWriteServerAttribute(endpoint, CarbonMonoxideConcentrationMeasurement::Id, Ids::MeasuredValue, + (uint8_t *) &measuredValue, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** minMeasuredValue) +{ + return emberAfReadServerAttribute(endpoint, CarbonMonoxideConcentrationMeasurement::Id, Ids::MinMeasuredValue, + (uint8_t *) minMeasuredValue, sizeof(*minMeasuredValue)); +} +EmberAfStatus SetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * minMeasuredValue) +{ + return emberAfWriteServerAttribute(endpoint, CarbonMonoxideConcentrationMeasurement::Id, Ids::MinMeasuredValue, + (uint8_t *) &minMeasuredValue, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** maxMeasuredValue) +{ + return emberAfReadServerAttribute(endpoint, CarbonMonoxideConcentrationMeasurement::Id, Ids::MaxMeasuredValue, + (uint8_t *) maxMeasuredValue, sizeof(*maxMeasuredValue)); +} +EmberAfStatus SetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * maxMeasuredValue) +{ + return emberAfWriteServerAttribute(endpoint, CarbonMonoxideConcentrationMeasurement::Id, Ids::MaxMeasuredValue, + (uint8_t *) &maxMeasuredValue, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** tolerance) +{ + return emberAfReadServerAttribute(endpoint, CarbonMonoxideConcentrationMeasurement::Id, Ids::Tolerance, (uint8_t *) tolerance, + sizeof(*tolerance)); +} +EmberAfStatus SetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * tolerance) +{ + return emberAfWriteServerAttribute(endpoint, CarbonMonoxideConcentrationMeasurement::Id, Ids::Tolerance, (uint8_t *) &tolerance, + ZCL_SINGLE_ATTRIBUTE_TYPE); +} +} // namespace Attributes +} // namespace CarbonMonoxideConcentrationMeasurement + +namespace CarbonDioxideConcentrationMeasurement { +namespace Attributes { +EmberAfStatus GetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** measuredValue) +{ + return emberAfReadServerAttribute(endpoint, CarbonDioxideConcentrationMeasurement::Id, Ids::MeasuredValue, + (uint8_t *) measuredValue, sizeof(*measuredValue)); +} +EmberAfStatus SetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * measuredValue) +{ + return emberAfWriteServerAttribute(endpoint, CarbonDioxideConcentrationMeasurement::Id, Ids::MeasuredValue, + (uint8_t *) &measuredValue, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** minMeasuredValue) +{ + return emberAfReadServerAttribute(endpoint, CarbonDioxideConcentrationMeasurement::Id, Ids::MinMeasuredValue, + (uint8_t *) minMeasuredValue, sizeof(*minMeasuredValue)); +} +EmberAfStatus SetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * minMeasuredValue) +{ + return emberAfWriteServerAttribute(endpoint, CarbonDioxideConcentrationMeasurement::Id, Ids::MinMeasuredValue, + (uint8_t *) &minMeasuredValue, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** maxMeasuredValue) +{ + return emberAfReadServerAttribute(endpoint, CarbonDioxideConcentrationMeasurement::Id, Ids::MaxMeasuredValue, + (uint8_t *) maxMeasuredValue, sizeof(*maxMeasuredValue)); +} +EmberAfStatus SetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * maxMeasuredValue) +{ + return emberAfWriteServerAttribute(endpoint, CarbonDioxideConcentrationMeasurement::Id, Ids::MaxMeasuredValue, + (uint8_t *) &maxMeasuredValue, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** tolerance) +{ + return emberAfReadServerAttribute(endpoint, CarbonDioxideConcentrationMeasurement::Id, Ids::Tolerance, (uint8_t *) tolerance, + sizeof(*tolerance)); +} +EmberAfStatus SetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * tolerance) +{ + return emberAfWriteServerAttribute(endpoint, CarbonDioxideConcentrationMeasurement::Id, Ids::Tolerance, (uint8_t *) &tolerance, + ZCL_SINGLE_ATTRIBUTE_TYPE); +} +} // namespace Attributes +} // namespace CarbonDioxideConcentrationMeasurement + +namespace EthyleneConcentrationMeasurement { +namespace Attributes { +EmberAfStatus GetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** measuredValue) +{ + return emberAfReadServerAttribute(endpoint, EthyleneConcentrationMeasurement::Id, Ids::MeasuredValue, (uint8_t *) measuredValue, + sizeof(*measuredValue)); +} +EmberAfStatus SetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * measuredValue) +{ + return emberAfWriteServerAttribute(endpoint, EthyleneConcentrationMeasurement::Id, Ids::MeasuredValue, + (uint8_t *) &measuredValue, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** minMeasuredValue) +{ + return emberAfReadServerAttribute(endpoint, EthyleneConcentrationMeasurement::Id, Ids::MinMeasuredValue, + (uint8_t *) minMeasuredValue, sizeof(*minMeasuredValue)); +} +EmberAfStatus SetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * minMeasuredValue) +{ + return emberAfWriteServerAttribute(endpoint, EthyleneConcentrationMeasurement::Id, Ids::MinMeasuredValue, + (uint8_t *) &minMeasuredValue, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** maxMeasuredValue) +{ + return emberAfReadServerAttribute(endpoint, EthyleneConcentrationMeasurement::Id, Ids::MaxMeasuredValue, + (uint8_t *) maxMeasuredValue, sizeof(*maxMeasuredValue)); +} +EmberAfStatus SetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * maxMeasuredValue) +{ + return emberAfWriteServerAttribute(endpoint, EthyleneConcentrationMeasurement::Id, Ids::MaxMeasuredValue, + (uint8_t *) &maxMeasuredValue, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** tolerance) +{ + return emberAfReadServerAttribute(endpoint, EthyleneConcentrationMeasurement::Id, Ids::Tolerance, (uint8_t *) tolerance, + sizeof(*tolerance)); +} +EmberAfStatus SetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * tolerance) +{ + return emberAfWriteServerAttribute(endpoint, EthyleneConcentrationMeasurement::Id, Ids::Tolerance, (uint8_t *) &tolerance, + ZCL_SINGLE_ATTRIBUTE_TYPE); +} +} // namespace Attributes +} // namespace EthyleneConcentrationMeasurement + +namespace EthyleneOxideConcentrationMeasurement { +namespace Attributes { +EmberAfStatus GetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** measuredValue) +{ + return emberAfReadServerAttribute(endpoint, EthyleneOxideConcentrationMeasurement::Id, Ids::MeasuredValue, + (uint8_t *) measuredValue, sizeof(*measuredValue)); +} +EmberAfStatus SetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * measuredValue) +{ + return emberAfWriteServerAttribute(endpoint, EthyleneOxideConcentrationMeasurement::Id, Ids::MeasuredValue, + (uint8_t *) &measuredValue, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** minMeasuredValue) +{ + return emberAfReadServerAttribute(endpoint, EthyleneOxideConcentrationMeasurement::Id, Ids::MinMeasuredValue, + (uint8_t *) minMeasuredValue, sizeof(*minMeasuredValue)); +} +EmberAfStatus SetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * minMeasuredValue) +{ + return emberAfWriteServerAttribute(endpoint, EthyleneOxideConcentrationMeasurement::Id, Ids::MinMeasuredValue, + (uint8_t *) &minMeasuredValue, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** maxMeasuredValue) +{ + return emberAfReadServerAttribute(endpoint, EthyleneOxideConcentrationMeasurement::Id, Ids::MaxMeasuredValue, + (uint8_t *) maxMeasuredValue, sizeof(*maxMeasuredValue)); +} +EmberAfStatus SetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * maxMeasuredValue) +{ + return emberAfWriteServerAttribute(endpoint, EthyleneOxideConcentrationMeasurement::Id, Ids::MaxMeasuredValue, + (uint8_t *) &maxMeasuredValue, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** tolerance) +{ + return emberAfReadServerAttribute(endpoint, EthyleneOxideConcentrationMeasurement::Id, Ids::Tolerance, (uint8_t *) tolerance, + sizeof(*tolerance)); +} +EmberAfStatus SetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * tolerance) +{ + return emberAfWriteServerAttribute(endpoint, EthyleneOxideConcentrationMeasurement::Id, Ids::Tolerance, (uint8_t *) &tolerance, + ZCL_SINGLE_ATTRIBUTE_TYPE); +} +} // namespace Attributes +} // namespace EthyleneOxideConcentrationMeasurement + +namespace HydrogenConcentrationMeasurement { +namespace Attributes { +EmberAfStatus GetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** measuredValue) +{ + return emberAfReadServerAttribute(endpoint, HydrogenConcentrationMeasurement::Id, Ids::MeasuredValue, (uint8_t *) measuredValue, + sizeof(*measuredValue)); +} +EmberAfStatus SetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * measuredValue) +{ + return emberAfWriteServerAttribute(endpoint, HydrogenConcentrationMeasurement::Id, Ids::MeasuredValue, + (uint8_t *) &measuredValue, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** minMeasuredValue) +{ + return emberAfReadServerAttribute(endpoint, HydrogenConcentrationMeasurement::Id, Ids::MinMeasuredValue, + (uint8_t *) minMeasuredValue, sizeof(*minMeasuredValue)); +} +EmberAfStatus SetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * minMeasuredValue) +{ + return emberAfWriteServerAttribute(endpoint, HydrogenConcentrationMeasurement::Id, Ids::MinMeasuredValue, + (uint8_t *) &minMeasuredValue, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** maxMeasuredValue) +{ + return emberAfReadServerAttribute(endpoint, HydrogenConcentrationMeasurement::Id, Ids::MaxMeasuredValue, + (uint8_t *) maxMeasuredValue, sizeof(*maxMeasuredValue)); +} +EmberAfStatus SetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * maxMeasuredValue) +{ + return emberAfWriteServerAttribute(endpoint, HydrogenConcentrationMeasurement::Id, Ids::MaxMeasuredValue, + (uint8_t *) &maxMeasuredValue, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** tolerance) +{ + return emberAfReadServerAttribute(endpoint, HydrogenConcentrationMeasurement::Id, Ids::Tolerance, (uint8_t *) tolerance, + sizeof(*tolerance)); +} +EmberAfStatus SetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * tolerance) +{ + return emberAfWriteServerAttribute(endpoint, HydrogenConcentrationMeasurement::Id, Ids::Tolerance, (uint8_t *) &tolerance, + ZCL_SINGLE_ATTRIBUTE_TYPE); +} +} // namespace Attributes +} // namespace HydrogenConcentrationMeasurement + +namespace HydrogenSulphideConcentrationMeasurement { +namespace Attributes { +EmberAfStatus GetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** measuredValue) +{ + return emberAfReadServerAttribute(endpoint, HydrogenSulphideConcentrationMeasurement::Id, Ids::MeasuredValue, + (uint8_t *) measuredValue, sizeof(*measuredValue)); +} +EmberAfStatus SetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * measuredValue) +{ + return emberAfWriteServerAttribute(endpoint, HydrogenSulphideConcentrationMeasurement::Id, Ids::MeasuredValue, + (uint8_t *) &measuredValue, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** minMeasuredValue) +{ + return emberAfReadServerAttribute(endpoint, HydrogenSulphideConcentrationMeasurement::Id, Ids::MinMeasuredValue, + (uint8_t *) minMeasuredValue, sizeof(*minMeasuredValue)); +} +EmberAfStatus SetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * minMeasuredValue) +{ + return emberAfWriteServerAttribute(endpoint, HydrogenSulphideConcentrationMeasurement::Id, Ids::MinMeasuredValue, + (uint8_t *) &minMeasuredValue, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** maxMeasuredValue) +{ + return emberAfReadServerAttribute(endpoint, HydrogenSulphideConcentrationMeasurement::Id, Ids::MaxMeasuredValue, + (uint8_t *) maxMeasuredValue, sizeof(*maxMeasuredValue)); +} +EmberAfStatus SetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * maxMeasuredValue) +{ + return emberAfWriteServerAttribute(endpoint, HydrogenSulphideConcentrationMeasurement::Id, Ids::MaxMeasuredValue, + (uint8_t *) &maxMeasuredValue, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** tolerance) +{ + return emberAfReadServerAttribute(endpoint, HydrogenSulphideConcentrationMeasurement::Id, Ids::Tolerance, (uint8_t *) tolerance, + sizeof(*tolerance)); +} +EmberAfStatus SetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * tolerance) +{ + return emberAfWriteServerAttribute(endpoint, HydrogenSulphideConcentrationMeasurement::Id, Ids::Tolerance, + (uint8_t *) &tolerance, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +} // namespace Attributes +} // namespace HydrogenSulphideConcentrationMeasurement + +namespace NitricOxideConcentrationMeasurement { +namespace Attributes { +EmberAfStatus GetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** measuredValue) +{ + return emberAfReadServerAttribute(endpoint, NitricOxideConcentrationMeasurement::Id, Ids::MeasuredValue, + (uint8_t *) measuredValue, sizeof(*measuredValue)); +} +EmberAfStatus SetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * measuredValue) +{ + return emberAfWriteServerAttribute(endpoint, NitricOxideConcentrationMeasurement::Id, Ids::MeasuredValue, + (uint8_t *) &measuredValue, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** minMeasuredValue) +{ + return emberAfReadServerAttribute(endpoint, NitricOxideConcentrationMeasurement::Id, Ids::MinMeasuredValue, + (uint8_t *) minMeasuredValue, sizeof(*minMeasuredValue)); +} +EmberAfStatus SetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * minMeasuredValue) +{ + return emberAfWriteServerAttribute(endpoint, NitricOxideConcentrationMeasurement::Id, Ids::MinMeasuredValue, + (uint8_t *) &minMeasuredValue, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** maxMeasuredValue) +{ + return emberAfReadServerAttribute(endpoint, NitricOxideConcentrationMeasurement::Id, Ids::MaxMeasuredValue, + (uint8_t *) maxMeasuredValue, sizeof(*maxMeasuredValue)); +} +EmberAfStatus SetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * maxMeasuredValue) +{ + return emberAfWriteServerAttribute(endpoint, NitricOxideConcentrationMeasurement::Id, Ids::MaxMeasuredValue, + (uint8_t *) &maxMeasuredValue, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** tolerance) +{ + return emberAfReadServerAttribute(endpoint, NitricOxideConcentrationMeasurement::Id, Ids::Tolerance, (uint8_t *) tolerance, + sizeof(*tolerance)); +} +EmberAfStatus SetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * tolerance) +{ + return emberAfWriteServerAttribute(endpoint, NitricOxideConcentrationMeasurement::Id, Ids::Tolerance, (uint8_t *) &tolerance, + ZCL_SINGLE_ATTRIBUTE_TYPE); +} +} // namespace Attributes +} // namespace NitricOxideConcentrationMeasurement + +namespace NitrogenDioxideConcentrationMeasurement { +namespace Attributes { +EmberAfStatus GetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** measuredValue) +{ + return emberAfReadServerAttribute(endpoint, NitrogenDioxideConcentrationMeasurement::Id, Ids::MeasuredValue, + (uint8_t *) measuredValue, sizeof(*measuredValue)); +} +EmberAfStatus SetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * measuredValue) +{ + return emberAfWriteServerAttribute(endpoint, NitrogenDioxideConcentrationMeasurement::Id, Ids::MeasuredValue, + (uint8_t *) &measuredValue, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** minMeasuredValue) +{ + return emberAfReadServerAttribute(endpoint, NitrogenDioxideConcentrationMeasurement::Id, Ids::MinMeasuredValue, + (uint8_t *) minMeasuredValue, sizeof(*minMeasuredValue)); +} +EmberAfStatus SetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * minMeasuredValue) +{ + return emberAfWriteServerAttribute(endpoint, NitrogenDioxideConcentrationMeasurement::Id, Ids::MinMeasuredValue, + (uint8_t *) &minMeasuredValue, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** maxMeasuredValue) +{ + return emberAfReadServerAttribute(endpoint, NitrogenDioxideConcentrationMeasurement::Id, Ids::MaxMeasuredValue, + (uint8_t *) maxMeasuredValue, sizeof(*maxMeasuredValue)); +} +EmberAfStatus SetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * maxMeasuredValue) +{ + return emberAfWriteServerAttribute(endpoint, NitrogenDioxideConcentrationMeasurement::Id, Ids::MaxMeasuredValue, + (uint8_t *) &maxMeasuredValue, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** tolerance) +{ + return emberAfReadServerAttribute(endpoint, NitrogenDioxideConcentrationMeasurement::Id, Ids::Tolerance, (uint8_t *) tolerance, + sizeof(*tolerance)); +} +EmberAfStatus SetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * tolerance) +{ + return emberAfWriteServerAttribute(endpoint, NitrogenDioxideConcentrationMeasurement::Id, Ids::Tolerance, + (uint8_t *) &tolerance, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +} // namespace Attributes +} // namespace NitrogenDioxideConcentrationMeasurement + +namespace OxygenConcentrationMeasurement { +namespace Attributes { +EmberAfStatus GetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** measuredValue) +{ + return emberAfReadServerAttribute(endpoint, OxygenConcentrationMeasurement::Id, Ids::MeasuredValue, (uint8_t *) measuredValue, + sizeof(*measuredValue)); +} +EmberAfStatus SetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * measuredValue) +{ + return emberAfWriteServerAttribute(endpoint, OxygenConcentrationMeasurement::Id, Ids::MeasuredValue, (uint8_t *) &measuredValue, + ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** minMeasuredValue) +{ + return emberAfReadServerAttribute(endpoint, OxygenConcentrationMeasurement::Id, Ids::MinMeasuredValue, + (uint8_t *) minMeasuredValue, sizeof(*minMeasuredValue)); +} +EmberAfStatus SetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * minMeasuredValue) +{ + return emberAfWriteServerAttribute(endpoint, OxygenConcentrationMeasurement::Id, Ids::MinMeasuredValue, + (uint8_t *) &minMeasuredValue, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** maxMeasuredValue) +{ + return emberAfReadServerAttribute(endpoint, OxygenConcentrationMeasurement::Id, Ids::MaxMeasuredValue, + (uint8_t *) maxMeasuredValue, sizeof(*maxMeasuredValue)); +} +EmberAfStatus SetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * maxMeasuredValue) +{ + return emberAfWriteServerAttribute(endpoint, OxygenConcentrationMeasurement::Id, Ids::MaxMeasuredValue, + (uint8_t *) &maxMeasuredValue, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** tolerance) +{ + return emberAfReadServerAttribute(endpoint, OxygenConcentrationMeasurement::Id, Ids::Tolerance, (uint8_t *) tolerance, + sizeof(*tolerance)); +} +EmberAfStatus SetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * tolerance) +{ + return emberAfWriteServerAttribute(endpoint, OxygenConcentrationMeasurement::Id, Ids::Tolerance, (uint8_t *) &tolerance, + ZCL_SINGLE_ATTRIBUTE_TYPE); +} +} // namespace Attributes +} // namespace OxygenConcentrationMeasurement + +namespace OzoneConcentrationMeasurement { +namespace Attributes { +EmberAfStatus GetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** measuredValue) +{ + return emberAfReadServerAttribute(endpoint, OzoneConcentrationMeasurement::Id, Ids::MeasuredValue, (uint8_t *) measuredValue, + sizeof(*measuredValue)); +} +EmberAfStatus SetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * measuredValue) +{ + return emberAfWriteServerAttribute(endpoint, OzoneConcentrationMeasurement::Id, Ids::MeasuredValue, (uint8_t *) &measuredValue, + ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** minMeasuredValue) +{ + return emberAfReadServerAttribute(endpoint, OzoneConcentrationMeasurement::Id, Ids::MinMeasuredValue, + (uint8_t *) minMeasuredValue, sizeof(*minMeasuredValue)); +} +EmberAfStatus SetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * minMeasuredValue) +{ + return emberAfWriteServerAttribute(endpoint, OzoneConcentrationMeasurement::Id, Ids::MinMeasuredValue, + (uint8_t *) &minMeasuredValue, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** maxMeasuredValue) +{ + return emberAfReadServerAttribute(endpoint, OzoneConcentrationMeasurement::Id, Ids::MaxMeasuredValue, + (uint8_t *) maxMeasuredValue, sizeof(*maxMeasuredValue)); +} +EmberAfStatus SetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * maxMeasuredValue) +{ + return emberAfWriteServerAttribute(endpoint, OzoneConcentrationMeasurement::Id, Ids::MaxMeasuredValue, + (uint8_t *) &maxMeasuredValue, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** tolerance) +{ + return emberAfReadServerAttribute(endpoint, OzoneConcentrationMeasurement::Id, Ids::Tolerance, (uint8_t *) tolerance, + sizeof(*tolerance)); +} +EmberAfStatus SetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * tolerance) +{ + return emberAfWriteServerAttribute(endpoint, OzoneConcentrationMeasurement::Id, Ids::Tolerance, (uint8_t *) &tolerance, + ZCL_SINGLE_ATTRIBUTE_TYPE); +} +} // namespace Attributes +} // namespace OzoneConcentrationMeasurement + +namespace SulfurDioxideConcentrationMeasurement { +namespace Attributes { +EmberAfStatus GetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** measuredValue) +{ + return emberAfReadServerAttribute(endpoint, SulfurDioxideConcentrationMeasurement::Id, Ids::MeasuredValue, + (uint8_t *) measuredValue, sizeof(*measuredValue)); +} +EmberAfStatus SetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * measuredValue) +{ + return emberAfWriteServerAttribute(endpoint, SulfurDioxideConcentrationMeasurement::Id, Ids::MeasuredValue, + (uint8_t *) &measuredValue, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** minMeasuredValue) +{ + return emberAfReadServerAttribute(endpoint, SulfurDioxideConcentrationMeasurement::Id, Ids::MinMeasuredValue, + (uint8_t *) minMeasuredValue, sizeof(*minMeasuredValue)); +} +EmberAfStatus SetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * minMeasuredValue) +{ + return emberAfWriteServerAttribute(endpoint, SulfurDioxideConcentrationMeasurement::Id, Ids::MinMeasuredValue, + (uint8_t *) &minMeasuredValue, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** maxMeasuredValue) +{ + return emberAfReadServerAttribute(endpoint, SulfurDioxideConcentrationMeasurement::Id, Ids::MaxMeasuredValue, + (uint8_t *) maxMeasuredValue, sizeof(*maxMeasuredValue)); +} +EmberAfStatus SetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * maxMeasuredValue) +{ + return emberAfWriteServerAttribute(endpoint, SulfurDioxideConcentrationMeasurement::Id, Ids::MaxMeasuredValue, + (uint8_t *) &maxMeasuredValue, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** tolerance) +{ + return emberAfReadServerAttribute(endpoint, SulfurDioxideConcentrationMeasurement::Id, Ids::Tolerance, (uint8_t *) tolerance, + sizeof(*tolerance)); +} +EmberAfStatus SetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * tolerance) +{ + return emberAfWriteServerAttribute(endpoint, SulfurDioxideConcentrationMeasurement::Id, Ids::Tolerance, (uint8_t *) &tolerance, + ZCL_SINGLE_ATTRIBUTE_TYPE); +} +} // namespace Attributes +} // namespace SulfurDioxideConcentrationMeasurement + +namespace DissolvedOxygenConcentrationMeasurement { +namespace Attributes { +EmberAfStatus GetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** measuredValue) +{ + return emberAfReadServerAttribute(endpoint, DissolvedOxygenConcentrationMeasurement::Id, Ids::MeasuredValue, + (uint8_t *) measuredValue, sizeof(*measuredValue)); +} +EmberAfStatus SetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * measuredValue) +{ + return emberAfWriteServerAttribute(endpoint, DissolvedOxygenConcentrationMeasurement::Id, Ids::MeasuredValue, + (uint8_t *) &measuredValue, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** minMeasuredValue) +{ + return emberAfReadServerAttribute(endpoint, DissolvedOxygenConcentrationMeasurement::Id, Ids::MinMeasuredValue, + (uint8_t *) minMeasuredValue, sizeof(*minMeasuredValue)); +} +EmberAfStatus SetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * minMeasuredValue) +{ + return emberAfWriteServerAttribute(endpoint, DissolvedOxygenConcentrationMeasurement::Id, Ids::MinMeasuredValue, + (uint8_t *) &minMeasuredValue, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** maxMeasuredValue) +{ + return emberAfReadServerAttribute(endpoint, DissolvedOxygenConcentrationMeasurement::Id, Ids::MaxMeasuredValue, + (uint8_t *) maxMeasuredValue, sizeof(*maxMeasuredValue)); +} +EmberAfStatus SetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * maxMeasuredValue) +{ + return emberAfWriteServerAttribute(endpoint, DissolvedOxygenConcentrationMeasurement::Id, Ids::MaxMeasuredValue, + (uint8_t *) &maxMeasuredValue, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** tolerance) +{ + return emberAfReadServerAttribute(endpoint, DissolvedOxygenConcentrationMeasurement::Id, Ids::Tolerance, (uint8_t *) tolerance, + sizeof(*tolerance)); +} +EmberAfStatus SetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * tolerance) +{ + return emberAfWriteServerAttribute(endpoint, DissolvedOxygenConcentrationMeasurement::Id, Ids::Tolerance, + (uint8_t *) &tolerance, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +} // namespace Attributes +} // namespace DissolvedOxygenConcentrationMeasurement + +namespace BromateConcentrationMeasurement { +namespace Attributes { +EmberAfStatus GetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** measuredValue) +{ + return emberAfReadServerAttribute(endpoint, BromateConcentrationMeasurement::Id, Ids::MeasuredValue, (uint8_t *) measuredValue, + sizeof(*measuredValue)); +} +EmberAfStatus SetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * measuredValue) +{ + return emberAfWriteServerAttribute(endpoint, BromateConcentrationMeasurement::Id, Ids::MeasuredValue, + (uint8_t *) &measuredValue, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** minMeasuredValue) +{ + return emberAfReadServerAttribute(endpoint, BromateConcentrationMeasurement::Id, Ids::MinMeasuredValue, + (uint8_t *) minMeasuredValue, sizeof(*minMeasuredValue)); +} +EmberAfStatus SetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * minMeasuredValue) +{ + return emberAfWriteServerAttribute(endpoint, BromateConcentrationMeasurement::Id, Ids::MinMeasuredValue, + (uint8_t *) &minMeasuredValue, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** maxMeasuredValue) +{ + return emberAfReadServerAttribute(endpoint, BromateConcentrationMeasurement::Id, Ids::MaxMeasuredValue, + (uint8_t *) maxMeasuredValue, sizeof(*maxMeasuredValue)); +} +EmberAfStatus SetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * maxMeasuredValue) +{ + return emberAfWriteServerAttribute(endpoint, BromateConcentrationMeasurement::Id, Ids::MaxMeasuredValue, + (uint8_t *) &maxMeasuredValue, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** tolerance) +{ + return emberAfReadServerAttribute(endpoint, BromateConcentrationMeasurement::Id, Ids::Tolerance, (uint8_t *) tolerance, + sizeof(*tolerance)); +} +EmberAfStatus SetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * tolerance) +{ + return emberAfWriteServerAttribute(endpoint, BromateConcentrationMeasurement::Id, Ids::Tolerance, (uint8_t *) &tolerance, + ZCL_SINGLE_ATTRIBUTE_TYPE); +} +} // namespace Attributes +} // namespace BromateConcentrationMeasurement + +namespace ChloraminesConcentrationMeasurement { +namespace Attributes { +EmberAfStatus GetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** measuredValue) +{ + return emberAfReadServerAttribute(endpoint, ChloraminesConcentrationMeasurement::Id, Ids::MeasuredValue, + (uint8_t *) measuredValue, sizeof(*measuredValue)); +} +EmberAfStatus SetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * measuredValue) +{ + return emberAfWriteServerAttribute(endpoint, ChloraminesConcentrationMeasurement::Id, Ids::MeasuredValue, + (uint8_t *) &measuredValue, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** minMeasuredValue) +{ + return emberAfReadServerAttribute(endpoint, ChloraminesConcentrationMeasurement::Id, Ids::MinMeasuredValue, + (uint8_t *) minMeasuredValue, sizeof(*minMeasuredValue)); +} +EmberAfStatus SetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * minMeasuredValue) +{ + return emberAfWriteServerAttribute(endpoint, ChloraminesConcentrationMeasurement::Id, Ids::MinMeasuredValue, + (uint8_t *) &minMeasuredValue, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** maxMeasuredValue) +{ + return emberAfReadServerAttribute(endpoint, ChloraminesConcentrationMeasurement::Id, Ids::MaxMeasuredValue, + (uint8_t *) maxMeasuredValue, sizeof(*maxMeasuredValue)); +} +EmberAfStatus SetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * maxMeasuredValue) +{ + return emberAfWriteServerAttribute(endpoint, ChloraminesConcentrationMeasurement::Id, Ids::MaxMeasuredValue, + (uint8_t *) &maxMeasuredValue, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** tolerance) +{ + return emberAfReadServerAttribute(endpoint, ChloraminesConcentrationMeasurement::Id, Ids::Tolerance, (uint8_t *) tolerance, + sizeof(*tolerance)); +} +EmberAfStatus SetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * tolerance) +{ + return emberAfWriteServerAttribute(endpoint, ChloraminesConcentrationMeasurement::Id, Ids::Tolerance, (uint8_t *) &tolerance, + ZCL_SINGLE_ATTRIBUTE_TYPE); +} +} // namespace Attributes +} // namespace ChloraminesConcentrationMeasurement + +namespace ChlorineConcentrationMeasurement { +namespace Attributes { +EmberAfStatus GetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** measuredValue) +{ + return emberAfReadServerAttribute(endpoint, ChlorineConcentrationMeasurement::Id, Ids::MeasuredValue, (uint8_t *) measuredValue, + sizeof(*measuredValue)); +} +EmberAfStatus SetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * measuredValue) +{ + return emberAfWriteServerAttribute(endpoint, ChlorineConcentrationMeasurement::Id, Ids::MeasuredValue, + (uint8_t *) &measuredValue, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** minMeasuredValue) +{ + return emberAfReadServerAttribute(endpoint, ChlorineConcentrationMeasurement::Id, Ids::MinMeasuredValue, + (uint8_t *) minMeasuredValue, sizeof(*minMeasuredValue)); +} +EmberAfStatus SetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * minMeasuredValue) +{ + return emberAfWriteServerAttribute(endpoint, ChlorineConcentrationMeasurement::Id, Ids::MinMeasuredValue, + (uint8_t *) &minMeasuredValue, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** maxMeasuredValue) +{ + return emberAfReadServerAttribute(endpoint, ChlorineConcentrationMeasurement::Id, Ids::MaxMeasuredValue, + (uint8_t *) maxMeasuredValue, sizeof(*maxMeasuredValue)); +} +EmberAfStatus SetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * maxMeasuredValue) +{ + return emberAfWriteServerAttribute(endpoint, ChlorineConcentrationMeasurement::Id, Ids::MaxMeasuredValue, + (uint8_t *) &maxMeasuredValue, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** tolerance) +{ + return emberAfReadServerAttribute(endpoint, ChlorineConcentrationMeasurement::Id, Ids::Tolerance, (uint8_t *) tolerance, + sizeof(*tolerance)); +} +EmberAfStatus SetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * tolerance) +{ + return emberAfWriteServerAttribute(endpoint, ChlorineConcentrationMeasurement::Id, Ids::Tolerance, (uint8_t *) &tolerance, + ZCL_SINGLE_ATTRIBUTE_TYPE); +} +} // namespace Attributes +} // namespace ChlorineConcentrationMeasurement + +namespace FecalColiformAndEColiConcentrationMeasurement { +namespace Attributes { +EmberAfStatus GetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** measuredValue) +{ + return emberAfReadServerAttribute(endpoint, FecalColiformAndEColiConcentrationMeasurement::Id, Ids::MeasuredValue, + (uint8_t *) measuredValue, sizeof(*measuredValue)); +} +EmberAfStatus SetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * measuredValue) +{ + return emberAfWriteServerAttribute(endpoint, FecalColiformAndEColiConcentrationMeasurement::Id, Ids::MeasuredValue, + (uint8_t *) &measuredValue, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** minMeasuredValue) +{ + return emberAfReadServerAttribute(endpoint, FecalColiformAndEColiConcentrationMeasurement::Id, Ids::MinMeasuredValue, + (uint8_t *) minMeasuredValue, sizeof(*minMeasuredValue)); +} +EmberAfStatus SetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * minMeasuredValue) +{ + return emberAfWriteServerAttribute(endpoint, FecalColiformAndEColiConcentrationMeasurement::Id, Ids::MinMeasuredValue, + (uint8_t *) &minMeasuredValue, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** maxMeasuredValue) +{ + return emberAfReadServerAttribute(endpoint, FecalColiformAndEColiConcentrationMeasurement::Id, Ids::MaxMeasuredValue, + (uint8_t *) maxMeasuredValue, sizeof(*maxMeasuredValue)); +} +EmberAfStatus SetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * maxMeasuredValue) +{ + return emberAfWriteServerAttribute(endpoint, FecalColiformAndEColiConcentrationMeasurement::Id, Ids::MaxMeasuredValue, + (uint8_t *) &maxMeasuredValue, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** tolerance) +{ + return emberAfReadServerAttribute(endpoint, FecalColiformAndEColiConcentrationMeasurement::Id, Ids::Tolerance, + (uint8_t *) tolerance, sizeof(*tolerance)); +} +EmberAfStatus SetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * tolerance) +{ + return emberAfWriteServerAttribute(endpoint, FecalColiformAndEColiConcentrationMeasurement::Id, Ids::Tolerance, + (uint8_t *) &tolerance, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +} // namespace Attributes +} // namespace FecalColiformAndEColiConcentrationMeasurement + +namespace FluorideConcentrationMeasurement { +namespace Attributes { +EmberAfStatus GetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** measuredValue) +{ + return emberAfReadServerAttribute(endpoint, FluorideConcentrationMeasurement::Id, Ids::MeasuredValue, (uint8_t *) measuredValue, + sizeof(*measuredValue)); +} +EmberAfStatus SetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * measuredValue) +{ + return emberAfWriteServerAttribute(endpoint, FluorideConcentrationMeasurement::Id, Ids::MeasuredValue, + (uint8_t *) &measuredValue, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** minMeasuredValue) +{ + return emberAfReadServerAttribute(endpoint, FluorideConcentrationMeasurement::Id, Ids::MinMeasuredValue, + (uint8_t *) minMeasuredValue, sizeof(*minMeasuredValue)); +} +EmberAfStatus SetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * minMeasuredValue) +{ + return emberAfWriteServerAttribute(endpoint, FluorideConcentrationMeasurement::Id, Ids::MinMeasuredValue, + (uint8_t *) &minMeasuredValue, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** maxMeasuredValue) +{ + return emberAfReadServerAttribute(endpoint, FluorideConcentrationMeasurement::Id, Ids::MaxMeasuredValue, + (uint8_t *) maxMeasuredValue, sizeof(*maxMeasuredValue)); +} +EmberAfStatus SetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * maxMeasuredValue) +{ + return emberAfWriteServerAttribute(endpoint, FluorideConcentrationMeasurement::Id, Ids::MaxMeasuredValue, + (uint8_t *) &maxMeasuredValue, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** tolerance) +{ + return emberAfReadServerAttribute(endpoint, FluorideConcentrationMeasurement::Id, Ids::Tolerance, (uint8_t *) tolerance, + sizeof(*tolerance)); +} +EmberAfStatus SetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * tolerance) +{ + return emberAfWriteServerAttribute(endpoint, FluorideConcentrationMeasurement::Id, Ids::Tolerance, (uint8_t *) &tolerance, + ZCL_SINGLE_ATTRIBUTE_TYPE); +} +} // namespace Attributes +} // namespace FluorideConcentrationMeasurement + +namespace HaloaceticAcidsConcentrationMeasurement { +namespace Attributes { +EmberAfStatus GetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** measuredValue) +{ + return emberAfReadServerAttribute(endpoint, HaloaceticAcidsConcentrationMeasurement::Id, Ids::MeasuredValue, + (uint8_t *) measuredValue, sizeof(*measuredValue)); +} +EmberAfStatus SetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * measuredValue) +{ + return emberAfWriteServerAttribute(endpoint, HaloaceticAcidsConcentrationMeasurement::Id, Ids::MeasuredValue, + (uint8_t *) &measuredValue, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** minMeasuredValue) +{ + return emberAfReadServerAttribute(endpoint, HaloaceticAcidsConcentrationMeasurement::Id, Ids::MinMeasuredValue, + (uint8_t *) minMeasuredValue, sizeof(*minMeasuredValue)); +} +EmberAfStatus SetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * minMeasuredValue) +{ + return emberAfWriteServerAttribute(endpoint, HaloaceticAcidsConcentrationMeasurement::Id, Ids::MinMeasuredValue, + (uint8_t *) &minMeasuredValue, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** maxMeasuredValue) +{ + return emberAfReadServerAttribute(endpoint, HaloaceticAcidsConcentrationMeasurement::Id, Ids::MaxMeasuredValue, + (uint8_t *) maxMeasuredValue, sizeof(*maxMeasuredValue)); +} +EmberAfStatus SetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * maxMeasuredValue) +{ + return emberAfWriteServerAttribute(endpoint, HaloaceticAcidsConcentrationMeasurement::Id, Ids::MaxMeasuredValue, + (uint8_t *) &maxMeasuredValue, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** tolerance) +{ + return emberAfReadServerAttribute(endpoint, HaloaceticAcidsConcentrationMeasurement::Id, Ids::Tolerance, (uint8_t *) tolerance, + sizeof(*tolerance)); +} +EmberAfStatus SetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * tolerance) +{ + return emberAfWriteServerAttribute(endpoint, HaloaceticAcidsConcentrationMeasurement::Id, Ids::Tolerance, + (uint8_t *) &tolerance, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +} // namespace Attributes +} // namespace HaloaceticAcidsConcentrationMeasurement + +namespace TotalTrihalomethanesConcentrationMeasurement { +namespace Attributes { +EmberAfStatus GetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** measuredValue) +{ + return emberAfReadServerAttribute(endpoint, TotalTrihalomethanesConcentrationMeasurement::Id, Ids::MeasuredValue, + (uint8_t *) measuredValue, sizeof(*measuredValue)); +} +EmberAfStatus SetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * measuredValue) +{ + return emberAfWriteServerAttribute(endpoint, TotalTrihalomethanesConcentrationMeasurement::Id, Ids::MeasuredValue, + (uint8_t *) &measuredValue, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** minMeasuredValue) +{ + return emberAfReadServerAttribute(endpoint, TotalTrihalomethanesConcentrationMeasurement::Id, Ids::MinMeasuredValue, + (uint8_t *) minMeasuredValue, sizeof(*minMeasuredValue)); +} +EmberAfStatus SetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * minMeasuredValue) +{ + return emberAfWriteServerAttribute(endpoint, TotalTrihalomethanesConcentrationMeasurement::Id, Ids::MinMeasuredValue, + (uint8_t *) &minMeasuredValue, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** maxMeasuredValue) +{ + return emberAfReadServerAttribute(endpoint, TotalTrihalomethanesConcentrationMeasurement::Id, Ids::MaxMeasuredValue, + (uint8_t *) maxMeasuredValue, sizeof(*maxMeasuredValue)); +} +EmberAfStatus SetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * maxMeasuredValue) +{ + return emberAfWriteServerAttribute(endpoint, TotalTrihalomethanesConcentrationMeasurement::Id, Ids::MaxMeasuredValue, + (uint8_t *) &maxMeasuredValue, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** tolerance) +{ + return emberAfReadServerAttribute(endpoint, TotalTrihalomethanesConcentrationMeasurement::Id, Ids::Tolerance, + (uint8_t *) tolerance, sizeof(*tolerance)); +} +EmberAfStatus SetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * tolerance) +{ + return emberAfWriteServerAttribute(endpoint, TotalTrihalomethanesConcentrationMeasurement::Id, Ids::Tolerance, + (uint8_t *) &tolerance, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +} // namespace Attributes +} // namespace TotalTrihalomethanesConcentrationMeasurement + +namespace TotalColiformBacteriaConcentrationMeasurement { +namespace Attributes { +EmberAfStatus GetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** measuredValue) +{ + return emberAfReadServerAttribute(endpoint, TotalColiformBacteriaConcentrationMeasurement::Id, Ids::MeasuredValue, + (uint8_t *) measuredValue, sizeof(*measuredValue)); +} +EmberAfStatus SetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * measuredValue) +{ + return emberAfWriteServerAttribute(endpoint, TotalColiformBacteriaConcentrationMeasurement::Id, Ids::MeasuredValue, + (uint8_t *) &measuredValue, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** minMeasuredValue) +{ + return emberAfReadServerAttribute(endpoint, TotalColiformBacteriaConcentrationMeasurement::Id, Ids::MinMeasuredValue, + (uint8_t *) minMeasuredValue, sizeof(*minMeasuredValue)); +} +EmberAfStatus SetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * minMeasuredValue) +{ + return emberAfWriteServerAttribute(endpoint, TotalColiformBacteriaConcentrationMeasurement::Id, Ids::MinMeasuredValue, + (uint8_t *) &minMeasuredValue, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** maxMeasuredValue) +{ + return emberAfReadServerAttribute(endpoint, TotalColiformBacteriaConcentrationMeasurement::Id, Ids::MaxMeasuredValue, + (uint8_t *) maxMeasuredValue, sizeof(*maxMeasuredValue)); +} +EmberAfStatus SetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * maxMeasuredValue) +{ + return emberAfWriteServerAttribute(endpoint, TotalColiformBacteriaConcentrationMeasurement::Id, Ids::MaxMeasuredValue, + (uint8_t *) &maxMeasuredValue, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** tolerance) +{ + return emberAfReadServerAttribute(endpoint, TotalColiformBacteriaConcentrationMeasurement::Id, Ids::Tolerance, + (uint8_t *) tolerance, sizeof(*tolerance)); +} +EmberAfStatus SetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * tolerance) +{ + return emberAfWriteServerAttribute(endpoint, TotalColiformBacteriaConcentrationMeasurement::Id, Ids::Tolerance, + (uint8_t *) &tolerance, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +} // namespace Attributes +} // namespace TotalColiformBacteriaConcentrationMeasurement + +namespace TurbidityConcentrationMeasurement { +namespace Attributes { +EmberAfStatus GetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** measuredValue) +{ + return emberAfReadServerAttribute(endpoint, TurbidityConcentrationMeasurement::Id, Ids::MeasuredValue, + (uint8_t *) measuredValue, sizeof(*measuredValue)); +} +EmberAfStatus SetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * measuredValue) +{ + return emberAfWriteServerAttribute(endpoint, TurbidityConcentrationMeasurement::Id, Ids::MeasuredValue, + (uint8_t *) &measuredValue, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** minMeasuredValue) +{ + return emberAfReadServerAttribute(endpoint, TurbidityConcentrationMeasurement::Id, Ids::MinMeasuredValue, + (uint8_t *) minMeasuredValue, sizeof(*minMeasuredValue)); +} +EmberAfStatus SetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * minMeasuredValue) +{ + return emberAfWriteServerAttribute(endpoint, TurbidityConcentrationMeasurement::Id, Ids::MinMeasuredValue, + (uint8_t *) &minMeasuredValue, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** maxMeasuredValue) +{ + return emberAfReadServerAttribute(endpoint, TurbidityConcentrationMeasurement::Id, Ids::MaxMeasuredValue, + (uint8_t *) maxMeasuredValue, sizeof(*maxMeasuredValue)); +} +EmberAfStatus SetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * maxMeasuredValue) +{ + return emberAfWriteServerAttribute(endpoint, TurbidityConcentrationMeasurement::Id, Ids::MaxMeasuredValue, + (uint8_t *) &maxMeasuredValue, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** tolerance) +{ + return emberAfReadServerAttribute(endpoint, TurbidityConcentrationMeasurement::Id, Ids::Tolerance, (uint8_t *) tolerance, + sizeof(*tolerance)); +} +EmberAfStatus SetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * tolerance) +{ + return emberAfWriteServerAttribute(endpoint, TurbidityConcentrationMeasurement::Id, Ids::Tolerance, (uint8_t *) &tolerance, + ZCL_SINGLE_ATTRIBUTE_TYPE); +} +} // namespace Attributes +} // namespace TurbidityConcentrationMeasurement + +namespace CopperConcentrationMeasurement { +namespace Attributes { +EmberAfStatus GetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** measuredValue) +{ + return emberAfReadServerAttribute(endpoint, CopperConcentrationMeasurement::Id, Ids::MeasuredValue, (uint8_t *) measuredValue, + sizeof(*measuredValue)); +} +EmberAfStatus SetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * measuredValue) +{ + return emberAfWriteServerAttribute(endpoint, CopperConcentrationMeasurement::Id, Ids::MeasuredValue, (uint8_t *) &measuredValue, + ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** minMeasuredValue) +{ + return emberAfReadServerAttribute(endpoint, CopperConcentrationMeasurement::Id, Ids::MinMeasuredValue, + (uint8_t *) minMeasuredValue, sizeof(*minMeasuredValue)); +} +EmberAfStatus SetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * minMeasuredValue) +{ + return emberAfWriteServerAttribute(endpoint, CopperConcentrationMeasurement::Id, Ids::MinMeasuredValue, + (uint8_t *) &minMeasuredValue, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** maxMeasuredValue) +{ + return emberAfReadServerAttribute(endpoint, CopperConcentrationMeasurement::Id, Ids::MaxMeasuredValue, + (uint8_t *) maxMeasuredValue, sizeof(*maxMeasuredValue)); +} +EmberAfStatus SetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * maxMeasuredValue) +{ + return emberAfWriteServerAttribute(endpoint, CopperConcentrationMeasurement::Id, Ids::MaxMeasuredValue, + (uint8_t *) &maxMeasuredValue, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** tolerance) +{ + return emberAfReadServerAttribute(endpoint, CopperConcentrationMeasurement::Id, Ids::Tolerance, (uint8_t *) tolerance, + sizeof(*tolerance)); +} +EmberAfStatus SetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * tolerance) +{ + return emberAfWriteServerAttribute(endpoint, CopperConcentrationMeasurement::Id, Ids::Tolerance, (uint8_t *) &tolerance, + ZCL_SINGLE_ATTRIBUTE_TYPE); +} +} // namespace Attributes +} // namespace CopperConcentrationMeasurement + +namespace LeadConcentrationMeasurement { +namespace Attributes { +EmberAfStatus GetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** measuredValue) +{ + return emberAfReadServerAttribute(endpoint, LeadConcentrationMeasurement::Id, Ids::MeasuredValue, (uint8_t *) measuredValue, + sizeof(*measuredValue)); +} +EmberAfStatus SetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * measuredValue) +{ + return emberAfWriteServerAttribute(endpoint, LeadConcentrationMeasurement::Id, Ids::MeasuredValue, (uint8_t *) &measuredValue, + ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** minMeasuredValue) +{ + return emberAfReadServerAttribute(endpoint, LeadConcentrationMeasurement::Id, Ids::MinMeasuredValue, + (uint8_t *) minMeasuredValue, sizeof(*minMeasuredValue)); +} +EmberAfStatus SetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * minMeasuredValue) +{ + return emberAfWriteServerAttribute(endpoint, LeadConcentrationMeasurement::Id, Ids::MinMeasuredValue, + (uint8_t *) &minMeasuredValue, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** maxMeasuredValue) +{ + return emberAfReadServerAttribute(endpoint, LeadConcentrationMeasurement::Id, Ids::MaxMeasuredValue, + (uint8_t *) maxMeasuredValue, sizeof(*maxMeasuredValue)); +} +EmberAfStatus SetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * maxMeasuredValue) +{ + return emberAfWriteServerAttribute(endpoint, LeadConcentrationMeasurement::Id, Ids::MaxMeasuredValue, + (uint8_t *) &maxMeasuredValue, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** tolerance) +{ + return emberAfReadServerAttribute(endpoint, LeadConcentrationMeasurement::Id, Ids::Tolerance, (uint8_t *) tolerance, + sizeof(*tolerance)); +} +EmberAfStatus SetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * tolerance) +{ + return emberAfWriteServerAttribute(endpoint, LeadConcentrationMeasurement::Id, Ids::Tolerance, (uint8_t *) &tolerance, + ZCL_SINGLE_ATTRIBUTE_TYPE); +} +} // namespace Attributes +} // namespace LeadConcentrationMeasurement + +namespace ManganeseConcentrationMeasurement { +namespace Attributes { +EmberAfStatus GetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** measuredValue) +{ + return emberAfReadServerAttribute(endpoint, ManganeseConcentrationMeasurement::Id, Ids::MeasuredValue, + (uint8_t *) measuredValue, sizeof(*measuredValue)); +} +EmberAfStatus SetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * measuredValue) +{ + return emberAfWriteServerAttribute(endpoint, ManganeseConcentrationMeasurement::Id, Ids::MeasuredValue, + (uint8_t *) &measuredValue, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** minMeasuredValue) +{ + return emberAfReadServerAttribute(endpoint, ManganeseConcentrationMeasurement::Id, Ids::MinMeasuredValue, + (uint8_t *) minMeasuredValue, sizeof(*minMeasuredValue)); +} +EmberAfStatus SetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * minMeasuredValue) +{ + return emberAfWriteServerAttribute(endpoint, ManganeseConcentrationMeasurement::Id, Ids::MinMeasuredValue, + (uint8_t *) &minMeasuredValue, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** maxMeasuredValue) +{ + return emberAfReadServerAttribute(endpoint, ManganeseConcentrationMeasurement::Id, Ids::MaxMeasuredValue, + (uint8_t *) maxMeasuredValue, sizeof(*maxMeasuredValue)); +} +EmberAfStatus SetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * maxMeasuredValue) +{ + return emberAfWriteServerAttribute(endpoint, ManganeseConcentrationMeasurement::Id, Ids::MaxMeasuredValue, + (uint8_t *) &maxMeasuredValue, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** tolerance) +{ + return emberAfReadServerAttribute(endpoint, ManganeseConcentrationMeasurement::Id, Ids::Tolerance, (uint8_t *) tolerance, + sizeof(*tolerance)); +} +EmberAfStatus SetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * tolerance) +{ + return emberAfWriteServerAttribute(endpoint, ManganeseConcentrationMeasurement::Id, Ids::Tolerance, (uint8_t *) &tolerance, + ZCL_SINGLE_ATTRIBUTE_TYPE); +} +} // namespace Attributes +} // namespace ManganeseConcentrationMeasurement + +namespace SulfateConcentrationMeasurement { +namespace Attributes { +EmberAfStatus GetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** measuredValue) +{ + return emberAfReadServerAttribute(endpoint, SulfateConcentrationMeasurement::Id, Ids::MeasuredValue, (uint8_t *) measuredValue, + sizeof(*measuredValue)); +} +EmberAfStatus SetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * measuredValue) +{ + return emberAfWriteServerAttribute(endpoint, SulfateConcentrationMeasurement::Id, Ids::MeasuredValue, + (uint8_t *) &measuredValue, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** minMeasuredValue) +{ + return emberAfReadServerAttribute(endpoint, SulfateConcentrationMeasurement::Id, Ids::MinMeasuredValue, + (uint8_t *) minMeasuredValue, sizeof(*minMeasuredValue)); +} +EmberAfStatus SetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * minMeasuredValue) +{ + return emberAfWriteServerAttribute(endpoint, SulfateConcentrationMeasurement::Id, Ids::MinMeasuredValue, + (uint8_t *) &minMeasuredValue, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** maxMeasuredValue) +{ + return emberAfReadServerAttribute(endpoint, SulfateConcentrationMeasurement::Id, Ids::MaxMeasuredValue, + (uint8_t *) maxMeasuredValue, sizeof(*maxMeasuredValue)); +} +EmberAfStatus SetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * maxMeasuredValue) +{ + return emberAfWriteServerAttribute(endpoint, SulfateConcentrationMeasurement::Id, Ids::MaxMeasuredValue, + (uint8_t *) &maxMeasuredValue, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** tolerance) +{ + return emberAfReadServerAttribute(endpoint, SulfateConcentrationMeasurement::Id, Ids::Tolerance, (uint8_t *) tolerance, + sizeof(*tolerance)); +} +EmberAfStatus SetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * tolerance) +{ + return emberAfWriteServerAttribute(endpoint, SulfateConcentrationMeasurement::Id, Ids::Tolerance, (uint8_t *) &tolerance, + ZCL_SINGLE_ATTRIBUTE_TYPE); +} +} // namespace Attributes +} // namespace SulfateConcentrationMeasurement + +namespace BromodichloromethaneConcentrationMeasurement { +namespace Attributes { +EmberAfStatus GetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** measuredValue) +{ + return emberAfReadServerAttribute(endpoint, BromodichloromethaneConcentrationMeasurement::Id, Ids::MeasuredValue, + (uint8_t *) measuredValue, sizeof(*measuredValue)); +} +EmberAfStatus SetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * measuredValue) +{ + return emberAfWriteServerAttribute(endpoint, BromodichloromethaneConcentrationMeasurement::Id, Ids::MeasuredValue, + (uint8_t *) &measuredValue, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** minMeasuredValue) +{ + return emberAfReadServerAttribute(endpoint, BromodichloromethaneConcentrationMeasurement::Id, Ids::MinMeasuredValue, + (uint8_t *) minMeasuredValue, sizeof(*minMeasuredValue)); +} +EmberAfStatus SetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * minMeasuredValue) +{ + return emberAfWriteServerAttribute(endpoint, BromodichloromethaneConcentrationMeasurement::Id, Ids::MinMeasuredValue, + (uint8_t *) &minMeasuredValue, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** maxMeasuredValue) +{ + return emberAfReadServerAttribute(endpoint, BromodichloromethaneConcentrationMeasurement::Id, Ids::MaxMeasuredValue, + (uint8_t *) maxMeasuredValue, sizeof(*maxMeasuredValue)); +} +EmberAfStatus SetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * maxMeasuredValue) +{ + return emberAfWriteServerAttribute(endpoint, BromodichloromethaneConcentrationMeasurement::Id, Ids::MaxMeasuredValue, + (uint8_t *) &maxMeasuredValue, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** tolerance) +{ + return emberAfReadServerAttribute(endpoint, BromodichloromethaneConcentrationMeasurement::Id, Ids::Tolerance, + (uint8_t *) tolerance, sizeof(*tolerance)); +} +EmberAfStatus SetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * tolerance) +{ + return emberAfWriteServerAttribute(endpoint, BromodichloromethaneConcentrationMeasurement::Id, Ids::Tolerance, + (uint8_t *) &tolerance, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +} // namespace Attributes +} // namespace BromodichloromethaneConcentrationMeasurement + +namespace BromoformConcentrationMeasurement { +namespace Attributes { +EmberAfStatus GetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** measuredValue) +{ + return emberAfReadServerAttribute(endpoint, BromoformConcentrationMeasurement::Id, Ids::MeasuredValue, + (uint8_t *) measuredValue, sizeof(*measuredValue)); +} +EmberAfStatus SetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * measuredValue) +{ + return emberAfWriteServerAttribute(endpoint, BromoformConcentrationMeasurement::Id, Ids::MeasuredValue, + (uint8_t *) &measuredValue, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** minMeasuredValue) +{ + return emberAfReadServerAttribute(endpoint, BromoformConcentrationMeasurement::Id, Ids::MinMeasuredValue, + (uint8_t *) minMeasuredValue, sizeof(*minMeasuredValue)); +} +EmberAfStatus SetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * minMeasuredValue) +{ + return emberAfWriteServerAttribute(endpoint, BromoformConcentrationMeasurement::Id, Ids::MinMeasuredValue, + (uint8_t *) &minMeasuredValue, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** maxMeasuredValue) +{ + return emberAfReadServerAttribute(endpoint, BromoformConcentrationMeasurement::Id, Ids::MaxMeasuredValue, + (uint8_t *) maxMeasuredValue, sizeof(*maxMeasuredValue)); +} +EmberAfStatus SetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * maxMeasuredValue) +{ + return emberAfWriteServerAttribute(endpoint, BromoformConcentrationMeasurement::Id, Ids::MaxMeasuredValue, + (uint8_t *) &maxMeasuredValue, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** tolerance) +{ + return emberAfReadServerAttribute(endpoint, BromoformConcentrationMeasurement::Id, Ids::Tolerance, (uint8_t *) tolerance, + sizeof(*tolerance)); +} +EmberAfStatus SetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * tolerance) +{ + return emberAfWriteServerAttribute(endpoint, BromoformConcentrationMeasurement::Id, Ids::Tolerance, (uint8_t *) &tolerance, + ZCL_SINGLE_ATTRIBUTE_TYPE); +} +} // namespace Attributes +} // namespace BromoformConcentrationMeasurement + +namespace ChlorodibromomethaneConcentrationMeasurement { +namespace Attributes { +EmberAfStatus GetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** measuredValue) +{ + return emberAfReadServerAttribute(endpoint, ChlorodibromomethaneConcentrationMeasurement::Id, Ids::MeasuredValue, + (uint8_t *) measuredValue, sizeof(*measuredValue)); +} +EmberAfStatus SetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * measuredValue) +{ + return emberAfWriteServerAttribute(endpoint, ChlorodibromomethaneConcentrationMeasurement::Id, Ids::MeasuredValue, + (uint8_t *) &measuredValue, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** minMeasuredValue) +{ + return emberAfReadServerAttribute(endpoint, ChlorodibromomethaneConcentrationMeasurement::Id, Ids::MinMeasuredValue, + (uint8_t *) minMeasuredValue, sizeof(*minMeasuredValue)); +} +EmberAfStatus SetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * minMeasuredValue) +{ + return emberAfWriteServerAttribute(endpoint, ChlorodibromomethaneConcentrationMeasurement::Id, Ids::MinMeasuredValue, + (uint8_t *) &minMeasuredValue, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** maxMeasuredValue) +{ + return emberAfReadServerAttribute(endpoint, ChlorodibromomethaneConcentrationMeasurement::Id, Ids::MaxMeasuredValue, + (uint8_t *) maxMeasuredValue, sizeof(*maxMeasuredValue)); +} +EmberAfStatus SetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * maxMeasuredValue) +{ + return emberAfWriteServerAttribute(endpoint, ChlorodibromomethaneConcentrationMeasurement::Id, Ids::MaxMeasuredValue, + (uint8_t *) &maxMeasuredValue, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** tolerance) +{ + return emberAfReadServerAttribute(endpoint, ChlorodibromomethaneConcentrationMeasurement::Id, Ids::Tolerance, + (uint8_t *) tolerance, sizeof(*tolerance)); +} +EmberAfStatus SetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * tolerance) +{ + return emberAfWriteServerAttribute(endpoint, ChlorodibromomethaneConcentrationMeasurement::Id, Ids::Tolerance, + (uint8_t *) &tolerance, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +} // namespace Attributes +} // namespace ChlorodibromomethaneConcentrationMeasurement + +namespace ChloroformConcentrationMeasurement { +namespace Attributes { +EmberAfStatus GetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** measuredValue) +{ + return emberAfReadServerAttribute(endpoint, ChloroformConcentrationMeasurement::Id, Ids::MeasuredValue, + (uint8_t *) measuredValue, sizeof(*measuredValue)); +} +EmberAfStatus SetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * measuredValue) +{ + return emberAfWriteServerAttribute(endpoint, ChloroformConcentrationMeasurement::Id, Ids::MeasuredValue, + (uint8_t *) &measuredValue, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** minMeasuredValue) +{ + return emberAfReadServerAttribute(endpoint, ChloroformConcentrationMeasurement::Id, Ids::MinMeasuredValue, + (uint8_t *) minMeasuredValue, sizeof(*minMeasuredValue)); +} +EmberAfStatus SetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * minMeasuredValue) +{ + return emberAfWriteServerAttribute(endpoint, ChloroformConcentrationMeasurement::Id, Ids::MinMeasuredValue, + (uint8_t *) &minMeasuredValue, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** maxMeasuredValue) +{ + return emberAfReadServerAttribute(endpoint, ChloroformConcentrationMeasurement::Id, Ids::MaxMeasuredValue, + (uint8_t *) maxMeasuredValue, sizeof(*maxMeasuredValue)); +} +EmberAfStatus SetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * maxMeasuredValue) +{ + return emberAfWriteServerAttribute(endpoint, ChloroformConcentrationMeasurement::Id, Ids::MaxMeasuredValue, + (uint8_t *) &maxMeasuredValue, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** tolerance) +{ + return emberAfReadServerAttribute(endpoint, ChloroformConcentrationMeasurement::Id, Ids::Tolerance, (uint8_t *) tolerance, + sizeof(*tolerance)); +} +EmberAfStatus SetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * tolerance) +{ + return emberAfWriteServerAttribute(endpoint, ChloroformConcentrationMeasurement::Id, Ids::Tolerance, (uint8_t *) &tolerance, + ZCL_SINGLE_ATTRIBUTE_TYPE); +} +} // namespace Attributes +} // namespace ChloroformConcentrationMeasurement + +namespace SodiumConcentrationMeasurement { +namespace Attributes { +EmberAfStatus GetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** measuredValue) +{ + return emberAfReadServerAttribute(endpoint, SodiumConcentrationMeasurement::Id, Ids::MeasuredValue, (uint8_t *) measuredValue, + sizeof(*measuredValue)); +} +EmberAfStatus SetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * measuredValue) +{ + return emberAfWriteServerAttribute(endpoint, SodiumConcentrationMeasurement::Id, Ids::MeasuredValue, (uint8_t *) &measuredValue, + ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** minMeasuredValue) +{ + return emberAfReadServerAttribute(endpoint, SodiumConcentrationMeasurement::Id, Ids::MinMeasuredValue, + (uint8_t *) minMeasuredValue, sizeof(*minMeasuredValue)); +} +EmberAfStatus SetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * minMeasuredValue) +{ + return emberAfWriteServerAttribute(endpoint, SodiumConcentrationMeasurement::Id, Ids::MinMeasuredValue, + (uint8_t *) &minMeasuredValue, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** maxMeasuredValue) +{ + return emberAfReadServerAttribute(endpoint, SodiumConcentrationMeasurement::Id, Ids::MaxMeasuredValue, + (uint8_t *) maxMeasuredValue, sizeof(*maxMeasuredValue)); +} +EmberAfStatus SetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * maxMeasuredValue) +{ + return emberAfWriteServerAttribute(endpoint, SodiumConcentrationMeasurement::Id, Ids::MaxMeasuredValue, + (uint8_t *) &maxMeasuredValue, ZCL_SINGLE_ATTRIBUTE_TYPE); +} +EmberAfStatus GetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** tolerance) +{ + return emberAfReadServerAttribute(endpoint, SodiumConcentrationMeasurement::Id, Ids::Tolerance, (uint8_t *) tolerance, + sizeof(*tolerance)); +} +EmberAfStatus SetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * tolerance) +{ + return emberAfWriteServerAttribute(endpoint, SodiumConcentrationMeasurement::Id, Ids::Tolerance, (uint8_t *) &tolerance, + ZCL_SINGLE_ATTRIBUTE_TYPE); +} +} // namespace Attributes +} // namespace SodiumConcentrationMeasurement + +namespace IasZone { +namespace Attributes { +EmberAfStatus GetZoneState(chip::EndpointId endpoint, uint8_t * zoneState) +{ + return emberAfReadServerAttribute(endpoint, IasZone::Id, Ids::ZoneState, (uint8_t *) zoneState, sizeof(*zoneState)); +} +EmberAfStatus SetZoneState(chip::EndpointId endpoint, uint8_t zoneState) +{ + return emberAfWriteServerAttribute(endpoint, IasZone::Id, Ids::ZoneState, (uint8_t *) &zoneState, ZCL_ENUM8_ATTRIBUTE_TYPE); +} +EmberAfStatus GetZoneType(chip::EndpointId endpoint, uint16_t * zoneType) +{ + return emberAfReadServerAttribute(endpoint, IasZone::Id, Ids::ZoneType, (uint8_t *) zoneType, sizeof(*zoneType)); +} +EmberAfStatus SetZoneType(chip::EndpointId endpoint, uint16_t zoneType) +{ + return emberAfWriteServerAttribute(endpoint, IasZone::Id, Ids::ZoneType, (uint8_t *) &zoneType, ZCL_ENUM16_ATTRIBUTE_TYPE); +} +EmberAfStatus GetZoneStatus(chip::EndpointId endpoint, uint16_t * zoneStatus) +{ + return emberAfReadServerAttribute(endpoint, IasZone::Id, Ids::ZoneStatus, (uint8_t *) zoneStatus, sizeof(*zoneStatus)); +} +EmberAfStatus SetZoneStatus(chip::EndpointId endpoint, uint16_t zoneStatus) +{ + return emberAfWriteServerAttribute(endpoint, IasZone::Id, Ids::ZoneStatus, (uint8_t *) &zoneStatus, + ZCL_BITMAP16_ATTRIBUTE_TYPE); +} +EmberAfStatus GetIasCieAddress(chip::EndpointId endpoint, chip::NodeId * iasCieAddress) +{ + return emberAfReadServerAttribute(endpoint, IasZone::Id, Ids::IasCieAddress, (uint8_t *) iasCieAddress, sizeof(*iasCieAddress)); +} +EmberAfStatus SetIasCieAddress(chip::EndpointId endpoint, chip::NodeId iasCieAddress) +{ + return emberAfWriteServerAttribute(endpoint, IasZone::Id, Ids::IasCieAddress, (uint8_t *) &iasCieAddress, + ZCL_NODE_ID_ATTRIBUTE_TYPE); +} +EmberAfStatus GetZoneId(chip::EndpointId endpoint, uint8_t * zoneId) +{ + return emberAfReadServerAttribute(endpoint, IasZone::Id, Ids::ZoneId, (uint8_t *) zoneId, sizeof(*zoneId)); +} +EmberAfStatus SetZoneId(chip::EndpointId endpoint, uint8_t zoneId) +{ + return emberAfWriteServerAttribute(endpoint, IasZone::Id, Ids::ZoneId, (uint8_t *) &zoneId, ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetNumberOfZoneSensitivityLevelsSupported(chip::EndpointId endpoint, uint8_t * numberOfZoneSensitivityLevelsSupported) +{ + return emberAfReadServerAttribute(endpoint, IasZone::Id, Ids::NumberOfZoneSensitivityLevelsSupported, + (uint8_t *) numberOfZoneSensitivityLevelsSupported, + sizeof(*numberOfZoneSensitivityLevelsSupported)); +} +EmberAfStatus SetNumberOfZoneSensitivityLevelsSupported(chip::EndpointId endpoint, uint8_t numberOfZoneSensitivityLevelsSupported) +{ + return emberAfWriteServerAttribute(endpoint, IasZone::Id, Ids::NumberOfZoneSensitivityLevelsSupported, + (uint8_t *) &numberOfZoneSensitivityLevelsSupported, ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetCurrentZoneSensitivityLevel(chip::EndpointId endpoint, uint8_t * currentZoneSensitivityLevel) +{ + return emberAfReadServerAttribute(endpoint, IasZone::Id, Ids::CurrentZoneSensitivityLevel, + (uint8_t *) currentZoneSensitivityLevel, sizeof(*currentZoneSensitivityLevel)); +} +EmberAfStatus SetCurrentZoneSensitivityLevel(chip::EndpointId endpoint, uint8_t currentZoneSensitivityLevel) +{ + return emberAfWriteServerAttribute(endpoint, IasZone::Id, Ids::CurrentZoneSensitivityLevel, + (uint8_t *) ¤tZoneSensitivityLevel, ZCL_INT8U_ATTRIBUTE_TYPE); +} +} // namespace Attributes +} // namespace IasZone + +namespace IasWd { +namespace Attributes { +EmberAfStatus GetMaxDuration(chip::EndpointId endpoint, uint16_t * maxDuration) +{ + return emberAfReadServerAttribute(endpoint, IasWd::Id, Ids::MaxDuration, (uint8_t *) maxDuration, sizeof(*maxDuration)); +} +EmberAfStatus SetMaxDuration(chip::EndpointId endpoint, uint16_t maxDuration) +{ + return emberAfWriteServerAttribute(endpoint, IasWd::Id, Ids::MaxDuration, (uint8_t *) &maxDuration, ZCL_INT16U_ATTRIBUTE_TYPE); +} +} // namespace Attributes +} // namespace IasWd + +namespace WakeOnLan { +namespace Attributes { +} // namespace Attributes +} // namespace WakeOnLan + +namespace TvChannel { +namespace Attributes { +} // namespace Attributes +} // namespace TvChannel + +namespace TargetNavigator { +namespace Attributes { +EmberAfStatus GetCurrentNavigatorTarget(chip::EndpointId endpoint, uint8_t * currentNavigatorTarget) +{ + return emberAfReadServerAttribute(endpoint, TargetNavigator::Id, Ids::CurrentNavigatorTarget, + (uint8_t *) currentNavigatorTarget, sizeof(*currentNavigatorTarget)); +} +EmberAfStatus SetCurrentNavigatorTarget(chip::EndpointId endpoint, uint8_t currentNavigatorTarget) +{ + return emberAfWriteServerAttribute(endpoint, TargetNavigator::Id, Ids::CurrentNavigatorTarget, + (uint8_t *) ¤tNavigatorTarget, ZCL_INT8U_ATTRIBUTE_TYPE); +} +} // namespace Attributes +} // namespace TargetNavigator + +namespace MediaPlayback { +namespace Attributes { +EmberAfStatus GetPlaybackState(chip::EndpointId endpoint, uint8_t * playbackState) +{ + return emberAfReadServerAttribute(endpoint, MediaPlayback::Id, Ids::PlaybackState, (uint8_t *) playbackState, + sizeof(*playbackState)); +} +EmberAfStatus SetPlaybackState(chip::EndpointId endpoint, uint8_t playbackState) +{ + return emberAfWriteServerAttribute(endpoint, MediaPlayback::Id, Ids::PlaybackState, (uint8_t *) &playbackState, + ZCL_ENUM8_ATTRIBUTE_TYPE); +} +EmberAfStatus GetStartTime(chip::EndpointId endpoint, uint64_t * startTime) +{ + return emberAfReadServerAttribute(endpoint, MediaPlayback::Id, Ids::StartTime, (uint8_t *) startTime, sizeof(*startTime)); +} +EmberAfStatus SetStartTime(chip::EndpointId endpoint, uint64_t startTime) +{ + return emberAfWriteServerAttribute(endpoint, MediaPlayback::Id, Ids::StartTime, (uint8_t *) &startTime, + ZCL_INT64U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetDuration(chip::EndpointId endpoint, uint64_t * duration) +{ + return emberAfReadServerAttribute(endpoint, MediaPlayback::Id, Ids::Duration, (uint8_t *) duration, sizeof(*duration)); +} +EmberAfStatus SetDuration(chip::EndpointId endpoint, uint64_t duration) +{ + return emberAfWriteServerAttribute(endpoint, MediaPlayback::Id, Ids::Duration, (uint8_t *) &duration, + ZCL_INT64U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetUpdatedAt(chip::EndpointId endpoint, uint64_t * updatedAt) +{ + return emberAfReadServerAttribute(endpoint, MediaPlayback::Id, Ids::UpdatedAt, (uint8_t *) updatedAt, sizeof(*updatedAt)); +} +EmberAfStatus SetUpdatedAt(chip::EndpointId endpoint, uint64_t updatedAt) +{ + return emberAfWriteServerAttribute(endpoint, MediaPlayback::Id, Ids::UpdatedAt, (uint8_t *) &updatedAt, + ZCL_INT64U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetPosistion(chip::EndpointId endpoint, uint64_t * posistion) +{ + return emberAfReadServerAttribute(endpoint, MediaPlayback::Id, Ids::Posistion, (uint8_t *) posistion, sizeof(*posistion)); +} +EmberAfStatus SetPosistion(chip::EndpointId endpoint, uint64_t posistion) +{ + return emberAfWriteServerAttribute(endpoint, MediaPlayback::Id, Ids::Posistion, (uint8_t *) &posistion, + ZCL_INT64U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetPlaybackSpeed(chip::EndpointId endpoint, uint64_t * playbackSpeed) +{ + return emberAfReadServerAttribute(endpoint, MediaPlayback::Id, Ids::PlaybackSpeed, (uint8_t *) playbackSpeed, + sizeof(*playbackSpeed)); +} +EmberAfStatus SetPlaybackSpeed(chip::EndpointId endpoint, uint64_t playbackSpeed) +{ + return emberAfWriteServerAttribute(endpoint, MediaPlayback::Id, Ids::PlaybackSpeed, (uint8_t *) &playbackSpeed, + ZCL_INT64U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetSeekRangeEnd(chip::EndpointId endpoint, uint64_t * seekRangeEnd) +{ + return emberAfReadServerAttribute(endpoint, MediaPlayback::Id, Ids::SeekRangeEnd, (uint8_t *) seekRangeEnd, + sizeof(*seekRangeEnd)); +} +EmberAfStatus SetSeekRangeEnd(chip::EndpointId endpoint, uint64_t seekRangeEnd) +{ + return emberAfWriteServerAttribute(endpoint, MediaPlayback::Id, Ids::SeekRangeEnd, (uint8_t *) &seekRangeEnd, + ZCL_INT64U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetSeekRangeStart(chip::EndpointId endpoint, uint64_t * seekRangeStart) +{ + return emberAfReadServerAttribute(endpoint, MediaPlayback::Id, Ids::SeekRangeStart, (uint8_t *) seekRangeStart, + sizeof(*seekRangeStart)); +} +EmberAfStatus SetSeekRangeStart(chip::EndpointId endpoint, uint64_t seekRangeStart) +{ + return emberAfWriteServerAttribute(endpoint, MediaPlayback::Id, Ids::SeekRangeStart, (uint8_t *) &seekRangeStart, + ZCL_INT64U_ATTRIBUTE_TYPE); +} +} // namespace Attributes +} // namespace MediaPlayback + +namespace MediaInput { +namespace Attributes { +EmberAfStatus GetCurrentMediaInput(chip::EndpointId endpoint, uint8_t * currentMediaInput) +{ + return emberAfReadServerAttribute(endpoint, MediaInput::Id, Ids::CurrentMediaInput, (uint8_t *) currentMediaInput, + sizeof(*currentMediaInput)); +} +EmberAfStatus SetCurrentMediaInput(chip::EndpointId endpoint, uint8_t currentMediaInput) +{ + return emberAfWriteServerAttribute(endpoint, MediaInput::Id, Ids::CurrentMediaInput, (uint8_t *) ¤tMediaInput, + ZCL_INT8U_ATTRIBUTE_TYPE); +} +} // namespace Attributes +} // namespace MediaInput + +namespace ContentLauncher { +namespace Attributes { +} // namespace Attributes +} // namespace ContentLauncher + +namespace AudioOutput { +namespace Attributes { +EmberAfStatus GetCurrentAudioOutput(chip::EndpointId endpoint, uint8_t * currentAudioOutput) +{ + return emberAfReadServerAttribute(endpoint, AudioOutput::Id, Ids::CurrentAudioOutput, (uint8_t *) currentAudioOutput, + sizeof(*currentAudioOutput)); +} +EmberAfStatus SetCurrentAudioOutput(chip::EndpointId endpoint, uint8_t currentAudioOutput) +{ + return emberAfWriteServerAttribute(endpoint, AudioOutput::Id, Ids::CurrentAudioOutput, (uint8_t *) ¤tAudioOutput, + ZCL_INT8U_ATTRIBUTE_TYPE); +} +} // namespace Attributes +} // namespace AudioOutput + +namespace ApplicationLauncher { +namespace Attributes { +EmberAfStatus GetCatalogVendorId(chip::EndpointId endpoint, uint8_t * catalogVendorId) +{ + return emberAfReadServerAttribute(endpoint, ApplicationLauncher::Id, Ids::CatalogVendorId, (uint8_t *) catalogVendorId, + sizeof(*catalogVendorId)); +} +EmberAfStatus SetCatalogVendorId(chip::EndpointId endpoint, uint8_t catalogVendorId) +{ + return emberAfWriteServerAttribute(endpoint, ApplicationLauncher::Id, Ids::CatalogVendorId, (uint8_t *) &catalogVendorId, + ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetApplicationId(chip::EndpointId endpoint, uint8_t * applicationId) +{ + return emberAfReadServerAttribute(endpoint, ApplicationLauncher::Id, Ids::ApplicationId, (uint8_t *) applicationId, + sizeof(*applicationId)); +} +EmberAfStatus SetApplicationId(chip::EndpointId endpoint, uint8_t applicationId) +{ + return emberAfWriteServerAttribute(endpoint, ApplicationLauncher::Id, Ids::ApplicationId, (uint8_t *) &applicationId, + ZCL_INT8U_ATTRIBUTE_TYPE); +} +} // namespace Attributes +} // namespace ApplicationLauncher + +namespace ApplicationBasic { +namespace Attributes { +EmberAfStatus GetVendorId(chip::EndpointId endpoint, uint16_t * vendorId) +{ + return emberAfReadServerAttribute(endpoint, ApplicationBasic::Id, Ids::VendorId, (uint8_t *) vendorId, sizeof(*vendorId)); +} +EmberAfStatus SetVendorId(chip::EndpointId endpoint, uint16_t vendorId) +{ + return emberAfWriteServerAttribute(endpoint, ApplicationBasic::Id, Ids::VendorId, (uint8_t *) &vendorId, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetProductId(chip::EndpointId endpoint, uint16_t * productId) +{ + return emberAfReadServerAttribute(endpoint, ApplicationBasic::Id, Ids::ProductId, (uint8_t *) productId, sizeof(*productId)); +} +EmberAfStatus SetProductId(chip::EndpointId endpoint, uint16_t productId) +{ + return emberAfWriteServerAttribute(endpoint, ApplicationBasic::Id, Ids::ProductId, (uint8_t *) &productId, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetCatalogVendorId(chip::EndpointId endpoint, uint16_t * catalogVendorId) +{ + return emberAfReadServerAttribute(endpoint, ApplicationBasic::Id, Ids::CatalogVendorId, (uint8_t *) catalogVendorId, + sizeof(*catalogVendorId)); +} +EmberAfStatus SetCatalogVendorId(chip::EndpointId endpoint, uint16_t catalogVendorId) +{ + return emberAfWriteServerAttribute(endpoint, ApplicationBasic::Id, Ids::CatalogVendorId, (uint8_t *) &catalogVendorId, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetApplicationStatus(chip::EndpointId endpoint, uint8_t * applicationStatus) +{ + return emberAfReadServerAttribute(endpoint, ApplicationBasic::Id, Ids::ApplicationStatus, (uint8_t *) applicationStatus, + sizeof(*applicationStatus)); +} +EmberAfStatus SetApplicationStatus(chip::EndpointId endpoint, uint8_t applicationStatus) +{ + return emberAfWriteServerAttribute(endpoint, ApplicationBasic::Id, Ids::ApplicationStatus, (uint8_t *) &applicationStatus, + ZCL_ENUM8_ATTRIBUTE_TYPE); +} +} // namespace Attributes +} // namespace ApplicationBasic + +namespace TestCluster { +namespace Attributes { +EmberAfStatus GetBoolean(chip::EndpointId endpoint, uint8_t * boolean) +{ + return emberAfReadServerAttribute(endpoint, TestCluster::Id, Ids::Boolean, (uint8_t *) boolean, sizeof(*boolean)); +} +EmberAfStatus SetBoolean(chip::EndpointId endpoint, uint8_t boolean) +{ + return emberAfWriteServerAttribute(endpoint, TestCluster::Id, Ids::Boolean, (uint8_t *) &boolean, ZCL_BOOLEAN_ATTRIBUTE_TYPE); +} +EmberAfStatus GetBitmap8(chip::EndpointId endpoint, uint8_t * bitmap8) +{ + return emberAfReadServerAttribute(endpoint, TestCluster::Id, Ids::Bitmap8, (uint8_t *) bitmap8, sizeof(*bitmap8)); +} +EmberAfStatus SetBitmap8(chip::EndpointId endpoint, uint8_t bitmap8) +{ + return emberAfWriteServerAttribute(endpoint, TestCluster::Id, Ids::Bitmap8, (uint8_t *) &bitmap8, ZCL_BITMAP8_ATTRIBUTE_TYPE); +} +EmberAfStatus GetBitmap16(chip::EndpointId endpoint, uint16_t * bitmap16) +{ + return emberAfReadServerAttribute(endpoint, TestCluster::Id, Ids::Bitmap16, (uint8_t *) bitmap16, sizeof(*bitmap16)); +} +EmberAfStatus SetBitmap16(chip::EndpointId endpoint, uint16_t bitmap16) +{ + return emberAfWriteServerAttribute(endpoint, TestCluster::Id, Ids::Bitmap16, (uint8_t *) &bitmap16, + ZCL_BITMAP16_ATTRIBUTE_TYPE); +} +EmberAfStatus GetBitmap32(chip::EndpointId endpoint, uint32_t * bitmap32) +{ + return emberAfReadServerAttribute(endpoint, TestCluster::Id, Ids::Bitmap32, (uint8_t *) bitmap32, sizeof(*bitmap32)); +} +EmberAfStatus SetBitmap32(chip::EndpointId endpoint, uint32_t bitmap32) +{ + return emberAfWriteServerAttribute(endpoint, TestCluster::Id, Ids::Bitmap32, (uint8_t *) &bitmap32, + ZCL_BITMAP32_ATTRIBUTE_TYPE); +} +EmberAfStatus GetBitmap64(chip::EndpointId endpoint, uint64_t * bitmap64) +{ + return emberAfReadServerAttribute(endpoint, TestCluster::Id, Ids::Bitmap64, (uint8_t *) bitmap64, sizeof(*bitmap64)); +} +EmberAfStatus SetBitmap64(chip::EndpointId endpoint, uint64_t bitmap64) +{ + return emberAfWriteServerAttribute(endpoint, TestCluster::Id, Ids::Bitmap64, (uint8_t *) &bitmap64, + ZCL_BITMAP64_ATTRIBUTE_TYPE); +} +EmberAfStatus GetInt8u(chip::EndpointId endpoint, uint8_t * int8u) +{ + return emberAfReadServerAttribute(endpoint, TestCluster::Id, Ids::Int8u, (uint8_t *) int8u, sizeof(*int8u)); +} +EmberAfStatus SetInt8u(chip::EndpointId endpoint, uint8_t int8u) +{ + return emberAfWriteServerAttribute(endpoint, TestCluster::Id, Ids::Int8u, (uint8_t *) &int8u, ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetInt16u(chip::EndpointId endpoint, uint16_t * int16u) +{ + return emberAfReadServerAttribute(endpoint, TestCluster::Id, Ids::Int16u, (uint8_t *) int16u, sizeof(*int16u)); +} +EmberAfStatus SetInt16u(chip::EndpointId endpoint, uint16_t int16u) +{ + return emberAfWriteServerAttribute(endpoint, TestCluster::Id, Ids::Int16u, (uint8_t *) &int16u, ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetInt32u(chip::EndpointId endpoint, uint32_t * int32u) +{ + return emberAfReadServerAttribute(endpoint, TestCluster::Id, Ids::Int32u, (uint8_t *) int32u, sizeof(*int32u)); +} +EmberAfStatus SetInt32u(chip::EndpointId endpoint, uint32_t int32u) +{ + return emberAfWriteServerAttribute(endpoint, TestCluster::Id, Ids::Int32u, (uint8_t *) &int32u, ZCL_INT32U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetInt64u(chip::EndpointId endpoint, uint64_t * int64u) +{ + return emberAfReadServerAttribute(endpoint, TestCluster::Id, Ids::Int64u, (uint8_t *) int64u, sizeof(*int64u)); +} +EmberAfStatus SetInt64u(chip::EndpointId endpoint, uint64_t int64u) +{ + return emberAfWriteServerAttribute(endpoint, TestCluster::Id, Ids::Int64u, (uint8_t *) &int64u, ZCL_INT64U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetInt8s(chip::EndpointId endpoint, int8_t * int8s) +{ + return emberAfReadServerAttribute(endpoint, TestCluster::Id, Ids::Int8s, (uint8_t *) int8s, sizeof(*int8s)); +} +EmberAfStatus SetInt8s(chip::EndpointId endpoint, int8_t int8s) +{ + return emberAfWriteServerAttribute(endpoint, TestCluster::Id, Ids::Int8s, (uint8_t *) &int8s, ZCL_INT8S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetInt16s(chip::EndpointId endpoint, int16_t * int16s) +{ + return emberAfReadServerAttribute(endpoint, TestCluster::Id, Ids::Int16s, (uint8_t *) int16s, sizeof(*int16s)); +} +EmberAfStatus SetInt16s(chip::EndpointId endpoint, int16_t int16s) +{ + return emberAfWriteServerAttribute(endpoint, TestCluster::Id, Ids::Int16s, (uint8_t *) &int16s, ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetInt32s(chip::EndpointId endpoint, int32_t * int32s) +{ + return emberAfReadServerAttribute(endpoint, TestCluster::Id, Ids::Int32s, (uint8_t *) int32s, sizeof(*int32s)); +} +EmberAfStatus SetInt32s(chip::EndpointId endpoint, int32_t int32s) +{ + return emberAfWriteServerAttribute(endpoint, TestCluster::Id, Ids::Int32s, (uint8_t *) &int32s, ZCL_INT32S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetInt64s(chip::EndpointId endpoint, int64_t * int64s) +{ + return emberAfReadServerAttribute(endpoint, TestCluster::Id, Ids::Int64s, (uint8_t *) int64s, sizeof(*int64s)); +} +EmberAfStatus SetInt64s(chip::EndpointId endpoint, int64_t int64s) +{ + return emberAfWriteServerAttribute(endpoint, TestCluster::Id, Ids::Int64s, (uint8_t *) &int64s, ZCL_INT64S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetEnum8(chip::EndpointId endpoint, uint8_t * enum8) +{ + return emberAfReadServerAttribute(endpoint, TestCluster::Id, Ids::Enum8, (uint8_t *) enum8, sizeof(*enum8)); +} +EmberAfStatus SetEnum8(chip::EndpointId endpoint, uint8_t enum8) +{ + return emberAfWriteServerAttribute(endpoint, TestCluster::Id, Ids::Enum8, (uint8_t *) &enum8, ZCL_ENUM8_ATTRIBUTE_TYPE); +} +EmberAfStatus GetEnum16(chip::EndpointId endpoint, uint16_t * enum16) +{ + return emberAfReadServerAttribute(endpoint, TestCluster::Id, Ids::Enum16, (uint8_t *) enum16, sizeof(*enum16)); +} +EmberAfStatus SetEnum16(chip::EndpointId endpoint, uint16_t enum16) +{ + return emberAfWriteServerAttribute(endpoint, TestCluster::Id, Ids::Enum16, (uint8_t *) &enum16, ZCL_ENUM16_ATTRIBUTE_TYPE); +} +EmberAfStatus GetUnsupported(chip::EndpointId endpoint, uint8_t * unsupported) +{ + return emberAfReadServerAttribute(endpoint, TestCluster::Id, Ids::Unsupported, (uint8_t *) unsupported, sizeof(*unsupported)); +} +EmberAfStatus SetUnsupported(chip::EndpointId endpoint, uint8_t unsupported) +{ + return emberAfWriteServerAttribute(endpoint, TestCluster::Id, Ids::Unsupported, (uint8_t *) &unsupported, + ZCL_BOOLEAN_ATTRIBUTE_TYPE); +} +} // namespace Attributes +} // namespace TestCluster + +namespace ApplianceIdentification { +namespace Attributes { +EmberAfStatus GetCompanyId(chip::EndpointId endpoint, uint16_t * companyId) +{ + return emberAfReadServerAttribute(endpoint, ApplianceIdentification::Id, Ids::CompanyId, (uint8_t *) companyId, + sizeof(*companyId)); +} +EmberAfStatus SetCompanyId(chip::EndpointId endpoint, uint16_t companyId) +{ + return emberAfWriteServerAttribute(endpoint, ApplianceIdentification::Id, Ids::CompanyId, (uint8_t *) &companyId, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetBrandId(chip::EndpointId endpoint, uint16_t * brandId) +{ + return emberAfReadServerAttribute(endpoint, ApplianceIdentification::Id, Ids::BrandId, (uint8_t *) brandId, sizeof(*brandId)); +} +EmberAfStatus SetBrandId(chip::EndpointId endpoint, uint16_t brandId) +{ + return emberAfWriteServerAttribute(endpoint, ApplianceIdentification::Id, Ids::BrandId, (uint8_t *) &brandId, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetProductTypeId(chip::EndpointId endpoint, uint16_t * productTypeId) +{ + return emberAfReadServerAttribute(endpoint, ApplianceIdentification::Id, Ids::ProductTypeId, (uint8_t *) productTypeId, + sizeof(*productTypeId)); +} +EmberAfStatus SetProductTypeId(chip::EndpointId endpoint, uint16_t productTypeId) +{ + return emberAfWriteServerAttribute(endpoint, ApplianceIdentification::Id, Ids::ProductTypeId, (uint8_t *) &productTypeId, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetCecedSpecificationVersion(chip::EndpointId endpoint, uint8_t * cecedSpecificationVersion) +{ + return emberAfReadServerAttribute(endpoint, ApplianceIdentification::Id, Ids::CecedSpecificationVersion, + (uint8_t *) cecedSpecificationVersion, sizeof(*cecedSpecificationVersion)); +} +EmberAfStatus SetCecedSpecificationVersion(chip::EndpointId endpoint, uint8_t cecedSpecificationVersion) +{ + return emberAfWriteServerAttribute(endpoint, ApplianceIdentification::Id, Ids::CecedSpecificationVersion, + (uint8_t *) &cecedSpecificationVersion, ZCL_INT8U_ATTRIBUTE_TYPE); +} +} // namespace Attributes +} // namespace ApplianceIdentification + +namespace MeterIdentification { +namespace Attributes { +EmberAfStatus GetMeterTypeId(chip::EndpointId endpoint, uint16_t * meterTypeId) +{ + return emberAfReadServerAttribute(endpoint, MeterIdentification::Id, Ids::MeterTypeId, (uint8_t *) meterTypeId, + sizeof(*meterTypeId)); +} +EmberAfStatus SetMeterTypeId(chip::EndpointId endpoint, uint16_t meterTypeId) +{ + return emberAfWriteServerAttribute(endpoint, MeterIdentification::Id, Ids::MeterTypeId, (uint8_t *) &meterTypeId, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetDataQualityId(chip::EndpointId endpoint, uint16_t * dataQualityId) +{ + return emberAfReadServerAttribute(endpoint, MeterIdentification::Id, Ids::DataQualityId, (uint8_t *) dataQualityId, + sizeof(*dataQualityId)); +} +EmberAfStatus SetDataQualityId(chip::EndpointId endpoint, uint16_t dataQualityId) +{ + return emberAfWriteServerAttribute(endpoint, MeterIdentification::Id, Ids::DataQualityId, (uint8_t *) &dataQualityId, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +} // namespace Attributes +} // namespace MeterIdentification + +namespace ApplianceStatistics { +namespace Attributes { +EmberAfStatus GetLogMaxSize(chip::EndpointId endpoint, uint32_t * logMaxSize) +{ + return emberAfReadServerAttribute(endpoint, ApplianceStatistics::Id, Ids::LogMaxSize, (uint8_t *) logMaxSize, + sizeof(*logMaxSize)); +} +EmberAfStatus SetLogMaxSize(chip::EndpointId endpoint, uint32_t logMaxSize) +{ + return emberAfWriteServerAttribute(endpoint, ApplianceStatistics::Id, Ids::LogMaxSize, (uint8_t *) &logMaxSize, + ZCL_INT32U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetLogQueueMaxSize(chip::EndpointId endpoint, uint8_t * logQueueMaxSize) +{ + return emberAfReadServerAttribute(endpoint, ApplianceStatistics::Id, Ids::LogQueueMaxSize, (uint8_t *) logQueueMaxSize, + sizeof(*logQueueMaxSize)); +} +EmberAfStatus SetLogQueueMaxSize(chip::EndpointId endpoint, uint8_t logQueueMaxSize) +{ + return emberAfWriteServerAttribute(endpoint, ApplianceStatistics::Id, Ids::LogQueueMaxSize, (uint8_t *) &logQueueMaxSize, + ZCL_INT8U_ATTRIBUTE_TYPE); +} +} // namespace Attributes +} // namespace ApplianceStatistics + +namespace ElectricalMeasurement { +namespace Attributes { +EmberAfStatus GetMeasurementType(chip::EndpointId endpoint, uint32_t * measurementType) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::MeasurementType, (uint8_t *) measurementType, + sizeof(*measurementType)); +} +EmberAfStatus SetMeasurementType(chip::EndpointId endpoint, uint32_t measurementType) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::MeasurementType, (uint8_t *) &measurementType, + ZCL_BITMAP32_ATTRIBUTE_TYPE); +} +EmberAfStatus GetDcVoltage(chip::EndpointId endpoint, int16_t * dcVoltage) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::DcVoltage, (uint8_t *) dcVoltage, + sizeof(*dcVoltage)); +} +EmberAfStatus SetDcVoltage(chip::EndpointId endpoint, int16_t dcVoltage) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::DcVoltage, (uint8_t *) &dcVoltage, + ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetDcVoltageMin(chip::EndpointId endpoint, int16_t * dcVoltageMin) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::DcVoltageMin, (uint8_t *) dcVoltageMin, + sizeof(*dcVoltageMin)); +} +EmberAfStatus SetDcVoltageMin(chip::EndpointId endpoint, int16_t dcVoltageMin) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::DcVoltageMin, (uint8_t *) &dcVoltageMin, + ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetDcVoltageMax(chip::EndpointId endpoint, int16_t * dcVoltageMax) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::DcVoltageMax, (uint8_t *) dcVoltageMax, + sizeof(*dcVoltageMax)); +} +EmberAfStatus SetDcVoltageMax(chip::EndpointId endpoint, int16_t dcVoltageMax) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::DcVoltageMax, (uint8_t *) &dcVoltageMax, + ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetDcCurrent(chip::EndpointId endpoint, int16_t * dcCurrent) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::DcCurrent, (uint8_t *) dcCurrent, + sizeof(*dcCurrent)); +} +EmberAfStatus SetDcCurrent(chip::EndpointId endpoint, int16_t dcCurrent) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::DcCurrent, (uint8_t *) &dcCurrent, + ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetDcCurrentMin(chip::EndpointId endpoint, int16_t * dcCurrentMin) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::DcCurrentMin, (uint8_t *) dcCurrentMin, + sizeof(*dcCurrentMin)); +} +EmberAfStatus SetDcCurrentMin(chip::EndpointId endpoint, int16_t dcCurrentMin) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::DcCurrentMin, (uint8_t *) &dcCurrentMin, + ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetDcCurrentMax(chip::EndpointId endpoint, int16_t * dcCurrentMax) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::DcCurrentMax, (uint8_t *) dcCurrentMax, + sizeof(*dcCurrentMax)); +} +EmberAfStatus SetDcCurrentMax(chip::EndpointId endpoint, int16_t dcCurrentMax) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::DcCurrentMax, (uint8_t *) &dcCurrentMax, + ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetDcPower(chip::EndpointId endpoint, int16_t * dcPower) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::DcPower, (uint8_t *) dcPower, sizeof(*dcPower)); +} +EmberAfStatus SetDcPower(chip::EndpointId endpoint, int16_t dcPower) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::DcPower, (uint8_t *) &dcPower, + ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetDcPowerMin(chip::EndpointId endpoint, int16_t * dcPowerMin) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::DcPowerMin, (uint8_t *) dcPowerMin, + sizeof(*dcPowerMin)); +} +EmberAfStatus SetDcPowerMin(chip::EndpointId endpoint, int16_t dcPowerMin) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::DcPowerMin, (uint8_t *) &dcPowerMin, + ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetDcPowerMax(chip::EndpointId endpoint, int16_t * dcPowerMax) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::DcPowerMax, (uint8_t *) dcPowerMax, + sizeof(*dcPowerMax)); +} +EmberAfStatus SetDcPowerMax(chip::EndpointId endpoint, int16_t dcPowerMax) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::DcPowerMax, (uint8_t *) &dcPowerMax, + ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetDcVoltageMultiplier(chip::EndpointId endpoint, uint16_t * dcVoltageMultiplier) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::DcVoltageMultiplier, + (uint8_t *) dcVoltageMultiplier, sizeof(*dcVoltageMultiplier)); +} +EmberAfStatus SetDcVoltageMultiplier(chip::EndpointId endpoint, uint16_t dcVoltageMultiplier) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::DcVoltageMultiplier, + (uint8_t *) &dcVoltageMultiplier, ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetDcVoltageDivisor(chip::EndpointId endpoint, uint16_t * dcVoltageDivisor) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::DcVoltageDivisor, (uint8_t *) dcVoltageDivisor, + sizeof(*dcVoltageDivisor)); +} +EmberAfStatus SetDcVoltageDivisor(chip::EndpointId endpoint, uint16_t dcVoltageDivisor) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::DcVoltageDivisor, (uint8_t *) &dcVoltageDivisor, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetDcCurrentMultiplier(chip::EndpointId endpoint, uint16_t * dcCurrentMultiplier) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::DcCurrentMultiplier, + (uint8_t *) dcCurrentMultiplier, sizeof(*dcCurrentMultiplier)); +} +EmberAfStatus SetDcCurrentMultiplier(chip::EndpointId endpoint, uint16_t dcCurrentMultiplier) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::DcCurrentMultiplier, + (uint8_t *) &dcCurrentMultiplier, ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetDcCurrentDivisor(chip::EndpointId endpoint, uint16_t * dcCurrentDivisor) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::DcCurrentDivisor, (uint8_t *) dcCurrentDivisor, + sizeof(*dcCurrentDivisor)); +} +EmberAfStatus SetDcCurrentDivisor(chip::EndpointId endpoint, uint16_t dcCurrentDivisor) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::DcCurrentDivisor, (uint8_t *) &dcCurrentDivisor, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetDcPowerMultiplier(chip::EndpointId endpoint, uint16_t * dcPowerMultiplier) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::DcPowerMultiplier, (uint8_t *) dcPowerMultiplier, + sizeof(*dcPowerMultiplier)); +} +EmberAfStatus SetDcPowerMultiplier(chip::EndpointId endpoint, uint16_t dcPowerMultiplier) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::DcPowerMultiplier, (uint8_t *) &dcPowerMultiplier, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetDcPowerDivisor(chip::EndpointId endpoint, uint16_t * dcPowerDivisor) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::DcPowerDivisor, (uint8_t *) dcPowerDivisor, + sizeof(*dcPowerDivisor)); +} +EmberAfStatus SetDcPowerDivisor(chip::EndpointId endpoint, uint16_t dcPowerDivisor) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::DcPowerDivisor, (uint8_t *) &dcPowerDivisor, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetAcFrequency(chip::EndpointId endpoint, uint16_t * acFrequency) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::AcFrequency, (uint8_t *) acFrequency, + sizeof(*acFrequency)); +} +EmberAfStatus SetAcFrequency(chip::EndpointId endpoint, uint16_t acFrequency) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::AcFrequency, (uint8_t *) &acFrequency, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetAcFrequencyMin(chip::EndpointId endpoint, uint16_t * acFrequencyMin) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::AcFrequencyMin, (uint8_t *) acFrequencyMin, + sizeof(*acFrequencyMin)); +} +EmberAfStatus SetAcFrequencyMin(chip::EndpointId endpoint, uint16_t acFrequencyMin) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::AcFrequencyMin, (uint8_t *) &acFrequencyMin, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetAcFrequencyMax(chip::EndpointId endpoint, uint16_t * acFrequencyMax) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::AcFrequencyMax, (uint8_t *) acFrequencyMax, + sizeof(*acFrequencyMax)); +} +EmberAfStatus SetAcFrequencyMax(chip::EndpointId endpoint, uint16_t acFrequencyMax) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::AcFrequencyMax, (uint8_t *) &acFrequencyMax, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetNeutralCurrent(chip::EndpointId endpoint, uint16_t * neutralCurrent) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::NeutralCurrent, (uint8_t *) neutralCurrent, + sizeof(*neutralCurrent)); +} +EmberAfStatus SetNeutralCurrent(chip::EndpointId endpoint, uint16_t neutralCurrent) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::NeutralCurrent, (uint8_t *) &neutralCurrent, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetTotalActivePower(chip::EndpointId endpoint, int32_t * totalActivePower) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::TotalActivePower, (uint8_t *) totalActivePower, + sizeof(*totalActivePower)); +} +EmberAfStatus SetTotalActivePower(chip::EndpointId endpoint, int32_t totalActivePower) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::TotalActivePower, (uint8_t *) &totalActivePower, + ZCL_INT32S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetTotalReactivePower(chip::EndpointId endpoint, int32_t * totalReactivePower) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::TotalReactivePower, (uint8_t *) totalReactivePower, + sizeof(*totalReactivePower)); +} +EmberAfStatus SetTotalReactivePower(chip::EndpointId endpoint, int32_t totalReactivePower) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::TotalReactivePower, + (uint8_t *) &totalReactivePower, ZCL_INT32S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetTotalApparentPower(chip::EndpointId endpoint, uint32_t * totalApparentPower) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::TotalApparentPower, (uint8_t *) totalApparentPower, + sizeof(*totalApparentPower)); +} +EmberAfStatus SetTotalApparentPower(chip::EndpointId endpoint, uint32_t totalApparentPower) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::TotalApparentPower, + (uint8_t *) &totalApparentPower, ZCL_INT32U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMeasured1stHarmonicCurrent(chip::EndpointId endpoint, int16_t * measured1stHarmonicCurrent) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::Measured1stHarmonicCurrent, + (uint8_t *) measured1stHarmonicCurrent, sizeof(*measured1stHarmonicCurrent)); +} +EmberAfStatus SetMeasured1stHarmonicCurrent(chip::EndpointId endpoint, int16_t measured1stHarmonicCurrent) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::Measured1stHarmonicCurrent, + (uint8_t *) &measured1stHarmonicCurrent, ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMeasured3rdHarmonicCurrent(chip::EndpointId endpoint, int16_t * measured3rdHarmonicCurrent) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::Measured3rdHarmonicCurrent, + (uint8_t *) measured3rdHarmonicCurrent, sizeof(*measured3rdHarmonicCurrent)); +} +EmberAfStatus SetMeasured3rdHarmonicCurrent(chip::EndpointId endpoint, int16_t measured3rdHarmonicCurrent) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::Measured3rdHarmonicCurrent, + (uint8_t *) &measured3rdHarmonicCurrent, ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMeasured5thHarmonicCurrent(chip::EndpointId endpoint, int16_t * measured5thHarmonicCurrent) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::Measured5thHarmonicCurrent, + (uint8_t *) measured5thHarmonicCurrent, sizeof(*measured5thHarmonicCurrent)); +} +EmberAfStatus SetMeasured5thHarmonicCurrent(chip::EndpointId endpoint, int16_t measured5thHarmonicCurrent) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::Measured5thHarmonicCurrent, + (uint8_t *) &measured5thHarmonicCurrent, ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMeasured7thHarmonicCurrent(chip::EndpointId endpoint, int16_t * measured7thHarmonicCurrent) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::Measured7thHarmonicCurrent, + (uint8_t *) measured7thHarmonicCurrent, sizeof(*measured7thHarmonicCurrent)); +} +EmberAfStatus SetMeasured7thHarmonicCurrent(chip::EndpointId endpoint, int16_t measured7thHarmonicCurrent) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::Measured7thHarmonicCurrent, + (uint8_t *) &measured7thHarmonicCurrent, ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMeasured9thHarmonicCurrent(chip::EndpointId endpoint, int16_t * measured9thHarmonicCurrent) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::Measured9thHarmonicCurrent, + (uint8_t *) measured9thHarmonicCurrent, sizeof(*measured9thHarmonicCurrent)); +} +EmberAfStatus SetMeasured9thHarmonicCurrent(chip::EndpointId endpoint, int16_t measured9thHarmonicCurrent) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::Measured9thHarmonicCurrent, + (uint8_t *) &measured9thHarmonicCurrent, ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMeasured11thHarmonicCurrent(chip::EndpointId endpoint, int16_t * measured11thHarmonicCurrent) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::Measured11thHarmonicCurrent, + (uint8_t *) measured11thHarmonicCurrent, sizeof(*measured11thHarmonicCurrent)); +} +EmberAfStatus SetMeasured11thHarmonicCurrent(chip::EndpointId endpoint, int16_t measured11thHarmonicCurrent) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::Measured11thHarmonicCurrent, + (uint8_t *) &measured11thHarmonicCurrent, ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMeasuredPhase1stHarmonicCurrent(chip::EndpointId endpoint, int16_t * measuredPhase1stHarmonicCurrent) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::MeasuredPhase1stHarmonicCurrent, + (uint8_t *) measuredPhase1stHarmonicCurrent, sizeof(*measuredPhase1stHarmonicCurrent)); +} +EmberAfStatus SetMeasuredPhase1stHarmonicCurrent(chip::EndpointId endpoint, int16_t measuredPhase1stHarmonicCurrent) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::MeasuredPhase1stHarmonicCurrent, + (uint8_t *) &measuredPhase1stHarmonicCurrent, ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMeasuredPhase3rdHarmonicCurrent(chip::EndpointId endpoint, int16_t * measuredPhase3rdHarmonicCurrent) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::MeasuredPhase3rdHarmonicCurrent, + (uint8_t *) measuredPhase3rdHarmonicCurrent, sizeof(*measuredPhase3rdHarmonicCurrent)); +} +EmberAfStatus SetMeasuredPhase3rdHarmonicCurrent(chip::EndpointId endpoint, int16_t measuredPhase3rdHarmonicCurrent) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::MeasuredPhase3rdHarmonicCurrent, + (uint8_t *) &measuredPhase3rdHarmonicCurrent, ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMeasuredPhase5thHarmonicCurrent(chip::EndpointId endpoint, int16_t * measuredPhase5thHarmonicCurrent) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::MeasuredPhase5thHarmonicCurrent, + (uint8_t *) measuredPhase5thHarmonicCurrent, sizeof(*measuredPhase5thHarmonicCurrent)); +} +EmberAfStatus SetMeasuredPhase5thHarmonicCurrent(chip::EndpointId endpoint, int16_t measuredPhase5thHarmonicCurrent) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::MeasuredPhase5thHarmonicCurrent, + (uint8_t *) &measuredPhase5thHarmonicCurrent, ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMeasuredPhase7thHarmonicCurrent(chip::EndpointId endpoint, int16_t * measuredPhase7thHarmonicCurrent) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::MeasuredPhase7thHarmonicCurrent, + (uint8_t *) measuredPhase7thHarmonicCurrent, sizeof(*measuredPhase7thHarmonicCurrent)); +} +EmberAfStatus SetMeasuredPhase7thHarmonicCurrent(chip::EndpointId endpoint, int16_t measuredPhase7thHarmonicCurrent) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::MeasuredPhase7thHarmonicCurrent, + (uint8_t *) &measuredPhase7thHarmonicCurrent, ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMeasuredPhase9thHarmonicCurrent(chip::EndpointId endpoint, int16_t * measuredPhase9thHarmonicCurrent) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::MeasuredPhase9thHarmonicCurrent, + (uint8_t *) measuredPhase9thHarmonicCurrent, sizeof(*measuredPhase9thHarmonicCurrent)); +} +EmberAfStatus SetMeasuredPhase9thHarmonicCurrent(chip::EndpointId endpoint, int16_t measuredPhase9thHarmonicCurrent) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::MeasuredPhase9thHarmonicCurrent, + (uint8_t *) &measuredPhase9thHarmonicCurrent, ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetMeasuredPhase11thHarmonicCurrent(chip::EndpointId endpoint, int16_t * measuredPhase11thHarmonicCurrent) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::MeasuredPhase11thHarmonicCurrent, + (uint8_t *) measuredPhase11thHarmonicCurrent, sizeof(*measuredPhase11thHarmonicCurrent)); +} +EmberAfStatus SetMeasuredPhase11thHarmonicCurrent(chip::EndpointId endpoint, int16_t measuredPhase11thHarmonicCurrent) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::MeasuredPhase11thHarmonicCurrent, + (uint8_t *) &measuredPhase11thHarmonicCurrent, ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetAcFrequencyMultiplier(chip::EndpointId endpoint, uint16_t * acFrequencyMultiplier) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::AcFrequencyMultiplier, + (uint8_t *) acFrequencyMultiplier, sizeof(*acFrequencyMultiplier)); +} +EmberAfStatus SetAcFrequencyMultiplier(chip::EndpointId endpoint, uint16_t acFrequencyMultiplier) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::AcFrequencyMultiplier, + (uint8_t *) &acFrequencyMultiplier, ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetAcFrequencyDivisor(chip::EndpointId endpoint, uint16_t * acFrequencyDivisor) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::AcFrequencyDivisor, (uint8_t *) acFrequencyDivisor, + sizeof(*acFrequencyDivisor)); +} +EmberAfStatus SetAcFrequencyDivisor(chip::EndpointId endpoint, uint16_t acFrequencyDivisor) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::AcFrequencyDivisor, + (uint8_t *) &acFrequencyDivisor, ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetPowerMultiplier(chip::EndpointId endpoint, uint32_t * powerMultiplier) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::PowerMultiplier, (uint8_t *) powerMultiplier, + sizeof(*powerMultiplier)); +} +EmberAfStatus SetPowerMultiplier(chip::EndpointId endpoint, uint32_t powerMultiplier) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::PowerMultiplier, (uint8_t *) &powerMultiplier, + ZCL_INT32U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetPowerDivisor(chip::EndpointId endpoint, uint32_t * powerDivisor) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::PowerDivisor, (uint8_t *) powerDivisor, + sizeof(*powerDivisor)); +} +EmberAfStatus SetPowerDivisor(chip::EndpointId endpoint, uint32_t powerDivisor) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::PowerDivisor, (uint8_t *) &powerDivisor, + ZCL_INT32U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetHarmonicCurrentMultiplier(chip::EndpointId endpoint, int8_t * harmonicCurrentMultiplier) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::HarmonicCurrentMultiplier, + (uint8_t *) harmonicCurrentMultiplier, sizeof(*harmonicCurrentMultiplier)); +} +EmberAfStatus SetHarmonicCurrentMultiplier(chip::EndpointId endpoint, int8_t harmonicCurrentMultiplier) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::HarmonicCurrentMultiplier, + (uint8_t *) &harmonicCurrentMultiplier, ZCL_INT8S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetPhaseHarmonicCurrentMultiplier(chip::EndpointId endpoint, int8_t * phaseHarmonicCurrentMultiplier) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::PhaseHarmonicCurrentMultiplier, + (uint8_t *) phaseHarmonicCurrentMultiplier, sizeof(*phaseHarmonicCurrentMultiplier)); +} +EmberAfStatus SetPhaseHarmonicCurrentMultiplier(chip::EndpointId endpoint, int8_t phaseHarmonicCurrentMultiplier) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::PhaseHarmonicCurrentMultiplier, + (uint8_t *) &phaseHarmonicCurrentMultiplier, ZCL_INT8S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetInstantaneousVoltage(chip::EndpointId endpoint, int16_t * instantaneousVoltage) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::InstantaneousVoltage, + (uint8_t *) instantaneousVoltage, sizeof(*instantaneousVoltage)); +} +EmberAfStatus SetInstantaneousVoltage(chip::EndpointId endpoint, int16_t instantaneousVoltage) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::InstantaneousVoltage, + (uint8_t *) &instantaneousVoltage, ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetInstantaneousLineCurrent(chip::EndpointId endpoint, uint16_t * instantaneousLineCurrent) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::InstantaneousLineCurrent, + (uint8_t *) instantaneousLineCurrent, sizeof(*instantaneousLineCurrent)); +} +EmberAfStatus SetInstantaneousLineCurrent(chip::EndpointId endpoint, uint16_t instantaneousLineCurrent) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::InstantaneousLineCurrent, + (uint8_t *) &instantaneousLineCurrent, ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetInstantaneousActiveCurrent(chip::EndpointId endpoint, int16_t * instantaneousActiveCurrent) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::InstantaneousActiveCurrent, + (uint8_t *) instantaneousActiveCurrent, sizeof(*instantaneousActiveCurrent)); +} +EmberAfStatus SetInstantaneousActiveCurrent(chip::EndpointId endpoint, int16_t instantaneousActiveCurrent) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::InstantaneousActiveCurrent, + (uint8_t *) &instantaneousActiveCurrent, ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetInstantaneousReactiveCurrent(chip::EndpointId endpoint, int16_t * instantaneousReactiveCurrent) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::InstantaneousReactiveCurrent, + (uint8_t *) instantaneousReactiveCurrent, sizeof(*instantaneousReactiveCurrent)); +} +EmberAfStatus SetInstantaneousReactiveCurrent(chip::EndpointId endpoint, int16_t instantaneousReactiveCurrent) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::InstantaneousReactiveCurrent, + (uint8_t *) &instantaneousReactiveCurrent, ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetInstantaneousPower(chip::EndpointId endpoint, int16_t * instantaneousPower) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::InstantaneousPower, (uint8_t *) instantaneousPower, + sizeof(*instantaneousPower)); +} +EmberAfStatus SetInstantaneousPower(chip::EndpointId endpoint, int16_t instantaneousPower) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::InstantaneousPower, + (uint8_t *) &instantaneousPower, ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetRmsVoltage(chip::EndpointId endpoint, uint16_t * rmsVoltage) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::RmsVoltage, (uint8_t *) rmsVoltage, + sizeof(*rmsVoltage)); +} +EmberAfStatus SetRmsVoltage(chip::EndpointId endpoint, uint16_t rmsVoltage) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::RmsVoltage, (uint8_t *) &rmsVoltage, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetRmsVoltageMin(chip::EndpointId endpoint, uint16_t * rmsVoltageMin) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::RmsVoltageMin, (uint8_t *) rmsVoltageMin, + sizeof(*rmsVoltageMin)); +} +EmberAfStatus SetRmsVoltageMin(chip::EndpointId endpoint, uint16_t rmsVoltageMin) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::RmsVoltageMin, (uint8_t *) &rmsVoltageMin, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetRmsVoltageMax(chip::EndpointId endpoint, uint16_t * rmsVoltageMax) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::RmsVoltageMax, (uint8_t *) rmsVoltageMax, + sizeof(*rmsVoltageMax)); +} +EmberAfStatus SetRmsVoltageMax(chip::EndpointId endpoint, uint16_t rmsVoltageMax) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::RmsVoltageMax, (uint8_t *) &rmsVoltageMax, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetRmsCurrent(chip::EndpointId endpoint, uint16_t * rmsCurrent) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::RmsCurrent, (uint8_t *) rmsCurrent, + sizeof(*rmsCurrent)); +} +EmberAfStatus SetRmsCurrent(chip::EndpointId endpoint, uint16_t rmsCurrent) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::RmsCurrent, (uint8_t *) &rmsCurrent, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetRmsCurrentMin(chip::EndpointId endpoint, uint16_t * rmsCurrentMin) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::RmsCurrentMin, (uint8_t *) rmsCurrentMin, + sizeof(*rmsCurrentMin)); +} +EmberAfStatus SetRmsCurrentMin(chip::EndpointId endpoint, uint16_t rmsCurrentMin) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::RmsCurrentMin, (uint8_t *) &rmsCurrentMin, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetRmsCurrentMax(chip::EndpointId endpoint, uint16_t * rmsCurrentMax) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::RmsCurrentMax, (uint8_t *) rmsCurrentMax, + sizeof(*rmsCurrentMax)); +} +EmberAfStatus SetRmsCurrentMax(chip::EndpointId endpoint, uint16_t rmsCurrentMax) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::RmsCurrentMax, (uint8_t *) &rmsCurrentMax, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetActivePower(chip::EndpointId endpoint, int16_t * activePower) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::ActivePower, (uint8_t *) activePower, + sizeof(*activePower)); +} +EmberAfStatus SetActivePower(chip::EndpointId endpoint, int16_t activePower) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::ActivePower, (uint8_t *) &activePower, + ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetActivePowerMin(chip::EndpointId endpoint, int16_t * activePowerMin) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::ActivePowerMin, (uint8_t *) activePowerMin, + sizeof(*activePowerMin)); +} +EmberAfStatus SetActivePowerMin(chip::EndpointId endpoint, int16_t activePowerMin) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::ActivePowerMin, (uint8_t *) &activePowerMin, + ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetActivePowerMax(chip::EndpointId endpoint, int16_t * activePowerMax) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::ActivePowerMax, (uint8_t *) activePowerMax, + sizeof(*activePowerMax)); +} +EmberAfStatus SetActivePowerMax(chip::EndpointId endpoint, int16_t activePowerMax) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::ActivePowerMax, (uint8_t *) &activePowerMax, + ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetReactivePower(chip::EndpointId endpoint, int16_t * reactivePower) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::ReactivePower, (uint8_t *) reactivePower, + sizeof(*reactivePower)); +} +EmberAfStatus SetReactivePower(chip::EndpointId endpoint, int16_t reactivePower) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::ReactivePower, (uint8_t *) &reactivePower, + ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetApparentPower(chip::EndpointId endpoint, uint16_t * apparentPower) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::ApparentPower, (uint8_t *) apparentPower, + sizeof(*apparentPower)); +} +EmberAfStatus SetApparentPower(chip::EndpointId endpoint, uint16_t apparentPower) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::ApparentPower, (uint8_t *) &apparentPower, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetPowerFactor(chip::EndpointId endpoint, int8_t * powerFactor) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::PowerFactor, (uint8_t *) powerFactor, + sizeof(*powerFactor)); +} +EmberAfStatus SetPowerFactor(chip::EndpointId endpoint, int8_t powerFactor) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::PowerFactor, (uint8_t *) &powerFactor, + ZCL_INT8S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetAverageRmsVoltageMeasurementPeriod(chip::EndpointId endpoint, uint16_t * averageRmsVoltageMeasurementPeriod) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::AverageRmsVoltageMeasurementPeriod, + (uint8_t *) averageRmsVoltageMeasurementPeriod, sizeof(*averageRmsVoltageMeasurementPeriod)); +} +EmberAfStatus SetAverageRmsVoltageMeasurementPeriod(chip::EndpointId endpoint, uint16_t averageRmsVoltageMeasurementPeriod) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::AverageRmsVoltageMeasurementPeriod, + (uint8_t *) &averageRmsVoltageMeasurementPeriod, ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetAverageRmsUnderVoltageCounter(chip::EndpointId endpoint, uint16_t * averageRmsUnderVoltageCounter) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::AverageRmsUnderVoltageCounter, + (uint8_t *) averageRmsUnderVoltageCounter, sizeof(*averageRmsUnderVoltageCounter)); +} +EmberAfStatus SetAverageRmsUnderVoltageCounter(chip::EndpointId endpoint, uint16_t averageRmsUnderVoltageCounter) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::AverageRmsUnderVoltageCounter, + (uint8_t *) &averageRmsUnderVoltageCounter, ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetRmsExtremeOverVoltagePeriod(chip::EndpointId endpoint, uint16_t * rmsExtremeOverVoltagePeriod) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::RmsExtremeOverVoltagePeriod, + (uint8_t *) rmsExtremeOverVoltagePeriod, sizeof(*rmsExtremeOverVoltagePeriod)); +} +EmberAfStatus SetRmsExtremeOverVoltagePeriod(chip::EndpointId endpoint, uint16_t rmsExtremeOverVoltagePeriod) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::RmsExtremeOverVoltagePeriod, + (uint8_t *) &rmsExtremeOverVoltagePeriod, ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetRmsExtremeUnderVoltagePeriod(chip::EndpointId endpoint, uint16_t * rmsExtremeUnderVoltagePeriod) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::RmsExtremeUnderVoltagePeriod, + (uint8_t *) rmsExtremeUnderVoltagePeriod, sizeof(*rmsExtremeUnderVoltagePeriod)); +} +EmberAfStatus SetRmsExtremeUnderVoltagePeriod(chip::EndpointId endpoint, uint16_t rmsExtremeUnderVoltagePeriod) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::RmsExtremeUnderVoltagePeriod, + (uint8_t *) &rmsExtremeUnderVoltagePeriod, ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetRmsVoltageSagPeriod(chip::EndpointId endpoint, uint16_t * rmsVoltageSagPeriod) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::RmsVoltageSagPeriod, + (uint8_t *) rmsVoltageSagPeriod, sizeof(*rmsVoltageSagPeriod)); +} +EmberAfStatus SetRmsVoltageSagPeriod(chip::EndpointId endpoint, uint16_t rmsVoltageSagPeriod) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::RmsVoltageSagPeriod, + (uint8_t *) &rmsVoltageSagPeriod, ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetRmsVoltageSwellPeriod(chip::EndpointId endpoint, uint16_t * rmsVoltageSwellPeriod) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::RmsVoltageSwellPeriod, + (uint8_t *) rmsVoltageSwellPeriod, sizeof(*rmsVoltageSwellPeriod)); +} +EmberAfStatus SetRmsVoltageSwellPeriod(chip::EndpointId endpoint, uint16_t rmsVoltageSwellPeriod) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::RmsVoltageSwellPeriod, + (uint8_t *) &rmsVoltageSwellPeriod, ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetAcVoltageMultiplier(chip::EndpointId endpoint, uint16_t * acVoltageMultiplier) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::AcVoltageMultiplier, + (uint8_t *) acVoltageMultiplier, sizeof(*acVoltageMultiplier)); +} +EmberAfStatus SetAcVoltageMultiplier(chip::EndpointId endpoint, uint16_t acVoltageMultiplier) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::AcVoltageMultiplier, + (uint8_t *) &acVoltageMultiplier, ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetAcVoltageDivisor(chip::EndpointId endpoint, uint16_t * acVoltageDivisor) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::AcVoltageDivisor, (uint8_t *) acVoltageDivisor, + sizeof(*acVoltageDivisor)); +} +EmberAfStatus SetAcVoltageDivisor(chip::EndpointId endpoint, uint16_t acVoltageDivisor) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::AcVoltageDivisor, (uint8_t *) &acVoltageDivisor, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetAcCurrentMultiplier(chip::EndpointId endpoint, uint16_t * acCurrentMultiplier) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::AcCurrentMultiplier, + (uint8_t *) acCurrentMultiplier, sizeof(*acCurrentMultiplier)); +} +EmberAfStatus SetAcCurrentMultiplier(chip::EndpointId endpoint, uint16_t acCurrentMultiplier) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::AcCurrentMultiplier, + (uint8_t *) &acCurrentMultiplier, ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetAcCurrentDivisor(chip::EndpointId endpoint, uint16_t * acCurrentDivisor) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::AcCurrentDivisor, (uint8_t *) acCurrentDivisor, + sizeof(*acCurrentDivisor)); +} +EmberAfStatus SetAcCurrentDivisor(chip::EndpointId endpoint, uint16_t acCurrentDivisor) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::AcCurrentDivisor, (uint8_t *) &acCurrentDivisor, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetAcPowerMultiplier(chip::EndpointId endpoint, uint16_t * acPowerMultiplier) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::AcPowerMultiplier, (uint8_t *) acPowerMultiplier, + sizeof(*acPowerMultiplier)); +} +EmberAfStatus SetAcPowerMultiplier(chip::EndpointId endpoint, uint16_t acPowerMultiplier) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::AcPowerMultiplier, (uint8_t *) &acPowerMultiplier, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetAcPowerDivisor(chip::EndpointId endpoint, uint16_t * acPowerDivisor) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::AcPowerDivisor, (uint8_t *) acPowerDivisor, + sizeof(*acPowerDivisor)); +} +EmberAfStatus SetAcPowerDivisor(chip::EndpointId endpoint, uint16_t acPowerDivisor) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::AcPowerDivisor, (uint8_t *) &acPowerDivisor, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetOverloadAlarmsMask(chip::EndpointId endpoint, uint8_t * overloadAlarmsMask) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::OverloadAlarmsMask, (uint8_t *) overloadAlarmsMask, + sizeof(*overloadAlarmsMask)); +} +EmberAfStatus SetOverloadAlarmsMask(chip::EndpointId endpoint, uint8_t overloadAlarmsMask) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::OverloadAlarmsMask, + (uint8_t *) &overloadAlarmsMask, ZCL_BITMAP8_ATTRIBUTE_TYPE); +} +EmberAfStatus GetVoltageOverload(chip::EndpointId endpoint, int16_t * voltageOverload) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::VoltageOverload, (uint8_t *) voltageOverload, + sizeof(*voltageOverload)); +} +EmberAfStatus SetVoltageOverload(chip::EndpointId endpoint, int16_t voltageOverload) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::VoltageOverload, (uint8_t *) &voltageOverload, + ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetCurrentOverload(chip::EndpointId endpoint, int16_t * currentOverload) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::CurrentOverload, (uint8_t *) currentOverload, + sizeof(*currentOverload)); +} +EmberAfStatus SetCurrentOverload(chip::EndpointId endpoint, int16_t currentOverload) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::CurrentOverload, (uint8_t *) ¤tOverload, + ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetAcOverloadAlarmsMask(chip::EndpointId endpoint, uint16_t * acOverloadAlarmsMask) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::AcOverloadAlarmsMask, + (uint8_t *) acOverloadAlarmsMask, sizeof(*acOverloadAlarmsMask)); +} +EmberAfStatus SetAcOverloadAlarmsMask(chip::EndpointId endpoint, uint16_t acOverloadAlarmsMask) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::AcOverloadAlarmsMask, + (uint8_t *) &acOverloadAlarmsMask, ZCL_BITMAP16_ATTRIBUTE_TYPE); +} +EmberAfStatus GetAcVoltageOverload(chip::EndpointId endpoint, int16_t * acVoltageOverload) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::AcVoltageOverload, (uint8_t *) acVoltageOverload, + sizeof(*acVoltageOverload)); +} +EmberAfStatus SetAcVoltageOverload(chip::EndpointId endpoint, int16_t acVoltageOverload) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::AcVoltageOverload, (uint8_t *) &acVoltageOverload, + ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetAcCurrentOverload(chip::EndpointId endpoint, int16_t * acCurrentOverload) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::AcCurrentOverload, (uint8_t *) acCurrentOverload, + sizeof(*acCurrentOverload)); +} +EmberAfStatus SetAcCurrentOverload(chip::EndpointId endpoint, int16_t acCurrentOverload) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::AcCurrentOverload, (uint8_t *) &acCurrentOverload, + ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetAcActivePowerOverload(chip::EndpointId endpoint, int16_t * acActivePowerOverload) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::AcActivePowerOverload, + (uint8_t *) acActivePowerOverload, sizeof(*acActivePowerOverload)); +} +EmberAfStatus SetAcActivePowerOverload(chip::EndpointId endpoint, int16_t acActivePowerOverload) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::AcActivePowerOverload, + (uint8_t *) &acActivePowerOverload, ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetAcReactivePowerOverload(chip::EndpointId endpoint, int16_t * acReactivePowerOverload) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::AcReactivePowerOverload, + (uint8_t *) acReactivePowerOverload, sizeof(*acReactivePowerOverload)); +} +EmberAfStatus SetAcReactivePowerOverload(chip::EndpointId endpoint, int16_t acReactivePowerOverload) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::AcReactivePowerOverload, + (uint8_t *) &acReactivePowerOverload, ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetAverageRmsOverVoltage(chip::EndpointId endpoint, int16_t * averageRmsOverVoltage) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::AverageRmsOverVoltage, + (uint8_t *) averageRmsOverVoltage, sizeof(*averageRmsOverVoltage)); +} +EmberAfStatus SetAverageRmsOverVoltage(chip::EndpointId endpoint, int16_t averageRmsOverVoltage) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::AverageRmsOverVoltage, + (uint8_t *) &averageRmsOverVoltage, ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetAverageRmsUnderVoltage(chip::EndpointId endpoint, int16_t * averageRmsUnderVoltage) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::AverageRmsUnderVoltage, + (uint8_t *) averageRmsUnderVoltage, sizeof(*averageRmsUnderVoltage)); +} +EmberAfStatus SetAverageRmsUnderVoltage(chip::EndpointId endpoint, int16_t averageRmsUnderVoltage) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::AverageRmsUnderVoltage, + (uint8_t *) &averageRmsUnderVoltage, ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetRmsExtremeOverVoltage(chip::EndpointId endpoint, int16_t * rmsExtremeOverVoltage) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::RmsExtremeOverVoltage, + (uint8_t *) rmsExtremeOverVoltage, sizeof(*rmsExtremeOverVoltage)); +} +EmberAfStatus SetRmsExtremeOverVoltage(chip::EndpointId endpoint, int16_t rmsExtremeOverVoltage) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::RmsExtremeOverVoltage, + (uint8_t *) &rmsExtremeOverVoltage, ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetRmsExtremeUnderVoltage(chip::EndpointId endpoint, int16_t * rmsExtremeUnderVoltage) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::RmsExtremeUnderVoltage, + (uint8_t *) rmsExtremeUnderVoltage, sizeof(*rmsExtremeUnderVoltage)); +} +EmberAfStatus SetRmsExtremeUnderVoltage(chip::EndpointId endpoint, int16_t rmsExtremeUnderVoltage) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::RmsExtremeUnderVoltage, + (uint8_t *) &rmsExtremeUnderVoltage, ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetRmsVoltageSag(chip::EndpointId endpoint, int16_t * rmsVoltageSag) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::RmsVoltageSag, (uint8_t *) rmsVoltageSag, + sizeof(*rmsVoltageSag)); +} +EmberAfStatus SetRmsVoltageSag(chip::EndpointId endpoint, int16_t rmsVoltageSag) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::RmsVoltageSag, (uint8_t *) &rmsVoltageSag, + ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetRmsVoltageSwell(chip::EndpointId endpoint, int16_t * rmsVoltageSwell) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::RmsVoltageSwell, (uint8_t *) rmsVoltageSwell, + sizeof(*rmsVoltageSwell)); +} +EmberAfStatus SetRmsVoltageSwell(chip::EndpointId endpoint, int16_t rmsVoltageSwell) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::RmsVoltageSwell, (uint8_t *) &rmsVoltageSwell, + ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetLineCurrentPhaseB(chip::EndpointId endpoint, uint16_t * lineCurrentPhaseB) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::LineCurrentPhaseB, (uint8_t *) lineCurrentPhaseB, + sizeof(*lineCurrentPhaseB)); +} +EmberAfStatus SetLineCurrentPhaseB(chip::EndpointId endpoint, uint16_t lineCurrentPhaseB) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::LineCurrentPhaseB, (uint8_t *) &lineCurrentPhaseB, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetActiveCurrentPhaseB(chip::EndpointId endpoint, int16_t * activeCurrentPhaseB) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::ActiveCurrentPhaseB, + (uint8_t *) activeCurrentPhaseB, sizeof(*activeCurrentPhaseB)); +} +EmberAfStatus SetActiveCurrentPhaseB(chip::EndpointId endpoint, int16_t activeCurrentPhaseB) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::ActiveCurrentPhaseB, + (uint8_t *) &activeCurrentPhaseB, ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetReactiveCurrentPhaseB(chip::EndpointId endpoint, int16_t * reactiveCurrentPhaseB) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::ReactiveCurrentPhaseB, + (uint8_t *) reactiveCurrentPhaseB, sizeof(*reactiveCurrentPhaseB)); +} +EmberAfStatus SetReactiveCurrentPhaseB(chip::EndpointId endpoint, int16_t reactiveCurrentPhaseB) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::ReactiveCurrentPhaseB, + (uint8_t *) &reactiveCurrentPhaseB, ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetRmsVoltagePhaseB(chip::EndpointId endpoint, uint16_t * rmsVoltagePhaseB) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::RmsVoltagePhaseB, (uint8_t *) rmsVoltagePhaseB, + sizeof(*rmsVoltagePhaseB)); +} +EmberAfStatus SetRmsVoltagePhaseB(chip::EndpointId endpoint, uint16_t rmsVoltagePhaseB) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::RmsVoltagePhaseB, (uint8_t *) &rmsVoltagePhaseB, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetRmsVoltageMinPhaseB(chip::EndpointId endpoint, uint16_t * rmsVoltageMinPhaseB) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::RmsVoltageMinPhaseB, + (uint8_t *) rmsVoltageMinPhaseB, sizeof(*rmsVoltageMinPhaseB)); +} +EmberAfStatus SetRmsVoltageMinPhaseB(chip::EndpointId endpoint, uint16_t rmsVoltageMinPhaseB) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::RmsVoltageMinPhaseB, + (uint8_t *) &rmsVoltageMinPhaseB, ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetRmsVoltageMaxPhaseB(chip::EndpointId endpoint, uint16_t * rmsVoltageMaxPhaseB) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::RmsVoltageMaxPhaseB, + (uint8_t *) rmsVoltageMaxPhaseB, sizeof(*rmsVoltageMaxPhaseB)); +} +EmberAfStatus SetRmsVoltageMaxPhaseB(chip::EndpointId endpoint, uint16_t rmsVoltageMaxPhaseB) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::RmsVoltageMaxPhaseB, + (uint8_t *) &rmsVoltageMaxPhaseB, ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetRmsCurrentPhaseB(chip::EndpointId endpoint, uint16_t * rmsCurrentPhaseB) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::RmsCurrentPhaseB, (uint8_t *) rmsCurrentPhaseB, + sizeof(*rmsCurrentPhaseB)); +} +EmberAfStatus SetRmsCurrentPhaseB(chip::EndpointId endpoint, uint16_t rmsCurrentPhaseB) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::RmsCurrentPhaseB, (uint8_t *) &rmsCurrentPhaseB, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetRmsCurrentMinPhaseB(chip::EndpointId endpoint, uint16_t * rmsCurrentMinPhaseB) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::RmsCurrentMinPhaseB, + (uint8_t *) rmsCurrentMinPhaseB, sizeof(*rmsCurrentMinPhaseB)); +} +EmberAfStatus SetRmsCurrentMinPhaseB(chip::EndpointId endpoint, uint16_t rmsCurrentMinPhaseB) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::RmsCurrentMinPhaseB, + (uint8_t *) &rmsCurrentMinPhaseB, ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetRmsCurrentMaxPhaseB(chip::EndpointId endpoint, uint16_t * rmsCurrentMaxPhaseB) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::RmsCurrentMaxPhaseB, + (uint8_t *) rmsCurrentMaxPhaseB, sizeof(*rmsCurrentMaxPhaseB)); +} +EmberAfStatus SetRmsCurrentMaxPhaseB(chip::EndpointId endpoint, uint16_t rmsCurrentMaxPhaseB) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::RmsCurrentMaxPhaseB, + (uint8_t *) &rmsCurrentMaxPhaseB, ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetActivePowerPhaseB(chip::EndpointId endpoint, int16_t * activePowerPhaseB) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::ActivePowerPhaseB, (uint8_t *) activePowerPhaseB, + sizeof(*activePowerPhaseB)); +} +EmberAfStatus SetActivePowerPhaseB(chip::EndpointId endpoint, int16_t activePowerPhaseB) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::ActivePowerPhaseB, (uint8_t *) &activePowerPhaseB, + ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetActivePowerMinPhaseB(chip::EndpointId endpoint, int16_t * activePowerMinPhaseB) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::ActivePowerMinPhaseB, + (uint8_t *) activePowerMinPhaseB, sizeof(*activePowerMinPhaseB)); +} +EmberAfStatus SetActivePowerMinPhaseB(chip::EndpointId endpoint, int16_t activePowerMinPhaseB) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::ActivePowerMinPhaseB, + (uint8_t *) &activePowerMinPhaseB, ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetActivePowerMaxPhaseB(chip::EndpointId endpoint, int16_t * activePowerMaxPhaseB) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::ActivePowerMaxPhaseB, + (uint8_t *) activePowerMaxPhaseB, sizeof(*activePowerMaxPhaseB)); +} +EmberAfStatus SetActivePowerMaxPhaseB(chip::EndpointId endpoint, int16_t activePowerMaxPhaseB) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::ActivePowerMaxPhaseB, + (uint8_t *) &activePowerMaxPhaseB, ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetReactivePowerPhaseB(chip::EndpointId endpoint, int16_t * reactivePowerPhaseB) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::ReactivePowerPhaseB, + (uint8_t *) reactivePowerPhaseB, sizeof(*reactivePowerPhaseB)); +} +EmberAfStatus SetReactivePowerPhaseB(chip::EndpointId endpoint, int16_t reactivePowerPhaseB) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::ReactivePowerPhaseB, + (uint8_t *) &reactivePowerPhaseB, ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetApparentPowerPhaseB(chip::EndpointId endpoint, uint16_t * apparentPowerPhaseB) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::ApparentPowerPhaseB, + (uint8_t *) apparentPowerPhaseB, sizeof(*apparentPowerPhaseB)); +} +EmberAfStatus SetApparentPowerPhaseB(chip::EndpointId endpoint, uint16_t apparentPowerPhaseB) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::ApparentPowerPhaseB, + (uint8_t *) &apparentPowerPhaseB, ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetPowerFactorPhaseB(chip::EndpointId endpoint, int8_t * powerFactorPhaseB) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::PowerFactorPhaseB, (uint8_t *) powerFactorPhaseB, + sizeof(*powerFactorPhaseB)); +} +EmberAfStatus SetPowerFactorPhaseB(chip::EndpointId endpoint, int8_t powerFactorPhaseB) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::PowerFactorPhaseB, (uint8_t *) &powerFactorPhaseB, + ZCL_INT8S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetAverageRmsVoltageMeasurementPeriodPhaseB(chip::EndpointId endpoint, + uint16_t * averageRmsVoltageMeasurementPeriodPhaseB) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::AverageRmsVoltageMeasurementPeriodPhaseB, + (uint8_t *) averageRmsVoltageMeasurementPeriodPhaseB, + sizeof(*averageRmsVoltageMeasurementPeriodPhaseB)); +} +EmberAfStatus SetAverageRmsVoltageMeasurementPeriodPhaseB(chip::EndpointId endpoint, + uint16_t averageRmsVoltageMeasurementPeriodPhaseB) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::AverageRmsVoltageMeasurementPeriodPhaseB, + (uint8_t *) &averageRmsVoltageMeasurementPeriodPhaseB, ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetAverageRmsOverVoltageCounterPhaseB(chip::EndpointId endpoint, uint16_t * averageRmsOverVoltageCounterPhaseB) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::AverageRmsOverVoltageCounterPhaseB, + (uint8_t *) averageRmsOverVoltageCounterPhaseB, sizeof(*averageRmsOverVoltageCounterPhaseB)); +} +EmberAfStatus SetAverageRmsOverVoltageCounterPhaseB(chip::EndpointId endpoint, uint16_t averageRmsOverVoltageCounterPhaseB) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::AverageRmsOverVoltageCounterPhaseB, + (uint8_t *) &averageRmsOverVoltageCounterPhaseB, ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetAverageRmsUnderVoltageCounterPhaseB(chip::EndpointId endpoint, uint16_t * averageRmsUnderVoltageCounterPhaseB) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::AverageRmsUnderVoltageCounterPhaseB, + (uint8_t *) averageRmsUnderVoltageCounterPhaseB, + sizeof(*averageRmsUnderVoltageCounterPhaseB)); +} +EmberAfStatus SetAverageRmsUnderVoltageCounterPhaseB(chip::EndpointId endpoint, uint16_t averageRmsUnderVoltageCounterPhaseB) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::AverageRmsUnderVoltageCounterPhaseB, + (uint8_t *) &averageRmsUnderVoltageCounterPhaseB, ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetRmsExtremeOverVoltagePeriodPhaseB(chip::EndpointId endpoint, uint16_t * rmsExtremeOverVoltagePeriodPhaseB) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::RmsExtremeOverVoltagePeriodPhaseB, + (uint8_t *) rmsExtremeOverVoltagePeriodPhaseB, sizeof(*rmsExtremeOverVoltagePeriodPhaseB)); +} +EmberAfStatus SetRmsExtremeOverVoltagePeriodPhaseB(chip::EndpointId endpoint, uint16_t rmsExtremeOverVoltagePeriodPhaseB) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::RmsExtremeOverVoltagePeriodPhaseB, + (uint8_t *) &rmsExtremeOverVoltagePeriodPhaseB, ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetRmsExtremeUnderVoltagePeriodPhaseB(chip::EndpointId endpoint, uint16_t * rmsExtremeUnderVoltagePeriodPhaseB) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::RmsExtremeUnderVoltagePeriodPhaseB, + (uint8_t *) rmsExtremeUnderVoltagePeriodPhaseB, sizeof(*rmsExtremeUnderVoltagePeriodPhaseB)); +} +EmberAfStatus SetRmsExtremeUnderVoltagePeriodPhaseB(chip::EndpointId endpoint, uint16_t rmsExtremeUnderVoltagePeriodPhaseB) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::RmsExtremeUnderVoltagePeriodPhaseB, + (uint8_t *) &rmsExtremeUnderVoltagePeriodPhaseB, ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetRmsVoltageSagPeriodPhaseB(chip::EndpointId endpoint, uint16_t * rmsVoltageSagPeriodPhaseB) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::RmsVoltageSagPeriodPhaseB, + (uint8_t *) rmsVoltageSagPeriodPhaseB, sizeof(*rmsVoltageSagPeriodPhaseB)); +} +EmberAfStatus SetRmsVoltageSagPeriodPhaseB(chip::EndpointId endpoint, uint16_t rmsVoltageSagPeriodPhaseB) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::RmsVoltageSagPeriodPhaseB, + (uint8_t *) &rmsVoltageSagPeriodPhaseB, ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetRmsVoltageSwellPeriodPhaseB(chip::EndpointId endpoint, uint16_t * rmsVoltageSwellPeriodPhaseB) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::RmsVoltageSwellPeriodPhaseB, + (uint8_t *) rmsVoltageSwellPeriodPhaseB, sizeof(*rmsVoltageSwellPeriodPhaseB)); +} +EmberAfStatus SetRmsVoltageSwellPeriodPhaseB(chip::EndpointId endpoint, uint16_t rmsVoltageSwellPeriodPhaseB) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::RmsVoltageSwellPeriodPhaseB, + (uint8_t *) &rmsVoltageSwellPeriodPhaseB, ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetLineCurrentPhaseC(chip::EndpointId endpoint, uint16_t * lineCurrentPhaseC) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::LineCurrentPhaseC, (uint8_t *) lineCurrentPhaseC, + sizeof(*lineCurrentPhaseC)); +} +EmberAfStatus SetLineCurrentPhaseC(chip::EndpointId endpoint, uint16_t lineCurrentPhaseC) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::LineCurrentPhaseC, (uint8_t *) &lineCurrentPhaseC, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetActiveCurrentPhaseC(chip::EndpointId endpoint, int16_t * activeCurrentPhaseC) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::ActiveCurrentPhaseC, + (uint8_t *) activeCurrentPhaseC, sizeof(*activeCurrentPhaseC)); +} +EmberAfStatus SetActiveCurrentPhaseC(chip::EndpointId endpoint, int16_t activeCurrentPhaseC) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::ActiveCurrentPhaseC, + (uint8_t *) &activeCurrentPhaseC, ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetReactiveCurrentPhaseC(chip::EndpointId endpoint, int16_t * reactiveCurrentPhaseC) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::ReactiveCurrentPhaseC, + (uint8_t *) reactiveCurrentPhaseC, sizeof(*reactiveCurrentPhaseC)); +} +EmberAfStatus SetReactiveCurrentPhaseC(chip::EndpointId endpoint, int16_t reactiveCurrentPhaseC) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::ReactiveCurrentPhaseC, + (uint8_t *) &reactiveCurrentPhaseC, ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetRmsVoltagePhaseC(chip::EndpointId endpoint, uint16_t * rmsVoltagePhaseC) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::RmsVoltagePhaseC, (uint8_t *) rmsVoltagePhaseC, + sizeof(*rmsVoltagePhaseC)); +} +EmberAfStatus SetRmsVoltagePhaseC(chip::EndpointId endpoint, uint16_t rmsVoltagePhaseC) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::RmsVoltagePhaseC, (uint8_t *) &rmsVoltagePhaseC, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetRmsVoltageMinPhaseC(chip::EndpointId endpoint, uint16_t * rmsVoltageMinPhaseC) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::RmsVoltageMinPhaseC, + (uint8_t *) rmsVoltageMinPhaseC, sizeof(*rmsVoltageMinPhaseC)); +} +EmberAfStatus SetRmsVoltageMinPhaseC(chip::EndpointId endpoint, uint16_t rmsVoltageMinPhaseC) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::RmsVoltageMinPhaseC, + (uint8_t *) &rmsVoltageMinPhaseC, ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetRmsVoltageMaxPhaseC(chip::EndpointId endpoint, uint16_t * rmsVoltageMaxPhaseC) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::RmsVoltageMaxPhaseC, + (uint8_t *) rmsVoltageMaxPhaseC, sizeof(*rmsVoltageMaxPhaseC)); +} +EmberAfStatus SetRmsVoltageMaxPhaseC(chip::EndpointId endpoint, uint16_t rmsVoltageMaxPhaseC) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::RmsVoltageMaxPhaseC, + (uint8_t *) &rmsVoltageMaxPhaseC, ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetRmsCurrentPhaseC(chip::EndpointId endpoint, uint16_t * rmsCurrentPhaseC) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::RmsCurrentPhaseC, (uint8_t *) rmsCurrentPhaseC, + sizeof(*rmsCurrentPhaseC)); +} +EmberAfStatus SetRmsCurrentPhaseC(chip::EndpointId endpoint, uint16_t rmsCurrentPhaseC) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::RmsCurrentPhaseC, (uint8_t *) &rmsCurrentPhaseC, + ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetRmsCurrentMinPhaseC(chip::EndpointId endpoint, uint16_t * rmsCurrentMinPhaseC) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::RmsCurrentMinPhaseC, + (uint8_t *) rmsCurrentMinPhaseC, sizeof(*rmsCurrentMinPhaseC)); +} +EmberAfStatus SetRmsCurrentMinPhaseC(chip::EndpointId endpoint, uint16_t rmsCurrentMinPhaseC) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::RmsCurrentMinPhaseC, + (uint8_t *) &rmsCurrentMinPhaseC, ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetRmsCurrentMaxPhaseC(chip::EndpointId endpoint, uint16_t * rmsCurrentMaxPhaseC) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::RmsCurrentMaxPhaseC, + (uint8_t *) rmsCurrentMaxPhaseC, sizeof(*rmsCurrentMaxPhaseC)); +} +EmberAfStatus SetRmsCurrentMaxPhaseC(chip::EndpointId endpoint, uint16_t rmsCurrentMaxPhaseC) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::RmsCurrentMaxPhaseC, + (uint8_t *) &rmsCurrentMaxPhaseC, ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetActivePowerPhaseC(chip::EndpointId endpoint, int16_t * activePowerPhaseC) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::ActivePowerPhaseC, (uint8_t *) activePowerPhaseC, + sizeof(*activePowerPhaseC)); +} +EmberAfStatus SetActivePowerPhaseC(chip::EndpointId endpoint, int16_t activePowerPhaseC) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::ActivePowerPhaseC, (uint8_t *) &activePowerPhaseC, + ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetActivePowerMinPhaseC(chip::EndpointId endpoint, int16_t * activePowerMinPhaseC) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::ActivePowerMinPhaseC, + (uint8_t *) activePowerMinPhaseC, sizeof(*activePowerMinPhaseC)); +} +EmberAfStatus SetActivePowerMinPhaseC(chip::EndpointId endpoint, int16_t activePowerMinPhaseC) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::ActivePowerMinPhaseC, + (uint8_t *) &activePowerMinPhaseC, ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetActivePowerMaxPhaseC(chip::EndpointId endpoint, int16_t * activePowerMaxPhaseC) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::ActivePowerMaxPhaseC, + (uint8_t *) activePowerMaxPhaseC, sizeof(*activePowerMaxPhaseC)); +} +EmberAfStatus SetActivePowerMaxPhaseC(chip::EndpointId endpoint, int16_t activePowerMaxPhaseC) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::ActivePowerMaxPhaseC, + (uint8_t *) &activePowerMaxPhaseC, ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetReactivePowerPhaseC(chip::EndpointId endpoint, int16_t * reactivePowerPhaseC) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::ReactivePowerPhaseC, + (uint8_t *) reactivePowerPhaseC, sizeof(*reactivePowerPhaseC)); +} +EmberAfStatus SetReactivePowerPhaseC(chip::EndpointId endpoint, int16_t reactivePowerPhaseC) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::ReactivePowerPhaseC, + (uint8_t *) &reactivePowerPhaseC, ZCL_INT16S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetApparentPowerPhaseC(chip::EndpointId endpoint, uint16_t * apparentPowerPhaseC) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::ApparentPowerPhaseC, + (uint8_t *) apparentPowerPhaseC, sizeof(*apparentPowerPhaseC)); +} +EmberAfStatus SetApparentPowerPhaseC(chip::EndpointId endpoint, uint16_t apparentPowerPhaseC) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::ApparentPowerPhaseC, + (uint8_t *) &apparentPowerPhaseC, ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetPowerFactorPhaseC(chip::EndpointId endpoint, int8_t * powerFactorPhaseC) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::PowerFactorPhaseC, (uint8_t *) powerFactorPhaseC, + sizeof(*powerFactorPhaseC)); +} +EmberAfStatus SetPowerFactorPhaseC(chip::EndpointId endpoint, int8_t powerFactorPhaseC) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::PowerFactorPhaseC, (uint8_t *) &powerFactorPhaseC, + ZCL_INT8S_ATTRIBUTE_TYPE); +} +EmberAfStatus GetAverageRmsVoltageMeasurementPeriodPhaseC(chip::EndpointId endpoint, + uint16_t * averageRmsVoltageMeasurementPeriodPhaseC) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::AverageRmsVoltageMeasurementPeriodPhaseC, + (uint8_t *) averageRmsVoltageMeasurementPeriodPhaseC, + sizeof(*averageRmsVoltageMeasurementPeriodPhaseC)); +} +EmberAfStatus SetAverageRmsVoltageMeasurementPeriodPhaseC(chip::EndpointId endpoint, + uint16_t averageRmsVoltageMeasurementPeriodPhaseC) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::AverageRmsVoltageMeasurementPeriodPhaseC, + (uint8_t *) &averageRmsVoltageMeasurementPeriodPhaseC, ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetAverageRmsOverVoltageCounterPhaseC(chip::EndpointId endpoint, uint16_t * averageRmsOverVoltageCounterPhaseC) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::AverageRmsOverVoltageCounterPhaseC, + (uint8_t *) averageRmsOverVoltageCounterPhaseC, sizeof(*averageRmsOverVoltageCounterPhaseC)); +} +EmberAfStatus SetAverageRmsOverVoltageCounterPhaseC(chip::EndpointId endpoint, uint16_t averageRmsOverVoltageCounterPhaseC) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::AverageRmsOverVoltageCounterPhaseC, + (uint8_t *) &averageRmsOverVoltageCounterPhaseC, ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetAverageRmsUnderVoltageCounterPhaseC(chip::EndpointId endpoint, uint16_t * averageRmsUnderVoltageCounterPhaseC) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::AverageRmsUnderVoltageCounterPhaseC, + (uint8_t *) averageRmsUnderVoltageCounterPhaseC, + sizeof(*averageRmsUnderVoltageCounterPhaseC)); +} +EmberAfStatus SetAverageRmsUnderVoltageCounterPhaseC(chip::EndpointId endpoint, uint16_t averageRmsUnderVoltageCounterPhaseC) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::AverageRmsUnderVoltageCounterPhaseC, + (uint8_t *) &averageRmsUnderVoltageCounterPhaseC, ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetRmsExtremeOverVoltagePeriodPhaseC(chip::EndpointId endpoint, uint16_t * rmsExtremeOverVoltagePeriodPhaseC) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::RmsExtremeOverVoltagePeriodPhaseC, + (uint8_t *) rmsExtremeOverVoltagePeriodPhaseC, sizeof(*rmsExtremeOverVoltagePeriodPhaseC)); +} +EmberAfStatus SetRmsExtremeOverVoltagePeriodPhaseC(chip::EndpointId endpoint, uint16_t rmsExtremeOverVoltagePeriodPhaseC) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::RmsExtremeOverVoltagePeriodPhaseC, + (uint8_t *) &rmsExtremeOverVoltagePeriodPhaseC, ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetRmsExtremeUnderVoltagePeriodPhaseC(chip::EndpointId endpoint, uint16_t * rmsExtremeUnderVoltagePeriodPhaseC) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::RmsExtremeUnderVoltagePeriodPhaseC, + (uint8_t *) rmsExtremeUnderVoltagePeriodPhaseC, sizeof(*rmsExtremeUnderVoltagePeriodPhaseC)); +} +EmberAfStatus SetRmsExtremeUnderVoltagePeriodPhaseC(chip::EndpointId endpoint, uint16_t rmsExtremeUnderVoltagePeriodPhaseC) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::RmsExtremeUnderVoltagePeriodPhaseC, + (uint8_t *) &rmsExtremeUnderVoltagePeriodPhaseC, ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetRmsVoltageSagPeriodPhaseC(chip::EndpointId endpoint, uint16_t * rmsVoltageSagPeriodPhaseC) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::RmsVoltageSagPeriodPhaseC, + (uint8_t *) rmsVoltageSagPeriodPhaseC, sizeof(*rmsVoltageSagPeriodPhaseC)); +} +EmberAfStatus SetRmsVoltageSagPeriodPhaseC(chip::EndpointId endpoint, uint16_t rmsVoltageSagPeriodPhaseC) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::RmsVoltageSagPeriodPhaseC, + (uint8_t *) &rmsVoltageSagPeriodPhaseC, ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetRmsVoltageSwellPeriodPhaseC(chip::EndpointId endpoint, uint16_t * rmsVoltageSwellPeriodPhaseC) +{ + return emberAfReadServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::RmsVoltageSwellPeriodPhaseC, + (uint8_t *) rmsVoltageSwellPeriodPhaseC, sizeof(*rmsVoltageSwellPeriodPhaseC)); +} +EmberAfStatus SetRmsVoltageSwellPeriodPhaseC(chip::EndpointId endpoint, uint16_t rmsVoltageSwellPeriodPhaseC) +{ + return emberAfWriteServerAttribute(endpoint, ElectricalMeasurement::Id, Ids::RmsVoltageSwellPeriodPhaseC, + (uint8_t *) &rmsVoltageSwellPeriodPhaseC, ZCL_INT16U_ATTRIBUTE_TYPE); +} +} // namespace Attributes +} // namespace ElectricalMeasurement + +namespace GroupKeyManagement { +namespace Attributes { +} // namespace Attributes +} // namespace GroupKeyManagement + +namespace SampleMfgSpecificCluster { +namespace Attributes { +EmberAfStatus GetEmberSampleAttribute(chip::EndpointId endpoint, uint8_t * emberSampleAttribute) +{ + return emberAfReadServerAttribute(endpoint, SampleMfgSpecificCluster::Id, Ids::EmberSampleAttribute, + (uint8_t *) emberSampleAttribute, sizeof(*emberSampleAttribute)); +} +EmberAfStatus SetEmberSampleAttribute(chip::EndpointId endpoint, uint8_t emberSampleAttribute) +{ + return emberAfWriteServerAttribute(endpoint, SampleMfgSpecificCluster::Id, Ids::EmberSampleAttribute, + (uint8_t *) &emberSampleAttribute, ZCL_INT8U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetEmberSampleAttribute2(chip::EndpointId endpoint, uint8_t * emberSampleAttribute2) +{ + return emberAfReadServerAttribute(endpoint, SampleMfgSpecificCluster::Id, Ids::EmberSampleAttribute2, + (uint8_t *) emberSampleAttribute2, sizeof(*emberSampleAttribute2)); +} +EmberAfStatus SetEmberSampleAttribute2(chip::EndpointId endpoint, uint8_t emberSampleAttribute2) +{ + return emberAfWriteServerAttribute(endpoint, SampleMfgSpecificCluster::Id, Ids::EmberSampleAttribute2, + (uint8_t *) &emberSampleAttribute2, ZCL_INT8U_ATTRIBUTE_TYPE); +} +} // namespace Attributes +} // namespace SampleMfgSpecificCluster + +namespace SampleMfgSpecificCluster2 { +namespace Attributes { +EmberAfStatus GetEmberSampleAttribute3(chip::EndpointId endpoint, uint16_t * emberSampleAttribute3) +{ + return emberAfReadServerAttribute(endpoint, SampleMfgSpecificCluster2::Id, Ids::EmberSampleAttribute3, + (uint8_t *) emberSampleAttribute3, sizeof(*emberSampleAttribute3)); +} +EmberAfStatus SetEmberSampleAttribute3(chip::EndpointId endpoint, uint16_t emberSampleAttribute3) +{ + return emberAfWriteServerAttribute(endpoint, SampleMfgSpecificCluster2::Id, Ids::EmberSampleAttribute3, + (uint8_t *) &emberSampleAttribute3, ZCL_INT16U_ATTRIBUTE_TYPE); +} +EmberAfStatus GetEmberSampleAttribute4(chip::EndpointId endpoint, uint16_t * emberSampleAttribute4) +{ + return emberAfReadServerAttribute(endpoint, SampleMfgSpecificCluster2::Id, Ids::EmberSampleAttribute4, + (uint8_t *) emberSampleAttribute4, sizeof(*emberSampleAttribute4)); +} +EmberAfStatus SetEmberSampleAttribute4(chip::EndpointId endpoint, uint16_t emberSampleAttribute4) +{ + return emberAfWriteServerAttribute(endpoint, SampleMfgSpecificCluster2::Id, Ids::EmberSampleAttribute4, + (uint8_t *) &emberSampleAttribute4, ZCL_INT16U_ATTRIBUTE_TYPE); +} +} // namespace Attributes +} // namespace SampleMfgSpecificCluster2 + +} // namespace Clusters +} // namespace app +} // namespace chip diff --git a/src/app/common/gen/attributes/Accessors.h b/src/app/common/gen/attributes/Accessors.h new file mode 100644 index 00000000000000..b2b876e61d1fcd --- /dev/null +++ b/src/app/common/gen/attributes/Accessors.h @@ -0,0 +1,2197 @@ +/* + * + * Copyright (c) 2021 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 + +/** + * @file + * This file contains declarations for accessors around clusters attributes. + */ + +#pragma once + +#include +#include + +namespace chip { +namespace app { +namespace Clusters { + +namespace PowerConfiguration { +namespace Attributes { +EmberAfStatus GetMainsVoltage(chip::EndpointId endpoint, uint16_t * mainsVoltage); // int16u +EmberAfStatus SetMainsVoltage(chip::EndpointId endpoint, uint16_t mainsVoltage); +EmberAfStatus GetMainsFrequency(chip::EndpointId endpoint, uint8_t * mainsFrequency); // int8u +EmberAfStatus SetMainsFrequency(chip::EndpointId endpoint, uint8_t mainsFrequency); +EmberAfStatus GetMainsAlarmMask(chip::EndpointId endpoint, uint8_t * mainsAlarmMask); // bitmap8 +EmberAfStatus SetMainsAlarmMask(chip::EndpointId endpoint, uint8_t mainsAlarmMask); +EmberAfStatus GetMainsVoltageMinThreshold(chip::EndpointId endpoint, uint16_t * mainsVoltageMinThreshold); // int16u +EmberAfStatus SetMainsVoltageMinThreshold(chip::EndpointId endpoint, uint16_t mainsVoltageMinThreshold); +EmberAfStatus GetMainsVoltageMaxThreshold(chip::EndpointId endpoint, uint16_t * mainsVoltageMaxThreshold); // int16u +EmberAfStatus SetMainsVoltageMaxThreshold(chip::EndpointId endpoint, uint16_t mainsVoltageMaxThreshold); +EmberAfStatus GetMainsVoltageDwellTrip(chip::EndpointId endpoint, uint16_t * mainsVoltageDwellTrip); // int16u +EmberAfStatus SetMainsVoltageDwellTrip(chip::EndpointId endpoint, uint16_t mainsVoltageDwellTrip); +EmberAfStatus GetBatteryVoltage(chip::EndpointId endpoint, uint8_t * batteryVoltage); // int8u +EmberAfStatus SetBatteryVoltage(chip::EndpointId endpoint, uint8_t batteryVoltage); +EmberAfStatus GetBatteryPercentageRemaining(chip::EndpointId endpoint, uint8_t * batteryPercentageRemaining); // int8u +EmberAfStatus SetBatteryPercentageRemaining(chip::EndpointId endpoint, uint8_t batteryPercentageRemaining); +EmberAfStatus GetBatterySize(chip::EndpointId endpoint, uint8_t * batterySize); // enum8 +EmberAfStatus SetBatterySize(chip::EndpointId endpoint, uint8_t batterySize); +EmberAfStatus GetBatteryAhrRating(chip::EndpointId endpoint, uint16_t * batteryAhrRating); // int16u +EmberAfStatus SetBatteryAhrRating(chip::EndpointId endpoint, uint16_t batteryAhrRating); +EmberAfStatus GetBatteryQuantity(chip::EndpointId endpoint, uint8_t * batteryQuantity); // int8u +EmberAfStatus SetBatteryQuantity(chip::EndpointId endpoint, uint8_t batteryQuantity); +EmberAfStatus GetBatteryRatedVoltage(chip::EndpointId endpoint, uint8_t * batteryRatedVoltage); // int8u +EmberAfStatus SetBatteryRatedVoltage(chip::EndpointId endpoint, uint8_t batteryRatedVoltage); +EmberAfStatus GetBatteryAlarmMask(chip::EndpointId endpoint, uint8_t * batteryAlarmMask); // bitmap8 +EmberAfStatus SetBatteryAlarmMask(chip::EndpointId endpoint, uint8_t batteryAlarmMask); +EmberAfStatus GetBatteryVoltageMinThreshold(chip::EndpointId endpoint, uint8_t * batteryVoltageMinThreshold); // int8u +EmberAfStatus SetBatteryVoltageMinThreshold(chip::EndpointId endpoint, uint8_t batteryVoltageMinThreshold); +EmberAfStatus GetBatteryVoltageThreshold1(chip::EndpointId endpoint, uint8_t * batteryVoltageThreshold1); // int8u +EmberAfStatus SetBatteryVoltageThreshold1(chip::EndpointId endpoint, uint8_t batteryVoltageThreshold1); +EmberAfStatus GetBatteryVoltageThreshold2(chip::EndpointId endpoint, uint8_t * batteryVoltageThreshold2); // int8u +EmberAfStatus SetBatteryVoltageThreshold2(chip::EndpointId endpoint, uint8_t batteryVoltageThreshold2); +EmberAfStatus GetBatteryVoltageThreshold3(chip::EndpointId endpoint, uint8_t * batteryVoltageThreshold3); // int8u +EmberAfStatus SetBatteryVoltageThreshold3(chip::EndpointId endpoint, uint8_t batteryVoltageThreshold3); +EmberAfStatus GetBatteryPercentageMinThreshold(chip::EndpointId endpoint, uint8_t * batteryPercentageMinThreshold); // int8u +EmberAfStatus SetBatteryPercentageMinThreshold(chip::EndpointId endpoint, uint8_t batteryPercentageMinThreshold); +EmberAfStatus GetBatteryPercentageThreshold1(chip::EndpointId endpoint, uint8_t * batteryPercentageThreshold1); // int8u +EmberAfStatus SetBatteryPercentageThreshold1(chip::EndpointId endpoint, uint8_t batteryPercentageThreshold1); +EmberAfStatus GetBatteryPercentageThreshold2(chip::EndpointId endpoint, uint8_t * batteryPercentageThreshold2); // int8u +EmberAfStatus SetBatteryPercentageThreshold2(chip::EndpointId endpoint, uint8_t batteryPercentageThreshold2); +EmberAfStatus GetBatteryPercentageThreshold3(chip::EndpointId endpoint, uint8_t * batteryPercentageThreshold3); // int8u +EmberAfStatus SetBatteryPercentageThreshold3(chip::EndpointId endpoint, uint8_t batteryPercentageThreshold3); +EmberAfStatus GetBatteryAlarmState(chip::EndpointId endpoint, uint32_t * batteryAlarmState); // bitmap32 +EmberAfStatus SetBatteryAlarmState(chip::EndpointId endpoint, uint32_t batteryAlarmState); +EmberAfStatus GetBattery2Voltage(chip::EndpointId endpoint, uint8_t * battery2Voltage); // int8u +EmberAfStatus SetBattery2Voltage(chip::EndpointId endpoint, uint8_t battery2Voltage); +EmberAfStatus GetBattery2PercentageRemaining(chip::EndpointId endpoint, uint8_t * battery2PercentageRemaining); // int8u +EmberAfStatus SetBattery2PercentageRemaining(chip::EndpointId endpoint, uint8_t battery2PercentageRemaining); +EmberAfStatus GetBattery2Size(chip::EndpointId endpoint, uint8_t * battery2Size); // enum8 +EmberAfStatus SetBattery2Size(chip::EndpointId endpoint, uint8_t battery2Size); +EmberAfStatus GetBattery2AhrRating(chip::EndpointId endpoint, uint16_t * battery2AhrRating); // int16u +EmberAfStatus SetBattery2AhrRating(chip::EndpointId endpoint, uint16_t battery2AhrRating); +EmberAfStatus GetBattery2Quantity(chip::EndpointId endpoint, uint8_t * battery2Quantity); // int8u +EmberAfStatus SetBattery2Quantity(chip::EndpointId endpoint, uint8_t battery2Quantity); +EmberAfStatus GetBattery2RatedVoltage(chip::EndpointId endpoint, uint8_t * battery2RatedVoltage); // int8u +EmberAfStatus SetBattery2RatedVoltage(chip::EndpointId endpoint, uint8_t battery2RatedVoltage); +EmberAfStatus GetBattery2AlarmMask(chip::EndpointId endpoint, uint8_t * battery2AlarmMask); // bitmap8 +EmberAfStatus SetBattery2AlarmMask(chip::EndpointId endpoint, uint8_t battery2AlarmMask); +EmberAfStatus GetBattery2VoltageMinThreshold(chip::EndpointId endpoint, uint8_t * battery2VoltageMinThreshold); // int8u +EmberAfStatus SetBattery2VoltageMinThreshold(chip::EndpointId endpoint, uint8_t battery2VoltageMinThreshold); +EmberAfStatus GetBattery2VoltageThreshold1(chip::EndpointId endpoint, uint8_t * battery2VoltageThreshold1); // int8u +EmberAfStatus SetBattery2VoltageThreshold1(chip::EndpointId endpoint, uint8_t battery2VoltageThreshold1); +EmberAfStatus GetBattery2VoltageThreshold2(chip::EndpointId endpoint, uint8_t * battery2VoltageThreshold2); // int8u +EmberAfStatus SetBattery2VoltageThreshold2(chip::EndpointId endpoint, uint8_t battery2VoltageThreshold2); +EmberAfStatus GetBattery2VoltageThreshold3(chip::EndpointId endpoint, uint8_t * battery2VoltageThreshold3); // int8u +EmberAfStatus SetBattery2VoltageThreshold3(chip::EndpointId endpoint, uint8_t battery2VoltageThreshold3); +EmberAfStatus GetBattery2PercentageMinThreshold(chip::EndpointId endpoint, uint8_t * battery2PercentageMinThreshold); // int8u +EmberAfStatus SetBattery2PercentageMinThreshold(chip::EndpointId endpoint, uint8_t battery2PercentageMinThreshold); +EmberAfStatus GetBattery2PercentageThreshold1(chip::EndpointId endpoint, uint8_t * battery2PercentageThreshold1); // int8u +EmberAfStatus SetBattery2PercentageThreshold1(chip::EndpointId endpoint, uint8_t battery2PercentageThreshold1); +EmberAfStatus GetBattery2PercentageThreshold2(chip::EndpointId endpoint, uint8_t * battery2PercentageThreshold2); // int8u +EmberAfStatus SetBattery2PercentageThreshold2(chip::EndpointId endpoint, uint8_t battery2PercentageThreshold2); +EmberAfStatus GetBattery2PercentageThreshold3(chip::EndpointId endpoint, uint8_t * battery2PercentageThreshold3); // int8u +EmberAfStatus SetBattery2PercentageThreshold3(chip::EndpointId endpoint, uint8_t battery2PercentageThreshold3); +EmberAfStatus GetBattery2AlarmState(chip::EndpointId endpoint, uint32_t * battery2AlarmState); // bitmap32 +EmberAfStatus SetBattery2AlarmState(chip::EndpointId endpoint, uint32_t battery2AlarmState); +EmberAfStatus GetBattery3Voltage(chip::EndpointId endpoint, uint8_t * battery3Voltage); // int8u +EmberAfStatus SetBattery3Voltage(chip::EndpointId endpoint, uint8_t battery3Voltage); +EmberAfStatus GetBattery3PercentageRemaining(chip::EndpointId endpoint, uint8_t * battery3PercentageRemaining); // int8u +EmberAfStatus SetBattery3PercentageRemaining(chip::EndpointId endpoint, uint8_t battery3PercentageRemaining); +EmberAfStatus GetBattery3Size(chip::EndpointId endpoint, uint8_t * battery3Size); // enum8 +EmberAfStatus SetBattery3Size(chip::EndpointId endpoint, uint8_t battery3Size); +EmberAfStatus GetBattery3AhrRating(chip::EndpointId endpoint, uint16_t * battery3AhrRating); // int16u +EmberAfStatus SetBattery3AhrRating(chip::EndpointId endpoint, uint16_t battery3AhrRating); +EmberAfStatus GetBattery3Quantity(chip::EndpointId endpoint, uint8_t * battery3Quantity); // int8u +EmberAfStatus SetBattery3Quantity(chip::EndpointId endpoint, uint8_t battery3Quantity); +EmberAfStatus GetBattery3RatedVoltage(chip::EndpointId endpoint, uint8_t * battery3RatedVoltage); // int8u +EmberAfStatus SetBattery3RatedVoltage(chip::EndpointId endpoint, uint8_t battery3RatedVoltage); +EmberAfStatus GetBattery3AlarmMask(chip::EndpointId endpoint, uint8_t * battery3AlarmMask); // bitmap8 +EmberAfStatus SetBattery3AlarmMask(chip::EndpointId endpoint, uint8_t battery3AlarmMask); +EmberAfStatus GetBattery3VoltageMinThreshold(chip::EndpointId endpoint, uint8_t * battery3VoltageMinThreshold); // int8u +EmberAfStatus SetBattery3VoltageMinThreshold(chip::EndpointId endpoint, uint8_t battery3VoltageMinThreshold); +EmberAfStatus GetBattery3VoltageThreshold1(chip::EndpointId endpoint, uint8_t * battery3VoltageThreshold1); // int8u +EmberAfStatus SetBattery3VoltageThreshold1(chip::EndpointId endpoint, uint8_t battery3VoltageThreshold1); +EmberAfStatus GetBattery3VoltageThreshold2(chip::EndpointId endpoint, uint8_t * battery3VoltageThreshold2); // int8u +EmberAfStatus SetBattery3VoltageThreshold2(chip::EndpointId endpoint, uint8_t battery3VoltageThreshold2); +EmberAfStatus GetBattery3VoltageThreshold3(chip::EndpointId endpoint, uint8_t * battery3VoltageThreshold3); // int8u +EmberAfStatus SetBattery3VoltageThreshold3(chip::EndpointId endpoint, uint8_t battery3VoltageThreshold3); +EmberAfStatus GetBattery3PercentageMinThreshold(chip::EndpointId endpoint, uint8_t * battery3PercentageMinThreshold); // int8u +EmberAfStatus SetBattery3PercentageMinThreshold(chip::EndpointId endpoint, uint8_t battery3PercentageMinThreshold); +EmberAfStatus GetBattery3PercentageThreshold1(chip::EndpointId endpoint, uint8_t * battery3PercentageThreshold1); // int8u +EmberAfStatus SetBattery3PercentageThreshold1(chip::EndpointId endpoint, uint8_t battery3PercentageThreshold1); +EmberAfStatus GetBattery3PercentageThreshold2(chip::EndpointId endpoint, uint8_t * battery3PercentageThreshold2); // int8u +EmberAfStatus SetBattery3PercentageThreshold2(chip::EndpointId endpoint, uint8_t battery3PercentageThreshold2); +EmberAfStatus GetBattery3PercentageThreshold3(chip::EndpointId endpoint, uint8_t * battery3PercentageThreshold3); // int8u +EmberAfStatus SetBattery3PercentageThreshold3(chip::EndpointId endpoint, uint8_t battery3PercentageThreshold3); +EmberAfStatus GetBattery3AlarmState(chip::EndpointId endpoint, uint32_t * battery3AlarmState); // bitmap32 +EmberAfStatus SetBattery3AlarmState(chip::EndpointId endpoint, uint32_t battery3AlarmState); +} // namespace Attributes +} // namespace PowerConfiguration + +namespace DeviceTemperatureConfiguration { +namespace Attributes { +EmberAfStatus GetCurrentTemperature(chip::EndpointId endpoint, int16_t * currentTemperature); // int16s +EmberAfStatus SetCurrentTemperature(chip::EndpointId endpoint, int16_t currentTemperature); +EmberAfStatus GetMinTempExperienced(chip::EndpointId endpoint, int16_t * minTempExperienced); // int16s +EmberAfStatus SetMinTempExperienced(chip::EndpointId endpoint, int16_t minTempExperienced); +EmberAfStatus GetMaxTempExperienced(chip::EndpointId endpoint, int16_t * maxTempExperienced); // int16s +EmberAfStatus SetMaxTempExperienced(chip::EndpointId endpoint, int16_t maxTempExperienced); +EmberAfStatus GetOverTempTotalDwell(chip::EndpointId endpoint, uint16_t * overTempTotalDwell); // int16u +EmberAfStatus SetOverTempTotalDwell(chip::EndpointId endpoint, uint16_t overTempTotalDwell); +EmberAfStatus GetDeviceTempAlarmMask(chip::EndpointId endpoint, uint8_t * deviceTempAlarmMask); // bitmap8 +EmberAfStatus SetDeviceTempAlarmMask(chip::EndpointId endpoint, uint8_t deviceTempAlarmMask); +EmberAfStatus GetLowTempThreshold(chip::EndpointId endpoint, int16_t * lowTempThreshold); // int16s +EmberAfStatus SetLowTempThreshold(chip::EndpointId endpoint, int16_t lowTempThreshold); +EmberAfStatus GetHighTempThreshold(chip::EndpointId endpoint, int16_t * highTempThreshold); // int16s +EmberAfStatus SetHighTempThreshold(chip::EndpointId endpoint, int16_t highTempThreshold); +} // namespace Attributes +} // namespace DeviceTemperatureConfiguration + +namespace Identify { +namespace Attributes { +EmberAfStatus GetIdentifyTime(chip::EndpointId endpoint, uint16_t * identifyTime); // int16u +EmberAfStatus SetIdentifyTime(chip::EndpointId endpoint, uint16_t identifyTime); +EmberAfStatus GetCommissionState(chip::EndpointId endpoint, uint8_t * commissionState); // bitmap8 +EmberAfStatus SetCommissionState(chip::EndpointId endpoint, uint8_t commissionState); +} // namespace Attributes +} // namespace Identify + +namespace Groups { +namespace Attributes { +EmberAfStatus GetNameSupport(chip::EndpointId endpoint, uint8_t * nameSupport); // bitmap8 +EmberAfStatus SetNameSupport(chip::EndpointId endpoint, uint8_t nameSupport); +} // namespace Attributes +} // namespace Groups + +namespace Scenes { +namespace Attributes { +EmberAfStatus GetSceneCount(chip::EndpointId endpoint, uint8_t * sceneCount); // int8u +EmberAfStatus SetSceneCount(chip::EndpointId endpoint, uint8_t sceneCount); +EmberAfStatus GetCurrentScene(chip::EndpointId endpoint, uint8_t * currentScene); // int8u +EmberAfStatus SetCurrentScene(chip::EndpointId endpoint, uint8_t currentScene); +EmberAfStatus GetCurrentGroup(chip::EndpointId endpoint, uint16_t * currentGroup); // int16u +EmberAfStatus SetCurrentGroup(chip::EndpointId endpoint, uint16_t currentGroup); +EmberAfStatus GetSceneValid(chip::EndpointId endpoint, uint8_t * sceneValid); // boolean +EmberAfStatus SetSceneValid(chip::EndpointId endpoint, uint8_t sceneValid); +EmberAfStatus GetNameSupport(chip::EndpointId endpoint, uint8_t * nameSupport); // bitmap8 +EmberAfStatus SetNameSupport(chip::EndpointId endpoint, uint8_t nameSupport); +EmberAfStatus GetLastConfiguredBy(chip::EndpointId endpoint, + /* TYPE WARNING: unknown defaults to */ uint8_t ** lastConfiguredBy); // eui64 +EmberAfStatus SetLastConfiguredBy(chip::EndpointId endpoint, /* TYPE WARNING: unknown defaults to */ uint8_t * lastConfiguredBy); +} // namespace Attributes +} // namespace Scenes + +namespace OnOff { +namespace Attributes { +EmberAfStatus GetOnOff(chip::EndpointId endpoint, uint8_t * onOff); // boolean +EmberAfStatus SetOnOff(chip::EndpointId endpoint, uint8_t onOff); +EmberAfStatus GetSampleMfgSpecificAttribute0x00000x1002(chip::EndpointId endpoint, + uint16_t * sampleMfgSpecificAttribute0x00000x1002); // int16u +EmberAfStatus SetSampleMfgSpecificAttribute0x00000x1002(chip::EndpointId endpoint, uint16_t sampleMfgSpecificAttribute0x00000x1002); +EmberAfStatus GetSampleMfgSpecificAttribute0x00000x1049(chip::EndpointId endpoint, + uint8_t * sampleMfgSpecificAttribute0x00000x1049); // int8u +EmberAfStatus SetSampleMfgSpecificAttribute0x00000x1049(chip::EndpointId endpoint, uint8_t sampleMfgSpecificAttribute0x00000x1049); +EmberAfStatus GetSampleMfgSpecificAttribute0x00010x1002(chip::EndpointId endpoint, + uint8_t * sampleMfgSpecificAttribute0x00010x1002); // int8u +EmberAfStatus SetSampleMfgSpecificAttribute0x00010x1002(chip::EndpointId endpoint, uint8_t sampleMfgSpecificAttribute0x00010x1002); +EmberAfStatus GetSampleMfgSpecificAttribute0x00010x1040(chip::EndpointId endpoint, + uint16_t * sampleMfgSpecificAttribute0x00010x1040); // int16u +EmberAfStatus SetSampleMfgSpecificAttribute0x00010x1040(chip::EndpointId endpoint, uint16_t sampleMfgSpecificAttribute0x00010x1040); +EmberAfStatus GetGlobalSceneControl(chip::EndpointId endpoint, uint8_t * globalSceneControl); // boolean +EmberAfStatus SetGlobalSceneControl(chip::EndpointId endpoint, uint8_t globalSceneControl); +EmberAfStatus GetOnTime(chip::EndpointId endpoint, uint16_t * onTime); // int16u +EmberAfStatus SetOnTime(chip::EndpointId endpoint, uint16_t onTime); +EmberAfStatus GetOffWaitTime(chip::EndpointId endpoint, uint16_t * offWaitTime); // int16u +EmberAfStatus SetOffWaitTime(chip::EndpointId endpoint, uint16_t offWaitTime); +EmberAfStatus GetStartUpOnOff(chip::EndpointId endpoint, uint8_t * startUpOnOff); // enum8 +EmberAfStatus SetStartUpOnOff(chip::EndpointId endpoint, uint8_t startUpOnOff); +} // namespace Attributes +} // namespace OnOff + +namespace OnOffSwitchConfiguration { +namespace Attributes { +EmberAfStatus GetSwitchType(chip::EndpointId endpoint, uint8_t * switchType); // enum8 +EmberAfStatus SetSwitchType(chip::EndpointId endpoint, uint8_t switchType); +EmberAfStatus GetSwitchActions(chip::EndpointId endpoint, uint8_t * switchActions); // enum8 +EmberAfStatus SetSwitchActions(chip::EndpointId endpoint, uint8_t switchActions); +} // namespace Attributes +} // namespace OnOffSwitchConfiguration + +namespace LevelControl { +namespace Attributes { +EmberAfStatus GetCurrentLevel(chip::EndpointId endpoint, uint8_t * currentLevel); // int8u +EmberAfStatus SetCurrentLevel(chip::EndpointId endpoint, uint8_t currentLevel); +EmberAfStatus GetRemainingTime(chip::EndpointId endpoint, uint16_t * remainingTime); // int16u +EmberAfStatus SetRemainingTime(chip::EndpointId endpoint, uint16_t remainingTime); +EmberAfStatus GetOptions(chip::EndpointId endpoint, uint8_t * options); // bitmap8 +EmberAfStatus SetOptions(chip::EndpointId endpoint, uint8_t options); +EmberAfStatus GetOnOffTransitionTime(chip::EndpointId endpoint, uint16_t * onOffTransitionTime); // int16u +EmberAfStatus SetOnOffTransitionTime(chip::EndpointId endpoint, uint16_t onOffTransitionTime); +EmberAfStatus GetOnLevel(chip::EndpointId endpoint, uint8_t * onLevel); // int8u +EmberAfStatus SetOnLevel(chip::EndpointId endpoint, uint8_t onLevel); +EmberAfStatus GetOnTransitionTime(chip::EndpointId endpoint, uint16_t * onTransitionTime); // int16u +EmberAfStatus SetOnTransitionTime(chip::EndpointId endpoint, uint16_t onTransitionTime); +EmberAfStatus GetOffTransitionTime(chip::EndpointId endpoint, uint16_t * offTransitionTime); // int16u +EmberAfStatus SetOffTransitionTime(chip::EndpointId endpoint, uint16_t offTransitionTime); +EmberAfStatus GetDefaultMoveRate(chip::EndpointId endpoint, uint8_t * defaultMoveRate); // int8u +EmberAfStatus SetDefaultMoveRate(chip::EndpointId endpoint, uint8_t defaultMoveRate); +EmberAfStatus GetStartUpCurrentLevel(chip::EndpointId endpoint, uint8_t * startUpCurrentLevel); // int8u +EmberAfStatus SetStartUpCurrentLevel(chip::EndpointId endpoint, uint8_t startUpCurrentLevel); +} // namespace Attributes +} // namespace LevelControl + +namespace Alarms { +namespace Attributes { +EmberAfStatus GetAlarmCount(chip::EndpointId endpoint, uint16_t * alarmCount); // int16u +EmberAfStatus SetAlarmCount(chip::EndpointId endpoint, uint16_t alarmCount); +} // namespace Attributes +} // namespace Alarms + +namespace Time { +namespace Attributes { +EmberAfStatus GetTime(chip::EndpointId endpoint, /* TYPE WARNING: utc defaults to */ uint8_t ** time); // utc +EmberAfStatus SetTime(chip::EndpointId endpoint, /* TYPE WARNING: utc defaults to */ uint8_t * time); +EmberAfStatus GetTimeStatus(chip::EndpointId endpoint, uint8_t * timeStatus); // bitmap8 +EmberAfStatus SetTimeStatus(chip::EndpointId endpoint, uint8_t timeStatus); +EmberAfStatus GetTimeZone(chip::EndpointId endpoint, int32_t * timeZone); // int32s +EmberAfStatus SetTimeZone(chip::EndpointId endpoint, int32_t timeZone); +EmberAfStatus GetDstStart(chip::EndpointId endpoint, uint32_t * dstStart); // int32u +EmberAfStatus SetDstStart(chip::EndpointId endpoint, uint32_t dstStart); +EmberAfStatus GetDstEnd(chip::EndpointId endpoint, uint32_t * dstEnd); // int32u +EmberAfStatus SetDstEnd(chip::EndpointId endpoint, uint32_t dstEnd); +EmberAfStatus GetDstShift(chip::EndpointId endpoint, int32_t * dstShift); // int32s +EmberAfStatus SetDstShift(chip::EndpointId endpoint, int32_t dstShift); +EmberAfStatus GetStandardTime(chip::EndpointId endpoint, uint32_t * standardTime); // int32u +EmberAfStatus SetStandardTime(chip::EndpointId endpoint, uint32_t standardTime); +EmberAfStatus GetLocalTime(chip::EndpointId endpoint, uint32_t * localTime); // int32u +EmberAfStatus SetLocalTime(chip::EndpointId endpoint, uint32_t localTime); +EmberAfStatus GetLastSetTime(chip::EndpointId endpoint, /* TYPE WARNING: utc defaults to */ uint8_t ** lastSetTime); // utc +EmberAfStatus SetLastSetTime(chip::EndpointId endpoint, /* TYPE WARNING: utc defaults to */ uint8_t * lastSetTime); +EmberAfStatus GetValidUntilTime(chip::EndpointId endpoint, /* TYPE WARNING: utc defaults to */ uint8_t ** validUntilTime); // utc +EmberAfStatus SetValidUntilTime(chip::EndpointId endpoint, /* TYPE WARNING: utc defaults to */ uint8_t * validUntilTime); +} // namespace Attributes +} // namespace Time + +namespace BinaryInputBasic { +namespace Attributes { +EmberAfStatus GetOutOfService(chip::EndpointId endpoint, uint8_t * outOfService); // boolean +EmberAfStatus SetOutOfService(chip::EndpointId endpoint, uint8_t outOfService); +EmberAfStatus GetPolarity(chip::EndpointId endpoint, uint8_t * polarity); // enum8 +EmberAfStatus SetPolarity(chip::EndpointId endpoint, uint8_t polarity); +EmberAfStatus GetPresentValue(chip::EndpointId endpoint, uint8_t * presentValue); // boolean +EmberAfStatus SetPresentValue(chip::EndpointId endpoint, uint8_t presentValue); +EmberAfStatus GetReliability(chip::EndpointId endpoint, uint8_t * reliability); // enum8 +EmberAfStatus SetReliability(chip::EndpointId endpoint, uint8_t reliability); +EmberAfStatus GetStatusFlags(chip::EndpointId endpoint, uint8_t * statusFlags); // bitmap8 +EmberAfStatus SetStatusFlags(chip::EndpointId endpoint, uint8_t statusFlags); +EmberAfStatus GetApplicationType(chip::EndpointId endpoint, uint32_t * applicationType); // int32u +EmberAfStatus SetApplicationType(chip::EndpointId endpoint, uint32_t applicationType); +} // namespace Attributes +} // namespace BinaryInputBasic + +namespace PowerProfile { +namespace Attributes { +EmberAfStatus GetTotalProfileNum(chip::EndpointId endpoint, uint8_t * totalProfileNum); // int8u +EmberAfStatus SetTotalProfileNum(chip::EndpointId endpoint, uint8_t totalProfileNum); +EmberAfStatus GetMultipleScheduling(chip::EndpointId endpoint, uint8_t * multipleScheduling); // boolean +EmberAfStatus SetMultipleScheduling(chip::EndpointId endpoint, uint8_t multipleScheduling); +EmberAfStatus GetEnergyFormatting(chip::EndpointId endpoint, uint8_t * energyFormatting); // bitmap8 +EmberAfStatus SetEnergyFormatting(chip::EndpointId endpoint, uint8_t energyFormatting); +EmberAfStatus GetEnergyRemote(chip::EndpointId endpoint, uint8_t * energyRemote); // boolean +EmberAfStatus SetEnergyRemote(chip::EndpointId endpoint, uint8_t energyRemote); +EmberAfStatus GetScheduleMode(chip::EndpointId endpoint, uint8_t * scheduleMode); // bitmap8 +EmberAfStatus SetScheduleMode(chip::EndpointId endpoint, uint8_t scheduleMode); +} // namespace Attributes +} // namespace PowerProfile + +namespace ApplianceControl { +namespace Attributes { +EmberAfStatus GetStartTime(chip::EndpointId endpoint, uint16_t * startTime); // int16u +EmberAfStatus SetStartTime(chip::EndpointId endpoint, uint16_t startTime); +EmberAfStatus GetFinishTime(chip::EndpointId endpoint, uint16_t * finishTime); // int16u +EmberAfStatus SetFinishTime(chip::EndpointId endpoint, uint16_t finishTime); +EmberAfStatus GetRemainingTime(chip::EndpointId endpoint, uint16_t * remainingTime); // int16u +EmberAfStatus SetRemainingTime(chip::EndpointId endpoint, uint16_t remainingTime); +} // namespace Attributes +} // namespace ApplianceControl + +namespace Descriptor { +namespace Attributes { +} // namespace Attributes +} // namespace Descriptor + +namespace PollControl { +namespace Attributes { +EmberAfStatus GetCheckInInterval(chip::EndpointId endpoint, uint32_t * checkInInterval); // int32u +EmberAfStatus SetCheckInInterval(chip::EndpointId endpoint, uint32_t checkInInterval); +EmberAfStatus GetLongPollInterval(chip::EndpointId endpoint, uint32_t * longPollInterval); // int32u +EmberAfStatus SetLongPollInterval(chip::EndpointId endpoint, uint32_t longPollInterval); +EmberAfStatus GetShortPollInterval(chip::EndpointId endpoint, uint16_t * shortPollInterval); // int16u +EmberAfStatus SetShortPollInterval(chip::EndpointId endpoint, uint16_t shortPollInterval); +EmberAfStatus GetFastPollTimeout(chip::EndpointId endpoint, uint16_t * fastPollTimeout); // int16u +EmberAfStatus SetFastPollTimeout(chip::EndpointId endpoint, uint16_t fastPollTimeout); +EmberAfStatus GetCheckInIntervalMin(chip::EndpointId endpoint, uint32_t * checkInIntervalMin); // int32u +EmberAfStatus SetCheckInIntervalMin(chip::EndpointId endpoint, uint32_t checkInIntervalMin); +EmberAfStatus GetLongPollIntervalMin(chip::EndpointId endpoint, uint32_t * longPollIntervalMin); // int32u +EmberAfStatus SetLongPollIntervalMin(chip::EndpointId endpoint, uint32_t longPollIntervalMin); +EmberAfStatus GetFastPollTimeoutMax(chip::EndpointId endpoint, uint16_t * fastPollTimeoutMax); // int16u +EmberAfStatus SetFastPollTimeoutMax(chip::EndpointId endpoint, uint16_t fastPollTimeoutMax); +} // namespace Attributes +} // namespace PollControl + +namespace Basic { +namespace Attributes { +EmberAfStatus GetInteractionModelVersion(chip::EndpointId endpoint, uint16_t * interactionModelVersion); // int16u +EmberAfStatus SetInteractionModelVersion(chip::EndpointId endpoint, uint16_t interactionModelVersion); +EmberAfStatus GetVendorID(chip::EndpointId endpoint, uint16_t * vendorID); // int16u +EmberAfStatus SetVendorID(chip::EndpointId endpoint, uint16_t vendorID); +EmberAfStatus GetProductID(chip::EndpointId endpoint, uint16_t * productID); // int16u +EmberAfStatus SetProductID(chip::EndpointId endpoint, uint16_t productID); +EmberAfStatus GetHardwareVersion(chip::EndpointId endpoint, uint16_t * hardwareVersion); // int16u +EmberAfStatus SetHardwareVersion(chip::EndpointId endpoint, uint16_t hardwareVersion); +EmberAfStatus GetSoftwareVersion(chip::EndpointId endpoint, uint32_t * softwareVersion); // int32u +EmberAfStatus SetSoftwareVersion(chip::EndpointId endpoint, uint32_t softwareVersion); +EmberAfStatus GetLocalConfigDisabled(chip::EndpointId endpoint, uint8_t * localConfigDisabled); // boolean +EmberAfStatus SetLocalConfigDisabled(chip::EndpointId endpoint, uint8_t localConfigDisabled); +EmberAfStatus GetReachable(chip::EndpointId endpoint, uint8_t * reachable); // boolean +EmberAfStatus SetReachable(chip::EndpointId endpoint, uint8_t reachable); +} // namespace Attributes +} // namespace Basic + +namespace GeneralCommissioning { +namespace Attributes { +EmberAfStatus GetBreadcrumb(chip::EndpointId endpoint, uint64_t * breadcrumb); // int64u +EmberAfStatus SetBreadcrumb(chip::EndpointId endpoint, uint64_t breadcrumb); +} // namespace Attributes +} // namespace GeneralCommissioning + +namespace GeneralDiagnostics { +namespace Attributes { +EmberAfStatus GetRebootCount(chip::EndpointId endpoint, uint16_t * rebootCount); // int16u +EmberAfStatus SetRebootCount(chip::EndpointId endpoint, uint16_t rebootCount); +EmberAfStatus GetUpTime(chip::EndpointId endpoint, uint64_t * upTime); // int64u +EmberAfStatus SetUpTime(chip::EndpointId endpoint, uint64_t upTime); +EmberAfStatus GetTotalOperationalHours(chip::EndpointId endpoint, uint32_t * totalOperationalHours); // int32u +EmberAfStatus SetTotalOperationalHours(chip::EndpointId endpoint, uint32_t totalOperationalHours); +EmberAfStatus GetBootReasons(chip::EndpointId endpoint, uint8_t * bootReasons); // enum8 +EmberAfStatus SetBootReasons(chip::EndpointId endpoint, uint8_t bootReasons); +} // namespace Attributes +} // namespace GeneralDiagnostics + +namespace SoftwareDiagnostics { +namespace Attributes { +EmberAfStatus GetCurrentHeapFree(chip::EndpointId endpoint, uint64_t * currentHeapFree); // int64u +EmberAfStatus SetCurrentHeapFree(chip::EndpointId endpoint, uint64_t currentHeapFree); +EmberAfStatus GetCurrentHeapUsed(chip::EndpointId endpoint, uint64_t * currentHeapUsed); // int64u +EmberAfStatus SetCurrentHeapUsed(chip::EndpointId endpoint, uint64_t currentHeapUsed); +EmberAfStatus GetCurrentHeapHighWatermark(chip::EndpointId endpoint, uint64_t * currentHeapHighWatermark); // int64u +EmberAfStatus SetCurrentHeapHighWatermark(chip::EndpointId endpoint, uint64_t currentHeapHighWatermark); +} // namespace Attributes +} // namespace SoftwareDiagnostics + +namespace ThreadNetworkDiagnostics { +namespace Attributes { +EmberAfStatus GetChannel(chip::EndpointId endpoint, uint8_t * channel); // int8u +EmberAfStatus SetChannel(chip::EndpointId endpoint, uint8_t channel); +EmberAfStatus GetRoutingRole(chip::EndpointId endpoint, uint8_t * routingRole); // enum8 +EmberAfStatus SetRoutingRole(chip::EndpointId endpoint, uint8_t routingRole); +EmberAfStatus GetPanId(chip::EndpointId endpoint, uint16_t * panId); // int16u +EmberAfStatus SetPanId(chip::EndpointId endpoint, uint16_t panId); +EmberAfStatus GetExtendedPanId(chip::EndpointId endpoint, uint64_t * extendedPanId); // int64u +EmberAfStatus SetExtendedPanId(chip::EndpointId endpoint, uint64_t extendedPanId); +EmberAfStatus GetOverrunCount(chip::EndpointId endpoint, uint64_t * overrunCount); // int64u +EmberAfStatus SetOverrunCount(chip::EndpointId endpoint, uint64_t overrunCount); +EmberAfStatus GetPartitionId(chip::EndpointId endpoint, uint32_t * partitionId); // int32u +EmberAfStatus SetPartitionId(chip::EndpointId endpoint, uint32_t partitionId); +EmberAfStatus GetWeighting(chip::EndpointId endpoint, uint8_t * weighting); // int8u +EmberAfStatus SetWeighting(chip::EndpointId endpoint, uint8_t weighting); +EmberAfStatus GetDataVersion(chip::EndpointId endpoint, uint8_t * dataVersion); // int8u +EmberAfStatus SetDataVersion(chip::EndpointId endpoint, uint8_t dataVersion); +EmberAfStatus GetStableDataVersion(chip::EndpointId endpoint, uint8_t * stableDataVersion); // int8u +EmberAfStatus SetStableDataVersion(chip::EndpointId endpoint, uint8_t stableDataVersion); +EmberAfStatus GetLeaderRouterId(chip::EndpointId endpoint, uint8_t * leaderRouterId); // int8u +EmberAfStatus SetLeaderRouterId(chip::EndpointId endpoint, uint8_t leaderRouterId); +EmberAfStatus GetDetachedRoleCount(chip::EndpointId endpoint, uint16_t * detachedRoleCount); // int16u +EmberAfStatus SetDetachedRoleCount(chip::EndpointId endpoint, uint16_t detachedRoleCount); +EmberAfStatus GetChildRoleCount(chip::EndpointId endpoint, uint16_t * childRoleCount); // int16u +EmberAfStatus SetChildRoleCount(chip::EndpointId endpoint, uint16_t childRoleCount); +EmberAfStatus GetRouterRoleCount(chip::EndpointId endpoint, uint16_t * routerRoleCount); // int16u +EmberAfStatus SetRouterRoleCount(chip::EndpointId endpoint, uint16_t routerRoleCount); +EmberAfStatus GetLeaderRoleCount(chip::EndpointId endpoint, uint16_t * leaderRoleCount); // int16u +EmberAfStatus SetLeaderRoleCount(chip::EndpointId endpoint, uint16_t leaderRoleCount); +EmberAfStatus GetAttachAttemptCount(chip::EndpointId endpoint, uint16_t * attachAttemptCount); // int16u +EmberAfStatus SetAttachAttemptCount(chip::EndpointId endpoint, uint16_t attachAttemptCount); +EmberAfStatus GetPartitionIdChangeCount(chip::EndpointId endpoint, uint16_t * partitionIdChangeCount); // int16u +EmberAfStatus SetPartitionIdChangeCount(chip::EndpointId endpoint, uint16_t partitionIdChangeCount); +EmberAfStatus GetBetterPartitionAttachAttemptCount(chip::EndpointId endpoint, + uint16_t * betterPartitionAttachAttemptCount); // int16u +EmberAfStatus SetBetterPartitionAttachAttemptCount(chip::EndpointId endpoint, uint16_t betterPartitionAttachAttemptCount); +EmberAfStatus GetParentChangeCount(chip::EndpointId endpoint, uint16_t * parentChangeCount); // int16u +EmberAfStatus SetParentChangeCount(chip::EndpointId endpoint, uint16_t parentChangeCount); +EmberAfStatus GetTxTotalCount(chip::EndpointId endpoint, uint32_t * txTotalCount); // int32u +EmberAfStatus SetTxTotalCount(chip::EndpointId endpoint, uint32_t txTotalCount); +EmberAfStatus GetTxUnicastCount(chip::EndpointId endpoint, uint32_t * txUnicastCount); // int32u +EmberAfStatus SetTxUnicastCount(chip::EndpointId endpoint, uint32_t txUnicastCount); +EmberAfStatus GetTxBroadcastCount(chip::EndpointId endpoint, uint32_t * txBroadcastCount); // int32u +EmberAfStatus SetTxBroadcastCount(chip::EndpointId endpoint, uint32_t txBroadcastCount); +EmberAfStatus GetTxAckRequestedCount(chip::EndpointId endpoint, uint32_t * txAckRequestedCount); // int32u +EmberAfStatus SetTxAckRequestedCount(chip::EndpointId endpoint, uint32_t txAckRequestedCount); +EmberAfStatus GetTxAckedCount(chip::EndpointId endpoint, uint32_t * txAckedCount); // int32u +EmberAfStatus SetTxAckedCount(chip::EndpointId endpoint, uint32_t txAckedCount); +EmberAfStatus GetTxNoAckRequestedCount(chip::EndpointId endpoint, uint32_t * txNoAckRequestedCount); // int32u +EmberAfStatus SetTxNoAckRequestedCount(chip::EndpointId endpoint, uint32_t txNoAckRequestedCount); +EmberAfStatus GetTxDataCount(chip::EndpointId endpoint, uint32_t * txDataCount); // int32u +EmberAfStatus SetTxDataCount(chip::EndpointId endpoint, uint32_t txDataCount); +EmberAfStatus GetTxDataPollCount(chip::EndpointId endpoint, uint32_t * txDataPollCount); // int32u +EmberAfStatus SetTxDataPollCount(chip::EndpointId endpoint, uint32_t txDataPollCount); +EmberAfStatus GetTxBeaconCount(chip::EndpointId endpoint, uint32_t * txBeaconCount); // int32u +EmberAfStatus SetTxBeaconCount(chip::EndpointId endpoint, uint32_t txBeaconCount); +EmberAfStatus GetTxBeaconRequestCount(chip::EndpointId endpoint, uint32_t * txBeaconRequestCount); // int32u +EmberAfStatus SetTxBeaconRequestCount(chip::EndpointId endpoint, uint32_t txBeaconRequestCount); +EmberAfStatus GetTxOtherCount(chip::EndpointId endpoint, uint32_t * txOtherCount); // int32u +EmberAfStatus SetTxOtherCount(chip::EndpointId endpoint, uint32_t txOtherCount); +EmberAfStatus GetTxRetryCount(chip::EndpointId endpoint, uint32_t * txRetryCount); // int32u +EmberAfStatus SetTxRetryCount(chip::EndpointId endpoint, uint32_t txRetryCount); +EmberAfStatus GetTxDirectMaxRetryExpiryCount(chip::EndpointId endpoint, uint32_t * txDirectMaxRetryExpiryCount); // int32u +EmberAfStatus SetTxDirectMaxRetryExpiryCount(chip::EndpointId endpoint, uint32_t txDirectMaxRetryExpiryCount); +EmberAfStatus GetTxIndirectMaxRetryExpiryCount(chip::EndpointId endpoint, uint32_t * txIndirectMaxRetryExpiryCount); // int32u +EmberAfStatus SetTxIndirectMaxRetryExpiryCount(chip::EndpointId endpoint, uint32_t txIndirectMaxRetryExpiryCount); +EmberAfStatus GetTxErrCcaCount(chip::EndpointId endpoint, uint32_t * txErrCcaCount); // int32u +EmberAfStatus SetTxErrCcaCount(chip::EndpointId endpoint, uint32_t txErrCcaCount); +EmberAfStatus GetTxErrAbortCount(chip::EndpointId endpoint, uint32_t * txErrAbortCount); // int32u +EmberAfStatus SetTxErrAbortCount(chip::EndpointId endpoint, uint32_t txErrAbortCount); +EmberAfStatus GetTxErrBusyChannelCount(chip::EndpointId endpoint, uint32_t * txErrBusyChannelCount); // int32u +EmberAfStatus SetTxErrBusyChannelCount(chip::EndpointId endpoint, uint32_t txErrBusyChannelCount); +EmberAfStatus GetRxTotalCount(chip::EndpointId endpoint, uint32_t * rxTotalCount); // int32u +EmberAfStatus SetRxTotalCount(chip::EndpointId endpoint, uint32_t rxTotalCount); +EmberAfStatus GetRxUnicastCount(chip::EndpointId endpoint, uint32_t * rxUnicastCount); // int32u +EmberAfStatus SetRxUnicastCount(chip::EndpointId endpoint, uint32_t rxUnicastCount); +EmberAfStatus GetRxBroadcastCount(chip::EndpointId endpoint, uint32_t * rxBroadcastCount); // int32u +EmberAfStatus SetRxBroadcastCount(chip::EndpointId endpoint, uint32_t rxBroadcastCount); +EmberAfStatus GetRxDataCount(chip::EndpointId endpoint, uint32_t * rxDataCount); // int32u +EmberAfStatus SetRxDataCount(chip::EndpointId endpoint, uint32_t rxDataCount); +EmberAfStatus GetRxDataPollCount(chip::EndpointId endpoint, uint32_t * rxDataPollCount); // int32u +EmberAfStatus SetRxDataPollCount(chip::EndpointId endpoint, uint32_t rxDataPollCount); +EmberAfStatus GetRxBeaconCount(chip::EndpointId endpoint, uint32_t * rxBeaconCount); // int32u +EmberAfStatus SetRxBeaconCount(chip::EndpointId endpoint, uint32_t rxBeaconCount); +EmberAfStatus GetRxBeaconRequestCount(chip::EndpointId endpoint, uint32_t * rxBeaconRequestCount); // int32u +EmberAfStatus SetRxBeaconRequestCount(chip::EndpointId endpoint, uint32_t rxBeaconRequestCount); +EmberAfStatus GetRxOtherCount(chip::EndpointId endpoint, uint32_t * rxOtherCount); // int32u +EmberAfStatus SetRxOtherCount(chip::EndpointId endpoint, uint32_t rxOtherCount); +EmberAfStatus GetRxAddressFilteredCount(chip::EndpointId endpoint, uint32_t * rxAddressFilteredCount); // int32u +EmberAfStatus SetRxAddressFilteredCount(chip::EndpointId endpoint, uint32_t rxAddressFilteredCount); +EmberAfStatus GetRxDestAddrFilteredCount(chip::EndpointId endpoint, uint32_t * rxDestAddrFilteredCount); // int32u +EmberAfStatus SetRxDestAddrFilteredCount(chip::EndpointId endpoint, uint32_t rxDestAddrFilteredCount); +EmberAfStatus GetRxDuplicatedCount(chip::EndpointId endpoint, uint32_t * rxDuplicatedCount); // int32u +EmberAfStatus SetRxDuplicatedCount(chip::EndpointId endpoint, uint32_t rxDuplicatedCount); +EmberAfStatus GetRxErrNoFrameCount(chip::EndpointId endpoint, uint32_t * rxErrNoFrameCount); // int32u +EmberAfStatus SetRxErrNoFrameCount(chip::EndpointId endpoint, uint32_t rxErrNoFrameCount); +EmberAfStatus GetRxErrUnknownNeighborCount(chip::EndpointId endpoint, uint32_t * rxErrUnknownNeighborCount); // int32u +EmberAfStatus SetRxErrUnknownNeighborCount(chip::EndpointId endpoint, uint32_t rxErrUnknownNeighborCount); +EmberAfStatus GetRxErrInvalidSrcAddrCount(chip::EndpointId endpoint, uint32_t * rxErrInvalidSrcAddrCount); // int32u +EmberAfStatus SetRxErrInvalidSrcAddrCount(chip::EndpointId endpoint, uint32_t rxErrInvalidSrcAddrCount); +EmberAfStatus GetRxErrSecCount(chip::EndpointId endpoint, uint32_t * rxErrSecCount); // int32u +EmberAfStatus SetRxErrSecCount(chip::EndpointId endpoint, uint32_t rxErrSecCount); +EmberAfStatus GetRxErrFcsCount(chip::EndpointId endpoint, uint32_t * rxErrFcsCount); // int32u +EmberAfStatus SetRxErrFcsCount(chip::EndpointId endpoint, uint32_t rxErrFcsCount); +EmberAfStatus GetRxErrOtherCount(chip::EndpointId endpoint, uint32_t * rxErrOtherCount); // int32u +EmberAfStatus SetRxErrOtherCount(chip::EndpointId endpoint, uint32_t rxErrOtherCount); +EmberAfStatus GetActiveTimestamp(chip::EndpointId endpoint, uint64_t * activeTimestamp); // int64u +EmberAfStatus SetActiveTimestamp(chip::EndpointId endpoint, uint64_t activeTimestamp); +EmberAfStatus GetPendingTimestamp(chip::EndpointId endpoint, uint64_t * pendingTimestamp); // int64u +EmberAfStatus SetPendingTimestamp(chip::EndpointId endpoint, uint64_t pendingTimestamp); +EmberAfStatus GetDelay(chip::EndpointId endpoint, uint32_t * delay); // int32u +EmberAfStatus SetDelay(chip::EndpointId endpoint, uint32_t delay); +EmberAfStatus GetChannelMask(chip::EndpointId endpoint, uint8_t * channelMask); // int8u +EmberAfStatus SetChannelMask(chip::EndpointId endpoint, uint8_t channelMask); +} // namespace Attributes +} // namespace ThreadNetworkDiagnostics + +namespace WiFiNetworkDiagnostics { +namespace Attributes { +EmberAfStatus GetSecurityType(chip::EndpointId endpoint, uint8_t * securityType); // enum8 +EmberAfStatus SetSecurityType(chip::EndpointId endpoint, uint8_t securityType); +EmberAfStatus GetWiFiVersion(chip::EndpointId endpoint, uint8_t * wiFiVersion); // enum8 +EmberAfStatus SetWiFiVersion(chip::EndpointId endpoint, uint8_t wiFiVersion); +EmberAfStatus GetChannelNumber(chip::EndpointId endpoint, uint16_t * channelNumber); // int16u +EmberAfStatus SetChannelNumber(chip::EndpointId endpoint, uint16_t channelNumber); +EmberAfStatus GetRssi(chip::EndpointId endpoint, int8_t * rssi); // int8s +EmberAfStatus SetRssi(chip::EndpointId endpoint, int8_t rssi); +EmberAfStatus GetBeaconLostCount(chip::EndpointId endpoint, uint32_t * beaconLostCount); // int32u +EmberAfStatus SetBeaconLostCount(chip::EndpointId endpoint, uint32_t beaconLostCount); +EmberAfStatus GetBeaconRxCount(chip::EndpointId endpoint, uint32_t * beaconRxCount); // int32u +EmberAfStatus SetBeaconRxCount(chip::EndpointId endpoint, uint32_t beaconRxCount); +EmberAfStatus GetPacketMulticastRxCount(chip::EndpointId endpoint, uint32_t * packetMulticastRxCount); // int32u +EmberAfStatus SetPacketMulticastRxCount(chip::EndpointId endpoint, uint32_t packetMulticastRxCount); +EmberAfStatus GetPacketMulticastTxCount(chip::EndpointId endpoint, uint32_t * packetMulticastTxCount); // int32u +EmberAfStatus SetPacketMulticastTxCount(chip::EndpointId endpoint, uint32_t packetMulticastTxCount); +EmberAfStatus GetPacketUnicastRxCount(chip::EndpointId endpoint, uint32_t * packetUnicastRxCount); // int32u +EmberAfStatus SetPacketUnicastRxCount(chip::EndpointId endpoint, uint32_t packetUnicastRxCount); +EmberAfStatus GetPacketUnicastTxCount(chip::EndpointId endpoint, uint32_t * packetUnicastTxCount); // int32u +EmberAfStatus SetPacketUnicastTxCount(chip::EndpointId endpoint, uint32_t packetUnicastTxCount); +EmberAfStatus GetCurrentMaxRate(chip::EndpointId endpoint, uint64_t * currentMaxRate); // int64u +EmberAfStatus SetCurrentMaxRate(chip::EndpointId endpoint, uint64_t currentMaxRate); +EmberAfStatus GetOverrunCount(chip::EndpointId endpoint, uint64_t * overrunCount); // int64u +EmberAfStatus SetOverrunCount(chip::EndpointId endpoint, uint64_t overrunCount); +} // namespace Attributes +} // namespace WiFiNetworkDiagnostics + +namespace EthernetNetworkDiagnostics { +namespace Attributes { +EmberAfStatus GetPHYRate(chip::EndpointId endpoint, uint8_t * pHYRate); // enum8 +EmberAfStatus SetPHYRate(chip::EndpointId endpoint, uint8_t pHYRate); +EmberAfStatus GetFullDuplex(chip::EndpointId endpoint, uint8_t * fullDuplex); // boolean +EmberAfStatus SetFullDuplex(chip::EndpointId endpoint, uint8_t fullDuplex); +EmberAfStatus GetPacketRxCount(chip::EndpointId endpoint, uint64_t * packetRxCount); // int64u +EmberAfStatus SetPacketRxCount(chip::EndpointId endpoint, uint64_t packetRxCount); +EmberAfStatus GetPacketTxCount(chip::EndpointId endpoint, uint64_t * packetTxCount); // int64u +EmberAfStatus SetPacketTxCount(chip::EndpointId endpoint, uint64_t packetTxCount); +EmberAfStatus GetTxErrCount(chip::EndpointId endpoint, uint64_t * txErrCount); // int64u +EmberAfStatus SetTxErrCount(chip::EndpointId endpoint, uint64_t txErrCount); +EmberAfStatus GetCollisionCount(chip::EndpointId endpoint, uint64_t * collisionCount); // int64u +EmberAfStatus SetCollisionCount(chip::EndpointId endpoint, uint64_t collisionCount); +EmberAfStatus GetOverrunCount(chip::EndpointId endpoint, uint64_t * overrunCount); // int64u +EmberAfStatus SetOverrunCount(chip::EndpointId endpoint, uint64_t overrunCount); +EmberAfStatus GetCarrierDetect(chip::EndpointId endpoint, uint8_t * carrierDetect); // boolean +EmberAfStatus SetCarrierDetect(chip::EndpointId endpoint, uint8_t carrierDetect); +EmberAfStatus GetTimeSinceReset(chip::EndpointId endpoint, uint64_t * timeSinceReset); // int64u +EmberAfStatus SetTimeSinceReset(chip::EndpointId endpoint, uint64_t timeSinceReset); +} // namespace Attributes +} // namespace EthernetNetworkDiagnostics + +namespace BridgedDeviceBasic { +namespace Attributes { +EmberAfStatus GetVendorID(chip::EndpointId endpoint, uint16_t * vendorID); // int16u +EmberAfStatus SetVendorID(chip::EndpointId endpoint, uint16_t vendorID); +EmberAfStatus GetHardwareVersion(chip::EndpointId endpoint, uint16_t * hardwareVersion); // int16u +EmberAfStatus SetHardwareVersion(chip::EndpointId endpoint, uint16_t hardwareVersion); +EmberAfStatus GetSoftwareVersion(chip::EndpointId endpoint, uint32_t * softwareVersion); // int32u +EmberAfStatus SetSoftwareVersion(chip::EndpointId endpoint, uint32_t softwareVersion); +EmberAfStatus GetReachable(chip::EndpointId endpoint, uint8_t * reachable); // boolean +EmberAfStatus SetReachable(chip::EndpointId endpoint, uint8_t reachable); +} // namespace Attributes +} // namespace BridgedDeviceBasic + +namespace Switch { +namespace Attributes { +EmberAfStatus GetNumberOfPositions(chip::EndpointId endpoint, uint8_t * numberOfPositions); // int8u +EmberAfStatus SetNumberOfPositions(chip::EndpointId endpoint, uint8_t numberOfPositions); +EmberAfStatus GetCurrentPosition(chip::EndpointId endpoint, uint8_t * currentPosition); // int8u +EmberAfStatus SetCurrentPosition(chip::EndpointId endpoint, uint8_t currentPosition); +EmberAfStatus GetMultiPressMax(chip::EndpointId endpoint, uint8_t * multiPressMax); // int8u +EmberAfStatus SetMultiPressMax(chip::EndpointId endpoint, uint8_t multiPressMax); +} // namespace Attributes +} // namespace Switch + +namespace OperationalCredentials { +namespace Attributes { +} // namespace Attributes +} // namespace OperationalCredentials + +namespace FixedLabel { +namespace Attributes { +} // namespace Attributes +} // namespace FixedLabel + +namespace ShadeConfiguration { +namespace Attributes { +EmberAfStatus GetPhysicalClosedLimit(chip::EndpointId endpoint, uint16_t * physicalClosedLimit); // int16u +EmberAfStatus SetPhysicalClosedLimit(chip::EndpointId endpoint, uint16_t physicalClosedLimit); +EmberAfStatus GetMotorStepSize(chip::EndpointId endpoint, uint8_t * motorStepSize); // int8u +EmberAfStatus SetMotorStepSize(chip::EndpointId endpoint, uint8_t motorStepSize); +EmberAfStatus GetStatus(chip::EndpointId endpoint, uint8_t * status); // bitmap8 +EmberAfStatus SetStatus(chip::EndpointId endpoint, uint8_t status); +EmberAfStatus GetClosedLimit(chip::EndpointId endpoint, uint16_t * closedLimit); // int16u +EmberAfStatus SetClosedLimit(chip::EndpointId endpoint, uint16_t closedLimit); +EmberAfStatus GetMode(chip::EndpointId endpoint, uint8_t * mode); // enum8 +EmberAfStatus SetMode(chip::EndpointId endpoint, uint8_t mode); +} // namespace Attributes +} // namespace ShadeConfiguration + +namespace DoorLock { +namespace Attributes { +EmberAfStatus GetLockState(chip::EndpointId endpoint, uint8_t * lockState); // enum8 +EmberAfStatus SetLockState(chip::EndpointId endpoint, uint8_t lockState); +EmberAfStatus GetLockType(chip::EndpointId endpoint, uint8_t * lockType); // enum8 +EmberAfStatus SetLockType(chip::EndpointId endpoint, uint8_t lockType); +EmberAfStatus GetActuatorEnabled(chip::EndpointId endpoint, uint8_t * actuatorEnabled); // boolean +EmberAfStatus SetActuatorEnabled(chip::EndpointId endpoint, uint8_t actuatorEnabled); +EmberAfStatus GetDoorState(chip::EndpointId endpoint, uint8_t * doorState); // enum8 +EmberAfStatus SetDoorState(chip::EndpointId endpoint, uint8_t doorState); +EmberAfStatus GetDoorOpenEvents(chip::EndpointId endpoint, uint32_t * doorOpenEvents); // int32u +EmberAfStatus SetDoorOpenEvents(chip::EndpointId endpoint, uint32_t doorOpenEvents); +EmberAfStatus GetDoorClosedEvents(chip::EndpointId endpoint, uint32_t * doorClosedEvents); // int32u +EmberAfStatus SetDoorClosedEvents(chip::EndpointId endpoint, uint32_t doorClosedEvents); +EmberAfStatus GetOpenPeriod(chip::EndpointId endpoint, uint16_t * openPeriod); // int16u +EmberAfStatus SetOpenPeriod(chip::EndpointId endpoint, uint16_t openPeriod); +EmberAfStatus GetNumLockRecordsSupported(chip::EndpointId endpoint, uint16_t * numLockRecordsSupported); // int16u +EmberAfStatus SetNumLockRecordsSupported(chip::EndpointId endpoint, uint16_t numLockRecordsSupported); +EmberAfStatus GetNumTotalUsersSupported(chip::EndpointId endpoint, uint16_t * numTotalUsersSupported); // int16u +EmberAfStatus SetNumTotalUsersSupported(chip::EndpointId endpoint, uint16_t numTotalUsersSupported); +EmberAfStatus GetNumPinUsersSupported(chip::EndpointId endpoint, uint16_t * numPinUsersSupported); // int16u +EmberAfStatus SetNumPinUsersSupported(chip::EndpointId endpoint, uint16_t numPinUsersSupported); +EmberAfStatus GetNumRfidUsersSupported(chip::EndpointId endpoint, uint16_t * numRfidUsersSupported); // int16u +EmberAfStatus SetNumRfidUsersSupported(chip::EndpointId endpoint, uint16_t numRfidUsersSupported); +EmberAfStatus GetNumWeekdaySchedulesSupportedPerUser(chip::EndpointId endpoint, + uint8_t * numWeekdaySchedulesSupportedPerUser); // int8u +EmberAfStatus SetNumWeekdaySchedulesSupportedPerUser(chip::EndpointId endpoint, uint8_t numWeekdaySchedulesSupportedPerUser); +EmberAfStatus GetNumYeardaySchedulesSupportedPerUser(chip::EndpointId endpoint, + uint8_t * numYeardaySchedulesSupportedPerUser); // int8u +EmberAfStatus SetNumYeardaySchedulesSupportedPerUser(chip::EndpointId endpoint, uint8_t numYeardaySchedulesSupportedPerUser); +EmberAfStatus GetNumHolidaySchedulesSupportedPerUser(chip::EndpointId endpoint, + uint8_t * numHolidaySchedulesSupportedPerUser); // int8u +EmberAfStatus SetNumHolidaySchedulesSupportedPerUser(chip::EndpointId endpoint, uint8_t numHolidaySchedulesSupportedPerUser); +EmberAfStatus GetMaxPinLength(chip::EndpointId endpoint, uint8_t * maxPinLength); // int8u +EmberAfStatus SetMaxPinLength(chip::EndpointId endpoint, uint8_t maxPinLength); +EmberAfStatus GetMinPinLength(chip::EndpointId endpoint, uint8_t * minPinLength); // int8u +EmberAfStatus SetMinPinLength(chip::EndpointId endpoint, uint8_t minPinLength); +EmberAfStatus GetMaxRfidCodeLength(chip::EndpointId endpoint, uint8_t * maxRfidCodeLength); // int8u +EmberAfStatus SetMaxRfidCodeLength(chip::EndpointId endpoint, uint8_t maxRfidCodeLength); +EmberAfStatus GetMinRfidCodeLength(chip::EndpointId endpoint, uint8_t * minRfidCodeLength); // int8u +EmberAfStatus SetMinRfidCodeLength(chip::EndpointId endpoint, uint8_t minRfidCodeLength); +EmberAfStatus GetEnableLogging(chip::EndpointId endpoint, uint8_t * enableLogging); // boolean +EmberAfStatus SetEnableLogging(chip::EndpointId endpoint, uint8_t enableLogging); +EmberAfStatus GetLedSettings(chip::EndpointId endpoint, uint8_t * ledSettings); // int8u +EmberAfStatus SetLedSettings(chip::EndpointId endpoint, uint8_t ledSettings); +EmberAfStatus GetAutoRelockTime(chip::EndpointId endpoint, uint32_t * autoRelockTime); // int32u +EmberAfStatus SetAutoRelockTime(chip::EndpointId endpoint, uint32_t autoRelockTime); +EmberAfStatus GetSoundVolume(chip::EndpointId endpoint, uint8_t * soundVolume); // int8u +EmberAfStatus SetSoundVolume(chip::EndpointId endpoint, uint8_t soundVolume); +EmberAfStatus GetOperatingMode(chip::EndpointId endpoint, uint8_t * operatingMode); // enum8 +EmberAfStatus SetOperatingMode(chip::EndpointId endpoint, uint8_t operatingMode); +EmberAfStatus GetSupportedOperatingModes(chip::EndpointId endpoint, uint16_t * supportedOperatingModes); // bitmap16 +EmberAfStatus SetSupportedOperatingModes(chip::EndpointId endpoint, uint16_t supportedOperatingModes); +EmberAfStatus GetDefaultConfigurationRegister(chip::EndpointId endpoint, uint16_t * defaultConfigurationRegister); // bitmap16 +EmberAfStatus SetDefaultConfigurationRegister(chip::EndpointId endpoint, uint16_t defaultConfigurationRegister); +EmberAfStatus GetEnableLocalProgramming(chip::EndpointId endpoint, uint8_t * enableLocalProgramming); // boolean +EmberAfStatus SetEnableLocalProgramming(chip::EndpointId endpoint, uint8_t enableLocalProgramming); +EmberAfStatus GetEnableOneTouchLocking(chip::EndpointId endpoint, uint8_t * enableOneTouchLocking); // boolean +EmberAfStatus SetEnableOneTouchLocking(chip::EndpointId endpoint, uint8_t enableOneTouchLocking); +EmberAfStatus GetEnableInsideStatusLed(chip::EndpointId endpoint, uint8_t * enableInsideStatusLed); // boolean +EmberAfStatus SetEnableInsideStatusLed(chip::EndpointId endpoint, uint8_t enableInsideStatusLed); +EmberAfStatus GetEnablePrivacyModeButton(chip::EndpointId endpoint, uint8_t * enablePrivacyModeButton); // boolean +EmberAfStatus SetEnablePrivacyModeButton(chip::EndpointId endpoint, uint8_t enablePrivacyModeButton); +EmberAfStatus GetWrongCodeEntryLimit(chip::EndpointId endpoint, uint8_t * wrongCodeEntryLimit); // int8u +EmberAfStatus SetWrongCodeEntryLimit(chip::EndpointId endpoint, uint8_t wrongCodeEntryLimit); +EmberAfStatus GetUserCodeTemporaryDisableTime(chip::EndpointId endpoint, uint8_t * userCodeTemporaryDisableTime); // int8u +EmberAfStatus SetUserCodeTemporaryDisableTime(chip::EndpointId endpoint, uint8_t userCodeTemporaryDisableTime); +EmberAfStatus GetSendPinOverTheAir(chip::EndpointId endpoint, uint8_t * sendPinOverTheAir); // boolean +EmberAfStatus SetSendPinOverTheAir(chip::EndpointId endpoint, uint8_t sendPinOverTheAir); +EmberAfStatus GetRequirePinForRfOperation(chip::EndpointId endpoint, uint8_t * requirePinForRfOperation); // boolean +EmberAfStatus SetRequirePinForRfOperation(chip::EndpointId endpoint, uint8_t requirePinForRfOperation); +EmberAfStatus GetZigbeeSecurityLevel(chip::EndpointId endpoint, uint8_t * zigbeeSecurityLevel); // enum8 +EmberAfStatus SetZigbeeSecurityLevel(chip::EndpointId endpoint, uint8_t zigbeeSecurityLevel); +EmberAfStatus GetAlarmMask(chip::EndpointId endpoint, uint16_t * alarmMask); // bitmap16 +EmberAfStatus SetAlarmMask(chip::EndpointId endpoint, uint16_t alarmMask); +EmberAfStatus GetKeypadOperationEventMask(chip::EndpointId endpoint, uint16_t * keypadOperationEventMask); // bitmap16 +EmberAfStatus SetKeypadOperationEventMask(chip::EndpointId endpoint, uint16_t keypadOperationEventMask); +EmberAfStatus GetRfOperationEventMask(chip::EndpointId endpoint, uint16_t * rfOperationEventMask); // bitmap16 +EmberAfStatus SetRfOperationEventMask(chip::EndpointId endpoint, uint16_t rfOperationEventMask); +EmberAfStatus GetManualOperationEventMask(chip::EndpointId endpoint, uint16_t * manualOperationEventMask); // bitmap16 +EmberAfStatus SetManualOperationEventMask(chip::EndpointId endpoint, uint16_t manualOperationEventMask); +EmberAfStatus GetRfidOperationEventMask(chip::EndpointId endpoint, uint16_t * rfidOperationEventMask); // bitmap16 +EmberAfStatus SetRfidOperationEventMask(chip::EndpointId endpoint, uint16_t rfidOperationEventMask); +EmberAfStatus GetKeypadProgrammingEventMask(chip::EndpointId endpoint, uint16_t * keypadProgrammingEventMask); // bitmap16 +EmberAfStatus SetKeypadProgrammingEventMask(chip::EndpointId endpoint, uint16_t keypadProgrammingEventMask); +EmberAfStatus GetRfProgrammingEventMask(chip::EndpointId endpoint, uint16_t * rfProgrammingEventMask); // bitmap16 +EmberAfStatus SetRfProgrammingEventMask(chip::EndpointId endpoint, uint16_t rfProgrammingEventMask); +EmberAfStatus GetRfidProgrammingEventMask(chip::EndpointId endpoint, uint16_t * rfidProgrammingEventMask); // bitmap16 +EmberAfStatus SetRfidProgrammingEventMask(chip::EndpointId endpoint, uint16_t rfidProgrammingEventMask); +} // namespace Attributes +} // namespace DoorLock + +namespace WindowCovering { +namespace Attributes { +EmberAfStatus GetType(chip::EndpointId endpoint, uint8_t * type); // enum8 +EmberAfStatus SetType(chip::EndpointId endpoint, uint8_t type); +EmberAfStatus GetPhysicalClosedLimitLift(chip::EndpointId endpoint, uint16_t * physicalClosedLimitLift); // int16u +EmberAfStatus SetPhysicalClosedLimitLift(chip::EndpointId endpoint, uint16_t physicalClosedLimitLift); +EmberAfStatus GetPhysicalClosedLimitTilt(chip::EndpointId endpoint, uint16_t * physicalClosedLimitTilt); // int16u +EmberAfStatus SetPhysicalClosedLimitTilt(chip::EndpointId endpoint, uint16_t physicalClosedLimitTilt); +EmberAfStatus GetCurrentPositionLift(chip::EndpointId endpoint, uint16_t * currentPositionLift); // int16u +EmberAfStatus SetCurrentPositionLift(chip::EndpointId endpoint, uint16_t currentPositionLift); +EmberAfStatus GetCurrentPositionTilt(chip::EndpointId endpoint, uint16_t * currentPositionTilt); // int16u +EmberAfStatus SetCurrentPositionTilt(chip::EndpointId endpoint, uint16_t currentPositionTilt); +EmberAfStatus GetNumberOfActuationsLift(chip::EndpointId endpoint, uint16_t * numberOfActuationsLift); // int16u +EmberAfStatus SetNumberOfActuationsLift(chip::EndpointId endpoint, uint16_t numberOfActuationsLift); +EmberAfStatus GetNumberOfActuationsTilt(chip::EndpointId endpoint, uint16_t * numberOfActuationsTilt); // int16u +EmberAfStatus SetNumberOfActuationsTilt(chip::EndpointId endpoint, uint16_t numberOfActuationsTilt); +EmberAfStatus GetConfigStatus(chip::EndpointId endpoint, uint8_t * configStatus); // bitmap8 +EmberAfStatus SetConfigStatus(chip::EndpointId endpoint, uint8_t configStatus); +EmberAfStatus GetCurrentPositionLiftPercentage(chip::EndpointId endpoint, uint8_t * currentPositionLiftPercentage); // int8u +EmberAfStatus SetCurrentPositionLiftPercentage(chip::EndpointId endpoint, uint8_t currentPositionLiftPercentage); +EmberAfStatus GetCurrentPositionTiltPercentage(chip::EndpointId endpoint, uint8_t * currentPositionTiltPercentage); // int8u +EmberAfStatus SetCurrentPositionTiltPercentage(chip::EndpointId endpoint, uint8_t currentPositionTiltPercentage); +EmberAfStatus GetOperationalStatus(chip::EndpointId endpoint, uint8_t * operationalStatus); // bitmap8 +EmberAfStatus SetOperationalStatus(chip::EndpointId endpoint, uint8_t operationalStatus); +EmberAfStatus GetTargetPositionLiftPercent100ths(chip::EndpointId endpoint, uint16_t * targetPositionLiftPercent100ths); // int16u +EmberAfStatus SetTargetPositionLiftPercent100ths(chip::EndpointId endpoint, uint16_t targetPositionLiftPercent100ths); +EmberAfStatus GetTargetPositionTiltPercent100ths(chip::EndpointId endpoint, uint16_t * targetPositionTiltPercent100ths); // int16u +EmberAfStatus SetTargetPositionTiltPercent100ths(chip::EndpointId endpoint, uint16_t targetPositionTiltPercent100ths); +EmberAfStatus GetEndProductType(chip::EndpointId endpoint, uint8_t * endProductType); // enum8 +EmberAfStatus SetEndProductType(chip::EndpointId endpoint, uint8_t endProductType); +EmberAfStatus GetCurrentPositionLiftPercent100ths(chip::EndpointId endpoint, uint16_t * currentPositionLiftPercent100ths); // int16u +EmberAfStatus SetCurrentPositionLiftPercent100ths(chip::EndpointId endpoint, uint16_t currentPositionLiftPercent100ths); +EmberAfStatus GetCurrentPositionTiltPercent100ths(chip::EndpointId endpoint, uint16_t * currentPositionTiltPercent100ths); // int16u +EmberAfStatus SetCurrentPositionTiltPercent100ths(chip::EndpointId endpoint, uint16_t currentPositionTiltPercent100ths); +EmberAfStatus GetInstalledOpenLimitLift(chip::EndpointId endpoint, uint16_t * installedOpenLimitLift); // int16u +EmberAfStatus SetInstalledOpenLimitLift(chip::EndpointId endpoint, uint16_t installedOpenLimitLift); +EmberAfStatus GetInstalledClosedLimitLift(chip::EndpointId endpoint, uint16_t * installedClosedLimitLift); // int16u +EmberAfStatus SetInstalledClosedLimitLift(chip::EndpointId endpoint, uint16_t installedClosedLimitLift); +EmberAfStatus GetInstalledOpenLimitTilt(chip::EndpointId endpoint, uint16_t * installedOpenLimitTilt); // int16u +EmberAfStatus SetInstalledOpenLimitTilt(chip::EndpointId endpoint, uint16_t installedOpenLimitTilt); +EmberAfStatus GetInstalledClosedLimitTilt(chip::EndpointId endpoint, uint16_t * installedClosedLimitTilt); // int16u +EmberAfStatus SetInstalledClosedLimitTilt(chip::EndpointId endpoint, uint16_t installedClosedLimitTilt); +EmberAfStatus GetVelocityLift(chip::EndpointId endpoint, uint16_t * velocityLift); // int16u +EmberAfStatus SetVelocityLift(chip::EndpointId endpoint, uint16_t velocityLift); +EmberAfStatus GetAccelerationTimeLift(chip::EndpointId endpoint, uint16_t * accelerationTimeLift); // int16u +EmberAfStatus SetAccelerationTimeLift(chip::EndpointId endpoint, uint16_t accelerationTimeLift); +EmberAfStatus GetDecelerationTimeLift(chip::EndpointId endpoint, uint16_t * decelerationTimeLift); // int16u +EmberAfStatus SetDecelerationTimeLift(chip::EndpointId endpoint, uint16_t decelerationTimeLift); +EmberAfStatus GetMode(chip::EndpointId endpoint, uint8_t * mode); // bitmap8 +EmberAfStatus SetMode(chip::EndpointId endpoint, uint8_t mode); +EmberAfStatus GetSafetyStatus(chip::EndpointId endpoint, uint16_t * safetyStatus); // bitmap16 +EmberAfStatus SetSafetyStatus(chip::EndpointId endpoint, uint16_t safetyStatus); +} // namespace Attributes +} // namespace WindowCovering + +namespace BarrierControl { +namespace Attributes { +EmberAfStatus GetBarrierMovingState(chip::EndpointId endpoint, uint8_t * barrierMovingState); // enum8 +EmberAfStatus SetBarrierMovingState(chip::EndpointId endpoint, uint8_t barrierMovingState); +EmberAfStatus GetBarrierSafetyStatus(chip::EndpointId endpoint, uint16_t * barrierSafetyStatus); // bitmap16 +EmberAfStatus SetBarrierSafetyStatus(chip::EndpointId endpoint, uint16_t barrierSafetyStatus); +EmberAfStatus GetBarrierCapabilities(chip::EndpointId endpoint, uint8_t * barrierCapabilities); // bitmap8 +EmberAfStatus SetBarrierCapabilities(chip::EndpointId endpoint, uint8_t barrierCapabilities); +EmberAfStatus GetBarrierOpenEvents(chip::EndpointId endpoint, uint16_t * barrierOpenEvents); // int16u +EmberAfStatus SetBarrierOpenEvents(chip::EndpointId endpoint, uint16_t barrierOpenEvents); +EmberAfStatus GetBarrierCloseEvents(chip::EndpointId endpoint, uint16_t * barrierCloseEvents); // int16u +EmberAfStatus SetBarrierCloseEvents(chip::EndpointId endpoint, uint16_t barrierCloseEvents); +EmberAfStatus GetBarrierCommandOpenEvents(chip::EndpointId endpoint, uint16_t * barrierCommandOpenEvents); // int16u +EmberAfStatus SetBarrierCommandOpenEvents(chip::EndpointId endpoint, uint16_t barrierCommandOpenEvents); +EmberAfStatus GetBarrierCommandCloseEvents(chip::EndpointId endpoint, uint16_t * barrierCommandCloseEvents); // int16u +EmberAfStatus SetBarrierCommandCloseEvents(chip::EndpointId endpoint, uint16_t barrierCommandCloseEvents); +EmberAfStatus GetBarrierOpenPeriod(chip::EndpointId endpoint, uint16_t * barrierOpenPeriod); // int16u +EmberAfStatus SetBarrierOpenPeriod(chip::EndpointId endpoint, uint16_t barrierOpenPeriod); +EmberAfStatus GetBarrierClosePeriod(chip::EndpointId endpoint, uint16_t * barrierClosePeriod); // int16u +EmberAfStatus SetBarrierClosePeriod(chip::EndpointId endpoint, uint16_t barrierClosePeriod); +EmberAfStatus GetBarrierPosition(chip::EndpointId endpoint, uint8_t * barrierPosition); // int8u +EmberAfStatus SetBarrierPosition(chip::EndpointId endpoint, uint8_t barrierPosition); +} // namespace Attributes +} // namespace BarrierControl + +namespace PumpConfigurationAndControl { +namespace Attributes { +EmberAfStatus GetMaxPressure(chip::EndpointId endpoint, int16_t * maxPressure); // int16s +EmberAfStatus SetMaxPressure(chip::EndpointId endpoint, int16_t maxPressure); +EmberAfStatus GetMaxSpeed(chip::EndpointId endpoint, uint16_t * maxSpeed); // int16u +EmberAfStatus SetMaxSpeed(chip::EndpointId endpoint, uint16_t maxSpeed); +EmberAfStatus GetMaxFlow(chip::EndpointId endpoint, uint16_t * maxFlow); // int16u +EmberAfStatus SetMaxFlow(chip::EndpointId endpoint, uint16_t maxFlow); +EmberAfStatus GetMinConstPressure(chip::EndpointId endpoint, int16_t * minConstPressure); // int16s +EmberAfStatus SetMinConstPressure(chip::EndpointId endpoint, int16_t minConstPressure); +EmberAfStatus GetMaxConstPressure(chip::EndpointId endpoint, int16_t * maxConstPressure); // int16s +EmberAfStatus SetMaxConstPressure(chip::EndpointId endpoint, int16_t maxConstPressure); +EmberAfStatus GetMinCompPressure(chip::EndpointId endpoint, int16_t * minCompPressure); // int16s +EmberAfStatus SetMinCompPressure(chip::EndpointId endpoint, int16_t minCompPressure); +EmberAfStatus GetMaxCompPressure(chip::EndpointId endpoint, int16_t * maxCompPressure); // int16s +EmberAfStatus SetMaxCompPressure(chip::EndpointId endpoint, int16_t maxCompPressure); +EmberAfStatus GetMinConstSpeed(chip::EndpointId endpoint, uint16_t * minConstSpeed); // int16u +EmberAfStatus SetMinConstSpeed(chip::EndpointId endpoint, uint16_t minConstSpeed); +EmberAfStatus GetMaxConstSpeed(chip::EndpointId endpoint, uint16_t * maxConstSpeed); // int16u +EmberAfStatus SetMaxConstSpeed(chip::EndpointId endpoint, uint16_t maxConstSpeed); +EmberAfStatus GetMinConstFlow(chip::EndpointId endpoint, uint16_t * minConstFlow); // int16u +EmberAfStatus SetMinConstFlow(chip::EndpointId endpoint, uint16_t minConstFlow); +EmberAfStatus GetMaxConstFlow(chip::EndpointId endpoint, uint16_t * maxConstFlow); // int16u +EmberAfStatus SetMaxConstFlow(chip::EndpointId endpoint, uint16_t maxConstFlow); +EmberAfStatus GetMinConstTemp(chip::EndpointId endpoint, int16_t * minConstTemp); // int16s +EmberAfStatus SetMinConstTemp(chip::EndpointId endpoint, int16_t minConstTemp); +EmberAfStatus GetMaxConstTemp(chip::EndpointId endpoint, int16_t * maxConstTemp); // int16s +EmberAfStatus SetMaxConstTemp(chip::EndpointId endpoint, int16_t maxConstTemp); +EmberAfStatus GetPumpStatus(chip::EndpointId endpoint, uint16_t * pumpStatus); // bitmap16 +EmberAfStatus SetPumpStatus(chip::EndpointId endpoint, uint16_t pumpStatus); +EmberAfStatus GetEffectiveOperationMode(chip::EndpointId endpoint, uint8_t * effectiveOperationMode); // enum8 +EmberAfStatus SetEffectiveOperationMode(chip::EndpointId endpoint, uint8_t effectiveOperationMode); +EmberAfStatus GetEffectiveControlMode(chip::EndpointId endpoint, uint8_t * effectiveControlMode); // enum8 +EmberAfStatus SetEffectiveControlMode(chip::EndpointId endpoint, uint8_t effectiveControlMode); +EmberAfStatus GetCapacity(chip::EndpointId endpoint, int16_t * capacity); // int16s +EmberAfStatus SetCapacity(chip::EndpointId endpoint, int16_t capacity); +EmberAfStatus GetSpeed(chip::EndpointId endpoint, uint16_t * speed); // int16u +EmberAfStatus SetSpeed(chip::EndpointId endpoint, uint16_t speed); +EmberAfStatus GetLifetimeEnergyConsumed(chip::EndpointId endpoint, uint32_t * lifetimeEnergyConsumed); // int32u +EmberAfStatus SetLifetimeEnergyConsumed(chip::EndpointId endpoint, uint32_t lifetimeEnergyConsumed); +EmberAfStatus GetOperationMode(chip::EndpointId endpoint, uint8_t * operationMode); // enum8 +EmberAfStatus SetOperationMode(chip::EndpointId endpoint, uint8_t operationMode); +EmberAfStatus GetControlMode(chip::EndpointId endpoint, uint8_t * controlMode); // enum8 +EmberAfStatus SetControlMode(chip::EndpointId endpoint, uint8_t controlMode); +EmberAfStatus GetAlarmMask(chip::EndpointId endpoint, uint16_t * alarmMask); // bitmap16 +EmberAfStatus SetAlarmMask(chip::EndpointId endpoint, uint16_t alarmMask); +} // namespace Attributes +} // namespace PumpConfigurationAndControl + +namespace Thermostat { +namespace Attributes { +EmberAfStatus GetLocalTemperature(chip::EndpointId endpoint, int16_t * localTemperature); // int16s +EmberAfStatus SetLocalTemperature(chip::EndpointId endpoint, int16_t localTemperature); +EmberAfStatus GetOutdoorTemperature(chip::EndpointId endpoint, int16_t * outdoorTemperature); // int16s +EmberAfStatus SetOutdoorTemperature(chip::EndpointId endpoint, int16_t outdoorTemperature); +EmberAfStatus GetOccupancy(chip::EndpointId endpoint, uint8_t * occupancy); // bitmap8 +EmberAfStatus SetOccupancy(chip::EndpointId endpoint, uint8_t occupancy); +EmberAfStatus GetAbsMinHeatSetpointLimit(chip::EndpointId endpoint, int16_t * absMinHeatSetpointLimit); // int16s +EmberAfStatus SetAbsMinHeatSetpointLimit(chip::EndpointId endpoint, int16_t absMinHeatSetpointLimit); +EmberAfStatus GetAbsMaxHeatSetpointLimit(chip::EndpointId endpoint, int16_t * absMaxHeatSetpointLimit); // int16s +EmberAfStatus SetAbsMaxHeatSetpointLimit(chip::EndpointId endpoint, int16_t absMaxHeatSetpointLimit); +EmberAfStatus GetAbsMinCoolSetpointLimit(chip::EndpointId endpoint, int16_t * absMinCoolSetpointLimit); // int16s +EmberAfStatus SetAbsMinCoolSetpointLimit(chip::EndpointId endpoint, int16_t absMinCoolSetpointLimit); +EmberAfStatus GetAbsMaxCoolSetpointLimit(chip::EndpointId endpoint, int16_t * absMaxCoolSetpointLimit); // int16s +EmberAfStatus SetAbsMaxCoolSetpointLimit(chip::EndpointId endpoint, int16_t absMaxCoolSetpointLimit); +EmberAfStatus GetPiCoolingDemand(chip::EndpointId endpoint, uint8_t * piCoolingDemand); // int8u +EmberAfStatus SetPiCoolingDemand(chip::EndpointId endpoint, uint8_t piCoolingDemand); +EmberAfStatus GetPiHeatingDemand(chip::EndpointId endpoint, uint8_t * piHeatingDemand); // int8u +EmberAfStatus SetPiHeatingDemand(chip::EndpointId endpoint, uint8_t piHeatingDemand); +EmberAfStatus GetHvacSystemTypeConfiguration(chip::EndpointId endpoint, uint8_t * hvacSystemTypeConfiguration); // bitmap8 +EmberAfStatus SetHvacSystemTypeConfiguration(chip::EndpointId endpoint, uint8_t hvacSystemTypeConfiguration); +EmberAfStatus GetLocalTemperatureCalibration(chip::EndpointId endpoint, int8_t * localTemperatureCalibration); // int8s +EmberAfStatus SetLocalTemperatureCalibration(chip::EndpointId endpoint, int8_t localTemperatureCalibration); +EmberAfStatus GetOccupiedCoolingSetpoint(chip::EndpointId endpoint, int16_t * occupiedCoolingSetpoint); // int16s +EmberAfStatus SetOccupiedCoolingSetpoint(chip::EndpointId endpoint, int16_t occupiedCoolingSetpoint); +EmberAfStatus GetOccupiedHeatingSetpoint(chip::EndpointId endpoint, int16_t * occupiedHeatingSetpoint); // int16s +EmberAfStatus SetOccupiedHeatingSetpoint(chip::EndpointId endpoint, int16_t occupiedHeatingSetpoint); +EmberAfStatus GetUnoccupiedCoolingSetpoint(chip::EndpointId endpoint, int16_t * unoccupiedCoolingSetpoint); // int16s +EmberAfStatus SetUnoccupiedCoolingSetpoint(chip::EndpointId endpoint, int16_t unoccupiedCoolingSetpoint); +EmberAfStatus GetUnoccupiedHeatingSetpoint(chip::EndpointId endpoint, int16_t * unoccupiedHeatingSetpoint); // int16s +EmberAfStatus SetUnoccupiedHeatingSetpoint(chip::EndpointId endpoint, int16_t unoccupiedHeatingSetpoint); +EmberAfStatus GetMinHeatSetpointLimit(chip::EndpointId endpoint, int16_t * minHeatSetpointLimit); // int16s +EmberAfStatus SetMinHeatSetpointLimit(chip::EndpointId endpoint, int16_t minHeatSetpointLimit); +EmberAfStatus GetMaxHeatSetpointLimit(chip::EndpointId endpoint, int16_t * maxHeatSetpointLimit); // int16s +EmberAfStatus SetMaxHeatSetpointLimit(chip::EndpointId endpoint, int16_t maxHeatSetpointLimit); +EmberAfStatus GetMinCoolSetpointLimit(chip::EndpointId endpoint, int16_t * minCoolSetpointLimit); // int16s +EmberAfStatus SetMinCoolSetpointLimit(chip::EndpointId endpoint, int16_t minCoolSetpointLimit); +EmberAfStatus GetMaxCoolSetpointLimit(chip::EndpointId endpoint, int16_t * maxCoolSetpointLimit); // int16s +EmberAfStatus SetMaxCoolSetpointLimit(chip::EndpointId endpoint, int16_t maxCoolSetpointLimit); +EmberAfStatus GetMinSetpointDeadBand(chip::EndpointId endpoint, int8_t * minSetpointDeadBand); // int8s +EmberAfStatus SetMinSetpointDeadBand(chip::EndpointId endpoint, int8_t minSetpointDeadBand); +EmberAfStatus GetRemoteSensing(chip::EndpointId endpoint, uint8_t * remoteSensing); // bitmap8 +EmberAfStatus SetRemoteSensing(chip::EndpointId endpoint, uint8_t remoteSensing); +EmberAfStatus GetControlSequenceOfOperation(chip::EndpointId endpoint, uint8_t * controlSequenceOfOperation); // enum8 +EmberAfStatus SetControlSequenceOfOperation(chip::EndpointId endpoint, uint8_t controlSequenceOfOperation); +EmberAfStatus GetSystemMode(chip::EndpointId endpoint, uint8_t * systemMode); // enum8 +EmberAfStatus SetSystemMode(chip::EndpointId endpoint, uint8_t systemMode); +EmberAfStatus GetAlarmMask(chip::EndpointId endpoint, uint8_t * alarmMask); // bitmap8 +EmberAfStatus SetAlarmMask(chip::EndpointId endpoint, uint8_t alarmMask); +EmberAfStatus GetThermostatRunningMode(chip::EndpointId endpoint, uint8_t * thermostatRunningMode); // enum8 +EmberAfStatus SetThermostatRunningMode(chip::EndpointId endpoint, uint8_t thermostatRunningMode); +EmberAfStatus GetStartOfWeek(chip::EndpointId endpoint, uint8_t * startOfWeek); // enum8 +EmberAfStatus SetStartOfWeek(chip::EndpointId endpoint, uint8_t startOfWeek); +EmberAfStatus GetNumberOfWeeklyTransitions(chip::EndpointId endpoint, uint8_t * numberOfWeeklyTransitions); // int8u +EmberAfStatus SetNumberOfWeeklyTransitions(chip::EndpointId endpoint, uint8_t numberOfWeeklyTransitions); +EmberAfStatus GetNumberOfDailyTransitions(chip::EndpointId endpoint, uint8_t * numberOfDailyTransitions); // int8u +EmberAfStatus SetNumberOfDailyTransitions(chip::EndpointId endpoint, uint8_t numberOfDailyTransitions); +EmberAfStatus GetTemperatureSetpointHold(chip::EndpointId endpoint, uint8_t * temperatureSetpointHold); // enum8 +EmberAfStatus SetTemperatureSetpointHold(chip::EndpointId endpoint, uint8_t temperatureSetpointHold); +EmberAfStatus GetTemperatureSetpointHoldDuration(chip::EndpointId endpoint, uint16_t * temperatureSetpointHoldDuration); // int16u +EmberAfStatus SetTemperatureSetpointHoldDuration(chip::EndpointId endpoint, uint16_t temperatureSetpointHoldDuration); +EmberAfStatus GetThermostatProgrammingOperationMode(chip::EndpointId endpoint, + uint8_t * thermostatProgrammingOperationMode); // bitmap8 +EmberAfStatus SetThermostatProgrammingOperationMode(chip::EndpointId endpoint, uint8_t thermostatProgrammingOperationMode); +EmberAfStatus GetHvacRelayState(chip::EndpointId endpoint, uint16_t * hvacRelayState); // bitmap16 +EmberAfStatus SetHvacRelayState(chip::EndpointId endpoint, uint16_t hvacRelayState); +EmberAfStatus GetSetpointChangeSource(chip::EndpointId endpoint, uint8_t * setpointChangeSource); // enum8 +EmberAfStatus SetSetpointChangeSource(chip::EndpointId endpoint, uint8_t setpointChangeSource); +EmberAfStatus GetSetpointChangeAmount(chip::EndpointId endpoint, int16_t * setpointChangeAmount); // int16s +EmberAfStatus SetSetpointChangeAmount(chip::EndpointId endpoint, int16_t setpointChangeAmount); +EmberAfStatus GetSetpointChangeSourceTimestamp(chip::EndpointId endpoint, + /* TYPE WARNING: utc defaults to */ uint8_t ** setpointChangeSourceTimestamp); // utc +EmberAfStatus SetSetpointChangeSourceTimestamp(chip::EndpointId endpoint, + /* TYPE WARNING: utc defaults to */ uint8_t * setpointChangeSourceTimestamp); +EmberAfStatus GetAcType(chip::EndpointId endpoint, uint8_t * acType); // enum8 +EmberAfStatus SetAcType(chip::EndpointId endpoint, uint8_t acType); +EmberAfStatus GetAcCapacity(chip::EndpointId endpoint, uint16_t * acCapacity); // int16u +EmberAfStatus SetAcCapacity(chip::EndpointId endpoint, uint16_t acCapacity); +EmberAfStatus GetAcRefrigerantType(chip::EndpointId endpoint, uint8_t * acRefrigerantType); // enum8 +EmberAfStatus SetAcRefrigerantType(chip::EndpointId endpoint, uint8_t acRefrigerantType); +EmberAfStatus GetAcCompressor(chip::EndpointId endpoint, uint8_t * acCompressor); // enum8 +EmberAfStatus SetAcCompressor(chip::EndpointId endpoint, uint8_t acCompressor); +EmberAfStatus GetAcErrorCode(chip::EndpointId endpoint, uint32_t * acErrorCode); // bitmap32 +EmberAfStatus SetAcErrorCode(chip::EndpointId endpoint, uint32_t acErrorCode); +EmberAfStatus GetAcLouverPosition(chip::EndpointId endpoint, uint8_t * acLouverPosition); // enum8 +EmberAfStatus SetAcLouverPosition(chip::EndpointId endpoint, uint8_t acLouverPosition); +EmberAfStatus GetAcCoilTemperature(chip::EndpointId endpoint, int16_t * acCoilTemperature); // int16s +EmberAfStatus SetAcCoilTemperature(chip::EndpointId endpoint, int16_t acCoilTemperature); +EmberAfStatus GetAcCapacityFormat(chip::EndpointId endpoint, uint8_t * acCapacityFormat); // enum8 +EmberAfStatus SetAcCapacityFormat(chip::EndpointId endpoint, uint8_t acCapacityFormat); +} // namespace Attributes +} // namespace Thermostat + +namespace FanControl { +namespace Attributes { +EmberAfStatus GetFanMode(chip::EndpointId endpoint, uint8_t * fanMode); // enum8 +EmberAfStatus SetFanMode(chip::EndpointId endpoint, uint8_t fanMode); +EmberAfStatus GetFanModeSequence(chip::EndpointId endpoint, uint8_t * fanModeSequence); // enum8 +EmberAfStatus SetFanModeSequence(chip::EndpointId endpoint, uint8_t fanModeSequence); +} // namespace Attributes +} // namespace FanControl + +namespace DehumidificationControl { +namespace Attributes { +EmberAfStatus GetRelativeHumidity(chip::EndpointId endpoint, uint8_t * relativeHumidity); // int8u +EmberAfStatus SetRelativeHumidity(chip::EndpointId endpoint, uint8_t relativeHumidity); +EmberAfStatus GetDehumidificationCooling(chip::EndpointId endpoint, uint8_t * dehumidificationCooling); // int8u +EmberAfStatus SetDehumidificationCooling(chip::EndpointId endpoint, uint8_t dehumidificationCooling); +EmberAfStatus GetRhDehumidificationSetpoint(chip::EndpointId endpoint, uint8_t * rhDehumidificationSetpoint); // int8u +EmberAfStatus SetRhDehumidificationSetpoint(chip::EndpointId endpoint, uint8_t rhDehumidificationSetpoint); +EmberAfStatus GetRelativeHumidityMode(chip::EndpointId endpoint, uint8_t * relativeHumidityMode); // enum8 +EmberAfStatus SetRelativeHumidityMode(chip::EndpointId endpoint, uint8_t relativeHumidityMode); +EmberAfStatus GetDehumidificationLockout(chip::EndpointId endpoint, uint8_t * dehumidificationLockout); // enum8 +EmberAfStatus SetDehumidificationLockout(chip::EndpointId endpoint, uint8_t dehumidificationLockout); +EmberAfStatus GetDehumidificationHysteresis(chip::EndpointId endpoint, uint8_t * dehumidificationHysteresis); // int8u +EmberAfStatus SetDehumidificationHysteresis(chip::EndpointId endpoint, uint8_t dehumidificationHysteresis); +EmberAfStatus GetDehumidificationMaxCool(chip::EndpointId endpoint, uint8_t * dehumidificationMaxCool); // int8u +EmberAfStatus SetDehumidificationMaxCool(chip::EndpointId endpoint, uint8_t dehumidificationMaxCool); +EmberAfStatus GetRelativeHumidityDisplay(chip::EndpointId endpoint, uint8_t * relativeHumidityDisplay); // enum8 +EmberAfStatus SetRelativeHumidityDisplay(chip::EndpointId endpoint, uint8_t relativeHumidityDisplay); +} // namespace Attributes +} // namespace DehumidificationControl + +namespace ThermostatUserInterfaceConfiguration { +namespace Attributes { +EmberAfStatus GetTemperatureDisplayMode(chip::EndpointId endpoint, uint8_t * temperatureDisplayMode); // enum8 +EmberAfStatus SetTemperatureDisplayMode(chip::EndpointId endpoint, uint8_t temperatureDisplayMode); +EmberAfStatus GetKeypadLockout(chip::EndpointId endpoint, uint8_t * keypadLockout); // enum8 +EmberAfStatus SetKeypadLockout(chip::EndpointId endpoint, uint8_t keypadLockout); +EmberAfStatus GetScheduleProgrammingVisibility(chip::EndpointId endpoint, uint8_t * scheduleProgrammingVisibility); // enum8 +EmberAfStatus SetScheduleProgrammingVisibility(chip::EndpointId endpoint, uint8_t scheduleProgrammingVisibility); +} // namespace Attributes +} // namespace ThermostatUserInterfaceConfiguration + +namespace ColorControl { +namespace Attributes { +EmberAfStatus GetCurrentHue(chip::EndpointId endpoint, uint8_t * currentHue); // int8u +EmberAfStatus SetCurrentHue(chip::EndpointId endpoint, uint8_t currentHue); +EmberAfStatus GetCurrentSaturation(chip::EndpointId endpoint, uint8_t * currentSaturation); // int8u +EmberAfStatus SetCurrentSaturation(chip::EndpointId endpoint, uint8_t currentSaturation); +EmberAfStatus GetRemainingTime(chip::EndpointId endpoint, uint16_t * remainingTime); // int16u +EmberAfStatus SetRemainingTime(chip::EndpointId endpoint, uint16_t remainingTime); +EmberAfStatus GetCurrentX(chip::EndpointId endpoint, uint16_t * currentX); // int16u +EmberAfStatus SetCurrentX(chip::EndpointId endpoint, uint16_t currentX); +EmberAfStatus GetCurrentY(chip::EndpointId endpoint, uint16_t * currentY); // int16u +EmberAfStatus SetCurrentY(chip::EndpointId endpoint, uint16_t currentY); +EmberAfStatus GetDriftCompensation(chip::EndpointId endpoint, uint8_t * driftCompensation); // enum8 +EmberAfStatus SetDriftCompensation(chip::EndpointId endpoint, uint8_t driftCompensation); +EmberAfStatus GetColorTemperature(chip::EndpointId endpoint, uint16_t * colorTemperature); // int16u +EmberAfStatus SetColorTemperature(chip::EndpointId endpoint, uint16_t colorTemperature); +EmberAfStatus GetColorMode(chip::EndpointId endpoint, uint8_t * colorMode); // enum8 +EmberAfStatus SetColorMode(chip::EndpointId endpoint, uint8_t colorMode); +EmberAfStatus GetColorControlOptions(chip::EndpointId endpoint, uint8_t * colorControlOptions); // bitmap8 +EmberAfStatus SetColorControlOptions(chip::EndpointId endpoint, uint8_t colorControlOptions); +EmberAfStatus GetNumberOfPrimaries(chip::EndpointId endpoint, uint8_t * numberOfPrimaries); // int8u +EmberAfStatus SetNumberOfPrimaries(chip::EndpointId endpoint, uint8_t numberOfPrimaries); +EmberAfStatus GetPrimary1X(chip::EndpointId endpoint, uint16_t * primary1X); // int16u +EmberAfStatus SetPrimary1X(chip::EndpointId endpoint, uint16_t primary1X); +EmberAfStatus GetPrimary1Y(chip::EndpointId endpoint, uint16_t * primary1Y); // int16u +EmberAfStatus SetPrimary1Y(chip::EndpointId endpoint, uint16_t primary1Y); +EmberAfStatus GetPrimary1Intensity(chip::EndpointId endpoint, uint8_t * primary1Intensity); // int8u +EmberAfStatus SetPrimary1Intensity(chip::EndpointId endpoint, uint8_t primary1Intensity); +EmberAfStatus GetPrimary2X(chip::EndpointId endpoint, uint16_t * primary2X); // int16u +EmberAfStatus SetPrimary2X(chip::EndpointId endpoint, uint16_t primary2X); +EmberAfStatus GetPrimary2Y(chip::EndpointId endpoint, uint16_t * primary2Y); // int16u +EmberAfStatus SetPrimary2Y(chip::EndpointId endpoint, uint16_t primary2Y); +EmberAfStatus GetPrimary2Intensity(chip::EndpointId endpoint, uint8_t * primary2Intensity); // int8u +EmberAfStatus SetPrimary2Intensity(chip::EndpointId endpoint, uint8_t primary2Intensity); +EmberAfStatus GetPrimary3X(chip::EndpointId endpoint, uint16_t * primary3X); // int16u +EmberAfStatus SetPrimary3X(chip::EndpointId endpoint, uint16_t primary3X); +EmberAfStatus GetPrimary3Y(chip::EndpointId endpoint, uint16_t * primary3Y); // int16u +EmberAfStatus SetPrimary3Y(chip::EndpointId endpoint, uint16_t primary3Y); +EmberAfStatus GetPrimary3Intensity(chip::EndpointId endpoint, uint8_t * primary3Intensity); // int8u +EmberAfStatus SetPrimary3Intensity(chip::EndpointId endpoint, uint8_t primary3Intensity); +EmberAfStatus GetPrimary4X(chip::EndpointId endpoint, uint16_t * primary4X); // int16u +EmberAfStatus SetPrimary4X(chip::EndpointId endpoint, uint16_t primary4X); +EmberAfStatus GetPrimary4Y(chip::EndpointId endpoint, uint16_t * primary4Y); // int16u +EmberAfStatus SetPrimary4Y(chip::EndpointId endpoint, uint16_t primary4Y); +EmberAfStatus GetPrimary4Intensity(chip::EndpointId endpoint, uint8_t * primary4Intensity); // int8u +EmberAfStatus SetPrimary4Intensity(chip::EndpointId endpoint, uint8_t primary4Intensity); +EmberAfStatus GetPrimary5X(chip::EndpointId endpoint, uint16_t * primary5X); // int16u +EmberAfStatus SetPrimary5X(chip::EndpointId endpoint, uint16_t primary5X); +EmberAfStatus GetPrimary5Y(chip::EndpointId endpoint, uint16_t * primary5Y); // int16u +EmberAfStatus SetPrimary5Y(chip::EndpointId endpoint, uint16_t primary5Y); +EmberAfStatus GetPrimary5Intensity(chip::EndpointId endpoint, uint8_t * primary5Intensity); // int8u +EmberAfStatus SetPrimary5Intensity(chip::EndpointId endpoint, uint8_t primary5Intensity); +EmberAfStatus GetPrimary6X(chip::EndpointId endpoint, uint16_t * primary6X); // int16u +EmberAfStatus SetPrimary6X(chip::EndpointId endpoint, uint16_t primary6X); +EmberAfStatus GetPrimary6Y(chip::EndpointId endpoint, uint16_t * primary6Y); // int16u +EmberAfStatus SetPrimary6Y(chip::EndpointId endpoint, uint16_t primary6Y); +EmberAfStatus GetPrimary6Intensity(chip::EndpointId endpoint, uint8_t * primary6Intensity); // int8u +EmberAfStatus SetPrimary6Intensity(chip::EndpointId endpoint, uint8_t primary6Intensity); +EmberAfStatus GetWhitePointX(chip::EndpointId endpoint, uint16_t * whitePointX); // int16u +EmberAfStatus SetWhitePointX(chip::EndpointId endpoint, uint16_t whitePointX); +EmberAfStatus GetWhitePointY(chip::EndpointId endpoint, uint16_t * whitePointY); // int16u +EmberAfStatus SetWhitePointY(chip::EndpointId endpoint, uint16_t whitePointY); +EmberAfStatus GetColorPointRX(chip::EndpointId endpoint, uint16_t * colorPointRX); // int16u +EmberAfStatus SetColorPointRX(chip::EndpointId endpoint, uint16_t colorPointRX); +EmberAfStatus GetColorPointRY(chip::EndpointId endpoint, uint16_t * colorPointRY); // int16u +EmberAfStatus SetColorPointRY(chip::EndpointId endpoint, uint16_t colorPointRY); +EmberAfStatus GetColorPointRIntensity(chip::EndpointId endpoint, uint8_t * colorPointRIntensity); // int8u +EmberAfStatus SetColorPointRIntensity(chip::EndpointId endpoint, uint8_t colorPointRIntensity); +EmberAfStatus GetColorPointGX(chip::EndpointId endpoint, uint16_t * colorPointGX); // int16u +EmberAfStatus SetColorPointGX(chip::EndpointId endpoint, uint16_t colorPointGX); +EmberAfStatus GetColorPointGY(chip::EndpointId endpoint, uint16_t * colorPointGY); // int16u +EmberAfStatus SetColorPointGY(chip::EndpointId endpoint, uint16_t colorPointGY); +EmberAfStatus GetColorPointGIntensity(chip::EndpointId endpoint, uint8_t * colorPointGIntensity); // int8u +EmberAfStatus SetColorPointGIntensity(chip::EndpointId endpoint, uint8_t colorPointGIntensity); +EmberAfStatus GetColorPointBX(chip::EndpointId endpoint, uint16_t * colorPointBX); // int16u +EmberAfStatus SetColorPointBX(chip::EndpointId endpoint, uint16_t colorPointBX); +EmberAfStatus GetColorPointBY(chip::EndpointId endpoint, uint16_t * colorPointBY); // int16u +EmberAfStatus SetColorPointBY(chip::EndpointId endpoint, uint16_t colorPointBY); +EmberAfStatus GetColorPointBIntensity(chip::EndpointId endpoint, uint8_t * colorPointBIntensity); // int8u +EmberAfStatus SetColorPointBIntensity(chip::EndpointId endpoint, uint8_t colorPointBIntensity); +EmberAfStatus GetEnhancedCurrentHue(chip::EndpointId endpoint, uint16_t * enhancedCurrentHue); // int16u +EmberAfStatus SetEnhancedCurrentHue(chip::EndpointId endpoint, uint16_t enhancedCurrentHue); +EmberAfStatus GetEnhancedColorMode(chip::EndpointId endpoint, uint8_t * enhancedColorMode); // enum8 +EmberAfStatus SetEnhancedColorMode(chip::EndpointId endpoint, uint8_t enhancedColorMode); +EmberAfStatus GetColorLoopActive(chip::EndpointId endpoint, uint8_t * colorLoopActive); // int8u +EmberAfStatus SetColorLoopActive(chip::EndpointId endpoint, uint8_t colorLoopActive); +EmberAfStatus GetColorLoopDirection(chip::EndpointId endpoint, uint8_t * colorLoopDirection); // int8u +EmberAfStatus SetColorLoopDirection(chip::EndpointId endpoint, uint8_t colorLoopDirection); +EmberAfStatus GetColorLoopTime(chip::EndpointId endpoint, uint16_t * colorLoopTime); // int16u +EmberAfStatus SetColorLoopTime(chip::EndpointId endpoint, uint16_t colorLoopTime); +EmberAfStatus GetColorLoopStartEnhancedHue(chip::EndpointId endpoint, uint16_t * colorLoopStartEnhancedHue); // int16u +EmberAfStatus SetColorLoopStartEnhancedHue(chip::EndpointId endpoint, uint16_t colorLoopStartEnhancedHue); +EmberAfStatus GetColorLoopStoredEnhancedHue(chip::EndpointId endpoint, uint16_t * colorLoopStoredEnhancedHue); // int16u +EmberAfStatus SetColorLoopStoredEnhancedHue(chip::EndpointId endpoint, uint16_t colorLoopStoredEnhancedHue); +EmberAfStatus GetColorCapabilities(chip::EndpointId endpoint, uint16_t * colorCapabilities); // bitmap16 +EmberAfStatus SetColorCapabilities(chip::EndpointId endpoint, uint16_t colorCapabilities); +EmberAfStatus GetColorTempPhysicalMin(chip::EndpointId endpoint, uint16_t * colorTempPhysicalMin); // int16u +EmberAfStatus SetColorTempPhysicalMin(chip::EndpointId endpoint, uint16_t colorTempPhysicalMin); +EmberAfStatus GetColorTempPhysicalMax(chip::EndpointId endpoint, uint16_t * colorTempPhysicalMax); // int16u +EmberAfStatus SetColorTempPhysicalMax(chip::EndpointId endpoint, uint16_t colorTempPhysicalMax); +EmberAfStatus GetCoupleColorTempToLevelMinMireds(chip::EndpointId endpoint, uint16_t * coupleColorTempToLevelMinMireds); // int16u +EmberAfStatus SetCoupleColorTempToLevelMinMireds(chip::EndpointId endpoint, uint16_t coupleColorTempToLevelMinMireds); +EmberAfStatus GetStartUpColorTemperatureMireds(chip::EndpointId endpoint, uint16_t * startUpColorTemperatureMireds); // int16u +EmberAfStatus SetStartUpColorTemperatureMireds(chip::EndpointId endpoint, uint16_t startUpColorTemperatureMireds); +} // namespace Attributes +} // namespace ColorControl + +namespace BallastConfiguration { +namespace Attributes { +EmberAfStatus GetPhysicalMinLevel(chip::EndpointId endpoint, uint8_t * physicalMinLevel); // int8u +EmberAfStatus SetPhysicalMinLevel(chip::EndpointId endpoint, uint8_t physicalMinLevel); +EmberAfStatus GetPhysicalMaxLevel(chip::EndpointId endpoint, uint8_t * physicalMaxLevel); // int8u +EmberAfStatus SetPhysicalMaxLevel(chip::EndpointId endpoint, uint8_t physicalMaxLevel); +EmberAfStatus GetBallastStatus(chip::EndpointId endpoint, uint8_t * ballastStatus); // bitmap8 +EmberAfStatus SetBallastStatus(chip::EndpointId endpoint, uint8_t ballastStatus); +EmberAfStatus GetMinLevel(chip::EndpointId endpoint, uint8_t * minLevel); // int8u +EmberAfStatus SetMinLevel(chip::EndpointId endpoint, uint8_t minLevel); +EmberAfStatus GetMaxLevel(chip::EndpointId endpoint, uint8_t * maxLevel); // int8u +EmberAfStatus SetMaxLevel(chip::EndpointId endpoint, uint8_t maxLevel); +EmberAfStatus GetPowerOnLevel(chip::EndpointId endpoint, uint8_t * powerOnLevel); // int8u +EmberAfStatus SetPowerOnLevel(chip::EndpointId endpoint, uint8_t powerOnLevel); +EmberAfStatus GetPowerOnFadeTime(chip::EndpointId endpoint, uint16_t * powerOnFadeTime); // int16u +EmberAfStatus SetPowerOnFadeTime(chip::EndpointId endpoint, uint16_t powerOnFadeTime); +EmberAfStatus GetIntrinsicBallastFactor(chip::EndpointId endpoint, uint8_t * intrinsicBallastFactor); // int8u +EmberAfStatus SetIntrinsicBallastFactor(chip::EndpointId endpoint, uint8_t intrinsicBallastFactor); +EmberAfStatus GetBallastFactorAdjustment(chip::EndpointId endpoint, uint8_t * ballastFactorAdjustment); // int8u +EmberAfStatus SetBallastFactorAdjustment(chip::EndpointId endpoint, uint8_t ballastFactorAdjustment); +EmberAfStatus GetLampQuality(chip::EndpointId endpoint, uint8_t * lampQuality); // int8u +EmberAfStatus SetLampQuality(chip::EndpointId endpoint, uint8_t lampQuality); +EmberAfStatus GetLampAlarmMode(chip::EndpointId endpoint, uint8_t * lampAlarmMode); // bitmap8 +EmberAfStatus SetLampAlarmMode(chip::EndpointId endpoint, uint8_t lampAlarmMode); +} // namespace Attributes +} // namespace BallastConfiguration + +namespace IlluminanceMeasurement { +namespace Attributes { +EmberAfStatus GetMeasuredValue(chip::EndpointId endpoint, uint16_t * measuredValue); // int16u +EmberAfStatus SetMeasuredValue(chip::EndpointId endpoint, uint16_t measuredValue); +EmberAfStatus GetMinMeasuredValue(chip::EndpointId endpoint, uint16_t * minMeasuredValue); // int16u +EmberAfStatus SetMinMeasuredValue(chip::EndpointId endpoint, uint16_t minMeasuredValue); +EmberAfStatus GetMaxMeasuredValue(chip::EndpointId endpoint, uint16_t * maxMeasuredValue); // int16u +EmberAfStatus SetMaxMeasuredValue(chip::EndpointId endpoint, uint16_t maxMeasuredValue); +EmberAfStatus GetTolerance(chip::EndpointId endpoint, uint16_t * tolerance); // int16u +EmberAfStatus SetTolerance(chip::EndpointId endpoint, uint16_t tolerance); +EmberAfStatus GetLightSensorType(chip::EndpointId endpoint, uint8_t * lightSensorType); // enum8 +EmberAfStatus SetLightSensorType(chip::EndpointId endpoint, uint8_t lightSensorType); +} // namespace Attributes +} // namespace IlluminanceMeasurement + +namespace IlluminanceLevelSensing { +namespace Attributes { +EmberAfStatus GetLevelStatus(chip::EndpointId endpoint, uint8_t * levelStatus); // enum8 +EmberAfStatus SetLevelStatus(chip::EndpointId endpoint, uint8_t levelStatus); +EmberAfStatus GetLightSensorType(chip::EndpointId endpoint, uint8_t * lightSensorType); // enum8 +EmberAfStatus SetLightSensorType(chip::EndpointId endpoint, uint8_t lightSensorType); +EmberAfStatus GetIlluminanceLevelTarget(chip::EndpointId endpoint, uint16_t * illuminanceLevelTarget); // int16u +EmberAfStatus SetIlluminanceLevelTarget(chip::EndpointId endpoint, uint16_t illuminanceLevelTarget); +} // namespace Attributes +} // namespace IlluminanceLevelSensing + +namespace TemperatureMeasurement { +namespace Attributes { +EmberAfStatus GetMeasuredValue(chip::EndpointId endpoint, int16_t * measuredValue); // int16s +EmberAfStatus SetMeasuredValue(chip::EndpointId endpoint, int16_t measuredValue); +EmberAfStatus GetMinMeasuredValue(chip::EndpointId endpoint, int16_t * minMeasuredValue); // int16s +EmberAfStatus SetMinMeasuredValue(chip::EndpointId endpoint, int16_t minMeasuredValue); +EmberAfStatus GetMaxMeasuredValue(chip::EndpointId endpoint, int16_t * maxMeasuredValue); // int16s +EmberAfStatus SetMaxMeasuredValue(chip::EndpointId endpoint, int16_t maxMeasuredValue); +EmberAfStatus GetTolerance(chip::EndpointId endpoint, uint16_t * tolerance); // int16u +EmberAfStatus SetTolerance(chip::EndpointId endpoint, uint16_t tolerance); +} // namespace Attributes +} // namespace TemperatureMeasurement + +namespace PressureMeasurement { +namespace Attributes { +EmberAfStatus GetMeasuredValue(chip::EndpointId endpoint, int16_t * measuredValue); // int16s +EmberAfStatus SetMeasuredValue(chip::EndpointId endpoint, int16_t measuredValue); +EmberAfStatus GetMinMeasuredValue(chip::EndpointId endpoint, int16_t * minMeasuredValue); // int16s +EmberAfStatus SetMinMeasuredValue(chip::EndpointId endpoint, int16_t minMeasuredValue); +EmberAfStatus GetMaxMeasuredValue(chip::EndpointId endpoint, int16_t * maxMeasuredValue); // int16s +EmberAfStatus SetMaxMeasuredValue(chip::EndpointId endpoint, int16_t maxMeasuredValue); +EmberAfStatus GetTolerance(chip::EndpointId endpoint, uint16_t * tolerance); // int16u +EmberAfStatus SetTolerance(chip::EndpointId endpoint, uint16_t tolerance); +EmberAfStatus GetScaledValue(chip::EndpointId endpoint, int16_t * scaledValue); // int16s +EmberAfStatus SetScaledValue(chip::EndpointId endpoint, int16_t scaledValue); +EmberAfStatus GetMinScaledValue(chip::EndpointId endpoint, int16_t * minScaledValue); // int16s +EmberAfStatus SetMinScaledValue(chip::EndpointId endpoint, int16_t minScaledValue); +EmberAfStatus GetMaxScaledValue(chip::EndpointId endpoint, int16_t * maxScaledValue); // int16s +EmberAfStatus SetMaxScaledValue(chip::EndpointId endpoint, int16_t maxScaledValue); +EmberAfStatus GetScaledTolerance(chip::EndpointId endpoint, int16_t * scaledTolerance); // int16s +EmberAfStatus SetScaledTolerance(chip::EndpointId endpoint, int16_t scaledTolerance); +EmberAfStatus GetScale(chip::EndpointId endpoint, int8_t * scale); // int8s +EmberAfStatus SetScale(chip::EndpointId endpoint, int8_t scale); +} // namespace Attributes +} // namespace PressureMeasurement + +namespace FlowMeasurement { +namespace Attributes { +EmberAfStatus GetMeasuredValue(chip::EndpointId endpoint, int16_t * measuredValue); // int16s +EmberAfStatus SetMeasuredValue(chip::EndpointId endpoint, int16_t measuredValue); +EmberAfStatus GetMinMeasuredValue(chip::EndpointId endpoint, int16_t * minMeasuredValue); // int16s +EmberAfStatus SetMinMeasuredValue(chip::EndpointId endpoint, int16_t minMeasuredValue); +EmberAfStatus GetMaxMeasuredValue(chip::EndpointId endpoint, int16_t * maxMeasuredValue); // int16s +EmberAfStatus SetMaxMeasuredValue(chip::EndpointId endpoint, int16_t maxMeasuredValue); +EmberAfStatus GetTolerance(chip::EndpointId endpoint, uint16_t * tolerance); // int16u +EmberAfStatus SetTolerance(chip::EndpointId endpoint, uint16_t tolerance); +} // namespace Attributes +} // namespace FlowMeasurement + +namespace RelativeHumidityMeasurement { +namespace Attributes { +EmberAfStatus GetMeasuredValue(chip::EndpointId endpoint, uint16_t * measuredValue); // int16u +EmberAfStatus SetMeasuredValue(chip::EndpointId endpoint, uint16_t measuredValue); +EmberAfStatus GetMinMeasuredValue(chip::EndpointId endpoint, uint16_t * minMeasuredValue); // int16u +EmberAfStatus SetMinMeasuredValue(chip::EndpointId endpoint, uint16_t minMeasuredValue); +EmberAfStatus GetMaxMeasuredValue(chip::EndpointId endpoint, uint16_t * maxMeasuredValue); // int16u +EmberAfStatus SetMaxMeasuredValue(chip::EndpointId endpoint, uint16_t maxMeasuredValue); +EmberAfStatus GetTolerance(chip::EndpointId endpoint, uint16_t * tolerance); // int16u +EmberAfStatus SetTolerance(chip::EndpointId endpoint, uint16_t tolerance); +} // namespace Attributes +} // namespace RelativeHumidityMeasurement + +namespace OccupancySensing { +namespace Attributes { +EmberAfStatus GetOccupancy(chip::EndpointId endpoint, uint8_t * occupancy); // bitmap8 +EmberAfStatus SetOccupancy(chip::EndpointId endpoint, uint8_t occupancy); +EmberAfStatus GetOccupancySensorType(chip::EndpointId endpoint, uint8_t * occupancySensorType); // enum8 +EmberAfStatus SetOccupancySensorType(chip::EndpointId endpoint, uint8_t occupancySensorType); +EmberAfStatus GetOccupancySensorTypeBitmap(chip::EndpointId endpoint, uint8_t * occupancySensorTypeBitmap); // bitmap8 +EmberAfStatus SetOccupancySensorTypeBitmap(chip::EndpointId endpoint, uint8_t occupancySensorTypeBitmap); +EmberAfStatus GetPirOccupiedToUnoccupiedDelay(chip::EndpointId endpoint, uint16_t * pirOccupiedToUnoccupiedDelay); // int16u +EmberAfStatus SetPirOccupiedToUnoccupiedDelay(chip::EndpointId endpoint, uint16_t pirOccupiedToUnoccupiedDelay); +EmberAfStatus GetPirUnoccupiedToOccupiedDelay(chip::EndpointId endpoint, uint16_t * pirUnoccupiedToOccupiedDelay); // int16u +EmberAfStatus SetPirUnoccupiedToOccupiedDelay(chip::EndpointId endpoint, uint16_t pirUnoccupiedToOccupiedDelay); +EmberAfStatus GetPirUnoccupiedToOccupiedThreshold(chip::EndpointId endpoint, uint8_t * pirUnoccupiedToOccupiedThreshold); // int8u +EmberAfStatus SetPirUnoccupiedToOccupiedThreshold(chip::EndpointId endpoint, uint8_t pirUnoccupiedToOccupiedThreshold); +EmberAfStatus GetUltrasonicOccupiedToUnoccupiedDelay(chip::EndpointId endpoint, + uint16_t * ultrasonicOccupiedToUnoccupiedDelay); // int16u +EmberAfStatus SetUltrasonicOccupiedToUnoccupiedDelay(chip::EndpointId endpoint, uint16_t ultrasonicOccupiedToUnoccupiedDelay); +EmberAfStatus GetUltrasonicUnoccupiedToOccupiedDelay(chip::EndpointId endpoint, + uint16_t * ultrasonicUnoccupiedToOccupiedDelay); // int16u +EmberAfStatus SetUltrasonicUnoccupiedToOccupiedDelay(chip::EndpointId endpoint, uint16_t ultrasonicUnoccupiedToOccupiedDelay); +EmberAfStatus GetUltrasonicUnoccupiedToOccupiedThreshold(chip::EndpointId endpoint, + uint8_t * ultrasonicUnoccupiedToOccupiedThreshold); // int8u +EmberAfStatus SetUltrasonicUnoccupiedToOccupiedThreshold(chip::EndpointId endpoint, + uint8_t ultrasonicUnoccupiedToOccupiedThreshold); +EmberAfStatus GetPhysicalContactOccupiedToUnoccupiedDelay(chip::EndpointId endpoint, + uint16_t * physicalContactOccupiedToUnoccupiedDelay); // int16u +EmberAfStatus SetPhysicalContactOccupiedToUnoccupiedDelay(chip::EndpointId endpoint, + uint16_t physicalContactOccupiedToUnoccupiedDelay); +EmberAfStatus GetPhysicalContactUnoccupiedToOccupiedDelay(chip::EndpointId endpoint, + uint16_t * physicalContactUnoccupiedToOccupiedDelay); // int16u +EmberAfStatus SetPhysicalContactUnoccupiedToOccupiedDelay(chip::EndpointId endpoint, + uint16_t physicalContactUnoccupiedToOccupiedDelay); +EmberAfStatus GetPhysicalContactUnoccupiedToOccupiedThreshold(chip::EndpointId endpoint, + uint8_t * physicalContactUnoccupiedToOccupiedThreshold); // int8u +EmberAfStatus SetPhysicalContactUnoccupiedToOccupiedThreshold(chip::EndpointId endpoint, + uint8_t physicalContactUnoccupiedToOccupiedThreshold); +} // namespace Attributes +} // namespace OccupancySensing + +namespace CarbonMonoxideConcentrationMeasurement { +namespace Attributes { +EmberAfStatus GetMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** measuredValue); // single +EmberAfStatus SetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * measuredValue); +EmberAfStatus GetMinMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** minMeasuredValue); // single +EmberAfStatus SetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * minMeasuredValue); +EmberAfStatus GetMaxMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** maxMeasuredValue); // single +EmberAfStatus SetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * maxMeasuredValue); +EmberAfStatus GetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** tolerance); // single +EmberAfStatus SetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * tolerance); +} // namespace Attributes +} // namespace CarbonMonoxideConcentrationMeasurement + +namespace CarbonDioxideConcentrationMeasurement { +namespace Attributes { +EmberAfStatus GetMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** measuredValue); // single +EmberAfStatus SetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * measuredValue); +EmberAfStatus GetMinMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** minMeasuredValue); // single +EmberAfStatus SetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * minMeasuredValue); +EmberAfStatus GetMaxMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** maxMeasuredValue); // single +EmberAfStatus SetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * maxMeasuredValue); +EmberAfStatus GetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** tolerance); // single +EmberAfStatus SetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * tolerance); +} // namespace Attributes +} // namespace CarbonDioxideConcentrationMeasurement + +namespace EthyleneConcentrationMeasurement { +namespace Attributes { +EmberAfStatus GetMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** measuredValue); // single +EmberAfStatus SetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * measuredValue); +EmberAfStatus GetMinMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** minMeasuredValue); // single +EmberAfStatus SetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * minMeasuredValue); +EmberAfStatus GetMaxMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** maxMeasuredValue); // single +EmberAfStatus SetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * maxMeasuredValue); +EmberAfStatus GetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** tolerance); // single +EmberAfStatus SetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * tolerance); +} // namespace Attributes +} // namespace EthyleneConcentrationMeasurement + +namespace EthyleneOxideConcentrationMeasurement { +namespace Attributes { +EmberAfStatus GetMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** measuredValue); // single +EmberAfStatus SetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * measuredValue); +EmberAfStatus GetMinMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** minMeasuredValue); // single +EmberAfStatus SetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * minMeasuredValue); +EmberAfStatus GetMaxMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** maxMeasuredValue); // single +EmberAfStatus SetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * maxMeasuredValue); +EmberAfStatus GetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** tolerance); // single +EmberAfStatus SetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * tolerance); +} // namespace Attributes +} // namespace EthyleneOxideConcentrationMeasurement + +namespace HydrogenConcentrationMeasurement { +namespace Attributes { +EmberAfStatus GetMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** measuredValue); // single +EmberAfStatus SetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * measuredValue); +EmberAfStatus GetMinMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** minMeasuredValue); // single +EmberAfStatus SetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * minMeasuredValue); +EmberAfStatus GetMaxMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** maxMeasuredValue); // single +EmberAfStatus SetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * maxMeasuredValue); +EmberAfStatus GetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** tolerance); // single +EmberAfStatus SetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * tolerance); +} // namespace Attributes +} // namespace HydrogenConcentrationMeasurement + +namespace HydrogenSulphideConcentrationMeasurement { +namespace Attributes { +EmberAfStatus GetMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** measuredValue); // single +EmberAfStatus SetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * measuredValue); +EmberAfStatus GetMinMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** minMeasuredValue); // single +EmberAfStatus SetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * minMeasuredValue); +EmberAfStatus GetMaxMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** maxMeasuredValue); // single +EmberAfStatus SetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * maxMeasuredValue); +EmberAfStatus GetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** tolerance); // single +EmberAfStatus SetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * tolerance); +} // namespace Attributes +} // namespace HydrogenSulphideConcentrationMeasurement + +namespace NitricOxideConcentrationMeasurement { +namespace Attributes { +EmberAfStatus GetMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** measuredValue); // single +EmberAfStatus SetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * measuredValue); +EmberAfStatus GetMinMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** minMeasuredValue); // single +EmberAfStatus SetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * minMeasuredValue); +EmberAfStatus GetMaxMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** maxMeasuredValue); // single +EmberAfStatus SetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * maxMeasuredValue); +EmberAfStatus GetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** tolerance); // single +EmberAfStatus SetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * tolerance); +} // namespace Attributes +} // namespace NitricOxideConcentrationMeasurement + +namespace NitrogenDioxideConcentrationMeasurement { +namespace Attributes { +EmberAfStatus GetMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** measuredValue); // single +EmberAfStatus SetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * measuredValue); +EmberAfStatus GetMinMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** minMeasuredValue); // single +EmberAfStatus SetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * minMeasuredValue); +EmberAfStatus GetMaxMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** maxMeasuredValue); // single +EmberAfStatus SetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * maxMeasuredValue); +EmberAfStatus GetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** tolerance); // single +EmberAfStatus SetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * tolerance); +} // namespace Attributes +} // namespace NitrogenDioxideConcentrationMeasurement + +namespace OxygenConcentrationMeasurement { +namespace Attributes { +EmberAfStatus GetMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** measuredValue); // single +EmberAfStatus SetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * measuredValue); +EmberAfStatus GetMinMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** minMeasuredValue); // single +EmberAfStatus SetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * minMeasuredValue); +EmberAfStatus GetMaxMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** maxMeasuredValue); // single +EmberAfStatus SetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * maxMeasuredValue); +EmberAfStatus GetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** tolerance); // single +EmberAfStatus SetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * tolerance); +} // namespace Attributes +} // namespace OxygenConcentrationMeasurement + +namespace OzoneConcentrationMeasurement { +namespace Attributes { +EmberAfStatus GetMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** measuredValue); // single +EmberAfStatus SetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * measuredValue); +EmberAfStatus GetMinMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** minMeasuredValue); // single +EmberAfStatus SetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * minMeasuredValue); +EmberAfStatus GetMaxMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** maxMeasuredValue); // single +EmberAfStatus SetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * maxMeasuredValue); +EmberAfStatus GetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** tolerance); // single +EmberAfStatus SetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * tolerance); +} // namespace Attributes +} // namespace OzoneConcentrationMeasurement + +namespace SulfurDioxideConcentrationMeasurement { +namespace Attributes { +EmberAfStatus GetMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** measuredValue); // single +EmberAfStatus SetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * measuredValue); +EmberAfStatus GetMinMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** minMeasuredValue); // single +EmberAfStatus SetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * minMeasuredValue); +EmberAfStatus GetMaxMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** maxMeasuredValue); // single +EmberAfStatus SetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * maxMeasuredValue); +EmberAfStatus GetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** tolerance); // single +EmberAfStatus SetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * tolerance); +} // namespace Attributes +} // namespace SulfurDioxideConcentrationMeasurement + +namespace DissolvedOxygenConcentrationMeasurement { +namespace Attributes { +EmberAfStatus GetMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** measuredValue); // single +EmberAfStatus SetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * measuredValue); +EmberAfStatus GetMinMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** minMeasuredValue); // single +EmberAfStatus SetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * minMeasuredValue); +EmberAfStatus GetMaxMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** maxMeasuredValue); // single +EmberAfStatus SetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * maxMeasuredValue); +EmberAfStatus GetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** tolerance); // single +EmberAfStatus SetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * tolerance); +} // namespace Attributes +} // namespace DissolvedOxygenConcentrationMeasurement + +namespace BromateConcentrationMeasurement { +namespace Attributes { +EmberAfStatus GetMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** measuredValue); // single +EmberAfStatus SetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * measuredValue); +EmberAfStatus GetMinMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** minMeasuredValue); // single +EmberAfStatus SetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * minMeasuredValue); +EmberAfStatus GetMaxMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** maxMeasuredValue); // single +EmberAfStatus SetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * maxMeasuredValue); +EmberAfStatus GetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** tolerance); // single +EmberAfStatus SetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * tolerance); +} // namespace Attributes +} // namespace BromateConcentrationMeasurement + +namespace ChloraminesConcentrationMeasurement { +namespace Attributes { +EmberAfStatus GetMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** measuredValue); // single +EmberAfStatus SetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * measuredValue); +EmberAfStatus GetMinMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** minMeasuredValue); // single +EmberAfStatus SetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * minMeasuredValue); +EmberAfStatus GetMaxMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** maxMeasuredValue); // single +EmberAfStatus SetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * maxMeasuredValue); +EmberAfStatus GetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** tolerance); // single +EmberAfStatus SetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * tolerance); +} // namespace Attributes +} // namespace ChloraminesConcentrationMeasurement + +namespace ChlorineConcentrationMeasurement { +namespace Attributes { +EmberAfStatus GetMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** measuredValue); // single +EmberAfStatus SetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * measuredValue); +EmberAfStatus GetMinMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** minMeasuredValue); // single +EmberAfStatus SetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * minMeasuredValue); +EmberAfStatus GetMaxMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** maxMeasuredValue); // single +EmberAfStatus SetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * maxMeasuredValue); +EmberAfStatus GetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** tolerance); // single +EmberAfStatus SetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * tolerance); +} // namespace Attributes +} // namespace ChlorineConcentrationMeasurement + +namespace FecalColiformAndEColiConcentrationMeasurement { +namespace Attributes { +EmberAfStatus GetMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** measuredValue); // single +EmberAfStatus SetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * measuredValue); +EmberAfStatus GetMinMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** minMeasuredValue); // single +EmberAfStatus SetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * minMeasuredValue); +EmberAfStatus GetMaxMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** maxMeasuredValue); // single +EmberAfStatus SetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * maxMeasuredValue); +EmberAfStatus GetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** tolerance); // single +EmberAfStatus SetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * tolerance); +} // namespace Attributes +} // namespace FecalColiformAndEColiConcentrationMeasurement + +namespace FluorideConcentrationMeasurement { +namespace Attributes { +EmberAfStatus GetMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** measuredValue); // single +EmberAfStatus SetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * measuredValue); +EmberAfStatus GetMinMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** minMeasuredValue); // single +EmberAfStatus SetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * minMeasuredValue); +EmberAfStatus GetMaxMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** maxMeasuredValue); // single +EmberAfStatus SetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * maxMeasuredValue); +EmberAfStatus GetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** tolerance); // single +EmberAfStatus SetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * tolerance); +} // namespace Attributes +} // namespace FluorideConcentrationMeasurement + +namespace HaloaceticAcidsConcentrationMeasurement { +namespace Attributes { +EmberAfStatus GetMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** measuredValue); // single +EmberAfStatus SetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * measuredValue); +EmberAfStatus GetMinMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** minMeasuredValue); // single +EmberAfStatus SetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * minMeasuredValue); +EmberAfStatus GetMaxMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** maxMeasuredValue); // single +EmberAfStatus SetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * maxMeasuredValue); +EmberAfStatus GetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** tolerance); // single +EmberAfStatus SetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * tolerance); +} // namespace Attributes +} // namespace HaloaceticAcidsConcentrationMeasurement + +namespace TotalTrihalomethanesConcentrationMeasurement { +namespace Attributes { +EmberAfStatus GetMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** measuredValue); // single +EmberAfStatus SetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * measuredValue); +EmberAfStatus GetMinMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** minMeasuredValue); // single +EmberAfStatus SetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * minMeasuredValue); +EmberAfStatus GetMaxMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** maxMeasuredValue); // single +EmberAfStatus SetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * maxMeasuredValue); +EmberAfStatus GetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** tolerance); // single +EmberAfStatus SetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * tolerance); +} // namespace Attributes +} // namespace TotalTrihalomethanesConcentrationMeasurement + +namespace TotalColiformBacteriaConcentrationMeasurement { +namespace Attributes { +EmberAfStatus GetMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** measuredValue); // single +EmberAfStatus SetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * measuredValue); +EmberAfStatus GetMinMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** minMeasuredValue); // single +EmberAfStatus SetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * minMeasuredValue); +EmberAfStatus GetMaxMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** maxMeasuredValue); // single +EmberAfStatus SetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * maxMeasuredValue); +EmberAfStatus GetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** tolerance); // single +EmberAfStatus SetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * tolerance); +} // namespace Attributes +} // namespace TotalColiformBacteriaConcentrationMeasurement + +namespace TurbidityConcentrationMeasurement { +namespace Attributes { +EmberAfStatus GetMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** measuredValue); // single +EmberAfStatus SetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * measuredValue); +EmberAfStatus GetMinMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** minMeasuredValue); // single +EmberAfStatus SetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * minMeasuredValue); +EmberAfStatus GetMaxMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** maxMeasuredValue); // single +EmberAfStatus SetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * maxMeasuredValue); +EmberAfStatus GetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** tolerance); // single +EmberAfStatus SetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * tolerance); +} // namespace Attributes +} // namespace TurbidityConcentrationMeasurement + +namespace CopperConcentrationMeasurement { +namespace Attributes { +EmberAfStatus GetMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** measuredValue); // single +EmberAfStatus SetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * measuredValue); +EmberAfStatus GetMinMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** minMeasuredValue); // single +EmberAfStatus SetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * minMeasuredValue); +EmberAfStatus GetMaxMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** maxMeasuredValue); // single +EmberAfStatus SetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * maxMeasuredValue); +EmberAfStatus GetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** tolerance); // single +EmberAfStatus SetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * tolerance); +} // namespace Attributes +} // namespace CopperConcentrationMeasurement + +namespace LeadConcentrationMeasurement { +namespace Attributes { +EmberAfStatus GetMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** measuredValue); // single +EmberAfStatus SetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * measuredValue); +EmberAfStatus GetMinMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** minMeasuredValue); // single +EmberAfStatus SetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * minMeasuredValue); +EmberAfStatus GetMaxMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** maxMeasuredValue); // single +EmberAfStatus SetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * maxMeasuredValue); +EmberAfStatus GetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** tolerance); // single +EmberAfStatus SetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * tolerance); +} // namespace Attributes +} // namespace LeadConcentrationMeasurement + +namespace ManganeseConcentrationMeasurement { +namespace Attributes { +EmberAfStatus GetMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** measuredValue); // single +EmberAfStatus SetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * measuredValue); +EmberAfStatus GetMinMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** minMeasuredValue); // single +EmberAfStatus SetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * minMeasuredValue); +EmberAfStatus GetMaxMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** maxMeasuredValue); // single +EmberAfStatus SetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * maxMeasuredValue); +EmberAfStatus GetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** tolerance); // single +EmberAfStatus SetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * tolerance); +} // namespace Attributes +} // namespace ManganeseConcentrationMeasurement + +namespace SulfateConcentrationMeasurement { +namespace Attributes { +EmberAfStatus GetMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** measuredValue); // single +EmberAfStatus SetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * measuredValue); +EmberAfStatus GetMinMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** minMeasuredValue); // single +EmberAfStatus SetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * minMeasuredValue); +EmberAfStatus GetMaxMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** maxMeasuredValue); // single +EmberAfStatus SetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * maxMeasuredValue); +EmberAfStatus GetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** tolerance); // single +EmberAfStatus SetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * tolerance); +} // namespace Attributes +} // namespace SulfateConcentrationMeasurement + +namespace BromodichloromethaneConcentrationMeasurement { +namespace Attributes { +EmberAfStatus GetMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** measuredValue); // single +EmberAfStatus SetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * measuredValue); +EmberAfStatus GetMinMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** minMeasuredValue); // single +EmberAfStatus SetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * minMeasuredValue); +EmberAfStatus GetMaxMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** maxMeasuredValue); // single +EmberAfStatus SetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * maxMeasuredValue); +EmberAfStatus GetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** tolerance); // single +EmberAfStatus SetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * tolerance); +} // namespace Attributes +} // namespace BromodichloromethaneConcentrationMeasurement + +namespace BromoformConcentrationMeasurement { +namespace Attributes { +EmberAfStatus GetMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** measuredValue); // single +EmberAfStatus SetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * measuredValue); +EmberAfStatus GetMinMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** minMeasuredValue); // single +EmberAfStatus SetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * minMeasuredValue); +EmberAfStatus GetMaxMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** maxMeasuredValue); // single +EmberAfStatus SetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * maxMeasuredValue); +EmberAfStatus GetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** tolerance); // single +EmberAfStatus SetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * tolerance); +} // namespace Attributes +} // namespace BromoformConcentrationMeasurement + +namespace ChlorodibromomethaneConcentrationMeasurement { +namespace Attributes { +EmberAfStatus GetMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** measuredValue); // single +EmberAfStatus SetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * measuredValue); +EmberAfStatus GetMinMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** minMeasuredValue); // single +EmberAfStatus SetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * minMeasuredValue); +EmberAfStatus GetMaxMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** maxMeasuredValue); // single +EmberAfStatus SetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * maxMeasuredValue); +EmberAfStatus GetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** tolerance); // single +EmberAfStatus SetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * tolerance); +} // namespace Attributes +} // namespace ChlorodibromomethaneConcentrationMeasurement + +namespace ChloroformConcentrationMeasurement { +namespace Attributes { +EmberAfStatus GetMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** measuredValue); // single +EmberAfStatus SetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * measuredValue); +EmberAfStatus GetMinMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** minMeasuredValue); // single +EmberAfStatus SetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * minMeasuredValue); +EmberAfStatus GetMaxMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** maxMeasuredValue); // single +EmberAfStatus SetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * maxMeasuredValue); +EmberAfStatus GetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** tolerance); // single +EmberAfStatus SetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * tolerance); +} // namespace Attributes +} // namespace ChloroformConcentrationMeasurement + +namespace SodiumConcentrationMeasurement { +namespace Attributes { +EmberAfStatus GetMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** measuredValue); // single +EmberAfStatus SetMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * measuredValue); +EmberAfStatus GetMinMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** minMeasuredValue); // single +EmberAfStatus SetMinMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * minMeasuredValue); +EmberAfStatus GetMaxMeasuredValue(chip::EndpointId endpoint, + /* TYPE WARNING: single defaults to */ uint8_t ** maxMeasuredValue); // single +EmberAfStatus SetMaxMeasuredValue(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * maxMeasuredValue); +EmberAfStatus GetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t ** tolerance); // single +EmberAfStatus SetTolerance(chip::EndpointId endpoint, /* TYPE WARNING: single defaults to */ uint8_t * tolerance); +} // namespace Attributes +} // namespace SodiumConcentrationMeasurement + +namespace IasZone { +namespace Attributes { +EmberAfStatus GetZoneState(chip::EndpointId endpoint, uint8_t * zoneState); // enum8 +EmberAfStatus SetZoneState(chip::EndpointId endpoint, uint8_t zoneState); +EmberAfStatus GetZoneType(chip::EndpointId endpoint, uint16_t * zoneType); // enum16 +EmberAfStatus SetZoneType(chip::EndpointId endpoint, uint16_t zoneType); +EmberAfStatus GetZoneStatus(chip::EndpointId endpoint, uint16_t * zoneStatus); // bitmap16 +EmberAfStatus SetZoneStatus(chip::EndpointId endpoint, uint16_t zoneStatus); +EmberAfStatus GetIasCieAddress(chip::EndpointId endpoint, chip::NodeId * iasCieAddress); // node_id +EmberAfStatus SetIasCieAddress(chip::EndpointId endpoint, chip::NodeId iasCieAddress); +EmberAfStatus GetZoneId(chip::EndpointId endpoint, uint8_t * zoneId); // int8u +EmberAfStatus SetZoneId(chip::EndpointId endpoint, uint8_t zoneId); +EmberAfStatus GetNumberOfZoneSensitivityLevelsSupported(chip::EndpointId endpoint, + uint8_t * numberOfZoneSensitivityLevelsSupported); // int8u +EmberAfStatus SetNumberOfZoneSensitivityLevelsSupported(chip::EndpointId endpoint, uint8_t numberOfZoneSensitivityLevelsSupported); +EmberAfStatus GetCurrentZoneSensitivityLevel(chip::EndpointId endpoint, uint8_t * currentZoneSensitivityLevel); // int8u +EmberAfStatus SetCurrentZoneSensitivityLevel(chip::EndpointId endpoint, uint8_t currentZoneSensitivityLevel); +} // namespace Attributes +} // namespace IasZone + +namespace IasWd { +namespace Attributes { +EmberAfStatus GetMaxDuration(chip::EndpointId endpoint, uint16_t * maxDuration); // int16u +EmberAfStatus SetMaxDuration(chip::EndpointId endpoint, uint16_t maxDuration); +} // namespace Attributes +} // namespace IasWd + +namespace WakeOnLan { +namespace Attributes { +} // namespace Attributes +} // namespace WakeOnLan + +namespace TvChannel { +namespace Attributes { +} // namespace Attributes +} // namespace TvChannel + +namespace TargetNavigator { +namespace Attributes { +EmberAfStatus GetCurrentNavigatorTarget(chip::EndpointId endpoint, uint8_t * currentNavigatorTarget); // int8u +EmberAfStatus SetCurrentNavigatorTarget(chip::EndpointId endpoint, uint8_t currentNavigatorTarget); +} // namespace Attributes +} // namespace TargetNavigator + +namespace MediaPlayback { +namespace Attributes { +EmberAfStatus GetPlaybackState(chip::EndpointId endpoint, uint8_t * playbackState); // enum8 +EmberAfStatus SetPlaybackState(chip::EndpointId endpoint, uint8_t playbackState); +EmberAfStatus GetStartTime(chip::EndpointId endpoint, uint64_t * startTime); // int64u +EmberAfStatus SetStartTime(chip::EndpointId endpoint, uint64_t startTime); +EmberAfStatus GetDuration(chip::EndpointId endpoint, uint64_t * duration); // int64u +EmberAfStatus SetDuration(chip::EndpointId endpoint, uint64_t duration); +EmberAfStatus GetUpdatedAt(chip::EndpointId endpoint, uint64_t * updatedAt); // int64u +EmberAfStatus SetUpdatedAt(chip::EndpointId endpoint, uint64_t updatedAt); +EmberAfStatus GetPosistion(chip::EndpointId endpoint, uint64_t * posistion); // int64u +EmberAfStatus SetPosistion(chip::EndpointId endpoint, uint64_t posistion); +EmberAfStatus GetPlaybackSpeed(chip::EndpointId endpoint, uint64_t * playbackSpeed); // int64u +EmberAfStatus SetPlaybackSpeed(chip::EndpointId endpoint, uint64_t playbackSpeed); +EmberAfStatus GetSeekRangeEnd(chip::EndpointId endpoint, uint64_t * seekRangeEnd); // int64u +EmberAfStatus SetSeekRangeEnd(chip::EndpointId endpoint, uint64_t seekRangeEnd); +EmberAfStatus GetSeekRangeStart(chip::EndpointId endpoint, uint64_t * seekRangeStart); // int64u +EmberAfStatus SetSeekRangeStart(chip::EndpointId endpoint, uint64_t seekRangeStart); +} // namespace Attributes +} // namespace MediaPlayback + +namespace MediaInput { +namespace Attributes { +EmberAfStatus GetCurrentMediaInput(chip::EndpointId endpoint, uint8_t * currentMediaInput); // int8u +EmberAfStatus SetCurrentMediaInput(chip::EndpointId endpoint, uint8_t currentMediaInput); +} // namespace Attributes +} // namespace MediaInput + +namespace ContentLauncher { +namespace Attributes { +} // namespace Attributes +} // namespace ContentLauncher + +namespace AudioOutput { +namespace Attributes { +EmberAfStatus GetCurrentAudioOutput(chip::EndpointId endpoint, uint8_t * currentAudioOutput); // int8u +EmberAfStatus SetCurrentAudioOutput(chip::EndpointId endpoint, uint8_t currentAudioOutput); +} // namespace Attributes +} // namespace AudioOutput + +namespace ApplicationLauncher { +namespace Attributes { +EmberAfStatus GetCatalogVendorId(chip::EndpointId endpoint, uint8_t * catalogVendorId); // int8u +EmberAfStatus SetCatalogVendorId(chip::EndpointId endpoint, uint8_t catalogVendorId); +EmberAfStatus GetApplicationId(chip::EndpointId endpoint, uint8_t * applicationId); // int8u +EmberAfStatus SetApplicationId(chip::EndpointId endpoint, uint8_t applicationId); +} // namespace Attributes +} // namespace ApplicationLauncher + +namespace ApplicationBasic { +namespace Attributes { +EmberAfStatus GetVendorId(chip::EndpointId endpoint, uint16_t * vendorId); // int16u +EmberAfStatus SetVendorId(chip::EndpointId endpoint, uint16_t vendorId); +EmberAfStatus GetProductId(chip::EndpointId endpoint, uint16_t * productId); // int16u +EmberAfStatus SetProductId(chip::EndpointId endpoint, uint16_t productId); +EmberAfStatus GetCatalogVendorId(chip::EndpointId endpoint, uint16_t * catalogVendorId); // int16u +EmberAfStatus SetCatalogVendorId(chip::EndpointId endpoint, uint16_t catalogVendorId); +EmberAfStatus GetApplicationStatus(chip::EndpointId endpoint, uint8_t * applicationStatus); // enum8 +EmberAfStatus SetApplicationStatus(chip::EndpointId endpoint, uint8_t applicationStatus); +} // namespace Attributes +} // namespace ApplicationBasic + +namespace TestCluster { +namespace Attributes { +EmberAfStatus GetBoolean(chip::EndpointId endpoint, uint8_t * boolean); // boolean +EmberAfStatus SetBoolean(chip::EndpointId endpoint, uint8_t boolean); +EmberAfStatus GetBitmap8(chip::EndpointId endpoint, uint8_t * bitmap8); // bitmap8 +EmberAfStatus SetBitmap8(chip::EndpointId endpoint, uint8_t bitmap8); +EmberAfStatus GetBitmap16(chip::EndpointId endpoint, uint16_t * bitmap16); // bitmap16 +EmberAfStatus SetBitmap16(chip::EndpointId endpoint, uint16_t bitmap16); +EmberAfStatus GetBitmap32(chip::EndpointId endpoint, uint32_t * bitmap32); // bitmap32 +EmberAfStatus SetBitmap32(chip::EndpointId endpoint, uint32_t bitmap32); +EmberAfStatus GetBitmap64(chip::EndpointId endpoint, uint64_t * bitmap64); // bitmap64 +EmberAfStatus SetBitmap64(chip::EndpointId endpoint, uint64_t bitmap64); +EmberAfStatus GetInt8u(chip::EndpointId endpoint, uint8_t * int8u); // int8u +EmberAfStatus SetInt8u(chip::EndpointId endpoint, uint8_t int8u); +EmberAfStatus GetInt16u(chip::EndpointId endpoint, uint16_t * int16u); // int16u +EmberAfStatus SetInt16u(chip::EndpointId endpoint, uint16_t int16u); +EmberAfStatus GetInt32u(chip::EndpointId endpoint, uint32_t * int32u); // int32u +EmberAfStatus SetInt32u(chip::EndpointId endpoint, uint32_t int32u); +EmberAfStatus GetInt64u(chip::EndpointId endpoint, uint64_t * int64u); // int64u +EmberAfStatus SetInt64u(chip::EndpointId endpoint, uint64_t int64u); +EmberAfStatus GetInt8s(chip::EndpointId endpoint, int8_t * int8s); // int8s +EmberAfStatus SetInt8s(chip::EndpointId endpoint, int8_t int8s); +EmberAfStatus GetInt16s(chip::EndpointId endpoint, int16_t * int16s); // int16s +EmberAfStatus SetInt16s(chip::EndpointId endpoint, int16_t int16s); +EmberAfStatus GetInt32s(chip::EndpointId endpoint, int32_t * int32s); // int32s +EmberAfStatus SetInt32s(chip::EndpointId endpoint, int32_t int32s); +EmberAfStatus GetInt64s(chip::EndpointId endpoint, int64_t * int64s); // int64s +EmberAfStatus SetInt64s(chip::EndpointId endpoint, int64_t int64s); +EmberAfStatus GetEnum8(chip::EndpointId endpoint, uint8_t * enum8); // enum8 +EmberAfStatus SetEnum8(chip::EndpointId endpoint, uint8_t enum8); +EmberAfStatus GetEnum16(chip::EndpointId endpoint, uint16_t * enum16); // enum16 +EmberAfStatus SetEnum16(chip::EndpointId endpoint, uint16_t enum16); +EmberAfStatus GetUnsupported(chip::EndpointId endpoint, uint8_t * unsupported); // boolean +EmberAfStatus SetUnsupported(chip::EndpointId endpoint, uint8_t unsupported); +} // namespace Attributes +} // namespace TestCluster + +namespace ApplianceIdentification { +namespace Attributes { +EmberAfStatus GetCompanyId(chip::EndpointId endpoint, uint16_t * companyId); // int16u +EmberAfStatus SetCompanyId(chip::EndpointId endpoint, uint16_t companyId); +EmberAfStatus GetBrandId(chip::EndpointId endpoint, uint16_t * brandId); // int16u +EmberAfStatus SetBrandId(chip::EndpointId endpoint, uint16_t brandId); +EmberAfStatus GetProductTypeId(chip::EndpointId endpoint, uint16_t * productTypeId); // int16u +EmberAfStatus SetProductTypeId(chip::EndpointId endpoint, uint16_t productTypeId); +EmberAfStatus GetCecedSpecificationVersion(chip::EndpointId endpoint, uint8_t * cecedSpecificationVersion); // int8u +EmberAfStatus SetCecedSpecificationVersion(chip::EndpointId endpoint, uint8_t cecedSpecificationVersion); +} // namespace Attributes +} // namespace ApplianceIdentification + +namespace MeterIdentification { +namespace Attributes { +EmberAfStatus GetMeterTypeId(chip::EndpointId endpoint, uint16_t * meterTypeId); // int16u +EmberAfStatus SetMeterTypeId(chip::EndpointId endpoint, uint16_t meterTypeId); +EmberAfStatus GetDataQualityId(chip::EndpointId endpoint, uint16_t * dataQualityId); // int16u +EmberAfStatus SetDataQualityId(chip::EndpointId endpoint, uint16_t dataQualityId); +} // namespace Attributes +} // namespace MeterIdentification + +namespace ApplianceStatistics { +namespace Attributes { +EmberAfStatus GetLogMaxSize(chip::EndpointId endpoint, uint32_t * logMaxSize); // int32u +EmberAfStatus SetLogMaxSize(chip::EndpointId endpoint, uint32_t logMaxSize); +EmberAfStatus GetLogQueueMaxSize(chip::EndpointId endpoint, uint8_t * logQueueMaxSize); // int8u +EmberAfStatus SetLogQueueMaxSize(chip::EndpointId endpoint, uint8_t logQueueMaxSize); +} // namespace Attributes +} // namespace ApplianceStatistics + +namespace ElectricalMeasurement { +namespace Attributes { +EmberAfStatus GetMeasurementType(chip::EndpointId endpoint, uint32_t * measurementType); // bitmap32 +EmberAfStatus SetMeasurementType(chip::EndpointId endpoint, uint32_t measurementType); +EmberAfStatus GetDcVoltage(chip::EndpointId endpoint, int16_t * dcVoltage); // int16s +EmberAfStatus SetDcVoltage(chip::EndpointId endpoint, int16_t dcVoltage); +EmberAfStatus GetDcVoltageMin(chip::EndpointId endpoint, int16_t * dcVoltageMin); // int16s +EmberAfStatus SetDcVoltageMin(chip::EndpointId endpoint, int16_t dcVoltageMin); +EmberAfStatus GetDcVoltageMax(chip::EndpointId endpoint, int16_t * dcVoltageMax); // int16s +EmberAfStatus SetDcVoltageMax(chip::EndpointId endpoint, int16_t dcVoltageMax); +EmberAfStatus GetDcCurrent(chip::EndpointId endpoint, int16_t * dcCurrent); // int16s +EmberAfStatus SetDcCurrent(chip::EndpointId endpoint, int16_t dcCurrent); +EmberAfStatus GetDcCurrentMin(chip::EndpointId endpoint, int16_t * dcCurrentMin); // int16s +EmberAfStatus SetDcCurrentMin(chip::EndpointId endpoint, int16_t dcCurrentMin); +EmberAfStatus GetDcCurrentMax(chip::EndpointId endpoint, int16_t * dcCurrentMax); // int16s +EmberAfStatus SetDcCurrentMax(chip::EndpointId endpoint, int16_t dcCurrentMax); +EmberAfStatus GetDcPower(chip::EndpointId endpoint, int16_t * dcPower); // int16s +EmberAfStatus SetDcPower(chip::EndpointId endpoint, int16_t dcPower); +EmberAfStatus GetDcPowerMin(chip::EndpointId endpoint, int16_t * dcPowerMin); // int16s +EmberAfStatus SetDcPowerMin(chip::EndpointId endpoint, int16_t dcPowerMin); +EmberAfStatus GetDcPowerMax(chip::EndpointId endpoint, int16_t * dcPowerMax); // int16s +EmberAfStatus SetDcPowerMax(chip::EndpointId endpoint, int16_t dcPowerMax); +EmberAfStatus GetDcVoltageMultiplier(chip::EndpointId endpoint, uint16_t * dcVoltageMultiplier); // int16u +EmberAfStatus SetDcVoltageMultiplier(chip::EndpointId endpoint, uint16_t dcVoltageMultiplier); +EmberAfStatus GetDcVoltageDivisor(chip::EndpointId endpoint, uint16_t * dcVoltageDivisor); // int16u +EmberAfStatus SetDcVoltageDivisor(chip::EndpointId endpoint, uint16_t dcVoltageDivisor); +EmberAfStatus GetDcCurrentMultiplier(chip::EndpointId endpoint, uint16_t * dcCurrentMultiplier); // int16u +EmberAfStatus SetDcCurrentMultiplier(chip::EndpointId endpoint, uint16_t dcCurrentMultiplier); +EmberAfStatus GetDcCurrentDivisor(chip::EndpointId endpoint, uint16_t * dcCurrentDivisor); // int16u +EmberAfStatus SetDcCurrentDivisor(chip::EndpointId endpoint, uint16_t dcCurrentDivisor); +EmberAfStatus GetDcPowerMultiplier(chip::EndpointId endpoint, uint16_t * dcPowerMultiplier); // int16u +EmberAfStatus SetDcPowerMultiplier(chip::EndpointId endpoint, uint16_t dcPowerMultiplier); +EmberAfStatus GetDcPowerDivisor(chip::EndpointId endpoint, uint16_t * dcPowerDivisor); // int16u +EmberAfStatus SetDcPowerDivisor(chip::EndpointId endpoint, uint16_t dcPowerDivisor); +EmberAfStatus GetAcFrequency(chip::EndpointId endpoint, uint16_t * acFrequency); // int16u +EmberAfStatus SetAcFrequency(chip::EndpointId endpoint, uint16_t acFrequency); +EmberAfStatus GetAcFrequencyMin(chip::EndpointId endpoint, uint16_t * acFrequencyMin); // int16u +EmberAfStatus SetAcFrequencyMin(chip::EndpointId endpoint, uint16_t acFrequencyMin); +EmberAfStatus GetAcFrequencyMax(chip::EndpointId endpoint, uint16_t * acFrequencyMax); // int16u +EmberAfStatus SetAcFrequencyMax(chip::EndpointId endpoint, uint16_t acFrequencyMax); +EmberAfStatus GetNeutralCurrent(chip::EndpointId endpoint, uint16_t * neutralCurrent); // int16u +EmberAfStatus SetNeutralCurrent(chip::EndpointId endpoint, uint16_t neutralCurrent); +EmberAfStatus GetTotalActivePower(chip::EndpointId endpoint, int32_t * totalActivePower); // int32s +EmberAfStatus SetTotalActivePower(chip::EndpointId endpoint, int32_t totalActivePower); +EmberAfStatus GetTotalReactivePower(chip::EndpointId endpoint, int32_t * totalReactivePower); // int32s +EmberAfStatus SetTotalReactivePower(chip::EndpointId endpoint, int32_t totalReactivePower); +EmberAfStatus GetTotalApparentPower(chip::EndpointId endpoint, uint32_t * totalApparentPower); // int32u +EmberAfStatus SetTotalApparentPower(chip::EndpointId endpoint, uint32_t totalApparentPower); +EmberAfStatus GetMeasured1stHarmonicCurrent(chip::EndpointId endpoint, int16_t * measured1stHarmonicCurrent); // int16s +EmberAfStatus SetMeasured1stHarmonicCurrent(chip::EndpointId endpoint, int16_t measured1stHarmonicCurrent); +EmberAfStatus GetMeasured3rdHarmonicCurrent(chip::EndpointId endpoint, int16_t * measured3rdHarmonicCurrent); // int16s +EmberAfStatus SetMeasured3rdHarmonicCurrent(chip::EndpointId endpoint, int16_t measured3rdHarmonicCurrent); +EmberAfStatus GetMeasured5thHarmonicCurrent(chip::EndpointId endpoint, int16_t * measured5thHarmonicCurrent); // int16s +EmberAfStatus SetMeasured5thHarmonicCurrent(chip::EndpointId endpoint, int16_t measured5thHarmonicCurrent); +EmberAfStatus GetMeasured7thHarmonicCurrent(chip::EndpointId endpoint, int16_t * measured7thHarmonicCurrent); // int16s +EmberAfStatus SetMeasured7thHarmonicCurrent(chip::EndpointId endpoint, int16_t measured7thHarmonicCurrent); +EmberAfStatus GetMeasured9thHarmonicCurrent(chip::EndpointId endpoint, int16_t * measured9thHarmonicCurrent); // int16s +EmberAfStatus SetMeasured9thHarmonicCurrent(chip::EndpointId endpoint, int16_t measured9thHarmonicCurrent); +EmberAfStatus GetMeasured11thHarmonicCurrent(chip::EndpointId endpoint, int16_t * measured11thHarmonicCurrent); // int16s +EmberAfStatus SetMeasured11thHarmonicCurrent(chip::EndpointId endpoint, int16_t measured11thHarmonicCurrent); +EmberAfStatus GetMeasuredPhase1stHarmonicCurrent(chip::EndpointId endpoint, int16_t * measuredPhase1stHarmonicCurrent); // int16s +EmberAfStatus SetMeasuredPhase1stHarmonicCurrent(chip::EndpointId endpoint, int16_t measuredPhase1stHarmonicCurrent); +EmberAfStatus GetMeasuredPhase3rdHarmonicCurrent(chip::EndpointId endpoint, int16_t * measuredPhase3rdHarmonicCurrent); // int16s +EmberAfStatus SetMeasuredPhase3rdHarmonicCurrent(chip::EndpointId endpoint, int16_t measuredPhase3rdHarmonicCurrent); +EmberAfStatus GetMeasuredPhase5thHarmonicCurrent(chip::EndpointId endpoint, int16_t * measuredPhase5thHarmonicCurrent); // int16s +EmberAfStatus SetMeasuredPhase5thHarmonicCurrent(chip::EndpointId endpoint, int16_t measuredPhase5thHarmonicCurrent); +EmberAfStatus GetMeasuredPhase7thHarmonicCurrent(chip::EndpointId endpoint, int16_t * measuredPhase7thHarmonicCurrent); // int16s +EmberAfStatus SetMeasuredPhase7thHarmonicCurrent(chip::EndpointId endpoint, int16_t measuredPhase7thHarmonicCurrent); +EmberAfStatus GetMeasuredPhase9thHarmonicCurrent(chip::EndpointId endpoint, int16_t * measuredPhase9thHarmonicCurrent); // int16s +EmberAfStatus SetMeasuredPhase9thHarmonicCurrent(chip::EndpointId endpoint, int16_t measuredPhase9thHarmonicCurrent); +EmberAfStatus GetMeasuredPhase11thHarmonicCurrent(chip::EndpointId endpoint, int16_t * measuredPhase11thHarmonicCurrent); // int16s +EmberAfStatus SetMeasuredPhase11thHarmonicCurrent(chip::EndpointId endpoint, int16_t measuredPhase11thHarmonicCurrent); +EmberAfStatus GetAcFrequencyMultiplier(chip::EndpointId endpoint, uint16_t * acFrequencyMultiplier); // int16u +EmberAfStatus SetAcFrequencyMultiplier(chip::EndpointId endpoint, uint16_t acFrequencyMultiplier); +EmberAfStatus GetAcFrequencyDivisor(chip::EndpointId endpoint, uint16_t * acFrequencyDivisor); // int16u +EmberAfStatus SetAcFrequencyDivisor(chip::EndpointId endpoint, uint16_t acFrequencyDivisor); +EmberAfStatus GetPowerMultiplier(chip::EndpointId endpoint, uint32_t * powerMultiplier); // int32u +EmberAfStatus SetPowerMultiplier(chip::EndpointId endpoint, uint32_t powerMultiplier); +EmberAfStatus GetPowerDivisor(chip::EndpointId endpoint, uint32_t * powerDivisor); // int32u +EmberAfStatus SetPowerDivisor(chip::EndpointId endpoint, uint32_t powerDivisor); +EmberAfStatus GetHarmonicCurrentMultiplier(chip::EndpointId endpoint, int8_t * harmonicCurrentMultiplier); // int8s +EmberAfStatus SetHarmonicCurrentMultiplier(chip::EndpointId endpoint, int8_t harmonicCurrentMultiplier); +EmberAfStatus GetPhaseHarmonicCurrentMultiplier(chip::EndpointId endpoint, int8_t * phaseHarmonicCurrentMultiplier); // int8s +EmberAfStatus SetPhaseHarmonicCurrentMultiplier(chip::EndpointId endpoint, int8_t phaseHarmonicCurrentMultiplier); +EmberAfStatus GetInstantaneousVoltage(chip::EndpointId endpoint, int16_t * instantaneousVoltage); // int16s +EmberAfStatus SetInstantaneousVoltage(chip::EndpointId endpoint, int16_t instantaneousVoltage); +EmberAfStatus GetInstantaneousLineCurrent(chip::EndpointId endpoint, uint16_t * instantaneousLineCurrent); // int16u +EmberAfStatus SetInstantaneousLineCurrent(chip::EndpointId endpoint, uint16_t instantaneousLineCurrent); +EmberAfStatus GetInstantaneousActiveCurrent(chip::EndpointId endpoint, int16_t * instantaneousActiveCurrent); // int16s +EmberAfStatus SetInstantaneousActiveCurrent(chip::EndpointId endpoint, int16_t instantaneousActiveCurrent); +EmberAfStatus GetInstantaneousReactiveCurrent(chip::EndpointId endpoint, int16_t * instantaneousReactiveCurrent); // int16s +EmberAfStatus SetInstantaneousReactiveCurrent(chip::EndpointId endpoint, int16_t instantaneousReactiveCurrent); +EmberAfStatus GetInstantaneousPower(chip::EndpointId endpoint, int16_t * instantaneousPower); // int16s +EmberAfStatus SetInstantaneousPower(chip::EndpointId endpoint, int16_t instantaneousPower); +EmberAfStatus GetRmsVoltage(chip::EndpointId endpoint, uint16_t * rmsVoltage); // int16u +EmberAfStatus SetRmsVoltage(chip::EndpointId endpoint, uint16_t rmsVoltage); +EmberAfStatus GetRmsVoltageMin(chip::EndpointId endpoint, uint16_t * rmsVoltageMin); // int16u +EmberAfStatus SetRmsVoltageMin(chip::EndpointId endpoint, uint16_t rmsVoltageMin); +EmberAfStatus GetRmsVoltageMax(chip::EndpointId endpoint, uint16_t * rmsVoltageMax); // int16u +EmberAfStatus SetRmsVoltageMax(chip::EndpointId endpoint, uint16_t rmsVoltageMax); +EmberAfStatus GetRmsCurrent(chip::EndpointId endpoint, uint16_t * rmsCurrent); // int16u +EmberAfStatus SetRmsCurrent(chip::EndpointId endpoint, uint16_t rmsCurrent); +EmberAfStatus GetRmsCurrentMin(chip::EndpointId endpoint, uint16_t * rmsCurrentMin); // int16u +EmberAfStatus SetRmsCurrentMin(chip::EndpointId endpoint, uint16_t rmsCurrentMin); +EmberAfStatus GetRmsCurrentMax(chip::EndpointId endpoint, uint16_t * rmsCurrentMax); // int16u +EmberAfStatus SetRmsCurrentMax(chip::EndpointId endpoint, uint16_t rmsCurrentMax); +EmberAfStatus GetActivePower(chip::EndpointId endpoint, int16_t * activePower); // int16s +EmberAfStatus SetActivePower(chip::EndpointId endpoint, int16_t activePower); +EmberAfStatus GetActivePowerMin(chip::EndpointId endpoint, int16_t * activePowerMin); // int16s +EmberAfStatus SetActivePowerMin(chip::EndpointId endpoint, int16_t activePowerMin); +EmberAfStatus GetActivePowerMax(chip::EndpointId endpoint, int16_t * activePowerMax); // int16s +EmberAfStatus SetActivePowerMax(chip::EndpointId endpoint, int16_t activePowerMax); +EmberAfStatus GetReactivePower(chip::EndpointId endpoint, int16_t * reactivePower); // int16s +EmberAfStatus SetReactivePower(chip::EndpointId endpoint, int16_t reactivePower); +EmberAfStatus GetApparentPower(chip::EndpointId endpoint, uint16_t * apparentPower); // int16u +EmberAfStatus SetApparentPower(chip::EndpointId endpoint, uint16_t apparentPower); +EmberAfStatus GetPowerFactor(chip::EndpointId endpoint, int8_t * powerFactor); // int8s +EmberAfStatus SetPowerFactor(chip::EndpointId endpoint, int8_t powerFactor); +EmberAfStatus GetAverageRmsVoltageMeasurementPeriod(chip::EndpointId endpoint, + uint16_t * averageRmsVoltageMeasurementPeriod); // int16u +EmberAfStatus SetAverageRmsVoltageMeasurementPeriod(chip::EndpointId endpoint, uint16_t averageRmsVoltageMeasurementPeriod); +EmberAfStatus GetAverageRmsUnderVoltageCounter(chip::EndpointId endpoint, uint16_t * averageRmsUnderVoltageCounter); // int16u +EmberAfStatus SetAverageRmsUnderVoltageCounter(chip::EndpointId endpoint, uint16_t averageRmsUnderVoltageCounter); +EmberAfStatus GetRmsExtremeOverVoltagePeriod(chip::EndpointId endpoint, uint16_t * rmsExtremeOverVoltagePeriod); // int16u +EmberAfStatus SetRmsExtremeOverVoltagePeriod(chip::EndpointId endpoint, uint16_t rmsExtremeOverVoltagePeriod); +EmberAfStatus GetRmsExtremeUnderVoltagePeriod(chip::EndpointId endpoint, uint16_t * rmsExtremeUnderVoltagePeriod); // int16u +EmberAfStatus SetRmsExtremeUnderVoltagePeriod(chip::EndpointId endpoint, uint16_t rmsExtremeUnderVoltagePeriod); +EmberAfStatus GetRmsVoltageSagPeriod(chip::EndpointId endpoint, uint16_t * rmsVoltageSagPeriod); // int16u +EmberAfStatus SetRmsVoltageSagPeriod(chip::EndpointId endpoint, uint16_t rmsVoltageSagPeriod); +EmberAfStatus GetRmsVoltageSwellPeriod(chip::EndpointId endpoint, uint16_t * rmsVoltageSwellPeriod); // int16u +EmberAfStatus SetRmsVoltageSwellPeriod(chip::EndpointId endpoint, uint16_t rmsVoltageSwellPeriod); +EmberAfStatus GetAcVoltageMultiplier(chip::EndpointId endpoint, uint16_t * acVoltageMultiplier); // int16u +EmberAfStatus SetAcVoltageMultiplier(chip::EndpointId endpoint, uint16_t acVoltageMultiplier); +EmberAfStatus GetAcVoltageDivisor(chip::EndpointId endpoint, uint16_t * acVoltageDivisor); // int16u +EmberAfStatus SetAcVoltageDivisor(chip::EndpointId endpoint, uint16_t acVoltageDivisor); +EmberAfStatus GetAcCurrentMultiplier(chip::EndpointId endpoint, uint16_t * acCurrentMultiplier); // int16u +EmberAfStatus SetAcCurrentMultiplier(chip::EndpointId endpoint, uint16_t acCurrentMultiplier); +EmberAfStatus GetAcCurrentDivisor(chip::EndpointId endpoint, uint16_t * acCurrentDivisor); // int16u +EmberAfStatus SetAcCurrentDivisor(chip::EndpointId endpoint, uint16_t acCurrentDivisor); +EmberAfStatus GetAcPowerMultiplier(chip::EndpointId endpoint, uint16_t * acPowerMultiplier); // int16u +EmberAfStatus SetAcPowerMultiplier(chip::EndpointId endpoint, uint16_t acPowerMultiplier); +EmberAfStatus GetAcPowerDivisor(chip::EndpointId endpoint, uint16_t * acPowerDivisor); // int16u +EmberAfStatus SetAcPowerDivisor(chip::EndpointId endpoint, uint16_t acPowerDivisor); +EmberAfStatus GetOverloadAlarmsMask(chip::EndpointId endpoint, uint8_t * overloadAlarmsMask); // bitmap8 +EmberAfStatus SetOverloadAlarmsMask(chip::EndpointId endpoint, uint8_t overloadAlarmsMask); +EmberAfStatus GetVoltageOverload(chip::EndpointId endpoint, int16_t * voltageOverload); // int16s +EmberAfStatus SetVoltageOverload(chip::EndpointId endpoint, int16_t voltageOverload); +EmberAfStatus GetCurrentOverload(chip::EndpointId endpoint, int16_t * currentOverload); // int16s +EmberAfStatus SetCurrentOverload(chip::EndpointId endpoint, int16_t currentOverload); +EmberAfStatus GetAcOverloadAlarmsMask(chip::EndpointId endpoint, uint16_t * acOverloadAlarmsMask); // bitmap16 +EmberAfStatus SetAcOverloadAlarmsMask(chip::EndpointId endpoint, uint16_t acOverloadAlarmsMask); +EmberAfStatus GetAcVoltageOverload(chip::EndpointId endpoint, int16_t * acVoltageOverload); // int16s +EmberAfStatus SetAcVoltageOverload(chip::EndpointId endpoint, int16_t acVoltageOverload); +EmberAfStatus GetAcCurrentOverload(chip::EndpointId endpoint, int16_t * acCurrentOverload); // int16s +EmberAfStatus SetAcCurrentOverload(chip::EndpointId endpoint, int16_t acCurrentOverload); +EmberAfStatus GetAcActivePowerOverload(chip::EndpointId endpoint, int16_t * acActivePowerOverload); // int16s +EmberAfStatus SetAcActivePowerOverload(chip::EndpointId endpoint, int16_t acActivePowerOverload); +EmberAfStatus GetAcReactivePowerOverload(chip::EndpointId endpoint, int16_t * acReactivePowerOverload); // int16s +EmberAfStatus SetAcReactivePowerOverload(chip::EndpointId endpoint, int16_t acReactivePowerOverload); +EmberAfStatus GetAverageRmsOverVoltage(chip::EndpointId endpoint, int16_t * averageRmsOverVoltage); // int16s +EmberAfStatus SetAverageRmsOverVoltage(chip::EndpointId endpoint, int16_t averageRmsOverVoltage); +EmberAfStatus GetAverageRmsUnderVoltage(chip::EndpointId endpoint, int16_t * averageRmsUnderVoltage); // int16s +EmberAfStatus SetAverageRmsUnderVoltage(chip::EndpointId endpoint, int16_t averageRmsUnderVoltage); +EmberAfStatus GetRmsExtremeOverVoltage(chip::EndpointId endpoint, int16_t * rmsExtremeOverVoltage); // int16s +EmberAfStatus SetRmsExtremeOverVoltage(chip::EndpointId endpoint, int16_t rmsExtremeOverVoltage); +EmberAfStatus GetRmsExtremeUnderVoltage(chip::EndpointId endpoint, int16_t * rmsExtremeUnderVoltage); // int16s +EmberAfStatus SetRmsExtremeUnderVoltage(chip::EndpointId endpoint, int16_t rmsExtremeUnderVoltage); +EmberAfStatus GetRmsVoltageSag(chip::EndpointId endpoint, int16_t * rmsVoltageSag); // int16s +EmberAfStatus SetRmsVoltageSag(chip::EndpointId endpoint, int16_t rmsVoltageSag); +EmberAfStatus GetRmsVoltageSwell(chip::EndpointId endpoint, int16_t * rmsVoltageSwell); // int16s +EmberAfStatus SetRmsVoltageSwell(chip::EndpointId endpoint, int16_t rmsVoltageSwell); +EmberAfStatus GetLineCurrentPhaseB(chip::EndpointId endpoint, uint16_t * lineCurrentPhaseB); // int16u +EmberAfStatus SetLineCurrentPhaseB(chip::EndpointId endpoint, uint16_t lineCurrentPhaseB); +EmberAfStatus GetActiveCurrentPhaseB(chip::EndpointId endpoint, int16_t * activeCurrentPhaseB); // int16s +EmberAfStatus SetActiveCurrentPhaseB(chip::EndpointId endpoint, int16_t activeCurrentPhaseB); +EmberAfStatus GetReactiveCurrentPhaseB(chip::EndpointId endpoint, int16_t * reactiveCurrentPhaseB); // int16s +EmberAfStatus SetReactiveCurrentPhaseB(chip::EndpointId endpoint, int16_t reactiveCurrentPhaseB); +EmberAfStatus GetRmsVoltagePhaseB(chip::EndpointId endpoint, uint16_t * rmsVoltagePhaseB); // int16u +EmberAfStatus SetRmsVoltagePhaseB(chip::EndpointId endpoint, uint16_t rmsVoltagePhaseB); +EmberAfStatus GetRmsVoltageMinPhaseB(chip::EndpointId endpoint, uint16_t * rmsVoltageMinPhaseB); // int16u +EmberAfStatus SetRmsVoltageMinPhaseB(chip::EndpointId endpoint, uint16_t rmsVoltageMinPhaseB); +EmberAfStatus GetRmsVoltageMaxPhaseB(chip::EndpointId endpoint, uint16_t * rmsVoltageMaxPhaseB); // int16u +EmberAfStatus SetRmsVoltageMaxPhaseB(chip::EndpointId endpoint, uint16_t rmsVoltageMaxPhaseB); +EmberAfStatus GetRmsCurrentPhaseB(chip::EndpointId endpoint, uint16_t * rmsCurrentPhaseB); // int16u +EmberAfStatus SetRmsCurrentPhaseB(chip::EndpointId endpoint, uint16_t rmsCurrentPhaseB); +EmberAfStatus GetRmsCurrentMinPhaseB(chip::EndpointId endpoint, uint16_t * rmsCurrentMinPhaseB); // int16u +EmberAfStatus SetRmsCurrentMinPhaseB(chip::EndpointId endpoint, uint16_t rmsCurrentMinPhaseB); +EmberAfStatus GetRmsCurrentMaxPhaseB(chip::EndpointId endpoint, uint16_t * rmsCurrentMaxPhaseB); // int16u +EmberAfStatus SetRmsCurrentMaxPhaseB(chip::EndpointId endpoint, uint16_t rmsCurrentMaxPhaseB); +EmberAfStatus GetActivePowerPhaseB(chip::EndpointId endpoint, int16_t * activePowerPhaseB); // int16s +EmberAfStatus SetActivePowerPhaseB(chip::EndpointId endpoint, int16_t activePowerPhaseB); +EmberAfStatus GetActivePowerMinPhaseB(chip::EndpointId endpoint, int16_t * activePowerMinPhaseB); // int16s +EmberAfStatus SetActivePowerMinPhaseB(chip::EndpointId endpoint, int16_t activePowerMinPhaseB); +EmberAfStatus GetActivePowerMaxPhaseB(chip::EndpointId endpoint, int16_t * activePowerMaxPhaseB); // int16s +EmberAfStatus SetActivePowerMaxPhaseB(chip::EndpointId endpoint, int16_t activePowerMaxPhaseB); +EmberAfStatus GetReactivePowerPhaseB(chip::EndpointId endpoint, int16_t * reactivePowerPhaseB); // int16s +EmberAfStatus SetReactivePowerPhaseB(chip::EndpointId endpoint, int16_t reactivePowerPhaseB); +EmberAfStatus GetApparentPowerPhaseB(chip::EndpointId endpoint, uint16_t * apparentPowerPhaseB); // int16u +EmberAfStatus SetApparentPowerPhaseB(chip::EndpointId endpoint, uint16_t apparentPowerPhaseB); +EmberAfStatus GetPowerFactorPhaseB(chip::EndpointId endpoint, int8_t * powerFactorPhaseB); // int8s +EmberAfStatus SetPowerFactorPhaseB(chip::EndpointId endpoint, int8_t powerFactorPhaseB); +EmberAfStatus GetAverageRmsVoltageMeasurementPeriodPhaseB(chip::EndpointId endpoint, + uint16_t * averageRmsVoltageMeasurementPeriodPhaseB); // int16u +EmberAfStatus SetAverageRmsVoltageMeasurementPeriodPhaseB(chip::EndpointId endpoint, + uint16_t averageRmsVoltageMeasurementPeriodPhaseB); +EmberAfStatus GetAverageRmsOverVoltageCounterPhaseB(chip::EndpointId endpoint, + uint16_t * averageRmsOverVoltageCounterPhaseB); // int16u +EmberAfStatus SetAverageRmsOverVoltageCounterPhaseB(chip::EndpointId endpoint, uint16_t averageRmsOverVoltageCounterPhaseB); +EmberAfStatus GetAverageRmsUnderVoltageCounterPhaseB(chip::EndpointId endpoint, + uint16_t * averageRmsUnderVoltageCounterPhaseB); // int16u +EmberAfStatus SetAverageRmsUnderVoltageCounterPhaseB(chip::EndpointId endpoint, uint16_t averageRmsUnderVoltageCounterPhaseB); +EmberAfStatus GetRmsExtremeOverVoltagePeriodPhaseB(chip::EndpointId endpoint, + uint16_t * rmsExtremeOverVoltagePeriodPhaseB); // int16u +EmberAfStatus SetRmsExtremeOverVoltagePeriodPhaseB(chip::EndpointId endpoint, uint16_t rmsExtremeOverVoltagePeriodPhaseB); +EmberAfStatus GetRmsExtremeUnderVoltagePeriodPhaseB(chip::EndpointId endpoint, + uint16_t * rmsExtremeUnderVoltagePeriodPhaseB); // int16u +EmberAfStatus SetRmsExtremeUnderVoltagePeriodPhaseB(chip::EndpointId endpoint, uint16_t rmsExtremeUnderVoltagePeriodPhaseB); +EmberAfStatus GetRmsVoltageSagPeriodPhaseB(chip::EndpointId endpoint, uint16_t * rmsVoltageSagPeriodPhaseB); // int16u +EmberAfStatus SetRmsVoltageSagPeriodPhaseB(chip::EndpointId endpoint, uint16_t rmsVoltageSagPeriodPhaseB); +EmberAfStatus GetRmsVoltageSwellPeriodPhaseB(chip::EndpointId endpoint, uint16_t * rmsVoltageSwellPeriodPhaseB); // int16u +EmberAfStatus SetRmsVoltageSwellPeriodPhaseB(chip::EndpointId endpoint, uint16_t rmsVoltageSwellPeriodPhaseB); +EmberAfStatus GetLineCurrentPhaseC(chip::EndpointId endpoint, uint16_t * lineCurrentPhaseC); // int16u +EmberAfStatus SetLineCurrentPhaseC(chip::EndpointId endpoint, uint16_t lineCurrentPhaseC); +EmberAfStatus GetActiveCurrentPhaseC(chip::EndpointId endpoint, int16_t * activeCurrentPhaseC); // int16s +EmberAfStatus SetActiveCurrentPhaseC(chip::EndpointId endpoint, int16_t activeCurrentPhaseC); +EmberAfStatus GetReactiveCurrentPhaseC(chip::EndpointId endpoint, int16_t * reactiveCurrentPhaseC); // int16s +EmberAfStatus SetReactiveCurrentPhaseC(chip::EndpointId endpoint, int16_t reactiveCurrentPhaseC); +EmberAfStatus GetRmsVoltagePhaseC(chip::EndpointId endpoint, uint16_t * rmsVoltagePhaseC); // int16u +EmberAfStatus SetRmsVoltagePhaseC(chip::EndpointId endpoint, uint16_t rmsVoltagePhaseC); +EmberAfStatus GetRmsVoltageMinPhaseC(chip::EndpointId endpoint, uint16_t * rmsVoltageMinPhaseC); // int16u +EmberAfStatus SetRmsVoltageMinPhaseC(chip::EndpointId endpoint, uint16_t rmsVoltageMinPhaseC); +EmberAfStatus GetRmsVoltageMaxPhaseC(chip::EndpointId endpoint, uint16_t * rmsVoltageMaxPhaseC); // int16u +EmberAfStatus SetRmsVoltageMaxPhaseC(chip::EndpointId endpoint, uint16_t rmsVoltageMaxPhaseC); +EmberAfStatus GetRmsCurrentPhaseC(chip::EndpointId endpoint, uint16_t * rmsCurrentPhaseC); // int16u +EmberAfStatus SetRmsCurrentPhaseC(chip::EndpointId endpoint, uint16_t rmsCurrentPhaseC); +EmberAfStatus GetRmsCurrentMinPhaseC(chip::EndpointId endpoint, uint16_t * rmsCurrentMinPhaseC); // int16u +EmberAfStatus SetRmsCurrentMinPhaseC(chip::EndpointId endpoint, uint16_t rmsCurrentMinPhaseC); +EmberAfStatus GetRmsCurrentMaxPhaseC(chip::EndpointId endpoint, uint16_t * rmsCurrentMaxPhaseC); // int16u +EmberAfStatus SetRmsCurrentMaxPhaseC(chip::EndpointId endpoint, uint16_t rmsCurrentMaxPhaseC); +EmberAfStatus GetActivePowerPhaseC(chip::EndpointId endpoint, int16_t * activePowerPhaseC); // int16s +EmberAfStatus SetActivePowerPhaseC(chip::EndpointId endpoint, int16_t activePowerPhaseC); +EmberAfStatus GetActivePowerMinPhaseC(chip::EndpointId endpoint, int16_t * activePowerMinPhaseC); // int16s +EmberAfStatus SetActivePowerMinPhaseC(chip::EndpointId endpoint, int16_t activePowerMinPhaseC); +EmberAfStatus GetActivePowerMaxPhaseC(chip::EndpointId endpoint, int16_t * activePowerMaxPhaseC); // int16s +EmberAfStatus SetActivePowerMaxPhaseC(chip::EndpointId endpoint, int16_t activePowerMaxPhaseC); +EmberAfStatus GetReactivePowerPhaseC(chip::EndpointId endpoint, int16_t * reactivePowerPhaseC); // int16s +EmberAfStatus SetReactivePowerPhaseC(chip::EndpointId endpoint, int16_t reactivePowerPhaseC); +EmberAfStatus GetApparentPowerPhaseC(chip::EndpointId endpoint, uint16_t * apparentPowerPhaseC); // int16u +EmberAfStatus SetApparentPowerPhaseC(chip::EndpointId endpoint, uint16_t apparentPowerPhaseC); +EmberAfStatus GetPowerFactorPhaseC(chip::EndpointId endpoint, int8_t * powerFactorPhaseC); // int8s +EmberAfStatus SetPowerFactorPhaseC(chip::EndpointId endpoint, int8_t powerFactorPhaseC); +EmberAfStatus GetAverageRmsVoltageMeasurementPeriodPhaseC(chip::EndpointId endpoint, + uint16_t * averageRmsVoltageMeasurementPeriodPhaseC); // int16u +EmberAfStatus SetAverageRmsVoltageMeasurementPeriodPhaseC(chip::EndpointId endpoint, + uint16_t averageRmsVoltageMeasurementPeriodPhaseC); +EmberAfStatus GetAverageRmsOverVoltageCounterPhaseC(chip::EndpointId endpoint, + uint16_t * averageRmsOverVoltageCounterPhaseC); // int16u +EmberAfStatus SetAverageRmsOverVoltageCounterPhaseC(chip::EndpointId endpoint, uint16_t averageRmsOverVoltageCounterPhaseC); +EmberAfStatus GetAverageRmsUnderVoltageCounterPhaseC(chip::EndpointId endpoint, + uint16_t * averageRmsUnderVoltageCounterPhaseC); // int16u +EmberAfStatus SetAverageRmsUnderVoltageCounterPhaseC(chip::EndpointId endpoint, uint16_t averageRmsUnderVoltageCounterPhaseC); +EmberAfStatus GetRmsExtremeOverVoltagePeriodPhaseC(chip::EndpointId endpoint, + uint16_t * rmsExtremeOverVoltagePeriodPhaseC); // int16u +EmberAfStatus SetRmsExtremeOverVoltagePeriodPhaseC(chip::EndpointId endpoint, uint16_t rmsExtremeOverVoltagePeriodPhaseC); +EmberAfStatus GetRmsExtremeUnderVoltagePeriodPhaseC(chip::EndpointId endpoint, + uint16_t * rmsExtremeUnderVoltagePeriodPhaseC); // int16u +EmberAfStatus SetRmsExtremeUnderVoltagePeriodPhaseC(chip::EndpointId endpoint, uint16_t rmsExtremeUnderVoltagePeriodPhaseC); +EmberAfStatus GetRmsVoltageSagPeriodPhaseC(chip::EndpointId endpoint, uint16_t * rmsVoltageSagPeriodPhaseC); // int16u +EmberAfStatus SetRmsVoltageSagPeriodPhaseC(chip::EndpointId endpoint, uint16_t rmsVoltageSagPeriodPhaseC); +EmberAfStatus GetRmsVoltageSwellPeriodPhaseC(chip::EndpointId endpoint, uint16_t * rmsVoltageSwellPeriodPhaseC); // int16u +EmberAfStatus SetRmsVoltageSwellPeriodPhaseC(chip::EndpointId endpoint, uint16_t rmsVoltageSwellPeriodPhaseC); +} // namespace Attributes +} // namespace ElectricalMeasurement + +namespace GroupKeyManagement { +namespace Attributes { +} // namespace Attributes +} // namespace GroupKeyManagement + +namespace SampleMfgSpecificCluster { +namespace Attributes { +EmberAfStatus GetEmberSampleAttribute(chip::EndpointId endpoint, uint8_t * emberSampleAttribute); // int8u +EmberAfStatus SetEmberSampleAttribute(chip::EndpointId endpoint, uint8_t emberSampleAttribute); +EmberAfStatus GetEmberSampleAttribute2(chip::EndpointId endpoint, uint8_t * emberSampleAttribute2); // int8u +EmberAfStatus SetEmberSampleAttribute2(chip::EndpointId endpoint, uint8_t emberSampleAttribute2); +} // namespace Attributes +} // namespace SampleMfgSpecificCluster + +namespace SampleMfgSpecificCluster2 { +namespace Attributes { +EmberAfStatus GetEmberSampleAttribute3(chip::EndpointId endpoint, uint16_t * emberSampleAttribute3); // int16u +EmberAfStatus SetEmberSampleAttribute3(chip::EndpointId endpoint, uint16_t emberSampleAttribute3); +EmberAfStatus GetEmberSampleAttribute4(chip::EndpointId endpoint, uint16_t * emberSampleAttribute4); // int16u +EmberAfStatus SetEmberSampleAttribute4(chip::EndpointId endpoint, uint16_t emberSampleAttribute4); +} // namespace Attributes +} // namespace SampleMfgSpecificCluster2 + +} // namespace Clusters +} // namespace app +} // namespace chip diff --git a/src/app/common/gen/callback.h b/src/app/common/gen/callback.h index 1e77125c389a75..f1d48e5d1549c2 100644 --- a/src/app/common/gen/callback.h +++ b/src/app/common/gen/callback.h @@ -15824,7 +15824,7 @@ bool emberAfDiagnosticLogsClusterRetrieveLogsRequestCallback(chip::app::Command */ bool emberAfDiagnosticLogsClusterRetrieveLogsResponseCallback(chip::app::Command * commandObj, uint8_t status, chip::ByteSpan content, - /* TYPE WARNING: unknown defaults to */ uint8_t * timeStamp, + /* TYPE WARNING: utc defaults to */ uint8_t * timeStamp, uint32_t timeSinceBoot); /** @@ -16854,7 +16854,7 @@ bool emberAfTestClusterClusterTestUnknownCommandCallback(chip::app::Command * co * @brief Cluster DisplayMessage Command callback */ bool emberAfMessagingClusterDisplayMessageCallback(chip::app::Command * commandObj, uint32_t messageId, uint8_t messageControl, - /* TYPE WARNING: unknown defaults to */ uint8_t * startTime, + /* TYPE WARNING: utc defaults to */ uint8_t * startTime, uint16_t durationInMinutes, uint8_t * message, uint8_t optionalExtendedMessageControl); @@ -16872,7 +16872,7 @@ bool emberAfMessagingClusterCancelMessageCallback(chip::app::Command * commandOb * @brief Cluster MessageConfirmation Command callback */ bool emberAfMessagingClusterMessageConfirmationCallback(chip::app::Command * commandObj, uint32_t messageId, - /* TYPE WARNING: unknown defaults to */ uint8_t * confirmationTime, + /* TYPE WARNING: utc defaults to */ uint8_t * confirmationTime, uint8_t messageConfirmationControl, chip::ByteSpan messageResponse); /** @@ -16880,7 +16880,7 @@ bool emberAfMessagingClusterMessageConfirmationCallback(chip::app::Command * com */ bool emberAfMessagingClusterDisplayProtectedMessageCallback(chip::app::Command * commandObj, uint32_t messageId, uint8_t messageControl, - /* TYPE WARNING: unknown defaults to */ uint8_t * startTime, + /* TYPE WARNING: utc defaults to */ uint8_t * startTime, uint16_t durationInMinutes, uint8_t * message, uint8_t optionalExtendedMessageControl); @@ -16888,13 +16888,13 @@ bool emberAfMessagingClusterDisplayProtectedMessageCallback(chip::app::Command * * @brief Cluster GetMessageCancellation Command callback */ bool emberAfMessagingClusterGetMessageCancellationCallback( - chip::app::Command * commandObj, /* TYPE WARNING: unknown defaults to */ uint8_t * earliestImplementationTime); + chip::app::Command * commandObj, /* TYPE WARNING: utc defaults to */ uint8_t * earliestImplementationTime); /** * @brief Cluster CancelAllMessages Command callback */ bool emberAfMessagingClusterCancelAllMessagesCallback(chip::app::Command * commandObj, - /* TYPE WARNING: unknown defaults to */ uint8_t * implementationDateTime); + /* TYPE WARNING: utc defaults to */ uint8_t * implementationDateTime); /** * @brief Cluster GetAlerts Command callback diff --git a/src/app/common/gen/client-command-macro.h b/src/app/common/gen/client-command-macro.h index d34670af04310d..a271b5f619d55c 100644 --- a/src/app/common/gen/client-command-macro.h +++ b/src/app/common/gen/client-command-macro.h @@ -2130,7 +2130,7 @@ * Command: RetrieveLogsResponse * @param status LogsStatus * @param content OCTET_STRING - * @param timeStamp UTC_TIME + * @param timeStamp UTC * @param timeSinceBoot INT32U */ #define emberAfFillCommandDiagnostic \ @@ -4675,7 +4675,7 @@ * Command: DisplayMessage * @param messageId INT32U * @param messageControl MessagingControlMask - * @param startTime UTC_TIME + * @param startTime UTC * @param durationInMinutes INT16U * @param message CHAR_STRING * @param optionalExtendedMessageControl MessagingExtendedControlMask @@ -4720,7 +4720,7 @@ /** @brief Command description for MessageConfirmation * * Command: MessageConfirmation - * @param confirmationTime UTC_TIME + * @param confirmationTime UTC * @param messageConfirmationControl BITMAP8 * @param messageResponse OCTET_STRING */ @@ -4743,7 +4743,7 @@ /** @brief Command description for GetMessageCancellation * * Command: GetMessageCancellation - * @param earliestImplementationTime UTC_TIME + * @param earliestImplementationTime UTC */ #define emberAfFillCommandMessagingClusterGetMessageCancellation(earliestImplementationTime) \ emberAfFillExternalBuffer(mask, \ @@ -4754,7 +4754,7 @@ * * Command: DisplayProtectedMessage * @param messageControl MessagingControlMask - * @param startTime UTC_TIME + * @param startTime UTC * @param durationInMinutes INT16U * @param message CHAR_STRING * @param optionalExtendedMessageControl MessagingExtendedControlMask @@ -4769,7 +4769,7 @@ /** @brief Command description for CancelAllMessages * * Command: CancelAllMessages - * @param implementationDateTime UTC_TIME + * @param implementationDateTime UTC */ #define emberAfFillCommandMessagingClusterCancelAllMessages(implementationDateTime) \ emberAfFillExternalBuffer(mask, \ diff --git a/src/app/common/templates/templates.json b/src/app/common/templates/templates.json index 663085f33744d8..63ed2b78d09f81 100644 --- a/src/app/common/templates/templates.json +++ b/src/app/common/templates/templates.json @@ -4,6 +4,7 @@ "helpers": [ "../../zap-templates/partials/helper.js", "../../zap-templates/common/StringHelper.js", + "../../zap-templates/common/attributes/Accessors.js", "../../zap-templates/templates/app/helper.js", "../../zap-templates/templates/chip/helper.js" ], @@ -70,6 +71,16 @@ "name": "ZCL print-cluster header", "output": "src/app/common/gen/print-cluster.h" }, + { + "path": "../../zap-templates/templates/app/attributes/Accessors.zapt", + "name": "Attributes Accessors header", + "output": "src/app/common/gen/attributes/Accessors.h" + }, + { + "path": "../../zap-templates/templates/app/attributes/Accessors-src.zapt", + "name": "Attributes Accessors", + "output": "src/app/common/gen/attributes/Accessors.cpp" + }, { "path": "../../zap-templates/templates/app/ids/Attributes.zapt", "name": "Attributes Ids header", diff --git a/src/app/zap-templates/common/StructHelper.js b/src/app/zap-templates/common/StructHelper.js new file mode 100644 index 00000000000000..8e37a6ba056295 --- /dev/null +++ b/src/app/zap-templates/common/StructHelper.js @@ -0,0 +1,28 @@ +/* + * + * Copyright (c) 2021 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. + */ + +const kType = 'STRUCT'; + +function isStruct(type) +{ + return type.toUpperCase() == kType; +} + +// +// Module exports +// +exports.isStruct = isStruct; diff --git a/src/app/zap-templates/common/attributes/Accessors.js b/src/app/zap-templates/common/attributes/Accessors.js new file mode 100644 index 00000000000000..5f5937f19cc0af --- /dev/null +++ b/src/app/zap-templates/common/attributes/Accessors.js @@ -0,0 +1,56 @@ +/* + * + * Copyright (c) 2021 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. + */ + +const ListHelper = require('../../common/ListHelper.js'); +const StringHelper = require('../../common/StringHelper.js'); +const StructHelper = require('../../common/StructHelper.js'); + +// Issue #8202 +// The specification allow non-standard signed and unsigned integer with a width of 24, 40, 48 or 56, but those types does not have +// proper support yet into the codebase and the resulting generated code can not be built with them. +// Once they are supported, the following method could be removed. +const unsupportedTypes = [ 'INT24S', 'INT40S', 'INT48S', 'INT56S', 'INT24U', 'INT40U', 'INT48U', 'INT56U' ]; +function isUnsupportedType(type) +{ + return unsupportedTypes.includes(type.toUpperCase()); +} + +function canHaveSimpleAccessors(type) +{ + if (StringHelper.isString(type)) { + return false; + } + + if (ListHelper.isList(type)) { + return false; + } + + if (StructHelper.isStruct(type)) { + return false; + } + + if (isUnsupportedType(type)) { + return false; + } + + return true; +} + +// +// Module exports +// +exports.canHaveSimpleAccessors = canHaveSimpleAccessors; diff --git a/src/app/zap-templates/common/override.js b/src/app/zap-templates/common/override.js index ea3c1a99e41508..143ad8880d0313 100644 --- a/src/app/zap-templates/common/override.js +++ b/src/app/zap-templates/common/override.js @@ -46,6 +46,8 @@ function atomicType(arg) case 'octet_string': case 'long_octet_string': return 'chip::ByteSpan'; + case 'eui64': + return 'chip::node_id'; default: throw 'not overriding'; } diff --git a/src/app/zap-templates/templates/app/attributes/Accessors-src.zapt b/src/app/zap-templates/templates/app/attributes/Accessors-src.zapt new file mode 100644 index 00000000000000..634b6a5b9c6628 --- /dev/null +++ b/src/app/zap-templates/templates/app/attributes/Accessors-src.zapt @@ -0,0 +1,50 @@ +{{>header}} + +/** + * @file + * This file contains definitions for accessors around clusters attributes. + */ + +#pragma once + +#include + +#include +#include + +namespace chip { +namespace app { +namespace Clusters { + +{{#zcl_clusters}} +{{#zcl_attributes_server}} +{{#if (hasSpecificAttributes)}} +{{#first}} +namespace {{asUpperCamelCase parent.label}} { +namespace Attributes { +{{/first}} +{{#if clusterRef}} +{{#if (canHaveSimpleAccessors type)}} +EmberAfStatus Get{{asUpperCamelCase label}}(chip::EndpointId endpoint, {{asUnderlyingZclType type}} * {{asLowerCamelCase label}}) +{ + return emberAfReadServerAttribute(endpoint, {{asUpperCamelCase parent.label}}::Id, Ids::{{asUpperCamelCase label}}, (uint8_t *) {{asLowerCamelCase label}}, sizeof(*{{asLowerCamelCase label}})); + +} +EmberAfStatus Set{{asUpperCamelCase label}}(chip::EndpointId endpoint, {{asUnderlyingZclType type}} {{asLowerCamelCase label}}) +{ + return emberAfWriteServerAttribute(endpoint, {{asUpperCamelCase parent.label}}::Id, Ids::{{asUpperCamelCase label}}, (uint8_t *) &{{asLowerCamelCase label}}, ZCL_{{asDelimitedMacro type}}_ATTRIBUTE_TYPE); +} +{{/if}} +{{/if}} +{{#last}} +} // namespace Attributes +} // {{asUpperCamelCase parent.label}} + +{{/last}} +{{/if}} +{{/zcl_attributes_server}} +{{/zcl_clusters}} + +} // Clusters +} // app +} // chip diff --git a/src/app/zap-templates/templates/app/attributes/Accessors.zapt b/src/app/zap-templates/templates/app/attributes/Accessors.zapt new file mode 100644 index 00000000000000..e4e8ee1c3ddddf --- /dev/null +++ b/src/app/zap-templates/templates/app/attributes/Accessors.zapt @@ -0,0 +1,41 @@ +{{>header}} + +/** + * @file + * This file contains declarations for accessors around clusters attributes. + */ + +#pragma once + +#include +#include + +namespace chip { +namespace app { +namespace Clusters { + +{{#zcl_clusters}} +{{#zcl_attributes_server}} +{{#if (hasSpecificAttributes)}} +{{#first}} +namespace {{asUpperCamelCase parent.label}} { +namespace Attributes { +{{/first}} +{{#if clusterRef}} +{{#if (canHaveSimpleAccessors type)}} +EmberAfStatus Get{{asUpperCamelCase label}}(chip::EndpointId endpoint, {{asUnderlyingZclType type}} * {{asLowerCamelCase label}}); // {{type}} {{isArray}} +EmberAfStatus Set{{asUpperCamelCase label}}(chip::EndpointId endpoint, {{asUnderlyingZclType type}} {{asLowerCamelCase label}}); +{{/if}} +{{/if}} +{{#last}} +} // namespace Attributes +} // {{asUpperCamelCase parent.label}} + +{{/last}} +{{/if}} +{{/zcl_attributes_server}} +{{/zcl_clusters}} + +} // Clusters +} // app +} // chip diff --git a/src/app/zap-templates/templates/app/ids/Attributes.zapt b/src/app/zap-templates/templates/app/ids/Attributes.zapt index 7fabae1fc786bc..6a3901f4b70e57 100644 --- a/src/app/zap-templates/templates/app/ids/Attributes.zapt +++ b/src/app/zap-templates/templates/app/ids/Attributes.zapt @@ -9,13 +9,11 @@ namespace Clusters { namespace Globals { namespace Attributes { namespace Ids { -{{#zcl_attributes}} -{{#if (isServer side)}} +{{#zcl_attributes_server}} {{#unless clusterRef}} static constexpr AttributeId {{asUpperCamelCase label}} = {{asHex code 4}}; {{/unless}} -{{/if}} -{{/zcl_attributes}} +{{/zcl_attributes_server}} } // namespace Ids } // namespace Attributes } // namespace Globals diff --git a/src/app/zap-templates/zcl/data-model/chip/diagnostic-logs-cluster.xml b/src/app/zap-templates/zcl/data-model/chip/diagnostic-logs-cluster.xml index 89db19d93bfab8..6ee8ec6e663b48 100644 --- a/src/app/zap-templates/zcl/data-model/chip/diagnostic-logs-cluster.xml +++ b/src/app/zap-templates/zcl/data-model/chip/diagnostic-logs-cluster.xml @@ -50,7 +50,7 @@ limitations under the License. Response to the RetrieveLogsRequest - + diff --git a/src/app/zap-templates/zcl/data-model/silabs/ami.xml b/src/app/zap-templates/zcl/data-model/silabs/ami.xml index d2ba0e57653bf3..9df7328e3572d6 100644 --- a/src/app/zap-templates/zcl/data-model/silabs/ami.xml +++ b/src/app/zap-templates/zcl/data-model/silabs/ami.xml @@ -77,7 +77,7 @@ limitations under the License. - + @@ -95,7 +95,7 @@ limitations under the License. - + @@ -104,7 +104,7 @@ limitations under the License. The CancelAllMessages command indicates to a client device that it should cancel all display messages currently held by it. - + @@ -117,7 +117,7 @@ limitations under the License. The Message Confirmation command provides an indication that a Utility Customer has acknowledged and/or accepted the contents of a previously sent message. Enhanced Message Confirmation commands shall contain an answer of 'NO', 'YES' and/or a message confirmation string. - + @@ -125,7 +125,7 @@ limitations under the License. This command initiates the return of the first (and maybe only) Cancel All Messages command held on the associated server, and which has an implementation time equal to or later than the value indicated in the payload. - + diff --git a/src/app/zap-templates/zcl/data-model/silabs/general.xml b/src/app/zap-templates/zcl/data-model/silabs/general.xml index 578bc757d363f9..e0fa27b0a59596 100644 --- a/src/app/zap-templates/zcl/data-model/silabs/general.xml +++ b/src/app/zap-templates/zcl/data-model/silabs/general.xml @@ -389,7 +389,7 @@ limitations under the License. scene valid name support - last configured by + last configured by Add a scene to the scene table. Extension field sets are supported, and are inputed as arrays of the form [[cluster ID] [length] [value0...n] ...] diff --git a/src/app/zap-templates/zcl/data-model/silabs/ha.xml b/src/app/zap-templates/zcl/data-model/silabs/ha.xml index fab7113b9d3bb1..ec335aab92acd1 100644 --- a/src/app/zap-templates/zcl/data-model/silabs/ha.xml +++ b/src/app/zap-templates/zcl/data-model/silabs/ha.xml @@ -90,7 +90,7 @@ limitations under the License. hvac relay state setpoint change source setpoint change amount - setpoint change source timestamp + setpoint change source timestamp ac type ac capacity ac refrigerant type @@ -505,13 +505,13 @@ limitations under the License. true true - measured value + measured value - min measured value + min measured value - max measured value + max measured value - tolerance + tolerance @@ -523,13 +523,13 @@ limitations under the License. true true - measured value + measured value - min measured value + min measured value - max measured value + max measured value - tolerance + tolerance @@ -541,13 +541,13 @@ limitations under the License. true true - measured value + measured value - min measured value + min measured value - max measured value + max measured value - tolerance + tolerance @@ -559,13 +559,13 @@ limitations under the License. true true - measured value + measured value - min measured value + min measured value - max measured value + max measured value - tolerance + tolerance @@ -577,13 +577,13 @@ limitations under the License. true true - measured value + measured value - min measured value + min measured value - max measured value + max measured value - tolerance + tolerance @@ -595,13 +595,13 @@ limitations under the License. true true - measured value + measured value - min measured value + min measured value - max measured value + max measured value - tolerance + tolerance @@ -613,13 +613,13 @@ limitations under the License. true true - measured value + measured value - min measured value + min measured value - max measured value + max measured value - tolerance + tolerance @@ -631,13 +631,13 @@ limitations under the License. true true - measured value + measured value - min measured value + min measured value - max measured value + max measured value - tolerance + tolerance @@ -649,13 +649,13 @@ limitations under the License. true true - measured value + measured value - min measured value + min measured value - max measured value + max measured value - tolerance + tolerance @@ -667,13 +667,13 @@ limitations under the License. true true - measured value + measured value - min measured value + min measured value - max measured value + max measured value - tolerance + tolerance @@ -685,13 +685,13 @@ limitations under the License. true true - measured value + measured value - min measured value + min measured value - max measured value + max measured value - tolerance + tolerance @@ -703,13 +703,13 @@ limitations under the License. true true - measured value + measured value - min measured value + min measured value - max measured value + max measured value - tolerance + tolerance @@ -721,13 +721,13 @@ limitations under the License. true true - measured value + measured value - min measured value + min measured value - max measured value + max measured value - tolerance + tolerance @@ -739,13 +739,13 @@ limitations under the License. true true - measured value + measured value - min measured value + min measured value - max measured value + max measured value - tolerance + tolerance @@ -757,13 +757,13 @@ limitations under the License. true true - measured value + measured value - min measured value + min measured value - max measured value + max measured value - tolerance + tolerance @@ -775,13 +775,13 @@ limitations under the License. true true - measured value + measured value - min measured value + min measured value - max measured value + max measured value - tolerance + tolerance @@ -793,13 +793,13 @@ limitations under the License. true true - measured value + measured value - min measured value + min measured value - max measured value + max measured value - tolerance + tolerance @@ -811,13 +811,13 @@ limitations under the License. true true - measured value + measured value - min measured value + min measured value - max measured value + max measured value - tolerance + tolerance @@ -829,13 +829,13 @@ limitations under the License. true true - measured value + measured value - min measured value + min measured value - max measured value + max measured value - tolerance + tolerance @@ -847,13 +847,13 @@ limitations under the License. true true - measured value + measured value - min measured value + min measured value - max measured value + max measured value - tolerance + tolerance @@ -865,13 +865,13 @@ limitations under the License. true true - measured value + measured value - min measured value + min measured value - max measured value + max measured value - tolerance + tolerance @@ -883,13 +883,13 @@ limitations under the License. true true - measured value + measured value - min measured value + min measured value - max measured value + max measured value - tolerance + tolerance @@ -901,13 +901,13 @@ limitations under the License. true true - measured value + measured value - min measured value + min measured value - max measured value + max measured value - tolerance + tolerance @@ -919,13 +919,13 @@ limitations under the License. true true - measured value + measured value - min measured value + min measured value - max measured value + max measured value - tolerance + tolerance @@ -937,13 +937,13 @@ limitations under the License. true true - measured value + measured value - min measured value + min measured value - max measured value + max measured value - tolerance + tolerance @@ -955,13 +955,13 @@ limitations under the License. true true - measured value + measured value - min measured value + min measured value - max measured value + max measured value - tolerance + tolerance @@ -973,13 +973,13 @@ limitations under the License. true true - measured value + measured value - min measured value + min measured value - max measured value + max measured value - tolerance + tolerance @@ -991,13 +991,13 @@ limitations under the License. true true - measured value + measured value - min measured value + min measured value - max measured value + max measured value - tolerance + tolerance @@ -1009,13 +1009,13 @@ limitations under the License. true true - measured value + measured value - min measured value + min measured value - max measured value + max measured value - tolerance + tolerance @@ -1027,13 +1027,13 @@ limitations under the License. true true - measured value + measured value - min measured value + min measured value - max measured value + max measured value - tolerance + tolerance