From 3357131feac0f34099a4aa842cde9d0b5adb2213 Mon Sep 17 00:00:00 2001 From: Jerry Johns Date: Thu, 28 Oct 2021 15:02:50 -0700 Subject: [PATCH] Split CHIPClusters.cpp to speed up compilation. (#11091) * Split CHIPClusters.cpp This splits up CHIPClusters.cpp into a couple of different files: - CHIPClusters.cpp contains no template specialized methods. - CHIPClustersInvoke.cpp contains all template specialized methods for invoking commands. - CHIPClustersWrite.cpp contains all template specialized methods for doing writes. This resulted in a speed-up of about 30s (from 1m50s to 1m20s) when doing an incremental compilation of chip-tool after touching CHIPClusters.cpp. It does this by better leveraging -jX builds to parallelize compilation. More importantly, this might also provide a pattern for others (like Android) that is running into OOM issues with clang compiling CHIPClusters.cpp. * Apply suggestions from code review Co-authored-by: Boris Zbarsky * Fix regen breakaga * Address review feedback Co-authored-by: Justin Wood Co-authored-by: Boris Zbarsky --- src/app/chip_data_model.gni | 2 + src/app/zap-templates/app-templates.json | 10 + .../templates/app/CHIPClusters-src.zapt | 70 - .../templates/app/CHIPClustersInvoke-src.zapt | 47 + .../templates/app/CHIPClustersWrite-src.zapt | 57 + .../zap-generated/CHIPClustersInvoke.cpp | 18 + .../zap-generated/CHIPClustersWrite.cpp | 18 + .../zap-generated/CHIPClustersInvoke.cpp | 18 + .../zap-generated/CHIPClustersWrite.cpp | 18 + .../zap-generated/CHIPClusters.cpp | 1334 ----------------- .../zap-generated/CHIPClustersInvoke.cpp | 1034 +++++++++++++ .../zap-generated/CHIPClustersWrite.cpp | 465 ++++++ .../zap-generated/CHIPClusters.cpp | 72 - .../zap-generated/CHIPClustersInvoke.cpp | 53 + .../zap-generated/CHIPClustersWrite.cpp | 74 + .../zap-generated/CHIPClustersInvoke.cpp | 18 + .../zap-generated/CHIPClustersWrite.cpp | 18 + .../zap-generated/CHIPClustersInvoke.cpp | 18 + .../zap-generated/CHIPClustersWrite.cpp | 18 + .../zap-generated/CHIPClusters.cpp | 80 - .../zap-generated/CHIPClustersInvoke.cpp | 73 + .../zap-generated/CHIPClustersWrite.cpp | 62 + .../pump-app/zap-generated/CHIPClusters.cpp | 60 - .../zap-generated/CHIPClustersInvoke.cpp | 53 + .../zap-generated/CHIPClustersWrite.cpp | 66 + .../zap-generated/CHIPClusters.cpp | 120 -- .../zap-generated/CHIPClustersInvoke.cpp | 108 ++ .../zap-generated/CHIPClustersWrite.cpp | 77 + .../zap-generated/CHIPClustersInvoke.cpp | 18 + .../zap-generated/CHIPClustersWrite.cpp | 18 + .../thermostat/zap-generated/CHIPClusters.cpp | 75 - .../zap-generated/CHIPClustersInvoke.cpp | 64 + .../zap-generated/CHIPClustersWrite.cpp | 66 + .../tv-app/zap-generated/CHIPClusters.cpp | 164 -- .../zap-generated/CHIPClustersInvoke.cpp | 153 ++ .../zap-generated/CHIPClustersWrite.cpp | 70 + .../zap-generated/CHIPClustersInvoke.cpp | 18 + .../zap-generated/CHIPClustersWrite.cpp | 18 + .../zap-generated/CHIPClustersInvoke.cpp | 18 + .../zap-generated/CHIPClustersWrite.cpp | 18 + 40 files changed, 2786 insertions(+), 1975 deletions(-) create mode 100644 src/app/zap-templates/templates/app/CHIPClustersInvoke-src.zapt create mode 100644 src/app/zap-templates/templates/app/CHIPClustersWrite-src.zapt create mode 100644 zzz_generated/all-clusters-app/zap-generated/CHIPClustersInvoke.cpp create mode 100644 zzz_generated/all-clusters-app/zap-generated/CHIPClustersWrite.cpp create mode 100644 zzz_generated/bridge-app/zap-generated/CHIPClustersInvoke.cpp create mode 100644 zzz_generated/bridge-app/zap-generated/CHIPClustersWrite.cpp create mode 100644 zzz_generated/controller-clusters/zap-generated/CHIPClustersInvoke.cpp create mode 100644 zzz_generated/controller-clusters/zap-generated/CHIPClustersWrite.cpp create mode 100644 zzz_generated/lighting-app/zap-generated/CHIPClustersInvoke.cpp create mode 100644 zzz_generated/lighting-app/zap-generated/CHIPClustersWrite.cpp create mode 100644 zzz_generated/lock-app/zap-generated/CHIPClustersInvoke.cpp create mode 100644 zzz_generated/lock-app/zap-generated/CHIPClustersWrite.cpp create mode 100644 zzz_generated/ota-provider-app/zap-generated/CHIPClustersInvoke.cpp create mode 100644 zzz_generated/ota-provider-app/zap-generated/CHIPClustersWrite.cpp create mode 100644 zzz_generated/ota-requestor-app/zap-generated/CHIPClustersInvoke.cpp create mode 100644 zzz_generated/ota-requestor-app/zap-generated/CHIPClustersWrite.cpp create mode 100644 zzz_generated/pump-app/zap-generated/CHIPClustersInvoke.cpp create mode 100644 zzz_generated/pump-app/zap-generated/CHIPClustersWrite.cpp create mode 100644 zzz_generated/pump-controller-app/zap-generated/CHIPClustersInvoke.cpp create mode 100644 zzz_generated/pump-controller-app/zap-generated/CHIPClustersWrite.cpp create mode 100644 zzz_generated/temperature-measurement-app/zap-generated/CHIPClustersInvoke.cpp create mode 100644 zzz_generated/temperature-measurement-app/zap-generated/CHIPClustersWrite.cpp create mode 100644 zzz_generated/thermostat/zap-generated/CHIPClustersInvoke.cpp create mode 100644 zzz_generated/thermostat/zap-generated/CHIPClustersWrite.cpp create mode 100644 zzz_generated/tv-app/zap-generated/CHIPClustersInvoke.cpp create mode 100644 zzz_generated/tv-app/zap-generated/CHIPClustersWrite.cpp create mode 100644 zzz_generated/tv-casting-app/zap-generated/CHIPClustersInvoke.cpp create mode 100644 zzz_generated/tv-casting-app/zap-generated/CHIPClustersWrite.cpp create mode 100644 zzz_generated/window-app/zap-generated/CHIPClustersInvoke.cpp create mode 100644 zzz_generated/window-app/zap-generated/CHIPClustersWrite.cpp diff --git a/src/app/chip_data_model.gni b/src/app/chip_data_model.gni index 3a70096d21aa2b..3191084bd0008c 100644 --- a/src/app/chip_data_model.gni +++ b/src/app/chip_data_model.gni @@ -151,6 +151,8 @@ template("chip_data_model") { sources += [ "${invoker.zap_pregenerated_dir}/CHIPClusters.cpp", "${invoker.zap_pregenerated_dir}/CHIPClusters.h", + "${invoker.zap_pregenerated_dir}/CHIPClustersInvoke.cpp", + "${invoker.zap_pregenerated_dir}/CHIPClustersWrite.cpp", "${invoker.zap_pregenerated_dir}/attribute-size.cpp", "${invoker.zap_pregenerated_dir}/callback-stub.cpp", ] diff --git a/src/app/zap-templates/app-templates.json b/src/app/zap-templates/app-templates.json index c2520049e329dd..a63053e4b6a09b 100644 --- a/src/app/zap-templates/app-templates.json +++ b/src/app/zap-templates/app-templates.json @@ -83,6 +83,16 @@ "path": "templates/app/CHIPClusters-src.zapt", "name": "C++ ZCL API", "output": "CHIPClusters.cpp" + }, + { + "path": "templates/app/CHIPClustersInvoke-src.zapt", + "name": "C++ ZCL Invoke API", + "output": "CHIPClustersInvoke.cpp" + }, + { + "path": "templates/app/CHIPClustersWrite-src.zapt", + "name": "C++ ZCL Write API", + "output": "CHIPClustersWrite.cpp" } ] } diff --git a/src/app/zap-templates/templates/app/CHIPClusters-src.zapt b/src/app/zap-templates/templates/app/CHIPClusters-src.zapt index 612a993d049ba8..1af790e17a55c9 100644 --- a/src/app/zap-templates/templates/app/CHIPClusters-src.zapt +++ b/src/app/zap-templates/templates/app/CHIPClusters-src.zapt @@ -3,23 +3,7 @@ {{#if (chip_has_client_clusters)}} #include "CHIPClusters.h" -#include - - -#include -#include -#include -#include -#include #include -#include -#include -#include -#include -#include -#include -#include -#include #include namespace chip { @@ -100,10 +84,6 @@ CHIP_ERROR {{asUpperCamelCase parent.name}}Cluster::ReadAttribute{{asUpperCamelC } {{#if isWritableAttribute}} -{{#*inline "attributeTypeInfo"}}chip::app::Clusters::{{asUpperCamelCase parent.name}}::Attributes::{{asUpperCamelCase name}}::TypeInfo{{/inline}} -template CHIP_ERROR ClusterBase::WriteAttribute<{{>attributeTypeInfo}}>(const {{>attributeTypeInfo}}::Type & requestData, void *context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - CHIP_ERROR {{asUpperCamelCase parent.name}}Cluster::WriteAttribute{{asUpperCamelCase name}}(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, {{chipType}} value) { app::WriteClientHandle handle; @@ -132,58 +112,8 @@ CHIP_ERROR {{asUpperCamelCase parent.name}}Cluster::ReportAttribute{{asUpperCame {{/if}} {{/chip_server_cluster_attributes}} -{{#chip_cluster_commands}} -{{#*inline "requestType"}}chip::app::Clusters::{{asUpperCamelCase parent.name}}::Commands::{{asUpperCamelCase name}}::Type{{/inline}} -{{#*inline "responseType"}}chip::app::{{#if hasSpecificResponse}}Clusters::{{asUpperCamelCase parent.name}}::Commands::{{asUpperCamelCase response.name}}::DecodableType{{else}}DataModel::NullObjectType{{/if}}{{/inline}} -template CHIP_ERROR ClusterBase::InvokeCommand<{{>requestType}}, {{>responseType}}>(const {{>requestType}} &, void *, CommandResponseSuccessCallback<{{>responseType}}>, CommandResponseFailureCallback); -{{/chip_cluster_commands}} {{/chip_client_clusters}} -template -CHIP_ERROR ClusterBase::InvokeCommand(const RequestDataT & requestData, void * context, - CommandResponseSuccessCallback successCb, CommandResponseFailureCallback failureCb) -{ - VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); - ReturnErrorOnFailure(mDevice->LoadSecureSessionParametersIfNeeded()); - - auto onSuccessCb = [context, successCb](const app::ConcreteCommandPath & commandPath, const app::StatusIB & aStatus, const ResponseDataT & responseData) { - successCb(context, responseData); - }; - - auto onFailureCb = [context, failureCb](const app::StatusIB & aStatus, CHIP_ERROR aError) { - failureCb(context, app::ToEmberAfStatus(aStatus.mStatus)); - }; - - return InvokeCommandRequest(mDevice->GetExchangeManager(), mDevice->GetSecureSession().Value(), mEndpoint, - requestData, onSuccessCb, onFailureCb); -}; - -template -CHIP_ERROR ClusterBase::WriteAttribute(const typename AttributeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb) -{ - VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); - ReturnErrorOnFailure(mDevice->LoadSecureSessionParametersIfNeeded()); - - auto onSuccessCb = [context, successCb](const app::ConcreteAttributePath & commandPath) { - if (successCb != nullptr) - { - successCb(context); - } - }; - - auto onFailureCb = [context, failureCb](const app::ConcreteAttributePath * commandPath, - app::StatusIB status, CHIP_ERROR aError) { - if (failureCb != nullptr) - { - failureCb(context, app::ToEmberAfStatus(status.mStatus)); - } - }; - - return chip::Controller::WriteAttribute(mDevice->GetExchangeManager(), mDevice->GetSecureSession().Value(), mEndpoint, - requestData, onSuccessCb, onFailureCb); -} - } // namespace Controller } // namespace chip {{/if}} diff --git a/src/app/zap-templates/templates/app/CHIPClustersInvoke-src.zapt b/src/app/zap-templates/templates/app/CHIPClustersInvoke-src.zapt new file mode 100644 index 00000000000000..73a706135f0071 --- /dev/null +++ b/src/app/zap-templates/templates/app/CHIPClustersInvoke-src.zapt @@ -0,0 +1,47 @@ +{{> header}} + +{{#if (chip_has_client_clusters)}} +#include "CHIPClusters.h" + +#include +#include + +namespace chip { + +using namespace app::Clusters; +using namespace System; +using namespace Encoding::LittleEndian; + +namespace Controller { + +{{#chip_client_clusters}} + +{{#chip_cluster_commands}} +{{#*inline "requestType"}}chip::app::Clusters::{{asUpperCamelCase parent.name}}::Commands::{{asUpperCamelCase name}}::Type{{/inline}} +{{#*inline "responseType"}}chip::app::{{#if hasSpecificResponse}}Clusters::{{asUpperCamelCase parent.name}}::Commands::{{asUpperCamelCase response.name}}::DecodableType{{else}}DataModel::NullObjectType{{/if}}{{/inline}} +template CHIP_ERROR ClusterBase::InvokeCommand<{{>requestType}}, {{>responseType}}>(const {{>requestType}} &, void *, CommandResponseSuccessCallback<{{>responseType}}>, CommandResponseFailureCallback); +{{/chip_cluster_commands}} +{{/chip_client_clusters}} + +template +CHIP_ERROR ClusterBase::InvokeCommand(const RequestDataT & requestData, void * context, + CommandResponseSuccessCallback successCb, CommandResponseFailureCallback failureCb) +{ + VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); + ReturnErrorOnFailure(mDevice->LoadSecureSessionParametersIfNeeded()); + + auto onSuccessCb = [context, successCb](const app::ConcreteCommandPath & commandPath, const app::StatusIB & aStatus, const ResponseDataT & responseData) { + successCb(context, responseData); + }; + + auto onFailureCb = [context, failureCb](const app::StatusIB & aStatus, CHIP_ERROR aError) { + failureCb(context, app::ToEmberAfStatus(aStatus.mStatus)); + }; + + return InvokeCommandRequest(mDevice->GetExchangeManager(), mDevice->GetSecureSession().Value(), mEndpoint, + requestData, onSuccessCb, onFailureCb); +}; + +} // namespace Controller +} // namespace chip +{{/if}} diff --git a/src/app/zap-templates/templates/app/CHIPClustersWrite-src.zapt b/src/app/zap-templates/templates/app/CHIPClustersWrite-src.zapt new file mode 100644 index 00000000000000..efd19d6928f312 --- /dev/null +++ b/src/app/zap-templates/templates/app/CHIPClustersWrite-src.zapt @@ -0,0 +1,57 @@ +{{> header}} + +{{#if (chip_has_client_clusters)}} +#include "CHIPClusters.h" + +#include +#include + +namespace chip { + +using namespace app::Clusters; +using namespace System; +using namespace Encoding::LittleEndian; + +namespace Controller { + +{{#chip_client_clusters}} + +// {{asUpperCamelCase name}} Cluster Attributes +{{#chip_server_cluster_attributes}} +{{#if isWritableAttribute}} +{{#*inline "attributeTypeInfo"}}chip::app::Clusters::{{asUpperCamelCase parent.name}}::Attributes::{{asUpperCamelCase name}}::TypeInfo{{/inline}} +template CHIP_ERROR ClusterBase::WriteAttribute<{{>attributeTypeInfo}}>(const {{>attributeTypeInfo}}::Type & requestData, void *context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); +{{/if}} +{{/chip_server_cluster_attributes}} +{{/chip_client_clusters}} + +template +CHIP_ERROR ClusterBase::WriteAttribute(const typename AttributeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb) +{ + VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); + ReturnErrorOnFailure(mDevice->LoadSecureSessionParametersIfNeeded()); + + auto onSuccessCb = [context, successCb](const app::ConcreteAttributePath & commandPath) { + if (successCb != nullptr) + { + successCb(context); + } + }; + + auto onFailureCb = [context, failureCb](const app::ConcreteAttributePath * commandPath, + app::StatusIB status, CHIP_ERROR aError) { + if (failureCb != nullptr) + { + failureCb(context, app::ToEmberAfStatus(status.mStatus)); + } + }; + + return chip::Controller::WriteAttribute(mDevice->GetExchangeManager(), mDevice->GetSecureSession().Value(), mEndpoint, + requestData, onSuccessCb, onFailureCb); +} + +} // namespace Controller +} // namespace chip +{{/if}} diff --git a/zzz_generated/all-clusters-app/zap-generated/CHIPClustersInvoke.cpp b/zzz_generated/all-clusters-app/zap-generated/CHIPClustersInvoke.cpp new file mode 100644 index 00000000000000..759d13c5028d26 --- /dev/null +++ b/zzz_generated/all-clusters-app/zap-generated/CHIPClustersInvoke.cpp @@ -0,0 +1,18 @@ +/* + * + * 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 diff --git a/zzz_generated/all-clusters-app/zap-generated/CHIPClustersWrite.cpp b/zzz_generated/all-clusters-app/zap-generated/CHIPClustersWrite.cpp new file mode 100644 index 00000000000000..759d13c5028d26 --- /dev/null +++ b/zzz_generated/all-clusters-app/zap-generated/CHIPClustersWrite.cpp @@ -0,0 +1,18 @@ +/* + * + * 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 diff --git a/zzz_generated/bridge-app/zap-generated/CHIPClustersInvoke.cpp b/zzz_generated/bridge-app/zap-generated/CHIPClustersInvoke.cpp new file mode 100644 index 00000000000000..759d13c5028d26 --- /dev/null +++ b/zzz_generated/bridge-app/zap-generated/CHIPClustersInvoke.cpp @@ -0,0 +1,18 @@ +/* + * + * 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 diff --git a/zzz_generated/bridge-app/zap-generated/CHIPClustersWrite.cpp b/zzz_generated/bridge-app/zap-generated/CHIPClustersWrite.cpp new file mode 100644 index 00000000000000..759d13c5028d26 --- /dev/null +++ b/zzz_generated/bridge-app/zap-generated/CHIPClustersWrite.cpp @@ -0,0 +1,18 @@ +/* + * + * 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 diff --git a/zzz_generated/controller-clusters/zap-generated/CHIPClusters.cpp b/zzz_generated/controller-clusters/zap-generated/CHIPClusters.cpp index 07a295687e76d5..68128b1b74d539 100644 --- a/zzz_generated/controller-clusters/zap-generated/CHIPClusters.cpp +++ b/zzz_generated/controller-clusters/zap-generated/CHIPClusters.cpp @@ -19,22 +19,7 @@ #include "CHIPClusters.h" -#include - -#include #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include #include namespace chip { @@ -147,17 +132,6 @@ CHIP_ERROR AccountLoginCluster::ReadAttributeClusterRevision(Callback::Cancelabl BasicAttributeFilter); } -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::AccountLogin::Commands::GetSetupPIN::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::AccountLogin::Commands::Login::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - // AdministratorCommissioning Cluster Commands CHIP_ERROR AdministratorCommissioningCluster::OpenBasicCommissioningWindow(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, @@ -310,23 +284,6 @@ CHIP_ERROR AdministratorCommissioningCluster::ReadAttributeClusterRevision(Callb BasicAttributeFilter); } -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::AdministratorCommissioning::Commands::OpenBasicCommissioningWindow::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::AdministratorCommissioning::Commands::OpenCommissioningWindow::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::AdministratorCommissioning::Commands::RevokeCommissioning::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - // ApplicationBasic Cluster Commands CHIP_ERROR ApplicationBasicCluster::ChangeStatus(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t status) @@ -466,11 +423,6 @@ CHIP_ERROR ApplicationBasicCluster::ReadAttributeClusterRevision(Callback::Cance BasicAttributeFilter); } -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::ApplicationBasic::Commands::ChangeStatus::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - // ApplicationLauncher Cluster Commands CHIP_ERROR ApplicationLauncherCluster::LaunchApp(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, chip::CharSpan data, uint16_t catalogVendorId, chip::CharSpan applicationId) @@ -566,13 +518,6 @@ CHIP_ERROR ApplicationLauncherCluster::ReadAttributeClusterRevision(Callback::Ca BasicAttributeFilter); } -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::ApplicationLauncher::Commands::LaunchApp::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - // AudioOutput Cluster Commands CHIP_ERROR AudioOutputCluster::RenameOutput(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t index, chip::CharSpan name) @@ -695,16 +640,6 @@ CHIP_ERROR AudioOutputCluster::ReadAttributeClusterRevision(Callback::Cancelable BasicAttributeFilter); } -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::AudioOutput::Commands::RenameOutput::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::AudioOutput::Commands::SelectOutput::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - // BarrierControl Cluster Commands CHIP_ERROR BarrierControlCluster::BarrierControlGoToPercent(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t percentOpen) @@ -848,16 +783,6 @@ CHIP_ERROR BarrierControlCluster::ReadAttributeClusterRevision(Callback::Cancela BasicAttributeFilter); } -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::BarrierControl::Commands::BarrierControlGoToPercent::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::BarrierControl::Commands::BarrierControlStop::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - // Basic Cluster Commands CHIP_ERROR BasicCluster::MfgSpecificPing(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { @@ -966,10 +891,6 @@ CHIP_ERROR BasicCluster::ReadAttributeUserLabel(Callback::Cancelable * onSuccess BasicAttributeFilter); } -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::Basic::Attributes::UserLabel::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - CHIP_ERROR BasicCluster::WriteAttributeUserLabel(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, chip::CharSpan value) { @@ -992,10 +913,6 @@ CHIP_ERROR BasicCluster::ReadAttributeLocation(Callback::Cancelable * onSuccessC BasicAttributeFilter); } -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::Basic::Attributes::Location::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - CHIP_ERROR BasicCluster::WriteAttributeLocation(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, chip::CharSpan value) { @@ -1125,10 +1042,6 @@ CHIP_ERROR BasicCluster::ReadAttributeLocalConfigDisabled(Callback::Cancelable * BasicAttributeFilter); } -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::Basic::Attributes::LocalConfigDisabled::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - CHIP_ERROR BasicCluster::WriteAttributeLocalConfigDisabled(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, bool value) { @@ -1163,11 +1076,6 @@ CHIP_ERROR BasicCluster::ReadAttributeClusterRevision(Callback::Cancelable * onS BasicAttributeFilter); } -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::Basic::Commands::MfgSpecificPing::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - // BinaryInputBasic Cluster Commands // BinaryInputBasic Cluster Attributes CHIP_ERROR BinaryInputBasicCluster::ReadAttributeOutOfService(Callback::Cancelable * onSuccessCallback, @@ -1182,10 +1090,6 @@ CHIP_ERROR BinaryInputBasicCluster::ReadAttributeOutOfService(Callback::Cancelab BasicAttributeFilter); } -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::BinaryInputBasic::Attributes::OutOfService::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - CHIP_ERROR BinaryInputBasicCluster::WriteAttributeOutOfService(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, bool value) { @@ -1209,10 +1113,6 @@ CHIP_ERROR BinaryInputBasicCluster::ReadAttributePresentValue(Callback::Cancelab BasicAttributeFilter); } -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::BinaryInputBasic::Attributes::PresentValue::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - CHIP_ERROR BinaryInputBasicCluster::WriteAttributePresentValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, bool value) { @@ -1393,16 +1293,6 @@ CHIP_ERROR BindingCluster::ReadAttributeClusterRevision(Callback::Cancelable * o BasicAttributeFilter); } -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::Binding::Commands::Bind::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::Binding::Commands::Unbind::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - // BooleanState Cluster Commands // BooleanState Cluster Attributes CHIP_ERROR BooleanStateCluster::ReadAttributeStateValue(Callback::Cancelable * onSuccessCallback, @@ -2033,66 +1923,6 @@ CHIP_ERROR BridgedActionsCluster::ReadAttributeClusterRevision(Callback::Cancela BasicAttributeFilter); } -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::BridgedActions::Commands::DisableAction::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::BridgedActions::Commands::DisableActionWithDuration::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::BridgedActions::Commands::EnableAction::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::BridgedActions::Commands::EnableActionWithDuration::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::BridgedActions::Commands::InstantAction::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::BridgedActions::Commands::InstantActionWithTransition::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::BridgedActions::Commands::PauseAction::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::BridgedActions::Commands::PauseActionWithDuration::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::BridgedActions::Commands::ResumeAction::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::BridgedActions::Commands::StartAction::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::BridgedActions::Commands::StartActionWithDuration::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::BridgedActions::Commands::StopAction::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - // BridgedDeviceBasic Cluster Commands // BridgedDeviceBasic Cluster Attributes CHIP_ERROR BridgedDeviceBasicCluster::ReadAttributeVendorName(Callback::Cancelable * onSuccessCallback, @@ -2143,10 +1973,6 @@ CHIP_ERROR BridgedDeviceBasicCluster::ReadAttributeUserLabel(Callback::Cancelabl BasicAttributeFilter); } -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::BridgedDeviceBasic::Attributes::UserLabel::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - CHIP_ERROR BridgedDeviceBasicCluster::WriteAttributeUserLabel(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, chip::CharSpan value) { @@ -3445,10 +3271,6 @@ CHIP_ERROR ColorControlCluster::ReadAttributeColorControlOptions(Callback::Cance BasicAttributeFilter); } -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ColorControl::Attributes::ColorControlOptions::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - CHIP_ERROR ColorControlCluster::WriteAttributeColorControlOptions(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) { @@ -3700,10 +3522,6 @@ CHIP_ERROR ColorControlCluster::ReadAttributeWhitePointX(Callback::Cancelable * BasicAttributeFilter); } -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ColorControl::Attributes::WhitePointX::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - CHIP_ERROR ColorControlCluster::WriteAttributeWhitePointX(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -3727,10 +3545,6 @@ CHIP_ERROR ColorControlCluster::ReadAttributeWhitePointY(Callback::Cancelable * BasicAttributeFilter); } -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ColorControl::Attributes::WhitePointY::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - CHIP_ERROR ColorControlCluster::WriteAttributeWhitePointY(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -3754,10 +3568,6 @@ CHIP_ERROR ColorControlCluster::ReadAttributeColorPointRX(Callback::Cancelable * BasicAttributeFilter); } -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ColorControl::Attributes::ColorPointRX::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - CHIP_ERROR ColorControlCluster::WriteAttributeColorPointRX(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -3781,10 +3591,6 @@ CHIP_ERROR ColorControlCluster::ReadAttributeColorPointRY(Callback::Cancelable * BasicAttributeFilter); } -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ColorControl::Attributes::ColorPointRY::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - CHIP_ERROR ColorControlCluster::WriteAttributeColorPointRY(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -3808,10 +3614,6 @@ CHIP_ERROR ColorControlCluster::ReadAttributeColorPointRIntensity(Callback::Canc BasicAttributeFilter); } -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ColorControl::Attributes::ColorPointRIntensity::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - CHIP_ERROR ColorControlCluster::WriteAttributeColorPointRIntensity(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) { @@ -3835,10 +3637,6 @@ CHIP_ERROR ColorControlCluster::ReadAttributeColorPointGX(Callback::Cancelable * BasicAttributeFilter); } -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ColorControl::Attributes::ColorPointGX::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - CHIP_ERROR ColorControlCluster::WriteAttributeColorPointGX(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -3862,10 +3660,6 @@ CHIP_ERROR ColorControlCluster::ReadAttributeColorPointGY(Callback::Cancelable * BasicAttributeFilter); } -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ColorControl::Attributes::ColorPointGY::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - CHIP_ERROR ColorControlCluster::WriteAttributeColorPointGY(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -3889,10 +3683,6 @@ CHIP_ERROR ColorControlCluster::ReadAttributeColorPointGIntensity(Callback::Canc BasicAttributeFilter); } -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ColorControl::Attributes::ColorPointGIntensity::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - CHIP_ERROR ColorControlCluster::WriteAttributeColorPointGIntensity(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) { @@ -3916,10 +3706,6 @@ CHIP_ERROR ColorControlCluster::ReadAttributeColorPointBX(Callback::Cancelable * BasicAttributeFilter); } -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ColorControl::Attributes::ColorPointBX::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - CHIP_ERROR ColorControlCluster::WriteAttributeColorPointBX(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -3943,10 +3729,6 @@ CHIP_ERROR ColorControlCluster::ReadAttributeColorPointBY(Callback::Cancelable * BasicAttributeFilter); } -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ColorControl::Attributes::ColorPointBY::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - CHIP_ERROR ColorControlCluster::WriteAttributeColorPointBY(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -3970,10 +3752,6 @@ CHIP_ERROR ColorControlCluster::ReadAttributeColorPointBIntensity(Callback::Canc BasicAttributeFilter); } -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::ColorControl::Attributes::ColorPointBIntensity::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - CHIP_ERROR ColorControlCluster::WriteAttributeColorPointBIntensity(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) { @@ -4129,11 +3907,6 @@ CHIP_ERROR ColorControlCluster::ReadAttributeStartUpColorTemperatureMireds(Callb BasicAttributeFilter); } -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::ColorControl::Attributes::StartUpColorTemperatureMireds::TypeInfo::Type & requestData, - void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - CHIP_ERROR ColorControlCluster::WriteAttributeStartUpColorTemperatureMireds(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) @@ -4158,101 +3931,6 @@ CHIP_ERROR ColorControlCluster::ReadAttributeClusterRevision(Callback::Cancelabl BasicAttributeFilter); } -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::ColorControl::Commands::EnhancedMoveHue::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::ColorControl::Commands::EnhancedMoveToHue::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::ColorControl::Commands::EnhancedMoveToHueAndSaturation::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::ColorControl::Commands::EnhancedStepHue::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::ColorControl::Commands::MoveColor::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::ColorControl::Commands::MoveColorTemperature::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::ColorControl::Commands::MoveHue::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::ColorControl::Commands::MoveSaturation::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::ColorControl::Commands::MoveToColor::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::ColorControl::Commands::MoveToColorTemperature::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::ColorControl::Commands::MoveToHue::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::ColorControl::Commands::MoveToHueAndSaturation::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::ColorControl::Commands::MoveToSaturation::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::ColorControl::Commands::StepColor::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::ColorControl::Commands::StepColorTemperature::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::ColorControl::Commands::StepHue::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::ColorControl::Commands::StepSaturation::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::ColorControl::Commands::StopMoveStep::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - // ContentLauncher Cluster Commands CHIP_ERROR ContentLauncherCluster::LaunchContent(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, bool autoPlay, chip::CharSpan data) @@ -4377,19 +4055,6 @@ CHIP_ERROR ContentLauncherCluster::ReadAttributeClusterRevision(Callback::Cancel BasicAttributeFilter); } -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::ContentLauncher::Commands::LaunchContent::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::ContentLauncher::Commands::LaunchURL::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - // Descriptor Cluster Commands // Descriptor Cluster Attributes CHIP_ERROR DescriptorCluster::ReadAttributeDeviceList(Callback::Cancelable * onSuccessCallback, @@ -4501,12 +4166,6 @@ CHIP_ERROR DiagnosticLogsCluster::RetrieveLogsRequest(Callback::Cancelable * onS // DiagnosticLogs Cluster Attributes -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::DiagnosticLogs::Commands::RetrieveLogsRequest::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - // DoorLock Cluster Commands CHIP_ERROR DoorLockCluster::ClearAllPins(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { @@ -5562,147 +5221,6 @@ CHIP_ERROR DoorLockCluster::ReadAttributeClusterRevision(Callback::Cancelable * BasicAttributeFilter); } -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::DoorLock::Commands::ClearAllPins::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::DoorLock::Commands::ClearAllRfids::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::DoorLock::Commands::ClearHolidaySchedule::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::DoorLock::Commands::ClearPin::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::DoorLock::Commands::ClearRfid::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::DoorLock::Commands::ClearWeekdaySchedule::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::DoorLock::Commands::ClearYeardaySchedule::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::DoorLock::Commands::GetHolidaySchedule::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::DoorLock::Commands::GetLogRecord::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::DoorLock::Commands::GetPin::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::DoorLock::Commands::GetRfid::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::DoorLock::Commands::GetUserType::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::DoorLock::Commands::GetWeekdaySchedule::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::DoorLock::Commands::GetYeardaySchedule::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::DoorLock::Commands::LockDoor::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::DoorLock::Commands::SetHolidaySchedule::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::DoorLock::Commands::SetPin::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::DoorLock::Commands::SetRfid::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::DoorLock::Commands::SetUserType::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::DoorLock::Commands::SetWeekdaySchedule::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::DoorLock::Commands::SetYeardaySchedule::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::DoorLock::Commands::UnlockDoor::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::DoorLock::Commands::UnlockWithTimeout::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - // ElectricalMeasurement Cluster Commands // ElectricalMeasurement Cluster Attributes CHIP_ERROR ElectricalMeasurementCluster::ReadAttributeMeasurementType(Callback::Cancelable * onSuccessCallback, @@ -6011,11 +5529,6 @@ CHIP_ERROR EthernetNetworkDiagnosticsCluster::ReadAttributeClusterRevision(Callb BasicAttributeFilter); } -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::EthernetNetworkDiagnostics::Commands::ResetCounts::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - // FixedLabel Cluster Commands // FixedLabel Cluster Attributes CHIP_ERROR FixedLabelCluster::ReadAttributeLabelList(Callback::Cancelable * onSuccessCallback, @@ -6253,10 +5766,6 @@ CHIP_ERROR GeneralCommissioningCluster::ReadAttributeBreadcrumb(Callback::Cancel BasicAttributeFilter); } -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::GeneralCommissioning::Attributes::Breadcrumb::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - CHIP_ERROR GeneralCommissioningCluster::WriteAttributeBreadcrumb(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint64_t value) { @@ -6292,28 +5801,6 @@ CHIP_ERROR GeneralCommissioningCluster::ReadAttributeClusterRevision(Callback::C BasicAttributeFilter); } -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::GeneralCommissioning::Commands::ArmFailSafe::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::GeneralCommissioning::Commands::CommissioningComplete::Type &, void *, - CommandResponseSuccessCallback< - chip::app::Clusters::GeneralCommissioning::Commands::CommissioningCompleteResponse::DecodableType>, - CommandResponseFailureCallback); - -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::GeneralCommissioning::Commands::SetRegulatoryConfig::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - // GeneralDiagnostics Cluster Commands // GeneralDiagnostics Cluster Attributes CHIP_ERROR GeneralDiagnosticsCluster::ReadAttributeNetworkInterfaces(Callback::Cancelable * onSuccessCallback, @@ -6701,40 +6188,6 @@ CHIP_ERROR GroupsCluster::ReadAttributeClusterRevision(Callback::Cancelable * on BasicAttributeFilter); } -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::Groups::Commands::AddGroup::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::Groups::Commands::AddGroupIfIdentifying::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::Groups::Commands::GetGroupMembership::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::Groups::Commands::RemoveAllGroups::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::Groups::Commands::RemoveGroup::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::Groups::Commands::ViewGroup::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - // Identify Cluster Commands CHIP_ERROR IdentifyCluster::Identify(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t identifyTime) @@ -6871,10 +6324,6 @@ CHIP_ERROR IdentifyCluster::ReadAttributeIdentifyTime(Callback::Cancelable * onS BasicAttributeFilter); } -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::Identify::Attributes::IdentifyTime::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - CHIP_ERROR IdentifyCluster::WriteAttributeIdentifyTime(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -6910,22 +6359,6 @@ CHIP_ERROR IdentifyCluster::ReadAttributeClusterRevision(Callback::Cancelable * BasicAttributeFilter); } -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::Identify::Commands::Identify::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::Identify::Commands::IdentifyQuery::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::Identify::Commands::TriggerEffect::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - // IlluminanceMeasurement Cluster Commands // IlluminanceMeasurement Cluster Attributes CHIP_ERROR IlluminanceMeasurementCluster::ReadAttributeMeasuredValue(Callback::Cancelable * onSuccessCallback, @@ -7073,12 +6506,6 @@ CHIP_ERROR KeypadInputCluster::ReadAttributeClusterRevision(Callback::Cancelable BasicAttributeFilter); } -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::KeypadInput::Commands::SendKey::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - // LevelControl Cluster Commands CHIP_ERROR LevelControlCluster::Move(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t moveMode, uint8_t rate, uint8_t optionMask, uint8_t optionOverride) @@ -7552,10 +6979,6 @@ CHIP_ERROR LevelControlCluster::ReadAttributeOptions(Callback::Cancelable * onSu BasicAttributeFilter); } -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::LevelControl::Attributes::Options::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - CHIP_ERROR LevelControlCluster::WriteAttributeOptions(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) { @@ -7579,10 +7002,6 @@ CHIP_ERROR LevelControlCluster::ReadAttributeOnOffTransitionTime(Callback::Cance BasicAttributeFilter); } -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::LevelControl::Attributes::OnOffTransitionTime::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - CHIP_ERROR LevelControlCluster::WriteAttributeOnOffTransitionTime(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -7606,10 +7025,6 @@ CHIP_ERROR LevelControlCluster::ReadAttributeOnLevel(Callback::Cancelable * onSu BasicAttributeFilter); } -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::LevelControl::Attributes::OnLevel::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - CHIP_ERROR LevelControlCluster::WriteAttributeOnLevel(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) { @@ -7633,10 +7048,6 @@ CHIP_ERROR LevelControlCluster::ReadAttributeOnTransitionTime(Callback::Cancelab BasicAttributeFilter); } -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::LevelControl::Attributes::OnTransitionTime::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - CHIP_ERROR LevelControlCluster::WriteAttributeOnTransitionTime(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -7660,10 +7071,6 @@ CHIP_ERROR LevelControlCluster::ReadAttributeOffTransitionTime(Callback::Cancela BasicAttributeFilter); } -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::LevelControl::Attributes::OffTransitionTime::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - CHIP_ERROR LevelControlCluster::WriteAttributeOffTransitionTime(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -7687,10 +7094,6 @@ CHIP_ERROR LevelControlCluster::ReadAttributeDefaultMoveRate(Callback::Cancelabl BasicAttributeFilter); } -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::LevelControl::Attributes::DefaultMoveRate::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - CHIP_ERROR LevelControlCluster::WriteAttributeDefaultMoveRate(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) { @@ -7714,10 +7117,6 @@ CHIP_ERROR LevelControlCluster::ReadAttributeStartUpCurrentLevel(Callback::Cance BasicAttributeFilter); } -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::LevelControl::Attributes::StartUpCurrentLevel::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - CHIP_ERROR LevelControlCluster::WriteAttributeStartUpCurrentLevel(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) { @@ -7741,46 +7140,6 @@ CHIP_ERROR LevelControlCluster::ReadAttributeClusterRevision(Callback::Cancelabl BasicAttributeFilter); } -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::LevelControl::Commands::Move::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::LevelControl::Commands::MoveToLevel::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::LevelControl::Commands::MoveToLevelWithOnOff::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::LevelControl::Commands::MoveWithOnOff::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::LevelControl::Commands::Step::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::LevelControl::Commands::StepWithOnOff::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::LevelControl::Commands::Stop::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::LevelControl::Commands::StopWithOnOff::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - // LowPower Cluster Commands CHIP_ERROR LowPowerCluster::Sleep(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { @@ -7833,11 +7192,6 @@ CHIP_ERROR LowPowerCluster::ReadAttributeClusterRevision(Callback::Cancelable * BasicAttributeFilter); } -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::LowPower::Commands::Sleep::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - // MediaInput Cluster Commands CHIP_ERROR MediaInputCluster::HideInputStatus(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { @@ -8036,26 +7390,6 @@ CHIP_ERROR MediaInputCluster::ReadAttributeClusterRevision(Callback::Cancelable BasicAttributeFilter); } -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::MediaInput::Commands::HideInputStatus::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::MediaInput::Commands::RenameInput::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::MediaInput::Commands::SelectInput::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::MediaInput::Commands::ShowInputStatus::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - // MediaPlayback Cluster Commands CHIP_ERROR MediaPlaybackCluster::MediaFastForward(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) @@ -8594,75 +7928,6 @@ CHIP_ERROR MediaPlaybackCluster::ReadAttributeClusterRevision(Callback::Cancelab BasicAttributeFilter); } -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::MediaPlayback::Commands::MediaFastForward::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::MediaPlayback::Commands::MediaNext::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::MediaPlayback::Commands::MediaPause::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::MediaPlayback::Commands::MediaPlay::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::MediaPlayback::Commands::MediaPrevious::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::MediaPlayback::Commands::MediaRewind::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::MediaPlayback::Commands::MediaSeek::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::MediaPlayback::Commands::MediaSkipBackward::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::MediaPlayback::Commands::MediaSkipForward::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::MediaPlayback::Commands::MediaStartOver::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::MediaPlayback::Commands::MediaStop::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - // NetworkCommissioning Cluster Commands CHIP_ERROR NetworkCommissioningCluster::AddThreadNetwork(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, @@ -9110,68 +8375,6 @@ CHIP_ERROR NetworkCommissioningCluster::ReadAttributeClusterRevision(Callback::C BasicAttributeFilter); } -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::NetworkCommissioning::Commands::AddThreadNetwork::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::NetworkCommissioning::Commands::AddWiFiNetwork::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::NetworkCommissioning::Commands::DisableNetwork::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::NetworkCommissioning::Commands::EnableNetwork::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::NetworkCommissioning::Commands::GetLastNetworkCommissioningResult::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::NetworkCommissioning::Commands::RemoveNetwork::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::NetworkCommissioning::Commands::ScanNetworks::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::NetworkCommissioning::Commands::UpdateThreadNetwork::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::NetworkCommissioning::Commands::UpdateWiFiNetwork::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - // OtaSoftwareUpdateProvider Cluster Commands CHIP_ERROR OtaSoftwareUpdateProviderCluster::ApplyUpdateRequest(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, @@ -9335,26 +8538,6 @@ CHIP_ERROR OtaSoftwareUpdateProviderCluster::ReadAttributeClusterRevision(Callba BasicAttributeFilter); } -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::OtaSoftwareUpdateProvider::Commands::ApplyUpdateRequest::Type &, void *, - CommandResponseSuccessCallback< - chip::app::Clusters::OtaSoftwareUpdateProvider::Commands::ApplyUpdateRequestResponse::DecodableType>, - CommandResponseFailureCallback); - -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::OtaSoftwareUpdateProvider::Commands::NotifyUpdateApplied::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::OtaSoftwareUpdateProvider::Commands::QueryImage::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - // OtaSoftwareUpdateRequestor Cluster Commands CHIP_ERROR OtaSoftwareUpdateRequestorCluster::AnnounceOtaProvider(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, @@ -9419,11 +8602,6 @@ CHIP_ERROR OtaSoftwareUpdateRequestorCluster::ReadAttributeDefaultOtaProvider(Ca BasicAttributeFilter); } -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::OtaSoftwareUpdateRequestor::Attributes::DefaultOtaProvider::TypeInfo::Type & requestData, - void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - CHIP_ERROR OtaSoftwareUpdateRequestorCluster::WriteAttributeDefaultOtaProvider(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, chip::ByteSpan value) @@ -9461,11 +8639,6 @@ CHIP_ERROR OtaSoftwareUpdateRequestorCluster::ReadAttributeClusterRevision(Callb BasicAttributeFilter); } -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::OtaSoftwareUpdateRequestor::Commands::AnnounceOtaProvider::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - // OccupancySensing Cluster Commands // OccupancySensing Cluster Attributes CHIP_ERROR OccupancySensingCluster::ReadAttributeOccupancy(Callback::Cancelable * onSuccessCallback, @@ -9827,10 +9000,6 @@ CHIP_ERROR OnOffCluster::ReadAttributeOnTime(Callback::Cancelable * onSuccessCal BasicAttributeFilter); } -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::OnOff::Attributes::OnTime::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - CHIP_ERROR OnOffCluster::WriteAttributeOnTime(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -9854,10 +9023,6 @@ CHIP_ERROR OnOffCluster::ReadAttributeOffWaitTime(Callback::Cancelable * onSucce BasicAttributeFilter); } -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::OnOff::Attributes::OffWaitTime::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - CHIP_ERROR OnOffCluster::WriteAttributeOffWaitTime(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -9881,10 +9046,6 @@ CHIP_ERROR OnOffCluster::ReadAttributeStartUpOnOff(Callback::Cancelable * onSucc BasicAttributeFilter); } -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::OnOff::Attributes::StartUpOnOff::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - CHIP_ERROR OnOffCluster::WriteAttributeStartUpOnOff(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) { @@ -9919,36 +9080,6 @@ CHIP_ERROR OnOffCluster::ReadAttributeClusterRevision(Callback::Cancelable * onS BasicAttributeFilter); } -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::OnOff::Commands::Off::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::OnOff::Commands::OffWithEffect::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::OnOff::Commands::On::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::OnOff::Commands::OnWithRecallGlobalScene::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::OnOff::Commands::OnWithTimedOff::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::OnOff::Commands::Toggle::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - // OnOffSwitchConfiguration Cluster Commands // OnOffSwitchConfiguration Cluster Attributes CHIP_ERROR OnOffSwitchConfigurationCluster::ReadAttributeSwitchType(Callback::Cancelable * onSuccessCallback, @@ -9975,10 +9106,6 @@ CHIP_ERROR OnOffSwitchConfigurationCluster::ReadAttributeSwitchActions(Callback: BasicAttributeFilter); } -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::OnOffSwitchConfiguration::Attributes::SwitchActions::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - CHIP_ERROR OnOffSwitchConfigurationCluster::WriteAttributeSwitchActions(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) { @@ -10455,62 +9582,6 @@ CHIP_ERROR OperationalCredentialsCluster::ReadAttributeClusterRevision(Callback: BasicAttributeFilter); } -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::OperationalCredentials::Commands::AddNOC::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::OperationalCredentials::Commands::AddTrustedRootCertificate::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::OperationalCredentials::Commands::AttestationRequest::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::OperationalCredentials::Commands::CertificateChainRequest::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::OperationalCredentials::Commands::OpCSRRequest::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::OperationalCredentials::Commands::RemoveFabric::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::OperationalCredentials::Commands::RemoveTrustedRootCertificate::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::OperationalCredentials::Commands::UpdateFabricLabel::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::OperationalCredentials::Commands::UpdateNOC::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - // PowerSource Cluster Commands // PowerSource Cluster Attributes CHIP_ERROR PowerSourceCluster::ReadAttributeStatus(Callback::Cancelable * onSuccessCallback, @@ -10991,11 +10062,6 @@ CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeOperationMode(Callba BasicAttributeFilter); } -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::PumpConfigurationAndControl::Attributes::OperationMode::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - CHIP_ERROR PumpConfigurationAndControlCluster::WriteAttributeOperationMode(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) { @@ -11019,11 +10085,6 @@ CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeControlMode(Callback BasicAttributeFilter); } -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::PumpConfigurationAndControl::Attributes::ControlMode::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - CHIP_ERROR PumpConfigurationAndControlCluster::WriteAttributeControlMode(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) { @@ -11553,47 +10614,6 @@ CHIP_ERROR ScenesCluster::ReadAttributeClusterRevision(Callback::Cancelable * on BasicAttributeFilter); } -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::Scenes::Commands::AddScene::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::Scenes::Commands::GetSceneMembership::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::Scenes::Commands::RecallScene::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::Scenes::Commands::RemoveAllScenes::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::Scenes::Commands::RemoveScene::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::Scenes::Commands::StoreScene::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::Scenes::Commands::ViewScene::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - // SoftwareDiagnostics Cluster Commands CHIP_ERROR SoftwareDiagnosticsCluster::ResetWatermarks(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) @@ -11684,11 +10704,6 @@ CHIP_ERROR SoftwareDiagnosticsCluster::ReadAttributeClusterRevision(Callback::Ca BasicAttributeFilter); } -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::SoftwareDiagnostics::Commands::ResetWatermarks::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - // Switch Cluster Commands // Switch Cluster Attributes CHIP_ERROR SwitchCluster::ReadAttributeNumberOfPositions(Callback::Cancelable * onSuccessCallback, @@ -11921,22 +10936,6 @@ CHIP_ERROR TvChannelCluster::ReadAttributeClusterRevision(Callback::Cancelable * BasicAttributeFilter); } -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::TvChannel::Commands::ChangeChannel::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::TvChannel::Commands::ChangeChannelByNumber::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::TvChannel::Commands::SkipChannel::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - // TargetNavigator Cluster Commands CHIP_ERROR TargetNavigatorCluster::NavigateTarget(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t target, chip::CharSpan data) @@ -12006,13 +11005,6 @@ CHIP_ERROR TargetNavigatorCluster::ReadAttributeClusterRevision(Callback::Cancel BasicAttributeFilter); } -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::TargetNavigator::Commands::NavigateTarget::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - // TemperatureMeasurement Cluster Commands // TemperatureMeasurement Cluster Attributes CHIP_ERROR TemperatureMeasurementCluster::ReadAttributeMeasuredValue(Callback::Cancelable * onSuccessCallback, @@ -12596,10 +11588,6 @@ CHIP_ERROR TestClusterCluster::ReadAttributeBoolean(Callback::Cancelable * onSuc BasicAttributeFilter); } -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::TestCluster::Attributes::Boolean::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - CHIP_ERROR TestClusterCluster::WriteAttributeBoolean(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, bool value) { @@ -12623,10 +11611,6 @@ CHIP_ERROR TestClusterCluster::ReadAttributeBitmap8(Callback::Cancelable * onSuc BasicAttributeFilter); } -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::TestCluster::Attributes::Bitmap8::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - CHIP_ERROR TestClusterCluster::WriteAttributeBitmap8(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) { @@ -12650,10 +11634,6 @@ CHIP_ERROR TestClusterCluster::ReadAttributeBitmap16(Callback::Cancelable * onSu BasicAttributeFilter); } -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::TestCluster::Attributes::Bitmap16::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - CHIP_ERROR TestClusterCluster::WriteAttributeBitmap16(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -12677,10 +11657,6 @@ CHIP_ERROR TestClusterCluster::ReadAttributeBitmap32(Callback::Cancelable * onSu BasicAttributeFilter); } -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::TestCluster::Attributes::Bitmap32::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - CHIP_ERROR TestClusterCluster::WriteAttributeBitmap32(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint32_t value) { @@ -12704,10 +11680,6 @@ CHIP_ERROR TestClusterCluster::ReadAttributeBitmap64(Callback::Cancelable * onSu BasicAttributeFilter); } -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::TestCluster::Attributes::Bitmap64::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - CHIP_ERROR TestClusterCluster::WriteAttributeBitmap64(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint64_t value) { @@ -12731,10 +11703,6 @@ CHIP_ERROR TestClusterCluster::ReadAttributeInt8u(Callback::Cancelable * onSucce BasicAttributeFilter); } -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::TestCluster::Attributes::Int8u::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - CHIP_ERROR TestClusterCluster::WriteAttributeInt8u(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) { @@ -12758,10 +11726,6 @@ CHIP_ERROR TestClusterCluster::ReadAttributeInt16u(Callback::Cancelable * onSucc BasicAttributeFilter); } -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::TestCluster::Attributes::Int16u::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - CHIP_ERROR TestClusterCluster::WriteAttributeInt16u(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -12785,10 +11749,6 @@ CHIP_ERROR TestClusterCluster::ReadAttributeInt32u(Callback::Cancelable * onSucc BasicAttributeFilter); } -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::TestCluster::Attributes::Int32u::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - CHIP_ERROR TestClusterCluster::WriteAttributeInt32u(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint32_t value) { @@ -12812,10 +11772,6 @@ CHIP_ERROR TestClusterCluster::ReadAttributeInt64u(Callback::Cancelable * onSucc BasicAttributeFilter); } -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::TestCluster::Attributes::Int64u::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - CHIP_ERROR TestClusterCluster::WriteAttributeInt64u(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint64_t value) { @@ -12839,10 +11795,6 @@ CHIP_ERROR TestClusterCluster::ReadAttributeInt8s(Callback::Cancelable * onSucce BasicAttributeFilter); } -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::TestCluster::Attributes::Int8s::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - CHIP_ERROR TestClusterCluster::WriteAttributeInt8s(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, int8_t value) { @@ -12866,10 +11818,6 @@ CHIP_ERROR TestClusterCluster::ReadAttributeInt16s(Callback::Cancelable * onSucc BasicAttributeFilter); } -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::TestCluster::Attributes::Int16s::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - CHIP_ERROR TestClusterCluster::WriteAttributeInt16s(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, int16_t value) { @@ -12893,10 +11841,6 @@ CHIP_ERROR TestClusterCluster::ReadAttributeInt32s(Callback::Cancelable * onSucc BasicAttributeFilter); } -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::TestCluster::Attributes::Int32s::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - CHIP_ERROR TestClusterCluster::WriteAttributeInt32s(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, int32_t value) { @@ -12920,10 +11864,6 @@ CHIP_ERROR TestClusterCluster::ReadAttributeInt64s(Callback::Cancelable * onSucc BasicAttributeFilter); } -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::TestCluster::Attributes::Int64s::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - CHIP_ERROR TestClusterCluster::WriteAttributeInt64s(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, int64_t value) { @@ -12947,10 +11887,6 @@ CHIP_ERROR TestClusterCluster::ReadAttributeEnum8(Callback::Cancelable * onSucce BasicAttributeFilter); } -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::TestCluster::Attributes::Enum8::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - CHIP_ERROR TestClusterCluster::WriteAttributeEnum8(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) { @@ -12974,10 +11910,6 @@ CHIP_ERROR TestClusterCluster::ReadAttributeEnum16(Callback::Cancelable * onSucc BasicAttributeFilter); } -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::TestCluster::Attributes::Enum16::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - CHIP_ERROR TestClusterCluster::WriteAttributeEnum16(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -13001,10 +11933,6 @@ CHIP_ERROR TestClusterCluster::ReadAttributeOctetString(Callback::Cancelable * o BasicAttributeFilter); } -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::TestCluster::Attributes::OctetString::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - CHIP_ERROR TestClusterCluster::WriteAttributeOctetString(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, chip::ByteSpan value) { @@ -13064,10 +11992,6 @@ CHIP_ERROR TestClusterCluster::ReadAttributeLongOctetString(Callback::Cancelable BasicAttributeFilter); } -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::TestCluster::Attributes::LongOctetString::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - CHIP_ERROR TestClusterCluster::WriteAttributeLongOctetString(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, chip::ByteSpan value) { @@ -13091,10 +12015,6 @@ CHIP_ERROR TestClusterCluster::ReadAttributeCharString(Callback::Cancelable * on BasicAttributeFilter); } -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::TestCluster::Attributes::CharString::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - CHIP_ERROR TestClusterCluster::WriteAttributeCharString(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, chip::CharSpan value) { @@ -13118,10 +12038,6 @@ CHIP_ERROR TestClusterCluster::ReadAttributeLongCharString(Callback::Cancelable BasicAttributeFilter); } -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::TestCluster::Attributes::LongCharString::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - CHIP_ERROR TestClusterCluster::WriteAttributeLongCharString(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, chip::CharSpan value) { @@ -13145,10 +12061,6 @@ CHIP_ERROR TestClusterCluster::ReadAttributeEpochUs(Callback::Cancelable * onSuc BasicAttributeFilter); } -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::TestCluster::Attributes::EpochUs::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - CHIP_ERROR TestClusterCluster::WriteAttributeEpochUs(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint64_t value) { @@ -13172,10 +12084,6 @@ CHIP_ERROR TestClusterCluster::ReadAttributeEpochS(Callback::Cancelable * onSucc BasicAttributeFilter); } -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::TestCluster::Attributes::EpochS::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - CHIP_ERROR TestClusterCluster::WriteAttributeEpochS(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint32_t value) { @@ -13199,10 +12107,6 @@ CHIP_ERROR TestClusterCluster::ReadAttributeVendorId(Callback::Cancelable * onSu BasicAttributeFilter); } -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::TestCluster::Attributes::VendorId::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - CHIP_ERROR TestClusterCluster::WriteAttributeVendorId(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, chip::VendorId value) { @@ -13226,10 +12130,6 @@ CHIP_ERROR TestClusterCluster::ReadAttributeUnsupported(Callback::Cancelable * o BasicAttributeFilter); } -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::TestCluster::Attributes::Unsupported::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - CHIP_ERROR TestClusterCluster::WriteAttributeUnsupported(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, bool value) { @@ -13253,68 +12153,6 @@ CHIP_ERROR TestClusterCluster::ReadAttributeClusterRevision(Callback::Cancelable BasicAttributeFilter); } -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::TestCluster::Commands::Test::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::TestCluster::Commands::TestAddArguments::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::TestCluster::Commands::TestEnumsRequest::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::TestCluster::Commands::TestListInt8UArgumentRequest::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::TestCluster::Commands::TestListInt8UReverseRequest::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::TestCluster::Commands::TestListStructArgumentRequest::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::TestCluster::Commands::TestNotHandled::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::TestCluster::Commands::TestNullableOptionalRequest::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::TestCluster::Commands::TestSpecific::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::TestCluster::Commands::TestStructArgumentRequest::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::TestCluster::Commands::TestUnknownCommand::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - // Thermostat Cluster Commands CHIP_ERROR ThermostatCluster::ClearWeeklySchedule(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) @@ -13618,10 +12456,6 @@ CHIP_ERROR ThermostatCluster::ReadAttributeOccupiedCoolingSetpoint(Callback::Can BasicAttributeFilter); } -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::Thermostat::Attributes::OccupiedCoolingSetpoint::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - CHIP_ERROR ThermostatCluster::WriteAttributeOccupiedCoolingSetpoint(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, int16_t value) { @@ -13645,10 +12479,6 @@ CHIP_ERROR ThermostatCluster::ReadAttributeOccupiedHeatingSetpoint(Callback::Can BasicAttributeFilter); } -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::Thermostat::Attributes::OccupiedHeatingSetpoint::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - CHIP_ERROR ThermostatCluster::WriteAttributeOccupiedHeatingSetpoint(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, int16_t value) { @@ -13672,10 +12502,6 @@ CHIP_ERROR ThermostatCluster::ReadAttributeMinHeatSetpointLimit(Callback::Cancel BasicAttributeFilter); } -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::Thermostat::Attributes::MinHeatSetpointLimit::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - CHIP_ERROR ThermostatCluster::WriteAttributeMinHeatSetpointLimit(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, int16_t value) { @@ -13699,10 +12525,6 @@ CHIP_ERROR ThermostatCluster::ReadAttributeMaxHeatSetpointLimit(Callback::Cancel BasicAttributeFilter); } -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::Thermostat::Attributes::MaxHeatSetpointLimit::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - CHIP_ERROR ThermostatCluster::WriteAttributeMaxHeatSetpointLimit(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, int16_t value) { @@ -13726,10 +12548,6 @@ CHIP_ERROR ThermostatCluster::ReadAttributeMinCoolSetpointLimit(Callback::Cancel BasicAttributeFilter); } -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::Thermostat::Attributes::MinCoolSetpointLimit::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - CHIP_ERROR ThermostatCluster::WriteAttributeMinCoolSetpointLimit(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, int16_t value) { @@ -13753,10 +12571,6 @@ CHIP_ERROR ThermostatCluster::ReadAttributeMaxCoolSetpointLimit(Callback::Cancel BasicAttributeFilter); } -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::Thermostat::Attributes::MaxCoolSetpointLimit::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - CHIP_ERROR ThermostatCluster::WriteAttributeMaxCoolSetpointLimit(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, int16_t value) { @@ -13780,10 +12594,6 @@ CHIP_ERROR ThermostatCluster::ReadAttributeMinSetpointDeadBand(Callback::Cancela BasicAttributeFilter); } -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::Thermostat::Attributes::MinSetpointDeadBand::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - CHIP_ERROR ThermostatCluster::WriteAttributeMinSetpointDeadBand(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, int8_t value) { @@ -13807,10 +12617,6 @@ CHIP_ERROR ThermostatCluster::ReadAttributeControlSequenceOfOperation(Callback:: BasicAttributeFilter); } -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::Thermostat::Attributes::ControlSequenceOfOperation::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - CHIP_ERROR ThermostatCluster::WriteAttributeControlSequenceOfOperation(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) { @@ -13834,10 +12640,6 @@ CHIP_ERROR ThermostatCluster::ReadAttributeSystemMode(Callback::Cancelable * onS BasicAttributeFilter); } -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::Thermostat::Attributes::SystemMode::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - CHIP_ERROR ThermostatCluster::WriteAttributeSystemMode(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) { @@ -13909,31 +12711,6 @@ CHIP_ERROR ThermostatCluster::ReadAttributeClusterRevision(Callback::Cancelable BasicAttributeFilter); } -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::Thermostat::Commands::ClearWeeklySchedule::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::Thermostat::Commands::GetRelayStatusLog::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::Thermostat::Commands::GetWeeklySchedule::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::Thermostat::Commands::SetWeeklySchedule::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::Thermostat::Commands::SetpointRaiseLower::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - // ThermostatUserInterfaceConfiguration Cluster Commands // ThermostatUserInterfaceConfiguration Cluster Attributes CHIP_ERROR @@ -13949,12 +12726,6 @@ ThermostatUserInterfaceConfigurationCluster::ReadAttributeTemperatureDisplayMode BasicAttributeFilter); } -template CHIP_ERROR ClusterBase::WriteAttribute< - chip::app::Clusters::ThermostatUserInterfaceConfiguration::Attributes::TemperatureDisplayMode::TypeInfo>( - const chip::app::Clusters::ThermostatUserInterfaceConfiguration::Attributes::TemperatureDisplayMode::TypeInfo::Type & - requestData, - void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - CHIP_ERROR ThermostatUserInterfaceConfigurationCluster::WriteAttributeTemperatureDisplayMode( Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) { @@ -13980,11 +12751,6 @@ CHIP_ERROR ThermostatUserInterfaceConfigurationCluster::ReadAttributeKeypadLocko BasicAttributeFilter); } -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::ThermostatUserInterfaceConfiguration::Attributes::KeypadLockout::TypeInfo::Type & requestData, - void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - CHIP_ERROR ThermostatUserInterfaceConfigurationCluster::WriteAttributeKeypadLockout(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) @@ -14011,12 +12777,6 @@ ThermostatUserInterfaceConfigurationCluster::ReadAttributeScheduleProgrammingVis BasicAttributeFilter); } -template CHIP_ERROR ClusterBase::WriteAttribute< - chip::app::Clusters::ThermostatUserInterfaceConfiguration::Attributes::ScheduleProgrammingVisibility::TypeInfo>( - const chip::app::Clusters::ThermostatUserInterfaceConfiguration::Attributes::ScheduleProgrammingVisibility::TypeInfo::Type & - requestData, - void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - CHIP_ERROR ThermostatUserInterfaceConfigurationCluster::WriteAttributeScheduleProgrammingVisibility( Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) { @@ -14852,11 +13612,6 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeClusterRevision(Callbac BasicAttributeFilter); } -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::ThreadNetworkDiagnostics::Commands::ResetCounts::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - // WakeOnLan Cluster Commands // WakeOnLan Cluster Attributes CHIP_ERROR WakeOnLanCluster::ReadAttributeWakeOnLanMacAddress(Callback::Cancelable * onSuccessCallback, @@ -15092,11 +13847,6 @@ CHIP_ERROR WiFiNetworkDiagnosticsCluster::ReadAttributeClusterRevision(Callback: BasicAttributeFilter); } -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::WiFiNetworkDiagnostics::Commands::ResetCounts::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - // WindowCovering Cluster Commands CHIP_ERROR WindowCoveringCluster::DownOrClose(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { @@ -15713,10 +14463,6 @@ CHIP_ERROR WindowCoveringCluster::ReadAttributeMode(Callback::Cancelable * onSuc BasicAttributeFilter); } -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::WindowCovering::Attributes::Mode::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - CHIP_ERROR WindowCoveringCluster::WriteAttributeMode(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) { @@ -15782,85 +14528,5 @@ CHIP_ERROR WindowCoveringCluster::ReadAttributeClusterRevision(Callback::Cancela BasicAttributeFilter); } -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::WindowCovering::Commands::DownOrClose::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::WindowCovering::Commands::GoToLiftPercentage::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::WindowCovering::Commands::GoToLiftValue::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::WindowCovering::Commands::GoToTiltPercentage::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::WindowCovering::Commands::GoToTiltValue::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::WindowCovering::Commands::StopMotion::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::WindowCovering::Commands::UpOrOpen::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - -template -CHIP_ERROR ClusterBase::InvokeCommand(const RequestDataT & requestData, void * context, - CommandResponseSuccessCallback successCb, - CommandResponseFailureCallback failureCb) -{ - VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); - ReturnErrorOnFailure(mDevice->LoadSecureSessionParametersIfNeeded()); - - auto onSuccessCb = [context, successCb](const app::ConcreteCommandPath & commandPath, const app::StatusIB & aStatus, - const ResponseDataT & responseData) { successCb(context, responseData); }; - - auto onFailureCb = [context, failureCb](const app::StatusIB & aStatus, CHIP_ERROR aError) { - failureCb(context, app::ToEmberAfStatus(aStatus.mStatus)); - }; - - return InvokeCommandRequest(mDevice->GetExchangeManager(), mDevice->GetSecureSession().Value(), mEndpoint, - requestData, onSuccessCb, onFailureCb); -}; - -template -CHIP_ERROR ClusterBase::WriteAttribute(const typename AttributeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb) -{ - VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); - ReturnErrorOnFailure(mDevice->LoadSecureSessionParametersIfNeeded()); - - auto onSuccessCb = [context, successCb](const app::ConcreteAttributePath & commandPath) { - if (successCb != nullptr) - { - successCb(context); - } - }; - - auto onFailureCb = [context, failureCb](const app::ConcreteAttributePath * commandPath, app::StatusIB status, - CHIP_ERROR aError) { - if (failureCb != nullptr) - { - failureCb(context, app::ToEmberAfStatus(status.mStatus)); - } - }; - - return chip::Controller::WriteAttribute(mDevice->GetExchangeManager(), mDevice->GetSecureSession().Value(), - mEndpoint, requestData, onSuccessCb, onFailureCb); -} - } // namespace Controller } // namespace chip diff --git a/zzz_generated/controller-clusters/zap-generated/CHIPClustersInvoke.cpp b/zzz_generated/controller-clusters/zap-generated/CHIPClustersInvoke.cpp new file mode 100644 index 00000000000000..e6131b45c52297 --- /dev/null +++ b/zzz_generated/controller-clusters/zap-generated/CHIPClustersInvoke.cpp @@ -0,0 +1,1034 @@ +/* + * + * 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 + +#include "CHIPClusters.h" + +#include +#include + +namespace chip { + +using namespace app::Clusters; +using namespace System; +using namespace Encoding::LittleEndian; + +namespace Controller { + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::AccountLogin::Commands::GetSetupPIN::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::AccountLogin::Commands::Login::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::AdministratorCommissioning::Commands::OpenBasicCommissioningWindow::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::AdministratorCommissioning::Commands::OpenCommissioningWindow::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::AdministratorCommissioning::Commands::RevokeCommissioning::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::ApplicationBasic::Commands::ChangeStatus::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::ApplicationLauncher::Commands::LaunchApp::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::AudioOutput::Commands::RenameOutput::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::AudioOutput::Commands::SelectOutput::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::BarrierControl::Commands::BarrierControlGoToPercent::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::BarrierControl::Commands::BarrierControlStop::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::Basic::Commands::MfgSpecificPing::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::Binding::Commands::Bind::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::Binding::Commands::Unbind::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::BridgedActions::Commands::DisableAction::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::BridgedActions::Commands::DisableActionWithDuration::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::BridgedActions::Commands::EnableAction::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::BridgedActions::Commands::EnableActionWithDuration::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::BridgedActions::Commands::InstantAction::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::BridgedActions::Commands::InstantActionWithTransition::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::BridgedActions::Commands::PauseAction::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::BridgedActions::Commands::PauseActionWithDuration::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::BridgedActions::Commands::ResumeAction::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::BridgedActions::Commands::StartAction::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::BridgedActions::Commands::StartActionWithDuration::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::BridgedActions::Commands::StopAction::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::ColorControl::Commands::EnhancedMoveHue::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::ColorControl::Commands::EnhancedMoveToHue::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::ColorControl::Commands::EnhancedMoveToHueAndSaturation::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::ColorControl::Commands::EnhancedStepHue::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::ColorControl::Commands::MoveColor::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::ColorControl::Commands::MoveColorTemperature::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::ColorControl::Commands::MoveHue::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::ColorControl::Commands::MoveSaturation::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::ColorControl::Commands::MoveToColor::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::ColorControl::Commands::MoveToColorTemperature::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::ColorControl::Commands::MoveToHue::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::ColorControl::Commands::MoveToHueAndSaturation::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::ColorControl::Commands::MoveToSaturation::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::ColorControl::Commands::StepColor::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::ColorControl::Commands::StepColorTemperature::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::ColorControl::Commands::StepHue::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::ColorControl::Commands::StepSaturation::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::ColorControl::Commands::StopMoveStep::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::ContentLauncher::Commands::LaunchContent::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::ContentLauncher::Commands::LaunchURL::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::DiagnosticLogs::Commands::RetrieveLogsRequest::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::DoorLock::Commands::ClearAllPins::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::DoorLock::Commands::ClearAllRfids::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::DoorLock::Commands::ClearHolidaySchedule::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::DoorLock::Commands::ClearPin::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::DoorLock::Commands::ClearRfid::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::DoorLock::Commands::ClearWeekdaySchedule::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::DoorLock::Commands::ClearYeardaySchedule::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::DoorLock::Commands::GetHolidaySchedule::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::DoorLock::Commands::GetLogRecord::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::DoorLock::Commands::GetPin::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::DoorLock::Commands::GetRfid::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::DoorLock::Commands::GetUserType::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::DoorLock::Commands::GetWeekdaySchedule::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::DoorLock::Commands::GetYeardaySchedule::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::DoorLock::Commands::LockDoor::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::DoorLock::Commands::SetHolidaySchedule::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::DoorLock::Commands::SetPin::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::DoorLock::Commands::SetRfid::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::DoorLock::Commands::SetUserType::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::DoorLock::Commands::SetWeekdaySchedule::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::DoorLock::Commands::SetYeardaySchedule::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::DoorLock::Commands::UnlockDoor::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::DoorLock::Commands::UnlockWithTimeout::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::EthernetNetworkDiagnostics::Commands::ResetCounts::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::GeneralCommissioning::Commands::ArmFailSafe::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::GeneralCommissioning::Commands::CommissioningComplete::Type &, void *, + CommandResponseSuccessCallback< + chip::app::Clusters::GeneralCommissioning::Commands::CommissioningCompleteResponse::DecodableType>, + CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::GeneralCommissioning::Commands::SetRegulatoryConfig::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::Groups::Commands::AddGroup::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::Groups::Commands::AddGroupIfIdentifying::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::Groups::Commands::GetGroupMembership::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::Groups::Commands::RemoveAllGroups::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::Groups::Commands::RemoveGroup::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::Groups::Commands::ViewGroup::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::Identify::Commands::Identify::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::Identify::Commands::IdentifyQuery::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::Identify::Commands::TriggerEffect::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::KeypadInput::Commands::SendKey::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::LevelControl::Commands::Move::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::LevelControl::Commands::MoveToLevel::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::LevelControl::Commands::MoveToLevelWithOnOff::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::LevelControl::Commands::MoveWithOnOff::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::LevelControl::Commands::Step::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::LevelControl::Commands::StepWithOnOff::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::LevelControl::Commands::Stop::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::LevelControl::Commands::StopWithOnOff::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::LowPower::Commands::Sleep::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::MediaInput::Commands::HideInputStatus::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::MediaInput::Commands::RenameInput::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::MediaInput::Commands::SelectInput::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::MediaInput::Commands::ShowInputStatus::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::MediaPlayback::Commands::MediaFastForward::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::MediaPlayback::Commands::MediaNext::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::MediaPlayback::Commands::MediaPause::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::MediaPlayback::Commands::MediaPlay::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::MediaPlayback::Commands::MediaPrevious::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::MediaPlayback::Commands::MediaRewind::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::MediaPlayback::Commands::MediaSeek::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::MediaPlayback::Commands::MediaSkipBackward::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::MediaPlayback::Commands::MediaSkipForward::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::MediaPlayback::Commands::MediaStartOver::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::MediaPlayback::Commands::MediaStop::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::NetworkCommissioning::Commands::AddThreadNetwork::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::NetworkCommissioning::Commands::AddWiFiNetwork::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::NetworkCommissioning::Commands::DisableNetwork::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::NetworkCommissioning::Commands::EnableNetwork::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::NetworkCommissioning::Commands::GetLastNetworkCommissioningResult::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::NetworkCommissioning::Commands::RemoveNetwork::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::NetworkCommissioning::Commands::ScanNetworks::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::NetworkCommissioning::Commands::UpdateThreadNetwork::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::NetworkCommissioning::Commands::UpdateWiFiNetwork::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::OtaSoftwareUpdateProvider::Commands::ApplyUpdateRequest::Type &, void *, + CommandResponseSuccessCallback< + chip::app::Clusters::OtaSoftwareUpdateProvider::Commands::ApplyUpdateRequestResponse::DecodableType>, + CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::OtaSoftwareUpdateProvider::Commands::NotifyUpdateApplied::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::OtaSoftwareUpdateProvider::Commands::QueryImage::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::OtaSoftwareUpdateRequestor::Commands::AnnounceOtaProvider::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::OnOff::Commands::Off::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::OnOff::Commands::OffWithEffect::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::OnOff::Commands::On::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::OnOff::Commands::OnWithRecallGlobalScene::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::OnOff::Commands::OnWithTimedOff::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::OnOff::Commands::Toggle::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::OperationalCredentials::Commands::AddNOC::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::OperationalCredentials::Commands::AddTrustedRootCertificate::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::OperationalCredentials::Commands::AttestationRequest::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::OperationalCredentials::Commands::CertificateChainRequest::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::OperationalCredentials::Commands::OpCSRRequest::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::OperationalCredentials::Commands::RemoveFabric::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::OperationalCredentials::Commands::RemoveTrustedRootCertificate::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::OperationalCredentials::Commands::UpdateFabricLabel::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::OperationalCredentials::Commands::UpdateNOC::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::Scenes::Commands::AddScene::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::Scenes::Commands::GetSceneMembership::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::Scenes::Commands::RecallScene::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::Scenes::Commands::RemoveAllScenes::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::Scenes::Commands::RemoveScene::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::Scenes::Commands::StoreScene::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::Scenes::Commands::ViewScene::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::SoftwareDiagnostics::Commands::ResetWatermarks::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::TvChannel::Commands::ChangeChannel::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::TvChannel::Commands::ChangeChannelByNumber::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::TvChannel::Commands::SkipChannel::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::TargetNavigator::Commands::NavigateTarget::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::TestCluster::Commands::Test::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::TestCluster::Commands::TestAddArguments::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::TestCluster::Commands::TestEnumsRequest::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::TestCluster::Commands::TestListInt8UArgumentRequest::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::TestCluster::Commands::TestListInt8UReverseRequest::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::TestCluster::Commands::TestListStructArgumentRequest::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::TestCluster::Commands::TestNotHandled::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::TestCluster::Commands::TestNullableOptionalRequest::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::TestCluster::Commands::TestSpecific::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::TestCluster::Commands::TestStructArgumentRequest::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::TestCluster::Commands::TestUnknownCommand::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::Thermostat::Commands::ClearWeeklySchedule::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::Thermostat::Commands::GetRelayStatusLog::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::Thermostat::Commands::GetWeeklySchedule::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::Thermostat::Commands::SetWeeklySchedule::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::Thermostat::Commands::SetpointRaiseLower::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::ThreadNetworkDiagnostics::Commands::ResetCounts::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::WiFiNetworkDiagnostics::Commands::ResetCounts::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::WindowCovering::Commands::DownOrClose::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::WindowCovering::Commands::GoToLiftPercentage::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::WindowCovering::Commands::GoToLiftValue::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::WindowCovering::Commands::GoToTiltPercentage::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::WindowCovering::Commands::GoToTiltValue::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::WindowCovering::Commands::StopMotion::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::WindowCovering::Commands::UpOrOpen::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template +CHIP_ERROR ClusterBase::InvokeCommand(const RequestDataT & requestData, void * context, + CommandResponseSuccessCallback successCb, + CommandResponseFailureCallback failureCb) +{ + VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); + ReturnErrorOnFailure(mDevice->LoadSecureSessionParametersIfNeeded()); + + auto onSuccessCb = [context, successCb](const app::ConcreteCommandPath & commandPath, const app::StatusIB & aStatus, + const ResponseDataT & responseData) { successCb(context, responseData); }; + + auto onFailureCb = [context, failureCb](const app::StatusIB & aStatus, CHIP_ERROR aError) { + failureCb(context, app::ToEmberAfStatus(aStatus.mStatus)); + }; + + return InvokeCommandRequest(mDevice->GetExchangeManager(), mDevice->GetSecureSession().Value(), mEndpoint, + requestData, onSuccessCb, onFailureCb); +}; + +} // namespace Controller +} // namespace chip diff --git a/zzz_generated/controller-clusters/zap-generated/CHIPClustersWrite.cpp b/zzz_generated/controller-clusters/zap-generated/CHIPClustersWrite.cpp new file mode 100644 index 00000000000000..49fbbfc360c369 --- /dev/null +++ b/zzz_generated/controller-clusters/zap-generated/CHIPClustersWrite.cpp @@ -0,0 +1,465 @@ +/* + * + * 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 + +#include "CHIPClusters.h" + +#include +#include + +namespace chip { + +using namespace app::Clusters; +using namespace System; +using namespace Encoding::LittleEndian; + +namespace Controller { + +// AccountLogin Cluster Attributes + +// AdministratorCommissioning Cluster Attributes + +// ApplicationBasic Cluster Attributes + +// ApplicationLauncher Cluster Attributes + +// AudioOutput Cluster Attributes + +// BarrierControl Cluster Attributes + +// Basic Cluster Attributes + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Basic::Attributes::UserLabel::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Basic::Attributes::Location::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Basic::Attributes::LocalConfigDisabled::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +// BinaryInputBasic Cluster Attributes + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::BinaryInputBasic::Attributes::OutOfService::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::BinaryInputBasic::Attributes::PresentValue::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +// Binding Cluster Attributes + +// BooleanState Cluster Attributes + +// BridgedActions Cluster Attributes + +// BridgedDeviceBasic Cluster Attributes + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::BridgedDeviceBasic::Attributes::UserLabel::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +// ColorControl Cluster Attributes + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::ColorControlOptions::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::WhitePointX::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::WhitePointY::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::ColorPointRX::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::ColorPointRY::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::ColorPointRIntensity::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::ColorPointGX::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::ColorPointGY::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::ColorPointGIntensity::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::ColorPointBX::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::ColorPointBY::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::ColorPointBIntensity::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::StartUpColorTemperatureMireds::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +// ContentLauncher Cluster Attributes + +// Descriptor Cluster Attributes + +// DiagnosticLogs Cluster Attributes + +// DoorLock Cluster Attributes + +// ElectricalMeasurement Cluster Attributes + +// EthernetNetworkDiagnostics Cluster Attributes + +// FixedLabel Cluster Attributes + +// FlowMeasurement Cluster Attributes + +// GeneralCommissioning Cluster Attributes + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::GeneralCommissioning::Attributes::Breadcrumb::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +// GeneralDiagnostics Cluster Attributes + +// GroupKeyManagement Cluster Attributes + +// Groups Cluster Attributes + +// Identify Cluster Attributes + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Identify::Attributes::IdentifyTime::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +// IlluminanceMeasurement Cluster Attributes + +// KeypadInput Cluster Attributes + +// LevelControl Cluster Attributes + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::LevelControl::Attributes::Options::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::LevelControl::Attributes::OnOffTransitionTime::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::LevelControl::Attributes::OnLevel::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::LevelControl::Attributes::OnTransitionTime::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::LevelControl::Attributes::OffTransitionTime::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::LevelControl::Attributes::DefaultMoveRate::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::LevelControl::Attributes::StartUpCurrentLevel::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +// LowPower Cluster Attributes + +// MediaInput Cluster Attributes + +// MediaPlayback Cluster Attributes + +// NetworkCommissioning Cluster Attributes + +// OtaSoftwareUpdateProvider Cluster Attributes + +// OtaSoftwareUpdateRequestor Cluster Attributes + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::OtaSoftwareUpdateRequestor::Attributes::DefaultOtaProvider::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +// OccupancySensing Cluster Attributes + +// OnOff Cluster Attributes + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::OnOff::Attributes::OnTime::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::OnOff::Attributes::OffWaitTime::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::OnOff::Attributes::StartUpOnOff::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +// OnOffSwitchConfiguration Cluster Attributes + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::OnOffSwitchConfiguration::Attributes::SwitchActions::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +// OperationalCredentials Cluster Attributes + +// PowerSource Cluster Attributes + +// PressureMeasurement Cluster Attributes + +// PumpConfigurationAndControl Cluster Attributes + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::PumpConfigurationAndControl::Attributes::OperationMode::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::PumpConfigurationAndControl::Attributes::ControlMode::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +// RelativeHumidityMeasurement Cluster Attributes + +// Scenes Cluster Attributes + +// SoftwareDiagnostics Cluster Attributes + +// Switch Cluster Attributes + +// TvChannel Cluster Attributes + +// TargetNavigator Cluster Attributes + +// TemperatureMeasurement Cluster Attributes + +// TestCluster Cluster Attributes + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::TestCluster::Attributes::Boolean::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::TestCluster::Attributes::Bitmap8::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::TestCluster::Attributes::Bitmap16::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::TestCluster::Attributes::Bitmap32::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::TestCluster::Attributes::Bitmap64::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::TestCluster::Attributes::Int8u::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::TestCluster::Attributes::Int16u::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::TestCluster::Attributes::Int32u::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::TestCluster::Attributes::Int64u::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::TestCluster::Attributes::Int8s::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::TestCluster::Attributes::Int16s::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::TestCluster::Attributes::Int32s::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::TestCluster::Attributes::Int64s::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::TestCluster::Attributes::Enum8::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::TestCluster::Attributes::Enum16::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::TestCluster::Attributes::OctetString::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::TestCluster::Attributes::LongOctetString::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::TestCluster::Attributes::CharString::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::TestCluster::Attributes::LongCharString::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::TestCluster::Attributes::EpochUs::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::TestCluster::Attributes::EpochS::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::TestCluster::Attributes::VendorId::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::TestCluster::Attributes::Unsupported::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +// Thermostat Cluster Attributes + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Thermostat::Attributes::OccupiedCoolingSetpoint::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Thermostat::Attributes::OccupiedHeatingSetpoint::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Thermostat::Attributes::MinHeatSetpointLimit::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Thermostat::Attributes::MaxHeatSetpointLimit::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Thermostat::Attributes::MinCoolSetpointLimit::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Thermostat::Attributes::MaxCoolSetpointLimit::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Thermostat::Attributes::MinSetpointDeadBand::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Thermostat::Attributes::ControlSequenceOfOperation::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Thermostat::Attributes::SystemMode::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +// ThermostatUserInterfaceConfiguration Cluster Attributes + +template CHIP_ERROR ClusterBase::WriteAttribute< + chip::app::Clusters::ThermostatUserInterfaceConfiguration::Attributes::TemperatureDisplayMode::TypeInfo>( + const chip::app::Clusters::ThermostatUserInterfaceConfiguration::Attributes::TemperatureDisplayMode::TypeInfo::Type & + requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ThermostatUserInterfaceConfiguration::Attributes::KeypadLockout::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute< + chip::app::Clusters::ThermostatUserInterfaceConfiguration::Attributes::ScheduleProgrammingVisibility::TypeInfo>( + const chip::app::Clusters::ThermostatUserInterfaceConfiguration::Attributes::ScheduleProgrammingVisibility::TypeInfo::Type & + requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +// ThreadNetworkDiagnostics Cluster Attributes + +// WakeOnLan Cluster Attributes + +// WiFiNetworkDiagnostics Cluster Attributes + +// WindowCovering Cluster Attributes + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::WindowCovering::Attributes::Mode::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template +CHIP_ERROR ClusterBase::WriteAttribute(const typename AttributeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb) +{ + VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); + ReturnErrorOnFailure(mDevice->LoadSecureSessionParametersIfNeeded()); + + auto onSuccessCb = [context, successCb](const app::ConcreteAttributePath & commandPath) { + if (successCb != nullptr) + { + successCb(context); + } + }; + + auto onFailureCb = [context, failureCb](const app::ConcreteAttributePath * commandPath, app::StatusIB status, + CHIP_ERROR aError) { + if (failureCb != nullptr) + { + failureCb(context, app::ToEmberAfStatus(status.mStatus)); + } + }; + + return chip::Controller::WriteAttribute(mDevice->GetExchangeManager(), mDevice->GetSecureSession().Value(), + mEndpoint, requestData, onSuccessCb, onFailureCb); +} + +} // namespace Controller +} // namespace chip diff --git a/zzz_generated/lighting-app/zap-generated/CHIPClusters.cpp b/zzz_generated/lighting-app/zap-generated/CHIPClusters.cpp index c13ca33c3dcae8..658c5f6e7f989b 100644 --- a/zzz_generated/lighting-app/zap-generated/CHIPClusters.cpp +++ b/zzz_generated/lighting-app/zap-generated/CHIPClusters.cpp @@ -19,22 +19,7 @@ #include "CHIPClusters.h" -#include - -#include #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include #include namespace chip { @@ -102,10 +87,6 @@ CHIP_ERROR OnOffCluster::ReadAttributeOnTime(Callback::Cancelable * onSuccessCal BasicAttributeFilter); } -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::OnOff::Attributes::OnTime::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - CHIP_ERROR OnOffCluster::WriteAttributeOnTime(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -129,10 +110,6 @@ CHIP_ERROR OnOffCluster::ReadAttributeOffWaitTime(Callback::Cancelable * onSucce BasicAttributeFilter); } -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::OnOff::Attributes::OffWaitTime::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - CHIP_ERROR OnOffCluster::WriteAttributeOffWaitTime(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -156,10 +133,6 @@ CHIP_ERROR OnOffCluster::ReadAttributeStartUpOnOff(Callback::Cancelable * onSucc BasicAttributeFilter); } -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::OnOff::Attributes::StartUpOnOff::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - CHIP_ERROR OnOffCluster::WriteAttributeStartUpOnOff(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) { @@ -194,50 +167,5 @@ CHIP_ERROR OnOffCluster::ReadAttributeClusterRevision(Callback::Cancelable * onS BasicAttributeFilter); } -template -CHIP_ERROR ClusterBase::InvokeCommand(const RequestDataT & requestData, void * context, - CommandResponseSuccessCallback successCb, - CommandResponseFailureCallback failureCb) -{ - VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); - ReturnErrorOnFailure(mDevice->LoadSecureSessionParametersIfNeeded()); - - auto onSuccessCb = [context, successCb](const app::ConcreteCommandPath & commandPath, const app::StatusIB & aStatus, - const ResponseDataT & responseData) { successCb(context, responseData); }; - - auto onFailureCb = [context, failureCb](const app::StatusIB & aStatus, CHIP_ERROR aError) { - failureCb(context, app::ToEmberAfStatus(aStatus.mStatus)); - }; - - return InvokeCommandRequest(mDevice->GetExchangeManager(), mDevice->GetSecureSession().Value(), mEndpoint, - requestData, onSuccessCb, onFailureCb); -}; - -template -CHIP_ERROR ClusterBase::WriteAttribute(const typename AttributeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb) -{ - VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); - ReturnErrorOnFailure(mDevice->LoadSecureSessionParametersIfNeeded()); - - auto onSuccessCb = [context, successCb](const app::ConcreteAttributePath & commandPath) { - if (successCb != nullptr) - { - successCb(context); - } - }; - - auto onFailureCb = [context, failureCb](const app::ConcreteAttributePath * commandPath, app::StatusIB status, - CHIP_ERROR aError) { - if (failureCb != nullptr) - { - failureCb(context, app::ToEmberAfStatus(status.mStatus)); - } - }; - - return chip::Controller::WriteAttribute(mDevice->GetExchangeManager(), mDevice->GetSecureSession().Value(), - mEndpoint, requestData, onSuccessCb, onFailureCb); -} - } // namespace Controller } // namespace chip diff --git a/zzz_generated/lighting-app/zap-generated/CHIPClustersInvoke.cpp b/zzz_generated/lighting-app/zap-generated/CHIPClustersInvoke.cpp new file mode 100644 index 00000000000000..7b72162bfb792d --- /dev/null +++ b/zzz_generated/lighting-app/zap-generated/CHIPClustersInvoke.cpp @@ -0,0 +1,53 @@ +/* + * + * 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 + +#include "CHIPClusters.h" + +#include +#include + +namespace chip { + +using namespace app::Clusters; +using namespace System; +using namespace Encoding::LittleEndian; + +namespace Controller { + +template +CHIP_ERROR ClusterBase::InvokeCommand(const RequestDataT & requestData, void * context, + CommandResponseSuccessCallback successCb, + CommandResponseFailureCallback failureCb) +{ + VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); + ReturnErrorOnFailure(mDevice->LoadSecureSessionParametersIfNeeded()); + + auto onSuccessCb = [context, successCb](const app::ConcreteCommandPath & commandPath, const app::StatusIB & aStatus, + const ResponseDataT & responseData) { successCb(context, responseData); }; + + auto onFailureCb = [context, failureCb](const app::StatusIB & aStatus, CHIP_ERROR aError) { + failureCb(context, app::ToEmberAfStatus(aStatus.mStatus)); + }; + + return InvokeCommandRequest(mDevice->GetExchangeManager(), mDevice->GetSecureSession().Value(), mEndpoint, + requestData, onSuccessCb, onFailureCb); +}; + +} // namespace Controller +} // namespace chip diff --git a/zzz_generated/lighting-app/zap-generated/CHIPClustersWrite.cpp b/zzz_generated/lighting-app/zap-generated/CHIPClustersWrite.cpp new file mode 100644 index 00000000000000..547118cf182642 --- /dev/null +++ b/zzz_generated/lighting-app/zap-generated/CHIPClustersWrite.cpp @@ -0,0 +1,74 @@ +/* + * + * 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 + +#include "CHIPClusters.h" + +#include +#include + +namespace chip { + +using namespace app::Clusters; +using namespace System; +using namespace Encoding::LittleEndian; + +namespace Controller { + +// OnOff Cluster Attributes + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::OnOff::Attributes::OnTime::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::OnOff::Attributes::OffWaitTime::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::OnOff::Attributes::StartUpOnOff::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template +CHIP_ERROR ClusterBase::WriteAttribute(const typename AttributeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb) +{ + VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); + ReturnErrorOnFailure(mDevice->LoadSecureSessionParametersIfNeeded()); + + auto onSuccessCb = [context, successCb](const app::ConcreteAttributePath & commandPath) { + if (successCb != nullptr) + { + successCb(context); + } + }; + + auto onFailureCb = [context, failureCb](const app::ConcreteAttributePath * commandPath, app::StatusIB status, + CHIP_ERROR aError) { + if (failureCb != nullptr) + { + failureCb(context, app::ToEmberAfStatus(status.mStatus)); + } + }; + + return chip::Controller::WriteAttribute(mDevice->GetExchangeManager(), mDevice->GetSecureSession().Value(), + mEndpoint, requestData, onSuccessCb, onFailureCb); +} + +} // namespace Controller +} // namespace chip diff --git a/zzz_generated/lock-app/zap-generated/CHIPClustersInvoke.cpp b/zzz_generated/lock-app/zap-generated/CHIPClustersInvoke.cpp new file mode 100644 index 00000000000000..759d13c5028d26 --- /dev/null +++ b/zzz_generated/lock-app/zap-generated/CHIPClustersInvoke.cpp @@ -0,0 +1,18 @@ +/* + * + * 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 diff --git a/zzz_generated/lock-app/zap-generated/CHIPClustersWrite.cpp b/zzz_generated/lock-app/zap-generated/CHIPClustersWrite.cpp new file mode 100644 index 00000000000000..759d13c5028d26 --- /dev/null +++ b/zzz_generated/lock-app/zap-generated/CHIPClustersWrite.cpp @@ -0,0 +1,18 @@ +/* + * + * 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 diff --git a/zzz_generated/ota-provider-app/zap-generated/CHIPClustersInvoke.cpp b/zzz_generated/ota-provider-app/zap-generated/CHIPClustersInvoke.cpp new file mode 100644 index 00000000000000..759d13c5028d26 --- /dev/null +++ b/zzz_generated/ota-provider-app/zap-generated/CHIPClustersInvoke.cpp @@ -0,0 +1,18 @@ +/* + * + * 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 diff --git a/zzz_generated/ota-provider-app/zap-generated/CHIPClustersWrite.cpp b/zzz_generated/ota-provider-app/zap-generated/CHIPClustersWrite.cpp new file mode 100644 index 00000000000000..759d13c5028d26 --- /dev/null +++ b/zzz_generated/ota-provider-app/zap-generated/CHIPClustersWrite.cpp @@ -0,0 +1,18 @@ +/* + * + * 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 diff --git a/zzz_generated/ota-requestor-app/zap-generated/CHIPClusters.cpp b/zzz_generated/ota-requestor-app/zap-generated/CHIPClusters.cpp index 15e63e5e192389..4d6ca1eef926c6 100644 --- a/zzz_generated/ota-requestor-app/zap-generated/CHIPClusters.cpp +++ b/zzz_generated/ota-requestor-app/zap-generated/CHIPClusters.cpp @@ -19,22 +19,7 @@ #include "CHIPClusters.h" -#include - -#include #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include #include namespace chip { @@ -212,70 +197,5 @@ CHIP_ERROR OtaSoftwareUpdateProviderCluster::ReadAttributeClusterRevision(Callba BasicAttributeFilter); } -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::OtaSoftwareUpdateProvider::Commands::ApplyUpdateRequest::Type &, void *, - CommandResponseSuccessCallback< - chip::app::Clusters::OtaSoftwareUpdateProvider::Commands::ApplyUpdateRequestResponse::DecodableType>, - CommandResponseFailureCallback); - -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::OtaSoftwareUpdateProvider::Commands::NotifyUpdateApplied::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::OtaSoftwareUpdateProvider::Commands::QueryImage::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - -template -CHIP_ERROR ClusterBase::InvokeCommand(const RequestDataT & requestData, void * context, - CommandResponseSuccessCallback successCb, - CommandResponseFailureCallback failureCb) -{ - VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); - ReturnErrorOnFailure(mDevice->LoadSecureSessionParametersIfNeeded()); - - auto onSuccessCb = [context, successCb](const app::ConcreteCommandPath & commandPath, const app::StatusIB & aStatus, - const ResponseDataT & responseData) { successCb(context, responseData); }; - - auto onFailureCb = [context, failureCb](const app::StatusIB & aStatus, CHIP_ERROR aError) { - failureCb(context, app::ToEmberAfStatus(aStatus.mStatus)); - }; - - return InvokeCommandRequest(mDevice->GetExchangeManager(), mDevice->GetSecureSession().Value(), mEndpoint, - requestData, onSuccessCb, onFailureCb); -}; - -template -CHIP_ERROR ClusterBase::WriteAttribute(const typename AttributeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb) -{ - VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); - ReturnErrorOnFailure(mDevice->LoadSecureSessionParametersIfNeeded()); - - auto onSuccessCb = [context, successCb](const app::ConcreteAttributePath & commandPath) { - if (successCb != nullptr) - { - successCb(context); - } - }; - - auto onFailureCb = [context, failureCb](const app::ConcreteAttributePath * commandPath, app::StatusIB status, - CHIP_ERROR aError) { - if (failureCb != nullptr) - { - failureCb(context, app::ToEmberAfStatus(status.mStatus)); - } - }; - - return chip::Controller::WriteAttribute(mDevice->GetExchangeManager(), mDevice->GetSecureSession().Value(), - mEndpoint, requestData, onSuccessCb, onFailureCb); -} - } // namespace Controller } // namespace chip diff --git a/zzz_generated/ota-requestor-app/zap-generated/CHIPClustersInvoke.cpp b/zzz_generated/ota-requestor-app/zap-generated/CHIPClustersInvoke.cpp new file mode 100644 index 00000000000000..766af4b05aca67 --- /dev/null +++ b/zzz_generated/ota-requestor-app/zap-generated/CHIPClustersInvoke.cpp @@ -0,0 +1,73 @@ +/* + * + * 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 + +#include "CHIPClusters.h" + +#include +#include + +namespace chip { + +using namespace app::Clusters; +using namespace System; +using namespace Encoding::LittleEndian; + +namespace Controller { + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::OtaSoftwareUpdateProvider::Commands::ApplyUpdateRequest::Type &, void *, + CommandResponseSuccessCallback< + chip::app::Clusters::OtaSoftwareUpdateProvider::Commands::ApplyUpdateRequestResponse::DecodableType>, + CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::OtaSoftwareUpdateProvider::Commands::NotifyUpdateApplied::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::OtaSoftwareUpdateProvider::Commands::QueryImage::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template +CHIP_ERROR ClusterBase::InvokeCommand(const RequestDataT & requestData, void * context, + CommandResponseSuccessCallback successCb, + CommandResponseFailureCallback failureCb) +{ + VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); + ReturnErrorOnFailure(mDevice->LoadSecureSessionParametersIfNeeded()); + + auto onSuccessCb = [context, successCb](const app::ConcreteCommandPath & commandPath, const app::StatusIB & aStatus, + const ResponseDataT & responseData) { successCb(context, responseData); }; + + auto onFailureCb = [context, failureCb](const app::StatusIB & aStatus, CHIP_ERROR aError) { + failureCb(context, app::ToEmberAfStatus(aStatus.mStatus)); + }; + + return InvokeCommandRequest(mDevice->GetExchangeManager(), mDevice->GetSecureSession().Value(), mEndpoint, + requestData, onSuccessCb, onFailureCb); +}; + +} // namespace Controller +} // namespace chip diff --git a/zzz_generated/ota-requestor-app/zap-generated/CHIPClustersWrite.cpp b/zzz_generated/ota-requestor-app/zap-generated/CHIPClustersWrite.cpp new file mode 100644 index 00000000000000..c97fad2ed0dace --- /dev/null +++ b/zzz_generated/ota-requestor-app/zap-generated/CHIPClustersWrite.cpp @@ -0,0 +1,62 @@ +/* + * + * 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 + +#include "CHIPClusters.h" + +#include +#include + +namespace chip { + +using namespace app::Clusters; +using namespace System; +using namespace Encoding::LittleEndian; + +namespace Controller { + +// OtaSoftwareUpdateProvider Cluster Attributes + +template +CHIP_ERROR ClusterBase::WriteAttribute(const typename AttributeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb) +{ + VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); + ReturnErrorOnFailure(mDevice->LoadSecureSessionParametersIfNeeded()); + + auto onSuccessCb = [context, successCb](const app::ConcreteAttributePath & commandPath) { + if (successCb != nullptr) + { + successCb(context); + } + }; + + auto onFailureCb = [context, failureCb](const app::ConcreteAttributePath * commandPath, app::StatusIB status, + CHIP_ERROR aError) { + if (failureCb != nullptr) + { + failureCb(context, app::ToEmberAfStatus(status.mStatus)); + } + }; + + return chip::Controller::WriteAttribute(mDevice->GetExchangeManager(), mDevice->GetSecureSession().Value(), + mEndpoint, requestData, onSuccessCb, onFailureCb); +} + +} // namespace Controller +} // namespace chip diff --git a/zzz_generated/pump-app/zap-generated/CHIPClusters.cpp b/zzz_generated/pump-app/zap-generated/CHIPClusters.cpp index 68ac3f7958f044..d7aae16c60bd26 100644 --- a/zzz_generated/pump-app/zap-generated/CHIPClusters.cpp +++ b/zzz_generated/pump-app/zap-generated/CHIPClusters.cpp @@ -19,22 +19,7 @@ #include "CHIPClusters.h" -#include - -#include #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include #include namespace chip { @@ -253,50 +238,5 @@ CHIP_ERROR TemperatureMeasurementCluster::ReadAttributeClusterRevision(Callback: BasicAttributeFilter); } -template -CHIP_ERROR ClusterBase::InvokeCommand(const RequestDataT & requestData, void * context, - CommandResponseSuccessCallback successCb, - CommandResponseFailureCallback failureCb) -{ - VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); - ReturnErrorOnFailure(mDevice->LoadSecureSessionParametersIfNeeded()); - - auto onSuccessCb = [context, successCb](const app::ConcreteCommandPath & commandPath, const app::StatusIB & aStatus, - const ResponseDataT & responseData) { successCb(context, responseData); }; - - auto onFailureCb = [context, failureCb](const app::StatusIB & aStatus, CHIP_ERROR aError) { - failureCb(context, app::ToEmberAfStatus(aStatus.mStatus)); - }; - - return InvokeCommandRequest(mDevice->GetExchangeManager(), mDevice->GetSecureSession().Value(), mEndpoint, - requestData, onSuccessCb, onFailureCb); -}; - -template -CHIP_ERROR ClusterBase::WriteAttribute(const typename AttributeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb) -{ - VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); - ReturnErrorOnFailure(mDevice->LoadSecureSessionParametersIfNeeded()); - - auto onSuccessCb = [context, successCb](const app::ConcreteAttributePath & commandPath) { - if (successCb != nullptr) - { - successCb(context); - } - }; - - auto onFailureCb = [context, failureCb](const app::ConcreteAttributePath * commandPath, app::StatusIB status, - CHIP_ERROR aError) { - if (failureCb != nullptr) - { - failureCb(context, app::ToEmberAfStatus(status.mStatus)); - } - }; - - return chip::Controller::WriteAttribute(mDevice->GetExchangeManager(), mDevice->GetSecureSession().Value(), - mEndpoint, requestData, onSuccessCb, onFailureCb); -} - } // namespace Controller } // namespace chip diff --git a/zzz_generated/pump-app/zap-generated/CHIPClustersInvoke.cpp b/zzz_generated/pump-app/zap-generated/CHIPClustersInvoke.cpp new file mode 100644 index 00000000000000..7b72162bfb792d --- /dev/null +++ b/zzz_generated/pump-app/zap-generated/CHIPClustersInvoke.cpp @@ -0,0 +1,53 @@ +/* + * + * 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 + +#include "CHIPClusters.h" + +#include +#include + +namespace chip { + +using namespace app::Clusters; +using namespace System; +using namespace Encoding::LittleEndian; + +namespace Controller { + +template +CHIP_ERROR ClusterBase::InvokeCommand(const RequestDataT & requestData, void * context, + CommandResponseSuccessCallback successCb, + CommandResponseFailureCallback failureCb) +{ + VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); + ReturnErrorOnFailure(mDevice->LoadSecureSessionParametersIfNeeded()); + + auto onSuccessCb = [context, successCb](const app::ConcreteCommandPath & commandPath, const app::StatusIB & aStatus, + const ResponseDataT & responseData) { successCb(context, responseData); }; + + auto onFailureCb = [context, failureCb](const app::StatusIB & aStatus, CHIP_ERROR aError) { + failureCb(context, app::ToEmberAfStatus(aStatus.mStatus)); + }; + + return InvokeCommandRequest(mDevice->GetExchangeManager(), mDevice->GetSecureSession().Value(), mEndpoint, + requestData, onSuccessCb, onFailureCb); +}; + +} // namespace Controller +} // namespace chip diff --git a/zzz_generated/pump-app/zap-generated/CHIPClustersWrite.cpp b/zzz_generated/pump-app/zap-generated/CHIPClustersWrite.cpp new file mode 100644 index 00000000000000..2d99becde8961a --- /dev/null +++ b/zzz_generated/pump-app/zap-generated/CHIPClustersWrite.cpp @@ -0,0 +1,66 @@ +/* + * + * 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 + +#include "CHIPClusters.h" + +#include +#include + +namespace chip { + +using namespace app::Clusters; +using namespace System; +using namespace Encoding::LittleEndian; + +namespace Controller { + +// FlowMeasurement Cluster Attributes + +// PressureMeasurement Cluster Attributes + +// TemperatureMeasurement Cluster Attributes + +template +CHIP_ERROR ClusterBase::WriteAttribute(const typename AttributeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb) +{ + VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); + ReturnErrorOnFailure(mDevice->LoadSecureSessionParametersIfNeeded()); + + auto onSuccessCb = [context, successCb](const app::ConcreteAttributePath & commandPath) { + if (successCb != nullptr) + { + successCb(context); + } + }; + + auto onFailureCb = [context, failureCb](const app::ConcreteAttributePath * commandPath, app::StatusIB status, + CHIP_ERROR aError) { + if (failureCb != nullptr) + { + failureCb(context, app::ToEmberAfStatus(status.mStatus)); + } + }; + + return chip::Controller::WriteAttribute(mDevice->GetExchangeManager(), mDevice->GetSecureSession().Value(), + mEndpoint, requestData, onSuccessCb, onFailureCb); +} + +} // namespace Controller +} // namespace chip diff --git a/zzz_generated/pump-controller-app/zap-generated/CHIPClusters.cpp b/zzz_generated/pump-controller-app/zap-generated/CHIPClusters.cpp index c4c7eb956204e3..e8cc1b1544ac19 100644 --- a/zzz_generated/pump-controller-app/zap-generated/CHIPClusters.cpp +++ b/zzz_generated/pump-controller-app/zap-generated/CHIPClusters.cpp @@ -19,22 +19,7 @@ #include "CHIPClusters.h" -#include - -#include #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include #include namespace chip { @@ -518,46 +503,6 @@ CHIP_ERROR LevelControlCluster::ReadAttributeClusterRevision(Callback::Cancelabl BasicAttributeFilter); } -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::LevelControl::Commands::Move::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::LevelControl::Commands::MoveToLevel::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::LevelControl::Commands::MoveToLevelWithOnOff::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::LevelControl::Commands::MoveWithOnOff::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::LevelControl::Commands::Step::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::LevelControl::Commands::StepWithOnOff::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::LevelControl::Commands::Stop::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::LevelControl::Commands::StopWithOnOff::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - // OnOff Cluster Commands CHIP_ERROR OnOffCluster::Off(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { @@ -697,21 +642,6 @@ CHIP_ERROR OnOffCluster::ReadAttributeClusterRevision(Callback::Cancelable * onS BasicAttributeFilter); } -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::OnOff::Commands::Off::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::OnOff::Commands::On::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::OnOff::Commands::Toggle::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - // PressureMeasurement Cluster Commands // PressureMeasurement Cluster Attributes CHIP_ERROR PressureMeasurementCluster::ReadAttributeMeasuredValue(Callback::Cancelable * onSuccessCallback, @@ -884,11 +814,6 @@ CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeOperationMode(Callba BasicAttributeFilter); } -template CHIP_ERROR -ClusterBase::WriteAttribute( - const chip::app::Clusters::PumpConfigurationAndControl::Attributes::OperationMode::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - CHIP_ERROR PumpConfigurationAndControlCluster::WriteAttributeOperationMode(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t value) { @@ -980,50 +905,5 @@ CHIP_ERROR TemperatureMeasurementCluster::ReadAttributeClusterRevision(Callback: BasicAttributeFilter); } -template -CHIP_ERROR ClusterBase::InvokeCommand(const RequestDataT & requestData, void * context, - CommandResponseSuccessCallback successCb, - CommandResponseFailureCallback failureCb) -{ - VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); - ReturnErrorOnFailure(mDevice->LoadSecureSessionParametersIfNeeded()); - - auto onSuccessCb = [context, successCb](const app::ConcreteCommandPath & commandPath, const app::StatusIB & aStatus, - const ResponseDataT & responseData) { successCb(context, responseData); }; - - auto onFailureCb = [context, failureCb](const app::StatusIB & aStatus, CHIP_ERROR aError) { - failureCb(context, app::ToEmberAfStatus(aStatus.mStatus)); - }; - - return InvokeCommandRequest(mDevice->GetExchangeManager(), mDevice->GetSecureSession().Value(), mEndpoint, - requestData, onSuccessCb, onFailureCb); -}; - -template -CHIP_ERROR ClusterBase::WriteAttribute(const typename AttributeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb) -{ - VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); - ReturnErrorOnFailure(mDevice->LoadSecureSessionParametersIfNeeded()); - - auto onSuccessCb = [context, successCb](const app::ConcreteAttributePath & commandPath) { - if (successCb != nullptr) - { - successCb(context); - } - }; - - auto onFailureCb = [context, failureCb](const app::ConcreteAttributePath * commandPath, app::StatusIB status, - CHIP_ERROR aError) { - if (failureCb != nullptr) - { - failureCb(context, app::ToEmberAfStatus(status.mStatus)); - } - }; - - return chip::Controller::WriteAttribute(mDevice->GetExchangeManager(), mDevice->GetSecureSession().Value(), - mEndpoint, requestData, onSuccessCb, onFailureCb); -} - } // namespace Controller } // namespace chip diff --git a/zzz_generated/pump-controller-app/zap-generated/CHIPClustersInvoke.cpp b/zzz_generated/pump-controller-app/zap-generated/CHIPClustersInvoke.cpp new file mode 100644 index 00000000000000..2cac57f240fcf2 --- /dev/null +++ b/zzz_generated/pump-controller-app/zap-generated/CHIPClustersInvoke.cpp @@ -0,0 +1,108 @@ +/* + * + * 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 + +#include "CHIPClusters.h" + +#include +#include + +namespace chip { + +using namespace app::Clusters; +using namespace System; +using namespace Encoding::LittleEndian; + +namespace Controller { + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::LevelControl::Commands::Move::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::LevelControl::Commands::MoveToLevel::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::LevelControl::Commands::MoveToLevelWithOnOff::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::LevelControl::Commands::MoveWithOnOff::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::LevelControl::Commands::Step::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::LevelControl::Commands::StepWithOnOff::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::LevelControl::Commands::Stop::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::LevelControl::Commands::StopWithOnOff::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::OnOff::Commands::Off::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::OnOff::Commands::On::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::OnOff::Commands::Toggle::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template +CHIP_ERROR ClusterBase::InvokeCommand(const RequestDataT & requestData, void * context, + CommandResponseSuccessCallback successCb, + CommandResponseFailureCallback failureCb) +{ + VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); + ReturnErrorOnFailure(mDevice->LoadSecureSessionParametersIfNeeded()); + + auto onSuccessCb = [context, successCb](const app::ConcreteCommandPath & commandPath, const app::StatusIB & aStatus, + const ResponseDataT & responseData) { successCb(context, responseData); }; + + auto onFailureCb = [context, failureCb](const app::StatusIB & aStatus, CHIP_ERROR aError) { + failureCb(context, app::ToEmberAfStatus(aStatus.mStatus)); + }; + + return InvokeCommandRequest(mDevice->GetExchangeManager(), mDevice->GetSecureSession().Value(), mEndpoint, + requestData, onSuccessCb, onFailureCb); +}; + +} // namespace Controller +} // namespace chip diff --git a/zzz_generated/pump-controller-app/zap-generated/CHIPClustersWrite.cpp b/zzz_generated/pump-controller-app/zap-generated/CHIPClustersWrite.cpp new file mode 100644 index 00000000000000..14352ee5b8cbe0 --- /dev/null +++ b/zzz_generated/pump-controller-app/zap-generated/CHIPClustersWrite.cpp @@ -0,0 +1,77 @@ +/* + * + * 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 + +#include "CHIPClusters.h" + +#include +#include + +namespace chip { + +using namespace app::Clusters; +using namespace System; +using namespace Encoding::LittleEndian; + +namespace Controller { + +// FlowMeasurement Cluster Attributes + +// LevelControl Cluster Attributes + +// OnOff Cluster Attributes + +// PressureMeasurement Cluster Attributes + +// PumpConfigurationAndControl Cluster Attributes + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::PumpConfigurationAndControl::Attributes::OperationMode::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +// TemperatureMeasurement Cluster Attributes + +template +CHIP_ERROR ClusterBase::WriteAttribute(const typename AttributeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb) +{ + VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); + ReturnErrorOnFailure(mDevice->LoadSecureSessionParametersIfNeeded()); + + auto onSuccessCb = [context, successCb](const app::ConcreteAttributePath & commandPath) { + if (successCb != nullptr) + { + successCb(context); + } + }; + + auto onFailureCb = [context, failureCb](const app::ConcreteAttributePath * commandPath, app::StatusIB status, + CHIP_ERROR aError) { + if (failureCb != nullptr) + { + failureCb(context, app::ToEmberAfStatus(status.mStatus)); + } + }; + + return chip::Controller::WriteAttribute(mDevice->GetExchangeManager(), mDevice->GetSecureSession().Value(), + mEndpoint, requestData, onSuccessCb, onFailureCb); +} + +} // namespace Controller +} // namespace chip diff --git a/zzz_generated/temperature-measurement-app/zap-generated/CHIPClustersInvoke.cpp b/zzz_generated/temperature-measurement-app/zap-generated/CHIPClustersInvoke.cpp new file mode 100644 index 00000000000000..759d13c5028d26 --- /dev/null +++ b/zzz_generated/temperature-measurement-app/zap-generated/CHIPClustersInvoke.cpp @@ -0,0 +1,18 @@ +/* + * + * 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 diff --git a/zzz_generated/temperature-measurement-app/zap-generated/CHIPClustersWrite.cpp b/zzz_generated/temperature-measurement-app/zap-generated/CHIPClustersWrite.cpp new file mode 100644 index 00000000000000..759d13c5028d26 --- /dev/null +++ b/zzz_generated/temperature-measurement-app/zap-generated/CHIPClustersWrite.cpp @@ -0,0 +1,18 @@ +/* + * + * 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 diff --git a/zzz_generated/thermostat/zap-generated/CHIPClusters.cpp b/zzz_generated/thermostat/zap-generated/CHIPClusters.cpp index 6e44956178ade7..5ff5f30c1df707 100644 --- a/zzz_generated/thermostat/zap-generated/CHIPClusters.cpp +++ b/zzz_generated/thermostat/zap-generated/CHIPClusters.cpp @@ -19,22 +19,7 @@ #include "CHIPClusters.h" -#include - -#include #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include #include namespace chip { @@ -142,10 +127,6 @@ CHIP_ERROR IdentifyCluster::ReadAttributeIdentifyTime(Callback::Cancelable * onS BasicAttributeFilter); } -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::Identify::Attributes::IdentifyTime::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - CHIP_ERROR IdentifyCluster::WriteAttributeIdentifyTime(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t value) { @@ -181,61 +162,5 @@ CHIP_ERROR IdentifyCluster::ReadAttributeClusterRevision(Callback::Cancelable * BasicAttributeFilter); } -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::Identify::Commands::Identify::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::Identify::Commands::IdentifyQuery::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - -template -CHIP_ERROR ClusterBase::InvokeCommand(const RequestDataT & requestData, void * context, - CommandResponseSuccessCallback successCb, - CommandResponseFailureCallback failureCb) -{ - VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); - ReturnErrorOnFailure(mDevice->LoadSecureSessionParametersIfNeeded()); - - auto onSuccessCb = [context, successCb](const app::ConcreteCommandPath & commandPath, const app::StatusIB & aStatus, - const ResponseDataT & responseData) { successCb(context, responseData); }; - - auto onFailureCb = [context, failureCb](const app::StatusIB & aStatus, CHIP_ERROR aError) { - failureCb(context, app::ToEmberAfStatus(aStatus.mStatus)); - }; - - return InvokeCommandRequest(mDevice->GetExchangeManager(), mDevice->GetSecureSession().Value(), mEndpoint, - requestData, onSuccessCb, onFailureCb); -}; - -template -CHIP_ERROR ClusterBase::WriteAttribute(const typename AttributeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb) -{ - VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); - ReturnErrorOnFailure(mDevice->LoadSecureSessionParametersIfNeeded()); - - auto onSuccessCb = [context, successCb](const app::ConcreteAttributePath & commandPath) { - if (successCb != nullptr) - { - successCb(context); - } - }; - - auto onFailureCb = [context, failureCb](const app::ConcreteAttributePath * commandPath, app::StatusIB status, - CHIP_ERROR aError) { - if (failureCb != nullptr) - { - failureCb(context, app::ToEmberAfStatus(status.mStatus)); - } - }; - - return chip::Controller::WriteAttribute(mDevice->GetExchangeManager(), mDevice->GetSecureSession().Value(), - mEndpoint, requestData, onSuccessCb, onFailureCb); -} - } // namespace Controller } // namespace chip diff --git a/zzz_generated/thermostat/zap-generated/CHIPClustersInvoke.cpp b/zzz_generated/thermostat/zap-generated/CHIPClustersInvoke.cpp new file mode 100644 index 00000000000000..0cf4406f57cb50 --- /dev/null +++ b/zzz_generated/thermostat/zap-generated/CHIPClustersInvoke.cpp @@ -0,0 +1,64 @@ +/* + * + * 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 + +#include "CHIPClusters.h" + +#include +#include + +namespace chip { + +using namespace app::Clusters; +using namespace System; +using namespace Encoding::LittleEndian; + +namespace Controller { + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::Identify::Commands::Identify::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::Identify::Commands::IdentifyQuery::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template +CHIP_ERROR ClusterBase::InvokeCommand(const RequestDataT & requestData, void * context, + CommandResponseSuccessCallback successCb, + CommandResponseFailureCallback failureCb) +{ + VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); + ReturnErrorOnFailure(mDevice->LoadSecureSessionParametersIfNeeded()); + + auto onSuccessCb = [context, successCb](const app::ConcreteCommandPath & commandPath, const app::StatusIB & aStatus, + const ResponseDataT & responseData) { successCb(context, responseData); }; + + auto onFailureCb = [context, failureCb](const app::StatusIB & aStatus, CHIP_ERROR aError) { + failureCb(context, app::ToEmberAfStatus(aStatus.mStatus)); + }; + + return InvokeCommandRequest(mDevice->GetExchangeManager(), mDevice->GetSecureSession().Value(), mEndpoint, + requestData, onSuccessCb, onFailureCb); +}; + +} // namespace Controller +} // namespace chip diff --git a/zzz_generated/thermostat/zap-generated/CHIPClustersWrite.cpp b/zzz_generated/thermostat/zap-generated/CHIPClustersWrite.cpp new file mode 100644 index 00000000000000..fd53e2d427638a --- /dev/null +++ b/zzz_generated/thermostat/zap-generated/CHIPClustersWrite.cpp @@ -0,0 +1,66 @@ +/* + * + * 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 + +#include "CHIPClusters.h" + +#include +#include + +namespace chip { + +using namespace app::Clusters; +using namespace System; +using namespace Encoding::LittleEndian; + +namespace Controller { + +// Identify Cluster Attributes + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Identify::Attributes::IdentifyTime::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template +CHIP_ERROR ClusterBase::WriteAttribute(const typename AttributeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb) +{ + VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); + ReturnErrorOnFailure(mDevice->LoadSecureSessionParametersIfNeeded()); + + auto onSuccessCb = [context, successCb](const app::ConcreteAttributePath & commandPath) { + if (successCb != nullptr) + { + successCb(context); + } + }; + + auto onFailureCb = [context, failureCb](const app::ConcreteAttributePath * commandPath, app::StatusIB status, + CHIP_ERROR aError) { + if (failureCb != nullptr) + { + failureCb(context, app::ToEmberAfStatus(status.mStatus)); + } + }; + + return chip::Controller::WriteAttribute(mDevice->GetExchangeManager(), mDevice->GetSecureSession().Value(), + mEndpoint, requestData, onSuccessCb, onFailureCb); +} + +} // namespace Controller +} // namespace chip diff --git a/zzz_generated/tv-app/zap-generated/CHIPClusters.cpp b/zzz_generated/tv-app/zap-generated/CHIPClusters.cpp index 6469e16bbb1655..02ceb646da1533 100644 --- a/zzz_generated/tv-app/zap-generated/CHIPClusters.cpp +++ b/zzz_generated/tv-app/zap-generated/CHIPClusters.cpp @@ -19,22 +19,7 @@ #include "CHIPClusters.h" -#include - -#include #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include #include namespace chip { @@ -198,10 +183,6 @@ CHIP_ERROR GeneralCommissioningCluster::ReadAttributeBreadcrumb(Callback::Cancel BasicAttributeFilter); } -template CHIP_ERROR ClusterBase::WriteAttribute( - const chip::app::Clusters::GeneralCommissioning::Attributes::Breadcrumb::TypeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); - CHIP_ERROR GeneralCommissioningCluster::WriteAttributeBreadcrumb(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint64_t value) { @@ -237,28 +218,6 @@ CHIP_ERROR GeneralCommissioningCluster::ReadAttributeClusterRevision(Callback::C BasicAttributeFilter); } -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::GeneralCommissioning::Commands::ArmFailSafe::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::GeneralCommissioning::Commands::CommissioningComplete::Type &, void *, - CommandResponseSuccessCallback< - chip::app::Clusters::GeneralCommissioning::Commands::CommissioningCompleteResponse::DecodableType>, - CommandResponseFailureCallback); - -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::GeneralCommissioning::Commands::SetRegulatoryConfig::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - // NetworkCommissioning Cluster Commands CHIP_ERROR NetworkCommissioningCluster::DisableNetwork(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, chip::ByteSpan networkID, @@ -501,40 +460,6 @@ CHIP_ERROR NetworkCommissioningCluster::ReadAttributeClusterRevision(Callback::C BasicAttributeFilter); } -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::NetworkCommissioning::Commands::DisableNetwork::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::NetworkCommissioning::Commands::EnableNetwork::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::NetworkCommissioning::Commands::GetLastNetworkCommissioningResult::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::NetworkCommissioning::Commands::RemoveNetwork::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::NetworkCommissioning::Commands::ScanNetworks::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - // OperationalCredentials Cluster Commands CHIP_ERROR OperationalCredentialsCluster::AddNOC(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, chip::ByteSpan NOCValue, chip::ByteSpan ICACValue, chip::ByteSpan IPKValue, @@ -901,94 +826,5 @@ CHIP_ERROR OperationalCredentialsCluster::ReadAttributeClusterRevision(Callback: BasicAttributeFilter); } -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::OperationalCredentials::Commands::AddNOC::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::OperationalCredentials::Commands::AddTrustedRootCertificate::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); - -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::OperationalCredentials::Commands::AttestationRequest::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - -template CHIP_ERROR -ClusterBase::InvokeCommand( - const chip::app::Clusters::OperationalCredentials::Commands::CertificateChainRequest::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::OperationalCredentials::Commands::OpCSRRequest::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::OperationalCredentials::Commands::RemoveFabric::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - -template CHIP_ERROR ClusterBase::InvokeCommand( - const chip::app::Clusters::OperationalCredentials::Commands::UpdateFabricLabel::Type &, void *, - CommandResponseSuccessCallback, - CommandResponseFailureCallback); - -template -CHIP_ERROR ClusterBase::InvokeCommand(const RequestDataT & requestData, void * context, - CommandResponseSuccessCallback successCb, - CommandResponseFailureCallback failureCb) -{ - VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); - ReturnErrorOnFailure(mDevice->LoadSecureSessionParametersIfNeeded()); - - auto onSuccessCb = [context, successCb](const app::ConcreteCommandPath & commandPath, const app::StatusIB & aStatus, - const ResponseDataT & responseData) { successCb(context, responseData); }; - - auto onFailureCb = [context, failureCb](const app::StatusIB & aStatus, CHIP_ERROR aError) { - failureCb(context, app::ToEmberAfStatus(aStatus.mStatus)); - }; - - return InvokeCommandRequest(mDevice->GetExchangeManager(), mDevice->GetSecureSession().Value(), mEndpoint, - requestData, onSuccessCb, onFailureCb); -}; - -template -CHIP_ERROR ClusterBase::WriteAttribute(const typename AttributeInfo::Type & requestData, void * context, - WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb) -{ - VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); - ReturnErrorOnFailure(mDevice->LoadSecureSessionParametersIfNeeded()); - - auto onSuccessCb = [context, successCb](const app::ConcreteAttributePath & commandPath) { - if (successCb != nullptr) - { - successCb(context); - } - }; - - auto onFailureCb = [context, failureCb](const app::ConcreteAttributePath * commandPath, app::StatusIB status, - CHIP_ERROR aError) { - if (failureCb != nullptr) - { - failureCb(context, app::ToEmberAfStatus(status.mStatus)); - } - }; - - return chip::Controller::WriteAttribute(mDevice->GetExchangeManager(), mDevice->GetSecureSession().Value(), - mEndpoint, requestData, onSuccessCb, onFailureCb); -} - } // namespace Controller } // namespace chip diff --git a/zzz_generated/tv-app/zap-generated/CHIPClustersInvoke.cpp b/zzz_generated/tv-app/zap-generated/CHIPClustersInvoke.cpp new file mode 100644 index 00000000000000..639acebad3b823 --- /dev/null +++ b/zzz_generated/tv-app/zap-generated/CHIPClustersInvoke.cpp @@ -0,0 +1,153 @@ +/* + * + * 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 + +#include "CHIPClusters.h" + +#include +#include + +namespace chip { + +using namespace app::Clusters; +using namespace System; +using namespace Encoding::LittleEndian; + +namespace Controller { + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::GeneralCommissioning::Commands::ArmFailSafe::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::GeneralCommissioning::Commands::CommissioningComplete::Type &, void *, + CommandResponseSuccessCallback< + chip::app::Clusters::GeneralCommissioning::Commands::CommissioningCompleteResponse::DecodableType>, + CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::GeneralCommissioning::Commands::SetRegulatoryConfig::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::NetworkCommissioning::Commands::DisableNetwork::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::NetworkCommissioning::Commands::EnableNetwork::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::NetworkCommissioning::Commands::GetLastNetworkCommissioningResult::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::NetworkCommissioning::Commands::RemoveNetwork::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::NetworkCommissioning::Commands::ScanNetworks::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::OperationalCredentials::Commands::AddNOC::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::OperationalCredentials::Commands::AddTrustedRootCertificate::Type &, void *, + CommandResponseSuccessCallback, CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::OperationalCredentials::Commands::AttestationRequest::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template CHIP_ERROR +ClusterBase::InvokeCommand( + const chip::app::Clusters::OperationalCredentials::Commands::CertificateChainRequest::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::OperationalCredentials::Commands::OpCSRRequest::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::OperationalCredentials::Commands::RemoveFabric::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template CHIP_ERROR ClusterBase::InvokeCommand( + const chip::app::Clusters::OperationalCredentials::Commands::UpdateFabricLabel::Type &, void *, + CommandResponseSuccessCallback, + CommandResponseFailureCallback); + +template +CHIP_ERROR ClusterBase::InvokeCommand(const RequestDataT & requestData, void * context, + CommandResponseSuccessCallback successCb, + CommandResponseFailureCallback failureCb) +{ + VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); + ReturnErrorOnFailure(mDevice->LoadSecureSessionParametersIfNeeded()); + + auto onSuccessCb = [context, successCb](const app::ConcreteCommandPath & commandPath, const app::StatusIB & aStatus, + const ResponseDataT & responseData) { successCb(context, responseData); }; + + auto onFailureCb = [context, failureCb](const app::StatusIB & aStatus, CHIP_ERROR aError) { + failureCb(context, app::ToEmberAfStatus(aStatus.mStatus)); + }; + + return InvokeCommandRequest(mDevice->GetExchangeManager(), mDevice->GetSecureSession().Value(), mEndpoint, + requestData, onSuccessCb, onFailureCb); +}; + +} // namespace Controller +} // namespace chip diff --git a/zzz_generated/tv-app/zap-generated/CHIPClustersWrite.cpp b/zzz_generated/tv-app/zap-generated/CHIPClustersWrite.cpp new file mode 100644 index 00000000000000..3fab7369ccfc79 --- /dev/null +++ b/zzz_generated/tv-app/zap-generated/CHIPClustersWrite.cpp @@ -0,0 +1,70 @@ +/* + * + * 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 + +#include "CHIPClusters.h" + +#include +#include + +namespace chip { + +using namespace app::Clusters; +using namespace System; +using namespace Encoding::LittleEndian; + +namespace Controller { + +// GeneralCommissioning Cluster Attributes + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::GeneralCommissioning::Attributes::Breadcrumb::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +// NetworkCommissioning Cluster Attributes + +// OperationalCredentials Cluster Attributes + +template +CHIP_ERROR ClusterBase::WriteAttribute(const typename AttributeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb) +{ + VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); + ReturnErrorOnFailure(mDevice->LoadSecureSessionParametersIfNeeded()); + + auto onSuccessCb = [context, successCb](const app::ConcreteAttributePath & commandPath) { + if (successCb != nullptr) + { + successCb(context); + } + }; + + auto onFailureCb = [context, failureCb](const app::ConcreteAttributePath * commandPath, app::StatusIB status, + CHIP_ERROR aError) { + if (failureCb != nullptr) + { + failureCb(context, app::ToEmberAfStatus(status.mStatus)); + } + }; + + return chip::Controller::WriteAttribute(mDevice->GetExchangeManager(), mDevice->GetSecureSession().Value(), + mEndpoint, requestData, onSuccessCb, onFailureCb); +} + +} // namespace Controller +} // namespace chip diff --git a/zzz_generated/tv-casting-app/zap-generated/CHIPClustersInvoke.cpp b/zzz_generated/tv-casting-app/zap-generated/CHIPClustersInvoke.cpp new file mode 100644 index 00000000000000..759d13c5028d26 --- /dev/null +++ b/zzz_generated/tv-casting-app/zap-generated/CHIPClustersInvoke.cpp @@ -0,0 +1,18 @@ +/* + * + * 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 diff --git a/zzz_generated/tv-casting-app/zap-generated/CHIPClustersWrite.cpp b/zzz_generated/tv-casting-app/zap-generated/CHIPClustersWrite.cpp new file mode 100644 index 00000000000000..759d13c5028d26 --- /dev/null +++ b/zzz_generated/tv-casting-app/zap-generated/CHIPClustersWrite.cpp @@ -0,0 +1,18 @@ +/* + * + * 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 diff --git a/zzz_generated/window-app/zap-generated/CHIPClustersInvoke.cpp b/zzz_generated/window-app/zap-generated/CHIPClustersInvoke.cpp new file mode 100644 index 00000000000000..759d13c5028d26 --- /dev/null +++ b/zzz_generated/window-app/zap-generated/CHIPClustersInvoke.cpp @@ -0,0 +1,18 @@ +/* + * + * 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 diff --git a/zzz_generated/window-app/zap-generated/CHIPClustersWrite.cpp b/zzz_generated/window-app/zap-generated/CHIPClustersWrite.cpp new file mode 100644 index 00000000000000..759d13c5028d26 --- /dev/null +++ b/zzz_generated/window-app/zap-generated/CHIPClustersWrite.cpp @@ -0,0 +1,18 @@ +/* + * + * 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