diff --git a/examples/chip-tool/templates/partials/test_cluster.zapt b/examples/chip-tool/templates/partials/test_cluster.zapt index ee1ae1a4f03715..3c6c6818b88631 100644 --- a/examples/chip-tool/templates/partials/test_cluster.zapt +++ b/examples/chip-tool/templates/partials/test_cluster.zapt @@ -60,21 +60,31 @@ class {{filename}}: public TestCommand {{#unless (isTestOnlyCluster cluster)}} {{#unless isWait}} {{#unless isCommand}} + {{#unless isWriteAttribute}} chip::Callback::CallbackfailureArguments}})> {{>failureCallback}} { {{>failureResponse}}, this }; chip::Callback::CallbacksuccessArguments}})> {{>successCallback}} { {{>successResponse}}, this }; {{/unless}} {{/unless}} {{/unless}} + {{/unless}} {{/chip_tests_items}} {{#chip_tests_items}} {{#unless (isTestOnlyCluster cluster)}} {{#unless isWait}} {{#unless isCommand}} + {{#if isWriteAttribute}} + static void {{>failureResponse}}(void * context, EmberAfStatus status) + { + (static_cast<{{filename}} *>(context))->OnFailureResponse_{{index}}(chip::to_underlying(status)); + } + {{else}} static void {{>failureResponse}}({{> failureArguments}}) { (static_cast<{{filename}} *>(context))->OnFailureResponse_{{index}}(status); } + {{/if}} + static void {{>successResponse}}({{> successArguments}}) { @@ -146,8 +156,15 @@ class {{filename}}: public TestCommand {{>commandValue ns=parent.cluster ignore=true container=(concat (asLowerCamelCase name) "Argument") definedValue=definedValue}} {{/chip_tests_item_parameters}} - {{~#*inline "commandName"}}{{asUpperCamelCase commandName}}{{#if isAttribute}}Attribute{{asUpperCamelCase attribute}}{{/if}}{{/inline}} - {{#if async}}ReturnErrorOnFailure({{else}}return {{/if}}cluster.{{>commandName}}({{>successCallback}}.Cancel(){{#unless isWaitForReport}}, {{>failureCallback}}.Cancel(){{/unless}}{{#chip_tests_item_parameters}}, {{asLowerCamelCase name}}Argument{{/chip_tests_item_parameters}}){{#if async}}){{/if}}; + {{#if isWriteAttribute}} + {{#*inline "failureResponse"}}OnFailureCallback_{{index}}{{/inline}} + {{#*inline "successResponse"}}OnSuccessCallback_{{index}}{{/inline}} + {{#if async}}ReturnErrorOnFailure({{else}}return {{/if}}cluster.WriteAttribute({{#chip_tests_item_parameters}}{{asLowerCamelCase name}}Argument, {{/chip_tests_item_parameters}}this, {{>successResponse}}, {{>failureResponse}}){{#if async}}){{/if}}; + {{else}} + {{~#*inline "commandName"}}{{asUpperCamelCase commandName}}{{#if isAttribute}}Attribute{{asUpperCamelCase attribute}}{{/if}}{{/inline}} + {{#if async}}ReturnErrorOnFailure({{else}}return {{/if}}cluster.{{>commandName}}({{>successCallback}}.Cancel(){{#unless isWaitForReport}}, {{>failureCallback}}.Cancel(){{/unless}}{{#chip_tests_item_parameters}}, {{asLowerCamelCase name}}Argument{{/chip_tests_item_parameters}}){{#if async}}){{/if}}; + {{/if}} + {{/if}} {{#if async}}return WaitForMs(0);{{/if}} } diff --git a/src/app/WriteClient.h b/src/app/WriteClient.h index ecdba66a764630..7629bb682522a7 100644 --- a/src/app/WriteClient.h +++ b/src/app/WriteClient.h @@ -25,6 +25,7 @@ #include #include #include +#include #include #include #include diff --git a/src/app/chip_data_model.gni b/src/app/chip_data_model.gni index bf89177867fea7..f676f582969223 100644 --- a/src/app/chip_data_model.gni +++ b/src/app/chip_data_model.gni @@ -178,6 +178,7 @@ template("chip_data_model") { sources += [ "${invoker.zap_pregenerated_dir}/tests/CHIPClustersTest.cpp", "${invoker.zap_pregenerated_dir}/tests/CHIPClustersTest.h", + "${invoker.zap_pregenerated_dir}/tests/CHIPClustersTestWrite.cpp", ] } } diff --git a/src/app/tests/suites/templates/templates.json b/src/app/tests/suites/templates/templates.json index c89feb38d74ba5..25969ba92b180c 100644 --- a/src/app/tests/suites/templates/templates.json +++ b/src/app/tests/suites/templates/templates.json @@ -23,6 +23,11 @@ "path": "../../../zap-templates/templates/app/tests/CHIPClusters-src.zapt", "name": "Tests C++ API", "output": "tests/CHIPClustersTest.cpp" + }, + { + "path": "../../../zap-templates/templates/app/tests/CHIPClustersWrite-src.zapt", + "name": "Tests WriteAttribute instantiations", + "output": "tests/CHIPClustersTestWrite.cpp" } ] } diff --git a/src/app/zap-templates/common/ClusterTestGeneration.js b/src/app/zap-templates/common/ClusterTestGeneration.js index 38c03871320e44..326cec63461e0b 100644 --- a/src/app/zap-templates/common/ClusterTestGeneration.js +++ b/src/app/zap-templates/common/ClusterTestGeneration.js @@ -545,6 +545,9 @@ function chip_tests_item_response_parameters(options) const responseValues = this.response.values.slice(); const promise = assertCommandOrAttribute(this).then(item => { + if (this.isWriteAttribute) { + return []; + } const responseArgs = item.response.arguments; const responses = responseArgs.map(responseArg => { diff --git a/src/app/zap-templates/templates/app/tests/CHIPClustersWrite-src.zapt b/src/app/zap-templates/templates/app/tests/CHIPClustersWrite-src.zapt new file mode 100644 index 00000000000000..5068082e472513 --- /dev/null +++ b/src/app/zap-templates/templates/app/tests/CHIPClustersWrite-src.zapt @@ -0,0 +1,50 @@ +{{#if (chip_has_client_clusters)}} +{{> header}} + +#include + +#include + +namespace chip { +namespace Controller { + +{{#chip_client_clusters}} + +{{#chip_server_cluster_attributes}} +{{#unless 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); +{{/unless}} +{{/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/src/controller/data_model/BUILD.gn b/src/controller/data_model/BUILD.gn index 22548afecd4531..48fb1a9fd6d4e6 100644 --- a/src/controller/data_model/BUILD.gn +++ b/src/controller/data_model/BUILD.gn @@ -22,7 +22,12 @@ chip_data_model("data_model") { zap_pregenerated_dir = "${chip_root}/zzz_generated/controller-clusters/zap-generated" - use_tests_apis = true + # On Android, we don't really need the tests APIs, and the compiler has + # trouble compiling some of those files anyway. + # + # TODO: This should default to false and consumers should opt in to it + # as needed. + use_tests_apis = current_os != "android" use_default_client_callbacks = true allow_circular_includes_from = [ "${chip_root}/src/controller" ] } diff --git a/src/darwin/Framework/CHIP.xcodeproj/project.pbxproj b/src/darwin/Framework/CHIP.xcodeproj/project.pbxproj index 951051f1d7b71d..db9a78c3d7dc4f 100644 --- a/src/darwin/Framework/CHIP.xcodeproj/project.pbxproj +++ b/src/darwin/Framework/CHIP.xcodeproj/project.pbxproj @@ -55,6 +55,7 @@ 2F79A67726CE6672006377B0 /* im-client-callbacks.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 2F79A67626CE6672006377B0 /* im-client-callbacks.cpp */; }; 2FD775552695557E00FF4B12 /* error-mapping.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 2FD775542695557E00FF4B12 /* error-mapping.cpp */; }; 5129BCFD26A9EE3300122DDF /* CHIPError.h in Headers */ = {isa = PBXBuildFile; fileRef = 5129BCFC26A9EE3300122DDF /* CHIPError.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 515CCFD227351183002A3C82 /* CHIPClustersTestWrite.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 515CCFD127351183002A3C82 /* CHIPClustersTestWrite.cpp */; }; 991DC0842475F45400C13860 /* CHIPDeviceController.h in Headers */ = {isa = PBXBuildFile; fileRef = 991DC0822475F45400C13860 /* CHIPDeviceController.h */; settings = {ATTRIBUTES = (Public, ); }; }; 991DC0892475F47D00C13860 /* CHIPDeviceController.mm in Sources */ = {isa = PBXBuildFile; fileRef = 991DC0872475F47D00C13860 /* CHIPDeviceController.mm */; }; 991DC08B247704DC00C13860 /* CHIPLogging.h in Headers */ = {isa = PBXBuildFile; fileRef = 991DC08A247704DC00C13860 /* CHIPLogging.h */; }; @@ -141,6 +142,7 @@ 2F79A67626CE6672006377B0 /* im-client-callbacks.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = "im-client-callbacks.cpp"; path = "../../../app/util/im-client-callbacks.cpp"; sourceTree = ""; }; 2FD775542695557E00FF4B12 /* error-mapping.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = "error-mapping.cpp"; path = "../../../app/util/error-mapping.cpp"; sourceTree = ""; }; 5129BCFC26A9EE3300122DDF /* CHIPError.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = CHIPError.h; path = CHIP/CHIPError.h; sourceTree = ""; }; + 515CCFD127351183002A3C82 /* CHIPClustersTestWrite.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; name = CHIPClustersTestWrite.cpp; path = "../../../zzz_generated/controller-clusters/zap-generated/tests/CHIPClustersTestWrite.cpp"; sourceTree = ""; }; 991DC0822475F45400C13860 /* CHIPDeviceController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CHIPDeviceController.h; sourceTree = ""; }; 991DC0872475F47D00C13860 /* CHIPDeviceController.mm */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.objcpp; path = CHIPDeviceController.mm; sourceTree = ""; }; 991DC08A247704DC00C13860 /* CHIPLogging.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CHIPLogging.h; sourceTree = ""; }; @@ -240,6 +242,7 @@ B20252832459E34F00F97062 = { isa = PBXGroup; children = ( + 515CCFD127351183002A3C82 /* CHIPClustersTestWrite.cpp */, 5129BCFC26A9EE3300122DDF /* CHIPError.h */, BA107AEE2470CFBB004287EB /* chip_xcode_build_connector.sh */, B202528F2459E34F00F97062 /* CHIP */, @@ -478,6 +481,7 @@ isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( + 515CCFD227351183002A3C82 /* CHIPClustersTestWrite.cpp in Sources */, 2C8C8FC2253E0C2100797F05 /* CHIPPersistentStorageDelegateBridge.mm in Sources */, 2CB7163C252E8A7C0026E2BB /* CHIPDevicePairingDelegateBridge.mm in Sources */, 997DED162695343400975E97 /* CHIPThreadOperationalDataset.mm in Sources */, diff --git a/zzz_generated/chip-tool/zap-generated/test/Commands.h b/zzz_generated/chip-tool/zap-generated/test/Commands.h index 3a8db4eb648c78..eee8515be32114 100644 --- a/zzz_generated/chip-tool/zap-generated/test/Commands.h +++ b/zzz_generated/chip-tool/zap-generated/test/Commands.h @@ -79,8 +79,6 @@ class Test_TC_BI_1_1 : public TestCommand chip::Callback::Callback mOnFailureCallback_0{ OnFailureCallback_0, this }; chip::Callback::Callback mOnSuccessCallback_0{ OnSuccessCallback_0, this }; - chip::Callback::Callback mOnFailureCallback_1{ OnFailureCallback_1, this }; - chip::Callback::Callback mOnSuccessCallback_1{ OnSuccessCallback_1, this }; chip::Callback::Callback mOnFailureCallback_2{ OnFailureCallback_2, this }; chip::Callback::Callback mOnSuccessCallback_2{ OnSuccessCallback_2, this }; @@ -94,15 +92,12 @@ class Test_TC_BI_1_1 : public TestCommand (static_cast(context))->OnSuccessResponse_0(clusterRevision); } - static void OnFailureCallback_1(void * context, uint8_t status) + static void OnFailureCallback_1(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); } - static void OnSuccessCallback_1(void * context, uint16_t clusterRevision) - { - (static_cast(context))->OnSuccessResponse_1(clusterRevision); - } + static void OnSuccessCallback_1(void * context) { (static_cast(context))->OnSuccessResponse_1(); } static void OnFailureCallback_2(void * context, uint8_t status) { @@ -142,13 +137,13 @@ class Test_TC_BI_1_1 : public TestCommand uint16_t clusterRevisionArgument; clusterRevisionArgument = 1U; - return cluster.WriteAttributeClusterRevision(mOnSuccessCallback_1.Cancel(), mOnFailureCallback_1.Cancel(), - clusterRevisionArgument); + return cluster.WriteAttribute( + clusterRevisionArgument, this, OnSuccessCallback_1, OnFailureCallback_1); } void OnFailureResponse_1(uint8_t status) { NextTest(); } - void OnSuccessResponse_1(uint16_t clusterRevision) { ThrowSuccessResponse(); } + void OnSuccessResponse_1() { ThrowSuccessResponse(); } CHIP_ERROR TestReadsBackGlobalAttributeClusterRevision_2() { @@ -261,22 +256,16 @@ class Test_TC_BI_2_1 : public TestCommand chip::Callback::Callback mOnSuccessCallback_0{ OnSuccessCallback_0, this }; chip::Callback::Callback mOnFailureCallback_1{ OnFailureCallback_1, this }; chip::Callback::Callback mOnSuccessCallback_1{ OnSuccessCallback_1, this }; - chip::Callback::Callback mOnFailureCallback_2{ OnFailureCallback_2, this }; - chip::Callback::Callback mOnSuccessCallback_2{ OnSuccessCallback_2, this }; chip::Callback::Callback mOnFailureCallback_3{ OnFailureCallback_3, this }; chip::Callback::Callback mOnSuccessCallback_3{ OnSuccessCallback_3, this }; chip::Callback::Callback mOnFailureCallback_4{ OnFailureCallback_4, this }; chip::Callback::Callback mOnSuccessCallback_4{ OnSuccessCallback_4, this }; - chip::Callback::Callback mOnFailureCallback_5{ OnFailureCallback_5, this }; - chip::Callback::Callback mOnSuccessCallback_5{ OnSuccessCallback_5, this }; chip::Callback::Callback mOnFailureCallback_6{ OnFailureCallback_6, this }; chip::Callback::Callback mOnSuccessCallback_6{ OnSuccessCallback_6, this }; chip::Callback::Callback mOnFailureCallback_7{ OnFailureCallback_7, this }; chip::Callback::Callback mOnSuccessCallback_7{ OnSuccessCallback_7, this }; chip::Callback::Callback mOnFailureCallback_8{ OnFailureCallback_8, this }; chip::Callback::Callback mOnSuccessCallback_8{ OnSuccessCallback_8, this }; - chip::Callback::Callback mOnFailureCallback_9{ OnFailureCallback_9, this }; - chip::Callback::Callback mOnSuccessCallback_9{ OnSuccessCallback_9, this }; chip::Callback::Callback mOnFailureCallback_10{ OnFailureCallback_10, this }; chip::Callback::Callback mOnSuccessCallback_10{ OnSuccessCallback_10, this }; @@ -300,15 +289,12 @@ class Test_TC_BI_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_1(outOfService); } - static void OnFailureCallback_2(void * context, uint8_t status) + static void OnFailureCallback_2(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); } - static void OnSuccessCallback_2(void * context, bool outOfService) - { - (static_cast(context))->OnSuccessResponse_2(outOfService); - } + static void OnSuccessCallback_2(void * context) { (static_cast(context))->OnSuccessResponse_2(); } static void OnFailureCallback_3(void * context, uint8_t status) { @@ -330,15 +316,12 @@ class Test_TC_BI_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_4(presentValue); } - static void OnFailureCallback_5(void * context, uint8_t status) + static void OnFailureCallback_5(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_5(status); + (static_cast(context))->OnFailureResponse_5(chip::to_underlying(status)); } - static void OnSuccessCallback_5(void * context, bool presentValue) - { - (static_cast(context))->OnSuccessResponse_5(presentValue); - } + static void OnSuccessCallback_5(void * context) { (static_cast(context))->OnSuccessResponse_5(); } static void OnFailureCallback_6(void * context, uint8_t status) { @@ -370,15 +353,12 @@ class Test_TC_BI_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_8(statusFlags); } - static void OnFailureCallback_9(void * context, uint8_t status) + static void OnFailureCallback_9(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_9(status); + (static_cast(context))->OnFailureResponse_9(chip::to_underlying(status)); } - static void OnSuccessCallback_9(void * context, uint8_t statusFlags) - { - (static_cast(context))->OnSuccessResponse_9(statusFlags); - } + static void OnSuccessCallback_9(void * context) { (static_cast(context))->OnSuccessResponse_9(); } static void OnFailureCallback_10(void * context, uint8_t status) { @@ -434,13 +414,13 @@ class Test_TC_BI_2_1 : public TestCommand bool outOfServiceArgument; outOfServiceArgument = 0; - return cluster.WriteAttributeOutOfService(mOnSuccessCallback_2.Cancel(), mOnFailureCallback_2.Cancel(), - outOfServiceArgument); + return cluster.WriteAttribute( + outOfServiceArgument, this, OnSuccessCallback_2, OnFailureCallback_2); } void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_2(bool outOfService) { NextTest(); } + void OnSuccessResponse_2() { NextTest(); } CHIP_ERROR TestReadsBackTheMandatoryNonGlobalAttributeOutOfService_3() { @@ -482,13 +462,13 @@ class Test_TC_BI_2_1 : public TestCommand bool presentValueArgument; presentValueArgument = 0; - return cluster.WriteAttributePresentValue(mOnSuccessCallback_5.Cancel(), mOnFailureCallback_5.Cancel(), - presentValueArgument); + return cluster.WriteAttribute( + presentValueArgument, this, OnSuccessCallback_5, OnFailureCallback_5); } void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_5(bool presentValue) { NextTest(); } + void OnSuccessResponse_5() { NextTest(); } CHIP_ERROR TestReadsBackTheMandatoryNonGlobalAttributePresentValue_6() { @@ -547,12 +527,13 @@ class Test_TC_BI_2_1 : public TestCommand uint8_t statusFlagsArgument; statusFlagsArgument = 0; - return cluster.WriteAttributeStatusFlags(mOnSuccessCallback_9.Cancel(), mOnFailureCallback_9.Cancel(), statusFlagsArgument); + return cluster.WriteAttribute( + statusFlagsArgument, this, OnSuccessCallback_9, OnFailureCallback_9); } void OnFailureResponse_9(uint8_t status) { NextTest(); } - void OnSuccessResponse_9(uint8_t statusFlags) { ThrowSuccessResponse(); } + void OnSuccessResponse_9() { ThrowSuccessResponse(); } CHIP_ERROR TestReadsBackTheMandatoryNonGlobalAttributeStatusFlags_10() { @@ -619,18 +600,12 @@ class Test_TC_CC_1_1 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 1; - chip::Callback::Callback mOnFailureCallback_0{ OnFailureCallback_0, this }; - chip::Callback::Callback mOnSuccessCallback_0{ OnSuccessCallback_0, this }; - - static void OnFailureCallback_0(void * context, uint8_t status) + static void OnFailureCallback_0(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(status); + (static_cast(context))->OnFailureResponse_0(chip::to_underlying(status)); } - static void OnSuccessCallback_0(void * context, uint16_t clusterRevision) - { - (static_cast(context))->OnSuccessResponse_0(clusterRevision); - } + static void OnSuccessCallback_0(void * context) { (static_cast(context))->OnSuccessResponse_0(); } // // Tests methods @@ -644,13 +619,13 @@ class Test_TC_CC_1_1 : public TestCommand uint16_t clusterRevisionArgument; clusterRevisionArgument = 4U; - return cluster.WriteAttributeClusterRevision(mOnSuccessCallback_0.Cancel(), mOnFailureCallback_0.Cancel(), - clusterRevisionArgument); + return cluster.WriteAttribute( + clusterRevisionArgument, this, OnSuccessCallback_0, OnFailureCallback_0); } void OnFailureResponse_0(uint8_t status) { NextTest(); } - void OnSuccessResponse_0(uint16_t clusterRevision) { ThrowSuccessResponse(); } + void OnSuccessResponse_0() { ThrowSuccessResponse(); } }; class Test_TC_CC_2_1 : public TestCommand @@ -1289,32 +1264,24 @@ class Test_TC_CC_2_1 : public TestCommand chip::Callback::Callback mOnSuccessCallback_0{ OnSuccessCallback_0, this }; chip::Callback::Callback mOnFailureCallback_1{ OnFailureCallback_1, this }; chip::Callback::Callback mOnSuccessCallback_1{ OnSuccessCallback_1, this }; - chip::Callback::Callback mOnFailureCallback_2{ OnFailureCallback_2, this }; - chip::Callback::Callback mOnSuccessCallback_2{ OnSuccessCallback_2, this }; chip::Callback::Callback mOnFailureCallback_3{ OnFailureCallback_3, this }; chip::Callback::Callback mOnSuccessCallback_3{ OnSuccessCallback_3, this }; chip::Callback::Callback mOnFailureCallback_4{ OnFailureCallback_4, this }; chip::Callback::Callback mOnSuccessCallback_4{ OnSuccessCallback_4, this }; chip::Callback::Callback mOnFailureCallback_5{ OnFailureCallback_5, this }; chip::Callback::Callback mOnSuccessCallback_5{ OnSuccessCallback_5, this }; - chip::Callback::Callback mOnFailureCallback_6{ OnFailureCallback_6, this }; - chip::Callback::Callback mOnSuccessCallback_6{ OnSuccessCallback_6, this }; chip::Callback::Callback mOnFailureCallback_7{ OnFailureCallback_7, this }; chip::Callback::Callback mOnSuccessCallback_7{ OnSuccessCallback_7, this }; chip::Callback::Callback mOnFailureCallback_8{ OnFailureCallback_8, this }; chip::Callback::Callback mOnSuccessCallback_8{ OnSuccessCallback_8, this }; chip::Callback::Callback mOnFailureCallback_9{ OnFailureCallback_9, this }; chip::Callback::Callback mOnSuccessCallback_9{ OnSuccessCallback_9, this }; - chip::Callback::Callback mOnFailureCallback_10{ OnFailureCallback_10, this }; - chip::Callback::Callback mOnSuccessCallback_10{ OnSuccessCallback_10, this }; chip::Callback::Callback mOnFailureCallback_11{ OnFailureCallback_11, this }; chip::Callback::Callback mOnSuccessCallback_11{ OnSuccessCallback_11, this }; chip::Callback::Callback mOnFailureCallback_12{ OnFailureCallback_12, this }; chip::Callback::Callback mOnSuccessCallback_12{ OnSuccessCallback_12, this }; chip::Callback::Callback mOnFailureCallback_13{ OnFailureCallback_13, this }; chip::Callback::Callback mOnSuccessCallback_13{ OnSuccessCallback_13, this }; - chip::Callback::Callback mOnFailureCallback_14{ OnFailureCallback_14, this }; - chip::Callback::Callback mOnSuccessCallback_14{ OnSuccessCallback_14, this }; chip::Callback::Callback mOnFailureCallback_15{ OnFailureCallback_15, this }; chip::Callback::Callback mOnSuccessCallback_15{ OnSuccessCallback_15, this }; chip::Callback::Callback mOnFailureCallback_16{ OnFailureCallback_16, this }; @@ -1328,9 +1295,6 @@ class Test_TC_CC_2_1 : public TestCommand chip::Callback::Callback mOnFailureCallback_19{ OnFailureCallback_19, this }; chip::Callback::Callback mOnSuccessCallback_19{ OnSuccessCallback_19, this }; - chip::Callback::Callback mOnFailureCallback_20{ OnFailureCallback_20, this }; - chip::Callback::Callback mOnSuccessCallback_20{ OnSuccessCallback_20, - this }; chip::Callback::Callback mOnFailureCallback_21{ OnFailureCallback_21, this }; chip::Callback::Callback mOnSuccessCallback_21{ OnSuccessCallback_21, this }; @@ -1340,9 +1304,6 @@ class Test_TC_CC_2_1 : public TestCommand chip::Callback::Callback mOnFailureCallback_23{ OnFailureCallback_23, this }; chip::Callback::Callback mOnSuccessCallback_23{ OnSuccessCallback_23, this }; - chip::Callback::Callback mOnFailureCallback_24{ OnFailureCallback_24, this }; - chip::Callback::Callback mOnSuccessCallback_24{ OnSuccessCallback_24, - this }; chip::Callback::Callback mOnFailureCallback_25{ OnFailureCallback_25, this }; chip::Callback::Callback mOnSuccessCallback_25{ OnSuccessCallback_25, this }; @@ -1353,8 +1314,6 @@ class Test_TC_CC_2_1 : public TestCommand chip::Callback::Callback mOnSuccessCallback_27{ OnSuccessCallback_27, this }; chip::Callback::Callback mOnFailureCallback_28{ OnFailureCallback_28, this }; chip::Callback::Callback mOnSuccessCallback_28{ OnSuccessCallback_28, this }; - chip::Callback::Callback mOnFailureCallback_29{ OnFailureCallback_29, this }; - chip::Callback::Callback mOnSuccessCallback_29{ OnSuccessCallback_29, this }; chip::Callback::Callback mOnFailureCallback_30{ OnFailureCallback_30, this }; chip::Callback::Callback mOnSuccessCallback_30{ OnSuccessCallback_30, this }; chip::Callback::Callback mOnFailureCallback_31{ OnFailureCallback_31, this }; @@ -1363,9 +1322,6 @@ class Test_TC_CC_2_1 : public TestCommand chip::Callback::Callback mOnFailureCallback_32{ OnFailureCallback_32, this }; chip::Callback::Callback mOnSuccessCallback_32{ OnSuccessCallback_32, this }; - chip::Callback::Callback mOnFailureCallback_33{ OnFailureCallback_33, this }; - chip::Callback::Callback mOnSuccessCallback_33{ OnSuccessCallback_33, - this }; chip::Callback::Callback mOnFailureCallback_34{ OnFailureCallback_34, this }; chip::Callback::Callback mOnSuccessCallback_34{ OnSuccessCallback_34, this }; @@ -1373,8 +1329,6 @@ class Test_TC_CC_2_1 : public TestCommand chip::Callback::Callback mOnSuccessCallback_35{ OnSuccessCallback_35, this }; chip::Callback::Callback mOnFailureCallback_36{ OnFailureCallback_36, this }; chip::Callback::Callback mOnSuccessCallback_36{ OnSuccessCallback_36, this }; - chip::Callback::Callback mOnFailureCallback_37{ OnFailureCallback_37, this }; - chip::Callback::Callback mOnSuccessCallback_37{ OnSuccessCallback_37, this }; chip::Callback::Callback mOnFailureCallback_38{ OnFailureCallback_38, this }; chip::Callback::Callback mOnSuccessCallback_38{ OnSuccessCallback_38, this }; chip::Callback::Callback mOnFailureCallback_39{ OnFailureCallback_39, this }; @@ -1385,10 +1339,6 @@ class Test_TC_CC_2_1 : public TestCommand chip::Callback::Callback mOnSuccessCallback_40{ OnSuccessCallback_40, this }; - chip::Callback::Callback mOnFailureCallback_41{ OnFailureCallback_41, this }; - chip::Callback::Callback mOnSuccessCallback_41{ - OnSuccessCallback_41, this - }; chip::Callback::Callback mOnFailureCallback_42{ OnFailureCallback_42, this }; chip::Callback::Callback mOnSuccessCallback_42{ OnSuccessCallback_42, this @@ -1401,10 +1351,6 @@ class Test_TC_CC_2_1 : public TestCommand chip::Callback::Callback mOnSuccessCallback_44{ OnSuccessCallback_44, this }; - chip::Callback::Callback mOnFailureCallback_45{ OnFailureCallback_45, this }; - chip::Callback::Callback mOnSuccessCallback_45{ - OnSuccessCallback_45, this - }; chip::Callback::Callback mOnFailureCallback_46{ OnFailureCallback_46, this }; chip::Callback::Callback mOnSuccessCallback_46{ OnSuccessCallback_46, this @@ -1415,9 +1361,6 @@ class Test_TC_CC_2_1 : public TestCommand chip::Callback::Callback mOnFailureCallback_48{ OnFailureCallback_48, this }; chip::Callback::Callback mOnSuccessCallback_48{ OnSuccessCallback_48, this }; - chip::Callback::Callback mOnFailureCallback_49{ OnFailureCallback_49, this }; - chip::Callback::Callback mOnSuccessCallback_49{ OnSuccessCallback_49, - this }; chip::Callback::Callback mOnFailureCallback_50{ OnFailureCallback_50, this }; chip::Callback::Callback mOnSuccessCallback_50{ OnSuccessCallback_50, this }; @@ -1427,9 +1370,6 @@ class Test_TC_CC_2_1 : public TestCommand chip::Callback::Callback mOnFailureCallback_52{ OnFailureCallback_52, this }; chip::Callback::Callback mOnSuccessCallback_52{ OnSuccessCallback_52, this }; - chip::Callback::Callback mOnFailureCallback_53{ OnFailureCallback_53, this }; - chip::Callback::Callback mOnSuccessCallback_53{ OnSuccessCallback_53, - this }; chip::Callback::Callback mOnFailureCallback_54{ OnFailureCallback_54, this }; chip::Callback::Callback mOnSuccessCallback_54{ OnSuccessCallback_54, this }; @@ -1439,9 +1379,6 @@ class Test_TC_CC_2_1 : public TestCommand chip::Callback::Callback mOnFailureCallback_56{ OnFailureCallback_56, this }; chip::Callback::Callback mOnSuccessCallback_56{ OnSuccessCallback_56, this }; - chip::Callback::Callback mOnFailureCallback_57{ OnFailureCallback_57, this }; - chip::Callback::Callback mOnSuccessCallback_57{ OnSuccessCallback_57, - this }; chip::Callback::Callback mOnFailureCallback_58{ OnFailureCallback_58, this }; chip::Callback::Callback mOnSuccessCallback_58{ OnSuccessCallback_58, this }; @@ -1449,10 +1386,6 @@ class Test_TC_CC_2_1 : public TestCommand chip::Callback::Callback mOnSuccessCallback_59{ OnSuccessCallback_59, this }; - chip::Callback::Callback mOnFailureCallback_60{ OnFailureCallback_60, this }; - chip::Callback::Callback mOnSuccessCallback_60{ - OnSuccessCallback_60, this - }; chip::Callback::Callback mOnFailureCallback_61{ OnFailureCallback_61, this }; chip::Callback::Callback mOnSuccessCallback_61{ OnSuccessCallback_61, this @@ -1461,10 +1394,6 @@ class Test_TC_CC_2_1 : public TestCommand chip::Callback::Callback mOnSuccessCallback_62{ OnSuccessCallback_62, this }; - chip::Callback::Callback mOnFailureCallback_63{ OnFailureCallback_63, this }; - chip::Callback::Callback mOnSuccessCallback_63{ - OnSuccessCallback_63, this - }; chip::Callback::Callback mOnFailureCallback_64{ OnFailureCallback_64, this }; chip::Callback::Callback mOnSuccessCallback_64{ OnSuccessCallback_64, this @@ -1473,16 +1402,11 @@ class Test_TC_CC_2_1 : public TestCommand chip::Callback::Callback mOnSuccessCallback_65{ OnSuccessCallback_65, this }; chip::Callback::Callback mOnFailureCallback_66{ OnFailureCallback_66, this }; chip::Callback::Callback mOnSuccessCallback_66{ OnSuccessCallback_66, this }; - chip::Callback::Callback mOnFailureCallback_67{ OnFailureCallback_67, this }; - chip::Callback::Callback mOnSuccessCallback_67{ OnSuccessCallback_67, this }; chip::Callback::Callback mOnFailureCallback_68{ OnFailureCallback_68, this }; chip::Callback::Callback mOnSuccessCallback_68{ OnSuccessCallback_68, this }; chip::Callback::Callback mOnFailureCallback_69{ OnFailureCallback_69, this }; chip::Callback::Callback mOnSuccessCallback_69{ OnSuccessCallback_69, this }; - chip::Callback::Callback mOnFailureCallback_70{ OnFailureCallback_70, this }; - chip::Callback::Callback mOnSuccessCallback_70{ OnSuccessCallback_70, - this }; chip::Callback::Callback mOnFailureCallback_71{ OnFailureCallback_71, this }; chip::Callback::Callback mOnSuccessCallback_71{ OnSuccessCallback_71, this }; @@ -1492,22 +1416,15 @@ class Test_TC_CC_2_1 : public TestCommand chip::Callback::Callback mOnFailureCallback_73{ OnFailureCallback_73, this }; chip::Callback::Callback mOnSuccessCallback_73{ OnSuccessCallback_73, this }; - chip::Callback::Callback mOnFailureCallback_74{ OnFailureCallback_74, this }; - chip::Callback::Callback mOnSuccessCallback_74{ OnSuccessCallback_74, - this }; chip::Callback::Callback mOnFailureCallback_75{ OnFailureCallback_75, this }; chip::Callback::Callback mOnSuccessCallback_75{ OnSuccessCallback_75, this }; chip::Callback::Callback mOnFailureCallback_76{ OnFailureCallback_76, this }; chip::Callback::Callback mOnSuccessCallback_76{ OnSuccessCallback_76, this }; - chip::Callback::Callback mOnFailureCallback_77{ OnFailureCallback_77, this }; - chip::Callback::Callback mOnSuccessCallback_77{ OnSuccessCallback_77, this }; chip::Callback::Callback mOnFailureCallback_78{ OnFailureCallback_78, this }; chip::Callback::Callback mOnSuccessCallback_78{ OnSuccessCallback_78, this }; chip::Callback::Callback mOnFailureCallback_79{ OnFailureCallback_79, this }; chip::Callback::Callback mOnSuccessCallback_79{ OnSuccessCallback_79, this }; - chip::Callback::Callback mOnFailureCallback_80{ OnFailureCallback_80, this }; - chip::Callback::Callback mOnSuccessCallback_80{ OnSuccessCallback_80, this }; chip::Callback::Callback mOnFailureCallback_81{ OnFailureCallback_81, this }; chip::Callback::Callback mOnSuccessCallback_81{ OnSuccessCallback_81, this }; chip::Callback::Callback mOnFailureCallback_82{ OnFailureCallback_82, this }; @@ -1515,14 +1432,10 @@ class Test_TC_CC_2_1 : public TestCommand this }; chip::Callback::Callback mOnFailureCallback_83{ OnFailureCallback_83, this }; chip::Callback::Callback mOnSuccessCallback_83{ OnSuccessCallback_83, this }; - chip::Callback::Callback mOnFailureCallback_84{ OnFailureCallback_84, this }; - chip::Callback::Callback mOnSuccessCallback_84{ OnSuccessCallback_84, this }; chip::Callback::Callback mOnFailureCallback_85{ OnFailureCallback_85, this }; chip::Callback::Callback mOnSuccessCallback_85{ OnSuccessCallback_85, this }; chip::Callback::Callback mOnFailureCallback_86{ OnFailureCallback_86, this }; chip::Callback::Callback mOnSuccessCallback_86{ OnSuccessCallback_86, this }; - chip::Callback::Callback mOnFailureCallback_87{ OnFailureCallback_87, this }; - chip::Callback::Callback mOnSuccessCallback_87{ OnSuccessCallback_87, this }; chip::Callback::Callback mOnFailureCallback_88{ OnFailureCallback_88, this }; chip::Callback::Callback mOnSuccessCallback_88{ OnSuccessCallback_88, this }; chip::Callback::Callback mOnFailureCallback_89{ OnFailureCallback_89, this }; @@ -1530,14 +1443,10 @@ class Test_TC_CC_2_1 : public TestCommand this }; chip::Callback::Callback mOnFailureCallback_90{ OnFailureCallback_90, this }; chip::Callback::Callback mOnSuccessCallback_90{ OnSuccessCallback_90, this }; - chip::Callback::Callback mOnFailureCallback_91{ OnFailureCallback_91, this }; - chip::Callback::Callback mOnSuccessCallback_91{ OnSuccessCallback_91, this }; chip::Callback::Callback mOnFailureCallback_92{ OnFailureCallback_92, this }; chip::Callback::Callback mOnSuccessCallback_92{ OnSuccessCallback_92, this }; chip::Callback::Callback mOnFailureCallback_93{ OnFailureCallback_93, this }; chip::Callback::Callback mOnSuccessCallback_93{ OnSuccessCallback_93, this }; - chip::Callback::Callback mOnFailureCallback_94{ OnFailureCallback_94, this }; - chip::Callback::Callback mOnSuccessCallback_94{ OnSuccessCallback_94, this }; chip::Callback::Callback mOnFailureCallback_95{ OnFailureCallback_95, this }; chip::Callback::Callback mOnSuccessCallback_95{ OnSuccessCallback_95, this }; chip::Callback::Callback mOnFailureCallback_96{ OnFailureCallback_96, this }; @@ -1545,14 +1454,10 @@ class Test_TC_CC_2_1 : public TestCommand this }; chip::Callback::Callback mOnFailureCallback_97{ OnFailureCallback_97, this }; chip::Callback::Callback mOnSuccessCallback_97{ OnSuccessCallback_97, this }; - chip::Callback::Callback mOnFailureCallback_98{ OnFailureCallback_98, this }; - chip::Callback::Callback mOnSuccessCallback_98{ OnSuccessCallback_98, this }; chip::Callback::Callback mOnFailureCallback_99{ OnFailureCallback_99, this }; chip::Callback::Callback mOnSuccessCallback_99{ OnSuccessCallback_99, this }; chip::Callback::Callback mOnFailureCallback_100{ OnFailureCallback_100, this }; chip::Callback::Callback mOnSuccessCallback_100{ OnSuccessCallback_100, this }; - chip::Callback::Callback mOnFailureCallback_101{ OnFailureCallback_101, this }; - chip::Callback::Callback mOnSuccessCallback_101{ OnSuccessCallback_101, this }; chip::Callback::Callback mOnFailureCallback_102{ OnFailureCallback_102, this }; chip::Callback::Callback mOnSuccessCallback_102{ OnSuccessCallback_102, this }; chip::Callback::Callback mOnFailureCallback_103{ OnFailureCallback_103, this }; @@ -1560,14 +1465,10 @@ class Test_TC_CC_2_1 : public TestCommand this }; chip::Callback::Callback mOnFailureCallback_104{ OnFailureCallback_104, this }; chip::Callback::Callback mOnSuccessCallback_104{ OnSuccessCallback_104, this }; - chip::Callback::Callback mOnFailureCallback_105{ OnFailureCallback_105, this }; - chip::Callback::Callback mOnSuccessCallback_105{ OnSuccessCallback_105, this }; chip::Callback::Callback mOnFailureCallback_106{ OnFailureCallback_106, this }; chip::Callback::Callback mOnSuccessCallback_106{ OnSuccessCallback_106, this }; chip::Callback::Callback mOnFailureCallback_107{ OnFailureCallback_107, this }; chip::Callback::Callback mOnSuccessCallback_107{ OnSuccessCallback_107, this }; - chip::Callback::Callback mOnFailureCallback_108{ OnFailureCallback_108, this }; - chip::Callback::Callback mOnSuccessCallback_108{ OnSuccessCallback_108, this }; chip::Callback::Callback mOnFailureCallback_109{ OnFailureCallback_109, this }; chip::Callback::Callback mOnSuccessCallback_109{ OnSuccessCallback_109, this }; chip::Callback::Callback mOnFailureCallback_110{ OnFailureCallback_110, this }; @@ -1575,14 +1476,10 @@ class Test_TC_CC_2_1 : public TestCommand this }; chip::Callback::Callback mOnFailureCallback_111{ OnFailureCallback_111, this }; chip::Callback::Callback mOnSuccessCallback_111{ OnSuccessCallback_111, this }; - chip::Callback::Callback mOnFailureCallback_112{ OnFailureCallback_112, this }; - chip::Callback::Callback mOnSuccessCallback_112{ OnSuccessCallback_112, this }; chip::Callback::Callback mOnFailureCallback_113{ OnFailureCallback_113, this }; chip::Callback::Callback mOnSuccessCallback_113{ OnSuccessCallback_113, this }; chip::Callback::Callback mOnFailureCallback_114{ OnFailureCallback_114, this }; chip::Callback::Callback mOnSuccessCallback_114{ OnSuccessCallback_114, this }; - chip::Callback::Callback mOnFailureCallback_115{ OnFailureCallback_115, this }; - chip::Callback::Callback mOnSuccessCallback_115{ OnSuccessCallback_115, this }; chip::Callback::Callback mOnFailureCallback_116{ OnFailureCallback_116, this }; chip::Callback::Callback mOnSuccessCallback_116{ OnSuccessCallback_116, this }; chip::Callback::Callback mOnFailureCallback_117{ OnFailureCallback_117, this }; @@ -1590,26 +1487,18 @@ class Test_TC_CC_2_1 : public TestCommand this }; chip::Callback::Callback mOnFailureCallback_118{ OnFailureCallback_118, this }; chip::Callback::Callback mOnSuccessCallback_118{ OnSuccessCallback_118, this }; - chip::Callback::Callback mOnFailureCallback_119{ OnFailureCallback_119, this }; - chip::Callback::Callback mOnSuccessCallback_119{ OnSuccessCallback_119, this }; chip::Callback::Callback mOnFailureCallback_120{ OnFailureCallback_120, this }; chip::Callback::Callback mOnSuccessCallback_120{ OnSuccessCallback_120, this }; chip::Callback::Callback mOnFailureCallback_121{ OnFailureCallback_121, this }; chip::Callback::Callback mOnSuccessCallback_121{ OnSuccessCallback_121, this }; - chip::Callback::Callback mOnFailureCallback_122{ OnFailureCallback_122, this }; - chip::Callback::Callback mOnSuccessCallback_122{ OnSuccessCallback_122, this }; chip::Callback::Callback mOnFailureCallback_123{ OnFailureCallback_123, this }; chip::Callback::Callback mOnSuccessCallback_123{ OnSuccessCallback_123, this }; chip::Callback::Callback mOnFailureCallback_124{ OnFailureCallback_124, this }; chip::Callback::Callback mOnSuccessCallback_124{ OnSuccessCallback_124, this }; - chip::Callback::Callback mOnFailureCallback_125{ OnFailureCallback_125, this }; - chip::Callback::Callback mOnSuccessCallback_125{ OnSuccessCallback_125, this }; chip::Callback::Callback mOnFailureCallback_126{ OnFailureCallback_126, this }; chip::Callback::Callback mOnSuccessCallback_126{ OnSuccessCallback_126, this }; chip::Callback::Callback mOnFailureCallback_127{ OnFailureCallback_127, this }; chip::Callback::Callback mOnSuccessCallback_127{ OnSuccessCallback_127, this }; - chip::Callback::Callback mOnFailureCallback_128{ OnFailureCallback_128, this }; - chip::Callback::Callback mOnSuccessCallback_128{ OnSuccessCallback_128, this }; chip::Callback::Callback mOnFailureCallback_129{ OnFailureCallback_129, this }; chip::Callback::Callback mOnSuccessCallback_129{ OnSuccessCallback_129, this }; chip::Callback::Callback mOnFailureCallback_130{ OnFailureCallback_130, this }; @@ -1617,14 +1506,10 @@ class Test_TC_CC_2_1 : public TestCommand this }; chip::Callback::Callback mOnFailureCallback_131{ OnFailureCallback_131, this }; chip::Callback::Callback mOnSuccessCallback_131{ OnSuccessCallback_131, this }; - chip::Callback::Callback mOnFailureCallback_132{ OnFailureCallback_132, this }; - chip::Callback::Callback mOnSuccessCallback_132{ OnSuccessCallback_132, this }; chip::Callback::Callback mOnFailureCallback_133{ OnFailureCallback_133, this }; chip::Callback::Callback mOnSuccessCallback_133{ OnSuccessCallback_133, this }; chip::Callback::Callback mOnFailureCallback_134{ OnFailureCallback_134, this }; chip::Callback::Callback mOnSuccessCallback_134{ OnSuccessCallback_134, this }; - chip::Callback::Callback mOnFailureCallback_135{ OnFailureCallback_135, this }; - chip::Callback::Callback mOnSuccessCallback_135{ OnSuccessCallback_135, this }; chip::Callback::Callback mOnFailureCallback_136{ OnFailureCallback_136, this }; chip::Callback::Callback mOnSuccessCallback_136{ OnSuccessCallback_136, this }; chip::Callback::Callback mOnFailureCallback_137{ OnFailureCallback_137, this }; @@ -1632,14 +1517,10 @@ class Test_TC_CC_2_1 : public TestCommand this }; chip::Callback::Callback mOnFailureCallback_138{ OnFailureCallback_138, this }; chip::Callback::Callback mOnSuccessCallback_138{ OnSuccessCallback_138, this }; - chip::Callback::Callback mOnFailureCallback_139{ OnFailureCallback_139, this }; - chip::Callback::Callback mOnSuccessCallback_139{ OnSuccessCallback_139, this }; chip::Callback::Callback mOnFailureCallback_140{ OnFailureCallback_140, this }; chip::Callback::Callback mOnSuccessCallback_140{ OnSuccessCallback_140, this }; chip::Callback::Callback mOnFailureCallback_141{ OnFailureCallback_141, this }; chip::Callback::Callback mOnSuccessCallback_141{ OnSuccessCallback_141, this }; - chip::Callback::Callback mOnFailureCallback_142{ OnFailureCallback_142, this }; - chip::Callback::Callback mOnSuccessCallback_142{ OnSuccessCallback_142, this }; chip::Callback::Callback mOnFailureCallback_143{ OnFailureCallback_143, this }; chip::Callback::Callback mOnSuccessCallback_143{ OnSuccessCallback_143, this }; chip::Callback::Callback mOnFailureCallback_144{ OnFailureCallback_144, this }; @@ -1666,15 +1547,12 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_1(currentHue); } - static void OnFailureCallback_2(void * context, uint8_t status) + static void OnFailureCallback_2(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); } - static void OnSuccessCallback_2(void * context, uint8_t currentHue) - { - (static_cast(context))->OnSuccessResponse_2(currentHue); - } + static void OnSuccessCallback_2(void * context) { (static_cast(context))->OnSuccessResponse_2(); } static void OnFailureCallback_3(void * context, uint8_t status) { @@ -1706,15 +1584,12 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_5(currentSaturation); } - static void OnFailureCallback_6(void * context, uint8_t status) + static void OnFailureCallback_6(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_6(status); + (static_cast(context))->OnFailureResponse_6(chip::to_underlying(status)); } - static void OnSuccessCallback_6(void * context, uint8_t currentSaturation) - { - (static_cast(context))->OnSuccessResponse_6(currentSaturation); - } + static void OnSuccessCallback_6(void * context) { (static_cast(context))->OnSuccessResponse_6(); } static void OnFailureCallback_7(void * context, uint8_t status) { @@ -1746,15 +1621,12 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_9(currentX); } - static void OnFailureCallback_10(void * context, uint8_t status) + static void OnFailureCallback_10(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_10(status); + (static_cast(context))->OnFailureResponse_10(chip::to_underlying(status)); } - static void OnSuccessCallback_10(void * context, uint16_t currentX) - { - (static_cast(context))->OnSuccessResponse_10(currentX); - } + static void OnSuccessCallback_10(void * context) { (static_cast(context))->OnSuccessResponse_10(); } static void OnFailureCallback_11(void * context, uint8_t status) { @@ -1786,15 +1658,12 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_13(currentY); } - static void OnFailureCallback_14(void * context, uint8_t status) + static void OnFailureCallback_14(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_14(status); + (static_cast(context))->OnFailureResponse_14(chip::to_underlying(status)); } - static void OnSuccessCallback_14(void * context, uint16_t currentY) - { - (static_cast(context))->OnSuccessResponse_14(currentY); - } + static void OnSuccessCallback_14(void * context) { (static_cast(context))->OnSuccessResponse_14(); } static void OnFailureCallback_15(void * context, uint8_t status) { @@ -1846,15 +1715,12 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_19(colorControlOptions); } - static void OnFailureCallback_20(void * context, uint8_t status) + static void OnFailureCallback_20(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_20(status); + (static_cast(context))->OnFailureResponse_20(chip::to_underlying(status)); } - static void OnSuccessCallback_20(void * context, uint8_t colorControlOptions) - { - (static_cast(context))->OnSuccessResponse_20(colorControlOptions); - } + static void OnSuccessCallback_20(void * context) { (static_cast(context))->OnSuccessResponse_20(); } static void OnFailureCallback_21(void * context, uint8_t status) { @@ -1886,15 +1752,12 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_23(enhancedCurrentHue); } - static void OnFailureCallback_24(void * context, uint8_t status) + static void OnFailureCallback_24(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_24(status); + (static_cast(context))->OnFailureResponse_24(chip::to_underlying(status)); } - static void OnSuccessCallback_24(void * context, uint16_t enhancedCurrentHue) - { - (static_cast(context))->OnSuccessResponse_24(enhancedCurrentHue); - } + static void OnSuccessCallback_24(void * context) { (static_cast(context))->OnSuccessResponse_24(); } static void OnFailureCallback_25(void * context, uint8_t status) { @@ -1936,15 +1799,12 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_28(colorLoopActive); } - static void OnFailureCallback_29(void * context, uint8_t status) + static void OnFailureCallback_29(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_29(status); + (static_cast(context))->OnFailureResponse_29(chip::to_underlying(status)); } - static void OnSuccessCallback_29(void * context, uint8_t colorLoopActive) - { - (static_cast(context))->OnSuccessResponse_29(colorLoopActive); - } + static void OnSuccessCallback_29(void * context) { (static_cast(context))->OnSuccessResponse_29(); } static void OnFailureCallback_30(void * context, uint8_t status) { @@ -1976,15 +1836,12 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_32(colorLoopDirection); } - static void OnFailureCallback_33(void * context, uint8_t status) + static void OnFailureCallback_33(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_33(status); + (static_cast(context))->OnFailureResponse_33(chip::to_underlying(status)); } - static void OnSuccessCallback_33(void * context, uint8_t colorLoopDirection) - { - (static_cast(context))->OnSuccessResponse_33(colorLoopDirection); - } + static void OnSuccessCallback_33(void * context) { (static_cast(context))->OnSuccessResponse_33(); } static void OnFailureCallback_34(void * context, uint8_t status) { @@ -2016,15 +1873,12 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_36(colorLoopTime); } - static void OnFailureCallback_37(void * context, uint8_t status) + static void OnFailureCallback_37(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_37(status); + (static_cast(context))->OnFailureResponse_37(chip::to_underlying(status)); } - static void OnSuccessCallback_37(void * context, uint16_t colorLoopTime) - { - (static_cast(context))->OnSuccessResponse_37(colorLoopTime); - } + static void OnSuccessCallback_37(void * context) { (static_cast(context))->OnSuccessResponse_37(); } static void OnFailureCallback_38(void * context, uint8_t status) { @@ -2056,15 +1910,12 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_40(colorLoopStartEnhancedHue); } - static void OnFailureCallback_41(void * context, uint8_t status) + static void OnFailureCallback_41(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_41(status); + (static_cast(context))->OnFailureResponse_41(chip::to_underlying(status)); } - static void OnSuccessCallback_41(void * context, uint16_t colorLoopStartEnhancedHue) - { - (static_cast(context))->OnSuccessResponse_41(colorLoopStartEnhancedHue); - } + static void OnSuccessCallback_41(void * context) { (static_cast(context))->OnSuccessResponse_41(); } static void OnFailureCallback_42(void * context, uint8_t status) { @@ -2096,15 +1947,12 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_44(colorLoopStoredEnhancedHue); } - static void OnFailureCallback_45(void * context, uint8_t status) + static void OnFailureCallback_45(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_45(status); + (static_cast(context))->OnFailureResponse_45(chip::to_underlying(status)); } - static void OnSuccessCallback_45(void * context, uint16_t colorLoopStoredEnhancedHue) - { - (static_cast(context))->OnSuccessResponse_45(colorLoopStoredEnhancedHue); - } + static void OnSuccessCallback_45(void * context) { (static_cast(context))->OnSuccessResponse_45(); } static void OnFailureCallback_46(void * context, uint8_t status) { @@ -2136,15 +1984,12 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_48(colorCapabilities); } - static void OnFailureCallback_49(void * context, uint8_t status) + static void OnFailureCallback_49(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_49(status); + (static_cast(context))->OnFailureResponse_49(chip::to_underlying(status)); } - static void OnSuccessCallback_49(void * context, uint16_t colorCapabilities) - { - (static_cast(context))->OnSuccessResponse_49(colorCapabilities); - } + static void OnSuccessCallback_49(void * context) { (static_cast(context))->OnSuccessResponse_49(); } static void OnFailureCallback_50(void * context, uint8_t status) { @@ -2176,15 +2021,12 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_52(colorTempPhysicalMin); } - static void OnFailureCallback_53(void * context, uint8_t status) + static void OnFailureCallback_53(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_53(status); + (static_cast(context))->OnFailureResponse_53(chip::to_underlying(status)); } - static void OnSuccessCallback_53(void * context, uint16_t colorTempPhysicalMin) - { - (static_cast(context))->OnSuccessResponse_53(colorTempPhysicalMin); - } + static void OnSuccessCallback_53(void * context) { (static_cast(context))->OnSuccessResponse_53(); } static void OnFailureCallback_54(void * context, uint8_t status) { @@ -2216,15 +2058,12 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_56(colorTempPhysicalMax); } - static void OnFailureCallback_57(void * context, uint8_t status) + static void OnFailureCallback_57(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_57(status); + (static_cast(context))->OnFailureResponse_57(chip::to_underlying(status)); } - static void OnSuccessCallback_57(void * context, uint16_t colorTempPhysicalMax) - { - (static_cast(context))->OnSuccessResponse_57(colorTempPhysicalMax); - } + static void OnSuccessCallback_57(void * context) { (static_cast(context))->OnSuccessResponse_57(); } static void OnFailureCallback_58(void * context, uint8_t status) { @@ -2246,15 +2085,12 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_59(coupleColorTempToLevelMinMireds); } - static void OnFailureCallback_60(void * context, uint8_t status) + static void OnFailureCallback_60(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_60(status); + (static_cast(context))->OnFailureResponse_60(chip::to_underlying(status)); } - static void OnSuccessCallback_60(void * context, uint16_t coupleColorTempToLevelMinMireds) - { - (static_cast(context))->OnSuccessResponse_60(coupleColorTempToLevelMinMireds); - } + static void OnSuccessCallback_60(void * context) { (static_cast(context))->OnSuccessResponse_60(); } static void OnFailureCallback_61(void * context, uint8_t status) { @@ -2276,15 +2112,12 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_62(startUpColorTemperatureMireds); } - static void OnFailureCallback_63(void * context, uint8_t status) + static void OnFailureCallback_63(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_63(status); + (static_cast(context))->OnFailureResponse_63(chip::to_underlying(status)); } - static void OnSuccessCallback_63(void * context, uint16_t startUpColorTemperatureMireds) - { - (static_cast(context))->OnSuccessResponse_63(startUpColorTemperatureMireds); - } + static void OnSuccessCallback_63(void * context) { (static_cast(context))->OnSuccessResponse_63(); } static void OnFailureCallback_64(void * context, uint8_t status) { @@ -2316,15 +2149,12 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_66(remainingTime); } - static void OnFailureCallback_67(void * context, uint8_t status) + static void OnFailureCallback_67(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_67(status); + (static_cast(context))->OnFailureResponse_67(chip::to_underlying(status)); } - static void OnSuccessCallback_67(void * context, uint16_t remainingTime) - { - (static_cast(context))->OnSuccessResponse_67(remainingTime); - } + static void OnSuccessCallback_67(void * context) { (static_cast(context))->OnSuccessResponse_67(); } static void OnFailureCallback_68(void * context, uint8_t status) { @@ -2346,15 +2176,12 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_69(driftCompensation); } - static void OnFailureCallback_70(void * context, uint8_t status) + static void OnFailureCallback_70(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_70(status); + (static_cast(context))->OnFailureResponse_70(chip::to_underlying(status)); } - static void OnSuccessCallback_70(void * context, uint8_t driftCompensation) - { - (static_cast(context))->OnSuccessResponse_70(driftCompensation); - } + static void OnSuccessCallback_70(void * context) { (static_cast(context))->OnSuccessResponse_70(); } static void OnFailureCallback_71(void * context, uint8_t status) { @@ -2386,15 +2213,12 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_73(numberOfPrimaries); } - static void OnFailureCallback_74(void * context, uint8_t status) + static void OnFailureCallback_74(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_74(status); + (static_cast(context))->OnFailureResponse_74(chip::to_underlying(status)); } - static void OnSuccessCallback_74(void * context, uint8_t numberOfPrimaries) - { - (static_cast(context))->OnSuccessResponse_74(numberOfPrimaries); - } + static void OnSuccessCallback_74(void * context) { (static_cast(context))->OnSuccessResponse_74(); } static void OnFailureCallback_75(void * context, uint8_t status) { @@ -2416,15 +2240,12 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_76(primary1X); } - static void OnFailureCallback_77(void * context, uint8_t status) + static void OnFailureCallback_77(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_77(status); + (static_cast(context))->OnFailureResponse_77(chip::to_underlying(status)); } - static void OnSuccessCallback_77(void * context, uint16_t primary1X) - { - (static_cast(context))->OnSuccessResponse_77(primary1X); - } + static void OnSuccessCallback_77(void * context) { (static_cast(context))->OnSuccessResponse_77(); } static void OnFailureCallback_78(void * context, uint8_t status) { @@ -2446,15 +2267,12 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_79(primary1Y); } - static void OnFailureCallback_80(void * context, uint8_t status) + static void OnFailureCallback_80(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_80(status); + (static_cast(context))->OnFailureResponse_80(chip::to_underlying(status)); } - static void OnSuccessCallback_80(void * context, uint16_t primary1Y) - { - (static_cast(context))->OnSuccessResponse_80(primary1Y); - } + static void OnSuccessCallback_80(void * context) { (static_cast(context))->OnSuccessResponse_80(); } static void OnFailureCallback_81(void * context, uint8_t status) { @@ -2486,15 +2304,12 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_83(primary2X); } - static void OnFailureCallback_84(void * context, uint8_t status) + static void OnFailureCallback_84(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_84(status); + (static_cast(context))->OnFailureResponse_84(chip::to_underlying(status)); } - static void OnSuccessCallback_84(void * context, uint16_t primary2X) - { - (static_cast(context))->OnSuccessResponse_84(primary2X); - } + static void OnSuccessCallback_84(void * context) { (static_cast(context))->OnSuccessResponse_84(); } static void OnFailureCallback_85(void * context, uint8_t status) { @@ -2516,15 +2331,12 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_86(primary2Y); } - static void OnFailureCallback_87(void * context, uint8_t status) + static void OnFailureCallback_87(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_87(status); + (static_cast(context))->OnFailureResponse_87(chip::to_underlying(status)); } - static void OnSuccessCallback_87(void * context, uint16_t primary2Y) - { - (static_cast(context))->OnSuccessResponse_87(primary2Y); - } + static void OnSuccessCallback_87(void * context) { (static_cast(context))->OnSuccessResponse_87(); } static void OnFailureCallback_88(void * context, uint8_t status) { @@ -2556,15 +2368,12 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_90(primary3X); } - static void OnFailureCallback_91(void * context, uint8_t status) + static void OnFailureCallback_91(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_91(status); + (static_cast(context))->OnFailureResponse_91(chip::to_underlying(status)); } - static void OnSuccessCallback_91(void * context, uint16_t primary3X) - { - (static_cast(context))->OnSuccessResponse_91(primary3X); - } + static void OnSuccessCallback_91(void * context) { (static_cast(context))->OnSuccessResponse_91(); } static void OnFailureCallback_92(void * context, uint8_t status) { @@ -2586,15 +2395,12 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_93(primary3Y); } - static void OnFailureCallback_94(void * context, uint8_t status) + static void OnFailureCallback_94(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_94(status); + (static_cast(context))->OnFailureResponse_94(chip::to_underlying(status)); } - static void OnSuccessCallback_94(void * context, uint16_t primary3Y) - { - (static_cast(context))->OnSuccessResponse_94(primary3Y); - } + static void OnSuccessCallback_94(void * context) { (static_cast(context))->OnSuccessResponse_94(); } static void OnFailureCallback_95(void * context, uint8_t status) { @@ -2626,15 +2432,12 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_97(primary4X); } - static void OnFailureCallback_98(void * context, uint8_t status) + static void OnFailureCallback_98(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_98(status); + (static_cast(context))->OnFailureResponse_98(chip::to_underlying(status)); } - static void OnSuccessCallback_98(void * context, uint16_t primary4X) - { - (static_cast(context))->OnSuccessResponse_98(primary4X); - } + static void OnSuccessCallback_98(void * context) { (static_cast(context))->OnSuccessResponse_98(); } static void OnFailureCallback_99(void * context, uint8_t status) { @@ -2656,15 +2459,12 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_100(primary4Y); } - static void OnFailureCallback_101(void * context, uint8_t status) + static void OnFailureCallback_101(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_101(status); + (static_cast(context))->OnFailureResponse_101(chip::to_underlying(status)); } - static void OnSuccessCallback_101(void * context, uint16_t primary4Y) - { - (static_cast(context))->OnSuccessResponse_101(primary4Y); - } + static void OnSuccessCallback_101(void * context) { (static_cast(context))->OnSuccessResponse_101(); } static void OnFailureCallback_102(void * context, uint8_t status) { @@ -2696,15 +2496,12 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_104(primary5X); } - static void OnFailureCallback_105(void * context, uint8_t status) + static void OnFailureCallback_105(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_105(status); + (static_cast(context))->OnFailureResponse_105(chip::to_underlying(status)); } - static void OnSuccessCallback_105(void * context, uint16_t primary5X) - { - (static_cast(context))->OnSuccessResponse_105(primary5X); - } + static void OnSuccessCallback_105(void * context) { (static_cast(context))->OnSuccessResponse_105(); } static void OnFailureCallback_106(void * context, uint8_t status) { @@ -2726,15 +2523,12 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_107(primary5Y); } - static void OnFailureCallback_108(void * context, uint8_t status) + static void OnFailureCallback_108(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_108(status); + (static_cast(context))->OnFailureResponse_108(chip::to_underlying(status)); } - static void OnSuccessCallback_108(void * context, uint16_t primary5Y) - { - (static_cast(context))->OnSuccessResponse_108(primary5Y); - } + static void OnSuccessCallback_108(void * context) { (static_cast(context))->OnSuccessResponse_108(); } static void OnFailureCallback_109(void * context, uint8_t status) { @@ -2766,15 +2560,12 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_111(primary6X); } - static void OnFailureCallback_112(void * context, uint8_t status) + static void OnFailureCallback_112(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_112(status); + (static_cast(context))->OnFailureResponse_112(chip::to_underlying(status)); } - static void OnSuccessCallback_112(void * context, uint16_t primary6X) - { - (static_cast(context))->OnSuccessResponse_112(primary6X); - } + static void OnSuccessCallback_112(void * context) { (static_cast(context))->OnSuccessResponse_112(); } static void OnFailureCallback_113(void * context, uint8_t status) { @@ -2796,15 +2587,12 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_114(primary6Y); } - static void OnFailureCallback_115(void * context, uint8_t status) + static void OnFailureCallback_115(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_115(status); + (static_cast(context))->OnFailureResponse_115(chip::to_underlying(status)); } - static void OnSuccessCallback_115(void * context, uint16_t primary6Y) - { - (static_cast(context))->OnSuccessResponse_115(primary6Y); - } + static void OnSuccessCallback_115(void * context) { (static_cast(context))->OnSuccessResponse_115(); } static void OnFailureCallback_116(void * context, uint8_t status) { @@ -2836,15 +2624,12 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_118(whitePointX); } - static void OnFailureCallback_119(void * context, uint8_t status) + static void OnFailureCallback_119(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_119(status); + (static_cast(context))->OnFailureResponse_119(chip::to_underlying(status)); } - static void OnSuccessCallback_119(void * context, uint16_t whitePointX) - { - (static_cast(context))->OnSuccessResponse_119(whitePointX); - } + static void OnSuccessCallback_119(void * context) { (static_cast(context))->OnSuccessResponse_119(); } static void OnFailureCallback_120(void * context, uint8_t status) { @@ -2866,15 +2651,12 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_121(whitePointY); } - static void OnFailureCallback_122(void * context, uint8_t status) + static void OnFailureCallback_122(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_122(status); + (static_cast(context))->OnFailureResponse_122(chip::to_underlying(status)); } - static void OnSuccessCallback_122(void * context, uint16_t whitePointY) - { - (static_cast(context))->OnSuccessResponse_122(whitePointY); - } + static void OnSuccessCallback_122(void * context) { (static_cast(context))->OnSuccessResponse_122(); } static void OnFailureCallback_123(void * context, uint8_t status) { @@ -2896,15 +2678,12 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_124(colorPointRX); } - static void OnFailureCallback_125(void * context, uint8_t status) + static void OnFailureCallback_125(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_125(status); + (static_cast(context))->OnFailureResponse_125(chip::to_underlying(status)); } - static void OnSuccessCallback_125(void * context, uint16_t colorPointRX) - { - (static_cast(context))->OnSuccessResponse_125(colorPointRX); - } + static void OnSuccessCallback_125(void * context) { (static_cast(context))->OnSuccessResponse_125(); } static void OnFailureCallback_126(void * context, uint8_t status) { @@ -2926,15 +2705,12 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_127(colorPointRY); } - static void OnFailureCallback_128(void * context, uint8_t status) + static void OnFailureCallback_128(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_128(status); + (static_cast(context))->OnFailureResponse_128(chip::to_underlying(status)); } - static void OnSuccessCallback_128(void * context, uint16_t colorPointRY) - { - (static_cast(context))->OnSuccessResponse_128(colorPointRY); - } + static void OnSuccessCallback_128(void * context) { (static_cast(context))->OnSuccessResponse_128(); } static void OnFailureCallback_129(void * context, uint8_t status) { @@ -2966,15 +2742,12 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_131(colorPointGX); } - static void OnFailureCallback_132(void * context, uint8_t status) + static void OnFailureCallback_132(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_132(status); + (static_cast(context))->OnFailureResponse_132(chip::to_underlying(status)); } - static void OnSuccessCallback_132(void * context, uint16_t colorPointGX) - { - (static_cast(context))->OnSuccessResponse_132(colorPointGX); - } + static void OnSuccessCallback_132(void * context) { (static_cast(context))->OnSuccessResponse_132(); } static void OnFailureCallback_133(void * context, uint8_t status) { @@ -2996,15 +2769,12 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_134(colorPointGY); } - static void OnFailureCallback_135(void * context, uint8_t status) + static void OnFailureCallback_135(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_135(status); + (static_cast(context))->OnFailureResponse_135(chip::to_underlying(status)); } - static void OnSuccessCallback_135(void * context, uint16_t colorPointGY) - { - (static_cast(context))->OnSuccessResponse_135(colorPointGY); - } + static void OnSuccessCallback_135(void * context) { (static_cast(context))->OnSuccessResponse_135(); } static void OnFailureCallback_136(void * context, uint8_t status) { @@ -3036,15 +2806,12 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_138(colorPointBX); } - static void OnFailureCallback_139(void * context, uint8_t status) + static void OnFailureCallback_139(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_139(status); + (static_cast(context))->OnFailureResponse_139(chip::to_underlying(status)); } - static void OnSuccessCallback_139(void * context, uint16_t colorPointBX) - { - (static_cast(context))->OnSuccessResponse_139(colorPointBX); - } + static void OnSuccessCallback_139(void * context) { (static_cast(context))->OnSuccessResponse_139(); } static void OnFailureCallback_140(void * context, uint8_t status) { @@ -3066,15 +2833,12 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_141(colorPointBY); } - static void OnFailureCallback_142(void * context, uint8_t status) + static void OnFailureCallback_142(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_142(status); + (static_cast(context))->OnFailureResponse_142(chip::to_underlying(status)); } - static void OnSuccessCallback_142(void * context, uint16_t colorPointBY) - { - (static_cast(context))->OnSuccessResponse_142(colorPointBY); - } + static void OnSuccessCallback_142(void * context) { (static_cast(context))->OnSuccessResponse_142(); } static void OnFailureCallback_143(void * context, uint8_t status) { @@ -3141,12 +2905,13 @@ class Test_TC_CC_2_1 : public TestCommand uint8_t currentHueArgument; currentHueArgument = 0; - return cluster.WriteAttributeCurrentHue(mOnSuccessCallback_2.Cancel(), mOnFailureCallback_2.Cancel(), currentHueArgument); + return cluster.WriteAttribute( + currentHueArgument, this, OnSuccessCallback_2, OnFailureCallback_2); } void OnFailureResponse_2(uint8_t status) { NextTest(); } - void OnSuccessResponse_2(uint8_t currentHue) { ThrowSuccessResponse(); } + void OnSuccessResponse_2() { ThrowSuccessResponse(); } CHIP_ERROR TestReadsBackMandatoryAttributeCurrentHue_3() { @@ -3205,13 +2970,13 @@ class Test_TC_CC_2_1 : public TestCommand uint8_t currentSaturationArgument; currentSaturationArgument = 0; - return cluster.WriteAttributeCurrentSaturation(mOnSuccessCallback_6.Cancel(), mOnFailureCallback_6.Cancel(), - currentSaturationArgument); + return cluster.WriteAttribute( + currentSaturationArgument, this, OnSuccessCallback_6, OnFailureCallback_6); } void OnFailureResponse_6(uint8_t status) { NextTest(); } - void OnSuccessResponse_6(uint8_t currentSaturation) { ThrowSuccessResponse(); } + void OnSuccessResponse_6() { ThrowSuccessResponse(); } CHIP_ERROR TestReadsBackMandatoryAttributeCurrentSaturation_7() { @@ -3270,12 +3035,13 @@ class Test_TC_CC_2_1 : public TestCommand uint16_t currentXArgument; currentXArgument = 24939U; - return cluster.WriteAttributeCurrentX(mOnSuccessCallback_10.Cancel(), mOnFailureCallback_10.Cancel(), currentXArgument); + return cluster.WriteAttribute( + currentXArgument, this, OnSuccessCallback_10, OnFailureCallback_10); } void OnFailureResponse_10(uint8_t status) { NextTest(); } - void OnSuccessResponse_10(uint16_t currentX) { ThrowSuccessResponse(); } + void OnSuccessResponse_10() { ThrowSuccessResponse(); } CHIP_ERROR TestReadsBackMandatoryAttributeCurrentX_11() { @@ -3334,12 +3100,13 @@ class Test_TC_CC_2_1 : public TestCommand uint16_t currentYArgument; currentYArgument = 24701U; - return cluster.WriteAttributeCurrentY(mOnSuccessCallback_14.Cancel(), mOnFailureCallback_14.Cancel(), currentYArgument); + return cluster.WriteAttribute( + currentYArgument, this, OnSuccessCallback_14, OnFailureCallback_14); } void OnFailureResponse_14(uint8_t status) { NextTest(); } - void OnSuccessResponse_14(uint16_t currentY) { ThrowSuccessResponse(); } + void OnSuccessResponse_14() { ThrowSuccessResponse(); } CHIP_ERROR TestReadsBackMandatoryAttributeCurrentY_15() { @@ -3431,13 +3198,13 @@ class Test_TC_CC_2_1 : public TestCommand uint8_t colorControlOptionsArgument; colorControlOptionsArgument = 0; - return cluster.WriteAttributeColorControlOptions(mOnSuccessCallback_20.Cancel(), mOnFailureCallback_20.Cancel(), - colorControlOptionsArgument); + return cluster.WriteAttribute( + colorControlOptionsArgument, this, OnSuccessCallback_20, OnFailureCallback_20); } void OnFailureResponse_20(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_20(uint8_t colorControlOptions) { NextTest(); } + void OnSuccessResponse_20() { NextTest(); } CHIP_ERROR TestReadsBackMandatoryAttributeOptions_21() { @@ -3495,13 +3262,13 @@ class Test_TC_CC_2_1 : public TestCommand uint16_t enhancedCurrentHueArgument; enhancedCurrentHueArgument = 0U; - return cluster.WriteAttributeEnhancedCurrentHue(mOnSuccessCallback_24.Cancel(), mOnFailureCallback_24.Cancel(), - enhancedCurrentHueArgument); + return cluster.WriteAttribute( + enhancedCurrentHueArgument, this, OnSuccessCallback_24, OnFailureCallback_24); } void OnFailureResponse_24(uint8_t status) { NextTest(); } - void OnSuccessResponse_24(uint16_t enhancedCurrentHue) { ThrowSuccessResponse(); } + void OnSuccessResponse_24() { ThrowSuccessResponse(); } CHIP_ERROR TestReadsBackMandatoryAttributeEnhancedCurrentHue_25() { @@ -3575,13 +3342,13 @@ class Test_TC_CC_2_1 : public TestCommand uint8_t colorLoopActiveArgument; colorLoopActiveArgument = 0; - return cluster.WriteAttributeColorLoopActive(mOnSuccessCallback_29.Cancel(), mOnFailureCallback_29.Cancel(), - colorLoopActiveArgument); + return cluster.WriteAttribute( + colorLoopActiveArgument, this, OnSuccessCallback_29, OnFailureCallback_29); } void OnFailureResponse_29(uint8_t status) { NextTest(); } - void OnSuccessResponse_29(uint8_t colorLoopActive) { ThrowSuccessResponse(); } + void OnSuccessResponse_29() { ThrowSuccessResponse(); } CHIP_ERROR TestReadsBackMandatoryAttributeColorLoopActive_30() { @@ -3639,13 +3406,13 @@ class Test_TC_CC_2_1 : public TestCommand uint8_t colorLoopDirectionArgument; colorLoopDirectionArgument = 0; - return cluster.WriteAttributeColorLoopDirection(mOnSuccessCallback_33.Cancel(), mOnFailureCallback_33.Cancel(), - colorLoopDirectionArgument); + return cluster.WriteAttribute( + colorLoopDirectionArgument, this, OnSuccessCallback_33, OnFailureCallback_33); } void OnFailureResponse_33(uint8_t status) { NextTest(); } - void OnSuccessResponse_33(uint8_t colorLoopDirection) { ThrowSuccessResponse(); } + void OnSuccessResponse_33() { ThrowSuccessResponse(); } CHIP_ERROR TestReadsBackMandatoryAttributeColorLoopDirection_34() { @@ -3703,13 +3470,13 @@ class Test_TC_CC_2_1 : public TestCommand uint16_t colorLoopTimeArgument; colorLoopTimeArgument = 25U; - return cluster.WriteAttributeColorLoopTime(mOnSuccessCallback_37.Cancel(), mOnFailureCallback_37.Cancel(), - colorLoopTimeArgument); + return cluster.WriteAttribute( + colorLoopTimeArgument, this, OnSuccessCallback_37, OnFailureCallback_37); } void OnFailureResponse_37(uint8_t status) { NextTest(); } - void OnSuccessResponse_37(uint16_t colorLoopTime) { ThrowSuccessResponse(); } + void OnSuccessResponse_37() { ThrowSuccessResponse(); } CHIP_ERROR TestReadsBackMandatoryAttributeColorLoopTime_38() { @@ -3767,13 +3534,13 @@ class Test_TC_CC_2_1 : public TestCommand uint16_t colorLoopStartEnhancedHueArgument; colorLoopStartEnhancedHueArgument = 8960U; - return cluster.WriteAttributeColorLoopStartEnhancedHue(mOnSuccessCallback_41.Cancel(), mOnFailureCallback_41.Cancel(), - colorLoopStartEnhancedHueArgument); + return cluster.WriteAttribute( + colorLoopStartEnhancedHueArgument, this, OnSuccessCallback_41, OnFailureCallback_41); } void OnFailureResponse_41(uint8_t status) { NextTest(); } - void OnSuccessResponse_41(uint16_t colorLoopStartEnhancedHue) { ThrowSuccessResponse(); } + void OnSuccessResponse_41() { ThrowSuccessResponse(); } CHIP_ERROR TestReadsBackMandatoryAttributeColorLoopStartEnhancedHue_42() { @@ -3831,13 +3598,13 @@ class Test_TC_CC_2_1 : public TestCommand uint16_t colorLoopStoredEnhancedHueArgument; colorLoopStoredEnhancedHueArgument = 0U; - return cluster.WriteAttributeColorLoopStoredEnhancedHue(mOnSuccessCallback_45.Cancel(), mOnFailureCallback_45.Cancel(), - colorLoopStoredEnhancedHueArgument); + return cluster.WriteAttribute( + colorLoopStoredEnhancedHueArgument, this, OnSuccessCallback_45, OnFailureCallback_45); } void OnFailureResponse_45(uint8_t status) { NextTest(); } - void OnSuccessResponse_45(uint16_t colorLoopStoredEnhancedHue) { ThrowSuccessResponse(); } + void OnSuccessResponse_45() { ThrowSuccessResponse(); } CHIP_ERROR TestReadsBackMandatoryAttributeColorLoopStoredEnhancedHue_46() { @@ -3896,13 +3663,13 @@ class Test_TC_CC_2_1 : public TestCommand uint16_t colorCapabilitiesArgument; colorCapabilitiesArgument = 0U; - return cluster.WriteAttributeColorCapabilities(mOnSuccessCallback_49.Cancel(), mOnFailureCallback_49.Cancel(), - colorCapabilitiesArgument); + return cluster.WriteAttribute( + colorCapabilitiesArgument, this, OnSuccessCallback_49, OnFailureCallback_49); } void OnFailureResponse_49(uint8_t status) { NextTest(); } - void OnSuccessResponse_49(uint16_t colorCapabilities) { ThrowSuccessResponse(); } + void OnSuccessResponse_49() { ThrowSuccessResponse(); } CHIP_ERROR TestReadsBackMandatoryAttributeColorCapabilities_50() { @@ -3961,13 +3728,13 @@ class Test_TC_CC_2_1 : public TestCommand uint16_t colorTempPhysicalMinArgument; colorTempPhysicalMinArgument = 0U; - return cluster.WriteAttributeColorTempPhysicalMin(mOnSuccessCallback_53.Cancel(), mOnFailureCallback_53.Cancel(), - colorTempPhysicalMinArgument); + return cluster.WriteAttribute( + colorTempPhysicalMinArgument, this, OnSuccessCallback_53, OnFailureCallback_53); } void OnFailureResponse_53(uint8_t status) { NextTest(); } - void OnSuccessResponse_53(uint16_t colorTempPhysicalMin) { ThrowSuccessResponse(); } + void OnSuccessResponse_53() { ThrowSuccessResponse(); } CHIP_ERROR TestReadsBackMandatoryAttributeColorTempPhysicalMinMireds_54() { @@ -4026,13 +3793,13 @@ class Test_TC_CC_2_1 : public TestCommand uint16_t colorTempPhysicalMaxArgument; colorTempPhysicalMaxArgument = 65279U; - return cluster.WriteAttributeColorTempPhysicalMax(mOnSuccessCallback_57.Cancel(), mOnFailureCallback_57.Cancel(), - colorTempPhysicalMaxArgument); + return cluster.WriteAttribute( + colorTempPhysicalMaxArgument, this, OnSuccessCallback_57, OnFailureCallback_57); } void OnFailureResponse_57(uint8_t status) { NextTest(); } - void OnSuccessResponse_57(uint16_t colorTempPhysicalMax) { ThrowSuccessResponse(); } + void OnSuccessResponse_57() { ThrowSuccessResponse(); } CHIP_ERROR TestReadsBackMandatoryAttributeColorTempPhysicalMaxMireds_58() { @@ -4074,13 +3841,13 @@ class Test_TC_CC_2_1 : public TestCommand uint16_t coupleColorTempToLevelMinMiredsArgument; coupleColorTempToLevelMinMiredsArgument = 0U; - return cluster.WriteAttributeCoupleColorTempToLevelMinMireds(mOnSuccessCallback_60.Cancel(), mOnFailureCallback_60.Cancel(), - coupleColorTempToLevelMinMiredsArgument); + return cluster.WriteAttribute( + coupleColorTempToLevelMinMiredsArgument, this, OnSuccessCallback_60, OnFailureCallback_60); } void OnFailureResponse_60(uint8_t status) { NextTest(); } - void OnSuccessResponse_60(uint16_t coupleColorTempToLevelMinMireds) { ThrowSuccessResponse(); } + void OnSuccessResponse_60() { ThrowSuccessResponse(); } CHIP_ERROR TestReadsBackOptionalAttributeCoupleColorTempToLevelMinMireds_61() { @@ -4123,13 +3890,13 @@ class Test_TC_CC_2_1 : public TestCommand uint16_t startUpColorTemperatureMiredsArgument; startUpColorTemperatureMiredsArgument = 0U; - return cluster.WriteAttributeStartUpColorTemperatureMireds(mOnSuccessCallback_63.Cancel(), mOnFailureCallback_63.Cancel(), - startUpColorTemperatureMiredsArgument); + return cluster.WriteAttribute( + startUpColorTemperatureMiredsArgument, this, OnSuccessCallback_63, OnFailureCallback_63); } void OnFailureResponse_63(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_63(uint16_t startUpColorTemperatureMireds) { NextTest(); } + void OnSuccessResponse_63() { NextTest(); } CHIP_ERROR TestReadsBackOptionalAttributeStartUpColorTemperatureMireds_64() { @@ -4188,13 +3955,13 @@ class Test_TC_CC_2_1 : public TestCommand uint16_t remainingTimeArgument; remainingTimeArgument = 0U; - return cluster.WriteAttributeRemainingTime(mOnSuccessCallback_67.Cancel(), mOnFailureCallback_67.Cancel(), - remainingTimeArgument); + return cluster.WriteAttribute( + remainingTimeArgument, this, OnSuccessCallback_67, OnFailureCallback_67); } void OnFailureResponse_67(uint8_t status) { NextTest(); } - void OnSuccessResponse_67(uint16_t remainingTime) { ThrowSuccessResponse(); } + void OnSuccessResponse_67() { ThrowSuccessResponse(); } CHIP_ERROR TestReadsBackOptionalAttributeRemainingTime_68() { @@ -4237,13 +4004,13 @@ class Test_TC_CC_2_1 : public TestCommand uint8_t driftCompensationArgument; driftCompensationArgument = static_cast(0); - return cluster.WriteAttributeDriftCompensation(mOnSuccessCallback_70.Cancel(), mOnFailureCallback_70.Cancel(), - driftCompensationArgument); + return cluster.WriteAttribute( + driftCompensationArgument, this, OnSuccessCallback_70, OnFailureCallback_70); } void OnFailureResponse_70(uint8_t status) { NextTest(); } - void OnSuccessResponse_70(uint8_t driftCompensation) { ThrowSuccessResponse(); } + void OnSuccessResponse_70() { ThrowSuccessResponse(); } CHIP_ERROR TestReadsBackOptionalAttributeDriftCompensation_71() { @@ -4303,13 +4070,13 @@ class Test_TC_CC_2_1 : public TestCommand uint8_t numberOfPrimariesArgument; numberOfPrimariesArgument = 0; - return cluster.WriteAttributeNumberOfPrimaries(mOnSuccessCallback_74.Cancel(), mOnFailureCallback_74.Cancel(), - numberOfPrimariesArgument); + return cluster.WriteAttribute( + numberOfPrimariesArgument, this, OnSuccessCallback_74, OnFailureCallback_74); } void OnFailureResponse_74(uint8_t status) { NextTest(); } - void OnSuccessResponse_74(uint8_t numberOfPrimaries) { ThrowSuccessResponse(); } + void OnSuccessResponse_74() { ThrowSuccessResponse(); } CHIP_ERROR TestReadBackTheMandatoryAttributeNumberOfPrimaries_75() { @@ -4352,12 +4119,13 @@ class Test_TC_CC_2_1 : public TestCommand uint16_t primary1XArgument; primary1XArgument = 0U; - return cluster.WriteAttributePrimary1X(mOnSuccessCallback_77.Cancel(), mOnFailureCallback_77.Cancel(), primary1XArgument); + return cluster.WriteAttribute( + primary1XArgument, this, OnSuccessCallback_77, OnFailureCallback_77); } void OnFailureResponse_77(uint8_t status) { NextTest(); } - void OnSuccessResponse_77(uint16_t primary1X) { ThrowSuccessResponse(); } + void OnSuccessResponse_77() { ThrowSuccessResponse(); } CHIP_ERROR TestReadBackTheMandatoryAttributePrimary1X_78() { @@ -4400,12 +4168,13 @@ class Test_TC_CC_2_1 : public TestCommand uint16_t primary1YArgument; primary1YArgument = 0U; - return cluster.WriteAttributePrimary1Y(mOnSuccessCallback_80.Cancel(), mOnFailureCallback_80.Cancel(), primary1YArgument); + return cluster.WriteAttribute( + primary1YArgument, this, OnSuccessCallback_80, OnFailureCallback_80); } void OnFailureResponse_80(uint8_t status) { NextTest(); } - void OnSuccessResponse_80(uint16_t primary1Y) { ThrowSuccessResponse(); } + void OnSuccessResponse_80() { ThrowSuccessResponse(); } CHIP_ERROR TestReadBackTheMandatoryAttributePrimary1Y_81() { @@ -4464,12 +4233,13 @@ class Test_TC_CC_2_1 : public TestCommand uint16_t primary2XArgument; primary2XArgument = 0U; - return cluster.WriteAttributePrimary2X(mOnSuccessCallback_84.Cancel(), mOnFailureCallback_84.Cancel(), primary2XArgument); + return cluster.WriteAttribute( + primary2XArgument, this, OnSuccessCallback_84, OnFailureCallback_84); } void OnFailureResponse_84(uint8_t status) { NextTest(); } - void OnSuccessResponse_84(uint16_t primary2X) { ThrowSuccessResponse(); } + void OnSuccessResponse_84() { ThrowSuccessResponse(); } CHIP_ERROR TestReadBackTheMandatoryAttributePrimary2X_85() { @@ -4512,12 +4282,13 @@ class Test_TC_CC_2_1 : public TestCommand uint16_t primary2YArgument; primary2YArgument = 0U; - return cluster.WriteAttributePrimary2Y(mOnSuccessCallback_87.Cancel(), mOnFailureCallback_87.Cancel(), primary2YArgument); + return cluster.WriteAttribute( + primary2YArgument, this, OnSuccessCallback_87, OnFailureCallback_87); } void OnFailureResponse_87(uint8_t status) { NextTest(); } - void OnSuccessResponse_87(uint16_t primary2Y) { ThrowSuccessResponse(); } + void OnSuccessResponse_87() { ThrowSuccessResponse(); } CHIP_ERROR TestReadBackTheMandatoryAttributePrimary2Y_88() { @@ -4576,12 +4347,13 @@ class Test_TC_CC_2_1 : public TestCommand uint16_t primary3XArgument; primary3XArgument = 0U; - return cluster.WriteAttributePrimary3X(mOnSuccessCallback_91.Cancel(), mOnFailureCallback_91.Cancel(), primary3XArgument); + return cluster.WriteAttribute( + primary3XArgument, this, OnSuccessCallback_91, OnFailureCallback_91); } void OnFailureResponse_91(uint8_t status) { NextTest(); } - void OnSuccessResponse_91(uint16_t primary3X) { ThrowSuccessResponse(); } + void OnSuccessResponse_91() { ThrowSuccessResponse(); } CHIP_ERROR TestReadBackTheMandatoryAttributePrimary3X_92() { @@ -4624,12 +4396,13 @@ class Test_TC_CC_2_1 : public TestCommand uint16_t primary3YArgument; primary3YArgument = 0U; - return cluster.WriteAttributePrimary3Y(mOnSuccessCallback_94.Cancel(), mOnFailureCallback_94.Cancel(), primary3YArgument); + return cluster.WriteAttribute( + primary3YArgument, this, OnSuccessCallback_94, OnFailureCallback_94); } void OnFailureResponse_94(uint8_t status) { NextTest(); } - void OnSuccessResponse_94(uint16_t primary3Y) { ThrowSuccessResponse(); } + void OnSuccessResponse_94() { ThrowSuccessResponse(); } CHIP_ERROR TestReadBackTheMandatoryAttributePrimary3Y_95() { @@ -4688,12 +4461,13 @@ class Test_TC_CC_2_1 : public TestCommand uint16_t primary4XArgument; primary4XArgument = 0U; - return cluster.WriteAttributePrimary4X(mOnSuccessCallback_98.Cancel(), mOnFailureCallback_98.Cancel(), primary4XArgument); + return cluster.WriteAttribute( + primary4XArgument, this, OnSuccessCallback_98, OnFailureCallback_98); } void OnFailureResponse_98(uint8_t status) { NextTest(); } - void OnSuccessResponse_98(uint16_t primary4X) { ThrowSuccessResponse(); } + void OnSuccessResponse_98() { ThrowSuccessResponse(); } CHIP_ERROR TestReadBackTheMandatoryAttributePrimary4X_99() { @@ -4736,12 +4510,13 @@ class Test_TC_CC_2_1 : public TestCommand uint16_t primary4YArgument; primary4YArgument = 0U; - return cluster.WriteAttributePrimary4Y(mOnSuccessCallback_101.Cancel(), mOnFailureCallback_101.Cancel(), primary4YArgument); + return cluster.WriteAttribute( + primary4YArgument, this, OnSuccessCallback_101, OnFailureCallback_101); } void OnFailureResponse_101(uint8_t status) { NextTest(); } - void OnSuccessResponse_101(uint16_t primary4Y) { ThrowSuccessResponse(); } + void OnSuccessResponse_101() { ThrowSuccessResponse(); } CHIP_ERROR TestReadBackTheMandatoryAttributePrimary4Y_102() { @@ -4800,12 +4575,13 @@ class Test_TC_CC_2_1 : public TestCommand uint16_t primary5XArgument; primary5XArgument = 0U; - return cluster.WriteAttributePrimary5X(mOnSuccessCallback_105.Cancel(), mOnFailureCallback_105.Cancel(), primary5XArgument); + return cluster.WriteAttribute( + primary5XArgument, this, OnSuccessCallback_105, OnFailureCallback_105); } void OnFailureResponse_105(uint8_t status) { NextTest(); } - void OnSuccessResponse_105(uint16_t primary5X) { ThrowSuccessResponse(); } + void OnSuccessResponse_105() { ThrowSuccessResponse(); } CHIP_ERROR TestReadBackTheMandatoryAttributePrimary5X_106() { @@ -4848,12 +4624,13 @@ class Test_TC_CC_2_1 : public TestCommand uint16_t primary5YArgument; primary5YArgument = 0U; - return cluster.WriteAttributePrimary5Y(mOnSuccessCallback_108.Cancel(), mOnFailureCallback_108.Cancel(), primary5YArgument); + return cluster.WriteAttribute( + primary5YArgument, this, OnSuccessCallback_108, OnFailureCallback_108); } void OnFailureResponse_108(uint8_t status) { NextTest(); } - void OnSuccessResponse_108(uint16_t primary5Y) { ThrowSuccessResponse(); } + void OnSuccessResponse_108() { ThrowSuccessResponse(); } CHIP_ERROR TestReadBackTheMandatoryAttributePrimary5Y_109() { @@ -4912,12 +4689,13 @@ class Test_TC_CC_2_1 : public TestCommand uint16_t primary6XArgument; primary6XArgument = 0U; - return cluster.WriteAttributePrimary6X(mOnSuccessCallback_112.Cancel(), mOnFailureCallback_112.Cancel(), primary6XArgument); + return cluster.WriteAttribute( + primary6XArgument, this, OnSuccessCallback_112, OnFailureCallback_112); } void OnFailureResponse_112(uint8_t status) { NextTest(); } - void OnSuccessResponse_112(uint16_t primary6X) { ThrowSuccessResponse(); } + void OnSuccessResponse_112() { ThrowSuccessResponse(); } CHIP_ERROR TestReadBackTheMandatoryAttributePrimary6X_113() { @@ -4960,12 +4738,13 @@ class Test_TC_CC_2_1 : public TestCommand uint16_t primary6YArgument; primary6YArgument = 0U; - return cluster.WriteAttributePrimary6Y(mOnSuccessCallback_115.Cancel(), mOnFailureCallback_115.Cancel(), primary6YArgument); + return cluster.WriteAttribute( + primary6YArgument, this, OnSuccessCallback_115, OnFailureCallback_115); } void OnFailureResponse_115(uint8_t status) { NextTest(); } - void OnSuccessResponse_115(uint16_t primary6Y) { ThrowSuccessResponse(); } + void OnSuccessResponse_115() { ThrowSuccessResponse(); } CHIP_ERROR TestReadBackTheMandatoryAttributePrimary6Y_116() { @@ -5024,13 +4803,13 @@ class Test_TC_CC_2_1 : public TestCommand uint16_t whitePointXArgument; whitePointXArgument = 0U; - return cluster.WriteAttributeWhitePointX(mOnSuccessCallback_119.Cancel(), mOnFailureCallback_119.Cancel(), - whitePointXArgument); + return cluster.WriteAttribute( + whitePointXArgument, this, OnSuccessCallback_119, OnFailureCallback_119); } void OnFailureResponse_119(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_119(uint16_t whitePointX) { NextTest(); } + void OnSuccessResponse_119() { NextTest(); } CHIP_ERROR TestReadBackTheOptionalAttributeWhitePointX_120() { @@ -5073,13 +4852,13 @@ class Test_TC_CC_2_1 : public TestCommand uint16_t whitePointYArgument; whitePointYArgument = 0U; - return cluster.WriteAttributeWhitePointY(mOnSuccessCallback_122.Cancel(), mOnFailureCallback_122.Cancel(), - whitePointYArgument); + return cluster.WriteAttribute( + whitePointYArgument, this, OnSuccessCallback_122, OnFailureCallback_122); } void OnFailureResponse_122(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_122(uint16_t whitePointY) { NextTest(); } + void OnSuccessResponse_122() { NextTest(); } CHIP_ERROR TestReadBackTheOptionalAttributeWhitePointY_123() { @@ -5122,13 +4901,13 @@ class Test_TC_CC_2_1 : public TestCommand uint16_t colorPointRXArgument; colorPointRXArgument = 0U; - return cluster.WriteAttributeColorPointRX(mOnSuccessCallback_125.Cancel(), mOnFailureCallback_125.Cancel(), - colorPointRXArgument); + return cluster.WriteAttribute( + colorPointRXArgument, this, OnSuccessCallback_125, OnFailureCallback_125); } void OnFailureResponse_125(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_125(uint16_t colorPointRX) { NextTest(); } + void OnSuccessResponse_125() { NextTest(); } CHIP_ERROR TestReadBackTheOptionalAttributeColorPointRX_126() { @@ -5171,13 +4950,13 @@ class Test_TC_CC_2_1 : public TestCommand uint16_t colorPointRYArgument; colorPointRYArgument = 0U; - return cluster.WriteAttributeColorPointRY(mOnSuccessCallback_128.Cancel(), mOnFailureCallback_128.Cancel(), - colorPointRYArgument); + return cluster.WriteAttribute( + colorPointRYArgument, this, OnSuccessCallback_128, OnFailureCallback_128); } void OnFailureResponse_128(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_128(uint16_t colorPointRY) { NextTest(); } + void OnSuccessResponse_128() { NextTest(); } CHIP_ERROR TestReadBackTheOptionalAttributeColorPointRY_129() { @@ -5236,13 +5015,13 @@ class Test_TC_CC_2_1 : public TestCommand uint16_t colorPointGXArgument; colorPointGXArgument = 0U; - return cluster.WriteAttributeColorPointGX(mOnSuccessCallback_132.Cancel(), mOnFailureCallback_132.Cancel(), - colorPointGXArgument); + return cluster.WriteAttribute( + colorPointGXArgument, this, OnSuccessCallback_132, OnFailureCallback_132); } void OnFailureResponse_132(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_132(uint16_t colorPointGX) { NextTest(); } + void OnSuccessResponse_132() { NextTest(); } CHIP_ERROR TestReadBackTheOptionalAttributeColorPointGX_133() { @@ -5285,13 +5064,13 @@ class Test_TC_CC_2_1 : public TestCommand uint16_t colorPointGYArgument; colorPointGYArgument = 0U; - return cluster.WriteAttributeColorPointGY(mOnSuccessCallback_135.Cancel(), mOnFailureCallback_135.Cancel(), - colorPointGYArgument); + return cluster.WriteAttribute( + colorPointGYArgument, this, OnSuccessCallback_135, OnFailureCallback_135); } void OnFailureResponse_135(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_135(uint16_t colorPointGY) { NextTest(); } + void OnSuccessResponse_135() { NextTest(); } CHIP_ERROR TestReadBackTheOptionalAttributeColorPointGY_136() { @@ -5350,13 +5129,13 @@ class Test_TC_CC_2_1 : public TestCommand uint16_t colorPointBXArgument; colorPointBXArgument = 0U; - return cluster.WriteAttributeColorPointBX(mOnSuccessCallback_139.Cancel(), mOnFailureCallback_139.Cancel(), - colorPointBXArgument); + return cluster.WriteAttribute( + colorPointBXArgument, this, OnSuccessCallback_139, OnFailureCallback_139); } void OnFailureResponse_139(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_139(uint16_t colorPointBX) { NextTest(); } + void OnSuccessResponse_139() { NextTest(); } CHIP_ERROR TestReadBackTheOptionalAttributeColorPointBX_140() { @@ -5399,13 +5178,13 @@ class Test_TC_CC_2_1 : public TestCommand uint16_t colorPointBYArgument; colorPointBYArgument = 0U; - return cluster.WriteAttributeColorPointBY(mOnSuccessCallback_142.Cancel(), mOnFailureCallback_142.Cancel(), - colorPointBYArgument); + return cluster.WriteAttribute( + colorPointBYArgument, this, OnSuccessCallback_142, OnFailureCallback_142); } void OnFailureResponse_142(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_142(uint16_t colorPointBY) { NextTest(); } + void OnSuccessResponse_142() { NextTest(); } CHIP_ERROR TestReadBackTheOptionalAttributeColorPointBY_143() { @@ -11821,8 +11600,6 @@ class Test_TC_EMR_1_1 : public TestCommand chip::Callback::Callback mOnFailureCallback_0{ OnFailureCallback_0, this }; chip::Callback::Callback mOnSuccessCallback_0{ OnSuccessCallback_0, this }; - chip::Callback::Callback mOnFailureCallback_1{ OnFailureCallback_1, this }; - chip::Callback::Callback mOnSuccessCallback_1{ OnSuccessCallback_1, this }; chip::Callback::Callback mOnFailureCallback_2{ OnFailureCallback_2, this }; chip::Callback::Callback mOnSuccessCallback_2{ OnSuccessCallback_2, this }; @@ -11836,15 +11613,12 @@ class Test_TC_EMR_1_1 : public TestCommand (static_cast(context))->OnSuccessResponse_0(clusterRevision); } - static void OnFailureCallback_1(void * context, uint8_t status) + static void OnFailureCallback_1(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); } - static void OnSuccessCallback_1(void * context, uint16_t clusterRevision) - { - (static_cast(context))->OnSuccessResponse_1(clusterRevision); - } + static void OnSuccessCallback_1(void * context) { (static_cast(context))->OnSuccessResponse_1(); } static void OnFailureCallback_2(void * context, uint8_t status) { @@ -11884,13 +11658,13 @@ class Test_TC_EMR_1_1 : public TestCommand uint16_t clusterRevisionArgument; clusterRevisionArgument = 1U; - return cluster.WriteAttributeClusterRevision(mOnSuccessCallback_1.Cancel(), mOnFailureCallback_1.Cancel(), - clusterRevisionArgument); + return cluster.WriteAttribute( + clusterRevisionArgument, this, OnSuccessCallback_1, OnFailureCallback_1); } void OnFailureResponse_1(uint8_t status) { NextTest(); } - void OnSuccessResponse_1(uint16_t clusterRevision) { ThrowSuccessResponse(); } + void OnSuccessResponse_1() { ThrowSuccessResponse(); } CHIP_ERROR TestReadsBackGlobalAttributeClusterRevision_2() { @@ -11957,18 +11731,12 @@ class Test_TC_FLW_1_1 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 1; - chip::Callback::Callback mOnFailureCallback_0{ OnFailureCallback_0, this }; - chip::Callback::Callback mOnSuccessCallback_0{ OnSuccessCallback_0, this }; - - static void OnFailureCallback_0(void * context, uint8_t status) + static void OnFailureCallback_0(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(status); + (static_cast(context))->OnFailureResponse_0(chip::to_underlying(status)); } - static void OnSuccessCallback_0(void * context, uint16_t clusterRevision) - { - (static_cast(context))->OnSuccessResponse_0(clusterRevision); - } + static void OnSuccessCallback_0(void * context) { (static_cast(context))->OnSuccessResponse_0(); } // // Tests methods @@ -11982,13 +11750,13 @@ class Test_TC_FLW_1_1 : public TestCommand uint16_t clusterRevisionArgument; clusterRevisionArgument = 2U; - return cluster.WriteAttributeClusterRevision(mOnSuccessCallback_0.Cancel(), mOnFailureCallback_0.Cancel(), - clusterRevisionArgument); + return cluster.WriteAttribute( + clusterRevisionArgument, this, OnSuccessCallback_0, OnFailureCallback_0); } void OnFailureResponse_0(uint8_t status) { NextTest(); } - void OnSuccessResponse_0(uint16_t clusterRevision) { ThrowSuccessResponse(); } + void OnSuccessResponse_0() { ThrowSuccessResponse(); } }; class Test_TC_FLW_2_1 : public TestCommand @@ -12072,10 +11840,6 @@ class Test_TC_FLW_2_1 : public TestCommand chip::Callback::Callback mOnSuccessCallback_1{ OnSuccessCallback_1, this }; chip::Callback::Callback mOnFailureCallback_2{ OnFailureCallback_2, this }; chip::Callback::Callback mOnSuccessCallback_2{ OnSuccessCallback_2, this }; - chip::Callback::Callback mOnFailureCallback_3{ OnFailureCallback_3, this }; - chip::Callback::Callback mOnSuccessCallback_3{ OnSuccessCallback_3, this }; - chip::Callback::Callback mOnFailureCallback_4{ OnFailureCallback_4, this }; - chip::Callback::Callback mOnSuccessCallback_4{ OnSuccessCallback_4, this }; chip::Callback::Callback mOnFailureCallback_5{ OnFailureCallback_5, this }; chip::Callback::Callback mOnSuccessCallback_5{ OnSuccessCallback_5, this }; chip::Callback::Callback mOnFailureCallback_6{ OnFailureCallback_6, this }; @@ -12113,25 +11877,19 @@ class Test_TC_FLW_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_2(maxMeasuredValue); } - static void OnFailureCallback_3(void * context, uint8_t status) + static void OnFailureCallback_3(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_3(status); + (static_cast(context))->OnFailureResponse_3(chip::to_underlying(status)); } - static void OnSuccessCallback_3(void * context, int16_t minMeasuredValue) - { - (static_cast(context))->OnSuccessResponse_3(minMeasuredValue); - } + static void OnSuccessCallback_3(void * context) { (static_cast(context))->OnSuccessResponse_3(); } - static void OnFailureCallback_4(void * context, uint8_t status) + static void OnFailureCallback_4(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_4(status); + (static_cast(context))->OnFailureResponse_4(chip::to_underlying(status)); } - static void OnSuccessCallback_4(void * context, int16_t maxMeasuredValue) - { - (static_cast(context))->OnSuccessResponse_4(maxMeasuredValue); - } + static void OnSuccessCallback_4(void * context) { (static_cast(context))->OnSuccessResponse_4(); } static void OnFailureCallback_5(void * context, uint8_t status) { @@ -12223,13 +11981,13 @@ class Test_TC_FLW_2_1 : public TestCommand int16_t minMeasuredValueArgument; minMeasuredValueArgument = 0; - return cluster.WriteAttributeMinMeasuredValue(mOnSuccessCallback_3.Cancel(), mOnFailureCallback_3.Cancel(), - minMeasuredValueArgument); + return cluster.WriteAttribute( + minMeasuredValueArgument, this, OnSuccessCallback_3, OnFailureCallback_3); } void OnFailureResponse_3(uint8_t status) { NextTest(); } - void OnSuccessResponse_3(int16_t minMeasuredValue) { ThrowSuccessResponse(); } + void OnSuccessResponse_3() { ThrowSuccessResponse(); } CHIP_ERROR TestWriteTheDefaultValueToOptionalAttributeMaxMeasuredValue_4() { @@ -12239,13 +11997,13 @@ class Test_TC_FLW_2_1 : public TestCommand int16_t maxMeasuredValueArgument; maxMeasuredValueArgument = 0; - return cluster.WriteAttributeMaxMeasuredValue(mOnSuccessCallback_4.Cancel(), mOnFailureCallback_4.Cancel(), - maxMeasuredValueArgument); + return cluster.WriteAttribute( + maxMeasuredValueArgument, this, OnSuccessCallback_4, OnFailureCallback_4); } void OnFailureResponse_4(uint8_t status) { NextTest(); } - void OnSuccessResponse_4(int16_t maxMeasuredValue) { ThrowSuccessResponse(); } + void OnSuccessResponse_4() { ThrowSuccessResponse(); } CHIP_ERROR TestReadTheMandatoryAttributeMeasuredValue_5() { @@ -12457,18 +12215,12 @@ class Test_TC_LVL_1_1 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 1; - chip::Callback::Callback mOnFailureCallback_0{ OnFailureCallback_0, this }; - chip::Callback::Callback mOnSuccessCallback_0{ OnSuccessCallback_0, this }; - - static void OnFailureCallback_0(void * context, uint8_t status) + static void OnFailureCallback_0(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(status); + (static_cast(context))->OnFailureResponse_0(chip::to_underlying(status)); } - static void OnSuccessCallback_0(void * context, uint16_t clusterRevision) - { - (static_cast(context))->OnSuccessResponse_0(clusterRevision); - } + static void OnSuccessCallback_0(void * context) { (static_cast(context))->OnSuccessResponse_0(); } // // Tests methods @@ -12482,13 +12234,13 @@ class Test_TC_LVL_1_1 : public TestCommand uint16_t clusterRevisionArgument; clusterRevisionArgument = 4U; - return cluster.WriteAttributeClusterRevision(mOnSuccessCallback_0.Cancel(), mOnFailureCallback_0.Cancel(), - clusterRevisionArgument); + return cluster.WriteAttribute( + clusterRevisionArgument, this, OnSuccessCallback_0, OnFailureCallback_0); } void OnFailureResponse_0(uint8_t status) { NextTest(); } - void OnSuccessResponse_0(uint16_t clusterRevision) { ThrowSuccessResponse(); } + void OnSuccessResponse_0() { ThrowSuccessResponse(); } }; class Test_TC_LVL_2_1 : public TestCommand @@ -12962,8 +12714,6 @@ class Test_TC_LVL_3_1 : public TestCommand chip::Callback::Callback mOnSuccessCallback_5{ OnSuccessCallback_5, this }; chip::Callback::Callback mOnFailureCallback_8{ OnFailureCallback_8, this }; chip::Callback::Callback mOnSuccessCallback_8{ OnSuccessCallback_8, this }; - chip::Callback::Callback mOnFailureCallback_9{ OnFailureCallback_9, this }; - chip::Callback::Callback mOnSuccessCallback_9{ OnSuccessCallback_9, this }; chip::Callback::Callback mOnFailureCallback_10{ OnFailureCallback_10, this }; chip::Callback::Callback mOnSuccessCallback_10{ OnSuccessCallback_10, this }; chip::Callback::Callback mOnFailureCallback_13{ OnFailureCallback_13, this }; @@ -13019,15 +12769,12 @@ class Test_TC_LVL_3_1 : public TestCommand (static_cast(context))->OnSuccessResponse_8(currentLevel); } - static void OnFailureCallback_9(void * context, uint8_t status) + static void OnFailureCallback_9(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_9(status); + (static_cast(context))->OnFailureResponse_9(chip::to_underlying(status)); } - static void OnSuccessCallback_9(void * context, uint8_t defaultMoveRate) - { - (static_cast(context))->OnSuccessResponse_9(defaultMoveRate); - } + static void OnSuccessCallback_9(void * context) { (static_cast(context))->OnSuccessResponse_9(); } static void OnFailureCallback_10(void * context, uint8_t status) { @@ -13201,13 +12948,13 @@ class Test_TC_LVL_3_1 : public TestCommand uint8_t defaultMoveRateArgument; defaultMoveRateArgument = 20; - return cluster.WriteAttributeDefaultMoveRate(mOnSuccessCallback_9.Cancel(), mOnFailureCallback_9.Cancel(), - defaultMoveRateArgument); + return cluster.WriteAttribute( + defaultMoveRateArgument, this, OnSuccessCallback_9, OnFailureCallback_9); } void OnFailureResponse_9(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_9(uint8_t defaultMoveRate) { NextTest(); } + void OnSuccessResponse_9() { NextTest(); } CHIP_ERROR TestReadsDefaultMoveRateAttributeFromDut_10() { @@ -13849,18 +13596,12 @@ class Test_TC_MC_1_1 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 1; - chip::Callback::Callback mOnFailureCallback_0{ OnFailureCallback_0, this }; - chip::Callback::Callback mOnSuccessCallback_0{ OnSuccessCallback_0, this }; - - static void OnFailureCallback_0(void * context, uint8_t status) + static void OnFailureCallback_0(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(status); + (static_cast(context))->OnFailureResponse_0(chip::to_underlying(status)); } - static void OnSuccessCallback_0(void * context, uint16_t clusterRevision) - { - (static_cast(context))->OnSuccessResponse_0(clusterRevision); - } + static void OnSuccessCallback_0(void * context) { (static_cast(context))->OnSuccessResponse_0(); } // // Tests methods @@ -13874,13 +13615,13 @@ class Test_TC_MC_1_1 : public TestCommand uint16_t clusterRevisionArgument; clusterRevisionArgument = 1U; - return cluster.WriteAttributeClusterRevision(mOnSuccessCallback_0.Cancel(), mOnFailureCallback_0.Cancel(), - clusterRevisionArgument); + return cluster.WriteAttribute( + clusterRevisionArgument, this, OnSuccessCallback_0, OnFailureCallback_0); } void OnFailureResponse_0(uint8_t status) { NextTest(); } - void OnSuccessResponse_0(uint16_t clusterRevision) { ThrowSuccessResponse(); } + void OnSuccessResponse_0() { ThrowSuccessResponse(); } }; class Test_TC_MC_2_1 : public TestCommand @@ -14541,8 +14282,6 @@ class Test_TC_OCC_1_1 : public TestCommand chip::Callback::Callback mOnFailureCallback_0{ OnFailureCallback_0, this }; chip::Callback::Callback mOnSuccessCallback_0{ OnSuccessCallback_0, this }; - chip::Callback::Callback mOnFailureCallback_1{ OnFailureCallback_1, this }; - chip::Callback::Callback mOnSuccessCallback_1{ OnSuccessCallback_1, this }; static void OnFailureCallback_0(void * context, uint8_t status) { @@ -14554,15 +14293,12 @@ class Test_TC_OCC_1_1 : public TestCommand (static_cast(context))->OnSuccessResponse_0(clusterRevision); } - static void OnFailureCallback_1(void * context, uint8_t status) + static void OnFailureCallback_1(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); } - static void OnSuccessCallback_1(void * context, uint16_t clusterRevision) - { - (static_cast(context))->OnSuccessResponse_1(clusterRevision); - } + static void OnSuccessCallback_1(void * context) { (static_cast(context))->OnSuccessResponse_1(); } // // Tests methods @@ -14592,13 +14328,13 @@ class Test_TC_OCC_1_1 : public TestCommand uint16_t clusterRevisionArgument; clusterRevisionArgument = 2U; - return cluster.WriteAttributeClusterRevision(mOnSuccessCallback_1.Cancel(), mOnFailureCallback_1.Cancel(), - clusterRevisionArgument); + return cluster.WriteAttribute( + clusterRevisionArgument, this, OnSuccessCallback_1, OnFailureCallback_1); } void OnFailureResponse_1(uint8_t status) { NextTest(); } - void OnSuccessResponse_1(uint16_t clusterRevision) { ThrowSuccessResponse(); } + void OnSuccessResponse_1() { ThrowSuccessResponse(); } }; class Test_TC_OCC_2_1 : public TestCommand @@ -14686,25 +14422,17 @@ class Test_TC_OCC_2_1 : public TestCommand chip::Callback::Callback mOnFailureCallback_0{ OnFailureCallback_0, this }; chip::Callback::Callback mOnSuccessCallback_0{ OnSuccessCallback_0, this }; - chip::Callback::Callback mOnFailureCallback_1{ OnFailureCallback_1, this }; - chip::Callback::Callback mOnSuccessCallback_1{ OnSuccessCallback_1, this }; chip::Callback::Callback mOnFailureCallback_2{ OnFailureCallback_2, this }; chip::Callback::Callback mOnSuccessCallback_2{ OnSuccessCallback_2, this }; chip::Callback::Callback mOnFailureCallback_3{ OnFailureCallback_3, this }; chip::Callback::Callback mOnSuccessCallback_3{ OnSuccessCallback_3, this }; - chip::Callback::Callback mOnFailureCallback_4{ OnFailureCallback_4, this }; - chip::Callback::Callback mOnSuccessCallback_4{ OnSuccessCallback_4, - this }; chip::Callback::Callback mOnFailureCallback_5{ OnFailureCallback_5, this }; chip::Callback::Callback mOnSuccessCallback_5{ OnSuccessCallback_5, this }; chip::Callback::Callback mOnFailureCallback_6{ OnFailureCallback_6, this }; chip::Callback::Callback mOnSuccessCallback_6{ OnSuccessCallback_6, this }; - chip::Callback::Callback mOnFailureCallback_7{ OnFailureCallback_7, this }; - chip::Callback::Callback mOnSuccessCallback_7{ OnSuccessCallback_7, - this }; chip::Callback::Callback mOnFailureCallback_8{ OnFailureCallback_8, this }; chip::Callback::Callback mOnSuccessCallback_8{ OnSuccessCallback_8, this }; @@ -14719,15 +14447,12 @@ class Test_TC_OCC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_0(occupancy); } - static void OnFailureCallback_1(void * context, uint8_t status) + static void OnFailureCallback_1(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); } - static void OnSuccessCallback_1(void * context, uint8_t occupancy) - { - (static_cast(context))->OnSuccessResponse_1(occupancy); - } + static void OnSuccessCallback_1(void * context) { (static_cast(context))->OnSuccessResponse_1(); } static void OnFailureCallback_2(void * context, uint8_t status) { @@ -14749,15 +14474,12 @@ class Test_TC_OCC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_3(occupancySensorType); } - static void OnFailureCallback_4(void * context, uint8_t status) + static void OnFailureCallback_4(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_4(status); + (static_cast(context))->OnFailureResponse_4(chip::to_underlying(status)); } - static void OnSuccessCallback_4(void * context, uint8_t occupancySensorType) - { - (static_cast(context))->OnSuccessResponse_4(occupancySensorType); - } + static void OnSuccessCallback_4(void * context) { (static_cast(context))->OnSuccessResponse_4(); } static void OnFailureCallback_5(void * context, uint8_t status) { @@ -14779,15 +14501,12 @@ class Test_TC_OCC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_6(occupancySensorTypeBitmap); } - static void OnFailureCallback_7(void * context, uint8_t status) + static void OnFailureCallback_7(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_7(status); + (static_cast(context))->OnFailureResponse_7(chip::to_underlying(status)); } - static void OnSuccessCallback_7(void * context, uint8_t occupancySensorTypeBitmap) - { - (static_cast(context))->OnSuccessResponse_7(occupancySensorTypeBitmap); - } + static void OnSuccessCallback_7(void * context) { (static_cast(context))->OnSuccessResponse_7(); } static void OnFailureCallback_8(void * context, uint8_t status) { @@ -14828,12 +14547,13 @@ class Test_TC_OCC_2_1 : public TestCommand uint8_t occupancyArgument; occupancyArgument = 0; - return cluster.WriteAttributeOccupancy(mOnSuccessCallback_1.Cancel(), mOnFailureCallback_1.Cancel(), occupancyArgument); + return cluster.WriteAttribute( + occupancyArgument, this, OnSuccessCallback_1, OnFailureCallback_1); } void OnFailureResponse_1(uint8_t status) { NextTest(); } - void OnSuccessResponse_1(uint8_t occupancy) { ThrowSuccessResponse(); } + void OnSuccessResponse_1() { ThrowSuccessResponse(); } CHIP_ERROR TestReadsBackMandatoryAttributeOccupancy_2() { @@ -14876,13 +14596,13 @@ class Test_TC_OCC_2_1 : public TestCommand uint8_t occupancySensorTypeArgument; occupancySensorTypeArgument = static_cast(0); - return cluster.WriteAttributeOccupancySensorType(mOnSuccessCallback_4.Cancel(), mOnFailureCallback_4.Cancel(), - occupancySensorTypeArgument); + return cluster.WriteAttribute( + occupancySensorTypeArgument, this, OnSuccessCallback_4, OnFailureCallback_4); } void OnFailureResponse_4(uint8_t status) { NextTest(); } - void OnSuccessResponse_4(uint8_t occupancySensorType) { ThrowSuccessResponse(); } + void OnSuccessResponse_4() { ThrowSuccessResponse(); } CHIP_ERROR TestReadsBackMandatoryAttributeOccupancySensorType_5() { @@ -14926,13 +14646,13 @@ class Test_TC_OCC_2_1 : public TestCommand uint8_t occupancySensorTypeBitmapArgument; occupancySensorTypeBitmapArgument = 1; - return cluster.WriteAttributeOccupancySensorTypeBitmap(mOnSuccessCallback_7.Cancel(), mOnFailureCallback_7.Cancel(), - occupancySensorTypeBitmapArgument); + return cluster.WriteAttribute( + occupancySensorTypeBitmapArgument, this, OnSuccessCallback_7, OnFailureCallback_7); } void OnFailureResponse_7(uint8_t status) { NextTest(); } - void OnSuccessResponse_7(uint8_t occupancySensorTypeBitmap) { ThrowSuccessResponse(); } + void OnSuccessResponse_7() { ThrowSuccessResponse(); } CHIP_ERROR TestReadsBackMandatoryAttributeOccupancySensorTypeBitmap_8() { @@ -15134,14 +14854,10 @@ class Test_TC_OO_1_1 : public TestCommand chip::Callback::Callback mOnFailureCallback_0{ OnFailureCallback_0, this }; chip::Callback::Callback mOnSuccessCallback_0{ OnSuccessCallback_0, this }; - chip::Callback::Callback mOnFailureCallback_1{ OnFailureCallback_1, this }; - chip::Callback::Callback mOnSuccessCallback_1{ OnSuccessCallback_1, this }; chip::Callback::Callback mOnFailureCallback_2{ OnFailureCallback_2, this }; chip::Callback::Callback mOnSuccessCallback_2{ OnSuccessCallback_2, this }; chip::Callback::Callback mOnFailureCallback_3{ OnFailureCallback_3, this }; chip::Callback::Callback mOnSuccessCallback_3{ OnSuccessCallback_3, this }; - chip::Callback::Callback mOnFailureCallback_4{ OnFailureCallback_4, this }; - chip::Callback::Callback mOnSuccessCallback_4{ OnSuccessCallback_4, this }; chip::Callback::Callback mOnFailureCallback_5{ OnFailureCallback_5, this }; chip::Callback::Callback mOnSuccessCallback_5{ OnSuccessCallback_5, this }; @@ -15155,15 +14871,12 @@ class Test_TC_OO_1_1 : public TestCommand (static_cast(context))->OnSuccessResponse_0(clusterRevision); } - static void OnFailureCallback_1(void * context, uint8_t status) + static void OnFailureCallback_1(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); } - static void OnSuccessCallback_1(void * context, uint16_t clusterRevision) - { - (static_cast(context))->OnSuccessResponse_1(clusterRevision); - } + static void OnSuccessCallback_1(void * context) { (static_cast(context))->OnSuccessResponse_1(); } static void OnFailureCallback_2(void * context, uint8_t status) { @@ -15185,15 +14898,12 @@ class Test_TC_OO_1_1 : public TestCommand (static_cast(context))->OnSuccessResponse_3(featureMap); } - static void OnFailureCallback_4(void * context, uint8_t status) + static void OnFailureCallback_4(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_4(status); + (static_cast(context))->OnFailureResponse_4(chip::to_underlying(status)); } - static void OnSuccessCallback_4(void * context, uint32_t featureMap) - { - (static_cast(context))->OnSuccessResponse_4(featureMap); - } + static void OnSuccessCallback_4(void * context) { (static_cast(context))->OnSuccessResponse_4(); } static void OnFailureCallback_5(void * context, uint8_t status) { @@ -15233,13 +14943,13 @@ class Test_TC_OO_1_1 : public TestCommand uint16_t clusterRevisionArgument; clusterRevisionArgument = 3U; - return cluster.WriteAttributeClusterRevision(mOnSuccessCallback_1.Cancel(), mOnFailureCallback_1.Cancel(), - clusterRevisionArgument); + return cluster.WriteAttribute( + clusterRevisionArgument, this, OnSuccessCallback_1, OnFailureCallback_1); } void OnFailureResponse_1(uint8_t status) { NextTest(); } - void OnSuccessResponse_1(uint16_t clusterRevision) { ThrowSuccessResponse(); } + void OnSuccessResponse_1() { ThrowSuccessResponse(); } CHIP_ERROR TestReadsBackGlobalAttributeClusterRevision_2() { @@ -15281,12 +14991,13 @@ class Test_TC_OO_1_1 : public TestCommand uint32_t featureMapArgument; featureMapArgument = 0UL; - return cluster.WriteAttributeFeatureMap(mOnSuccessCallback_4.Cancel(), mOnFailureCallback_4.Cancel(), featureMapArgument); + return cluster.WriteAttribute( + featureMapArgument, this, OnSuccessCallback_4, OnFailureCallback_4); } void OnFailureResponse_4(uint8_t status) { NextTest(); } - void OnSuccessResponse_4(uint32_t featureMap) { ThrowSuccessResponse(); } + void OnSuccessResponse_4() { ThrowSuccessResponse(); } CHIP_ERROR TestReadsBackOptionalGlobalAttributeFeatureMap_5() { @@ -15408,12 +15119,6 @@ class Test_TC_OO_2_1 : public TestCommand chip::Callback::Callback mOnSuccessCallback_4{ OnSuccessCallback_4, this }; chip::Callback::Callback mOnFailureCallback_5{ OnFailureCallback_5, this }; chip::Callback::Callback mOnSuccessCallback_5{ OnSuccessCallback_5, this }; - chip::Callback::Callback mOnFailureCallback_6{ OnFailureCallback_6, this }; - chip::Callback::Callback mOnSuccessCallback_6{ OnSuccessCallback_6, this }; - chip::Callback::Callback mOnFailureCallback_7{ OnFailureCallback_7, this }; - chip::Callback::Callback mOnSuccessCallback_7{ OnSuccessCallback_7, this }; - chip::Callback::Callback mOnFailureCallback_8{ OnFailureCallback_8, this }; - chip::Callback::Callback mOnSuccessCallback_8{ OnSuccessCallback_8, this }; chip::Callback::Callback mOnFailureCallback_9{ OnFailureCallback_9, this }; chip::Callback::Callback mOnSuccessCallback_9{ OnSuccessCallback_9, this }; chip::Callback::Callback mOnFailureCallback_10{ OnFailureCallback_10, this }; @@ -15481,35 +15186,26 @@ class Test_TC_OO_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_5(startUpOnOff); } - static void OnFailureCallback_6(void * context, uint8_t status) + static void OnFailureCallback_6(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_6(status); + (static_cast(context))->OnFailureResponse_6(chip::to_underlying(status)); } - static void OnSuccessCallback_6(void * context, uint16_t onTime) - { - (static_cast(context))->OnSuccessResponse_6(onTime); - } + static void OnSuccessCallback_6(void * context) { (static_cast(context))->OnSuccessResponse_6(); } - static void OnFailureCallback_7(void * context, uint8_t status) + static void OnFailureCallback_7(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_7(status); + (static_cast(context))->OnFailureResponse_7(chip::to_underlying(status)); } - static void OnSuccessCallback_7(void * context, uint16_t offWaitTime) - { - (static_cast(context))->OnSuccessResponse_7(offWaitTime); - } + static void OnSuccessCallback_7(void * context) { (static_cast(context))->OnSuccessResponse_7(); } - static void OnFailureCallback_8(void * context, uint8_t status) + static void OnFailureCallback_8(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_8(status); + (static_cast(context))->OnFailureResponse_8(chip::to_underlying(status)); } - static void OnSuccessCallback_8(void * context, uint8_t startUpOnOff) - { - (static_cast(context))->OnSuccessResponse_8(startUpOnOff); - } + static void OnSuccessCallback_8(void * context) { (static_cast(context))->OnSuccessResponse_8(); } static void OnFailureCallback_9(void * context, uint8_t status) { @@ -15649,12 +15345,13 @@ class Test_TC_OO_2_1 : public TestCommand uint16_t onTimeArgument; onTimeArgument = 0U; - return cluster.WriteAttributeOnTime(mOnSuccessCallback_6.Cancel(), mOnFailureCallback_6.Cancel(), onTimeArgument); + return cluster.WriteAttribute( + onTimeArgument, this, OnSuccessCallback_6, OnFailureCallback_6); } void OnFailureResponse_6(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_6(uint16_t onTime) { NextTest(); } + void OnSuccessResponse_6() { NextTest(); } CHIP_ERROR TestWriteTheDefaultValueToLtAttributeOffWaitTime_7() { @@ -15664,12 +15361,13 @@ class Test_TC_OO_2_1 : public TestCommand uint16_t offWaitTimeArgument; offWaitTimeArgument = 0U; - return cluster.WriteAttributeOffWaitTime(mOnSuccessCallback_7.Cancel(), mOnFailureCallback_7.Cancel(), offWaitTimeArgument); + return cluster.WriteAttribute( + offWaitTimeArgument, this, OnSuccessCallback_7, OnFailureCallback_7); } void OnFailureResponse_7(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_7(uint16_t offWaitTime) { NextTest(); } + void OnSuccessResponse_7() { NextTest(); } CHIP_ERROR TestWriteTheDefaultValueToLtAttributeStartUpOnOff_8() { @@ -15679,13 +15377,13 @@ class Test_TC_OO_2_1 : public TestCommand uint8_t startUpOnOffArgument; startUpOnOffArgument = static_cast(0); - return cluster.WriteAttributeStartUpOnOff(mOnSuccessCallback_8.Cancel(), mOnFailureCallback_8.Cancel(), - startUpOnOffArgument); + return cluster.WriteAttribute( + startUpOnOffArgument, this, OnSuccessCallback_8, OnFailureCallback_8); } void OnFailureResponse_8(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_8(uint8_t startUpOnOff) { NextTest(); } + void OnSuccessResponse_8() { NextTest(); } CHIP_ERROR TestReadsBackLtAttributeOnTime_9() { @@ -16269,8 +15967,6 @@ class Test_TC_PRS_1_1 : public TestCommand chip::Callback::Callback mOnSuccessCallback_0{ OnSuccessCallback_0, this }; chip::Callback::Callback mOnFailureCallback_1{ OnFailureCallback_1, this }; chip::Callback::Callback mOnSuccessCallback_1{ OnSuccessCallback_1, this }; - chip::Callback::Callback mOnFailureCallback_2{ OnFailureCallback_2, this }; - chip::Callback::Callback mOnSuccessCallback_2{ OnSuccessCallback_2, this }; chip::Callback::Callback mOnFailureCallback_3{ OnFailureCallback_3, this }; chip::Callback::Callback mOnSuccessCallback_3{ OnSuccessCallback_3, this }; @@ -16294,15 +15990,12 @@ class Test_TC_PRS_1_1 : public TestCommand (static_cast(context))->OnSuccessResponse_1(clusterRevision); } - static void OnFailureCallback_2(void * context, uint8_t status) + static void OnFailureCallback_2(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); } - static void OnSuccessCallback_2(void * context, uint16_t clusterRevision) - { - (static_cast(context))->OnSuccessResponse_2(clusterRevision); - } + static void OnSuccessCallback_2(void * context) { (static_cast(context))->OnSuccessResponse_2(); } static void OnFailureCallback_3(void * context, uint8_t status) { @@ -16358,13 +16051,13 @@ class Test_TC_PRS_1_1 : public TestCommand uint16_t clusterRevisionArgument; clusterRevisionArgument = 2U; - return cluster.WriteAttributeClusterRevision(mOnSuccessCallback_2.Cancel(), mOnFailureCallback_2.Cancel(), - clusterRevisionArgument); + return cluster.WriteAttribute( + clusterRevisionArgument, this, OnSuccessCallback_2, OnFailureCallback_2); } void OnFailureResponse_2(uint8_t status) { NextTest(); } - void OnSuccessResponse_2(uint16_t clusterRevision) { ThrowSuccessResponse(); } + void OnSuccessResponse_2() { ThrowSuccessResponse(); } CHIP_ERROR TestReadsBackGlobalAttributeClusterRevision_3() { @@ -16464,20 +16157,14 @@ class Test_TC_PRS_2_1 : public TestCommand chip::Callback::Callback mOnFailureCallback_0{ OnFailureCallback_0, this }; chip::Callback::Callback mOnSuccessCallback_0{ OnSuccessCallback_0, this }; - chip::Callback::Callback mOnFailureCallback_1{ OnFailureCallback_1, this }; - chip::Callback::Callback mOnSuccessCallback_1{ OnSuccessCallback_1, this }; chip::Callback::Callback mOnFailureCallback_2{ OnFailureCallback_2, this }; chip::Callback::Callback mOnSuccessCallback_2{ OnSuccessCallback_2, this }; chip::Callback::Callback mOnFailureCallback_3{ OnFailureCallback_3, this }; chip::Callback::Callback mOnSuccessCallback_3{ OnSuccessCallback_3, this }; - chip::Callback::Callback mOnFailureCallback_4{ OnFailureCallback_4, this }; - chip::Callback::Callback mOnSuccessCallback_4{ OnSuccessCallback_4, this }; chip::Callback::Callback mOnFailureCallback_5{ OnFailureCallback_5, this }; chip::Callback::Callback mOnSuccessCallback_5{ OnSuccessCallback_5, this }; chip::Callback::Callback mOnFailureCallback_6{ OnFailureCallback_6, this }; chip::Callback::Callback mOnSuccessCallback_6{ OnSuccessCallback_6, this }; - chip::Callback::Callback mOnFailureCallback_7{ OnFailureCallback_7, this }; - chip::Callback::Callback mOnSuccessCallback_7{ OnSuccessCallback_7, this }; chip::Callback::Callback mOnFailureCallback_8{ OnFailureCallback_8, this }; chip::Callback::Callback mOnSuccessCallback_8{ OnSuccessCallback_8, this }; @@ -16491,15 +16178,12 @@ class Test_TC_PRS_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_0(measuredValue); } - static void OnFailureCallback_1(void * context, uint8_t status) + static void OnFailureCallback_1(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); } - static void OnSuccessCallback_1(void * context, int16_t measuredValue) - { - (static_cast(context))->OnSuccessResponse_1(measuredValue); - } + static void OnSuccessCallback_1(void * context) { (static_cast(context))->OnSuccessResponse_1(); } static void OnFailureCallback_2(void * context, uint8_t status) { @@ -16521,15 +16205,12 @@ class Test_TC_PRS_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_3(minMeasuredValue); } - static void OnFailureCallback_4(void * context, uint8_t status) + static void OnFailureCallback_4(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_4(status); + (static_cast(context))->OnFailureResponse_4(chip::to_underlying(status)); } - static void OnSuccessCallback_4(void * context, int16_t minMeasuredValue) - { - (static_cast(context))->OnSuccessResponse_4(minMeasuredValue); - } + static void OnSuccessCallback_4(void * context) { (static_cast(context))->OnSuccessResponse_4(); } static void OnFailureCallback_5(void * context, uint8_t status) { @@ -16551,15 +16232,12 @@ class Test_TC_PRS_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_6(maxMeasuredValue); } - static void OnFailureCallback_7(void * context, uint8_t status) + static void OnFailureCallback_7(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_7(status); + (static_cast(context))->OnFailureResponse_7(chip::to_underlying(status)); } - static void OnSuccessCallback_7(void * context, int16_t maxMeasuredValue) - { - (static_cast(context))->OnSuccessResponse_7(maxMeasuredValue); - } + static void OnSuccessCallback_7(void * context) { (static_cast(context))->OnSuccessResponse_7(); } static void OnFailureCallback_8(void * context, uint8_t status) { @@ -16599,13 +16277,13 @@ class Test_TC_PRS_2_1 : public TestCommand int16_t measuredValueArgument; measuredValueArgument = 0; - return cluster.WriteAttributeMeasuredValue(mOnSuccessCallback_1.Cancel(), mOnFailureCallback_1.Cancel(), - measuredValueArgument); + return cluster.WriteAttribute( + measuredValueArgument, this, OnSuccessCallback_1, OnFailureCallback_1); } void OnFailureResponse_1(uint8_t status) { NextTest(); } - void OnSuccessResponse_1(int16_t measuredValue) { ThrowSuccessResponse(); } + void OnSuccessResponse_1() { ThrowSuccessResponse(); } CHIP_ERROR TestReadsBackMandatoryAttributeMeasuredValue_2() { @@ -16647,13 +16325,13 @@ class Test_TC_PRS_2_1 : public TestCommand int16_t minMeasuredValueArgument; minMeasuredValueArgument = 0; - return cluster.WriteAttributeMinMeasuredValue(mOnSuccessCallback_4.Cancel(), mOnFailureCallback_4.Cancel(), - minMeasuredValueArgument); + return cluster.WriteAttribute( + minMeasuredValueArgument, this, OnSuccessCallback_4, OnFailureCallback_4); } void OnFailureResponse_4(uint8_t status) { NextTest(); } - void OnSuccessResponse_4(int16_t minMeasuredValue) { ThrowSuccessResponse(); } + void OnSuccessResponse_4() { ThrowSuccessResponse(); } CHIP_ERROR TestReadsBackMandatoryAttributeMinMeasuredValue_5() { @@ -16695,13 +16373,13 @@ class Test_TC_PRS_2_1 : public TestCommand int16_t maxMeasuredValueArgument; maxMeasuredValueArgument = 0; - return cluster.WriteAttributeMaxMeasuredValue(mOnSuccessCallback_7.Cancel(), mOnFailureCallback_7.Cancel(), - maxMeasuredValueArgument); + return cluster.WriteAttribute( + maxMeasuredValueArgument, this, OnSuccessCallback_7, OnFailureCallback_7); } void OnFailureResponse_7(uint8_t status) { NextTest(); } - void OnSuccessResponse_7(int16_t maxMeasuredValue) { ThrowSuccessResponse(); } + void OnSuccessResponse_7() { ThrowSuccessResponse(); } CHIP_ERROR TestReadsBackMandatoryAttributeMaxMeasuredValue_8() { @@ -16768,18 +16446,12 @@ class Test_TC_PCC_1_1 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 1; - chip::Callback::Callback mOnFailureCallback_0{ OnFailureCallback_0, this }; - chip::Callback::Callback mOnSuccessCallback_0{ OnSuccessCallback_0, this }; - - static void OnFailureCallback_0(void * context, uint8_t status) + static void OnFailureCallback_0(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(status); + (static_cast(context))->OnFailureResponse_0(chip::to_underlying(status)); } - static void OnSuccessCallback_0(void * context, uint16_t clusterRevision) - { - (static_cast(context))->OnSuccessResponse_0(clusterRevision); - } + static void OnSuccessCallback_0(void * context) { (static_cast(context))->OnSuccessResponse_0(); } // // Tests methods @@ -16793,13 +16465,13 @@ class Test_TC_PCC_1_1 : public TestCommand uint16_t clusterRevisionArgument; clusterRevisionArgument = 3U; - return cluster.WriteAttributeClusterRevision(mOnSuccessCallback_0.Cancel(), mOnFailureCallback_0.Cancel(), - clusterRevisionArgument); + return cluster.WriteAttribute( + clusterRevisionArgument, this, OnSuccessCallback_0, OnFailureCallback_0); } void OnFailureResponse_0(uint8_t status) { NextTest(); } - void OnSuccessResponse_0(uint16_t clusterRevision) { ThrowSuccessResponse(); } + void OnSuccessResponse_0() { ThrowSuccessResponse(); } }; class Test_TC_PCC_2_1 : public TestCommand @@ -17166,42 +16838,26 @@ class Test_TC_PCC_2_2 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 3; - chip::Callback::Callback mOnFailureCallback_0{ OnFailureCallback_0, this }; - chip::Callback::Callback mOnSuccessCallback_0{ OnSuccessCallback_0, this }; - chip::Callback::Callback mOnFailureCallback_1{ OnFailureCallback_1, this }; - chip::Callback::Callback mOnSuccessCallback_1{ OnSuccessCallback_1, this }; - chip::Callback::Callback mOnFailureCallback_2{ OnFailureCallback_2, this }; - chip::Callback::Callback mOnSuccessCallback_2{ OnSuccessCallback_2, this }; - - static void OnFailureCallback_0(void * context, uint8_t status) + static void OnFailureCallback_0(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(status); + (static_cast(context))->OnFailureResponse_0(chip::to_underlying(status)); } - static void OnSuccessCallback_0(void * context, uint8_t operationMode) - { - (static_cast(context))->OnSuccessResponse_0(operationMode); - } + static void OnSuccessCallback_0(void * context) { (static_cast(context))->OnSuccessResponse_0(); } - static void OnFailureCallback_1(void * context, uint8_t status) + static void OnFailureCallback_1(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); } - static void OnSuccessCallback_1(void * context, uint8_t operationMode) - { - (static_cast(context))->OnSuccessResponse_1(operationMode); - } + static void OnSuccessCallback_1(void * context) { (static_cast(context))->OnSuccessResponse_1(); } - static void OnFailureCallback_2(void * context, uint8_t status) + static void OnFailureCallback_2(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); } - static void OnSuccessCallback_2(void * context, uint8_t operationMode) - { - (static_cast(context))->OnSuccessResponse_2(operationMode); - } + static void OnSuccessCallback_2(void * context) { (static_cast(context))->OnSuccessResponse_2(); } // // Tests methods @@ -17215,13 +16871,13 @@ class Test_TC_PCC_2_2 : public TestCommand uint8_t operationModeArgument; operationModeArgument = static_cast(1); - return cluster.WriteAttributeOperationMode(mOnSuccessCallback_0.Cancel(), mOnFailureCallback_0.Cancel(), - operationModeArgument); + return cluster.WriteAttribute( + operationModeArgument, this, OnSuccessCallback_0, OnFailureCallback_0); } void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0(uint8_t operationMode) { NextTest(); } + void OnSuccessResponse_0() { NextTest(); } CHIP_ERROR TestWrite2ToTheOperationModeAttributeToDutOperationMode_1() { @@ -17231,13 +16887,13 @@ class Test_TC_PCC_2_2 : public TestCommand uint8_t operationModeArgument; operationModeArgument = static_cast(2); - return cluster.WriteAttributeOperationMode(mOnSuccessCallback_1.Cancel(), mOnFailureCallback_1.Cancel(), - operationModeArgument); + return cluster.WriteAttribute( + operationModeArgument, this, OnSuccessCallback_1, OnFailureCallback_1); } void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_1(uint8_t operationMode) { NextTest(); } + void OnSuccessResponse_1() { NextTest(); } CHIP_ERROR TestWrite3ToTheOperationModeAttributeToDutOperationMode_2() { @@ -17247,13 +16903,13 @@ class Test_TC_PCC_2_2 : public TestCommand uint8_t operationModeArgument; operationModeArgument = static_cast(3); - return cluster.WriteAttributeOperationMode(mOnSuccessCallback_2.Cancel(), mOnFailureCallback_2.Cancel(), - operationModeArgument); + return cluster.WriteAttribute( + operationModeArgument, this, OnSuccessCallback_2, OnFailureCallback_2); } void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_2(uint8_t operationMode) { NextTest(); } + void OnSuccessResponse_2() { NextTest(); } }; class Test_TC_PCC_2_3 : public TestCommand @@ -17307,21 +16963,16 @@ class Test_TC_PCC_2_3 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 2; - chip::Callback::Callback mOnFailureCallback_0{ OnFailureCallback_0, this }; - chip::Callback::Callback mOnSuccessCallback_0{ OnSuccessCallback_0, this }; chip::Callback::Callback mOnFailureCallback_1{ OnFailureCallback_1, this }; chip::Callback::Callback mOnSuccessCallback_1{ OnSuccessCallback_1, this }; - static void OnFailureCallback_0(void * context, uint8_t status) + static void OnFailureCallback_0(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(status); + (static_cast(context))->OnFailureResponse_0(chip::to_underlying(status)); } - static void OnSuccessCallback_0(void * context, uint8_t operationMode) - { - (static_cast(context))->OnSuccessResponse_0(operationMode); - } + static void OnSuccessCallback_0(void * context) { (static_cast(context))->OnSuccessResponse_0(); } static void OnFailureCallback_1(void * context, uint8_t status) { @@ -17345,13 +16996,13 @@ class Test_TC_PCC_2_3 : public TestCommand uint8_t operationModeArgument; operationModeArgument = static_cast(0); - return cluster.WriteAttributeOperationMode(mOnSuccessCallback_0.Cancel(), mOnFailureCallback_0.Cancel(), - operationModeArgument); + return cluster.WriteAttribute( + operationModeArgument, this, OnSuccessCallback_0, OnFailureCallback_0); } void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0(uint8_t operationMode) { NextTest(); } + void OnSuccessResponse_0() { NextTest(); } CHIP_ERROR TestReadsTheAttributeEffectiveOperationMode_1() { @@ -17418,18 +17069,12 @@ class Test_TC_RH_1_1 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 1; - chip::Callback::Callback mOnFailureCallback_0{ OnFailureCallback_0, this }; - chip::Callback::Callback mOnSuccessCallback_0{ OnSuccessCallback_0, this }; - - static void OnFailureCallback_0(void * context, uint8_t status) + static void OnFailureCallback_0(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(status); + (static_cast(context))->OnFailureResponse_0(chip::to_underlying(status)); } - static void OnSuccessCallback_0(void * context, uint16_t clusterRevision) - { - (static_cast(context))->OnSuccessResponse_0(clusterRevision); - } + static void OnSuccessCallback_0(void * context) { (static_cast(context))->OnSuccessResponse_0(); } // // Tests methods @@ -17443,13 +17088,13 @@ class Test_TC_RH_1_1 : public TestCommand uint16_t clusterRevisionArgument; clusterRevisionArgument = 1U; - return cluster.WriteAttributeClusterRevision(mOnSuccessCallback_0.Cancel(), mOnFailureCallback_0.Cancel(), - clusterRevisionArgument); + return cluster.WriteAttribute( + clusterRevisionArgument, this, OnSuccessCallback_0, OnFailureCallback_0); } void OnFailureResponse_0(uint8_t status) { NextTest(); } - void OnSuccessResponse_0(uint16_t clusterRevision) { ThrowSuccessResponse(); } + void OnSuccessResponse_0() { ThrowSuccessResponse(); } }; class Test_TC_RH_2_1 : public TestCommand @@ -17737,8 +17382,6 @@ class Test_TC_TM_1_1 : public TestCommand chip::Callback::Callback mOnFailureCallback_0{ OnFailureCallback_0, this }; chip::Callback::Callback mOnSuccessCallback_0{ OnSuccessCallback_0, this }; - chip::Callback::Callback mOnFailureCallback_1{ OnFailureCallback_1, this }; - chip::Callback::Callback mOnSuccessCallback_1{ OnSuccessCallback_1, this }; chip::Callback::Callback mOnFailureCallback_2{ OnFailureCallback_2, this }; chip::Callback::Callback mOnSuccessCallback_2{ OnSuccessCallback_2, this }; @@ -17752,15 +17395,12 @@ class Test_TC_TM_1_1 : public TestCommand (static_cast(context))->OnSuccessResponse_0(clusterRevision); } - static void OnFailureCallback_1(void * context, uint8_t status) + static void OnFailureCallback_1(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); } - static void OnSuccessCallback_1(void * context, uint16_t clusterRevision) - { - (static_cast(context))->OnSuccessResponse_1(clusterRevision); - } + static void OnSuccessCallback_1(void * context) { (static_cast(context))->OnSuccessResponse_1(); } static void OnFailureCallback_2(void * context, uint8_t status) { @@ -17800,13 +17440,13 @@ class Test_TC_TM_1_1 : public TestCommand uint16_t clusterRevisionArgument; clusterRevisionArgument = 3U; - return cluster.WriteAttributeClusterRevision(mOnSuccessCallback_1.Cancel(), mOnFailureCallback_1.Cancel(), - clusterRevisionArgument); + return cluster.WriteAttribute( + clusterRevisionArgument, this, OnSuccessCallback_1, OnFailureCallback_1); } void OnFailureResponse_1(uint8_t status) { NextTest(); } - void OnSuccessResponse_1(uint16_t clusterRevision) { ThrowSuccessResponse(); } + void OnSuccessResponse_1() { ThrowSuccessResponse(); } CHIP_ERROR TestReadsBackGlobalAttributeClusterRevision_2() { @@ -18067,18 +17707,12 @@ class Test_TC_TSTAT_1_1 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 1; - chip::Callback::Callback mOnFailureCallback_0{ OnFailureCallback_0, this }; - chip::Callback::Callback mOnSuccessCallback_0{ OnSuccessCallback_0, this }; - - static void OnFailureCallback_0(void * context, uint8_t status) + static void OnFailureCallback_0(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(status); + (static_cast(context))->OnFailureResponse_0(chip::to_underlying(status)); } - static void OnSuccessCallback_0(void * context, uint16_t clusterRevision) - { - (static_cast(context))->OnSuccessResponse_0(clusterRevision); - } + static void OnSuccessCallback_0(void * context) { (static_cast(context))->OnSuccessResponse_0(); } // // Tests methods @@ -18092,13 +17726,13 @@ class Test_TC_TSTAT_1_1 : public TestCommand uint16_t clusterRevisionArgument; clusterRevisionArgument = 5U; - return cluster.WriteAttributeClusterRevision(mOnSuccessCallback_0.Cancel(), mOnFailureCallback_0.Cancel(), - clusterRevisionArgument); + return cluster.WriteAttribute( + clusterRevisionArgument, this, OnSuccessCallback_0, OnFailureCallback_0); } void OnFailureResponse_0(uint8_t status) { NextTest(); } - void OnSuccessResponse_0(uint16_t clusterRevision) { ThrowSuccessResponse(); } + void OnSuccessResponse_0() { ThrowSuccessResponse(); } }; class Test_TC_TSUIC_1_1 : public TestCommand @@ -18149,18 +17783,12 @@ class Test_TC_TSUIC_1_1 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 1; - chip::Callback::Callback mOnFailureCallback_0{ OnFailureCallback_0, this }; - chip::Callback::Callback mOnSuccessCallback_0{ OnSuccessCallback_0, this }; - - static void OnFailureCallback_0(void * context, uint8_t status) + static void OnFailureCallback_0(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(status); + (static_cast(context))->OnFailureResponse_0(chip::to_underlying(status)); } - static void OnSuccessCallback_0(void * context, uint16_t clusterRevision) - { - (static_cast(context))->OnSuccessResponse_0(clusterRevision); - } + static void OnSuccessCallback_0(void * context) { (static_cast(context))->OnSuccessResponse_0(); } // // Tests methods @@ -18174,13 +17802,14 @@ class Test_TC_TSUIC_1_1 : public TestCommand uint16_t clusterRevisionArgument; clusterRevisionArgument = 2U; - return cluster.WriteAttributeClusterRevision(mOnSuccessCallback_0.Cancel(), mOnFailureCallback_0.Cancel(), - clusterRevisionArgument); + return cluster + .WriteAttribute( + clusterRevisionArgument, this, OnSuccessCallback_0, OnFailureCallback_0); } void OnFailureResponse_0(uint8_t status) { NextTest(); } - void OnSuccessResponse_0(uint16_t clusterRevision) { ThrowSuccessResponse(); } + void OnSuccessResponse_0() { ThrowSuccessResponse(); } }; class Test_TC_TSUIC_2_1 : public TestCommand @@ -18292,9 +17921,6 @@ class Test_TC_TSUIC_2_1 : public TestCommand chip::Callback::Callback mOnFailureCallback_1{ OnFailureCallback_1, this }; chip::Callback::Callback mOnSuccessCallback_1{ OnSuccessCallback_1, this }; - chip::Callback::Callback mOnFailureCallback_2{ OnFailureCallback_2, this }; - chip::Callback::Callback mOnSuccessCallback_2{ OnSuccessCallback_2, - this }; chip::Callback::Callback mOnFailureCallback_3{ OnFailureCallback_3, this }; chip::Callback::Callback mOnSuccessCallback_3{ OnSuccessCallback_3, this }; @@ -18305,8 +17931,6 @@ class Test_TC_TSUIC_2_1 : public TestCommand chip::Callback::Callback mOnSuccessCallback_5{ OnSuccessCallback_5, this }; chip::Callback::Callback mOnFailureCallback_6{ OnFailureCallback_6, this }; chip::Callback::Callback mOnSuccessCallback_6{ OnSuccessCallback_6, this }; - chip::Callback::Callback mOnFailureCallback_7{ OnFailureCallback_7, this }; - chip::Callback::Callback mOnSuccessCallback_7{ OnSuccessCallback_7, this }; chip::Callback::Callback mOnFailureCallback_8{ OnFailureCallback_8, this }; chip::Callback::Callback mOnSuccessCallback_8{ OnSuccessCallback_8, this }; chip::Callback::Callback mOnFailureCallback_9{ OnFailureCallback_9, this }; @@ -18319,10 +17943,6 @@ class Test_TC_TSUIC_2_1 : public TestCommand chip::Callback::Callback mOnSuccessCallback_11{ OnSuccessCallback_11, this }; - chip::Callback::Callback mOnFailureCallback_12{ OnFailureCallback_12, this }; - chip::Callback::Callback mOnSuccessCallback_12{ - OnSuccessCallback_12, this - }; chip::Callback::Callback mOnFailureCallback_13{ OnFailureCallback_13, this }; chip::Callback::Callback mOnSuccessCallback_13{ OnSuccessCallback_13, this @@ -18352,15 +17972,12 @@ class Test_TC_TSUIC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_1(temperatureDisplayMode); } - static void OnFailureCallback_2(void * context, uint8_t status) + static void OnFailureCallback_2(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); } - static void OnSuccessCallback_2(void * context, uint8_t temperatureDisplayMode) - { - (static_cast(context))->OnSuccessResponse_2(temperatureDisplayMode); - } + static void OnSuccessCallback_2(void * context) { (static_cast(context))->OnSuccessResponse_2(); } static void OnFailureCallback_3(void * context, uint8_t status) { @@ -18402,15 +18019,12 @@ class Test_TC_TSUIC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_6(keypadLockout); } - static void OnFailureCallback_7(void * context, uint8_t status) + static void OnFailureCallback_7(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_7(status); + (static_cast(context))->OnFailureResponse_7(chip::to_underlying(status)); } - static void OnSuccessCallback_7(void * context, uint8_t keypadLockout) - { - (static_cast(context))->OnSuccessResponse_7(keypadLockout); - } + static void OnSuccessCallback_7(void * context) { (static_cast(context))->OnSuccessResponse_7(); } static void OnFailureCallback_8(void * context, uint8_t status) { @@ -18452,15 +18066,12 @@ class Test_TC_TSUIC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_11(scheduleProgrammingVisibility); } - static void OnFailureCallback_12(void * context, uint8_t status) + static void OnFailureCallback_12(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_12(status); + (static_cast(context))->OnFailureResponse_12(chip::to_underlying(status)); } - static void OnSuccessCallback_12(void * context, uint8_t scheduleProgrammingVisibility) - { - (static_cast(context))->OnSuccessResponse_12(scheduleProgrammingVisibility); - } + static void OnSuccessCallback_12(void * context) { (static_cast(context))->OnSuccessResponse_12(); } static void OnFailureCallback_13(void * context, uint8_t status) { @@ -18526,13 +18137,14 @@ class Test_TC_TSUIC_2_1 : public TestCommand uint8_t temperatureDisplayModeArgument; temperatureDisplayModeArgument = static_cast(0); - return cluster.WriteAttributeTemperatureDisplayMode(mOnSuccessCallback_2.Cancel(), mOnFailureCallback_2.Cancel(), - temperatureDisplayModeArgument); + return cluster.WriteAttribute< + chip::app::Clusters::ThermostatUserInterfaceConfiguration::Attributes::TemperatureDisplayMode::TypeInfo>( + temperatureDisplayModeArgument, this, OnSuccessCallback_2, OnFailureCallback_2); } void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_2(uint8_t temperatureDisplayMode) { NextTest(); } + void OnSuccessResponse_2() { NextTest(); } CHIP_ERROR TestReadTheMandatoryAttributeTemperatureDisplayMode_3() { @@ -18606,13 +18218,14 @@ class Test_TC_TSUIC_2_1 : public TestCommand uint8_t keypadLockoutArgument; keypadLockoutArgument = static_cast(0); - return cluster.WriteAttributeKeypadLockout(mOnSuccessCallback_7.Cancel(), mOnFailureCallback_7.Cancel(), - keypadLockoutArgument); + return cluster + .WriteAttribute( + keypadLockoutArgument, this, OnSuccessCallback_7, OnFailureCallback_7); } void OnFailureResponse_7(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_7(uint8_t keypadLockout) { NextTest(); } + void OnSuccessResponse_7() { NextTest(); } CHIP_ERROR TestReadTheMandatoryAttributeKeypadLockout_8() { @@ -18686,13 +18299,14 @@ class Test_TC_TSUIC_2_1 : public TestCommand uint8_t scheduleProgrammingVisibilityArgument; scheduleProgrammingVisibilityArgument = static_cast(0); - return cluster.WriteAttributeScheduleProgrammingVisibility(mOnSuccessCallback_12.Cancel(), mOnFailureCallback_12.Cancel(), - scheduleProgrammingVisibilityArgument); + return cluster.WriteAttribute< + chip::app::Clusters::ThermostatUserInterfaceConfiguration::Attributes::ScheduleProgrammingVisibility::TypeInfo>( + scheduleProgrammingVisibilityArgument, this, OnSuccessCallback_12, OnFailureCallback_12); } void OnFailureResponse_12(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_12(uint8_t scheduleProgrammingVisibility) { NextTest(); } + void OnSuccessResponse_12() { NextTest(); } CHIP_ERROR TestReadTheOptionalAttributeScheduleProgrammingVisibility_13() { @@ -18812,132 +18426,75 @@ class Test_TC_TSUIC_2_2 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 10; - chip::Callback::Callback mOnFailureCallback_0{ OnFailureCallback_0, this }; - chip::Callback::Callback mOnSuccessCallback_0{ OnSuccessCallback_0, - this }; - chip::Callback::Callback mOnFailureCallback_1{ OnFailureCallback_1, this }; - chip::Callback::Callback mOnSuccessCallback_1{ OnSuccessCallback_1, - this }; - chip::Callback::Callback mOnFailureCallback_2{ OnFailureCallback_2, this }; - chip::Callback::Callback mOnSuccessCallback_2{ OnSuccessCallback_2, this }; - chip::Callback::Callback mOnFailureCallback_3{ OnFailureCallback_3, this }; - chip::Callback::Callback mOnSuccessCallback_3{ OnSuccessCallback_3, this }; - chip::Callback::Callback mOnFailureCallback_4{ OnFailureCallback_4, this }; - chip::Callback::Callback mOnSuccessCallback_4{ OnSuccessCallback_4, this }; - chip::Callback::Callback mOnFailureCallback_5{ OnFailureCallback_5, this }; - chip::Callback::Callback mOnSuccessCallback_5{ OnSuccessCallback_5, this }; - chip::Callback::Callback mOnFailureCallback_6{ OnFailureCallback_6, this }; - chip::Callback::Callback mOnSuccessCallback_6{ OnSuccessCallback_6, this }; - chip::Callback::Callback mOnFailureCallback_7{ OnFailureCallback_7, this }; - chip::Callback::Callback mOnSuccessCallback_7{ OnSuccessCallback_7, this }; - chip::Callback::Callback mOnFailureCallback_8{ OnFailureCallback_8, this }; - chip::Callback::Callback mOnSuccessCallback_8{ - OnSuccessCallback_8, this - }; - chip::Callback::Callback mOnFailureCallback_9{ OnFailureCallback_9, this }; - chip::Callback::Callback mOnSuccessCallback_9{ - OnSuccessCallback_9, this - }; - - static void OnFailureCallback_0(void * context, uint8_t status) + static void OnFailureCallback_0(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(status); + (static_cast(context))->OnFailureResponse_0(chip::to_underlying(status)); } - static void OnSuccessCallback_0(void * context, uint8_t temperatureDisplayMode) - { - (static_cast(context))->OnSuccessResponse_0(temperatureDisplayMode); - } + static void OnSuccessCallback_0(void * context) { (static_cast(context))->OnSuccessResponse_0(); } - static void OnFailureCallback_1(void * context, uint8_t status) + static void OnFailureCallback_1(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); } - static void OnSuccessCallback_1(void * context, uint8_t temperatureDisplayMode) - { - (static_cast(context))->OnSuccessResponse_1(temperatureDisplayMode); - } + static void OnSuccessCallback_1(void * context) { (static_cast(context))->OnSuccessResponse_1(); } - static void OnFailureCallback_2(void * context, uint8_t status) + static void OnFailureCallback_2(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); } - static void OnSuccessCallback_2(void * context, uint8_t keypadLockout) - { - (static_cast(context))->OnSuccessResponse_2(keypadLockout); - } + static void OnSuccessCallback_2(void * context) { (static_cast(context))->OnSuccessResponse_2(); } - static void OnFailureCallback_3(void * context, uint8_t status) + static void OnFailureCallback_3(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_3(status); + (static_cast(context))->OnFailureResponse_3(chip::to_underlying(status)); } - static void OnSuccessCallback_3(void * context, uint8_t keypadLockout) - { - (static_cast(context))->OnSuccessResponse_3(keypadLockout); - } + static void OnSuccessCallback_3(void * context) { (static_cast(context))->OnSuccessResponse_3(); } - static void OnFailureCallback_4(void * context, uint8_t status) + static void OnFailureCallback_4(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_4(status); + (static_cast(context))->OnFailureResponse_4(chip::to_underlying(status)); } - static void OnSuccessCallback_4(void * context, uint8_t keypadLockout) - { - (static_cast(context))->OnSuccessResponse_4(keypadLockout); - } + static void OnSuccessCallback_4(void * context) { (static_cast(context))->OnSuccessResponse_4(); } - static void OnFailureCallback_5(void * context, uint8_t status) + static void OnFailureCallback_5(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_5(status); + (static_cast(context))->OnFailureResponse_5(chip::to_underlying(status)); } - static void OnSuccessCallback_5(void * context, uint8_t keypadLockout) - { - (static_cast(context))->OnSuccessResponse_5(keypadLockout); - } + static void OnSuccessCallback_5(void * context) { (static_cast(context))->OnSuccessResponse_5(); } - static void OnFailureCallback_6(void * context, uint8_t status) + static void OnFailureCallback_6(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_6(status); + (static_cast(context))->OnFailureResponse_6(chip::to_underlying(status)); } - static void OnSuccessCallback_6(void * context, uint8_t keypadLockout) - { - (static_cast(context))->OnSuccessResponse_6(keypadLockout); - } + static void OnSuccessCallback_6(void * context) { (static_cast(context))->OnSuccessResponse_6(); } - static void OnFailureCallback_7(void * context, uint8_t status) + static void OnFailureCallback_7(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_7(status); + (static_cast(context))->OnFailureResponse_7(chip::to_underlying(status)); } - static void OnSuccessCallback_7(void * context, uint8_t keypadLockout) - { - (static_cast(context))->OnSuccessResponse_7(keypadLockout); - } + static void OnSuccessCallback_7(void * context) { (static_cast(context))->OnSuccessResponse_7(); } - static void OnFailureCallback_8(void * context, uint8_t status) + static void OnFailureCallback_8(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_8(status); + (static_cast(context))->OnFailureResponse_8(chip::to_underlying(status)); } - static void OnSuccessCallback_8(void * context, uint8_t scheduleProgrammingVisibility) - { - (static_cast(context))->OnSuccessResponse_8(scheduleProgrammingVisibility); - } + static void OnSuccessCallback_8(void * context) { (static_cast(context))->OnSuccessResponse_8(); } - static void OnFailureCallback_9(void * context, uint8_t status) + static void OnFailureCallback_9(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_9(status); + (static_cast(context))->OnFailureResponse_9(chip::to_underlying(status)); } - static void OnSuccessCallback_9(void * context, uint8_t scheduleProgrammingVisibility) - { - (static_cast(context))->OnSuccessResponse_9(scheduleProgrammingVisibility); - } + static void OnSuccessCallback_9(void * context) { (static_cast(context))->OnSuccessResponse_9(); } // // Tests methods @@ -18951,13 +18508,14 @@ class Test_TC_TSUIC_2_2 : public TestCommand uint8_t temperatureDisplayModeArgument; temperatureDisplayModeArgument = static_cast(0); - return cluster.WriteAttributeTemperatureDisplayMode(mOnSuccessCallback_0.Cancel(), mOnFailureCallback_0.Cancel(), - temperatureDisplayModeArgument); + return cluster.WriteAttribute< + chip::app::Clusters::ThermostatUserInterfaceConfiguration::Attributes::TemperatureDisplayMode::TypeInfo>( + temperatureDisplayModeArgument, this, OnSuccessCallback_0, OnFailureCallback_0); } void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0(uint8_t temperatureDisplayMode) { NextTest(); } + void OnSuccessResponse_0() { NextTest(); } CHIP_ERROR TestWritesAValueOf1ToTemperatureDisplayModeAttributeOfDut_1() { @@ -18967,13 +18525,14 @@ class Test_TC_TSUIC_2_2 : public TestCommand uint8_t temperatureDisplayModeArgument; temperatureDisplayModeArgument = static_cast(1); - return cluster.WriteAttributeTemperatureDisplayMode(mOnSuccessCallback_1.Cancel(), mOnFailureCallback_1.Cancel(), - temperatureDisplayModeArgument); + return cluster.WriteAttribute< + chip::app::Clusters::ThermostatUserInterfaceConfiguration::Attributes::TemperatureDisplayMode::TypeInfo>( + temperatureDisplayModeArgument, this, OnSuccessCallback_1, OnFailureCallback_1); } void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_1(uint8_t temperatureDisplayMode) { NextTest(); } + void OnSuccessResponse_1() { NextTest(); } CHIP_ERROR TestWritesAValueOf0ToKeypadLockoutAttributeOfDut_2() { @@ -18983,13 +18542,14 @@ class Test_TC_TSUIC_2_2 : public TestCommand uint8_t keypadLockoutArgument; keypadLockoutArgument = static_cast(0); - return cluster.WriteAttributeKeypadLockout(mOnSuccessCallback_2.Cancel(), mOnFailureCallback_2.Cancel(), - keypadLockoutArgument); + return cluster + .WriteAttribute( + keypadLockoutArgument, this, OnSuccessCallback_2, OnFailureCallback_2); } void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_2(uint8_t keypadLockout) { NextTest(); } + void OnSuccessResponse_2() { NextTest(); } CHIP_ERROR TestWritesAValueOf1ToKeypadLockoutAttributeOfDut_3() { @@ -18999,13 +18559,14 @@ class Test_TC_TSUIC_2_2 : public TestCommand uint8_t keypadLockoutArgument; keypadLockoutArgument = static_cast(1); - return cluster.WriteAttributeKeypadLockout(mOnSuccessCallback_3.Cancel(), mOnFailureCallback_3.Cancel(), - keypadLockoutArgument); + return cluster + .WriteAttribute( + keypadLockoutArgument, this, OnSuccessCallback_3, OnFailureCallback_3); } void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_3(uint8_t keypadLockout) { NextTest(); } + void OnSuccessResponse_3() { NextTest(); } CHIP_ERROR TestWritesAValueOf2ToKeypadLockoutAttributeOfDut_4() { @@ -19015,13 +18576,14 @@ class Test_TC_TSUIC_2_2 : public TestCommand uint8_t keypadLockoutArgument; keypadLockoutArgument = static_cast(2); - return cluster.WriteAttributeKeypadLockout(mOnSuccessCallback_4.Cancel(), mOnFailureCallback_4.Cancel(), - keypadLockoutArgument); + return cluster + .WriteAttribute( + keypadLockoutArgument, this, OnSuccessCallback_4, OnFailureCallback_4); } void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_4(uint8_t keypadLockout) { NextTest(); } + void OnSuccessResponse_4() { NextTest(); } CHIP_ERROR TestWritesAValueOf3ToKeypadLockoutAttributeOfDut_5() { @@ -19031,13 +18593,14 @@ class Test_TC_TSUIC_2_2 : public TestCommand uint8_t keypadLockoutArgument; keypadLockoutArgument = static_cast(3); - return cluster.WriteAttributeKeypadLockout(mOnSuccessCallback_5.Cancel(), mOnFailureCallback_5.Cancel(), - keypadLockoutArgument); + return cluster + .WriteAttribute( + keypadLockoutArgument, this, OnSuccessCallback_5, OnFailureCallback_5); } void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_5(uint8_t keypadLockout) { NextTest(); } + void OnSuccessResponse_5() { NextTest(); } CHIP_ERROR TestWritesAValueOf4ToKeypadLockoutAttributeOfDut_6() { @@ -19047,13 +18610,14 @@ class Test_TC_TSUIC_2_2 : public TestCommand uint8_t keypadLockoutArgument; keypadLockoutArgument = static_cast(4); - return cluster.WriteAttributeKeypadLockout(mOnSuccessCallback_6.Cancel(), mOnFailureCallback_6.Cancel(), - keypadLockoutArgument); + return cluster + .WriteAttribute( + keypadLockoutArgument, this, OnSuccessCallback_6, OnFailureCallback_6); } void OnFailureResponse_6(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_6(uint8_t keypadLockout) { NextTest(); } + void OnSuccessResponse_6() { NextTest(); } CHIP_ERROR TestWritesAValueOf5ToKeypadLockoutAttributeOfDut_7() { @@ -19063,13 +18627,14 @@ class Test_TC_TSUIC_2_2 : public TestCommand uint8_t keypadLockoutArgument; keypadLockoutArgument = static_cast(5); - return cluster.WriteAttributeKeypadLockout(mOnSuccessCallback_7.Cancel(), mOnFailureCallback_7.Cancel(), - keypadLockoutArgument); + return cluster + .WriteAttribute( + keypadLockoutArgument, this, OnSuccessCallback_7, OnFailureCallback_7); } void OnFailureResponse_7(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_7(uint8_t keypadLockout) { NextTest(); } + void OnSuccessResponse_7() { NextTest(); } CHIP_ERROR TestWritesAValueOf0ToScheduleProgrammingVisibilityAttributeOfDut_8() { @@ -19079,13 +18644,14 @@ class Test_TC_TSUIC_2_2 : public TestCommand uint8_t scheduleProgrammingVisibilityArgument; scheduleProgrammingVisibilityArgument = static_cast(0); - return cluster.WriteAttributeScheduleProgrammingVisibility(mOnSuccessCallback_8.Cancel(), mOnFailureCallback_8.Cancel(), - scheduleProgrammingVisibilityArgument); + return cluster.WriteAttribute< + chip::app::Clusters::ThermostatUserInterfaceConfiguration::Attributes::ScheduleProgrammingVisibility::TypeInfo>( + scheduleProgrammingVisibilityArgument, this, OnSuccessCallback_8, OnFailureCallback_8); } void OnFailureResponse_8(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_8(uint8_t scheduleProgrammingVisibility) { NextTest(); } + void OnSuccessResponse_8() { NextTest(); } CHIP_ERROR TestWritesAValueOf1ToScheduleProgrammingVisibilityAttributeOfDut_9() { @@ -19095,13 +18661,14 @@ class Test_TC_TSUIC_2_2 : public TestCommand uint8_t scheduleProgrammingVisibilityArgument; scheduleProgrammingVisibilityArgument = static_cast(1); - return cluster.WriteAttributeScheduleProgrammingVisibility(mOnSuccessCallback_9.Cancel(), mOnFailureCallback_9.Cancel(), - scheduleProgrammingVisibilityArgument); + return cluster.WriteAttribute< + chip::app::Clusters::ThermostatUserInterfaceConfiguration::Attributes::ScheduleProgrammingVisibility::TypeInfo>( + scheduleProgrammingVisibilityArgument, this, OnSuccessCallback_9, OnFailureCallback_9); } void OnFailureResponse_9(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_9(uint8_t scheduleProgrammingVisibility) { NextTest(); } + void OnSuccessResponse_9() { NextTest(); } }; class Test_TC_DIAGTH_1_1 : public TestCommand @@ -19162,8 +18729,6 @@ class Test_TC_DIAGTH_1_1 : public TestCommand chip::Callback::Callback mOnFailureCallback_0{ OnFailureCallback_0, this }; chip::Callback::Callback mOnSuccessCallback_0{ OnSuccessCallback_0, this }; - chip::Callback::Callback mOnFailureCallback_1{ OnFailureCallback_1, this }; - chip::Callback::Callback mOnSuccessCallback_1{ OnSuccessCallback_1, this }; chip::Callback::Callback mOnFailureCallback_2{ OnFailureCallback_2, this }; chip::Callback::Callback mOnSuccessCallback_2{ OnSuccessCallback_2, this }; @@ -19177,15 +18742,12 @@ class Test_TC_DIAGTH_1_1 : public TestCommand (static_cast(context))->OnSuccessResponse_0(clusterRevision); } - static void OnFailureCallback_1(void * context, uint8_t status) + static void OnFailureCallback_1(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); } - static void OnSuccessCallback_1(void * context, uint16_t clusterRevision) - { - (static_cast(context))->OnSuccessResponse_1(clusterRevision); - } + static void OnSuccessCallback_1(void * context) { (static_cast(context))->OnSuccessResponse_1(); } static void OnFailureCallback_2(void * context, uint8_t status) { @@ -19225,13 +18787,13 @@ class Test_TC_DIAGTH_1_1 : public TestCommand uint16_t clusterRevisionArgument; clusterRevisionArgument = 1U; - return cluster.WriteAttributeClusterRevision(mOnSuccessCallback_1.Cancel(), mOnFailureCallback_1.Cancel(), - clusterRevisionArgument); + return cluster.WriteAttribute( + clusterRevisionArgument, this, OnSuccessCallback_1, OnFailureCallback_1); } void OnFailureResponse_1(uint8_t status) { NextTest(); } - void OnSuccessResponse_1(uint16_t clusterRevision) { ThrowSuccessResponse(); } + void OnSuccessResponse_1() { ThrowSuccessResponse(); } CHIP_ERROR TestReadsBackGlobalAttributeClusterRevision_2() { @@ -19316,8 +18878,6 @@ class Test_TC_WNCV_1_1 : public TestCommand chip::Callback::Callback mOnFailureCallback_0{ OnFailureCallback_0, this }; chip::Callback::Callback mOnSuccessCallback_0{ OnSuccessCallback_0, this }; - chip::Callback::Callback mOnFailureCallback_1{ OnFailureCallback_1, this }; - chip::Callback::Callback mOnSuccessCallback_1{ OnSuccessCallback_1, this }; chip::Callback::Callback mOnFailureCallback_2{ OnFailureCallback_2, this }; chip::Callback::Callback mOnSuccessCallback_2{ OnSuccessCallback_2, this }; chip::Callback::Callback mOnFailureCallback_3{ OnFailureCallback_3, this }; @@ -19335,15 +18895,12 @@ class Test_TC_WNCV_1_1 : public TestCommand (static_cast(context))->OnSuccessResponse_0(clusterRevision); } - static void OnFailureCallback_1(void * context, uint8_t status) + static void OnFailureCallback_1(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); } - static void OnSuccessCallback_1(void * context, uint16_t clusterRevision) - { - (static_cast(context))->OnSuccessResponse_1(clusterRevision); - } + static void OnSuccessCallback_1(void * context) { (static_cast(context))->OnSuccessResponse_1(); } static void OnFailureCallback_2(void * context, uint8_t status) { @@ -19403,13 +18960,13 @@ class Test_TC_WNCV_1_1 : public TestCommand uint16_t clusterRevisionArgument; clusterRevisionArgument = 5U; - return cluster.WriteAttributeClusterRevision(mOnSuccessCallback_1.Cancel(), mOnFailureCallback_1.Cancel(), - clusterRevisionArgument); + return cluster.WriteAttribute( + clusterRevisionArgument, this, OnSuccessCallback_1, OnFailureCallback_1); } void OnFailureResponse_1(uint8_t status) { NextTest(); } - void OnSuccessResponse_1(uint16_t clusterRevision) { ThrowSuccessResponse(); } + void OnSuccessResponse_1() { ThrowSuccessResponse(); } CHIP_ERROR TestReadsBackGlobalAttributeClusterRevision_2() { @@ -19565,8 +19122,6 @@ class Test_TC_WNCV_2_1 : public TestCommand chip::Callback::Callback mOnSuccessCallback_7{ OnSuccessCallback_7, this }; chip::Callback::Callback mOnFailureCallback_8{ OnFailureCallback_8, this }; chip::Callback::Callback mOnSuccessCallback_8{ OnSuccessCallback_8, this }; - chip::Callback::Callback mOnFailureCallback_9{ OnFailureCallback_9, this }; - chip::Callback::Callback mOnSuccessCallback_9{ OnSuccessCallback_9, this }; chip::Callback::Callback mOnFailureCallback_10{ OnFailureCallback_10, this }; chip::Callback::Callback mOnSuccessCallback_10{ OnSuccessCallback_10, this }; @@ -19660,15 +19215,12 @@ class Test_TC_WNCV_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_8(mode); } - static void OnFailureCallback_9(void * context, uint8_t status) + static void OnFailureCallback_9(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_9(status); + (static_cast(context))->OnFailureResponse_9(chip::to_underlying(status)); } - static void OnSuccessCallback_9(void * context, uint8_t mode) - { - (static_cast(context))->OnSuccessResponse_9(mode); - } + static void OnSuccessCallback_9(void * context) { (static_cast(context))->OnSuccessResponse_9(); } static void OnFailureCallback_10(void * context, uint8_t status) { @@ -19836,12 +19388,13 @@ class Test_TC_WNCV_2_1 : public TestCommand uint8_t modeArgument; modeArgument = 7; - return cluster.WriteAttributeMode(mOnSuccessCallback_9.Cancel(), mOnFailureCallback_9.Cancel(), modeArgument); + return cluster.WriteAttribute( + modeArgument, this, OnSuccessCallback_9, OnFailureCallback_9); } void OnFailureResponse_9(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_9(uint8_t mode) { NextTest(); } + void OnSuccessResponse_9() { NextTest(); } CHIP_ERROR TestReadsBackTheRwMandatoryAttributeMode_10() { @@ -22694,224 +22247,126 @@ class TestCluster : public TestCommand chip::Callback::Callback mOnFailureCallback_5{ OnFailureCallback_5, this }; chip::Callback::Callback mOnSuccessCallback_5{ OnSuccessCallback_5, this }; - chip::Callback::Callback mOnFailureCallback_6{ OnFailureCallback_6, this }; - chip::Callback::Callback mOnSuccessCallback_6{ OnSuccessCallback_6, this }; chip::Callback::Callback mOnFailureCallback_7{ OnFailureCallback_7, this }; chip::Callback::Callback mOnSuccessCallback_7{ OnSuccessCallback_7, this }; - chip::Callback::Callback mOnFailureCallback_8{ OnFailureCallback_8, this }; - chip::Callback::Callback mOnSuccessCallback_8{ OnSuccessCallback_8, this }; chip::Callback::Callback mOnFailureCallback_9{ OnFailureCallback_9, this }; chip::Callback::Callback mOnSuccessCallback_9{ OnSuccessCallback_9, this }; chip::Callback::Callback mOnFailureCallback_10{ OnFailureCallback_10, this }; chip::Callback::Callback mOnSuccessCallback_10{ OnSuccessCallback_10, this }; - chip::Callback::Callback mOnFailureCallback_11{ OnFailureCallback_11, this }; - chip::Callback::Callback mOnSuccessCallback_11{ OnSuccessCallback_11, this }; chip::Callback::Callback mOnFailureCallback_12{ OnFailureCallback_12, this }; chip::Callback::Callback mOnSuccessCallback_12{ OnSuccessCallback_12, this }; - chip::Callback::Callback mOnFailureCallback_13{ OnFailureCallback_13, this }; - chip::Callback::Callback mOnSuccessCallback_13{ OnSuccessCallback_13, this }; chip::Callback::Callback mOnFailureCallback_14{ OnFailureCallback_14, this }; chip::Callback::Callback mOnSuccessCallback_14{ OnSuccessCallback_14, this }; chip::Callback::Callback mOnFailureCallback_15{ OnFailureCallback_15, this }; chip::Callback::Callback mOnSuccessCallback_15{ OnSuccessCallback_15, this }; - chip::Callback::Callback mOnFailureCallback_16{ OnFailureCallback_16, this }; - chip::Callback::Callback mOnSuccessCallback_16{ OnSuccessCallback_16, this }; chip::Callback::Callback mOnFailureCallback_17{ OnFailureCallback_17, this }; chip::Callback::Callback mOnSuccessCallback_17{ OnSuccessCallback_17, this }; - chip::Callback::Callback mOnFailureCallback_18{ OnFailureCallback_18, this }; - chip::Callback::Callback mOnSuccessCallback_18{ OnSuccessCallback_18, this }; chip::Callback::Callback mOnFailureCallback_19{ OnFailureCallback_19, this }; chip::Callback::Callback mOnSuccessCallback_19{ OnSuccessCallback_19, this }; chip::Callback::Callback mOnFailureCallback_20{ OnFailureCallback_20, this }; chip::Callback::Callback mOnSuccessCallback_20{ OnSuccessCallback_20, this }; - chip::Callback::Callback mOnFailureCallback_21{ OnFailureCallback_21, this }; - chip::Callback::Callback mOnSuccessCallback_21{ OnSuccessCallback_21, this }; chip::Callback::Callback mOnFailureCallback_22{ OnFailureCallback_22, this }; chip::Callback::Callback mOnSuccessCallback_22{ OnSuccessCallback_22, this }; - chip::Callback::Callback mOnFailureCallback_23{ OnFailureCallback_23, this }; - chip::Callback::Callback mOnSuccessCallback_23{ OnSuccessCallback_23, this }; chip::Callback::Callback mOnFailureCallback_24{ OnFailureCallback_24, this }; chip::Callback::Callback mOnSuccessCallback_24{ OnSuccessCallback_24, this }; chip::Callback::Callback mOnFailureCallback_25{ OnFailureCallback_25, this }; chip::Callback::Callback mOnSuccessCallback_25{ OnSuccessCallback_25, this }; - chip::Callback::Callback mOnFailureCallback_26{ OnFailureCallback_26, this }; - chip::Callback::Callback mOnSuccessCallback_26{ OnSuccessCallback_26, this }; chip::Callback::Callback mOnFailureCallback_27{ OnFailureCallback_27, this }; chip::Callback::Callback mOnSuccessCallback_27{ OnSuccessCallback_27, this }; - chip::Callback::Callback mOnFailureCallback_28{ OnFailureCallback_28, this }; - chip::Callback::Callback mOnSuccessCallback_28{ OnSuccessCallback_28, this }; chip::Callback::Callback mOnFailureCallback_29{ OnFailureCallback_29, this }; chip::Callback::Callback mOnSuccessCallback_29{ OnSuccessCallback_29, this }; chip::Callback::Callback mOnFailureCallback_30{ OnFailureCallback_30, this }; chip::Callback::Callback mOnSuccessCallback_30{ OnSuccessCallback_30, this }; - chip::Callback::Callback mOnFailureCallback_31{ OnFailureCallback_31, this }; - chip::Callback::Callback mOnSuccessCallback_31{ OnSuccessCallback_31, this }; chip::Callback::Callback mOnFailureCallback_32{ OnFailureCallback_32, this }; chip::Callback::Callback mOnSuccessCallback_32{ OnSuccessCallback_32, this }; - chip::Callback::Callback mOnFailureCallback_33{ OnFailureCallback_33, this }; - chip::Callback::Callback mOnSuccessCallback_33{ OnSuccessCallback_33, this }; chip::Callback::Callback mOnFailureCallback_34{ OnFailureCallback_34, this }; chip::Callback::Callback mOnSuccessCallback_34{ OnSuccessCallback_34, this }; chip::Callback::Callback mOnFailureCallback_35{ OnFailureCallback_35, this }; chip::Callback::Callback mOnSuccessCallback_35{ OnSuccessCallback_35, this }; - chip::Callback::Callback mOnFailureCallback_36{ OnFailureCallback_36, this }; - chip::Callback::Callback mOnSuccessCallback_36{ OnSuccessCallback_36, this }; chip::Callback::Callback mOnFailureCallback_37{ OnFailureCallback_37, this }; chip::Callback::Callback mOnSuccessCallback_37{ OnSuccessCallback_37, this }; - chip::Callback::Callback mOnFailureCallback_38{ OnFailureCallback_38, this }; - chip::Callback::Callback mOnSuccessCallback_38{ OnSuccessCallback_38, this }; chip::Callback::Callback mOnFailureCallback_39{ OnFailureCallback_39, this }; chip::Callback::Callback mOnSuccessCallback_39{ OnSuccessCallback_39, this }; chip::Callback::Callback mOnFailureCallback_40{ OnFailureCallback_40, this }; chip::Callback::Callback mOnSuccessCallback_40{ OnSuccessCallback_40, this }; - chip::Callback::Callback mOnFailureCallback_41{ OnFailureCallback_41, this }; - chip::Callback::Callback mOnSuccessCallback_41{ OnSuccessCallback_41, this }; chip::Callback::Callback mOnFailureCallback_42{ OnFailureCallback_42, this }; chip::Callback::Callback mOnSuccessCallback_42{ OnSuccessCallback_42, this }; - chip::Callback::Callback mOnFailureCallback_43{ OnFailureCallback_43, this }; - chip::Callback::Callback mOnSuccessCallback_43{ OnSuccessCallback_43, this }; chip::Callback::Callback mOnFailureCallback_44{ OnFailureCallback_44, this }; chip::Callback::Callback mOnSuccessCallback_44{ OnSuccessCallback_44, this }; chip::Callback::Callback mOnFailureCallback_45{ OnFailureCallback_45, this }; chip::Callback::Callback mOnSuccessCallback_45{ OnSuccessCallback_45, this }; - chip::Callback::Callback mOnFailureCallback_46{ OnFailureCallback_46, this }; - chip::Callback::Callback mOnSuccessCallback_46{ OnSuccessCallback_46, this }; chip::Callback::Callback mOnFailureCallback_47{ OnFailureCallback_47, this }; chip::Callback::Callback mOnSuccessCallback_47{ OnSuccessCallback_47, this }; - chip::Callback::Callback mOnFailureCallback_48{ OnFailureCallback_48, this }; - chip::Callback::Callback mOnSuccessCallback_48{ OnSuccessCallback_48, this }; chip::Callback::Callback mOnFailureCallback_49{ OnFailureCallback_49, this }; chip::Callback::Callback mOnSuccessCallback_49{ OnSuccessCallback_49, this }; chip::Callback::Callback mOnFailureCallback_50{ OnFailureCallback_50, this }; chip::Callback::Callback mOnSuccessCallback_50{ OnSuccessCallback_50, this }; - chip::Callback::Callback mOnFailureCallback_51{ OnFailureCallback_51, this }; - chip::Callback::Callback mOnSuccessCallback_51{ OnSuccessCallback_51, this }; chip::Callback::Callback mOnFailureCallback_52{ OnFailureCallback_52, this }; chip::Callback::Callback mOnSuccessCallback_52{ OnSuccessCallback_52, this }; - chip::Callback::Callback mOnFailureCallback_53{ OnFailureCallback_53, this }; - chip::Callback::Callback mOnSuccessCallback_53{ OnSuccessCallback_53, this }; chip::Callback::Callback mOnFailureCallback_54{ OnFailureCallback_54, this }; chip::Callback::Callback mOnSuccessCallback_54{ OnSuccessCallback_54, this }; - chip::Callback::Callback mOnFailureCallback_55{ OnFailureCallback_55, this }; - chip::Callback::Callback mOnSuccessCallback_55{ OnSuccessCallback_55, this }; chip::Callback::Callback mOnFailureCallback_56{ OnFailureCallback_56, this }; chip::Callback::Callback mOnSuccessCallback_56{ OnSuccessCallback_56, this }; chip::Callback::Callback mOnFailureCallback_57{ OnFailureCallback_57, this }; chip::Callback::Callback mOnSuccessCallback_57{ OnSuccessCallback_57, this }; - chip::Callback::Callback mOnFailureCallback_58{ OnFailureCallback_58, this }; - chip::Callback::Callback mOnSuccessCallback_58{ OnSuccessCallback_58, this }; chip::Callback::Callback mOnFailureCallback_59{ OnFailureCallback_59, this }; chip::Callback::Callback mOnSuccessCallback_59{ OnSuccessCallback_59, this }; - chip::Callback::Callback mOnFailureCallback_60{ OnFailureCallback_60, this }; - chip::Callback::Callback mOnSuccessCallback_60{ OnSuccessCallback_60, this }; chip::Callback::Callback mOnFailureCallback_61{ OnFailureCallback_61, this }; chip::Callback::Callback mOnSuccessCallback_61{ OnSuccessCallback_61, this }; - chip::Callback::Callback mOnFailureCallback_62{ OnFailureCallback_62, this }; - chip::Callback::Callback mOnSuccessCallback_62{ OnSuccessCallback_62, this }; chip::Callback::Callback mOnFailureCallback_63{ OnFailureCallback_63, this }; chip::Callback::Callback mOnSuccessCallback_63{ OnSuccessCallback_63, this }; chip::Callback::Callback mOnFailureCallback_64{ OnFailureCallback_64, this }; chip::Callback::Callback mOnSuccessCallback_64{ OnSuccessCallback_64, this }; - chip::Callback::Callback mOnFailureCallback_65{ OnFailureCallback_65, this }; - chip::Callback::Callback mOnSuccessCallback_65{ OnSuccessCallback_65, this }; chip::Callback::Callback mOnFailureCallback_66{ OnFailureCallback_66, this }; chip::Callback::Callback mOnSuccessCallback_66{ OnSuccessCallback_66, this }; - chip::Callback::Callback mOnFailureCallback_67{ OnFailureCallback_67, this }; - chip::Callback::Callback mOnSuccessCallback_67{ OnSuccessCallback_67, this }; chip::Callback::Callback mOnFailureCallback_68{ OnFailureCallback_68, this }; chip::Callback::Callback mOnSuccessCallback_68{ OnSuccessCallback_68, this }; - chip::Callback::Callback mOnFailureCallback_69{ OnFailureCallback_69, this }; - chip::Callback::Callback mOnSuccessCallback_69{ OnSuccessCallback_69, this }; chip::Callback::Callback mOnFailureCallback_70{ OnFailureCallback_70, this }; chip::Callback::Callback mOnSuccessCallback_70{ OnSuccessCallback_70, this }; chip::Callback::Callback mOnFailureCallback_71{ OnFailureCallback_71, this }; chip::Callback::Callback mOnSuccessCallback_71{ OnSuccessCallback_71, this }; - chip::Callback::Callback mOnFailureCallback_72{ OnFailureCallback_72, this }; - chip::Callback::Callback mOnSuccessCallback_72{ OnSuccessCallback_72, this }; chip::Callback::Callback mOnFailureCallback_73{ OnFailureCallback_73, this }; chip::Callback::Callback mOnSuccessCallback_73{ OnSuccessCallback_73, this }; - chip::Callback::Callback mOnFailureCallback_74{ OnFailureCallback_74, this }; - chip::Callback::Callback mOnSuccessCallback_74{ OnSuccessCallback_74, this }; chip::Callback::Callback mOnFailureCallback_75{ OnFailureCallback_75, this }; chip::Callback::Callback mOnSuccessCallback_75{ OnSuccessCallback_75, this }; - chip::Callback::Callback mOnFailureCallback_76{ OnFailureCallback_76, this }; - chip::Callback::Callback mOnSuccessCallback_76{ OnSuccessCallback_76, this }; chip::Callback::Callback mOnFailureCallback_77{ OnFailureCallback_77, this }; chip::Callback::Callback mOnSuccessCallback_77{ OnSuccessCallback_77, this }; chip::Callback::Callback mOnFailureCallback_78{ OnFailureCallback_78, this }; chip::Callback::Callback mOnSuccessCallback_78{ OnSuccessCallback_78, this }; - chip::Callback::Callback mOnFailureCallback_79{ OnFailureCallback_79, this }; - chip::Callback::Callback mOnSuccessCallback_79{ OnSuccessCallback_79, this }; chip::Callback::Callback mOnFailureCallback_80{ OnFailureCallback_80, this }; chip::Callback::Callback mOnSuccessCallback_80{ OnSuccessCallback_80, this }; - chip::Callback::Callback mOnFailureCallback_81{ OnFailureCallback_81, this }; - chip::Callback::Callback mOnSuccessCallback_81{ OnSuccessCallback_81, this }; chip::Callback::Callback mOnFailureCallback_82{ OnFailureCallback_82, this }; chip::Callback::Callback mOnSuccessCallback_82{ OnSuccessCallback_82, this }; chip::Callback::Callback mOnFailureCallback_83{ OnFailureCallback_83, this }; chip::Callback::Callback mOnSuccessCallback_83{ OnSuccessCallback_83, this }; - chip::Callback::Callback mOnFailureCallback_84{ OnFailureCallback_84, this }; - chip::Callback::Callback mOnSuccessCallback_84{ OnSuccessCallback_84, this }; chip::Callback::Callback mOnFailureCallback_85{ OnFailureCallback_85, this }; chip::Callback::Callback mOnSuccessCallback_85{ OnSuccessCallback_85, this }; - chip::Callback::Callback mOnFailureCallback_86{ OnFailureCallback_86, this }; - chip::Callback::Callback mOnSuccessCallback_86{ OnSuccessCallback_86, this }; chip::Callback::Callback mOnFailureCallback_87{ OnFailureCallback_87, this }; chip::Callback::Callback mOnSuccessCallback_87{ OnSuccessCallback_87, this }; chip::Callback::Callback mOnFailureCallback_88{ OnFailureCallback_88, this }; chip::Callback::Callback mOnSuccessCallback_88{ OnSuccessCallback_88, this }; - chip::Callback::Callback mOnFailureCallback_89{ OnFailureCallback_89, this }; - chip::Callback::Callback mOnSuccessCallback_89{ OnSuccessCallback_89, - this }; chip::Callback::Callback mOnFailureCallback_90{ OnFailureCallback_90, this }; chip::Callback::Callback mOnSuccessCallback_90{ OnSuccessCallback_90, this }; - chip::Callback::Callback mOnFailureCallback_91{ OnFailureCallback_91, this }; - chip::Callback::Callback mOnSuccessCallback_91{ OnSuccessCallback_91, - this }; chip::Callback::Callback mOnFailureCallback_92{ OnFailureCallback_92, this }; chip::Callback::Callback mOnSuccessCallback_92{ OnSuccessCallback_92, this }; - chip::Callback::Callback mOnFailureCallback_93{ OnFailureCallback_93, this }; - chip::Callback::Callback mOnSuccessCallback_93{ OnSuccessCallback_93, - this }; chip::Callback::Callback mOnFailureCallback_94{ OnFailureCallback_94, this }; chip::Callback::Callback mOnSuccessCallback_94{ OnSuccessCallback_94, this }; - chip::Callback::Callback mOnFailureCallback_95{ OnFailureCallback_95, this }; - chip::Callback::Callback mOnSuccessCallback_95{ OnSuccessCallback_95, - this }; chip::Callback::Callback mOnFailureCallback_96{ OnFailureCallback_96, this }; chip::Callback::Callback mOnSuccessCallback_96{ OnSuccessCallback_96, this }; - chip::Callback::Callback mOnFailureCallback_97{ OnFailureCallback_97, this }; - chip::Callback::Callback mOnSuccessCallback_97{ OnSuccessCallback_97, - this }; chip::Callback::Callback mOnFailureCallback_98{ OnFailureCallback_98, this }; chip::Callback::Callback mOnSuccessCallback_98{ OnSuccessCallback_98, this }; - chip::Callback::Callback mOnFailureCallback_99{ OnFailureCallback_99, this }; - chip::Callback::Callback mOnSuccessCallback_99{ OnSuccessCallback_99, - this }; - chip::Callback::Callback mOnFailureCallback_100{ OnFailureCallback_100, this }; - chip::Callback::Callback mOnSuccessCallback_100{ OnSuccessCallback_100, - this }; - chip::Callback::Callback mOnFailureCallback_101{ OnFailureCallback_101, this }; - chip::Callback::Callback mOnSuccessCallback_101{ OnSuccessCallback_101, - this }; chip::Callback::Callback mOnFailureCallback_102{ OnFailureCallback_102, this }; chip::Callback::Callback mOnSuccessCallback_102{ OnSuccessCallback_102, this }; - chip::Callback::Callback mOnFailureCallback_103{ OnFailureCallback_103, this }; - chip::Callback::Callback mOnSuccessCallback_103{ OnSuccessCallback_103, - this }; chip::Callback::Callback mOnFailureCallback_104{ OnFailureCallback_104, this }; chip::Callback::Callback mOnSuccessCallback_104{ OnSuccessCallback_104, this }; - chip::Callback::Callback mOnFailureCallback_105{ OnFailureCallback_105, this }; - chip::Callback::Callback mOnSuccessCallback_105{ OnSuccessCallback_105, - this }; chip::Callback::Callback mOnFailureCallback_106{ OnFailureCallback_106, this }; chip::Callback::Callback & listInt8u)> mOnSuccessCallback_106{ OnSuccessCallback_106, this }; @@ -22926,40 +22381,24 @@ class TestCluster : public TestCommand mOnSuccessCallback_108{ OnSuccessCallback_108, this }; chip::Callback::Callback mOnFailureCallback_109{ OnFailureCallback_109, this }; chip::Callback::Callback mOnSuccessCallback_109{ OnSuccessCallback_109, this }; - chip::Callback::Callback mOnFailureCallback_110{ OnFailureCallback_110, this }; - chip::Callback::Callback mOnSuccessCallback_110{ OnSuccessCallback_110, this }; chip::Callback::Callback mOnFailureCallback_111{ OnFailureCallback_111, this }; chip::Callback::Callback mOnSuccessCallback_111{ OnSuccessCallback_111, this }; - chip::Callback::Callback mOnFailureCallback_112{ OnFailureCallback_112, this }; - chip::Callback::Callback mOnSuccessCallback_112{ OnSuccessCallback_112, this }; chip::Callback::Callback mOnFailureCallback_113{ OnFailureCallback_113, this }; chip::Callback::Callback mOnSuccessCallback_113{ OnSuccessCallback_113, this }; chip::Callback::Callback mOnFailureCallback_114{ OnFailureCallback_114, this }; chip::Callback::Callback mOnSuccessCallback_114{ OnSuccessCallback_114, this }; - chip::Callback::Callback mOnFailureCallback_115{ OnFailureCallback_115, this }; - chip::Callback::Callback mOnSuccessCallback_115{ OnSuccessCallback_115, this }; chip::Callback::Callback mOnFailureCallback_116{ OnFailureCallback_116, this }; chip::Callback::Callback mOnSuccessCallback_116{ OnSuccessCallback_116, this }; - chip::Callback::Callback mOnFailureCallback_117{ OnFailureCallback_117, this }; - chip::Callback::Callback mOnSuccessCallback_117{ OnSuccessCallback_117, this }; chip::Callback::Callback mOnFailureCallback_118{ OnFailureCallback_118, this }; chip::Callback::Callback mOnSuccessCallback_118{ OnSuccessCallback_118, this }; chip::Callback::Callback mOnFailureCallback_119{ OnFailureCallback_119, this }; chip::Callback::Callback mOnSuccessCallback_119{ OnSuccessCallback_119, this }; - chip::Callback::Callback mOnFailureCallback_120{ OnFailureCallback_120, this }; - chip::Callback::Callback mOnSuccessCallback_120{ OnSuccessCallback_120, this }; chip::Callback::Callback mOnFailureCallback_122{ OnFailureCallback_122, this }; chip::Callback::Callback mOnSuccessCallback_122{ OnSuccessCallback_122, this }; - chip::Callback::Callback mOnFailureCallback_123{ OnFailureCallback_123, this }; - chip::Callback::Callback mOnSuccessCallback_123{ OnSuccessCallback_123, - this }; chip::Callback::Callback mOnFailureCallback_124{ OnFailureCallback_124, this }; chip::Callback::Callback mOnSuccessCallback_124{ OnSuccessCallback_124, this }; - chip::Callback::Callback mOnFailureCallback_125{ OnFailureCallback_125, this }; - chip::Callback::Callback mOnSuccessCallback_125{ OnSuccessCallback_125, - this }; static void OnFailureCallback_5(void * context, uint8_t status) { @@ -22971,15 +22410,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_5(boolean); } - static void OnFailureCallback_6(void * context, uint8_t status) + static void OnFailureCallback_6(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_6(status); + (static_cast(context))->OnFailureResponse_6(chip::to_underlying(status)); } - static void OnSuccessCallback_6(void * context, bool boolean) - { - (static_cast(context))->OnSuccessResponse_6(boolean); - } + static void OnSuccessCallback_6(void * context) { (static_cast(context))->OnSuccessResponse_6(); } static void OnFailureCallback_7(void * context, uint8_t status) { @@ -22991,15 +22427,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_7(boolean); } - static void OnFailureCallback_8(void * context, uint8_t status) + static void OnFailureCallback_8(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_8(status); + (static_cast(context))->OnFailureResponse_8(chip::to_underlying(status)); } - static void OnSuccessCallback_8(void * context, bool boolean) - { - (static_cast(context))->OnSuccessResponse_8(boolean); - } + static void OnSuccessCallback_8(void * context) { (static_cast(context))->OnSuccessResponse_8(); } static void OnFailureCallback_9(void * context, uint8_t status) { @@ -23021,15 +22454,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_10(bitmap8); } - static void OnFailureCallback_11(void * context, uint8_t status) + static void OnFailureCallback_11(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_11(status); + (static_cast(context))->OnFailureResponse_11(chip::to_underlying(status)); } - static void OnSuccessCallback_11(void * context, uint8_t bitmap8) - { - (static_cast(context))->OnSuccessResponse_11(bitmap8); - } + static void OnSuccessCallback_11(void * context) { (static_cast(context))->OnSuccessResponse_11(); } static void OnFailureCallback_12(void * context, uint8_t status) { @@ -23041,15 +22471,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_12(bitmap8); } - static void OnFailureCallback_13(void * context, uint8_t status) + static void OnFailureCallback_13(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_13(status); + (static_cast(context))->OnFailureResponse_13(chip::to_underlying(status)); } - static void OnSuccessCallback_13(void * context, uint8_t bitmap8) - { - (static_cast(context))->OnSuccessResponse_13(bitmap8); - } + static void OnSuccessCallback_13(void * context) { (static_cast(context))->OnSuccessResponse_13(); } static void OnFailureCallback_14(void * context, uint8_t status) { @@ -23071,15 +22498,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_15(bitmap16); } - static void OnFailureCallback_16(void * context, uint8_t status) + static void OnFailureCallback_16(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_16(status); + (static_cast(context))->OnFailureResponse_16(chip::to_underlying(status)); } - static void OnSuccessCallback_16(void * context, uint16_t bitmap16) - { - (static_cast(context))->OnSuccessResponse_16(bitmap16); - } + static void OnSuccessCallback_16(void * context) { (static_cast(context))->OnSuccessResponse_16(); } static void OnFailureCallback_17(void * context, uint8_t status) { @@ -23091,15 +22515,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_17(bitmap16); } - static void OnFailureCallback_18(void * context, uint8_t status) + static void OnFailureCallback_18(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_18(status); + (static_cast(context))->OnFailureResponse_18(chip::to_underlying(status)); } - static void OnSuccessCallback_18(void * context, uint16_t bitmap16) - { - (static_cast(context))->OnSuccessResponse_18(bitmap16); - } + static void OnSuccessCallback_18(void * context) { (static_cast(context))->OnSuccessResponse_18(); } static void OnFailureCallback_19(void * context, uint8_t status) { @@ -23121,15 +22542,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_20(bitmap32); } - static void OnFailureCallback_21(void * context, uint8_t status) + static void OnFailureCallback_21(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_21(status); + (static_cast(context))->OnFailureResponse_21(chip::to_underlying(status)); } - static void OnSuccessCallback_21(void * context, uint32_t bitmap32) - { - (static_cast(context))->OnSuccessResponse_21(bitmap32); - } + static void OnSuccessCallback_21(void * context) { (static_cast(context))->OnSuccessResponse_21(); } static void OnFailureCallback_22(void * context, uint8_t status) { @@ -23141,15 +22559,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_22(bitmap32); } - static void OnFailureCallback_23(void * context, uint8_t status) + static void OnFailureCallback_23(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_23(status); + (static_cast(context))->OnFailureResponse_23(chip::to_underlying(status)); } - static void OnSuccessCallback_23(void * context, uint32_t bitmap32) - { - (static_cast(context))->OnSuccessResponse_23(bitmap32); - } + static void OnSuccessCallback_23(void * context) { (static_cast(context))->OnSuccessResponse_23(); } static void OnFailureCallback_24(void * context, uint8_t status) { @@ -23171,15 +22586,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_25(bitmap64); } - static void OnFailureCallback_26(void * context, uint8_t status) + static void OnFailureCallback_26(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_26(status); + (static_cast(context))->OnFailureResponse_26(chip::to_underlying(status)); } - static void OnSuccessCallback_26(void * context, uint64_t bitmap64) - { - (static_cast(context))->OnSuccessResponse_26(bitmap64); - } + static void OnSuccessCallback_26(void * context) { (static_cast(context))->OnSuccessResponse_26(); } static void OnFailureCallback_27(void * context, uint8_t status) { @@ -23191,15 +22603,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_27(bitmap64); } - static void OnFailureCallback_28(void * context, uint8_t status) + static void OnFailureCallback_28(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_28(status); + (static_cast(context))->OnFailureResponse_28(chip::to_underlying(status)); } - static void OnSuccessCallback_28(void * context, uint64_t bitmap64) - { - (static_cast(context))->OnSuccessResponse_28(bitmap64); - } + static void OnSuccessCallback_28(void * context) { (static_cast(context))->OnSuccessResponse_28(); } static void OnFailureCallback_29(void * context, uint8_t status) { @@ -23221,15 +22630,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_30(int8u); } - static void OnFailureCallback_31(void * context, uint8_t status) + static void OnFailureCallback_31(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_31(status); + (static_cast(context))->OnFailureResponse_31(chip::to_underlying(status)); } - static void OnSuccessCallback_31(void * context, uint8_t int8u) - { - (static_cast(context))->OnSuccessResponse_31(int8u); - } + static void OnSuccessCallback_31(void * context) { (static_cast(context))->OnSuccessResponse_31(); } static void OnFailureCallback_32(void * context, uint8_t status) { @@ -23241,15 +22647,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_32(int8u); } - static void OnFailureCallback_33(void * context, uint8_t status) + static void OnFailureCallback_33(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_33(status); + (static_cast(context))->OnFailureResponse_33(chip::to_underlying(status)); } - static void OnSuccessCallback_33(void * context, uint8_t int8u) - { - (static_cast(context))->OnSuccessResponse_33(int8u); - } + static void OnSuccessCallback_33(void * context) { (static_cast(context))->OnSuccessResponse_33(); } static void OnFailureCallback_34(void * context, uint8_t status) { @@ -23271,15 +22674,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_35(int16u); } - static void OnFailureCallback_36(void * context, uint8_t status) + static void OnFailureCallback_36(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_36(status); + (static_cast(context))->OnFailureResponse_36(chip::to_underlying(status)); } - static void OnSuccessCallback_36(void * context, uint16_t int16u) - { - (static_cast(context))->OnSuccessResponse_36(int16u); - } + static void OnSuccessCallback_36(void * context) { (static_cast(context))->OnSuccessResponse_36(); } static void OnFailureCallback_37(void * context, uint8_t status) { @@ -23291,15 +22691,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_37(int16u); } - static void OnFailureCallback_38(void * context, uint8_t status) + static void OnFailureCallback_38(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_38(status); + (static_cast(context))->OnFailureResponse_38(chip::to_underlying(status)); } - static void OnSuccessCallback_38(void * context, uint16_t int16u) - { - (static_cast(context))->OnSuccessResponse_38(int16u); - } + static void OnSuccessCallback_38(void * context) { (static_cast(context))->OnSuccessResponse_38(); } static void OnFailureCallback_39(void * context, uint8_t status) { @@ -23321,15 +22718,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_40(int32u); } - static void OnFailureCallback_41(void * context, uint8_t status) + static void OnFailureCallback_41(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_41(status); + (static_cast(context))->OnFailureResponse_41(chip::to_underlying(status)); } - static void OnSuccessCallback_41(void * context, uint32_t int32u) - { - (static_cast(context))->OnSuccessResponse_41(int32u); - } + static void OnSuccessCallback_41(void * context) { (static_cast(context))->OnSuccessResponse_41(); } static void OnFailureCallback_42(void * context, uint8_t status) { @@ -23341,15 +22735,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_42(int32u); } - static void OnFailureCallback_43(void * context, uint8_t status) + static void OnFailureCallback_43(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_43(status); + (static_cast(context))->OnFailureResponse_43(chip::to_underlying(status)); } - static void OnSuccessCallback_43(void * context, uint32_t int32u) - { - (static_cast(context))->OnSuccessResponse_43(int32u); - } + static void OnSuccessCallback_43(void * context) { (static_cast(context))->OnSuccessResponse_43(); } static void OnFailureCallback_44(void * context, uint8_t status) { @@ -23371,15 +22762,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_45(int64u); } - static void OnFailureCallback_46(void * context, uint8_t status) + static void OnFailureCallback_46(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_46(status); + (static_cast(context))->OnFailureResponse_46(chip::to_underlying(status)); } - static void OnSuccessCallback_46(void * context, uint64_t int64u) - { - (static_cast(context))->OnSuccessResponse_46(int64u); - } + static void OnSuccessCallback_46(void * context) { (static_cast(context))->OnSuccessResponse_46(); } static void OnFailureCallback_47(void * context, uint8_t status) { @@ -23391,15 +22779,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_47(int64u); } - static void OnFailureCallback_48(void * context, uint8_t status) + static void OnFailureCallback_48(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_48(status); + (static_cast(context))->OnFailureResponse_48(chip::to_underlying(status)); } - static void OnSuccessCallback_48(void * context, uint64_t int64u) - { - (static_cast(context))->OnSuccessResponse_48(int64u); - } + static void OnSuccessCallback_48(void * context) { (static_cast(context))->OnSuccessResponse_48(); } static void OnFailureCallback_49(void * context, uint8_t status) { @@ -23421,15 +22806,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_50(int8s); } - static void OnFailureCallback_51(void * context, uint8_t status) + static void OnFailureCallback_51(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_51(status); + (static_cast(context))->OnFailureResponse_51(chip::to_underlying(status)); } - static void OnSuccessCallback_51(void * context, int8_t int8s) - { - (static_cast(context))->OnSuccessResponse_51(int8s); - } + static void OnSuccessCallback_51(void * context) { (static_cast(context))->OnSuccessResponse_51(); } static void OnFailureCallback_52(void * context, uint8_t status) { @@ -23441,15 +22823,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_52(int8s); } - static void OnFailureCallback_53(void * context, uint8_t status) + static void OnFailureCallback_53(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_53(status); + (static_cast(context))->OnFailureResponse_53(chip::to_underlying(status)); } - static void OnSuccessCallback_53(void * context, int8_t int8s) - { - (static_cast(context))->OnSuccessResponse_53(int8s); - } + static void OnSuccessCallback_53(void * context) { (static_cast(context))->OnSuccessResponse_53(); } static void OnFailureCallback_54(void * context, uint8_t status) { @@ -23461,15 +22840,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_54(int8s); } - static void OnFailureCallback_55(void * context, uint8_t status) + static void OnFailureCallback_55(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_55(status); + (static_cast(context))->OnFailureResponse_55(chip::to_underlying(status)); } - static void OnSuccessCallback_55(void * context, int8_t int8s) - { - (static_cast(context))->OnSuccessResponse_55(int8s); - } + static void OnSuccessCallback_55(void * context) { (static_cast(context))->OnSuccessResponse_55(); } static void OnFailureCallback_56(void * context, uint8_t status) { @@ -23491,15 +22867,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_57(int16s); } - static void OnFailureCallback_58(void * context, uint8_t status) + static void OnFailureCallback_58(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_58(status); + (static_cast(context))->OnFailureResponse_58(chip::to_underlying(status)); } - static void OnSuccessCallback_58(void * context, int16_t int16s) - { - (static_cast(context))->OnSuccessResponse_58(int16s); - } + static void OnSuccessCallback_58(void * context) { (static_cast(context))->OnSuccessResponse_58(); } static void OnFailureCallback_59(void * context, uint8_t status) { @@ -23511,15 +22884,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_59(int16s); } - static void OnFailureCallback_60(void * context, uint8_t status) + static void OnFailureCallback_60(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_60(status); + (static_cast(context))->OnFailureResponse_60(chip::to_underlying(status)); } - static void OnSuccessCallback_60(void * context, int16_t int16s) - { - (static_cast(context))->OnSuccessResponse_60(int16s); - } + static void OnSuccessCallback_60(void * context) { (static_cast(context))->OnSuccessResponse_60(); } static void OnFailureCallback_61(void * context, uint8_t status) { @@ -23531,15 +22901,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_61(int16s); } - static void OnFailureCallback_62(void * context, uint8_t status) + static void OnFailureCallback_62(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_62(status); + (static_cast(context))->OnFailureResponse_62(chip::to_underlying(status)); } - static void OnSuccessCallback_62(void * context, int16_t int16s) - { - (static_cast(context))->OnSuccessResponse_62(int16s); - } + static void OnSuccessCallback_62(void * context) { (static_cast(context))->OnSuccessResponse_62(); } static void OnFailureCallback_63(void * context, uint8_t status) { @@ -23561,15 +22928,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_64(int32s); } - static void OnFailureCallback_65(void * context, uint8_t status) + static void OnFailureCallback_65(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_65(status); + (static_cast(context))->OnFailureResponse_65(chip::to_underlying(status)); } - static void OnSuccessCallback_65(void * context, int32_t int32s) - { - (static_cast(context))->OnSuccessResponse_65(int32s); - } + static void OnSuccessCallback_65(void * context) { (static_cast(context))->OnSuccessResponse_65(); } static void OnFailureCallback_66(void * context, uint8_t status) { @@ -23581,15 +22945,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_66(int32s); } - static void OnFailureCallback_67(void * context, uint8_t status) + static void OnFailureCallback_67(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_67(status); + (static_cast(context))->OnFailureResponse_67(chip::to_underlying(status)); } - static void OnSuccessCallback_67(void * context, int32_t int32s) - { - (static_cast(context))->OnSuccessResponse_67(int32s); - } + static void OnSuccessCallback_67(void * context) { (static_cast(context))->OnSuccessResponse_67(); } static void OnFailureCallback_68(void * context, uint8_t status) { @@ -23601,15 +22962,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_68(int32s); } - static void OnFailureCallback_69(void * context, uint8_t status) + static void OnFailureCallback_69(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_69(status); + (static_cast(context))->OnFailureResponse_69(chip::to_underlying(status)); } - static void OnSuccessCallback_69(void * context, int32_t int32s) - { - (static_cast(context))->OnSuccessResponse_69(int32s); - } + static void OnSuccessCallback_69(void * context) { (static_cast(context))->OnSuccessResponse_69(); } static void OnFailureCallback_70(void * context, uint8_t status) { @@ -23631,15 +22989,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_71(int64s); } - static void OnFailureCallback_72(void * context, uint8_t status) + static void OnFailureCallback_72(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_72(status); + (static_cast(context))->OnFailureResponse_72(chip::to_underlying(status)); } - static void OnSuccessCallback_72(void * context, int64_t int64s) - { - (static_cast(context))->OnSuccessResponse_72(int64s); - } + static void OnSuccessCallback_72(void * context) { (static_cast(context))->OnSuccessResponse_72(); } static void OnFailureCallback_73(void * context, uint8_t status) { @@ -23651,15 +23006,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_73(int64s); } - static void OnFailureCallback_74(void * context, uint8_t status) + static void OnFailureCallback_74(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_74(status); + (static_cast(context))->OnFailureResponse_74(chip::to_underlying(status)); } - static void OnSuccessCallback_74(void * context, int64_t int64s) - { - (static_cast(context))->OnSuccessResponse_74(int64s); - } + static void OnSuccessCallback_74(void * context) { (static_cast(context))->OnSuccessResponse_74(); } static void OnFailureCallback_75(void * context, uint8_t status) { @@ -23671,15 +23023,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_75(int64s); } - static void OnFailureCallback_76(void * context, uint8_t status) + static void OnFailureCallback_76(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_76(status); + (static_cast(context))->OnFailureResponse_76(chip::to_underlying(status)); } - static void OnSuccessCallback_76(void * context, int64_t int64s) - { - (static_cast(context))->OnSuccessResponse_76(int64s); - } + static void OnSuccessCallback_76(void * context) { (static_cast(context))->OnSuccessResponse_76(); } static void OnFailureCallback_77(void * context, uint8_t status) { @@ -23701,15 +23050,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_78(enum8); } - static void OnFailureCallback_79(void * context, uint8_t status) + static void OnFailureCallback_79(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_79(status); + (static_cast(context))->OnFailureResponse_79(chip::to_underlying(status)); } - static void OnSuccessCallback_79(void * context, uint8_t enum8) - { - (static_cast(context))->OnSuccessResponse_79(enum8); - } + static void OnSuccessCallback_79(void * context) { (static_cast(context))->OnSuccessResponse_79(); } static void OnFailureCallback_80(void * context, uint8_t status) { @@ -23721,15 +23067,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_80(enum8); } - static void OnFailureCallback_81(void * context, uint8_t status) + static void OnFailureCallback_81(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_81(status); + (static_cast(context))->OnFailureResponse_81(chip::to_underlying(status)); } - static void OnSuccessCallback_81(void * context, uint8_t enum8) - { - (static_cast(context))->OnSuccessResponse_81(enum8); - } + static void OnSuccessCallback_81(void * context) { (static_cast(context))->OnSuccessResponse_81(); } static void OnFailureCallback_82(void * context, uint8_t status) { @@ -23751,15 +23094,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_83(enum16); } - static void OnFailureCallback_84(void * context, uint8_t status) + static void OnFailureCallback_84(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_84(status); + (static_cast(context))->OnFailureResponse_84(chip::to_underlying(status)); } - static void OnSuccessCallback_84(void * context, uint16_t enum16) - { - (static_cast(context))->OnSuccessResponse_84(enum16); - } + static void OnSuccessCallback_84(void * context) { (static_cast(context))->OnSuccessResponse_84(); } static void OnFailureCallback_85(void * context, uint8_t status) { @@ -23771,15 +23111,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_85(enum16); } - static void OnFailureCallback_86(void * context, uint8_t status) + static void OnFailureCallback_86(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_86(status); + (static_cast(context))->OnFailureResponse_86(chip::to_underlying(status)); } - static void OnSuccessCallback_86(void * context, uint16_t enum16) - { - (static_cast(context))->OnSuccessResponse_86(enum16); - } + static void OnSuccessCallback_86(void * context) { (static_cast(context))->OnSuccessResponse_86(); } static void OnFailureCallback_87(void * context, uint8_t status) { @@ -23801,15 +23138,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_88(octetString); } - static void OnFailureCallback_89(void * context, uint8_t status) + static void OnFailureCallback_89(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_89(status); + (static_cast(context))->OnFailureResponse_89(chip::to_underlying(status)); } - static void OnSuccessCallback_89(void * context, chip::ByteSpan octetString) - { - (static_cast(context))->OnSuccessResponse_89(octetString); - } + static void OnSuccessCallback_89(void * context) { (static_cast(context))->OnSuccessResponse_89(); } static void OnFailureCallback_90(void * context, uint8_t status) { @@ -23821,15 +23155,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_90(octetString); } - static void OnFailureCallback_91(void * context, uint8_t status) + static void OnFailureCallback_91(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_91(status); + (static_cast(context))->OnFailureResponse_91(chip::to_underlying(status)); } - static void OnSuccessCallback_91(void * context, chip::ByteSpan octetString) - { - (static_cast(context))->OnSuccessResponse_91(octetString); - } + static void OnSuccessCallback_91(void * context) { (static_cast(context))->OnSuccessResponse_91(); } static void OnFailureCallback_92(void * context, uint8_t status) { @@ -23841,15 +23172,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_92(octetString); } - static void OnFailureCallback_93(void * context, uint8_t status) + static void OnFailureCallback_93(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_93(status); + (static_cast(context))->OnFailureResponse_93(chip::to_underlying(status)); } - static void OnSuccessCallback_93(void * context, chip::ByteSpan octetString) - { - (static_cast(context))->OnSuccessResponse_93(octetString); - } + static void OnSuccessCallback_93(void * context) { (static_cast(context))->OnSuccessResponse_93(); } static void OnFailureCallback_94(void * context, uint8_t status) { @@ -23861,15 +23189,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_94(longOctetString); } - static void OnFailureCallback_95(void * context, uint8_t status) + static void OnFailureCallback_95(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_95(status); + (static_cast(context))->OnFailureResponse_95(chip::to_underlying(status)); } - static void OnSuccessCallback_95(void * context, chip::ByteSpan longOctetString) - { - (static_cast(context))->OnSuccessResponse_95(longOctetString); - } + static void OnSuccessCallback_95(void * context) { (static_cast(context))->OnSuccessResponse_95(); } static void OnFailureCallback_96(void * context, uint8_t status) { @@ -23881,15 +23206,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_96(longOctetString); } - static void OnFailureCallback_97(void * context, uint8_t status) + static void OnFailureCallback_97(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_97(status); + (static_cast(context))->OnFailureResponse_97(chip::to_underlying(status)); } - static void OnSuccessCallback_97(void * context, chip::ByteSpan longOctetString) - { - (static_cast(context))->OnSuccessResponse_97(longOctetString); - } + static void OnSuccessCallback_97(void * context) { (static_cast(context))->OnSuccessResponse_97(); } static void OnFailureCallback_98(void * context, uint8_t status) { @@ -23901,35 +23223,26 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_98(charString); } - static void OnFailureCallback_99(void * context, uint8_t status) + static void OnFailureCallback_99(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_99(status); + (static_cast(context))->OnFailureResponse_99(chip::to_underlying(status)); } - static void OnSuccessCallback_99(void * context, chip::CharSpan charString) - { - (static_cast(context))->OnSuccessResponse_99(charString); - } + static void OnSuccessCallback_99(void * context) { (static_cast(context))->OnSuccessResponse_99(); } - static void OnFailureCallback_100(void * context, uint8_t status) + static void OnFailureCallback_100(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_100(status); + (static_cast(context))->OnFailureResponse_100(chip::to_underlying(status)); } - static void OnSuccessCallback_100(void * context, chip::CharSpan charString) - { - (static_cast(context))->OnSuccessResponse_100(charString); - } + static void OnSuccessCallback_100(void * context) { (static_cast(context))->OnSuccessResponse_100(); } - static void OnFailureCallback_101(void * context, uint8_t status) + static void OnFailureCallback_101(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_101(status); + (static_cast(context))->OnFailureResponse_101(chip::to_underlying(status)); } - static void OnSuccessCallback_101(void * context, chip::CharSpan charString) - { - (static_cast(context))->OnSuccessResponse_101(charString); - } + static void OnSuccessCallback_101(void * context) { (static_cast(context))->OnSuccessResponse_101(); } static void OnFailureCallback_102(void * context, uint8_t status) { @@ -23941,15 +23254,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_102(longCharString); } - static void OnFailureCallback_103(void * context, uint8_t status) + static void OnFailureCallback_103(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_103(status); + (static_cast(context))->OnFailureResponse_103(chip::to_underlying(status)); } - static void OnSuccessCallback_103(void * context, chip::CharSpan longCharString) - { - (static_cast(context))->OnSuccessResponse_103(longCharString); - } + static void OnSuccessCallback_103(void * context) { (static_cast(context))->OnSuccessResponse_103(); } static void OnFailureCallback_104(void * context, uint8_t status) { @@ -23961,15 +23271,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_104(longCharString); } - static void OnFailureCallback_105(void * context, uint8_t status) + static void OnFailureCallback_105(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_105(status); + (static_cast(context))->OnFailureResponse_105(chip::to_underlying(status)); } - static void OnSuccessCallback_105(void * context, chip::CharSpan longCharString) - { - (static_cast(context))->OnSuccessResponse_105(longCharString); - } + static void OnSuccessCallback_105(void * context) { (static_cast(context))->OnSuccessResponse_105(); } static void OnFailureCallback_106(void * context, uint8_t status) { @@ -24014,15 +23321,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_109(epochUs); } - static void OnFailureCallback_110(void * context, uint8_t status) + static void OnFailureCallback_110(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_110(status); + (static_cast(context))->OnFailureResponse_110(chip::to_underlying(status)); } - static void OnSuccessCallback_110(void * context, uint64_t epochUs) - { - (static_cast(context))->OnSuccessResponse_110(epochUs); - } + static void OnSuccessCallback_110(void * context) { (static_cast(context))->OnSuccessResponse_110(); } static void OnFailureCallback_111(void * context, uint8_t status) { @@ -24034,15 +23338,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_111(epochUs); } - static void OnFailureCallback_112(void * context, uint8_t status) + static void OnFailureCallback_112(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_112(status); + (static_cast(context))->OnFailureResponse_112(chip::to_underlying(status)); } - static void OnSuccessCallback_112(void * context, uint64_t epochUs) - { - (static_cast(context))->OnSuccessResponse_112(epochUs); - } + static void OnSuccessCallback_112(void * context) { (static_cast(context))->OnSuccessResponse_112(); } static void OnFailureCallback_113(void * context, uint8_t status) { @@ -24064,15 +23365,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_114(epochS); } - static void OnFailureCallback_115(void * context, uint8_t status) + static void OnFailureCallback_115(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_115(status); + (static_cast(context))->OnFailureResponse_115(chip::to_underlying(status)); } - static void OnSuccessCallback_115(void * context, uint32_t epochS) - { - (static_cast(context))->OnSuccessResponse_115(epochS); - } + static void OnSuccessCallback_115(void * context) { (static_cast(context))->OnSuccessResponse_115(); } static void OnFailureCallback_116(void * context, uint8_t status) { @@ -24084,15 +23382,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_116(epochS); } - static void OnFailureCallback_117(void * context, uint8_t status) + static void OnFailureCallback_117(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_117(status); + (static_cast(context))->OnFailureResponse_117(chip::to_underlying(status)); } - static void OnSuccessCallback_117(void * context, uint32_t epochS) - { - (static_cast(context))->OnSuccessResponse_117(epochS); - } + static void OnSuccessCallback_117(void * context) { (static_cast(context))->OnSuccessResponse_117(); } static void OnFailureCallback_118(void * context, uint8_t status) { @@ -24114,15 +23409,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_119(unsupported); } - static void OnFailureCallback_120(void * context, uint8_t status) + static void OnFailureCallback_120(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_120(status); + (static_cast(context))->OnFailureResponse_120(chip::to_underlying(status)); } - static void OnSuccessCallback_120(void * context, bool unsupported) - { - (static_cast(context))->OnSuccessResponse_120(unsupported); - } + static void OnSuccessCallback_120(void * context) { (static_cast(context))->OnSuccessResponse_120(); } static void OnFailureCallback_122(void * context, uint8_t status) { @@ -24134,15 +23426,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_122(vendorId); } - static void OnFailureCallback_123(void * context, uint8_t status) + static void OnFailureCallback_123(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_123(status); + (static_cast(context))->OnFailureResponse_123(chip::to_underlying(status)); } - static void OnSuccessCallback_123(void * context, chip::VendorId vendorId) - { - (static_cast(context))->OnSuccessResponse_123(vendorId); - } + static void OnSuccessCallback_123(void * context) { (static_cast(context))->OnSuccessResponse_123(); } static void OnFailureCallback_124(void * context, uint8_t status) { @@ -24154,15 +23443,12 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_124(vendorId); } - static void OnFailureCallback_125(void * context, uint8_t status) + static void OnFailureCallback_125(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_125(status); + (static_cast(context))->OnFailureResponse_125(chip::to_underlying(status)); } - static void OnSuccessCallback_125(void * context, chip::VendorId vendorId) - { - (static_cast(context))->OnSuccessResponse_125(vendorId); - } + static void OnSuccessCallback_125(void * context) { (static_cast(context))->OnSuccessResponse_125(); } // // Tests methods @@ -24324,12 +23610,13 @@ class TestCluster : public TestCommand bool booleanArgument; booleanArgument = 1; - return cluster.WriteAttributeBoolean(mOnSuccessCallback_6.Cancel(), mOnFailureCallback_6.Cancel(), booleanArgument); + return cluster.WriteAttribute( + booleanArgument, this, OnSuccessCallback_6, OnFailureCallback_6); } void OnFailureResponse_6(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_6(bool boolean) { NextTest(); } + void OnSuccessResponse_6() { NextTest(); } CHIP_ERROR TestReadAttributeBooleanTrue_7() { @@ -24355,12 +23642,13 @@ class TestCluster : public TestCommand bool booleanArgument; booleanArgument = 0; - return cluster.WriteAttributeBoolean(mOnSuccessCallback_8.Cancel(), mOnFailureCallback_8.Cancel(), booleanArgument); + return cluster.WriteAttribute( + booleanArgument, this, OnSuccessCallback_8, OnFailureCallback_8); } void OnFailureResponse_8(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_8(bool boolean) { NextTest(); } + void OnSuccessResponse_8() { NextTest(); } CHIP_ERROR TestReadAttributeBooleanFalse_9() { @@ -24402,12 +23690,13 @@ class TestCluster : public TestCommand uint8_t bitmap8Argument; bitmap8Argument = 255; - return cluster.WriteAttributeBitmap8(mOnSuccessCallback_11.Cancel(), mOnFailureCallback_11.Cancel(), bitmap8Argument); + return cluster.WriteAttribute( + bitmap8Argument, this, OnSuccessCallback_11, OnFailureCallback_11); } void OnFailureResponse_11(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_11(uint8_t bitmap8) { NextTest(); } + void OnSuccessResponse_11() { NextTest(); } CHIP_ERROR TestReadAttributeBitmap8MaxValue_12() { @@ -24433,12 +23722,13 @@ class TestCluster : public TestCommand uint8_t bitmap8Argument; bitmap8Argument = 0; - return cluster.WriteAttributeBitmap8(mOnSuccessCallback_13.Cancel(), mOnFailureCallback_13.Cancel(), bitmap8Argument); + return cluster.WriteAttribute( + bitmap8Argument, this, OnSuccessCallback_13, OnFailureCallback_13); } void OnFailureResponse_13(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_13(uint8_t bitmap8) { NextTest(); } + void OnSuccessResponse_13() { NextTest(); } CHIP_ERROR TestReadAttributeBitmap8MinValue_14() { @@ -24480,12 +23770,13 @@ class TestCluster : public TestCommand uint16_t bitmap16Argument; bitmap16Argument = 65535U; - return cluster.WriteAttributeBitmap16(mOnSuccessCallback_16.Cancel(), mOnFailureCallback_16.Cancel(), bitmap16Argument); + return cluster.WriteAttribute( + bitmap16Argument, this, OnSuccessCallback_16, OnFailureCallback_16); } void OnFailureResponse_16(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_16(uint16_t bitmap16) { NextTest(); } + void OnSuccessResponse_16() { NextTest(); } CHIP_ERROR TestReadAttributeBitmap16MaxValue_17() { @@ -24511,12 +23802,13 @@ class TestCluster : public TestCommand uint16_t bitmap16Argument; bitmap16Argument = 0U; - return cluster.WriteAttributeBitmap16(mOnSuccessCallback_18.Cancel(), mOnFailureCallback_18.Cancel(), bitmap16Argument); + return cluster.WriteAttribute( + bitmap16Argument, this, OnSuccessCallback_18, OnFailureCallback_18); } void OnFailureResponse_18(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_18(uint16_t bitmap16) { NextTest(); } + void OnSuccessResponse_18() { NextTest(); } CHIP_ERROR TestReadAttributeBitmap16MinValue_19() { @@ -24558,12 +23850,13 @@ class TestCluster : public TestCommand uint32_t bitmap32Argument; bitmap32Argument = 4294967295UL; - return cluster.WriteAttributeBitmap32(mOnSuccessCallback_21.Cancel(), mOnFailureCallback_21.Cancel(), bitmap32Argument); + return cluster.WriteAttribute( + bitmap32Argument, this, OnSuccessCallback_21, OnFailureCallback_21); } void OnFailureResponse_21(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_21(uint32_t bitmap32) { NextTest(); } + void OnSuccessResponse_21() { NextTest(); } CHIP_ERROR TestReadAttributeBitmap32MaxValue_22() { @@ -24589,12 +23882,13 @@ class TestCluster : public TestCommand uint32_t bitmap32Argument; bitmap32Argument = 0UL; - return cluster.WriteAttributeBitmap32(mOnSuccessCallback_23.Cancel(), mOnFailureCallback_23.Cancel(), bitmap32Argument); + return cluster.WriteAttribute( + bitmap32Argument, this, OnSuccessCallback_23, OnFailureCallback_23); } void OnFailureResponse_23(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_23(uint32_t bitmap32) { NextTest(); } + void OnSuccessResponse_23() { NextTest(); } CHIP_ERROR TestReadAttributeBitmap32MinValue_24() { @@ -24636,12 +23930,13 @@ class TestCluster : public TestCommand uint64_t bitmap64Argument; bitmap64Argument = 18446744073709551615ULL; - return cluster.WriteAttributeBitmap64(mOnSuccessCallback_26.Cancel(), mOnFailureCallback_26.Cancel(), bitmap64Argument); + return cluster.WriteAttribute( + bitmap64Argument, this, OnSuccessCallback_26, OnFailureCallback_26); } void OnFailureResponse_26(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_26(uint64_t bitmap64) { NextTest(); } + void OnSuccessResponse_26() { NextTest(); } CHIP_ERROR TestReadAttributeBitmap64MaxValue_27() { @@ -24667,12 +23962,13 @@ class TestCluster : public TestCommand uint64_t bitmap64Argument; bitmap64Argument = 0ULL; - return cluster.WriteAttributeBitmap64(mOnSuccessCallback_28.Cancel(), mOnFailureCallback_28.Cancel(), bitmap64Argument); + return cluster.WriteAttribute( + bitmap64Argument, this, OnSuccessCallback_28, OnFailureCallback_28); } void OnFailureResponse_28(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_28(uint64_t bitmap64) { NextTest(); } + void OnSuccessResponse_28() { NextTest(); } CHIP_ERROR TestReadAttributeBitmap64MinValue_29() { @@ -24714,12 +24010,13 @@ class TestCluster : public TestCommand uint8_t int8uArgument; int8uArgument = 255; - return cluster.WriteAttributeInt8u(mOnSuccessCallback_31.Cancel(), mOnFailureCallback_31.Cancel(), int8uArgument); + return cluster.WriteAttribute( + int8uArgument, this, OnSuccessCallback_31, OnFailureCallback_31); } void OnFailureResponse_31(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_31(uint8_t int8u) { NextTest(); } + void OnSuccessResponse_31() { NextTest(); } CHIP_ERROR TestReadAttributeInt8uMaxValue_32() { @@ -24745,12 +24042,13 @@ class TestCluster : public TestCommand uint8_t int8uArgument; int8uArgument = 0; - return cluster.WriteAttributeInt8u(mOnSuccessCallback_33.Cancel(), mOnFailureCallback_33.Cancel(), int8uArgument); + return cluster.WriteAttribute( + int8uArgument, this, OnSuccessCallback_33, OnFailureCallback_33); } void OnFailureResponse_33(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_33(uint8_t int8u) { NextTest(); } + void OnSuccessResponse_33() { NextTest(); } CHIP_ERROR TestReadAttributeInt8uMinValue_34() { @@ -24792,12 +24090,13 @@ class TestCluster : public TestCommand uint16_t int16uArgument; int16uArgument = 65535U; - return cluster.WriteAttributeInt16u(mOnSuccessCallback_36.Cancel(), mOnFailureCallback_36.Cancel(), int16uArgument); + return cluster.WriteAttribute( + int16uArgument, this, OnSuccessCallback_36, OnFailureCallback_36); } void OnFailureResponse_36(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_36(uint16_t int16u) { NextTest(); } + void OnSuccessResponse_36() { NextTest(); } CHIP_ERROR TestReadAttributeInt16uMaxValue_37() { @@ -24823,12 +24122,13 @@ class TestCluster : public TestCommand uint16_t int16uArgument; int16uArgument = 0U; - return cluster.WriteAttributeInt16u(mOnSuccessCallback_38.Cancel(), mOnFailureCallback_38.Cancel(), int16uArgument); + return cluster.WriteAttribute( + int16uArgument, this, OnSuccessCallback_38, OnFailureCallback_38); } void OnFailureResponse_38(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_38(uint16_t int16u) { NextTest(); } + void OnSuccessResponse_38() { NextTest(); } CHIP_ERROR TestReadAttributeInt16uMinValue_39() { @@ -24870,12 +24170,13 @@ class TestCluster : public TestCommand uint32_t int32uArgument; int32uArgument = 4294967295UL; - return cluster.WriteAttributeInt32u(mOnSuccessCallback_41.Cancel(), mOnFailureCallback_41.Cancel(), int32uArgument); + return cluster.WriteAttribute( + int32uArgument, this, OnSuccessCallback_41, OnFailureCallback_41); } void OnFailureResponse_41(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_41(uint32_t int32u) { NextTest(); } + void OnSuccessResponse_41() { NextTest(); } CHIP_ERROR TestReadAttributeInt32uMaxValue_42() { @@ -24901,12 +24202,13 @@ class TestCluster : public TestCommand uint32_t int32uArgument; int32uArgument = 0UL; - return cluster.WriteAttributeInt32u(mOnSuccessCallback_43.Cancel(), mOnFailureCallback_43.Cancel(), int32uArgument); + return cluster.WriteAttribute( + int32uArgument, this, OnSuccessCallback_43, OnFailureCallback_43); } void OnFailureResponse_43(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_43(uint32_t int32u) { NextTest(); } + void OnSuccessResponse_43() { NextTest(); } CHIP_ERROR TestReadAttributeInt32uMinValue_44() { @@ -24948,12 +24250,13 @@ class TestCluster : public TestCommand uint64_t int64uArgument; int64uArgument = 18446744073709551615ULL; - return cluster.WriteAttributeInt64u(mOnSuccessCallback_46.Cancel(), mOnFailureCallback_46.Cancel(), int64uArgument); + return cluster.WriteAttribute( + int64uArgument, this, OnSuccessCallback_46, OnFailureCallback_46); } void OnFailureResponse_46(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_46(uint64_t int64u) { NextTest(); } + void OnSuccessResponse_46() { NextTest(); } CHIP_ERROR TestReadAttributeInt64uMaxValue_47() { @@ -24979,12 +24282,13 @@ class TestCluster : public TestCommand uint64_t int64uArgument; int64uArgument = 0ULL; - return cluster.WriteAttributeInt64u(mOnSuccessCallback_48.Cancel(), mOnFailureCallback_48.Cancel(), int64uArgument); + return cluster.WriteAttribute( + int64uArgument, this, OnSuccessCallback_48, OnFailureCallback_48); } void OnFailureResponse_48(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_48(uint64_t int64u) { NextTest(); } + void OnSuccessResponse_48() { NextTest(); } CHIP_ERROR TestReadAttributeInt64uMinValue_49() { @@ -25026,12 +24330,13 @@ class TestCluster : public TestCommand int8_t int8sArgument; int8sArgument = 127; - return cluster.WriteAttributeInt8s(mOnSuccessCallback_51.Cancel(), mOnFailureCallback_51.Cancel(), int8sArgument); + return cluster.WriteAttribute( + int8sArgument, this, OnSuccessCallback_51, OnFailureCallback_51); } void OnFailureResponse_51(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_51(int8_t int8s) { NextTest(); } + void OnSuccessResponse_51() { NextTest(); } CHIP_ERROR TestReadAttributeInt8sMaxValue_52() { @@ -25057,12 +24362,13 @@ class TestCluster : public TestCommand int8_t int8sArgument; int8sArgument = -128; - return cluster.WriteAttributeInt8s(mOnSuccessCallback_53.Cancel(), mOnFailureCallback_53.Cancel(), int8sArgument); + return cluster.WriteAttribute( + int8sArgument, this, OnSuccessCallback_53, OnFailureCallback_53); } void OnFailureResponse_53(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_53(int8_t int8s) { NextTest(); } + void OnSuccessResponse_53() { NextTest(); } CHIP_ERROR TestReadAttributeInt8sMinValue_54() { @@ -25088,12 +24394,13 @@ class TestCluster : public TestCommand int8_t int8sArgument; int8sArgument = 0; - return cluster.WriteAttributeInt8s(mOnSuccessCallback_55.Cancel(), mOnFailureCallback_55.Cancel(), int8sArgument); + return cluster.WriteAttribute( + int8sArgument, this, OnSuccessCallback_55, OnFailureCallback_55); } void OnFailureResponse_55(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_55(int8_t int8s) { NextTest(); } + void OnSuccessResponse_55() { NextTest(); } CHIP_ERROR TestReadAttributeInt8sDefaultValue_56() { @@ -25135,12 +24442,13 @@ class TestCluster : public TestCommand int16_t int16sArgument; int16sArgument = 32767; - return cluster.WriteAttributeInt16s(mOnSuccessCallback_58.Cancel(), mOnFailureCallback_58.Cancel(), int16sArgument); + return cluster.WriteAttribute( + int16sArgument, this, OnSuccessCallback_58, OnFailureCallback_58); } void OnFailureResponse_58(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_58(int16_t int16s) { NextTest(); } + void OnSuccessResponse_58() { NextTest(); } CHIP_ERROR TestReadAttributeInt16sMaxValue_59() { @@ -25166,12 +24474,13 @@ class TestCluster : public TestCommand int16_t int16sArgument; int16sArgument = -32768; - return cluster.WriteAttributeInt16s(mOnSuccessCallback_60.Cancel(), mOnFailureCallback_60.Cancel(), int16sArgument); + return cluster.WriteAttribute( + int16sArgument, this, OnSuccessCallback_60, OnFailureCallback_60); } void OnFailureResponse_60(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_60(int16_t int16s) { NextTest(); } + void OnSuccessResponse_60() { NextTest(); } CHIP_ERROR TestReadAttributeInt16sMinValue_61() { @@ -25197,12 +24506,13 @@ class TestCluster : public TestCommand int16_t int16sArgument; int16sArgument = 0; - return cluster.WriteAttributeInt16s(mOnSuccessCallback_62.Cancel(), mOnFailureCallback_62.Cancel(), int16sArgument); + return cluster.WriteAttribute( + int16sArgument, this, OnSuccessCallback_62, OnFailureCallback_62); } void OnFailureResponse_62(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_62(int16_t int16s) { NextTest(); } + void OnSuccessResponse_62() { NextTest(); } CHIP_ERROR TestReadAttributeInt16sDefaultValue_63() { @@ -25244,12 +24554,13 @@ class TestCluster : public TestCommand int32_t int32sArgument; int32sArgument = 2147483647L; - return cluster.WriteAttributeInt32s(mOnSuccessCallback_65.Cancel(), mOnFailureCallback_65.Cancel(), int32sArgument); + return cluster.WriteAttribute( + int32sArgument, this, OnSuccessCallback_65, OnFailureCallback_65); } void OnFailureResponse_65(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_65(int32_t int32s) { NextTest(); } + void OnSuccessResponse_65() { NextTest(); } CHIP_ERROR TestReadAttributeInt32sMaxValue_66() { @@ -25275,12 +24586,13 @@ class TestCluster : public TestCommand int32_t int32sArgument; int32sArgument = -2147483648L; - return cluster.WriteAttributeInt32s(mOnSuccessCallback_67.Cancel(), mOnFailureCallback_67.Cancel(), int32sArgument); + return cluster.WriteAttribute( + int32sArgument, this, OnSuccessCallback_67, OnFailureCallback_67); } void OnFailureResponse_67(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_67(int32_t int32s) { NextTest(); } + void OnSuccessResponse_67() { NextTest(); } CHIP_ERROR TestReadAttributeInt32sMinValue_68() { @@ -25306,12 +24618,13 @@ class TestCluster : public TestCommand int32_t int32sArgument; int32sArgument = 0L; - return cluster.WriteAttributeInt32s(mOnSuccessCallback_69.Cancel(), mOnFailureCallback_69.Cancel(), int32sArgument); + return cluster.WriteAttribute( + int32sArgument, this, OnSuccessCallback_69, OnFailureCallback_69); } void OnFailureResponse_69(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_69(int32_t int32s) { NextTest(); } + void OnSuccessResponse_69() { NextTest(); } CHIP_ERROR TestReadAttributeInt32sDefaultValue_70() { @@ -25353,12 +24666,13 @@ class TestCluster : public TestCommand int64_t int64sArgument; int64sArgument = 9223372036854775807LL; - return cluster.WriteAttributeInt64s(mOnSuccessCallback_72.Cancel(), mOnFailureCallback_72.Cancel(), int64sArgument); + return cluster.WriteAttribute( + int64sArgument, this, OnSuccessCallback_72, OnFailureCallback_72); } void OnFailureResponse_72(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_72(int64_t int64s) { NextTest(); } + void OnSuccessResponse_72() { NextTest(); } CHIP_ERROR TestReadAttributeInt64sMaxValue_73() { @@ -25384,12 +24698,13 @@ class TestCluster : public TestCommand int64_t int64sArgument; int64sArgument = -9223372036854775807LL; - return cluster.WriteAttributeInt64s(mOnSuccessCallback_74.Cancel(), mOnFailureCallback_74.Cancel(), int64sArgument); + return cluster.WriteAttribute( + int64sArgument, this, OnSuccessCallback_74, OnFailureCallback_74); } void OnFailureResponse_74(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_74(int64_t int64s) { NextTest(); } + void OnSuccessResponse_74() { NextTest(); } CHIP_ERROR TestReadAttributeInt64sMinValue_75() { @@ -25415,12 +24730,13 @@ class TestCluster : public TestCommand int64_t int64sArgument; int64sArgument = 0LL; - return cluster.WriteAttributeInt64s(mOnSuccessCallback_76.Cancel(), mOnFailureCallback_76.Cancel(), int64sArgument); + return cluster.WriteAttribute( + int64sArgument, this, OnSuccessCallback_76, OnFailureCallback_76); } void OnFailureResponse_76(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_76(int64_t int64s) { NextTest(); } + void OnSuccessResponse_76() { NextTest(); } CHIP_ERROR TestReadAttributeInt64sDefaultValue_77() { @@ -25462,12 +24778,13 @@ class TestCluster : public TestCommand uint8_t enum8Argument; enum8Argument = static_cast(255); - return cluster.WriteAttributeEnum8(mOnSuccessCallback_79.Cancel(), mOnFailureCallback_79.Cancel(), enum8Argument); + return cluster.WriteAttribute( + enum8Argument, this, OnSuccessCallback_79, OnFailureCallback_79); } void OnFailureResponse_79(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_79(uint8_t enum8) { NextTest(); } + void OnSuccessResponse_79() { NextTest(); } CHIP_ERROR TestReadAttributeEnum8MaxValue_80() { @@ -25493,12 +24810,13 @@ class TestCluster : public TestCommand uint8_t enum8Argument; enum8Argument = static_cast(0); - return cluster.WriteAttributeEnum8(mOnSuccessCallback_81.Cancel(), mOnFailureCallback_81.Cancel(), enum8Argument); + return cluster.WriteAttribute( + enum8Argument, this, OnSuccessCallback_81, OnFailureCallback_81); } void OnFailureResponse_81(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_81(uint8_t enum8) { NextTest(); } + void OnSuccessResponse_81() { NextTest(); } CHIP_ERROR TestReadAttributeEnum8MinValue_82() { @@ -25540,12 +24858,13 @@ class TestCluster : public TestCommand uint16_t enum16Argument; enum16Argument = static_cast(65535); - return cluster.WriteAttributeEnum16(mOnSuccessCallback_84.Cancel(), mOnFailureCallback_84.Cancel(), enum16Argument); + return cluster.WriteAttribute( + enum16Argument, this, OnSuccessCallback_84, OnFailureCallback_84); } void OnFailureResponse_84(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_84(uint16_t enum16) { NextTest(); } + void OnSuccessResponse_84() { NextTest(); } CHIP_ERROR TestReadAttributeEnum16MaxValue_85() { @@ -25571,12 +24890,13 @@ class TestCluster : public TestCommand uint16_t enum16Argument; enum16Argument = static_cast(0); - return cluster.WriteAttributeEnum16(mOnSuccessCallback_86.Cancel(), mOnFailureCallback_86.Cancel(), enum16Argument); + return cluster.WriteAttribute( + enum16Argument, this, OnSuccessCallback_86, OnFailureCallback_86); } void OnFailureResponse_86(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_86(uint16_t enum16) { NextTest(); } + void OnSuccessResponse_86() { NextTest(); } CHIP_ERROR TestReadAttributeEnum16MinValue_87() { @@ -25618,13 +24938,13 @@ class TestCluster : public TestCommand chip::ByteSpan octetStringArgument; octetStringArgument = chip::ByteSpan(chip::Uint8::from_const_char("TestValue"), strlen("TestValue")); - return cluster.WriteAttributeOctetString(mOnSuccessCallback_89.Cancel(), mOnFailureCallback_89.Cancel(), - octetStringArgument); + return cluster.WriteAttribute( + octetStringArgument, this, OnSuccessCallback_89, OnFailureCallback_89); } void OnFailureResponse_89(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_89(chip::ByteSpan octetString) { NextTest(); } + void OnSuccessResponse_89() { NextTest(); } CHIP_ERROR TestReadAttributeOctetString_90() { @@ -25651,13 +24971,13 @@ class TestCluster : public TestCommand octetStringArgument = chip::ByteSpan(chip::Uint8::from_const_char("TestValueLongerThan10"), strlen("TestValueLongerThan10")); - return cluster.WriteAttributeOctetString(mOnSuccessCallback_91.Cancel(), mOnFailureCallback_91.Cancel(), - octetStringArgument); + return cluster.WriteAttribute( + octetStringArgument, this, OnSuccessCallback_91, OnFailureCallback_91); } void OnFailureResponse_91(uint8_t status) { NextTest(); } - void OnSuccessResponse_91(chip::ByteSpan octetString) { ThrowSuccessResponse(); } + void OnSuccessResponse_91() { ThrowSuccessResponse(); } CHIP_ERROR TestReadAttributeOctetString_92() { @@ -25683,13 +25003,13 @@ class TestCluster : public TestCommand chip::ByteSpan octetStringArgument; octetStringArgument = chip::ByteSpan(chip::Uint8::from_const_char(""), strlen("")); - return cluster.WriteAttributeOctetString(mOnSuccessCallback_93.Cancel(), mOnFailureCallback_93.Cancel(), - octetStringArgument); + return cluster.WriteAttribute( + octetStringArgument, this, OnSuccessCallback_93, OnFailureCallback_93); } void OnFailureResponse_93(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_93(chip::ByteSpan octetString) { NextTest(); } + void OnSuccessResponse_93() { NextTest(); } CHIP_ERROR TestReadAttributeLongOctetStringDefaultValue_94() { @@ -25722,13 +25042,13 @@ class TestCluster : public TestCommand "111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111" "111111111111111111111111111111111111111111111111111111111111111111111111111111")); - return cluster.WriteAttributeLongOctetString(mOnSuccessCallback_95.Cancel(), mOnFailureCallback_95.Cancel(), - longOctetStringArgument); + return cluster.WriteAttribute( + longOctetStringArgument, this, OnSuccessCallback_95, OnFailureCallback_95); } void OnFailureResponse_95(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_95(chip::ByteSpan longOctetString) { NextTest(); } + void OnSuccessResponse_95() { NextTest(); } CHIP_ERROR TestReadAttributeLongOctetString_96() { @@ -25758,13 +25078,13 @@ class TestCluster : public TestCommand chip::ByteSpan longOctetStringArgument; longOctetStringArgument = chip::ByteSpan(chip::Uint8::from_const_char(""), strlen("")); - return cluster.WriteAttributeLongOctetString(mOnSuccessCallback_97.Cancel(), mOnFailureCallback_97.Cancel(), - longOctetStringArgument); + return cluster.WriteAttribute( + longOctetStringArgument, this, OnSuccessCallback_97, OnFailureCallback_97); } void OnFailureResponse_97(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_97(chip::ByteSpan longOctetString) { NextTest(); } + void OnSuccessResponse_97() { NextTest(); } CHIP_ERROR TestReadAttributeCharStringDefaultValue_98() { @@ -25790,12 +25110,13 @@ class TestCluster : public TestCommand chip::CharSpan charStringArgument; charStringArgument = chip::Span("☉T☉", strlen("☉T☉")); - return cluster.WriteAttributeCharString(mOnSuccessCallback_99.Cancel(), mOnFailureCallback_99.Cancel(), charStringArgument); + return cluster.WriteAttribute( + charStringArgument, this, OnSuccessCallback_99, OnFailureCallback_99); } void OnFailureResponse_99(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_99(chip::CharSpan charString) { NextTest(); } + void OnSuccessResponse_99() { NextTest(); } CHIP_ERROR TestWriteAttributeCharStringValueTooLong_100() { @@ -25805,13 +25126,13 @@ class TestCluster : public TestCommand chip::CharSpan charStringArgument; charStringArgument = chip::Span("☉TestValueLongerThan10☉", strlen("☉TestValueLongerThan10☉")); - return cluster.WriteAttributeCharString(mOnSuccessCallback_100.Cancel(), mOnFailureCallback_100.Cancel(), - charStringArgument); + return cluster.WriteAttribute( + charStringArgument, this, OnSuccessCallback_100, OnFailureCallback_100); } void OnFailureResponse_100(uint8_t status) { NextTest(); } - void OnSuccessResponse_100(chip::CharSpan charString) { ThrowSuccessResponse(); } + void OnSuccessResponse_100() { ThrowSuccessResponse(); } CHIP_ERROR TestWriteAttributeCharStringEmpty_101() { @@ -25821,13 +25142,13 @@ class TestCluster : public TestCommand chip::CharSpan charStringArgument; charStringArgument = chip::Span("", strlen("")); - return cluster.WriteAttributeCharString(mOnSuccessCallback_101.Cancel(), mOnFailureCallback_101.Cancel(), - charStringArgument); + return cluster.WriteAttribute( + charStringArgument, this, OnSuccessCallback_101, OnFailureCallback_101); } void OnFailureResponse_101(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_101(chip::CharSpan charString) { NextTest(); } + void OnSuccessResponse_101() { NextTest(); } CHIP_ERROR TestReadAttributeLongCharStringDefaultValue_102() { @@ -25859,13 +25180,13 @@ class TestCluster : public TestCommand "☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉" "☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉☉")); - return cluster.WriteAttributeLongCharString(mOnSuccessCallback_103.Cancel(), mOnFailureCallback_103.Cancel(), - longCharStringArgument); + return cluster.WriteAttribute( + longCharStringArgument, this, OnSuccessCallback_103, OnFailureCallback_103); } void OnFailureResponse_103(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_103(chip::CharSpan longCharString) { NextTest(); } + void OnSuccessResponse_103() { NextTest(); } CHIP_ERROR TestReadAttributeLongCharString_104() { @@ -25895,13 +25216,13 @@ class TestCluster : public TestCommand chip::CharSpan longCharStringArgument; longCharStringArgument = chip::Span("", strlen("")); - return cluster.WriteAttributeLongCharString(mOnSuccessCallback_105.Cancel(), mOnFailureCallback_105.Cancel(), - longCharStringArgument); + return cluster.WriteAttribute( + longCharStringArgument, this, OnSuccessCallback_105, OnFailureCallback_105); } void OnFailureResponse_105(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_105(chip::CharSpan longCharString) { NextTest(); } + void OnSuccessResponse_105() { NextTest(); } CHIP_ERROR TestReadAttributeList_106() { @@ -25977,12 +25298,13 @@ class TestCluster : public TestCommand uint64_t epochUsArgument; epochUsArgument = 18446744073709551615ULL; - return cluster.WriteAttributeEpochUs(mOnSuccessCallback_110.Cancel(), mOnFailureCallback_110.Cancel(), epochUsArgument); + return cluster.WriteAttribute( + epochUsArgument, this, OnSuccessCallback_110, OnFailureCallback_110); } void OnFailureResponse_110(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_110(uint64_t epochUs) { NextTest(); } + void OnSuccessResponse_110() { NextTest(); } CHIP_ERROR TestReadAttributeEpochUsMaxValue_111() { @@ -26008,12 +25330,13 @@ class TestCluster : public TestCommand uint64_t epochUsArgument; epochUsArgument = 0ULL; - return cluster.WriteAttributeEpochUs(mOnSuccessCallback_112.Cancel(), mOnFailureCallback_112.Cancel(), epochUsArgument); + return cluster.WriteAttribute( + epochUsArgument, this, OnSuccessCallback_112, OnFailureCallback_112); } void OnFailureResponse_112(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_112(uint64_t epochUs) { NextTest(); } + void OnSuccessResponse_112() { NextTest(); } CHIP_ERROR TestReadAttributeEpochUsMinValue_113() { @@ -26055,12 +25378,13 @@ class TestCluster : public TestCommand uint32_t epochSArgument; epochSArgument = 4294967295UL; - return cluster.WriteAttributeEpochS(mOnSuccessCallback_115.Cancel(), mOnFailureCallback_115.Cancel(), epochSArgument); + return cluster.WriteAttribute( + epochSArgument, this, OnSuccessCallback_115, OnFailureCallback_115); } void OnFailureResponse_115(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_115(uint32_t epochS) { NextTest(); } + void OnSuccessResponse_115() { NextTest(); } CHIP_ERROR TestReadAttributeEpochSMaxValue_116() { @@ -26086,12 +25410,13 @@ class TestCluster : public TestCommand uint32_t epochSArgument; epochSArgument = 0UL; - return cluster.WriteAttributeEpochS(mOnSuccessCallback_117.Cancel(), mOnFailureCallback_117.Cancel(), epochSArgument); + return cluster.WriteAttribute( + epochSArgument, this, OnSuccessCallback_117, OnFailureCallback_117); } void OnFailureResponse_117(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_117(uint32_t epochS) { NextTest(); } + void OnSuccessResponse_117() { NextTest(); } CHIP_ERROR TestReadAttributeEpochSMinValue_118() { @@ -26136,8 +25461,8 @@ class TestCluster : public TestCommand bool unsupportedArgument; unsupportedArgument = 0; - return cluster.WriteAttributeUnsupported(mOnSuccessCallback_120.Cancel(), mOnFailureCallback_120.Cancel(), - unsupportedArgument); + return cluster.WriteAttribute( + unsupportedArgument, this, OnSuccessCallback_120, OnFailureCallback_120); } void OnFailureResponse_120(uint8_t status) @@ -26145,7 +25470,7 @@ class TestCluster : public TestCommand (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); } - void OnSuccessResponse_120(bool unsupported) { NextTest(); } + void OnSuccessResponse_120() { NextTest(); } CHIP_ERROR TestSendTestCommandToUnsupportedEndpoint_121() { @@ -26195,12 +25520,13 @@ class TestCluster : public TestCommand chip::VendorId vendorIdArgument; vendorIdArgument = static_cast(17); - return cluster.WriteAttributeVendorId(mOnSuccessCallback_123.Cancel(), mOnFailureCallback_123.Cancel(), vendorIdArgument); + return cluster.WriteAttribute( + vendorIdArgument, this, OnSuccessCallback_123, OnFailureCallback_123); } void OnFailureResponse_123(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_123(chip::VendorId vendorId) { NextTest(); } + void OnSuccessResponse_123() { NextTest(); } CHIP_ERROR TestReadAttributeVendorId_124() { @@ -26226,12 +25552,13 @@ class TestCluster : public TestCommand chip::VendorId vendorIdArgument; vendorIdArgument = static_cast(0); - return cluster.WriteAttributeVendorId(mOnSuccessCallback_125.Cancel(), mOnFailureCallback_125.Cancel(), vendorIdArgument); + return cluster.WriteAttribute( + vendorIdArgument, this, OnSuccessCallback_125, OnFailureCallback_125); } void OnFailureResponse_125(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_125(chip::VendorId vendorId) { NextTest(); } + void OnSuccessResponse_125() { NextTest(); } CHIP_ERROR TestSendACommandWithAVendorIdAndEnum_126() { @@ -26808,8 +26135,6 @@ class TestConstraints : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 4; - chip::Callback::Callback mOnFailureCallback_0{ OnFailureCallback_0, this }; - chip::Callback::Callback mOnSuccessCallback_0{ OnSuccessCallback_0, this }; chip::Callback::Callback mOnFailureCallback_1{ OnFailureCallback_1, this }; chip::Callback::Callback mOnSuccessCallback_1{ OnSuccessCallback_1, this }; chip::Callback::Callback mOnFailureCallback_2{ OnFailureCallback_2, this }; @@ -26817,15 +26142,12 @@ class TestConstraints : public TestCommand chip::Callback::Callback mOnFailureCallback_3{ OnFailureCallback_3, this }; chip::Callback::Callback mOnSuccessCallback_3{ OnSuccessCallback_3, this }; - static void OnFailureCallback_0(void * context, uint8_t status) + static void OnFailureCallback_0(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(status); + (static_cast(context))->OnFailureResponse_0(chip::to_underlying(status)); } - static void OnSuccessCallback_0(void * context, uint32_t int32u) - { - (static_cast(context))->OnSuccessResponse_0(int32u); - } + static void OnSuccessCallback_0(void * context) { (static_cast(context))->OnSuccessResponse_0(); } static void OnFailureCallback_1(void * context, uint8_t status) { @@ -26869,12 +26191,13 @@ class TestConstraints : public TestCommand uint32_t int32uArgument; int32uArgument = 5UL; - return cluster.WriteAttributeInt32u(mOnSuccessCallback_0.Cancel(), mOnFailureCallback_0.Cancel(), int32uArgument); + return cluster.WriteAttribute( + int32uArgument, this, OnSuccessCallback_0, OnFailureCallback_0); } void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0(uint32_t int32u) { NextTest(); } + void OnSuccessResponse_0() { NextTest(); } CHIP_ERROR TestReadAttributeInt32uValueMinValueConstraints_1() { @@ -27280,12 +26603,8 @@ class TestBasicInformation : public TestCommand chip::Callback::Callback mOnFailureCallback_0{ OnFailureCallback_0, this }; chip::Callback::Callback mOnSuccessCallback_0{ OnSuccessCallback_0, this }; - chip::Callback::Callback mOnFailureCallback_1{ OnFailureCallback_1, this }; - chip::Callback::Callback mOnSuccessCallback_1{ OnSuccessCallback_1, this }; chip::Callback::Callback mOnFailureCallback_2{ OnFailureCallback_2, this }; chip::Callback::Callback mOnSuccessCallback_2{ OnSuccessCallback_2, this }; - chip::Callback::Callback mOnFailureCallback_3{ OnFailureCallback_3, this }; - chip::Callback::Callback mOnSuccessCallback_3{ OnSuccessCallback_3, this }; static void OnFailureCallback_0(void * context, uint8_t status) { @@ -27297,15 +26616,12 @@ class TestBasicInformation : public TestCommand (static_cast(context))->OnSuccessResponse_0(location); } - static void OnFailureCallback_1(void * context, uint8_t status) + static void OnFailureCallback_1(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); } - static void OnSuccessCallback_1(void * context, chip::CharSpan location) - { - (static_cast(context))->OnSuccessResponse_1(location); - } + static void OnSuccessCallback_1(void * context) { (static_cast(context))->OnSuccessResponse_1(); } static void OnFailureCallback_2(void * context, uint8_t status) { @@ -27317,15 +26633,12 @@ class TestBasicInformation : public TestCommand (static_cast(context))->OnSuccessResponse_2(location); } - static void OnFailureCallback_3(void * context, uint8_t status) + static void OnFailureCallback_3(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_3(status); + (static_cast(context))->OnFailureResponse_3(chip::to_underlying(status)); } - static void OnSuccessCallback_3(void * context, chip::CharSpan location) - { - (static_cast(context))->OnSuccessResponse_3(location); - } + static void OnSuccessCallback_3(void * context) { (static_cast(context))->OnSuccessResponse_3(); } // // Tests methods @@ -27355,12 +26668,13 @@ class TestBasicInformation : public TestCommand chip::CharSpan locationArgument; locationArgument = chip::Span("us", strlen("us")); - return cluster.WriteAttributeLocation(mOnSuccessCallback_1.Cancel(), mOnFailureCallback_1.Cancel(), locationArgument); + return cluster.WriteAttribute( + locationArgument, this, OnSuccessCallback_1, OnFailureCallback_1); } void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_1(chip::CharSpan location) { NextTest(); } + void OnSuccessResponse_1() { NextTest(); } CHIP_ERROR TestReadBackLocation_2() { @@ -27386,12 +26700,13 @@ class TestBasicInformation : public TestCommand chip::CharSpan locationArgument; locationArgument = chip::Span("", strlen("")); - return cluster.WriteAttributeLocation(mOnSuccessCallback_3.Cancel(), mOnFailureCallback_3.Cancel(), locationArgument); + return cluster.WriteAttribute( + locationArgument, this, OnSuccessCallback_3, OnFailureCallback_3); } void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_3(chip::CharSpan location) { NextTest(); } + void OnSuccessResponse_3() { NextTest(); } }; class TestIdentifyCluster : public TestCommand @@ -28246,6 +27561,7 @@ class TestSubscribe_OnOff : public TestCommand cluster.Associate(mDevice, 1); ReturnErrorOnFailure(cluster.ReportAttributeOnOff(mOnSuccessCallback_1.Cancel())); + return WaitForMs(0); } diff --git a/zzz_generated/controller-clusters/zap-generated/tests/CHIPClustersTestWrite.cpp b/zzz_generated/controller-clusters/zap-generated/tests/CHIPClustersTestWrite.cpp new file mode 100644 index 00000000000000..3d81f2f936b3ad --- /dev/null +++ b/zzz_generated/controller-clusters/zap-generated/tests/CHIPClustersTestWrite.cpp @@ -0,0 +1,1734 @@ +/* + * + * 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 + +#include + +namespace chip { +namespace Controller { + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::AccountLogin::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::AdministratorCommissioning::Attributes::ClusterRevision::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ApplicationBasic::Attributes::VendorName::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ApplicationBasic::Attributes::VendorId::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ApplicationBasic::Attributes::ApplicationName::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ApplicationBasic::Attributes::ProductId::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ApplicationBasic::Attributes::ApplicationId::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ApplicationBasic::Attributes::CatalogVendorId::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ApplicationBasic::Attributes::ApplicationStatus::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ApplicationBasic::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ApplicationLauncher::Attributes::ApplicationLauncherList::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ApplicationLauncher::Attributes::CatalogVendorId::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ApplicationLauncher::Attributes::ApplicationId::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ApplicationLauncher::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::AudioOutput::Attributes::AudioOutputList::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::AudioOutput::Attributes::CurrentAudioOutput::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::AudioOutput::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::BarrierControl::Attributes::BarrierMovingState::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::BarrierControl::Attributes::BarrierSafetyStatus::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::BarrierControl::Attributes::BarrierCapabilities::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::BarrierControl::Attributes::BarrierPosition::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::BarrierControl::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Basic::Attributes::InteractionModelVersion::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Basic::Attributes::VendorName::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Basic::Attributes::VendorID::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Basic::Attributes::ProductName::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Basic::Attributes::ProductID::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Basic::Attributes::HardwareVersion::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Basic::Attributes::HardwareVersionString::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Basic::Attributes::SoftwareVersion::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Basic::Attributes::SoftwareVersionString::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Basic::Attributes::ManufacturingDate::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Basic::Attributes::PartNumber::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Basic::Attributes::ProductURL::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Basic::Attributes::ProductLabel::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Basic::Attributes::SerialNumber::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Basic::Attributes::Reachable::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Basic::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::BinaryInputBasic::Attributes::StatusFlags::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::BinaryInputBasic::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Binding::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::BooleanState::Attributes::StateValue::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::BooleanState::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::BridgedActions::Attributes::ActionList::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::BridgedActions::Attributes::EndpointList::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::BridgedActions::Attributes::SetupUrl::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::BridgedActions::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::BridgedDeviceBasic::Attributes::VendorName::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::BridgedDeviceBasic::Attributes::VendorID::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::BridgedDeviceBasic::Attributes::ProductName::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::BridgedDeviceBasic::Attributes::HardwareVersion::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::BridgedDeviceBasic::Attributes::HardwareVersionString::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::BridgedDeviceBasic::Attributes::SoftwareVersion::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::BridgedDeviceBasic::Attributes::SoftwareVersionString::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::BridgedDeviceBasic::Attributes::ManufacturingDate::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::BridgedDeviceBasic::Attributes::PartNumber::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::BridgedDeviceBasic::Attributes::ProductURL::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::BridgedDeviceBasic::Attributes::ProductLabel::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::BridgedDeviceBasic::Attributes::SerialNumber::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::BridgedDeviceBasic::Attributes::Reachable::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::BridgedDeviceBasic::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::CurrentHue::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::CurrentSaturation::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::RemainingTime::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::CurrentX::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::CurrentY::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::DriftCompensation::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::CompensationText::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::ColorTemperature::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::ColorMode::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::NumberOfPrimaries::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::Primary1X::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::Primary1Y::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::Primary1Intensity::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::Primary2X::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::Primary2Y::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::Primary2Intensity::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::Primary3X::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::Primary3Y::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::Primary3Intensity::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::Primary4X::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::Primary4Y::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::Primary4Intensity::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::Primary5X::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::Primary5Y::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::Primary5Intensity::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::Primary6X::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::Primary6Y::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::Primary6Intensity::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::EnhancedCurrentHue::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::EnhancedColorMode::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::ColorLoopActive::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::ColorLoopDirection::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::ColorLoopTime::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::ColorLoopStartEnhancedHue::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::ColorLoopStoredEnhancedHue::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::ColorCapabilities::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::ColorTempPhysicalMin::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::ColorTempPhysicalMax::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::CoupleColorTempToLevelMinMireds::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ColorControl::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ContentLauncher::Attributes::AcceptsHeaderList::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ContentLauncher::Attributes::SupportedStreamingTypes::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ContentLauncher::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Descriptor::Attributes::DeviceList::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Descriptor::Attributes::ServerList::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Descriptor::Attributes::ClientList::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Descriptor::Attributes::PartsList::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Descriptor::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::DoorLock::Attributes::LockState::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::DoorLock::Attributes::LockType::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::DoorLock::Attributes::ActuatorEnabled::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::DoorLock::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ElectricalMeasurement::Attributes::MeasurementType::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ElectricalMeasurement::Attributes::TotalActivePower::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ElectricalMeasurement::Attributes::RmsVoltage::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ElectricalMeasurement::Attributes::RmsVoltageMin::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ElectricalMeasurement::Attributes::RmsVoltageMax::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ElectricalMeasurement::Attributes::RmsCurrent::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ElectricalMeasurement::Attributes::RmsCurrentMin::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ElectricalMeasurement::Attributes::RmsCurrentMax::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ElectricalMeasurement::Attributes::ActivePower::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ElectricalMeasurement::Attributes::ActivePowerMin::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ElectricalMeasurement::Attributes::ActivePowerMax::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ElectricalMeasurement::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::EthernetNetworkDiagnostics::Attributes::PHYRate::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::EthernetNetworkDiagnostics::Attributes::FullDuplex::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::EthernetNetworkDiagnostics::Attributes::PacketRxCount::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::EthernetNetworkDiagnostics::Attributes::PacketTxCount::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::EthernetNetworkDiagnostics::Attributes::TxErrCount::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::EthernetNetworkDiagnostics::Attributes::CollisionCount::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::EthernetNetworkDiagnostics::Attributes::OverrunCount::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::EthernetNetworkDiagnostics::Attributes::CarrierDetect::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::EthernetNetworkDiagnostics::Attributes::TimeSinceReset::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::EthernetNetworkDiagnostics::Attributes::ClusterRevision::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::FixedLabel::Attributes::LabelList::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::FixedLabel::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::FlowMeasurement::Attributes::MeasuredValue::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::FlowMeasurement::Attributes::MinMeasuredValue::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::FlowMeasurement::Attributes::MaxMeasuredValue::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::FlowMeasurement::Attributes::Tolerance::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::FlowMeasurement::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::GeneralCommissioning::Attributes::BasicCommissioningInfoList::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::GeneralCommissioning::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::GeneralDiagnostics::Attributes::NetworkInterfaces::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::GeneralDiagnostics::Attributes::RebootCount::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::GeneralDiagnostics::Attributes::UpTime::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::GeneralDiagnostics::Attributes::TotalOperationalHours::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::GeneralDiagnostics::Attributes::BootReasons::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::GeneralDiagnostics::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::GroupKeyManagement::Attributes::Groups::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::GroupKeyManagement::Attributes::GroupKeys::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::GroupKeyManagement::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Groups::Attributes::NameSupport::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Groups::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Identify::Attributes::IdentifyType::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Identify::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::IlluminanceMeasurement::Attributes::MeasuredValue::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::IlluminanceMeasurement::Attributes::MinMeasuredValue::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::IlluminanceMeasurement::Attributes::MaxMeasuredValue::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::IlluminanceMeasurement::Attributes::Tolerance::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::IlluminanceMeasurement::Attributes::LightSensorType::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::IlluminanceMeasurement::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::KeypadInput::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::LevelControl::Attributes::CurrentLevel::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::LevelControl::Attributes::RemainingTime::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::LevelControl::Attributes::MinLevel::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::LevelControl::Attributes::MaxLevel::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::LevelControl::Attributes::CurrentFrequency::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::LevelControl::Attributes::MinFrequency::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::LevelControl::Attributes::MaxFrequency::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::LevelControl::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::LowPower::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::MediaInput::Attributes::MediaInputList::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::MediaInput::Attributes::CurrentMediaInput::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::MediaInput::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::MediaPlayback::Attributes::PlaybackState::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::MediaPlayback::Attributes::StartTime::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::MediaPlayback::Attributes::Duration::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::MediaPlayback::Attributes::PositionUpdatedAt::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::MediaPlayback::Attributes::Position::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::MediaPlayback::Attributes::PlaybackSpeed::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::MediaPlayback::Attributes::SeekRangeEnd::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::MediaPlayback::Attributes::SeekRangeStart::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::MediaPlayback::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ModeSelect::Attributes::CurrentMode::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ModeSelect::Attributes::SupportedModes::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ModeSelect::Attributes::StartUpMode::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ModeSelect::Attributes::Description::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ModeSelect::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::NetworkCommissioning::Attributes::FeatureMap::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::NetworkCommissioning::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::OtaSoftwareUpdateProvider::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::OtaSoftwareUpdateRequestor::Attributes::UpdatePossible::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::OtaSoftwareUpdateRequestor::Attributes::ClusterRevision::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::OccupancySensing::Attributes::Occupancy::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::OccupancySensing::Attributes::OccupancySensorType::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::OccupancySensing::Attributes::OccupancySensorTypeBitmap::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::OccupancySensing::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::OnOff::Attributes::OnOff::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::OnOff::Attributes::GlobalSceneControl::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::OnOff::Attributes::FeatureMap::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::OnOff::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::OnOffSwitchConfiguration::Attributes::SwitchType::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::OnOffSwitchConfiguration::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::OperationalCredentials::Attributes::FabricsList::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::OperationalCredentials::Attributes::SupportedFabrics::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::OperationalCredentials::Attributes::CommissionedFabrics::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::OperationalCredentials::Attributes::TrustedRootCertificates::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::OperationalCredentials::Attributes::CurrentFabricIndex::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::OperationalCredentials::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::PowerSource::Attributes::Status::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::PowerSource::Attributes::Order::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::PowerSource::Attributes::Description::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::PowerSource::Attributes::BatteryVoltage::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::PowerSource::Attributes::BatteryPercentRemaining::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::PowerSource::Attributes::BatteryTimeRemaining::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::PowerSource::Attributes::BatteryChargeLevel::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::PowerSource::Attributes::ActiveBatteryFaults::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::PowerSource::Attributes::BatteryChargeState::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::PowerSource::Attributes::FeatureMap::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::PowerSource::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::PressureMeasurement::Attributes::MeasuredValue::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::PressureMeasurement::Attributes::MinMeasuredValue::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::PressureMeasurement::Attributes::MaxMeasuredValue::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::PressureMeasurement::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::PumpConfigurationAndControl::Attributes::MaxPressure::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::PumpConfigurationAndControl::Attributes::MaxSpeed::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::PumpConfigurationAndControl::Attributes::MaxFlow::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::PumpConfigurationAndControl::Attributes::MinConstPressure::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::PumpConfigurationAndControl::Attributes::MaxConstPressure::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::PumpConfigurationAndControl::Attributes::MinCompPressure::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::PumpConfigurationAndControl::Attributes::MaxCompPressure::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::PumpConfigurationAndControl::Attributes::MinConstSpeed::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::PumpConfigurationAndControl::Attributes::MaxConstSpeed::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::PumpConfigurationAndControl::Attributes::MinConstFlow::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::PumpConfigurationAndControl::Attributes::MaxConstFlow::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::PumpConfigurationAndControl::Attributes::MinConstTemp::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::PumpConfigurationAndControl::Attributes::MaxConstTemp::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::PumpConfigurationAndControl::Attributes::PumpStatus::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::PumpConfigurationAndControl::Attributes::EffectiveOperationMode::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::PumpConfigurationAndControl::Attributes::EffectiveControlMode::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::PumpConfigurationAndControl::Attributes::Capacity::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::PumpConfigurationAndControl::Attributes::Speed::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::PumpConfigurationAndControl::Attributes::LifetimeEnergyConsumed::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::PumpConfigurationAndControl::Attributes::AlarmMask::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::PumpConfigurationAndControl::Attributes::FeatureMap::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::PumpConfigurationAndControl::Attributes::ClusterRevision::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::RelativeHumidityMeasurement::Attributes::MeasuredValue::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::RelativeHumidityMeasurement::Attributes::MinMeasuredValue::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::RelativeHumidityMeasurement::Attributes::MaxMeasuredValue::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::RelativeHumidityMeasurement::Attributes::Tolerance::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::RelativeHumidityMeasurement::Attributes::ClusterRevision::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Scenes::Attributes::SceneCount::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Scenes::Attributes::CurrentScene::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Scenes::Attributes::CurrentGroup::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Scenes::Attributes::SceneValid::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Scenes::Attributes::NameSupport::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Scenes::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::SoftwareDiagnostics::Attributes::CurrentHeapFree::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::SoftwareDiagnostics::Attributes::CurrentHeapUsed::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::SoftwareDiagnostics::Attributes::CurrentHeapHighWatermark::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::SoftwareDiagnostics::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Switch::Attributes::NumberOfPositions::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Switch::Attributes::CurrentPosition::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Switch::Attributes::MultiPressMax::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Switch::Attributes::FeatureMap::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Switch::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::TvChannel::Attributes::TvChannelList::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::TvChannel::Attributes::TvChannelLineup::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::TvChannel::Attributes::CurrentTvChannel::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::TvChannel::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::TargetNavigator::Attributes::TargetNavigatorList::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::TargetNavigator::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::TemperatureMeasurement::Attributes::MeasuredValue::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::TemperatureMeasurement::Attributes::MinMeasuredValue::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::TemperatureMeasurement::Attributes::MaxMeasuredValue::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::TemperatureMeasurement::Attributes::Tolerance::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::TemperatureMeasurement::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::TestCluster::Attributes::ListInt8u::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::TestCluster::Attributes::ListOctetString::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::TestCluster::Attributes::ListStructOctetString::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::TestCluster::Attributes::ListNullablesAndOptionalsStruct::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::TestCluster::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Thermostat::Attributes::LocalTemperature::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Thermostat::Attributes::AbsMinHeatSetpointLimit::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Thermostat::Attributes::AbsMaxHeatSetpointLimit::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Thermostat::Attributes::AbsMinCoolSetpointLimit::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Thermostat::Attributes::AbsMaxCoolSetpointLimit::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Thermostat::Attributes::StartOfWeek::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Thermostat::Attributes::NumberOfWeeklyTransitions::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Thermostat::Attributes::NumberOfDailyTransitions::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Thermostat::Attributes::FeatureMap::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::Thermostat::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ThermostatUserInterfaceConfiguration::Attributes::ClusterRevision::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::Channel::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::RoutingRole::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::NetworkName::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::PanId::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::ExtendedPanId::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::MeshLocalPrefix::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::OverrunCount::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::NeighborTableList::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::RouteTableList::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::PartitionId::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::Weighting::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::DataVersion::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::StableDataVersion::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::LeaderRouterId::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::DetachedRoleCount::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::ChildRoleCount::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::RouterRoleCount::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::LeaderRoleCount::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::AttachAttemptCount::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::PartitionIdChangeCount::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::BetterPartitionAttachAttemptCount::TypeInfo::Type & + requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::ParentChangeCount::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::TxTotalCount::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::TxUnicastCount::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::TxBroadcastCount::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::TxAckRequestedCount::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::TxAckedCount::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::TxNoAckRequestedCount::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::TxDataCount::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::TxDataPollCount::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::TxBeaconCount::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::TxBeaconRequestCount::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::TxOtherCount::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::TxRetryCount::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::TxDirectMaxRetryExpiryCount::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::TxIndirectMaxRetryExpiryCount::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::TxErrCcaCount::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::TxErrAbortCount::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::TxErrBusyChannelCount::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::RxTotalCount::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::RxUnicastCount::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::RxBroadcastCount::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::RxDataCount::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::RxDataPollCount::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::RxBeaconCount::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::RxBeaconRequestCount::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::RxOtherCount::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::RxAddressFilteredCount::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::RxDestAddrFilteredCount::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::RxDuplicatedCount::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::RxErrNoFrameCount::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::RxErrUnknownNeighborCount::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::RxErrInvalidSrcAddrCount::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::RxErrSecCount::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::RxErrFcsCount::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::RxErrOtherCount::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::ActiveTimestamp::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::PendingTimestamp::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::Delay::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::SecurityPolicy::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::ChannelMask::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::OperationalDatasetComponents::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::ActiveNetworkFaultsList::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::ThreadNetworkDiagnostics::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::WakeOnLan::Attributes::WakeOnLanMacAddress::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::WakeOnLan::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::WiFiNetworkDiagnostics::Attributes::Bssid::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::WiFiNetworkDiagnostics::Attributes::SecurityType::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::WiFiNetworkDiagnostics::Attributes::WiFiVersion::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::WiFiNetworkDiagnostics::Attributes::ChannelNumber::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::WiFiNetworkDiagnostics::Attributes::Rssi::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::WiFiNetworkDiagnostics::Attributes::BeaconLostCount::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::WiFiNetworkDiagnostics::Attributes::BeaconRxCount::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::WiFiNetworkDiagnostics::Attributes::PacketMulticastRxCount::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::WiFiNetworkDiagnostics::Attributes::PacketMulticastTxCount::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::WiFiNetworkDiagnostics::Attributes::PacketUnicastRxCount::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::WiFiNetworkDiagnostics::Attributes::PacketUnicastTxCount::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::WiFiNetworkDiagnostics::Attributes::CurrentMaxRate::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::WiFiNetworkDiagnostics::Attributes::OverrunCount::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::WiFiNetworkDiagnostics::Attributes::ClusterRevision::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::WindowCovering::Attributes::Type::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::WindowCovering::Attributes::CurrentPositionLift::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::WindowCovering::Attributes::CurrentPositionTilt::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::WindowCovering::Attributes::ConfigStatus::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::WindowCovering::Attributes::CurrentPositionLiftPercentage::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::WindowCovering::Attributes::CurrentPositionTiltPercentage::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::WindowCovering::Attributes::OperationalStatus::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::WindowCovering::Attributes::TargetPositionLiftPercent100ths::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::WindowCovering::Attributes::TargetPositionTiltPercent100ths::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::WindowCovering::Attributes::EndProductType::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::WindowCovering::Attributes::CurrentPositionLiftPercent100ths::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::WindowCovering::Attributes::CurrentPositionTiltPercent100ths::TypeInfo::Type & requestData, + void * context, WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::WindowCovering::Attributes::InstalledOpenLimitLift::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::WindowCovering::Attributes::InstalledClosedLimitLift::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::WindowCovering::Attributes::InstalledOpenLimitTilt::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR +ClusterBase::WriteAttribute( + const chip::app::Clusters::WindowCovering::Attributes::InstalledClosedLimitTilt::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::WindowCovering::Attributes::SafetyStatus::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::WindowCovering::Attributes::FeatureMap::TypeInfo::Type & requestData, void * context, + WriteResponseSuccessCallback successCb, WriteResponseFailureCallback failureCb); + +template CHIP_ERROR ClusterBase::WriteAttribute( + const chip::app::Clusters::WindowCovering::Attributes::ClusterRevision::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