From 044584df8aecd6914a6e68ec625c94073a5af287 Mon Sep 17 00:00:00 2001 From: Trevor Holbrook Date: Fri, 25 Jun 2021 18:42:22 +0000 Subject: [PATCH 1/2] rename OTA Server -> OTA Provider and OTA Client -> OTA Requestor --- .../all-clusters-common/all-clusters-app.zap | 26 ++--- .../gen/IMClusterCommandHandler.cpp | 31 +++--- .../all-clusters-common/gen/callback-stub.cpp | 6 +- .../all-clusters-common/gen/callback.h | 63 +++++++------ .../all-clusters-common/gen/endpoint_config.h | 8 +- .../all-clusters-common/gen/gen_config.h | 10 +- .../esp32/main/CMakeLists.txt | 2 +- .../chip-tool/commands/clusters/Commands.h | 94 +++++++++---------- .../tv-common/gen/IMClusterCommandHandler.cpp | 31 +++--- .../tv-app/tv-common/gen/callback-stub.cpp | 6 +- examples/tv-app/tv-common/gen/callback.h | 63 +++++++------ .../tv-app/tv-common/gen/endpoint_config.h | 8 +- examples/tv-app/tv-common/gen/gen_config.h | 10 +- examples/tv-app/tv-common/tv-app.zap | 8 +- .../ota-provider-delegate.h} | 8 +- .../ota-provider.cpp} | 88 ++++++++--------- .../ota-provider.h} | 6 +- src/app/common/gen/attribute-id.h | 6 +- src/app/common/gen/client-command-macro.h | 34 +++---- src/app/common/gen/cluster-id.h | 8 +- src/app/common/gen/command-id.h | 6 +- src/app/common/gen/print-cluster.h | 16 ++-- src/app/util/process-cluster-message.cpp | 4 +- src/app/zap-templates/zcl/chip-ota.xml | 22 ++--- src/app/zap_cluster_list.py | 8 +- .../data_model/controller-clusters.zap | 8 +- .../data_model/gen/CHIPClientCallbacks.cpp | 29 +++--- .../data_model/gen/CHIPClientCallbacks.h | 12 +-- .../data_model/gen/CHIPClusters.cpp | 50 +++++----- src/controller/data_model/gen/CHIPClusters.h | 12 +-- .../gen/IMClusterCommandHandler.cpp | 26 ++--- .../data_model/gen/call-command-handler.cpp | 21 +++-- .../data_model/gen/callback-stub.cpp | 6 +- src/controller/data_model/gen/callback.h | 62 ++++++------ .../data_model/gen/chip-zcl-zpro-codec-api.h | 15 +-- src/controller/data_model/gen/encoder.cpp | 15 +-- .../data_model/gen/endpoint_config.h | 6 +- src/controller/data_model/gen/gen_config.h | 8 +- src/controller/java/gen/CHIPClusters-JNI.cpp | 84 ++++++++--------- src/controller/java/gen/ChipClusters.java | 18 ++-- .../python/chip/clusters/CHIPClusters.cpp | 42 ++++----- .../python/chip/clusters/CHIPClusters.py | 52 +++++----- .../Framework/CHIP/gen/CHIPClustersObjc.h | 22 ++--- .../Framework/CHIP/gen/CHIPClustersObjc.mm | 66 ++++++------- src/darwin/Framework/CHIP/templates/helper.js | 2 +- .../Framework/CHIPTests/CHIPClustersTests.m | 8 +- 46 files changed, 574 insertions(+), 562 deletions(-) rename src/app/clusters/{ota-server/ota-server-delegate.h => ota-provider/ota-provider-delegate.h} (91%) rename src/app/clusters/{ota-server/ota-server.cpp => ota-provider/ota-provider.cpp} (64%) rename src/app/clusters/{ota-server/ota-server.h => ota-provider/ota-provider.h} (85%) diff --git a/examples/all-clusters-app/all-clusters-common/all-clusters-app.zap b/examples/all-clusters-app/all-clusters-common/all-clusters-app.zap index 705670d1cc9d0b..0bb6008ce8cd77 100644 --- a/examples/all-clusters-app/all-clusters-common/all-clusters-app.zap +++ b/examples/all-clusters-app/all-clusters-common/all-clusters-app.zap @@ -1204,10 +1204,10 @@ ] }, { - "name": "OTA Software Update Server", + "name": "OTA Software Update Provider", "code": 41, "mfgCode": null, - "define": "OTA_SERVER_CLUSTER", + "define": "OTA_PROVIDER_CLUSTER", "side": "client", "enabled": 0, "commands": [ @@ -1255,10 +1255,10 @@ ] }, { - "name": "OTA Software Update Server", + "name": "OTA Software Update Provider", "code": 41, "mfgCode": null, - "define": "OTA_SERVER_CLUSTER", + "define": "OTA_PROVIDER_CLUSTER", "side": "server", "enabled": 1, "commands": [ @@ -7106,10 +7106,10 @@ ] }, { - "name": "OTA Software Update Server", + "name": "OTA Software Update Provider", "code": 41, "mfgCode": null, - "define": "OTA_SERVER_CLUSTER", + "define": "OTA_PROVIDER_CLUSTER", "side": "client", "enabled": 0, "commands": [ @@ -7157,10 +7157,10 @@ ] }, { - "name": "OTA Software Update Server", + "name": "OTA Software Update Provider", "code": 41, "mfgCode": null, - "define": "OTA_SERVER_CLUSTER", + "define": "OTA_PROVIDER_CLUSTER", "side": "server", "enabled": 0, "commands": [ @@ -7200,16 +7200,16 @@ ] }, { - "name": "OTA Software Update Client", + "name": "OTA Software Update Requestor", "code": 42, "mfgCode": null, - "define": "OTA_CLIENT_CLUSTER", + "define": "OTA_REQUESTOR_CLUSTER", "side": "client", "enabled": 0, "commands": [], "attributes": [ { - "name": "default ota server", + "name": "default ota provider", "code": 0, "mfgCode": null, "side": "client", @@ -7256,10 +7256,10 @@ ] }, { - "name": "OTA Software Update Client", + "name": "OTA Software Update Requestor", "code": 42, "mfgCode": null, - "define": "OTA_CLIENT_CLUSTER", + "define": "OTA_REQUESTOR_CLUSTER", "side": "server", "enabled": 0, "commands": [], diff --git a/examples/all-clusters-app/all-clusters-common/gen/IMClusterCommandHandler.cpp b/examples/all-clusters-app/all-clusters-common/gen/IMClusterCommandHandler.cpp index d9a908e646123d..e4b77ab47c0a4a 100644 --- a/examples/all-clusters-app/all-clusters-common/gen/IMClusterCommandHandler.cpp +++ b/examples/all-clusters-app/all-clusters-common/gen/IMClusterCommandHandler.cpp @@ -5072,7 +5072,7 @@ void DispatchServerCommand(app::Command * apCommandObj, CommandId aCommandId, En } // namespace NetworkCommissioning -namespace OtaSoftwareUpdateServer { +namespace OtaSoftwareUpdateProvider { void DispatchServerCommand(app::Command * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { @@ -5151,7 +5151,8 @@ void DispatchServerCommand(app::Command * apCommandObj, CommandId aCommandId, En if (CHIP_NO_ERROR == TLVError && CHIP_NO_ERROR == TLVUnpackError && 2 == validArgumentCount) { // TODO(#5098) We should pass the Command Object and EndpointId to the cluster callbacks. - wasHandled = emberAfOtaSoftwareUpdateServerClusterApplyUpdateRequestCallback(apCommandObj, updateToken, newVersion); + wasHandled = + emberAfOtaSoftwareUpdateProviderClusterApplyUpdateRequestCallback(apCommandObj, updateToken, newVersion); } break; } @@ -5218,7 +5219,7 @@ void DispatchServerCommand(app::Command * apCommandObj, CommandId aCommandId, En { // TODO(#5098) We should pass the Command Object and EndpointId to the cluster callbacks. wasHandled = - emberAfOtaSoftwareUpdateServerClusterNotifyUpdateAppliedCallback(apCommandObj, updateToken, currentVersion); + emberAfOtaSoftwareUpdateProviderClusterNotifyUpdateAppliedCallback(apCommandObj, updateToken, currentVersion); } break; } @@ -5231,8 +5232,8 @@ void DispatchServerCommand(app::Command * apCommandObj, CommandId aCommandId, En uint32_t currentVersion; /* TYPE WARNING: array array defaults to */ uint8_t * protocolsSupported; const uint8_t * location; - uint8_t clientCanConsent; - chip::ByteSpan metadataForServer; + uint8_t requestorCanConsent; + chip::ByteSpan metadataForProvider; bool argExists[9]; memset(argExists, 0, sizeof argExists); @@ -5286,12 +5287,12 @@ void DispatchServerCommand(app::Command * apCommandObj, CommandId aCommandId, En TLVUnpackError = aDataTlv.GetDataPtr(location); break; case 7: - TLVUnpackError = aDataTlv.Get(clientCanConsent); + TLVUnpackError = aDataTlv.Get(requestorCanConsent); break; case 8: { const uint8_t * data = nullptr; TLVUnpackError = aDataTlv.GetDataPtr(data); - metadataForServer = chip::ByteSpan(data, aDataTlv.GetLength()); + metadataForProvider = chip::ByteSpan(data, aDataTlv.GetLength()); } break; default: @@ -5314,9 +5315,9 @@ void DispatchServerCommand(app::Command * apCommandObj, CommandId aCommandId, En if (CHIP_NO_ERROR == TLVError && CHIP_NO_ERROR == TLVUnpackError && 9 == validArgumentCount) { // TODO(#5098) We should pass the Command Object and EndpointId to the cluster callbacks. - wasHandled = emberAfOtaSoftwareUpdateServerClusterQueryImageCallback( + wasHandled = emberAfOtaSoftwareUpdateProviderClusterQueryImageCallback( apCommandObj, vendorId, productId, imageType, hardwareVersion, currentVersion, protocolsSupported, - const_cast(location), clientCanConsent, metadataForServer); + const_cast(location), requestorCanConsent, metadataForProvider); } break; } @@ -5324,12 +5325,12 @@ void DispatchServerCommand(app::Command * apCommandObj, CommandId aCommandId, En // Unrecognized command ID, error status will apply. chip::app::CommandPathParams returnStatusParam = { aEndpointId, 0, // GroupId - ZCL_OTA_SERVER_CLUSTER_ID, aCommandId, + ZCL_OTA_PROVIDER_CLUSTER_ID, aCommandId, (chip::app::CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kNotFound, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::UnsupportedCommand); - ChipLogError(Zcl, "Unknown command %" PRIx16 " for cluster %" PRIx16, aCommandId, ZCL_OTA_SERVER_CLUSTER_ID); + ChipLogError(Zcl, "Unknown command %" PRIx16 " for cluster %" PRIx16, aCommandId, ZCL_OTA_PROVIDER_CLUSTER_ID); return; } } @@ -5339,7 +5340,7 @@ void DispatchServerCommand(app::Command * apCommandObj, CommandId aCommandId, En { chip::app::CommandPathParams returnStatusParam = { aEndpointId, 0, // GroupId - ZCL_OTA_SERVER_CLUSTER_ID, aCommandId, + ZCL_OTA_PROVIDER_CLUSTER_ID, aCommandId, (chip::app::CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); @@ -5350,7 +5351,7 @@ void DispatchServerCommand(app::Command * apCommandObj, CommandId aCommandId, En } } -} // namespace OtaSoftwareUpdateServer +} // namespace OtaSoftwareUpdateProvider namespace OnOff { @@ -6546,8 +6547,8 @@ void DispatchSingleClusterCommand(chip::ClusterId aClusterId, chip::CommandId aC case ZCL_NETWORK_COMMISSIONING_CLUSTER_ID: clusters::NetworkCommissioning::DispatchServerCommand(apCommandObj, aCommandId, aEndPointId, aReader); break; - case ZCL_OTA_SERVER_CLUSTER_ID: - clusters::OtaSoftwareUpdateServer::DispatchServerCommand(apCommandObj, aCommandId, aEndPointId, aReader); + case ZCL_OTA_PROVIDER_CLUSTER_ID: + clusters::OtaSoftwareUpdateProvider::DispatchServerCommand(apCommandObj, aCommandId, aEndPointId, aReader); break; case ZCL_ON_OFF_CLUSTER_ID: clusters::OnOff::DispatchServerCommand(apCommandObj, aCommandId, aEndPointId, aReader); diff --git a/examples/all-clusters-app/all-clusters-common/gen/callback-stub.cpp b/examples/all-clusters-app/all-clusters-common/gen/callback-stub.cpp index d320b277bdf2a8..a49163b1e48453 100644 --- a/examples/all-clusters-app/all-clusters-common/gen/callback-stub.cpp +++ b/examples/all-clusters-app/all-clusters-common/gen/callback-stub.cpp @@ -116,8 +116,8 @@ void emberAfClusterInitCallback(EndpointId endpoint, ClusterId clusterId) case ZCL_NETWORK_COMMISSIONING_CLUSTER_ID: emberAfNetworkCommissioningClusterInitCallback(endpoint); break; - case ZCL_OTA_SERVER_CLUSTER_ID: - emberAfOtaSoftwareUpdateServerClusterInitCallback(endpoint); + case ZCL_OTA_PROVIDER_CLUSTER_ID: + emberAfOtaSoftwareUpdateProviderClusterInitCallback(endpoint); break; case ZCL_OCCUPANCY_SENSING_CLUSTER_ID: emberAfOccupancySensingClusterInitCallback(endpoint); @@ -324,7 +324,7 @@ void __attribute__((weak)) emberAfNetworkCommissioningClusterInitCallback(Endpoi // To prevent warning (void) endpoint; } -void __attribute__((weak)) emberAfOtaSoftwareUpdateServerClusterInitCallback(EndpointId endpoint) +void __attribute__((weak)) emberAfOtaSoftwareUpdateProviderClusterInitCallback(EndpointId endpoint) { // To prevent warning (void) endpoint; diff --git a/examples/all-clusters-app/all-clusters-common/gen/callback.h b/examples/all-clusters-app/all-clusters-common/gen/callback.h index da4ba6521ef97b..b6c2197924b2be 100644 --- a/examples/all-clusters-app/all-clusters-common/gen/callback.h +++ b/examples/all-clusters-app/all-clusters-common/gen/callback.h @@ -272,13 +272,13 @@ void emberAfMediaPlaybackClusterInitCallback(chip::EndpointId endpoint); */ void emberAfNetworkCommissioningClusterInitCallback(chip::EndpointId endpoint); -/** @brief OTA Software Update Server Cluster Init +/** @brief OTA Software Update Provider Cluster Init * * Cluster Init * * @param endpoint Endpoint that is being initialized */ -void emberAfOtaSoftwareUpdateServerClusterInitCallback(chip::EndpointId endpoint); +void emberAfOtaSoftwareUpdateProviderClusterInitCallback(chip::EndpointId endpoint); /** @brief Occupancy Sensing Cluster Init * @@ -2455,27 +2455,28 @@ EmberAfStatus emberAfNetworkCommissioningClusterServerPreAttributeChangedCallbac void emberAfNetworkCommissioningClusterServerTickCallback(chip::EndpointId endpoint); // -// OTA Software Update Server Cluster server +// OTA Software Update Provider Cluster server // -/** @brief OTA Software Update Server Cluster Server Init +/** @brief OTA Software Update Provider Cluster Server Init * * Server Init * * @param endpoint Endpoint that is being initialized */ -void emberAfOtaSoftwareUpdateServerClusterServerInitCallback(chip::EndpointId endpoint); +void emberAfOtaSoftwareUpdateProviderClusterServerInitCallback(chip::EndpointId endpoint); -/** @brief OTA Software Update Server Cluster Server Attribute Changed +/** @brief OTA Software Update Provider Cluster Server Attribute Changed * * Server Attribute Changed * * @param endpoint Endpoint that is being initialized * @param attributeId Attribute that changed */ -void emberAfOtaSoftwareUpdateServerClusterServerAttributeChangedCallback(chip::EndpointId endpoint, chip::AttributeId attributeId); +void emberAfOtaSoftwareUpdateProviderClusterServerAttributeChangedCallback(chip::EndpointId endpoint, + chip::AttributeId attributeId); -/** @brief OTA Software Update Server Cluster Server Manufacturer Specific Attribute Changed +/** @brief OTA Software Update Provider Cluster Server Manufacturer Specific Attribute Changed * * Server Manufacturer Specific Attribute Changed * @@ -2483,11 +2484,11 @@ void emberAfOtaSoftwareUpdateServerClusterServerAttributeChangedCallback(chip::E * @param attributeId Attribute that changed * @param manufacturerCode Manufacturer Code of the attribute that changed */ -void emberAfOtaSoftwareUpdateServerClusterServerManufacturerSpecificAttributeChangedCallback(chip::EndpointId endpoint, - chip::AttributeId attributeId, - uint16_t manufacturerCode); +void emberAfOtaSoftwareUpdateProviderClusterServerManufacturerSpecificAttributeChangedCallback(chip::EndpointId endpoint, + chip::AttributeId attributeId, + uint16_t manufacturerCode); -/** @brief OTA Software Update Server Cluster Server Message Sent +/** @brief OTA Software Update Provider Cluster Server Message Sent * * Server Message Sent * @@ -2498,11 +2499,11 @@ void emberAfOtaSoftwareUpdateServerClusterServerManufacturerSpecificAttributeCha * @param message The message that was sent * @param status The status of the sent message */ -void emberAfOtaSoftwareUpdateServerClusterServerMessageSentCallback(const chip::MessageSendDestination & destination, - EmberApsFrame * apsFrame, uint16_t msgLen, uint8_t * message, - EmberStatus status); +void emberAfOtaSoftwareUpdateProviderClusterServerMessageSentCallback(const chip::MessageSendDestination & destination, + EmberApsFrame * apsFrame, uint16_t msgLen, uint8_t * message, + EmberStatus status); -/** @brief OTA Software Update Server Cluster Server Pre Attribute Changed +/** @brief OTA Software Update Provider Cluster Server Pre Attribute Changed * * server Pre Attribute Changed * @@ -2512,18 +2513,18 @@ void emberAfOtaSoftwareUpdateServerClusterServerMessageSentCallback(const chip:: * @param size Attribute size * @param value Attribute value */ -EmberAfStatus emberAfOtaSoftwareUpdateServerClusterServerPreAttributeChangedCallback(chip::EndpointId endpoint, - chip::AttributeId attributeId, - EmberAfAttributeType attributeType, - uint16_t size, uint8_t * value); +EmberAfStatus emberAfOtaSoftwareUpdateProviderClusterServerPreAttributeChangedCallback(chip::EndpointId endpoint, + chip::AttributeId attributeId, + EmberAfAttributeType attributeType, + uint16_t size, uint8_t * value); -/** @brief OTA Software Update Server Cluster Server Tick +/** @brief OTA Software Update Provider Cluster Server Tick * * server Tick * * @param endpoint Endpoint that is being served */ -void emberAfOtaSoftwareUpdateServerClusterServerTickCallback(chip::EndpointId endpoint); +void emberAfOtaSoftwareUpdateProviderClusterServerTickCallback(chip::EndpointId endpoint); // // Occupancy Sensing Cluster server @@ -4277,27 +4278,27 @@ bool emberAfNetworkCommissioningClusterUpdateWiFiNetworkCallback(chip::app::Comm uint32_t timeoutMs); /** - * @brief OTA Software Update Server Cluster ApplyUpdateRequest Command callback + * @brief OTA Software Update Provider Cluster ApplyUpdateRequest Command callback */ -bool emberAfOtaSoftwareUpdateServerClusterApplyUpdateRequestCallback(chip::app::Command * commandObj, chip::ByteSpan updateToken, - uint32_t newVersion); +bool emberAfOtaSoftwareUpdateProviderClusterApplyUpdateRequestCallback(chip::app::Command * commandObj, chip::ByteSpan updateToken, + uint32_t newVersion); /** - * @brief OTA Software Update Server Cluster NotifyUpdateApplied Command callback + * @brief OTA Software Update Provider Cluster NotifyUpdateApplied Command callback */ -bool emberAfOtaSoftwareUpdateServerClusterNotifyUpdateAppliedCallback(chip::app::Command * commandObj, chip::ByteSpan updateToken, - uint32_t currentVersion); +bool emberAfOtaSoftwareUpdateProviderClusterNotifyUpdateAppliedCallback(chip::app::Command * commandObj, chip::ByteSpan updateToken, + uint32_t currentVersion); /** - * @brief OTA Software Update Server Cluster QueryImage Command callback + * @brief OTA Software Update Provider Cluster QueryImage Command callback */ -bool emberAfOtaSoftwareUpdateServerClusterQueryImageCallback( +bool emberAfOtaSoftwareUpdateProviderClusterQueryImageCallback( chip::app::Command * commandObj, uint16_t vendorId, uint16_t productId, uint16_t imageType, uint16_t hardwareVersion, uint32_t currentVersion, /* TYPE WARNING: array array defaults to */ uint8_t * protocolsSupported, uint8_t * location, - uint8_t clientCanConsent, chip::ByteSpan metadataForServer); + uint8_t requestorCanConsent, chip::ByteSpan metadataForProvider); /** * @brief On/off Cluster Off Command callback diff --git a/examples/all-clusters-app/all-clusters-common/gen/endpoint_config.h b/examples/all-clusters-app/all-clusters-common/gen/endpoint_config.h index 10f4895c467a0b..f386c3a2d6459c 100644 --- a/examples/all-clusters-app/all-clusters-common/gen/endpoint_config.h +++ b/examples/all-clusters-app/all-clusters-common/gen/endpoint_config.h @@ -1791,7 +1791,7 @@ { 0x0011, ZAP_TYPE(BOOLEAN), 1, ZAP_ATTRIBUTE_MASK(SINGLETON), ZAP_SIMPLE_DEFAULT(1) }, /* Reachable */ \ { 0xFFFD, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(SINGLETON), ZAP_SIMPLE_DEFAULT(3) }, /* cluster revision */ \ \ - /* Endpoint: 0, Cluster: OTA Software Update Server (server) */ \ + /* Endpoint: 0, Cluster: OTA Software Update Provider (server) */ \ { 0xFFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(0x0001) }, /* cluster revision */ \ \ /* Endpoint: 0, Cluster: General Commissioning (server) */ \ @@ -2265,7 +2265,7 @@ chipFuncArrayBasicServer }, /* Endpoint: 0, Cluster: Basic (server) */ \ { \ 0x0029, ZAP_ATTRIBUTE_INDEX(24), 1, 2, ZAP_CLUSTER_MASK(SERVER), NULL \ - }, /* Endpoint: 0, Cluster: OTA Software Update Server (server) */ \ + }, /* Endpoint: 0, Cluster: OTA Software Update Provider (server) */ \ { \ 0x0030, ZAP_ATTRIBUTE_INDEX(25), 3, 18, ZAP_CLUSTER_MASK(SERVER), NULL \ }, /* Endpoint: 0, Cluster: General Commissioning (server) */ \ @@ -2520,7 +2520,7 @@ { 0x0028, 0x02, ZAP_COMMAND_MASK(INCOMING_CLIENT) }, /* Leave */ \ { 0x0028, 0x00, ZAP_COMMAND_MASK(INCOMING_SERVER) }, /* MfgSpecificPing */ \ \ - /* Endpoint: 0, Cluster: OTA Software Update Server (server) */ \ + /* Endpoint: 0, Cluster: OTA Software Update Provider (server) */ \ { 0x0029, 0x00, ZAP_COMMAND_MASK(INCOMING_SERVER) }, /* QueryImage */ \ { 0x0029, 0x01, ZAP_COMMAND_MASK(INCOMING_SERVER) }, /* ApplyUpdateRequest */ \ { 0x0029, 0x02, ZAP_COMMAND_MASK(INCOMING_SERVER) }, /* NotifyUpdateApplied */ \ @@ -2818,7 +2818,7 @@ #define EMBER_AF_GENERATED_REPORTING_CONFIG_DEFAULTS \ { \ \ - /* Endpoint: 0, Cluster: OTA Software Update Server (server) */ \ + /* Endpoint: 0, Cluster: OTA Software Update Provider (server) */ \ { \ ZAP_REPORT_DIRECTION(REPORTED), 0x0000, 0x0029, 0xFFFD, ZAP_CLUSTER_MASK(SERVER), 0x0000, { { 0, 65344, 0 } } \ }, /* cluster revision */ \ diff --git a/examples/all-clusters-app/all-clusters-common/gen/gen_config.h b/examples/all-clusters-app/all-clusters-common/gen/gen_config.h index 08eb2c7cf805b7..4da835d338f5e4 100644 --- a/examples/all-clusters-app/all-clusters-common/gen/gen_config.h +++ b/examples/all-clusters-app/all-clusters-common/gen/gen_config.h @@ -58,7 +58,7 @@ #define EMBER_AF_MEDIA_INPUT_CLUSTER_SERVER_ENDPOINT_COUNT (1) #define EMBER_AF_MEDIA_PLAYBACK_CLUSTER_SERVER_ENDPOINT_COUNT (1) #define EMBER_AF_NETWORK_COMMISSIONING_CLUSTER_SERVER_ENDPOINT_COUNT (1) -#define EMBER_AF_OTA_SERVER_CLUSTER_SERVER_ENDPOINT_COUNT (1) +#define EMBER_AF_OTA_PROVIDER_CLUSTER_SERVER_ENDPOINT_COUNT (1) #define EMBER_AF_OCCUPANCY_SENSING_CLUSTER_SERVER_ENDPOINT_COUNT (1) #define EMBER_AF_ON_OFF_CLUSTER_SERVER_ENDPOINT_COUNT (2) #define EMBER_AF_OPERATIONAL_CREDENTIALS_CLUSTER_SERVER_ENDPOINT_COUNT (1) @@ -235,10 +235,10 @@ #define EMBER_AF_PLUGIN_NETWORK_COMMISSIONING_SERVER #define EMBER_AF_PLUGIN_NETWORK_COMMISSIONING -// Use this macro to check if the server side of the OTA Software Update Server cluster is included -#define ZCL_USING_OTA_SERVER_CLUSTER_SERVER -#define EMBER_AF_PLUGIN_OTA_SOFTWARE_UPDATE_SERVER_SERVER -#define EMBER_AF_PLUGIN_OTA_SOFTWARE_UPDATE_SERVER +// Use this macro to check if the server side of the OTA Software Update Provider cluster is included +#define ZCL_USING_OTA_PROVIDER_CLUSTER_SERVER +#define EMBER_AF_PLUGIN_OTA_SOFTWARE_UPDATE_PROVIDER_SERVER +#define EMBER_AF_PLUGIN_OTA_SOFTWARE_UPDATE_PROVIDER // Use this macro to check if the server side of the Occupancy Sensing cluster is included #define ZCL_USING_OCCUPANCY_SENSING_CLUSTER_SERVER diff --git a/examples/all-clusters-app/esp32/main/CMakeLists.txt b/examples/all-clusters-app/esp32/main/CMakeLists.txt index 3f9102a91a043c..c50bf6e7b06cef 100644 --- a/examples/all-clusters-app/esp32/main/CMakeLists.txt +++ b/examples/all-clusters-app/esp32/main/CMakeLists.txt @@ -49,7 +49,7 @@ set(SRC_DIRS_LIST "${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/clusters/low-power-server" "${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/clusters/keypad-input-server" "${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/clusters/media-playback-server" - "${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/clusters/ota-server" + "${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/clusters/ota-provider" "${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/clusters/binary-input-server" "${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/clusters/target-navigator-server" "${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/clusters/temperature-measurement-server" diff --git a/examples/chip-tool/commands/clusters/Commands.h b/examples/chip-tool/commands/clusters/Commands.h index 7b8479b111acd6..67fc67c96f3ed6 100644 --- a/examples/chip-tool/commands/clusters/Commands.h +++ b/examples/chip-tool/commands/clusters/Commands.h @@ -570,19 +570,19 @@ static void OnNetworkCommissioningClusterUpdateWiFiNetworkResponse(void * contex command->SetCommandExitStatus(CHIP_NO_ERROR); } -static void OnOtaSoftwareUpdateServerClusterApplyUpdateRequestResponse(void * context, uint8_t action, uint32_t delayedActionTime) +static void OnOtaSoftwareUpdateProviderClusterApplyUpdateRequestResponse(void * context, uint8_t action, uint32_t delayedActionTime) { - ChipLogProgress(chipTool, "OtaSoftwareUpdateServerClusterApplyUpdateRequestResponse"); + ChipLogProgress(chipTool, "OtaSoftwareUpdateProviderClusterApplyUpdateRequestResponse"); ModelCommand * command = reinterpret_cast(context); command->SetCommandExitStatus(CHIP_NO_ERROR); } -static void OnOtaSoftwareUpdateServerClusterQueryImageResponse(void * context, uint32_t delayedActionTime, uint8_t * imageURI, - uint32_t softwareVersion, chip::ByteSpan updateToken, - uint8_t userConsentNeeded, chip::ByteSpan metadataForClient) +static void OnOtaSoftwareUpdateProviderClusterQueryImageResponse(void * context, uint32_t delayedActionTime, uint8_t * imageURI, + uint32_t softwareVersion, chip::ByteSpan updateToken, + uint8_t userConsentNeeded, chip::ByteSpan metadataForRequestor) { - ChipLogProgress(chipTool, "OtaSoftwareUpdateServerClusterQueryImageResponse"); + ChipLogProgress(chipTool, "OtaSoftwareUpdateProviderClusterQueryImageResponse"); ModelCommand * command = reinterpret_cast(context); command->SetCommandExitStatus(CHIP_NO_ERROR); @@ -1116,7 +1116,7 @@ static void OnThreadNetworkDiagnosticsActiveNetworkFaultsListListAttributeRespon | MediaInput | 0x0507 | | MediaPlayback | 0x0506 | | NetworkCommissioning | 0x0031 | -| OtaSoftwareUpdateServer | 0x0029 | +| OtaSoftwareUpdateProvider | 0x0029 | | OnOff | 0x0006 | | OperationalCredentials | 0x003E | | PressureMeasurement | 0x0403 | @@ -1162,7 +1162,7 @@ constexpr chip::ClusterId kLowPowerClusterId = 0x0508; constexpr chip::ClusterId kMediaInputClusterId = 0x0507; constexpr chip::ClusterId kMediaPlaybackClusterId = 0x0506; constexpr chip::ClusterId kNetworkCommissioningClusterId = 0x0031; -constexpr chip::ClusterId kOtaSoftwareUpdateServerClusterId = 0x0029; +constexpr chip::ClusterId kOtaSoftwareUpdateProviderClusterId = 0x0029; constexpr chip::ClusterId kOnOffClusterId = 0x0006; constexpr chip::ClusterId kOperationalCredentialsClusterId = 0x003E; constexpr chip::ClusterId kPressureMeasurementClusterId = 0x0403; @@ -12191,7 +12191,7 @@ class ReadNetworkCommissioningClusterRevision : public ModelCommand }; /*----------------------------------------------------------------------------*\ -| Cluster OtaSoftwareUpdateServer | 0x0029 | +| Cluster OtaSoftwareUpdateProvider | 0x0029 | |------------------------------------------------------------------------------| | Commands: | | | * ApplyUpdateRequest | 0x01 | @@ -12205,16 +12205,16 @@ class ReadNetworkCommissioningClusterRevision : public ModelCommand /* * Command ApplyUpdateRequest */ -class OtaSoftwareUpdateServerApplyUpdateRequest : public ModelCommand +class OtaSoftwareUpdateProviderApplyUpdateRequest : public ModelCommand { public: - OtaSoftwareUpdateServerApplyUpdateRequest() : ModelCommand("apply-update-request") + OtaSoftwareUpdateProviderApplyUpdateRequest() : ModelCommand("apply-update-request") { AddArgument("updateToken", &mUpdateToken); AddArgument("newVersion", 0, UINT32_MAX, &mNewVersion); ModelCommand::AddArguments(); } - ~OtaSoftwareUpdateServerApplyUpdateRequest() + ~OtaSoftwareUpdateProviderApplyUpdateRequest() { delete onSuccessCallback; delete onFailureCallback; @@ -12224,15 +12224,15 @@ class OtaSoftwareUpdateServerApplyUpdateRequest : public ModelCommand { ChipLogProgress(chipTool, "Sending cluster (0x0029) command (0x01) on endpoint %" PRIu16, endpointId); - chip::Controller::OtaSoftwareUpdateServerCluster cluster; + chip::Controller::OtaSoftwareUpdateProviderCluster cluster; cluster.Associate(device, endpointId); return cluster.ApplyUpdateRequest(onSuccessCallback->Cancel(), onFailureCallback->Cancel(), mUpdateToken, mNewVersion); } private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback( - OnOtaSoftwareUpdateServerClusterApplyUpdateRequestResponse, this); + chip::Callback::Callback * onSuccessCallback = + new chip::Callback::Callback( + OnOtaSoftwareUpdateProviderClusterApplyUpdateRequestResponse, this); chip::Callback::Callback * onFailureCallback = new chip::Callback::Callback(OnDefaultFailureResponse, this); chip::ByteSpan mUpdateToken; @@ -12242,16 +12242,16 @@ class OtaSoftwareUpdateServerApplyUpdateRequest : public ModelCommand /* * Command NotifyUpdateApplied */ -class OtaSoftwareUpdateServerNotifyUpdateApplied : public ModelCommand +class OtaSoftwareUpdateProviderNotifyUpdateApplied : public ModelCommand { public: - OtaSoftwareUpdateServerNotifyUpdateApplied() : ModelCommand("notify-update-applied") + OtaSoftwareUpdateProviderNotifyUpdateApplied() : ModelCommand("notify-update-applied") { AddArgument("updateToken", &mUpdateToken); AddArgument("currentVersion", 0, UINT32_MAX, &mCurrentVersion); ModelCommand::AddArguments(); } - ~OtaSoftwareUpdateServerNotifyUpdateApplied() + ~OtaSoftwareUpdateProviderNotifyUpdateApplied() { delete onSuccessCallback; delete onFailureCallback; @@ -12261,7 +12261,7 @@ class OtaSoftwareUpdateServerNotifyUpdateApplied : public ModelCommand { ChipLogProgress(chipTool, "Sending cluster (0x0029) command (0x02) on endpoint %" PRIu16, endpointId); - chip::Controller::OtaSoftwareUpdateServerCluster cluster; + chip::Controller::OtaSoftwareUpdateProviderCluster cluster; cluster.Associate(device, endpointId); return cluster.NotifyUpdateApplied(onSuccessCallback->Cancel(), onFailureCallback->Cancel(), mUpdateToken, mCurrentVersion); } @@ -12278,10 +12278,10 @@ class OtaSoftwareUpdateServerNotifyUpdateApplied : public ModelCommand /* * Command QueryImage */ -class OtaSoftwareUpdateServerQueryImage : public ModelCommand +class OtaSoftwareUpdateProviderQueryImage : public ModelCommand { public: - OtaSoftwareUpdateServerQueryImage() : ModelCommand("query-image") + OtaSoftwareUpdateProviderQueryImage() : ModelCommand("query-image") { AddArgument("vendorId", 0, UINT16_MAX, &mVendorId); AddArgument("productId", 0, UINT16_MAX, &mProductId); @@ -12290,11 +12290,11 @@ class OtaSoftwareUpdateServerQueryImage : public ModelCommand AddArgument("currentVersion", 0, UINT32_MAX, &mCurrentVersion); AddArgument("protocolsSupported", 0, UINT8_MAX, &mProtocolsSupported); AddArgument("location", &mLocation); - AddArgument("clientCanConsent", 0, UINT8_MAX, &mClientCanConsent); - AddArgument("metadataForServer", &mMetadataForServer); + AddArgument("requestorCanConsent", 0, UINT8_MAX, &mRequestorCanConsent); + AddArgument("metadataForProvider", &mMetadataForProvider); ModelCommand::AddArguments(); } - ~OtaSoftwareUpdateServerQueryImage() + ~OtaSoftwareUpdateProviderQueryImage() { delete onSuccessCallback; delete onFailureCallback; @@ -12304,18 +12304,18 @@ class OtaSoftwareUpdateServerQueryImage : public ModelCommand { ChipLogProgress(chipTool, "Sending cluster (0x0029) command (0x00) on endpoint %" PRIu16, endpointId); - chip::Controller::OtaSoftwareUpdateServerCluster cluster; + chip::Controller::OtaSoftwareUpdateProviderCluster cluster; cluster.Associate(device, endpointId); return cluster.QueryImage(onSuccessCallback->Cancel(), onFailureCallback->Cancel(), mVendorId, mProductId, mImageType, mHardwareVersion, mCurrentVersion, mProtocolsSupported, - chip::ByteSpan(chip::Uint8::from_char(mLocation), strlen(mLocation)), mClientCanConsent, - mMetadataForServer); + chip::ByteSpan(chip::Uint8::from_char(mLocation), strlen(mLocation)), mRequestorCanConsent, + mMetadataForProvider); } private: - chip::Callback::Callback * onSuccessCallback = - new chip::Callback::Callback( - OnOtaSoftwareUpdateServerClusterQueryImageResponse, this); + chip::Callback::Callback * onSuccessCallback = + new chip::Callback::Callback( + OnOtaSoftwareUpdateProviderClusterQueryImageResponse, this); chip::Callback::Callback * onFailureCallback = new chip::Callback::Callback(OnDefaultFailureResponse, this); uint16_t mVendorId; @@ -12325,19 +12325,19 @@ class OtaSoftwareUpdateServerQueryImage : public ModelCommand uint32_t mCurrentVersion; uint8_t mProtocolsSupported; char * mLocation; - uint8_t mClientCanConsent; - chip::ByteSpan mMetadataForServer; + uint8_t mRequestorCanConsent; + chip::ByteSpan mMetadataForProvider; }; /* * Discover Attributes */ -class DiscoverOtaSoftwareUpdateServerAttributes : public ModelCommand +class DiscoverOtaSoftwareUpdateProviderAttributes : public ModelCommand { public: - DiscoverOtaSoftwareUpdateServerAttributes() : ModelCommand("discover") { ModelCommand::AddArguments(); } + DiscoverOtaSoftwareUpdateProviderAttributes() : ModelCommand("discover") { ModelCommand::AddArguments(); } - ~DiscoverOtaSoftwareUpdateServerAttributes() + ~DiscoverOtaSoftwareUpdateProviderAttributes() { delete onSuccessCallback; delete onFailureCallback; @@ -12347,7 +12347,7 @@ class DiscoverOtaSoftwareUpdateServerAttributes : public ModelCommand { ChipLogProgress(chipTool, "Sending cluster (0x0000) command (0x0C) on endpoint %" PRIu16, endpointId); - chip::Controller::OtaSoftwareUpdateServerCluster cluster; + chip::Controller::OtaSoftwareUpdateProviderCluster cluster; cluster.Associate(device, endpointId); return cluster.DiscoverAttributes(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); } @@ -12362,16 +12362,16 @@ class DiscoverOtaSoftwareUpdateServerAttributes : public ModelCommand /* * Attribute ClusterRevision */ -class ReadOtaSoftwareUpdateServerClusterRevision : public ModelCommand +class ReadOtaSoftwareUpdateProviderClusterRevision : public ModelCommand { public: - ReadOtaSoftwareUpdateServerClusterRevision() : ModelCommand("read") + ReadOtaSoftwareUpdateProviderClusterRevision() : ModelCommand("read") { AddArgument("attr-name", "cluster-revision"); ModelCommand::AddArguments(); } - ~ReadOtaSoftwareUpdateServerClusterRevision() + ~ReadOtaSoftwareUpdateProviderClusterRevision() { delete onSuccessCallback; delete onFailureCallback; @@ -12381,7 +12381,7 @@ class ReadOtaSoftwareUpdateServerClusterRevision : public ModelCommand { ChipLogProgress(chipTool, "Sending cluster (0x0029) command (0x00) on endpoint %" PRIu16, endpointId); - chip::Controller::OtaSoftwareUpdateServerCluster cluster; + chip::Controller::OtaSoftwareUpdateProviderCluster cluster; cluster.Associate(device, endpointId); return cluster.ReadAttributeClusterRevision(onSuccessCallback->Cancel(), onFailureCallback->Cancel()); } @@ -21464,14 +21464,14 @@ void registerClusterNetworkCommissioning(Commands & commands) commands.Register(clusterName, clusterCommands); } -void registerClusterOtaSoftwareUpdateServer(Commands & commands) +void registerClusterOtaSoftwareUpdateProvider(Commands & commands) { - const char * clusterName = "OtaSoftwareUpdateServer"; + const char * clusterName = "OtaSoftwareUpdateProvider"; commands_list clusterCommands = { - make_unique(), make_unique(), - make_unique(), make_unique(), - make_unique(), + make_unique(), make_unique(), + make_unique(), make_unique(), + make_unique(), }; commands.Register(clusterName, clusterCommands); @@ -21865,7 +21865,7 @@ void registerClusters(Commands & commands) registerClusterMediaInput(commands); registerClusterMediaPlayback(commands); registerClusterNetworkCommissioning(commands); - registerClusterOtaSoftwareUpdateServer(commands); + registerClusterOtaSoftwareUpdateProvider(commands); registerClusterOnOff(commands); registerClusterOperationalCredentials(commands); registerClusterPressureMeasurement(commands); diff --git a/examples/tv-app/tv-common/gen/IMClusterCommandHandler.cpp b/examples/tv-app/tv-common/gen/IMClusterCommandHandler.cpp index 42dcf23683fdd1..d917914c9d8e5d 100644 --- a/examples/tv-app/tv-common/gen/IMClusterCommandHandler.cpp +++ b/examples/tv-app/tv-common/gen/IMClusterCommandHandler.cpp @@ -2547,7 +2547,7 @@ void DispatchServerCommand(app::Command * apCommandObj, CommandId aCommandId, En } // namespace NetworkCommissioning -namespace OtaSoftwareUpdateServer { +namespace OtaSoftwareUpdateProvider { void DispatchServerCommand(app::Command * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { @@ -2626,7 +2626,8 @@ void DispatchServerCommand(app::Command * apCommandObj, CommandId aCommandId, En if (CHIP_NO_ERROR == TLVError && CHIP_NO_ERROR == TLVUnpackError && 2 == validArgumentCount) { // TODO(#5098) We should pass the Command Object and EndpointId to the cluster callbacks. - wasHandled = emberAfOtaSoftwareUpdateServerClusterApplyUpdateRequestCallback(apCommandObj, updateToken, newVersion); + wasHandled = + emberAfOtaSoftwareUpdateProviderClusterApplyUpdateRequestCallback(apCommandObj, updateToken, newVersion); } break; } @@ -2693,7 +2694,7 @@ void DispatchServerCommand(app::Command * apCommandObj, CommandId aCommandId, En { // TODO(#5098) We should pass the Command Object and EndpointId to the cluster callbacks. wasHandled = - emberAfOtaSoftwareUpdateServerClusterNotifyUpdateAppliedCallback(apCommandObj, updateToken, currentVersion); + emberAfOtaSoftwareUpdateProviderClusterNotifyUpdateAppliedCallback(apCommandObj, updateToken, currentVersion); } break; } @@ -2706,8 +2707,8 @@ void DispatchServerCommand(app::Command * apCommandObj, CommandId aCommandId, En uint32_t currentVersion; /* TYPE WARNING: array array defaults to */ uint8_t * protocolsSupported; const uint8_t * location; - uint8_t clientCanConsent; - chip::ByteSpan metadataForServer; + uint8_t requestorCanConsent; + chip::ByteSpan metadataForProvider; bool argExists[9]; memset(argExists, 0, sizeof argExists); @@ -2761,12 +2762,12 @@ void DispatchServerCommand(app::Command * apCommandObj, CommandId aCommandId, En TLVUnpackError = aDataTlv.GetDataPtr(location); break; case 7: - TLVUnpackError = aDataTlv.Get(clientCanConsent); + TLVUnpackError = aDataTlv.Get(requestorCanConsent); break; case 8: { const uint8_t * data = nullptr; TLVUnpackError = aDataTlv.GetDataPtr(data); - metadataForServer = chip::ByteSpan(data, aDataTlv.GetLength()); + metadataForProvider = chip::ByteSpan(data, aDataTlv.GetLength()); } break; default: @@ -2789,9 +2790,9 @@ void DispatchServerCommand(app::Command * apCommandObj, CommandId aCommandId, En if (CHIP_NO_ERROR == TLVError && CHIP_NO_ERROR == TLVUnpackError && 9 == validArgumentCount) { // TODO(#5098) We should pass the Command Object and EndpointId to the cluster callbacks. - wasHandled = emberAfOtaSoftwareUpdateServerClusterQueryImageCallback( + wasHandled = emberAfOtaSoftwareUpdateProviderClusterQueryImageCallback( apCommandObj, vendorId, productId, imageType, hardwareVersion, currentVersion, protocolsSupported, - const_cast(location), clientCanConsent, metadataForServer); + const_cast(location), requestorCanConsent, metadataForProvider); } break; } @@ -2799,12 +2800,12 @@ void DispatchServerCommand(app::Command * apCommandObj, CommandId aCommandId, En // Unrecognized command ID, error status will apply. chip::app::CommandPathParams returnStatusParam = { aEndpointId, 0, // GroupId - ZCL_OTA_SERVER_CLUSTER_ID, aCommandId, + ZCL_OTA_PROVIDER_CLUSTER_ID, aCommandId, (chip::app::CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kNotFound, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::UnsupportedCommand); - ChipLogError(Zcl, "Unknown command %" PRIx16 " for cluster %" PRIx16, aCommandId, ZCL_OTA_SERVER_CLUSTER_ID); + ChipLogError(Zcl, "Unknown command %" PRIx16 " for cluster %" PRIx16, aCommandId, ZCL_OTA_PROVIDER_CLUSTER_ID); return; } } @@ -2814,7 +2815,7 @@ void DispatchServerCommand(app::Command * apCommandObj, CommandId aCommandId, En { chip::app::CommandPathParams returnStatusParam = { aEndpointId, 0, // GroupId - ZCL_OTA_SERVER_CLUSTER_ID, aCommandId, + ZCL_OTA_PROVIDER_CLUSTER_ID, aCommandId, (chip::app::CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); @@ -2825,7 +2826,7 @@ void DispatchServerCommand(app::Command * apCommandObj, CommandId aCommandId, En } } -} // namespace OtaSoftwareUpdateServer +} // namespace OtaSoftwareUpdateProvider namespace OnOff { @@ -3444,8 +3445,8 @@ void DispatchSingleClusterCommand(chip::ClusterId aClusterId, chip::CommandId aC case ZCL_NETWORK_COMMISSIONING_CLUSTER_ID: clusters::NetworkCommissioning::DispatchServerCommand(apCommandObj, aCommandId, aEndPointId, aReader); break; - case ZCL_OTA_SERVER_CLUSTER_ID: - clusters::OtaSoftwareUpdateServer::DispatchServerCommand(apCommandObj, aCommandId, aEndPointId, aReader); + case ZCL_OTA_PROVIDER_CLUSTER_ID: + clusters::OtaSoftwareUpdateProvider::DispatchServerCommand(apCommandObj, aCommandId, aEndPointId, aReader); break; case ZCL_ON_OFF_CLUSTER_ID: clusters::OnOff::DispatchServerCommand(apCommandObj, aCommandId, aEndPointId, aReader); diff --git a/examples/tv-app/tv-common/gen/callback-stub.cpp b/examples/tv-app/tv-common/gen/callback-stub.cpp index aa7450e935f217..b36cba93026556 100644 --- a/examples/tv-app/tv-common/gen/callback-stub.cpp +++ b/examples/tv-app/tv-common/gen/callback-stub.cpp @@ -86,8 +86,8 @@ void emberAfClusterInitCallback(EndpointId endpoint, ClusterId clusterId) case ZCL_NETWORK_COMMISSIONING_CLUSTER_ID: emberAfNetworkCommissioningClusterInitCallback(endpoint); break; - case ZCL_OTA_SERVER_CLUSTER_ID: - emberAfOtaSoftwareUpdateServerClusterInitCallback(endpoint); + case ZCL_OTA_PROVIDER_CLUSTER_ID: + emberAfOtaSoftwareUpdateProviderClusterInitCallback(endpoint); break; case ZCL_ON_OFF_CLUSTER_ID: emberAfOnOffClusterInitCallback(endpoint); @@ -217,7 +217,7 @@ void __attribute__((weak)) emberAfNetworkCommissioningClusterInitCallback(Endpoi // To prevent warning (void) endpoint; } -void __attribute__((weak)) emberAfOtaSoftwareUpdateServerClusterInitCallback(EndpointId endpoint) +void __attribute__((weak)) emberAfOtaSoftwareUpdateProviderClusterInitCallback(EndpointId endpoint) { // To prevent warning (void) endpoint; diff --git a/examples/tv-app/tv-common/gen/callback.h b/examples/tv-app/tv-common/gen/callback.h index e8772aefd46826..c1bbdeb74b694f 100644 --- a/examples/tv-app/tv-common/gen/callback.h +++ b/examples/tv-app/tv-common/gen/callback.h @@ -192,13 +192,13 @@ void emberAfMediaPlaybackClusterInitCallback(chip::EndpointId endpoint); */ void emberAfNetworkCommissioningClusterInitCallback(chip::EndpointId endpoint); -/** @brief OTA Software Update Server Cluster Init +/** @brief OTA Software Update Provider Cluster Init * * Cluster Init * * @param endpoint Endpoint that is being initialized */ -void emberAfOtaSoftwareUpdateServerClusterInitCallback(chip::EndpointId endpoint); +void emberAfOtaSoftwareUpdateProviderClusterInitCallback(chip::EndpointId endpoint); /** @brief On/off Cluster Init * @@ -1605,27 +1605,28 @@ EmberAfStatus emberAfNetworkCommissioningClusterServerPreAttributeChangedCallbac void emberAfNetworkCommissioningClusterServerTickCallback(chip::EndpointId endpoint); // -// OTA Software Update Server Cluster server +// OTA Software Update Provider Cluster server // -/** @brief OTA Software Update Server Cluster Server Init +/** @brief OTA Software Update Provider Cluster Server Init * * Server Init * * @param endpoint Endpoint that is being initialized */ -void emberAfOtaSoftwareUpdateServerClusterServerInitCallback(chip::EndpointId endpoint); +void emberAfOtaSoftwareUpdateProviderClusterServerInitCallback(chip::EndpointId endpoint); -/** @brief OTA Software Update Server Cluster Server Attribute Changed +/** @brief OTA Software Update Provider Cluster Server Attribute Changed * * Server Attribute Changed * * @param endpoint Endpoint that is being initialized * @param attributeId Attribute that changed */ -void emberAfOtaSoftwareUpdateServerClusterServerAttributeChangedCallback(chip::EndpointId endpoint, chip::AttributeId attributeId); +void emberAfOtaSoftwareUpdateProviderClusterServerAttributeChangedCallback(chip::EndpointId endpoint, + chip::AttributeId attributeId); -/** @brief OTA Software Update Server Cluster Server Manufacturer Specific Attribute Changed +/** @brief OTA Software Update Provider Cluster Server Manufacturer Specific Attribute Changed * * Server Manufacturer Specific Attribute Changed * @@ -1633,11 +1634,11 @@ void emberAfOtaSoftwareUpdateServerClusterServerAttributeChangedCallback(chip::E * @param attributeId Attribute that changed * @param manufacturerCode Manufacturer Code of the attribute that changed */ -void emberAfOtaSoftwareUpdateServerClusterServerManufacturerSpecificAttributeChangedCallback(chip::EndpointId endpoint, - chip::AttributeId attributeId, - uint16_t manufacturerCode); +void emberAfOtaSoftwareUpdateProviderClusterServerManufacturerSpecificAttributeChangedCallback(chip::EndpointId endpoint, + chip::AttributeId attributeId, + uint16_t manufacturerCode); -/** @brief OTA Software Update Server Cluster Server Message Sent +/** @brief OTA Software Update Provider Cluster Server Message Sent * * Server Message Sent * @@ -1648,11 +1649,11 @@ void emberAfOtaSoftwareUpdateServerClusterServerManufacturerSpecificAttributeCha * @param message The message that was sent * @param status The status of the sent message */ -void emberAfOtaSoftwareUpdateServerClusterServerMessageSentCallback(const chip::MessageSendDestination & destination, - EmberApsFrame * apsFrame, uint16_t msgLen, uint8_t * message, - EmberStatus status); +void emberAfOtaSoftwareUpdateProviderClusterServerMessageSentCallback(const chip::MessageSendDestination & destination, + EmberApsFrame * apsFrame, uint16_t msgLen, uint8_t * message, + EmberStatus status); -/** @brief OTA Software Update Server Cluster Server Pre Attribute Changed +/** @brief OTA Software Update Provider Cluster Server Pre Attribute Changed * * server Pre Attribute Changed * @@ -1662,18 +1663,18 @@ void emberAfOtaSoftwareUpdateServerClusterServerMessageSentCallback(const chip:: * @param size Attribute size * @param value Attribute value */ -EmberAfStatus emberAfOtaSoftwareUpdateServerClusterServerPreAttributeChangedCallback(chip::EndpointId endpoint, - chip::AttributeId attributeId, - EmberAfAttributeType attributeType, - uint16_t size, uint8_t * value); +EmberAfStatus emberAfOtaSoftwareUpdateProviderClusterServerPreAttributeChangedCallback(chip::EndpointId endpoint, + chip::AttributeId attributeId, + EmberAfAttributeType attributeType, + uint16_t size, uint8_t * value); -/** @brief OTA Software Update Server Cluster Server Tick +/** @brief OTA Software Update Provider Cluster Server Tick * * server Tick * * @param endpoint Endpoint that is being served */ -void emberAfOtaSoftwareUpdateServerClusterServerTickCallback(chip::EndpointId endpoint); +void emberAfOtaSoftwareUpdateProviderClusterServerTickCallback(chip::EndpointId endpoint); // // On/off Cluster server @@ -2572,27 +2573,27 @@ bool emberAfNetworkCommissioningClusterUpdateWiFiNetworkCallback(chip::app::Comm uint32_t timeoutMs); /** - * @brief OTA Software Update Server Cluster ApplyUpdateRequest Command callback + * @brief OTA Software Update Provider Cluster ApplyUpdateRequest Command callback */ -bool emberAfOtaSoftwareUpdateServerClusterApplyUpdateRequestCallback(chip::app::Command * commandObj, chip::ByteSpan updateToken, - uint32_t newVersion); +bool emberAfOtaSoftwareUpdateProviderClusterApplyUpdateRequestCallback(chip::app::Command * commandObj, chip::ByteSpan updateToken, + uint32_t newVersion); /** - * @brief OTA Software Update Server Cluster NotifyUpdateApplied Command callback + * @brief OTA Software Update Provider Cluster NotifyUpdateApplied Command callback */ -bool emberAfOtaSoftwareUpdateServerClusterNotifyUpdateAppliedCallback(chip::app::Command * commandObj, chip::ByteSpan updateToken, - uint32_t currentVersion); +bool emberAfOtaSoftwareUpdateProviderClusterNotifyUpdateAppliedCallback(chip::app::Command * commandObj, chip::ByteSpan updateToken, + uint32_t currentVersion); /** - * @brief OTA Software Update Server Cluster QueryImage Command callback + * @brief OTA Software Update Provider Cluster QueryImage Command callback */ -bool emberAfOtaSoftwareUpdateServerClusterQueryImageCallback( +bool emberAfOtaSoftwareUpdateProviderClusterQueryImageCallback( chip::app::Command * commandObj, uint16_t vendorId, uint16_t productId, uint16_t imageType, uint16_t hardwareVersion, uint32_t currentVersion, /* TYPE WARNING: array array defaults to */ uint8_t * protocolsSupported, uint8_t * location, - uint8_t clientCanConsent, chip::ByteSpan metadataForServer); + uint8_t requestorCanConsent, chip::ByteSpan metadataForProvider); /** * @brief On/off Cluster Off Command callback diff --git a/examples/tv-app/tv-common/gen/endpoint_config.h b/examples/tv-app/tv-common/gen/endpoint_config.h index e3173c619d60d5..b485e3e990ce76 100644 --- a/examples/tv-app/tv-common/gen/endpoint_config.h +++ b/examples/tv-app/tv-common/gen/endpoint_config.h @@ -1430,7 +1430,7 @@ ZAP_SIMPLE_DEFAULT(0x00) }, /* LocalConfigDisabled */ \ { 0xFFFD, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(SINGLETON), ZAP_SIMPLE_DEFAULT(3) }, /* cluster revision */ \ \ - /* Endpoint: 0, Cluster: OTA Software Update Server (server) */ \ + /* Endpoint: 0, Cluster: OTA Software Update Provider (server) */ \ { 0xFFFD, ZAP_TYPE(INT16U), 2, 0, ZAP_SIMPLE_DEFAULT(0x0001) }, /* cluster revision */ \ \ /* Endpoint: 0, Cluster: General Commissioning (server) */ \ @@ -1682,7 +1682,7 @@ chipFuncArrayBasicServer }, /* Endpoint: 0, Cluster: Basic (server) */ \ { \ 0x0029, ZAP_ATTRIBUTE_INDEX(23), 1, 2, ZAP_CLUSTER_MASK(SERVER), NULL \ - }, /* Endpoint: 0, Cluster: OTA Software Update Server (server) */ \ + }, /* Endpoint: 0, Cluster: OTA Software Update Provider (server) */ \ { \ 0x0030, ZAP_ATTRIBUTE_INDEX(24), 3, 18, ZAP_CLUSTER_MASK(SERVER), NULL \ }, /* Endpoint: 0, Cluster: General Commissioning (server) */ \ @@ -1857,7 +1857,7 @@ { 0x0028, 0x02, ZAP_COMMAND_MASK(INCOMING_CLIENT) }, /* Leave */ \ { 0x0028, 0x00, ZAP_COMMAND_MASK(INCOMING_SERVER) | ZAP_COMMAND_MASK(OUTGOING_SERVER) }, /* MfgSpecificPing */ \ \ - /* Endpoint: 0, Cluster: OTA Software Update Server (server) */ \ + /* Endpoint: 0, Cluster: OTA Software Update Provider (server) */ \ { 0x0029, 0x00, ZAP_COMMAND_MASK(INCOMING_SERVER) }, /* QueryImage */ \ { 0x0029, 0x01, ZAP_COMMAND_MASK(INCOMING_SERVER) }, /* ApplyUpdateRequest */ \ { 0x0029, 0x02, ZAP_COMMAND_MASK(INCOMING_SERVER) }, /* NotifyUpdateApplied */ \ @@ -2057,7 +2057,7 @@ #define EMBER_AF_GENERATED_REPORTING_CONFIG_DEFAULTS \ { \ \ - /* Endpoint: 0, Cluster: OTA Software Update Server (server) */ \ + /* Endpoint: 0, Cluster: OTA Software Update Provider (server) */ \ { \ ZAP_REPORT_DIRECTION(REPORTED), 0x0000, 0x0029, 0xFFFD, ZAP_CLUSTER_MASK(SERVER), 0x0000, { { 0, 65344, 0 } } \ }, /* cluster revision */ \ diff --git a/examples/tv-app/tv-common/gen/gen_config.h b/examples/tv-app/tv-common/gen/gen_config.h index ae162b8a0e2e87..14990ffa3e5b86 100644 --- a/examples/tv-app/tv-common/gen/gen_config.h +++ b/examples/tv-app/tv-common/gen/gen_config.h @@ -48,7 +48,7 @@ #define EMBER_AF_MEDIA_INPUT_CLUSTER_SERVER_ENDPOINT_COUNT (1) #define EMBER_AF_MEDIA_PLAYBACK_CLUSTER_SERVER_ENDPOINT_COUNT (1) #define EMBER_AF_NETWORK_COMMISSIONING_CLUSTER_SERVER_ENDPOINT_COUNT (1) -#define EMBER_AF_OTA_SERVER_CLUSTER_SERVER_ENDPOINT_COUNT (1) +#define EMBER_AF_OTA_PROVIDER_CLUSTER_SERVER_ENDPOINT_COUNT (1) #define EMBER_AF_ON_OFF_CLUSTER_SERVER_ENDPOINT_COUNT (2) #define EMBER_AF_OPERATIONAL_CREDENTIALS_CLUSTER_SERVER_ENDPOINT_COUNT (1) #define EMBER_AF_RELATIVE_HUMIDITY_MEASUREMENT_CLUSTER_SERVER_ENDPOINT_COUNT (1) @@ -160,10 +160,10 @@ #define EMBER_AF_PLUGIN_NETWORK_COMMISSIONING_SERVER #define EMBER_AF_PLUGIN_NETWORK_COMMISSIONING -// Use this macro to check if the server side of the OTA Software Update Server cluster is included -#define ZCL_USING_OTA_SERVER_CLUSTER_SERVER -#define EMBER_AF_PLUGIN_OTA_SOFTWARE_UPDATE_SERVER_SERVER -#define EMBER_AF_PLUGIN_OTA_SOFTWARE_UPDATE_SERVER +// Use this macro to check if the server side of the OTA Software Update Provider cluster is included +#define ZCL_USING_OTA_PROVIDER_CLUSTER_SERVER +#define EMBER_AF_PLUGIN_OTA_SOFTWARE_UPDATE_PROVIDER_SERVER +#define EMBER_AF_PLUGIN_OTA_SOFTWARE_UPDATE_PROVIDER // Use this macro to check if the server side of the On/off cluster is included #define ZCL_USING_ON_OFF_CLUSTER_SERVER diff --git a/examples/tv-app/tv-common/tv-app.zap b/examples/tv-app/tv-common/tv-app.zap index af6bf598009ad7..e522289402a90c 100644 --- a/examples/tv-app/tv-common/tv-app.zap +++ b/examples/tv-app/tv-common/tv-app.zap @@ -1189,10 +1189,10 @@ ] }, { - "name": "OTA Software Update Server", + "name": "OTA Software Update Provider", "code": 41, "mfgCode": null, - "define": "OTA_SERVER_CLUSTER", + "define": "OTA_PROVIDER_CLUSTER", "side": "client", "enabled": 0, "commands": [ @@ -1240,10 +1240,10 @@ ] }, { - "name": "OTA Software Update Server", + "name": "OTA Software Update Provider", "code": 41, "mfgCode": null, - "define": "OTA_SERVER_CLUSTER", + "define": "OTA_PROVIDER_CLUSTER", "side": "server", "enabled": 1, "commands": [ diff --git a/src/app/clusters/ota-server/ota-server-delegate.h b/src/app/clusters/ota-provider/ota-provider-delegate.h similarity index 91% rename from src/app/clusters/ota-server/ota-server-delegate.h rename to src/app/clusters/ota-provider/ota-provider-delegate.h index 6da0dc2447ffff..0479018bd5e607 100644 --- a/src/app/clusters/ota-server/ota-server-delegate.h +++ b/src/app/clusters/ota-provider/ota-provider-delegate.h @@ -26,21 +26,21 @@ namespace app { namespace clusters { /** @brief - * Defines methods for implementing application-specific logic for the OTA Server Cluster. + * Defines methods for implementing application-specific logic for the OTA Provider Cluster. */ -class OTAServerDelegate +class OTAProviderDelegate { public: // TODO: protocolsSupported should be list of OTADownloadProtocol enums, not uint8_t* virtual EmberAfStatus HandleQueryImage(uint16_t vendorId, uint16_t productId, uint16_t imageType, uint16_t hardwareVersion, uint32_t currentVersion, uint8_t * protocolsSupported, const chip::ByteSpan & location, - bool clientCanConsent, const chip::ByteSpan & metadataForServer) = 0; + bool clientCanConsent, const chip::ByteSpan & metadataForProvider) = 0; virtual EmberAfStatus HandleApplyUpdateRequest(const chip::ByteSpan & updateToken, uint32_t newVersion) = 0; virtual EmberAfStatus HandleNotifyUpdateApplied(const chip::ByteSpan & updateToken, uint32_t currentVersion) = 0; - virtual ~OTAServerDelegate() = default; + virtual ~OTAProviderDelegate() = default; }; } // namespace clusters diff --git a/src/app/clusters/ota-server/ota-server.cpp b/src/app/clusters/ota-provider/ota-provider.cpp similarity index 64% rename from src/app/clusters/ota-server/ota-server.cpp rename to src/app/clusters/ota-provider/ota-provider.cpp index d6469c5adc91a5..b1eef460458137 100644 --- a/src/app/clusters/ota-server/ota-server.cpp +++ b/src/app/clusters/ota-provider/ota-provider.cpp @@ -28,21 +28,21 @@ #include -#include "ota-server-delegate.h" -#include "ota-server.h" +#include "ota-provider-delegate.h" +#include "ota-provider.h" -using chip::app::clusters::OTAServerDelegate; +using chip::app::clusters::OTAProviderDelegate; namespace { constexpr uint8_t kLocationParamLength = 2; // The expected length of the Location parameter in QueryImage -constexpr size_t kMaxMetadataLen = 512; // The maximum length of Metadata in any OTA Server command +constexpr size_t kMaxMetadataLen = 512; // The maximum length of Metadata in any OTA Provider command constexpr size_t kUpdateTokenParamLength = 32; // The expected length of the Update Token parameter used in multiple commands -OTAServerDelegate * gDelegateTable[EMBER_AF_OTA_SERVER_CLUSTER_SERVER_ENDPOINT_COUNT] = { nullptr }; +OTAProviderDelegate * gDelegateTable[EMBER_AF_OTA_PROVIDER_CLUSTER_SERVER_ENDPOINT_COUNT] = { nullptr }; -OTAServerDelegate * GetDelegate(chip::EndpointId endpoint) +OTAProviderDelegate * GetDelegate(chip::EndpointId endpoint) { - uint8_t ep = emberAfFindClusterServerEndpointIndex(endpoint, ZCL_OTA_SERVER_CLUSTER_ID); + uint8_t ep = emberAfFindClusterServerEndpointIndex(endpoint, ZCL_OTA_PROVIDER_CLUSTER_ID); return (ep == 0xFF ? NULL : gDelegateTable[ep]); } @@ -50,7 +50,7 @@ bool SendStatusIfDelegateNull(chip::EndpointId endpointId) { if (GetDelegate(endpointId) == nullptr) { - ChipLogError(Zcl, "No OTAServerDelegate set for ep:%" PRIu8, endpointId); + ChipLogError(Zcl, "No OTAProviderDelegate set for ep:%" PRIu8, endpointId); emberAfSendImmediateDefaultResponse(EMBER_ZCL_STATUS_UNSUP_COMMAND); return true; } @@ -59,7 +59,7 @@ bool SendStatusIfDelegateNull(chip::EndpointId endpointId) } // namespace /** - * @brief OTA Software Update Server Cluster ApplyUpdateRequest Command callback + * @brief OTA Software Update Provider Cluster ApplyUpdateRequest Command callback * * @note It is the application's reponsibility to send the ApplyUpdateRequestResponse command after this is handled. * @@ -67,14 +67,14 @@ bool SendStatusIfDelegateNull(chip::EndpointId endpointId) * @param newVersion The SoftwareVersion value of the new Software Image that the client is ready to apply. */ -bool emberAfOtaSoftwareUpdateServerClusterApplyUpdateRequestCallback(chip::app::Command * commandObj, chip::ByteSpan updateToken, - uint32_t newVersion) +bool emberAfOtaSoftwareUpdateProviderClusterApplyUpdateRequestCallback(chip::app::Command * commandObj, chip::ByteSpan updateToken, + uint32_t newVersion) { - EmberAfStatus status = EMBER_ZCL_STATUS_SUCCESS; - chip::EndpointId endpointId = emberAfCurrentEndpoint(); - OTAServerDelegate * delegate = GetDelegate(endpointId); + EmberAfStatus status = EMBER_ZCL_STATUS_SUCCESS; + chip::EndpointId endpointId = emberAfCurrentEndpoint(); + OTAProviderDelegate * delegate = GetDelegate(endpointId); - ChipLogDetail(Zcl, "OTA Server received ApplyUpdateRequest"); + ChipLogDetail(Zcl, "OTA Provider received ApplyUpdateRequest"); if (SendStatusIfDelegateNull(endpointId)) { @@ -97,22 +97,22 @@ bool emberAfOtaSoftwareUpdateServerClusterApplyUpdateRequestCallback(chip::app:: } /** - * @brief OTA Software Update Server Cluster NotifyUpdateApplied Command callback + * @brief OTA Software Update Provider Cluster NotifyUpdateApplied Command callback * * * @param updateToken Identifier for the Software Image that was applied. Should be 32 octets long. * @param currentVersion The current SoftwareVersion value. Should match the SoftwarVersion attribute in the - * OTA Client's Basic Information Cluster. + * OTA Requestor's Basic Information Cluster. */ -bool emberAfOtaSoftwareUpdateServerClusterNotifyUpdateAppliedCallback(chip::app::Command * commandObj, chip::ByteSpan updateToken, - uint32_t currentVersion) +bool emberAfOtaSoftwareUpdateProviderClusterNotifyUpdateAppliedCallback(chip::app::Command * commandObj, chip::ByteSpan updateToken, + uint32_t currentVersion) { - EmberAfStatus status = EMBER_ZCL_STATUS_SUCCESS; - chip::EndpointId endpointId = emberAfCurrentEndpoint(); - OTAServerDelegate * delegate = GetDelegate(endpointId); + EmberAfStatus status = EMBER_ZCL_STATUS_SUCCESS; + chip::EndpointId endpointId = emberAfCurrentEndpoint(); + OTAProviderDelegate * delegate = GetDelegate(endpointId); - ChipLogDetail(Zcl, "OTA Server received NotifyUpdateUpplied"); + ChipLogDetail(Zcl, "OTA Provider received NotifyUpdateUpplied"); if (SendStatusIfDelegateNull(endpointId)) { @@ -135,38 +135,38 @@ bool emberAfOtaSoftwareUpdateServerClusterNotifyUpdateAppliedCallback(chip::app: } /** - * @brief OTA Software Update Server Cluster QueryImage Command callback + * @brief OTA Software Update Provider Cluster QueryImage Command callback * - * @param vendorId The Vendor ID applying to the OTA Client’s Node. Should match the value in the Basic Information Cluster. - * @param productId The Product ID applying to the OTA Client’s Node. Should match the value in the Basic Information Cluster. - * @param imageType A Vendor-specific numerical value that may help an OTA Server select the correct payload. - * @param hardwareVersion The OTA Client’s hardware version. Should match the HardwareVersion attribute of the Client's Basic + * @param vendorId The Vendor ID applying to the OTA Requestor’s Node. Should match the value in the Basic Information Cluster. + * @param productId The Product ID applying to the OTA Requestor’s Node. Should match the value in the Basic Information Cluster. + * @param imageType A Vendor-specific numerical value that may help an OTA Provider select the correct payload. + * @param hardwareVersion The OTA Requestor’s hardware version. Should match the HardwareVersion attribute of the Client's Basic * Information Cluster. - * @param currentVersion The current version running on the OTA Client. Should match the SoftwareVersion attribute of the Client's - * Basic Information Cluster. - * @param protocolsSupported A list of OTADownloadProtocol enum values indicating download protocols supported by the OTA Client + * @param currentVersion The current version running on the OTA Requestor. Should match the SoftwareVersion attribute of the + * Client's Basic Information Cluster. + * @param protocolsSupported A list of OTADownloadProtocol enum values indicating download protocols supported by the OTA Requestor * (max length 8 entries). * @param location Optional, 2 chars. If present, it should match the Location value in the Client's Basic Information Cluster. - * @param clientCanConsent Optional. May be set by an OTA Client which is capable of obtaining user consent for OTA application. - * @param metadataForServer Optional, max 512 octets. A TLV-encoded Vendor-specific payload. + * @param clientCanConsent Optional. May be set by an OTA Requestor which is capable of obtaining user consent for OTA application. + * @param metadataForProvider Optional, max 512 octets. A TLV-encoded Vendor-specific payload. */ -bool emberAfOtaSoftwareUpdateServerClusterQueryImageCallback( +bool emberAfOtaSoftwareUpdateProviderClusterQueryImageCallback( chip::app::Command * commandObj, uint16_t vendorId, uint16_t productId, uint16_t imageType, uint16_t hardwareVersion, uint32_t currentVersion, /* TYPE WARNING: array array defaults to */ uint8_t * protocolsSupported, uint8_t * location, uint8_t clientCanConsent, - chip::ByteSpan metadataForServer) + chip::ByteSpan metadataForProvider) { - EmberAfStatus status = EMBER_ZCL_STATUS_SUCCESS; - chip::EndpointId endpointId = emberAfCurrentEndpoint(); - OTAServerDelegate * delegate = GetDelegate(endpointId); + EmberAfStatus status = EMBER_ZCL_STATUS_SUCCESS; + chip::EndpointId endpointId = emberAfCurrentEndpoint(); + OTAProviderDelegate * delegate = GetDelegate(endpointId); if (SendStatusIfDelegateNull(endpointId)) { return true; }; - ChipLogDetail(Zcl, "OTA Server received QueryImage"); + ChipLogDetail(Zcl, "OTA Provider received QueryImage"); // TODO: (#7112) change location size checking once CHAR_STRING is supported const uint8_t locationLen = emberAfStringLength(location); @@ -175,16 +175,16 @@ bool emberAfOtaSoftwareUpdateServerClusterQueryImageCallback( ChipLogError(Zcl, "expected location length %" PRIu8 ", got %" PRIu8, locationLen, kLocationParamLength); emberAfSendImmediateDefaultResponse(EMBER_ZCL_STATUS_INVALID_ARGUMENT); } - else if (metadataForServer.size() > kMaxMetadataLen) + else if (metadataForProvider.size() > kMaxMetadataLen) { - ChipLogError(Zcl, "metadata size %zu exceeds max %zu", metadataForServer.size(), kMaxMetadataLen); + ChipLogError(Zcl, "metadata size %zu exceeds max %zu", metadataForProvider.size(), kMaxMetadataLen); emberAfSendImmediateDefaultResponse(EMBER_ZCL_STATUS_INVALID_ARGUMENT); } chip::ByteSpan locationSpan(location, locationLen); status = delegate->HandleQueryImage(vendorId, productId, imageType, hardwareVersion, currentVersion, protocolsSupported, - locationSpan, clientCanConsent, metadataForServer); + locationSpan, clientCanConsent, metadataForProvider); if (status != EMBER_ZCL_STATUS_SUCCESS) { emberAfSendImmediateDefaultResponse(status); @@ -197,9 +197,9 @@ namespace chip { namespace app { namespace clusters { -void OTAServer::SetDelegate(chip::EndpointId endpointId, OTAServerDelegate * delegate) +void OTAProvider::SetDelegate(chip::EndpointId endpointId, OTAProviderDelegate * delegate) { - uint8_t ep = emberAfFindClusterServerEndpointIndex(endpointId, ZCL_OTA_SERVER_CLUSTER_ID); + uint8_t ep = emberAfFindClusterServerEndpointIndex(endpointId, ZCL_OTA_PROVIDER_CLUSTER_ID); if (ep != 0xFF) { gDelegateTable[ep] = delegate; diff --git a/src/app/clusters/ota-server/ota-server.h b/src/app/clusters/ota-provider/ota-provider.h similarity index 85% rename from src/app/clusters/ota-server/ota-server.h rename to src/app/clusters/ota-provider/ota-provider.h index d2cd1ecab39b81..1e307401105a94 100644 --- a/src/app/clusters/ota-server/ota-server.h +++ b/src/app/clusters/ota-provider/ota-provider.h @@ -18,14 +18,14 @@ #pragma once -#include "ota-server-delegate.h" +#include "ota-provider-delegate.h" namespace chip { namespace app { namespace clusters { -namespace OTAServer { +namespace OTAProvider { -void SetDelegate(chip::EndpointId endpointId, OTAServerDelegate * delegate); +void SetDelegate(chip::EndpointId endpointId, OTAProviderDelegate * delegate); } } // namespace clusters diff --git a/src/app/common/gen/attribute-id.h b/src/app/common/gen/attribute-id.h index a8323b172526d5..52b2fe0a9ced06 100644 --- a/src/app/common/gen/attribute-id.h +++ b/src/app/common/gen/attribute-id.h @@ -394,16 +394,16 @@ #define ZCL_LOCAL_CONFIG_DISABLED_ATTRIBUTE_ID (0x0010) #define ZCL_REACHABLE_ATTRIBUTE_ID (0x0011) -// Attribute ids for cluster: OTA Software Update Server +// Attribute ids for cluster: OTA Software Update Provider // Client attributes // Server attributes -// Attribute ids for cluster: OTA Software Update Client +// Attribute ids for cluster: OTA Software Update Requestor // Client attributes -#define ZCL_DEFAULT_OTA_SERVER_ATTRIBUTE_ID (0x0000) +#define ZCL_DEFAULT_OTA_PROVIDER_ATTRIBUTE_ID (0x0000) #define ZCL_UPDATE_POSSIBLE_ATTRIBUTE_ID (0x0001) // Server attributes diff --git a/src/app/common/gen/client-command-macro.h b/src/app/common/gen/client-command-macro.h index e98f0abb455610..6e8b526016a59f 100644 --- a/src/app/common/gen/client-command-macro.h +++ b/src/app/common/gen/client-command-macro.h @@ -3211,17 +3211,17 @@ * @param protocolsSupported OTADownloadProtocol [] * @param protocolsSupportedLen int * @param location CHAR_STRING - * @param clientCanConsent BOOLEAN - * @param metadataForServer OCTET_STRING + * @param requestorCanConsent BOOLEAN + * @param metadataForProvider OCTET_STRING */ #define emberAfFillCommandOTA \ - Software Update ServerClusterQueryImage(vendorId, productId, imageType, hardwareVersion, currentVersion, protocolsSupported, \ - protocolsSupportedLen, location, clientCanConsent, metadataForServer) \ + Software Update ProviderClusterQueryImage(vendorId, productId, imageType, hardwareVersion, currentVersion, protocolsSupported, \ + protocolsSupportedLen, location, requestorCanConsent, metadataForProvider) \ emberAfFillExternalBuffer(mask, \ \ ZCL_QUERY_IMAGE_COMMAND_ID, "uuuuubuuu", vendorId, productId, imageType, hardwareVersion, \ - currentVersion, protocolsSupported, protocolsSupportedLen, location, clientCanConsent, \ - metadataForServer); + currentVersion, protocolsSupported, protocolsSupportedLen, location, requestorCanConsent, \ + metadataForProvider); /** @brief Command description for ApplyUpdateRequest * @@ -3230,7 +3230,7 @@ * @param newVersion INT32U */ #define emberAfFillCommandOTA \ - Software Update ServerClusterApplyUpdateRequest(updateToken, newVersion) \ + Software Update ProviderClusterApplyUpdateRequest(updateToken, newVersion) \ emberAfFillExternalBuffer(mask, \ \ ZCL_APPLY_UPDATE_REQUEST_COMMAND_ID, "uu", updateToken, newVersion); @@ -3242,7 +3242,7 @@ * @param currentVersion INT32U */ #define emberAfFillCommandOTA \ - Software Update ServerClusterNotifyUpdateApplied(updateToken, currentVersion) \ + Software Update ProviderClusterNotifyUpdateApplied(updateToken, currentVersion) \ emberAfFillExternalBuffer(mask, \ \ ZCL_NOTIFY_UPDATE_APPLIED_COMMAND_ID, "uu", updateToken, currentVersion); @@ -3256,15 +3256,15 @@ * @param softwareVersion INT32U * @param updateToken OCTET_STRING * @param userConsentNeeded BOOLEAN - * @param metadataForClient OCTET_STRING + * @param metadataForRequestor OCTET_STRING */ #define emberAfFillCommandOTA \ - Software Update ServerClusterQueryImageResponse(status, delayedActionTime, imageURI, softwareVersion, updateToken, \ - userConsentNeeded, metadataForClient) \ + Software Update ProviderClusterQueryImageResponse(status, delayedActionTime, imageURI, softwareVersion, updateToken, \ + userConsentNeeded, metadataForRequestor) \ emberAfFillExternalBuffer(mask, \ \ ZCL_QUERY_IMAGE_RESPONSE_COMMAND_ID, "uuuuuuu", status, delayedActionTime, imageURI, \ - softwareVersion, updateToken, userConsentNeeded, metadataForClient); + softwareVersion, updateToken, userConsentNeeded, metadataForRequestor); /** @brief Command description for ApplyUpdateRequestResponse * @@ -3273,24 +3273,24 @@ * @param delayedActionTime INT32U */ #define emberAfFillCommandOTA \ - Software Update ServerClusterApplyUpdateRequestResponse(action, delayedActionTime) \ + Software Update ProviderClusterApplyUpdateRequestResponse(action, delayedActionTime) \ emberAfFillExternalBuffer(mask, \ \ ZCL_APPLY_UPDATE_REQUEST_RESPONSE_COMMAND_ID, "uu", action, delayedActionTime); -/** @brief Command description for AnnounceOtaServer +/** @brief Command description for AnnounceOtaProvider * - * Command: AnnounceOtaServer + * Command: AnnounceOtaProvider * @param serverLocation OCTET_STRING * @param vendorId INT16U * @param announcementReason OTAAnnouncementReason * @param metadataForNode OCTET_STRING */ #define emberAfFillCommandOTA \ - Software Update ClientClusterAnnounceOtaServer(serverLocation, vendorId, announcementReason, metadataForNode) \ + Software Update RequestorClusterAnnounceOtaProvider(serverLocation, vendorId, announcementReason, metadataForNode) \ emberAfFillExternalBuffer(mask, \ \ - ZCL_ANNOUNCE_OTA_SERVER_COMMAND_ID, "uuuu", serverLocation, vendorId, announcementReason, \ + ZCL_ANNOUNCE_OTA_PROVIDER_COMMAND_ID, "uuuu", serverLocation, vendorId, announcementReason, \ metadataForNode); /** @brief Command description for ArmFailSafe diff --git a/src/app/common/gen/cluster-id.h b/src/app/common/gen/cluster-id.h index df77d0161be0cb..6599af3d94d8b9 100644 --- a/src/app/common/gen/cluster-id.h +++ b/src/app/common/gen/cluster-id.h @@ -88,11 +88,11 @@ static constexpr chip::ClusterId ZCL_KEEPALIVE_CLUSTER_ID = 0x0025; // Definitions for cluster: Basic static constexpr chip::ClusterId ZCL_BASIC_CLUSTER_ID = 0x0028; -// Definitions for cluster: OTA Software Update Server -static constexpr chip::ClusterId ZCL_OTA_SERVER_CLUSTER_ID = 0x0029; +// Definitions for cluster: OTA Software Update Provider +static constexpr chip::ClusterId ZCL_OTA_PROVIDER_CLUSTER_ID = 0x0029; -// Definitions for cluster: OTA Software Update Client -static constexpr chip::ClusterId ZCL_OTA_CLIENT_CLUSTER_ID = 0x002A; +// Definitions for cluster: OTA Software Update Requestor +static constexpr chip::ClusterId ZCL_OTA_REQUESTOR_CLUSTER_ID = 0x002A; // Definitions for cluster: General Commissioning static constexpr chip::ClusterId ZCL_GENERAL_COMMISSIONING_CLUSTER_ID = 0x0030; diff --git a/src/app/common/gen/command-id.h b/src/app/common/gen/command-id.h index ffdf55a91700f9..ad091a824cfcfc 100644 --- a/src/app/common/gen/command-id.h +++ b/src/app/common/gen/command-id.h @@ -228,15 +228,15 @@ #define ZCL_SHUT_DOWN_COMMAND_ID (0x01) #define ZCL_LEAVE_COMMAND_ID (0x02) -// Commands for cluster: OTA Software Update Server +// Commands for cluster: OTA Software Update Provider #define ZCL_QUERY_IMAGE_COMMAND_ID (0x00) #define ZCL_APPLY_UPDATE_REQUEST_COMMAND_ID (0x01) #define ZCL_NOTIFY_UPDATE_APPLIED_COMMAND_ID (0x02) #define ZCL_QUERY_IMAGE_RESPONSE_COMMAND_ID (0x03) #define ZCL_APPLY_UPDATE_REQUEST_RESPONSE_COMMAND_ID (0x04) -// Commands for cluster: OTA Software Update Client -#define ZCL_ANNOUNCE_OTA_SERVER_COMMAND_ID (0x00) +// Commands for cluster: OTA Software Update Requestor +#define ZCL_ANNOUNCE_OTA_PROVIDER_COMMAND_ID (0x00) // Commands for cluster: General Commissioning #define ZCL_ARM_FAIL_SAFE_COMMAND_ID (0x00) diff --git a/src/app/common/gen/print-cluster.h b/src/app/common/gen/print-cluster.h index f507f8548ce922..b5290405d47c36 100644 --- a/src/app/common/gen/print-cluster.h +++ b/src/app/common/gen/print-cluster.h @@ -156,16 +156,16 @@ #define CHIP_PRINTCLUSTER_BASIC_CLUSTER #endif -#if defined(ZCL_USING_OTA_SERVER_CLUSTER_SERVER) || defined(ZCL_USING_OTA_SERVER_CLUSTER_CLIENT) -#define CHIP_PRINTCLUSTER_OTA_SERVER_CLUSTER { ZCL_OTA_SERVER_CLUSTER_ID, 41, "OTA Software Update Server" }, +#if defined(ZCL_USING_OTA_PROVIDER_CLUSTER_SERVER) || defined(ZCL_USING_OTA_PROVIDER_CLUSTER_CLIENT) +#define CHIP_PRINTCLUSTER_OTA_PROVIDER_CLUSTER { ZCL_OTA_PROVIDER_CLUSTER_ID, 41, "OTA Software Update Provider" }, #else -#define CHIP_PRINTCLUSTER_OTA_SERVER_CLUSTER +#define CHIP_PRINTCLUSTER_OTA_PROVIDER_CLUSTER #endif -#if defined(ZCL_USING_OTA_CLIENT_CLUSTER_SERVER) || defined(ZCL_USING_OTA_CLIENT_CLUSTER_CLIENT) -#define CHIP_PRINTCLUSTER_OTA_CLIENT_CLUSTER { ZCL_OTA_CLIENT_CLUSTER_ID, 42, "OTA Software Update Client" }, +#if defined(ZCL_USING_OTA_REQUESTOR_CLUSTER_SERVER) || defined(ZCL_USING_OTA_REQUESTOR_CLUSTER_CLIENT) +#define CHIP_PRINTCLUSTER_OTA_REQUESTOR_CLUSTER { ZCL_OTA_REQUESTOR_CLUSTER_ID, 42, "OTA Software Update Requestor" }, #else -#define CHIP_PRINTCLUSTER_OTA_CLIENT_CLUSTER +#define CHIP_PRINTCLUSTER_OTA_REQUESTOR_CLUSTER #endif #if defined(ZCL_USING_GENERAL_COMMISSIONING_CLUSTER_SERVER) || defined(ZCL_USING_GENERAL_COMMISSIONING_CLUSTER_CLIENT) @@ -953,8 +953,8 @@ CHIP_PRINTCLUSTER_GREEN_POWER_CLUSTER \ CHIP_PRINTCLUSTER_KEEPALIVE_CLUSTER \ CHIP_PRINTCLUSTER_BASIC_CLUSTER \ - CHIP_PRINTCLUSTER_OTA_SERVER_CLUSTER \ - CHIP_PRINTCLUSTER_OTA_CLIENT_CLUSTER \ + CHIP_PRINTCLUSTER_OTA_PROVIDER_CLUSTER \ + CHIP_PRINTCLUSTER_OTA_REQUESTOR_CLUSTER \ CHIP_PRINTCLUSTER_GENERAL_COMMISSIONING_CLUSTER \ CHIP_PRINTCLUSTER_NETWORK_COMMISSIONING_CLUSTER \ CHIP_PRINTCLUSTER_DIAGNOSTIC_LOGS_CLUSTER \ diff --git a/src/app/util/process-cluster-message.cpp b/src/app/util/process-cluster-message.cpp index a66c4b2403b516..9d4c172d192b5d 100644 --- a/src/app/util/process-cluster-message.cpp +++ b/src/app/util/process-cluster-message.cpp @@ -83,14 +83,14 @@ bool emAfProcessClusterSpecificCommand(EmberAfClusterCommand * cmd) #ifdef ZCL_USING_OTA_BOOTLOAD_CLUSTER_CLIENT if (cmd->apsFrame->clusterId == ZCL_OTA_BOOTLOAD_CLUSTER_ID && cmd->direction == ZCL_DIRECTION_SERVER_TO_CLIENT && - emberAfOtaClientIncomingMessageRawCallback(cmd)) + emberAfOtaRequestorIncomingMessageRawCallback(cmd)) { return true; } #endif #ifdef ZCL_USING_OTA_BOOTLOAD_CLUSTER_SERVER if (cmd->apsFrame->clusterId == ZCL_OTA_BOOTLOAD_CLUSTER_ID && cmd->direction == ZCL_DIRECTION_CLIENT_TO_SERVER && - emberAfOtaServerIncomingMessageRawCallback(cmd)) + emberAfOtaProviderIncomingMessageRawCallback(cmd)) { return true; } diff --git a/src/app/zap-templates/zcl/chip-ota.xml b/src/app/zap-templates/zcl/chip-ota.xml index 5f68be3c00617c..2ea38db34f20e1 100644 --- a/src/app/zap-templates/zcl/chip-ota.xml +++ b/src/app/zap-templates/zcl/chip-ota.xml @@ -33,11 +33,11 @@ limitations under the License. - OTA Software Update Server + OTA Software Update Provider CHIP 0x0029 - OTA_SERVER_CLUSTER + OTA_PROVIDER_CLUSTER true true @@ -49,8 +49,8 @@ limitations under the License. - - + + Determine next action to take for a new Software Image @@ -58,7 +58,7 @@ limitations under the License. - Notify OTA Server that an update was applied + Notify OTA Provider that an update was applied @@ -70,7 +70,7 @@ limitations under the License. - + Reponse to ApplyUpdateRequest command @@ -84,17 +84,17 @@ limitations under the License. - OTA Software Update Client + OTA Software Update Requestor CHIP TODO 0x002a - OTA_CLIENT_CLUSTER + OTA_REQUESTOR_CLUSTER true true - default ota server + default ota provider update possible - - Notify OTA Server that an update was applied + + Notify OTA Provider that an update was applied diff --git a/src/app/zap_cluster_list.py b/src/app/zap_cluster_list.py index be6bdb079c04ab..cd58d0e72d0a79 100755 --- a/src/app/zap_cluster_list.py +++ b/src/app/zap_cluster_list.py @@ -45,8 +45,8 @@ 'ON_OFF_CLUSTER': ['on-off-server'], 'OPERATIONAL_CREDENTIALS_CLUSTER': ['operational-credentials-server'], 'OTA_BOOTLOAD_CLUSTER': [], - 'OTA_SERVER_CLUSTER': ['ota-server'], - 'OTA_CLIENT_CLUSTER': [], + 'OTA_PROVIDER_CLUSTER': ['ota-provider'], + 'OTA_REQUESTOR_CLUSTER': [], 'POWER_CONFIG_CLUSTER': [], 'PRESSURE_MEASUREMENT_CLUSTER': [], 'PUMP_CONFIG_CONTROL_CLUSTER': ['pump-configuration-and-control-server'], @@ -104,8 +104,8 @@ 'ON_OFF_CLUSTER': [], 'OPERATIONAL_CREDENTIALS_CLUSTER': [], 'OTA_BOOTLOAD_CLUSTER': [], - 'OTA_SERVER_CLUSTER': [], - 'OTA_CLIENT_CLUSTER': ['ota-server'], + 'OTA_PROVIDER_CLUSTER': [], + 'OTA_REQUESTOR_CLUSTER': ['ota-provider'], 'POWER_CONFIG_CLUSTER': [], 'PRESSURE_MEASUREMENT_CLUSTER': [], 'PUMP_CONFIG_CONTROL_CLUSTER': ['pump-configuration-and-control-client'], diff --git a/src/controller/data_model/controller-clusters.zap b/src/controller/data_model/controller-clusters.zap index b061035f44a073..d251b960275e8a 100644 --- a/src/controller/data_model/controller-clusters.zap +++ b/src/controller/data_model/controller-clusters.zap @@ -1376,10 +1376,10 @@ ] }, { - "name": "OTA Software Update Server", + "name": "OTA Software Update Provider", "code": 41, "mfgCode": null, - "define": "OTA_SERVER_CLUSTER", + "define": "OTA_PROVIDER_CLUSTER", "side": "client", "enabled": 1, "commands": [ @@ -1427,10 +1427,10 @@ ] }, { - "name": "OTA Software Update Server", + "name": "OTA Software Update Provider", "code": 41, "mfgCode": null, - "define": "OTA_SERVER_CLUSTER", + "define": "OTA_PROVIDER_CLUSTER", "side": "server", "enabled": 0, "commands": [ diff --git a/src/controller/data_model/gen/CHIPClientCallbacks.cpp b/src/controller/data_model/gen/CHIPClientCallbacks.cpp index 49752b1f185c40..b2b4ca1795b918 100644 --- a/src/controller/data_model/gen/CHIPClientCallbacks.cpp +++ b/src/controller/data_model/gen/CHIPClientCallbacks.cpp @@ -2406,25 +2406,26 @@ bool emberAfNetworkCommissioningClusterUpdateWiFiNetworkResponseCallback(chip::a return true; } -bool emberAfOtaSoftwareUpdateServerClusterApplyUpdateRequestResponseCallback(chip::app::Command * commandObj, uint8_t action, - uint32_t delayedActionTime) +bool emberAfOtaSoftwareUpdateProviderClusterApplyUpdateRequestResponseCallback(chip::app::Command * commandObj, uint8_t action, + uint32_t delayedActionTime) { ChipLogProgress(Zcl, "ApplyUpdateRequestResponse:"); ChipLogProgress(Zcl, " action: %" PRIu8 "", action); ChipLogProgress(Zcl, " delayedActionTime: %" PRIu32 "", delayedActionTime); - GET_CLUSTER_RESPONSE_CALLBACKS("OtaSoftwareUpdateServerClusterApplyUpdateRequestResponseCallback"); + GET_CLUSTER_RESPONSE_CALLBACKS("OtaSoftwareUpdateProviderClusterApplyUpdateRequestResponseCallback"); - Callback::Callback * cb = - Callback::Callback::FromCancelable(onSuccessCallback); + Callback::Callback * cb = + Callback::Callback::FromCancelable(onSuccessCallback); cb->mCall(cb->mContext, action, delayedActionTime); return true; } -bool emberAfOtaSoftwareUpdateServerClusterQueryImageResponseCallback(chip::app::Command * commandObj, uint8_t status, - uint32_t delayedActionTime, uint8_t * imageURI, - uint32_t softwareVersion, chip::ByteSpan updateToken, - uint8_t userConsentNeeded, chip::ByteSpan metadataForClient) +bool emberAfOtaSoftwareUpdateProviderClusterQueryImageResponseCallback(chip::app::Command * commandObj, uint8_t status, + uint32_t delayedActionTime, uint8_t * imageURI, + uint32_t softwareVersion, chip::ByteSpan updateToken, + uint8_t userConsentNeeded, + chip::ByteSpan metadataForRequestor) { ChipLogProgress(Zcl, "QueryImageResponse:"); LogStatus(status); @@ -2434,9 +2435,9 @@ bool emberAfOtaSoftwareUpdateServerClusterQueryImageResponseCallback(chip::app:: ChipLogProgress(Zcl, " softwareVersion: %" PRIu32 "", softwareVersion); ChipLogProgress(Zcl, " updateToken: %zu", updateToken.size()); ChipLogProgress(Zcl, " userConsentNeeded: %" PRIu8 "", userConsentNeeded); - ChipLogProgress(Zcl, " metadataForClient: %zu", metadataForClient.size()); + ChipLogProgress(Zcl, " metadataForRequestor: %zu", metadataForRequestor.size()); - GET_CLUSTER_RESPONSE_CALLBACKS("OtaSoftwareUpdateServerClusterQueryImageResponseCallback"); + GET_CLUSTER_RESPONSE_CALLBACKS("OtaSoftwareUpdateProviderClusterQueryImageResponseCallback"); if (status != EMBER_ZCL_STATUS_SUCCESS) { @@ -2446,9 +2447,9 @@ bool emberAfOtaSoftwareUpdateServerClusterQueryImageResponseCallback(chip::app:: return true; } - Callback::Callback * cb = - Callback::Callback::FromCancelable(onSuccessCallback); - cb->mCall(cb->mContext, delayedActionTime, imageURI, softwareVersion, updateToken, userConsentNeeded, metadataForClient); + Callback::Callback * cb = + Callback::Callback::FromCancelable(onSuccessCallback); + cb->mCall(cb->mContext, delayedActionTime, imageURI, softwareVersion, updateToken, userConsentNeeded, metadataForRequestor); return true; } diff --git a/src/controller/data_model/gen/CHIPClientCallbacks.h b/src/controller/data_model/gen/CHIPClientCallbacks.h index 963e578a8ededf..0b4b9dbaad1ef2 100644 --- a/src/controller/data_model/gen/CHIPClientCallbacks.h +++ b/src/controller/data_model/gen/CHIPClientCallbacks.h @@ -117,12 +117,12 @@ typedef void (*NetworkCommissioningClusterUpdateThreadNetworkResponseCallback)(v uint8_t * debugText); typedef void (*NetworkCommissioningClusterUpdateWiFiNetworkResponseCallback)(void * context, uint8_t errorCode, uint8_t * debugText); -typedef void (*OtaSoftwareUpdateServerClusterApplyUpdateRequestResponseCallback)(void * context, uint8_t action, - uint32_t delayedActionTime); -typedef void (*OtaSoftwareUpdateServerClusterQueryImageResponseCallback)(void * context, uint32_t delayedActionTime, - uint8_t * imageURI, uint32_t softwareVersion, - chip::ByteSpan updateToken, uint8_t userConsentNeeded, - chip::ByteSpan metadataForClient); +typedef void (*OtaSoftwareUpdateProviderClusterApplyUpdateRequestResponseCallback)(void * context, uint8_t action, + uint32_t delayedActionTime); +typedef void (*OtaSoftwareUpdateProviderClusterQueryImageResponseCallback)(void * context, uint32_t delayedActionTime, + uint8_t * imageURI, uint32_t softwareVersion, + chip::ByteSpan updateToken, uint8_t userConsentNeeded, + chip::ByteSpan metadataForRequestor); typedef void (*OperationalCredentialsClusterOpCSRResponseCallback)(void * context, chip::ByteSpan CSR, chip::ByteSpan CSRNonce, chip::ByteSpan VendorReserved1, chip::ByteSpan VendorReserved2, chip::ByteSpan VendorReserved3, chip::ByteSpan Signature); diff --git a/src/controller/data_model/gen/CHIPClusters.cpp b/src/controller/data_model/gen/CHIPClusters.cpp index 6e975fd442f433..1a954a38a0ffb9 100644 --- a/src/controller/data_model/gen/CHIPClusters.cpp +++ b/src/controller/data_model/gen/CHIPClusters.cpp @@ -5980,10 +5980,10 @@ CHIP_ERROR NetworkCommissioningCluster::ReadAttributeClusterRevision(Callback::C return SendCommand(seqNum, std::move(encodedCommand), onSuccessCallback, onFailureCallback); } -// OtaSoftwareUpdateServer Cluster Commands -CHIP_ERROR OtaSoftwareUpdateServerCluster::ApplyUpdateRequest(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback, chip::ByteSpan updateToken, - uint32_t newVersion) +// OtaSoftwareUpdateProvider Cluster Commands +CHIP_ERROR OtaSoftwareUpdateProviderCluster::ApplyUpdateRequest(Callback::Cancelable * onSuccessCallback, + Callback::Cancelable * onFailureCallback, + chip::ByteSpan updateToken, uint32_t newVersion) { CHIP_ERROR err = CHIP_NO_ERROR; app::CommandSender * sender = nullptr; @@ -6025,9 +6025,9 @@ CHIP_ERROR OtaSoftwareUpdateServerCluster::ApplyUpdateRequest(Callback::Cancelab return err; } -CHIP_ERROR OtaSoftwareUpdateServerCluster::NotifyUpdateApplied(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback, chip::ByteSpan updateToken, - uint32_t currentVersion) +CHIP_ERROR OtaSoftwareUpdateProviderCluster::NotifyUpdateApplied(Callback::Cancelable * onSuccessCallback, + Callback::Cancelable * onFailureCallback, + chip::ByteSpan updateToken, uint32_t currentVersion) { CHIP_ERROR err = CHIP_NO_ERROR; app::CommandSender * sender = nullptr; @@ -6069,11 +6069,12 @@ CHIP_ERROR OtaSoftwareUpdateServerCluster::NotifyUpdateApplied(Callback::Cancela return err; } -CHIP_ERROR OtaSoftwareUpdateServerCluster::QueryImage(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback, uint16_t vendorId, - uint16_t productId, uint16_t imageType, uint16_t hardwareVersion, - uint32_t currentVersion, uint8_t protocolsSupported, chip::ByteSpan location, - uint8_t clientCanConsent, chip::ByteSpan metadataForServer) +CHIP_ERROR OtaSoftwareUpdateProviderCluster::QueryImage(Callback::Cancelable * onSuccessCallback, + Callback::Cancelable * onFailureCallback, uint16_t vendorId, + uint16_t productId, uint16_t imageType, uint16_t hardwareVersion, + uint32_t currentVersion, uint8_t protocolsSupported, + chip::ByteSpan location, uint8_t requestorCanConsent, + chip::ByteSpan metadataForProvider) { CHIP_ERROR err = CHIP_NO_ERROR; app::CommandSender * sender = nullptr; @@ -6108,10 +6109,10 @@ CHIP_ERROR OtaSoftwareUpdateServerCluster::QueryImage(Callback::Cancelable * onS SuccessOrExit(err = writer->Put(TLV::ContextTag(argSeqNumber++), protocolsSupported)); // location: charString SuccessOrExit(err = writer->Put(TLV::ContextTag(argSeqNumber++), location)); - // clientCanConsent: boolean - SuccessOrExit(err = writer->Put(TLV::ContextTag(argSeqNumber++), clientCanConsent)); - // metadataForServer: octetString - SuccessOrExit(err = writer->Put(TLV::ContextTag(argSeqNumber++), metadataForServer)); + // requestorCanConsent: boolean + SuccessOrExit(err = writer->Put(TLV::ContextTag(argSeqNumber++), requestorCanConsent)); + // metadataForProvider: octetString + SuccessOrExit(err = writer->Put(TLV::ContextTag(argSeqNumber++), metadataForProvider)); SuccessOrExit(err = sender->FinishCommand()); @@ -6129,19 +6130,20 @@ CHIP_ERROR OtaSoftwareUpdateServerCluster::QueryImage(Callback::Cancelable * onS return err; } -// OtaSoftwareUpdateServer Cluster Attributes -CHIP_ERROR OtaSoftwareUpdateServerCluster::DiscoverAttributes(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) +// OtaSoftwareUpdateProvider Cluster Attributes +CHIP_ERROR OtaSoftwareUpdateProviderCluster::DiscoverAttributes(Callback::Cancelable * onSuccessCallback, + Callback::Cancelable * onFailureCallback) { uint8_t seqNum = mDevice->GetNextSequenceNumber(); - System::PacketBufferHandle encodedCommand = encodeOtaSoftwareUpdateServerClusterDiscoverAttributes(seqNum, mEndpoint); + System::PacketBufferHandle encodedCommand = encodeOtaSoftwareUpdateProviderClusterDiscoverAttributes(seqNum, mEndpoint); return SendCommand(seqNum, std::move(encodedCommand), onSuccessCallback, onFailureCallback); } -CHIP_ERROR OtaSoftwareUpdateServerCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback) +CHIP_ERROR OtaSoftwareUpdateProviderCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, + Callback::Cancelable * onFailureCallback) { - uint8_t seqNum = mDevice->GetNextSequenceNumber(); - System::PacketBufferHandle encodedCommand = encodeOtaSoftwareUpdateServerClusterReadClusterRevisionAttribute(seqNum, mEndpoint); + uint8_t seqNum = mDevice->GetNextSequenceNumber(); + System::PacketBufferHandle encodedCommand = + encodeOtaSoftwareUpdateProviderClusterReadClusterRevisionAttribute(seqNum, mEndpoint); return SendCommand(seqNum, std::move(encodedCommand), onSuccessCallback, onFailureCallback); } diff --git a/src/controller/data_model/gen/CHIPClusters.h b/src/controller/data_model/gen/CHIPClusters.h index 630df01aadc725..b3613053429f7a 100644 --- a/src/controller/data_model/gen/CHIPClusters.h +++ b/src/controller/data_model/gen/CHIPClusters.h @@ -54,7 +54,7 @@ constexpr ClusterId kLowPowerClusterId = 0x0508; constexpr ClusterId kMediaInputClusterId = 0x0507; constexpr ClusterId kMediaPlaybackClusterId = 0x0506; constexpr ClusterId kNetworkCommissioningClusterId = 0x0031; -constexpr ClusterId kOtaSoftwareUpdateServerClusterId = 0x0029; +constexpr ClusterId kOtaSoftwareUpdateProviderClusterId = 0x0029; constexpr ClusterId kOnOffClusterId = 0x0006; constexpr ClusterId kOperationalCredentialsClusterId = 0x003E; constexpr ClusterId kPressureMeasurementClusterId = 0x0403; @@ -921,11 +921,11 @@ class DLL_EXPORT NetworkCommissioningCluster : public ClusterBase static constexpr CommandId kUpdateWiFiNetworkCommandId = 0x04; }; -class DLL_EXPORT OtaSoftwareUpdateServerCluster : public ClusterBase +class DLL_EXPORT OtaSoftwareUpdateProviderCluster : public ClusterBase { public: - OtaSoftwareUpdateServerCluster() : ClusterBase(kOtaSoftwareUpdateServerClusterId) {} - ~OtaSoftwareUpdateServerCluster() {} + OtaSoftwareUpdateProviderCluster() : ClusterBase(kOtaSoftwareUpdateProviderClusterId) {} + ~OtaSoftwareUpdateProviderCluster() {} // Cluster Commands CHIP_ERROR ApplyUpdateRequest(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, @@ -934,8 +934,8 @@ class DLL_EXPORT OtaSoftwareUpdateServerCluster : public ClusterBase chip::ByteSpan updateToken, uint32_t currentVersion); CHIP_ERROR QueryImage(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t vendorId, uint16_t productId, uint16_t imageType, uint16_t hardwareVersion, uint32_t currentVersion, - uint8_t protocolsSupported, chip::ByteSpan location, uint8_t clientCanConsent, - chip::ByteSpan metadataForServer); + uint8_t protocolsSupported, chip::ByteSpan location, uint8_t requestorCanConsent, + chip::ByteSpan metadataForProvider); // Cluster Attributes CHIP_ERROR DiscoverAttributes(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); diff --git a/src/controller/data_model/gen/IMClusterCommandHandler.cpp b/src/controller/data_model/gen/IMClusterCommandHandler.cpp index 72b99e739fa64d..5c4e4848402c78 100644 --- a/src/controller/data_model/gen/IMClusterCommandHandler.cpp +++ b/src/controller/data_model/gen/IMClusterCommandHandler.cpp @@ -4016,7 +4016,7 @@ void DispatchClientCommand(app::Command * apCommandObj, CommandId aCommandId, En } // namespace NetworkCommissioning -namespace OtaSoftwareUpdateServer { +namespace OtaSoftwareUpdateProvider { void DispatchClientCommand(app::Command * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { @@ -4092,8 +4092,8 @@ void DispatchClientCommand(app::Command * apCommandObj, CommandId aCommandId, En if (CHIP_NO_ERROR == TLVError && CHIP_NO_ERROR == TLVUnpackError && 2 == validArgumentCount) { // TODO(#5098) We should pass the Command Object and EndpointId to the cluster callbacks. - wasHandled = emberAfOtaSoftwareUpdateServerClusterApplyUpdateRequestResponseCallback(apCommandObj, action, - delayedActionTime); + wasHandled = emberAfOtaSoftwareUpdateProviderClusterApplyUpdateRequestResponseCallback(apCommandObj, action, + delayedActionTime); } break; } @@ -4105,7 +4105,7 @@ void DispatchClientCommand(app::Command * apCommandObj, CommandId aCommandId, En uint32_t softwareVersion; chip::ByteSpan updateToken; uint8_t userConsentNeeded; - chip::ByteSpan metadataForClient; + chip::ByteSpan metadataForRequestor; bool argExists[7]; memset(argExists, 0, sizeof argExists); @@ -4160,7 +4160,7 @@ void DispatchClientCommand(app::Command * apCommandObj, CommandId aCommandId, En case 6: { const uint8_t * data = nullptr; TLVUnpackError = aDataTlv.GetDataPtr(data); - metadataForClient = chip::ByteSpan(data, aDataTlv.GetLength()); + metadataForRequestor = chip::ByteSpan(data, aDataTlv.GetLength()); } break; default: @@ -4183,9 +4183,9 @@ void DispatchClientCommand(app::Command * apCommandObj, CommandId aCommandId, En if (CHIP_NO_ERROR == TLVError && CHIP_NO_ERROR == TLVUnpackError && 7 == validArgumentCount) { // TODO(#5098) We should pass the Command Object and EndpointId to the cluster callbacks. - wasHandled = emberAfOtaSoftwareUpdateServerClusterQueryImageResponseCallback( + wasHandled = emberAfOtaSoftwareUpdateProviderClusterQueryImageResponseCallback( apCommandObj, status, delayedActionTime, const_cast(imageURI), softwareVersion, updateToken, - userConsentNeeded, metadataForClient); + userConsentNeeded, metadataForRequestor); } break; } @@ -4193,12 +4193,12 @@ void DispatchClientCommand(app::Command * apCommandObj, CommandId aCommandId, En // Unrecognized command ID, error status will apply. chip::app::CommandPathParams returnStatusParam = { aEndpointId, 0, // GroupId - ZCL_OTA_SERVER_CLUSTER_ID, aCommandId, + ZCL_OTA_PROVIDER_CLUSTER_ID, aCommandId, (chip::app::CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kNotFound, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::UnsupportedCommand); - ChipLogError(Zcl, "Unknown command %" PRIx16 " for cluster %" PRIx16, aCommandId, ZCL_OTA_SERVER_CLUSTER_ID); + ChipLogError(Zcl, "Unknown command %" PRIx16 " for cluster %" PRIx16, aCommandId, ZCL_OTA_PROVIDER_CLUSTER_ID); return; } } @@ -4208,7 +4208,7 @@ void DispatchClientCommand(app::Command * apCommandObj, CommandId aCommandId, En { chip::app::CommandPathParams returnStatusParam = { aEndpointId, 0, // GroupId - ZCL_OTA_SERVER_CLUSTER_ID, aCommandId, + ZCL_OTA_PROVIDER_CLUSTER_ID, aCommandId, (chip::app::CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); @@ -4219,7 +4219,7 @@ void DispatchClientCommand(app::Command * apCommandObj, CommandId aCommandId, En } } -} // namespace OtaSoftwareUpdateServer +} // namespace OtaSoftwareUpdateProvider namespace OperationalCredentials { @@ -5346,8 +5346,8 @@ void DispatchSingleClusterCommand(chip::ClusterId aClusterId, chip::CommandId aC case ZCL_NETWORK_COMMISSIONING_CLUSTER_ID: clusters::NetworkCommissioning::DispatchClientCommand(apCommandObj, aCommandId, aEndPointId, aReader); break; - case ZCL_OTA_SERVER_CLUSTER_ID: - clusters::OtaSoftwareUpdateServer::DispatchClientCommand(apCommandObj, aCommandId, aEndPointId, aReader); + case ZCL_OTA_PROVIDER_CLUSTER_ID: + clusters::OtaSoftwareUpdateProvider::DispatchClientCommand(apCommandObj, aCommandId, aEndPointId, aReader); break; case ZCL_OPERATIONAL_CREDENTIALS_CLUSTER_ID: clusters::OperationalCredentials::DispatchClientCommand(apCommandObj, aCommandId, aEndPointId, aReader); diff --git a/src/controller/data_model/gen/call-command-handler.cpp b/src/controller/data_model/gen/call-command-handler.cpp index 60e3b26efcabf5..7df926241e470e 100644 --- a/src/controller/data_model/gen/call-command-handler.cpp +++ b/src/controller/data_model/gen/call-command-handler.cpp @@ -53,7 +53,7 @@ EmberAfStatus emberAfLowPowerClusterClientCommandParse(EmberAfClusterCommand * c EmberAfStatus emberAfMediaInputClusterClientCommandParse(EmberAfClusterCommand * cmd); EmberAfStatus emberAfMediaPlaybackClusterClientCommandParse(EmberAfClusterCommand * cmd); EmberAfStatus emberAfNetworkCommissioningClusterClientCommandParse(EmberAfClusterCommand * cmd); -EmberAfStatus emberAfOtaSoftwareUpdateServerClusterClientCommandParse(EmberAfClusterCommand * cmd); +EmberAfStatus emberAfOtaSoftwareUpdateProviderClusterClientCommandParse(EmberAfClusterCommand * cmd); EmberAfStatus emberAfOnOffClusterClientCommandParse(EmberAfClusterCommand * cmd); EmberAfStatus emberAfOperationalCredentialsClusterClientCommandParse(EmberAfClusterCommand * cmd); EmberAfStatus emberAfPumpConfigurationAndControlClusterClientCommandParse(EmberAfClusterCommand * cmd); @@ -192,8 +192,8 @@ EmberAfStatus emberAfClusterSpecificCommandParse(EmberAfClusterCommand * cmd) case ZCL_NETWORK_COMMISSIONING_CLUSTER_ID: result = emberAfNetworkCommissioningClusterClientCommandParse(cmd); break; - case ZCL_OTA_SERVER_CLUSTER_ID: - result = emberAfOtaSoftwareUpdateServerClusterClientCommandParse(cmd); + case ZCL_OTA_PROVIDER_CLUSTER_ID: + result = emberAfOtaSoftwareUpdateProviderClusterClientCommandParse(cmd); break; case ZCL_ON_OFF_CLUSTER_ID: // No commands are enabled for cluster On/off @@ -1483,7 +1483,7 @@ EmberAfStatus emberAfNetworkCommissioningClusterClientCommandParse(EmberAfCluste } return status(wasHandled, true, cmd->mfgSpecific); } -EmberAfStatus emberAfOtaSoftwareUpdateServerClusterClientCommandParse(EmberAfClusterCommand * cmd) +EmberAfStatus emberAfOtaSoftwareUpdateProviderClusterClientCommandParse(EmberAfClusterCommand * cmd) { bool wasHandled = false; @@ -1509,7 +1509,7 @@ EmberAfStatus emberAfOtaSoftwareUpdateServerClusterClientCommandParse(EmberAfClu delayedActionTime = emberAfGetInt32u(cmd->buffer, payloadOffset, cmd->bufLen); wasHandled = - emberAfOtaSoftwareUpdateServerClusterApplyUpdateRequestResponseCallback(nullptr, action, delayedActionTime); + emberAfOtaSoftwareUpdateProviderClusterApplyUpdateRequestResponseCallback(nullptr, action, delayedActionTime); break; } case ZCL_QUERY_IMAGE_RESPONSE_COMMAND_ID: { @@ -1520,7 +1520,7 @@ EmberAfStatus emberAfOtaSoftwareUpdateServerClusterClientCommandParse(EmberAfClu uint32_t softwareVersion; chip::ByteSpan updateToken; uint8_t userConsentNeeded; - chip::ByteSpan metadataForClient; + chip::ByteSpan metadataForRequestor; if (cmd->bufLen < payloadOffset + 1) { @@ -1566,12 +1566,13 @@ EmberAfStatus emberAfOtaSoftwareUpdateServerClusterClientCommandParse(EmberAfClu return EMBER_ZCL_STATUS_MALFORMED_COMMAND; } { - uint8_t * rawData = emberAfGetString(cmd->buffer, payloadOffset, cmd->bufLen); - metadataForClient = chip::ByteSpan(rawData + 1u, emberAfStringLength(rawData)); + uint8_t * rawData = emberAfGetString(cmd->buffer, payloadOffset, cmd->bufLen); + metadataForRequestor = chip::ByteSpan(rawData + 1u, emberAfStringLength(rawData)); } - wasHandled = emberAfOtaSoftwareUpdateServerClusterQueryImageResponseCallback( - nullptr, status, delayedActionTime, imageURI, softwareVersion, updateToken, userConsentNeeded, metadataForClient); + wasHandled = emberAfOtaSoftwareUpdateProviderClusterQueryImageResponseCallback(nullptr, status, delayedActionTime, + imageURI, softwareVersion, updateToken, + userConsentNeeded, metadataForRequestor); break; } default: { diff --git a/src/controller/data_model/gen/callback-stub.cpp b/src/controller/data_model/gen/callback-stub.cpp index 8c996fead7c2af..71a4fdc6a0bbe5 100644 --- a/src/controller/data_model/gen/callback-stub.cpp +++ b/src/controller/data_model/gen/callback-stub.cpp @@ -110,8 +110,8 @@ void emberAfClusterInitCallback(EndpointId endpoint, ClusterId clusterId) case ZCL_NETWORK_COMMISSIONING_CLUSTER_ID: emberAfNetworkCommissioningClusterInitCallback(endpoint); break; - case ZCL_OTA_SERVER_CLUSTER_ID: - emberAfOtaSoftwareUpdateServerClusterInitCallback(endpoint); + case ZCL_OTA_PROVIDER_CLUSTER_ID: + emberAfOtaSoftwareUpdateProviderClusterInitCallback(endpoint); break; case ZCL_ON_OFF_CLUSTER_ID: emberAfOnOffClusterInitCallback(endpoint); @@ -302,7 +302,7 @@ void __attribute__((weak)) emberAfNetworkCommissioningClusterInitCallback(Endpoi // To prevent warning (void) endpoint; } -void __attribute__((weak)) emberAfOtaSoftwareUpdateServerClusterInitCallback(EndpointId endpoint) +void __attribute__((weak)) emberAfOtaSoftwareUpdateProviderClusterInitCallback(EndpointId endpoint) { // To prevent warning (void) endpoint; diff --git a/src/controller/data_model/gen/callback.h b/src/controller/data_model/gen/callback.h index ead6b8a597e530..4ff3207acb1252 100644 --- a/src/controller/data_model/gen/callback.h +++ b/src/controller/data_model/gen/callback.h @@ -256,13 +256,13 @@ void emberAfMediaPlaybackClusterInitCallback(chip::EndpointId endpoint); */ void emberAfNetworkCommissioningClusterInitCallback(chip::EndpointId endpoint); -/** @brief OTA Software Update Server Cluster Init +/** @brief OTA Software Update Provider Cluster Init * * Cluster Init * * @param endpoint Endpoint that is being initialized */ -void emberAfOtaSoftwareUpdateServerClusterInitCallback(chip::EndpointId endpoint); +void emberAfOtaSoftwareUpdateProviderClusterInitCallback(chip::EndpointId endpoint); /** @brief On/off Cluster Init * @@ -2283,27 +2283,28 @@ EmberAfStatus emberAfNetworkCommissioningClusterClientPreAttributeChangedCallbac void emberAfNetworkCommissioningClusterClientTickCallback(chip::EndpointId endpoint); // -// OTA Software Update Server Cluster client +// OTA Software Update Provider Cluster client // -/** @brief OTA Software Update Server Cluster Client Init +/** @brief OTA Software Update Provider Cluster Client Init * * Client Init * * @param endpoint Endpoint that is being initialized */ -void emberAfOtaSoftwareUpdateServerClusterClientInitCallback(chip::EndpointId endpoint); +void emberAfOtaSoftwareUpdateProviderClusterClientInitCallback(chip::EndpointId endpoint); -/** @brief OTA Software Update Server Cluster Client Attribute Changed +/** @brief OTA Software Update Provider Cluster Client Attribute Changed * * Client Attribute Changed * * @param endpoint Endpoint that is being initialized * @param attributeId Attribute that changed */ -void emberAfOtaSoftwareUpdateServerClusterClientAttributeChangedCallback(chip::EndpointId endpoint, chip::AttributeId attributeId); +void emberAfOtaSoftwareUpdateProviderClusterClientAttributeChangedCallback(chip::EndpointId endpoint, + chip::AttributeId attributeId); -/** @brief OTA Software Update Server Cluster Client Manufacturer Specific Attribute Changed +/** @brief OTA Software Update Provider Cluster Client Manufacturer Specific Attribute Changed * * Client Manufacturer Specific Attribute Changed * @@ -2311,11 +2312,11 @@ void emberAfOtaSoftwareUpdateServerClusterClientAttributeChangedCallback(chip::E * @param attributeId Attribute that changed * @param manufacturerCode Manufacturer Code of the attribute that changed */ -void emberAfOtaSoftwareUpdateServerClusterClientManufacturerSpecificAttributeChangedCallback(chip::EndpointId endpoint, - chip::AttributeId attributeId, - uint16_t manufacturerCode); +void emberAfOtaSoftwareUpdateProviderClusterClientManufacturerSpecificAttributeChangedCallback(chip::EndpointId endpoint, + chip::AttributeId attributeId, + uint16_t manufacturerCode); -/** @brief OTA Software Update Server Cluster Client Message Sent +/** @brief OTA Software Update Provider Cluster Client Message Sent * * Client Message Sent * @@ -2326,11 +2327,11 @@ void emberAfOtaSoftwareUpdateServerClusterClientManufacturerSpecificAttributeCha * @param message The message that was sent * @param status The status of the sent message */ -void emberAfOtaSoftwareUpdateServerClusterClientMessageSentCallback(const chip::MessageSendDestination & destination, - EmberApsFrame * apsFrame, uint16_t msgLen, uint8_t * message, - EmberStatus status); +void emberAfOtaSoftwareUpdateProviderClusterClientMessageSentCallback(const chip::MessageSendDestination & destination, + EmberApsFrame * apsFrame, uint16_t msgLen, uint8_t * message, + EmberStatus status); -/** @brief OTA Software Update Server Cluster Client Pre Attribute Changed +/** @brief OTA Software Update Provider Cluster Client Pre Attribute Changed * * client Pre Attribute Changed * @@ -2340,18 +2341,18 @@ void emberAfOtaSoftwareUpdateServerClusterClientMessageSentCallback(const chip:: * @param size Attribute size * @param value Attribute value */ -EmberAfStatus emberAfOtaSoftwareUpdateServerClusterClientPreAttributeChangedCallback(chip::EndpointId endpoint, - chip::AttributeId attributeId, - EmberAfAttributeType attributeType, - uint16_t size, uint8_t * value); +EmberAfStatus emberAfOtaSoftwareUpdateProviderClusterClientPreAttributeChangedCallback(chip::EndpointId endpoint, + chip::AttributeId attributeId, + EmberAfAttributeType attributeType, + uint16_t size, uint8_t * value); -/** @brief OTA Software Update Server Cluster Client Tick +/** @brief OTA Software Update Provider Cluster Client Tick * * client Tick * * @param endpoint Endpoint that is being served */ -void emberAfOtaSoftwareUpdateServerClusterClientTickCallback(chip::EndpointId endpoint); +void emberAfOtaSoftwareUpdateProviderClusterClientTickCallback(chip::EndpointId endpoint); // // On/off Cluster client @@ -3835,20 +3836,21 @@ bool emberAfNetworkCommissioningClusterUpdateWiFiNetworkResponseCallback(chip::a uint8_t * debugText); /** - * @brief OTA Software Update Server Cluster ApplyUpdateRequestResponse Command callback + * @brief OTA Software Update Provider Cluster ApplyUpdateRequestResponse Command callback */ -bool emberAfOtaSoftwareUpdateServerClusterApplyUpdateRequestResponseCallback(chip::app::Command * commandObj, uint8_t action, - uint32_t delayedActionTime); +bool emberAfOtaSoftwareUpdateProviderClusterApplyUpdateRequestResponseCallback(chip::app::Command * commandObj, uint8_t action, + uint32_t delayedActionTime); /** - * @brief OTA Software Update Server Cluster QueryImageResponse Command callback + * @brief OTA Software Update Provider Cluster QueryImageResponse Command callback */ -bool emberAfOtaSoftwareUpdateServerClusterQueryImageResponseCallback(chip::app::Command * commandObj, uint8_t status, - uint32_t delayedActionTime, uint8_t * imageURI, - uint32_t softwareVersion, chip::ByteSpan updateToken, - uint8_t userConsentNeeded, chip::ByteSpan metadataForClient); +bool emberAfOtaSoftwareUpdateProviderClusterQueryImageResponseCallback(chip::app::Command * commandObj, uint8_t status, + uint32_t delayedActionTime, uint8_t * imageURI, + uint32_t softwareVersion, chip::ByteSpan updateToken, + uint8_t userConsentNeeded, + chip::ByteSpan metadataForRequestor); /** * @brief Operational Credentials Cluster OpCSRResponse Command callback diff --git a/src/controller/data_model/gen/chip-zcl-zpro-codec-api.h b/src/controller/data_model/gen/chip-zcl-zpro-codec-api.h index 6d81b018fccda2..14a1b3db3489aa 100644 --- a/src/controller/data_model/gen/chip-zcl-zpro-codec-api.h +++ b/src/controller/data_model/gen/chip-zcl-zpro-codec-api.h @@ -55,7 +55,7 @@ | MediaInput | 0x0507 | | MediaPlayback | 0x0506 | | NetworkCommissioning | 0x0031 | -| OtaSoftwareUpdateServer | 0x0029 | +| OtaSoftwareUpdateProvider | 0x0029 | | OnOff | 0x0006 | | OperationalCredentials | 0x003E | | PressureMeasurement | 0x0403 | @@ -1983,7 +1983,7 @@ chip::System::PacketBufferHandle encodeNetworkCommissioningClusterReadClusterRevisionAttribute(uint8_t seqNum, chip::EndpointId destinationEndpoint); /*----------------------------------------------------------------------------*\ -| Cluster OtaSoftwareUpdateServer | 0x0029 | +| Cluster OtaSoftwareUpdateProvider | 0x0029 | |------------------------------------------------------------------------------| | Commands: | | | * ApplyUpdateRequest | 0x01 | @@ -1996,17 +1996,18 @@ encodeNetworkCommissioningClusterReadClusterRevisionAttribute(uint8_t seqNum, ch /** * @brief - * Encode a OTA Software Update Server server discover command into buffer including the APS frame + * Encode a OTA Software Update Provider server discover command into buffer including the APS frame */ -chip::System::PacketBufferHandle encodeOtaSoftwareUpdateServerClusterDiscoverAttributes(uint8_t seqNum, - chip::EndpointId destinationEndpoint); +chip::System::PacketBufferHandle encodeOtaSoftwareUpdateProviderClusterDiscoverAttributes(uint8_t seqNum, + chip::EndpointId destinationEndpoint); /** * @brief - * Encode a OTA Software Update Server server read command for the cluster revision attribute into buffer including the APS frame + * Encode a OTA Software Update Provider server read command for the cluster revision attribute into buffer including the APS + * frame */ chip::System::PacketBufferHandle -encodeOtaSoftwareUpdateServerClusterReadClusterRevisionAttribute(uint8_t seqNum, chip::EndpointId destinationEndpoint); +encodeOtaSoftwareUpdateProviderClusterReadClusterRevisionAttribute(uint8_t seqNum, chip::EndpointId destinationEndpoint); /*----------------------------------------------------------------------------*\ | Cluster OnOff | 0x0006 | diff --git a/src/controller/data_model/gen/encoder.cpp b/src/controller/data_model/gen/encoder.cpp index 25b0c4b55c88e0..e30a5d05a23f06 100644 --- a/src/controller/data_model/gen/encoder.cpp +++ b/src/controller/data_model/gen/encoder.cpp @@ -81,7 +81,7 @@ using namespace chip::Encoding::LittleEndian; | MediaInput | 0x0507 | | MediaPlayback | 0x0506 | | NetworkCommissioning | 0x0031 | -| OtaSoftwareUpdateServer | 0x0029 | +| OtaSoftwareUpdateProvider | 0x0029 | | OnOff | 0x0006 | | OperationalCredentials | 0x003E | | PressureMeasurement | 0x0403 | @@ -277,7 +277,7 @@ using namespace chip::Encoding::LittleEndian; #define ZCL_UPDATE_THREAD_NETWORK_COMMAND_ID (0x08) #define ZCL_UPDATE_WI_FI_NETWORK_COMMAND_ID (0x04) -#define OTA_SERVER_CLUSTER_ID 0x0029 +#define OTA_PROVIDER_CLUSTER_ID 0x0029 #define ZCL_APPLY_UPDATE_REQUEST_COMMAND_ID (0x01) #define ZCL_NOTIFY_UPDATE_APPLIED_COMMAND_ID (0x02) #define ZCL_QUERY_IMAGE_COMMAND_ID (0x00) @@ -2954,7 +2954,7 @@ PacketBufferHandle encodeNetworkCommissioningClusterReadClusterRevisionAttribute } /*----------------------------------------------------------------------------*\ -| Cluster OtaSoftwareUpdateServer | 0x0029 | +| Cluster OtaSoftwareUpdateProvider | 0x0029 | |------------------------------------------------------------------------------| | Commands: | | | * ApplyUpdateRequest | 0x01 | @@ -2965,9 +2965,9 @@ PacketBufferHandle encodeNetworkCommissioningClusterReadClusterRevisionAttribute | * ClusterRevision | 0xFFFD | \*----------------------------------------------------------------------------*/ -PacketBufferHandle encodeOtaSoftwareUpdateServerClusterDiscoverAttributes(uint8_t seqNum, EndpointId destinationEndpoint) +PacketBufferHandle encodeOtaSoftwareUpdateProviderClusterDiscoverAttributes(uint8_t seqNum, EndpointId destinationEndpoint) { - COMMAND_HEADER("DiscoverOtaSoftwareUpdateServerAttributes", OTA_SERVER_CLUSTER_ID); + COMMAND_HEADER("DiscoverOtaSoftwareUpdateProviderAttributes", OTA_PROVIDER_CLUSTER_ID); buf.Put8(kFrameControlGlobalCommand).Put8(seqNum).Put8(ZCL_DISCOVER_ATTRIBUTES_COMMAND_ID).Put16(0x0000).Put8(0xFF); COMMAND_FOOTER(); } @@ -2975,9 +2975,10 @@ PacketBufferHandle encodeOtaSoftwareUpdateServerClusterDiscoverAttributes(uint8_ /* * Attribute ClusterRevision */ -PacketBufferHandle encodeOtaSoftwareUpdateServerClusterReadClusterRevisionAttribute(uint8_t seqNum, EndpointId destinationEndpoint) +PacketBufferHandle encodeOtaSoftwareUpdateProviderClusterReadClusterRevisionAttribute(uint8_t seqNum, + EndpointId destinationEndpoint) { - COMMAND_HEADER("ReadOtaSoftwareUpdateServerClusterRevision", OTA_SERVER_CLUSTER_ID); + COMMAND_HEADER("ReadOtaSoftwareUpdateProviderClusterRevision", OTA_PROVIDER_CLUSTER_ID); buf.Put8(kFrameControlGlobalCommand).Put8(seqNum).Put8(ZCL_READ_ATTRIBUTES_COMMAND_ID).Put16(0xFFFD); COMMAND_FOOTER(); } diff --git a/src/controller/data_model/gen/endpoint_config.h b/src/controller/data_model/gen/endpoint_config.h index b5500668088125..3ce47c1941ffab 100644 --- a/src/controller/data_model/gen/endpoint_config.h +++ b/src/controller/data_model/gen/endpoint_config.h @@ -92,7 +92,7 @@ { 0xFFFD, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(CLIENT) | ZAP_ATTRIBUTE_MASK(SINGLETON), \ ZAP_SIMPLE_DEFAULT(3) }, /* cluster revision */ \ \ - /* Endpoint: 1, Cluster: OTA Software Update Server (client) */ \ + /* Endpoint: 1, Cluster: OTA Software Update Provider (client) */ \ { 0xFFFD, ZAP_TYPE(INT16U), 2, ZAP_ATTRIBUTE_MASK(CLIENT), ZAP_SIMPLE_DEFAULT(0x0001) }, /* cluster revision */ \ \ /* Endpoint: 1, Cluster: General Commissioning (client) */ \ @@ -225,7 +225,7 @@ { 0x0028, ZAP_ATTRIBUTE_INDEX(7), 1, 2, ZAP_CLUSTER_MASK(CLIENT), NULL }, /* Endpoint: 1, Cluster: Basic (client) */ \ { \ 0x0029, ZAP_ATTRIBUTE_INDEX(8), 1, 2, ZAP_CLUSTER_MASK(CLIENT), NULL \ - }, /* Endpoint: 1, Cluster: OTA Software Update Server (client) */ \ + }, /* Endpoint: 1, Cluster: OTA Software Update Provider (client) */ \ { \ 0x0030, ZAP_ATTRIBUTE_INDEX(9), 1, 2, ZAP_CLUSTER_MASK(CLIENT), NULL \ }, /* Endpoint: 1, Cluster: General Commissioning (client) */ \ @@ -447,7 +447,7 @@ { 0x0028, 0x02, ZAP_COMMAND_MASK(INCOMING_CLIENT) }, /* Leave */ \ { 0x0028, 0x00, ZAP_COMMAND_MASK(OUTGOING_CLIENT) }, /* MfgSpecificPing */ \ \ - /* Endpoint: 1, Cluster: OTA Software Update Server (client) */ \ + /* Endpoint: 1, Cluster: OTA Software Update Provider (client) */ \ { 0x0029, 0x00, ZAP_COMMAND_MASK(INCOMING_SERVER) }, /* QueryImage */ \ { 0x0029, 0x01, ZAP_COMMAND_MASK(INCOMING_SERVER) }, /* ApplyUpdateRequest */ \ { 0x0029, 0x02, ZAP_COMMAND_MASK(INCOMING_SERVER) }, /* NotifyUpdateApplied */ \ diff --git a/src/controller/data_model/gen/gen_config.h b/src/controller/data_model/gen/gen_config.h index 4e44cdee743abd..72ed7fe1824131 100644 --- a/src/controller/data_model/gen/gen_config.h +++ b/src/controller/data_model/gen/gen_config.h @@ -56,7 +56,7 @@ #define EMBER_AF_MEDIA_INPUT_CLUSTER_CLIENT_ENDPOINT_COUNT (1) #define EMBER_AF_MEDIA_PLAYBACK_CLUSTER_CLIENT_ENDPOINT_COUNT (1) #define EMBER_AF_NETWORK_COMMISSIONING_CLUSTER_CLIENT_ENDPOINT_COUNT (1) -#define EMBER_AF_OTA_SERVER_CLUSTER_CLIENT_ENDPOINT_COUNT (1) +#define EMBER_AF_OTA_PROVIDER_CLUSTER_CLIENT_ENDPOINT_COUNT (1) #define EMBER_AF_ON_OFF_CLUSTER_CLIENT_ENDPOINT_COUNT (1) #define EMBER_AF_OPERATIONAL_CREDENTIALS_CLUSTER_CLIENT_ENDPOINT_COUNT (1) #define EMBER_AF_PRESSURE_MEASUREMENT_CLUSTER_CLIENT_ENDPOINT_COUNT (1) @@ -184,9 +184,9 @@ #define ZCL_USING_NETWORK_COMMISSIONING_CLUSTER_CLIENT #define EMBER_AF_PLUGIN_NETWORK_COMMISSIONING_CLIENT -// Use this macro to check if the client side of the OTA Software Update Server cluster is included -#define ZCL_USING_OTA_SERVER_CLUSTER_CLIENT -#define EMBER_AF_PLUGIN_OTA_SOFTWARE_UPDATE_SERVER_CLIENT +// Use this macro to check if the client side of the OTA Software Update Provider cluster is included +#define ZCL_USING_OTA_PROVIDER_CLUSTER_CLIENT +#define EMBER_AF_PLUGIN_OTA_SOFTWARE_UPDATE_PROVIDER_CLIENT // Use this macro to check if the client side of the On/off cluster is included #define ZCL_USING_ON_OFF_CLUSTER_CLIENT diff --git a/src/controller/java/gen/CHIPClusters-JNI.cpp b/src/controller/java/gen/CHIPClusters-JNI.cpp index 9bbb53d0dcdbfc..6b105624c54abb 100644 --- a/src/controller/java/gen/CHIPClusters-JNI.cpp +++ b/src/controller/java/gen/CHIPClusters-JNI.cpp @@ -4056,12 +4056,12 @@ class CHIPNetworkCommissioningClusterUpdateWiFiNetworkResponseCallback jobject javaCallbackRef; }; -class CHIPOtaSoftwareUpdateServerClusterApplyUpdateRequestResponseCallback - : public Callback::Callback +class CHIPOtaSoftwareUpdateProviderClusterApplyUpdateRequestResponseCallback + : public Callback::Callback { public: - CHIPOtaSoftwareUpdateServerClusterApplyUpdateRequestResponseCallback(jobject javaCallback) : - Callback::Callback(CallbackFn, this) + CHIPOtaSoftwareUpdateProviderClusterApplyUpdateRequestResponseCallback(jobject javaCallback) : + Callback::Callback(CallbackFn, this) { JNIEnv * env = JniReferences::GetInstance().GetEnvForCurrentThread(); if (env == nullptr) @@ -4076,7 +4076,7 @@ class CHIPOtaSoftwareUpdateServerClusterApplyUpdateRequestResponseCallback ChipLogError(Zcl, "Could not create global reference for Java callback"); } } - ~CHIPOtaSoftwareUpdateServerClusterApplyUpdateRequestResponseCallback() + ~CHIPOtaSoftwareUpdateProviderClusterApplyUpdateRequestResponseCallback() { JNIEnv * env = JniReferences::GetInstance().GetEnvForCurrentThread(); if (env == nullptr) @@ -4094,11 +4094,11 @@ class CHIPOtaSoftwareUpdateServerClusterApplyUpdateRequestResponseCallback JNIEnv * env = JniReferences::GetInstance().GetEnvForCurrentThread(); jobject javaCallbackRef; jmethodID javaMethod; - CHIPOtaSoftwareUpdateServerClusterApplyUpdateRequestResponseCallback * cppCallback = nullptr; + CHIPOtaSoftwareUpdateProviderClusterApplyUpdateRequestResponseCallback * cppCallback = nullptr; VerifyOrExit(env != nullptr, err = CHIP_JNI_ERROR_NO_ENV); - cppCallback = reinterpret_cast(context); + cppCallback = reinterpret_cast(context); VerifyOrExit(cppCallback != nullptr, err = CHIP_JNI_ERROR_NULL_OBJECT); javaCallbackRef = cppCallback->javaCallbackRef; @@ -4125,12 +4125,12 @@ class CHIPOtaSoftwareUpdateServerClusterApplyUpdateRequestResponseCallback jobject javaCallbackRef; }; -class CHIPOtaSoftwareUpdateServerClusterQueryImageResponseCallback - : public Callback::Callback +class CHIPOtaSoftwareUpdateProviderClusterQueryImageResponseCallback + : public Callback::Callback { public: - CHIPOtaSoftwareUpdateServerClusterQueryImageResponseCallback(jobject javaCallback) : - Callback::Callback(CallbackFn, this) + CHIPOtaSoftwareUpdateProviderClusterQueryImageResponseCallback(jobject javaCallback) : + Callback::Callback(CallbackFn, this) { JNIEnv * env = JniReferences::GetInstance().GetEnvForCurrentThread(); if (env == nullptr) @@ -4145,7 +4145,7 @@ class CHIPOtaSoftwareUpdateServerClusterQueryImageResponseCallback ChipLogError(Zcl, "Could not create global reference for Java callback"); } } - ~CHIPOtaSoftwareUpdateServerClusterQueryImageResponseCallback() + ~CHIPOtaSoftwareUpdateProviderClusterQueryImageResponseCallback() { JNIEnv * env = JniReferences::GetInstance().GetEnvForCurrentThread(); if (env == nullptr) @@ -4157,22 +4157,22 @@ class CHIPOtaSoftwareUpdateServerClusterQueryImageResponseCallback }; static void CallbackFn(void * context, uint32_t delayedActionTime, uint8_t * imageURI, uint32_t softwareVersion, - chip::ByteSpan updateToken, uint8_t userConsentNeeded, chip::ByteSpan metadataForClient) + chip::ByteSpan updateToken, uint8_t userConsentNeeded, chip::ByteSpan metadataForRequestor) { StackUnlockGuard unlockGuard(JniReferences::GetInstance().GetStackLock()); CHIP_ERROR err = CHIP_NO_ERROR; JNIEnv * env = JniReferences::GetInstance().GetEnvForCurrentThread(); jobject javaCallbackRef; jmethodID javaMethod; - CHIPOtaSoftwareUpdateServerClusterQueryImageResponseCallback * cppCallback = nullptr; + CHIPOtaSoftwareUpdateProviderClusterQueryImageResponseCallback * cppCallback = nullptr; // ByteSpan is not properly returned yet, temporarily use empty string UtfString imageURIStr(env, ""); jbyteArray updateTokenArr; - jbyteArray metadataForClientArr; + jbyteArray metadataForRequestorArr; VerifyOrExit(env != nullptr, err = CHIP_JNI_ERROR_NO_ENV); - cppCallback = reinterpret_cast(context); + cppCallback = reinterpret_cast(context); VerifyOrExit(cppCallback != nullptr, err = CHIP_JNI_ERROR_NULL_OBJECT); javaCallbackRef = cppCallback->javaCallbackRef; @@ -4187,19 +4187,19 @@ class CHIPOtaSoftwareUpdateServerClusterQueryImageResponseCallback env->ExceptionClear(); env->SetByteArrayRegion(updateTokenArr, 0, updateToken.size(), reinterpret_cast(updateToken.data())); VerifyOrExit(!env->ExceptionCheck(), err = CHIP_JNI_ERROR_EXCEPTION_THROWN); - metadataForClientArr = env->NewByteArray(metadataForClient.size()); - VerifyOrExit(metadataForClientArr != nullptr, err = CHIP_ERROR_NO_MEMORY); + metadataForRequestorArr = env->NewByteArray(metadataForRequestor.size()); + VerifyOrExit(metadataForRequestorArr != nullptr, err = CHIP_ERROR_NO_MEMORY); env->ExceptionClear(); - env->SetByteArrayRegion(metadataForClientArr, 0, metadataForClient.size(), - reinterpret_cast(metadataForClient.data())); + env->SetByteArrayRegion(metadataForRequestorArr, 0, metadataForRequestor.size(), + reinterpret_cast(metadataForRequestor.data())); VerifyOrExit(!env->ExceptionCheck(), err = CHIP_JNI_ERROR_EXCEPTION_THROWN); env->CallVoidMethod(javaCallbackRef, javaMethod, static_cast(delayedActionTime), imageURIStr.jniValue(), static_cast(softwareVersion), updateTokenArr, static_cast(userConsentNeeded), - metadataForClientArr); + metadataForRequestorArr); env->DeleteLocalRef(updateTokenArr); - env->DeleteLocalRef(metadataForClientArr); + env->DeleteLocalRef(metadataForRequestorArr); exit: if (err != CHIP_NO_ERROR) @@ -9888,30 +9888,30 @@ JNI_METHOD(void, NetworkCommissioningCluster, updateWiFiNetwork) env->CallVoidMethod(callback, method, exception); } } -JNI_METHOD(jlong, OtaSoftwareUpdateServerCluster, initWithDevice)(JNIEnv * env, jobject self, jlong devicePtr, jint endpointId) +JNI_METHOD(jlong, OtaSoftwareUpdateProviderCluster, initWithDevice)(JNIEnv * env, jobject self, jlong devicePtr, jint endpointId) { StackLockGuard lock(JniReferences::GetInstance().GetStackLock()); - OtaSoftwareUpdateServerCluster * cppCluster = new OtaSoftwareUpdateServerCluster(); + OtaSoftwareUpdateProviderCluster * cppCluster = new OtaSoftwareUpdateProviderCluster(); cppCluster->Associate(reinterpret_cast(devicePtr), endpointId); return reinterpret_cast(cppCluster); } -JNI_METHOD(void, OtaSoftwareUpdateServerCluster, applyUpdateRequest) +JNI_METHOD(void, OtaSoftwareUpdateProviderCluster, applyUpdateRequest) (JNIEnv * env, jobject self, jlong clusterPtr, jobject callback, jbyteArray updateToken, jlong newVersion) { StackLockGuard lock(JniReferences::GetInstance().GetStackLock()); CHIP_ERROR err = CHIP_NO_ERROR; - OtaSoftwareUpdateServerCluster * cppCluster; + OtaSoftwareUpdateProviderCluster * cppCluster; JniByteArray updateTokenArr(env, updateToken); - CHIPOtaSoftwareUpdateServerClusterApplyUpdateRequestResponseCallback * onSuccess; + CHIPOtaSoftwareUpdateProviderClusterApplyUpdateRequestResponseCallback * onSuccess; CHIPDefaultFailureCallback * onFailure; - cppCluster = reinterpret_cast(clusterPtr); + cppCluster = reinterpret_cast(clusterPtr); VerifyOrExit(cppCluster != nullptr, err = CHIP_ERROR_INCORRECT_STATE); - onSuccess = new CHIPOtaSoftwareUpdateServerClusterApplyUpdateRequestResponseCallback(callback); + onSuccess = new CHIPOtaSoftwareUpdateProviderClusterApplyUpdateRequestResponseCallback(callback); VerifyOrExit(onSuccess != nullptr, err = CHIP_ERROR_INCORRECT_STATE); onFailure = new CHIPDefaultFailureCallback(callback); VerifyOrExit(onFailure != nullptr, err = CHIP_ERROR_INCORRECT_STATE); @@ -9946,18 +9946,18 @@ JNI_METHOD(void, OtaSoftwareUpdateServerCluster, applyUpdateRequest) env->CallVoidMethod(callback, method, exception); } } -JNI_METHOD(void, OtaSoftwareUpdateServerCluster, notifyUpdateApplied) +JNI_METHOD(void, OtaSoftwareUpdateProviderCluster, notifyUpdateApplied) (JNIEnv * env, jobject self, jlong clusterPtr, jobject callback, jbyteArray updateToken, jlong currentVersion) { StackLockGuard lock(JniReferences::GetInstance().GetStackLock()); CHIP_ERROR err = CHIP_NO_ERROR; - OtaSoftwareUpdateServerCluster * cppCluster; + OtaSoftwareUpdateProviderCluster * cppCluster; JniByteArray updateTokenArr(env, updateToken); CHIPDefaultSuccessCallback * onSuccess; CHIPDefaultFailureCallback * onFailure; - cppCluster = reinterpret_cast(clusterPtr); + cppCluster = reinterpret_cast(clusterPtr); VerifyOrExit(cppCluster != nullptr, err = CHIP_ERROR_INCORRECT_STATE); onSuccess = new CHIPDefaultSuccessCallback(callback); @@ -9995,32 +9995,32 @@ JNI_METHOD(void, OtaSoftwareUpdateServerCluster, notifyUpdateApplied) env->CallVoidMethod(callback, method, exception); } } -JNI_METHOD(void, OtaSoftwareUpdateServerCluster, queryImage) +JNI_METHOD(void, OtaSoftwareUpdateProviderCluster, queryImage) (JNIEnv * env, jobject self, jlong clusterPtr, jobject callback, jint vendorId, jint productId, jint imageType, - jint hardwareVersion, jlong currentVersion, jint protocolsSupported, jstring location, jint clientCanConsent, - jbyteArray metadataForServer) + jint hardwareVersion, jlong currentVersion, jint protocolsSupported, jstring location, jint requestorCanConsent, + jbyteArray metadataForProvider) { StackLockGuard lock(JniReferences::GetInstance().GetStackLock()); CHIP_ERROR err = CHIP_NO_ERROR; - OtaSoftwareUpdateServerCluster * cppCluster; + OtaSoftwareUpdateProviderCluster * cppCluster; JniUtfString locationStr(env, location); - JniByteArray metadataForServerArr(env, metadataForServer); - CHIPOtaSoftwareUpdateServerClusterQueryImageResponseCallback * onSuccess; + JniByteArray metadataForProviderArr(env, metadataForProvider); + CHIPOtaSoftwareUpdateProviderClusterQueryImageResponseCallback * onSuccess; CHIPDefaultFailureCallback * onFailure; - cppCluster = reinterpret_cast(clusterPtr); + cppCluster = reinterpret_cast(clusterPtr); VerifyOrExit(cppCluster != nullptr, err = CHIP_ERROR_INCORRECT_STATE); - onSuccess = new CHIPOtaSoftwareUpdateServerClusterQueryImageResponseCallback(callback); + onSuccess = new CHIPOtaSoftwareUpdateProviderClusterQueryImageResponseCallback(callback); VerifyOrExit(onSuccess != nullptr, err = CHIP_ERROR_INCORRECT_STATE); onFailure = new CHIPDefaultFailureCallback(callback); VerifyOrExit(onFailure != nullptr, err = CHIP_ERROR_INCORRECT_STATE); err = cppCluster->QueryImage(onSuccess->Cancel(), onFailure->Cancel(), vendorId, productId, imageType, hardwareVersion, currentVersion, protocolsSupported, - chip::ByteSpan((const uint8_t *) location, strlen(locationStr.c_str())), clientCanConsent, - chip::ByteSpan((const uint8_t *) metadataForServerArr.data(), metadataForServerArr.size())); + chip::ByteSpan((const uint8_t *) location, strlen(locationStr.c_str())), requestorCanConsent, + chip::ByteSpan((const uint8_t *) metadataForProviderArr.data(), metadataForProviderArr.size())); SuccessOrExit(err); exit: diff --git a/src/controller/java/gen/ChipClusters.java b/src/controller/java/gen/ChipClusters.java index 01217faa10ec12..a1a92dd85de9b1 100644 --- a/src/controller/java/gen/ChipClusters.java +++ b/src/controller/java/gen/ChipClusters.java @@ -1745,8 +1745,8 @@ public interface UpdateWiFiNetworkResponseCallback { } } - public static class OtaSoftwareUpdateServerCluster extends BaseChipCluster { - public OtaSoftwareUpdateServerCluster(long devicePtr, int endpointId) { + public static class OtaSoftwareUpdateProviderCluster extends BaseChipCluster { + public OtaSoftwareUpdateProviderCluster(long devicePtr, int endpointId) { super(devicePtr, endpointId); } @@ -1772,8 +1772,8 @@ public void queryImage( long currentVersion, int protocolsSupported, String location, - int clientCanConsent, - byte[] metadataForServer) { + int requestorCanConsent, + byte[] metadataForProvider) { queryImage( chipClusterPtr, callback, @@ -1784,8 +1784,8 @@ public void queryImage( currentVersion, protocolsSupported, location, - clientCanConsent, - metadataForServer); + requestorCanConsent, + metadataForProvider); } private native void applyUpdateRequest( @@ -1810,8 +1810,8 @@ private native void queryImage( long currentVersion, int protocolsSupported, String location, - int clientCanConsent, - byte[] metadataForServer); + int requestorCanConsent, + byte[] metadataForProvider); public interface ApplyUpdateRequestResponseCallback { void onSuccess(int action, long delayedActionTime); @@ -1826,7 +1826,7 @@ void onSuccess( long softwareVersion, byte[] updateToken, int userConsentNeeded, - byte[] metadataForClient); + byte[] metadataForRequestor); void onError(Exception error); } diff --git a/src/controller/python/chip/clusters/CHIPClusters.cpp b/src/controller/python/chip/clusters/CHIPClusters.cpp index 891a35e59ce4e2..e3b0b53731646a 100644 --- a/src/controller/python/chip/clusters/CHIPClusters.cpp +++ b/src/controller/python/chip/clusters/CHIPClusters.cpp @@ -2879,52 +2879,52 @@ CHIP_ERROR chip_ime_ReadAttribute_NetworkCommissioning_ClusterRevision(chip::Con } // End of Cluster NetworkCommissioning -// Cluster OtaSoftwareUpdateServer +// Cluster OtaSoftwareUpdateProvider -CHIP_ERROR chip_ime_AppendCommand_OtaSoftwareUpdateServer_ApplyUpdateRequest(chip::Controller::Device * device, - chip::EndpointId ZCLendpointId, chip::GroupId, - const uint8_t * updateToken, uint32_t updateToken_Len, - uint32_t newVersion) +CHIP_ERROR chip_ime_AppendCommand_OtaSoftwareUpdateProvider_ApplyUpdateRequest(chip::Controller::Device * device, + chip::EndpointId ZCLendpointId, chip::GroupId, + const uint8_t * updateToken, + uint32_t updateToken_Len, uint32_t newVersion) { VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT); - chip::Controller::OtaSoftwareUpdateServerCluster cluster; + chip::Controller::OtaSoftwareUpdateProviderCluster cluster; cluster.Associate(device, ZCLendpointId); return cluster.ApplyUpdateRequest(nullptr, nullptr, chip::ByteSpan(updateToken, updateToken_Len), newVersion); } -CHIP_ERROR chip_ime_AppendCommand_OtaSoftwareUpdateServer_NotifyUpdateApplied(chip::Controller::Device * device, - chip::EndpointId ZCLendpointId, chip::GroupId, - const uint8_t * updateToken, uint32_t updateToken_Len, - uint32_t currentVersion) +CHIP_ERROR chip_ime_AppendCommand_OtaSoftwareUpdateProvider_NotifyUpdateApplied(chip::Controller::Device * device, + chip::EndpointId ZCLendpointId, chip::GroupId, + const uint8_t * updateToken, + uint32_t updateToken_Len, uint32_t currentVersion) { VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT); - chip::Controller::OtaSoftwareUpdateServerCluster cluster; + chip::Controller::OtaSoftwareUpdateProviderCluster cluster; cluster.Associate(device, ZCLendpointId); return cluster.NotifyUpdateApplied(nullptr, nullptr, chip::ByteSpan(updateToken, updateToken_Len), currentVersion); } -CHIP_ERROR chip_ime_AppendCommand_OtaSoftwareUpdateServer_QueryImage( +CHIP_ERROR chip_ime_AppendCommand_OtaSoftwareUpdateProvider_QueryImage( chip::Controller::Device * device, chip::EndpointId ZCLendpointId, chip::GroupId, uint16_t vendorId, uint16_t productId, uint16_t imageType, uint16_t hardwareVersion, uint32_t currentVersion, uint8_t protocolsSupported, const uint8_t * location, - uint32_t location_Len, uint8_t clientCanConsent, const uint8_t * metadataForServer, uint32_t metadataForServer_Len) + uint32_t location_Len, uint8_t requestorCanConsent, const uint8_t * metadataForProvider, uint32_t metadataForProvider_Len) { VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT); - chip::Controller::OtaSoftwareUpdateServerCluster cluster; + chip::Controller::OtaSoftwareUpdateProviderCluster cluster; cluster.Associate(device, ZCLendpointId); return cluster.QueryImage(nullptr, nullptr, vendorId, productId, imageType, hardwareVersion, currentVersion, protocolsSupported, - chip::ByteSpan(location, location_Len), clientCanConsent, - chip::ByteSpan(metadataForServer, metadataForServer_Len)); + chip::ByteSpan(location, location_Len), requestorCanConsent, + chip::ByteSpan(metadataForProvider, metadataForProvider_Len)); } -CHIP_ERROR chip_ime_ReadAttribute_OtaSoftwareUpdateServer_ClusterRevision(chip::Controller::Device * device, - chip::EndpointId ZCLendpointId, - chip::GroupId /* ZCLgroupId */) +CHIP_ERROR chip_ime_ReadAttribute_OtaSoftwareUpdateProvider_ClusterRevision(chip::Controller::Device * device, + chip::EndpointId ZCLendpointId, + chip::GroupId /* ZCLgroupId */) { VerifyOrReturnError(device != nullptr, CHIP_ERROR_INVALID_ARGUMENT); - chip::Controller::OtaSoftwareUpdateServerCluster cluster; + chip::Controller::OtaSoftwareUpdateProviderCluster cluster; cluster.Associate(device, ZCLendpointId); return cluster.ReadAttributeClusterRevision(gInt16uAttributeCallback.Cancel(), gDefaultFailureCallback.Cancel()); } -// End of Cluster OtaSoftwareUpdateServer +// End of Cluster OtaSoftwareUpdateProvider // Cluster OnOff CHIP_ERROR chip_ime_AppendCommand_OnOff_Off(chip::Controller::Device * device, chip::EndpointId ZCLendpointId, chip::GroupId) diff --git a/src/controller/python/chip/clusters/CHIPClusters.py b/src/controller/python/chip/clusters/CHIPClusters.py index b47edc81a34297..8227efbdc84127 100644 --- a/src/controller/python/chip/clusters/CHIPClusters.py +++ b/src/controller/python/chip/clusters/CHIPClusters.py @@ -494,7 +494,7 @@ def ListClusterCommands(self): "timeoutMs": "int", }, }, - "OtaSoftwareUpdateServer": { + "OtaSoftwareUpdateProvider": { "ApplyUpdateRequest": { "updateToken": "bytes", "newVersion": "int", @@ -511,8 +511,8 @@ def ListClusterCommands(self): "currentVersion": "int", "protocolsSupported": "int", "location": "str", - "clientCanConsent": "int", - "metadataForServer": "bytes", + "requestorCanConsent": "int", + "metadataForProvider": "bytes", }, }, "OnOff": { @@ -1361,7 +1361,7 @@ def ListClusterAttributes(self): "type": "int", }, }, - "OtaSoftwareUpdateServer": { + "OtaSoftwareUpdateProvider": { "ClusterRevision": { "attributeId": 0xFFFD, "type": "int", @@ -2465,18 +2465,18 @@ def ClusterNetworkCommissioning_CommandUpdateWiFiNetwork(self, device: ctypes.c_ return self._chipLib.chip_ime_AppendCommand_NetworkCommissioning_UpdateWiFiNetwork( device, ZCLendpoint, ZCLgroupid, ssid, len(ssid), credentials, len(credentials), breadcrumb, timeoutMs ) - def ClusterOtaSoftwareUpdateServer_CommandApplyUpdateRequest(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int, updateToken: bytes, newVersion: int): - return self._chipLib.chip_ime_AppendCommand_OtaSoftwareUpdateServer_ApplyUpdateRequest( + def ClusterOtaSoftwareUpdateProvider_CommandApplyUpdateRequest(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int, updateToken: bytes, newVersion: int): + return self._chipLib.chip_ime_AppendCommand_OtaSoftwareUpdateProvider_ApplyUpdateRequest( device, ZCLendpoint, ZCLgroupid, updateToken, len(updateToken), newVersion ) - def ClusterOtaSoftwareUpdateServer_CommandNotifyUpdateApplied(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int, updateToken: bytes, currentVersion: int): - return self._chipLib.chip_ime_AppendCommand_OtaSoftwareUpdateServer_NotifyUpdateApplied( + def ClusterOtaSoftwareUpdateProvider_CommandNotifyUpdateApplied(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int, updateToken: bytes, currentVersion: int): + return self._chipLib.chip_ime_AppendCommand_OtaSoftwareUpdateProvider_NotifyUpdateApplied( device, ZCLendpoint, ZCLgroupid, updateToken, len(updateToken), currentVersion ) - def ClusterOtaSoftwareUpdateServer_CommandQueryImage(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int, vendorId: int, productId: int, imageType: int, hardwareVersion: int, currentVersion: int, protocolsSupported: int, location: bytes, clientCanConsent: int, metadataForServer: bytes): + def ClusterOtaSoftwareUpdateProvider_CommandQueryImage(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int, vendorId: int, productId: int, imageType: int, hardwareVersion: int, currentVersion: int, protocolsSupported: int, location: bytes, requestorCanConsent: int, metadataForProvider: bytes): location = location.encode("utf-8") + b'\x00' - return self._chipLib.chip_ime_AppendCommand_OtaSoftwareUpdateServer_QueryImage( - device, ZCLendpoint, ZCLgroupid, vendorId, productId, imageType, hardwareVersion, currentVersion, protocolsSupported, location, len(location), clientCanConsent, metadataForServer, len(metadataForServer) + return self._chipLib.chip_ime_AppendCommand_OtaSoftwareUpdateProvider_QueryImage( + device, ZCLendpoint, ZCLgroupid, vendorId, productId, imageType, hardwareVersion, currentVersion, protocolsSupported, location, len(location), requestorCanConsent, metadataForProvider, len(metadataForProvider) ) def ClusterOnOff_CommandOff(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): return self._chipLib.chip_ime_AppendCommand_OnOff_Off( @@ -3006,8 +3006,8 @@ def ClusterMediaPlayback_ReadAttributeClusterRevision(self, device: ctypes.c_voi return self._chipLib.chip_ime_ReadAttribute_MediaPlayback_ClusterRevision(device, ZCLendpoint, ZCLgroupid) def ClusterNetworkCommissioning_ReadAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): return self._chipLib.chip_ime_ReadAttribute_NetworkCommissioning_ClusterRevision(device, ZCLendpoint, ZCLgroupid) - def ClusterOtaSoftwareUpdateServer_ReadAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): - return self._chipLib.chip_ime_ReadAttribute_OtaSoftwareUpdateServer_ClusterRevision(device, ZCLendpoint, ZCLgroupid) + def ClusterOtaSoftwareUpdateProvider_ReadAttributeClusterRevision(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): + return self._chipLib.chip_ime_ReadAttribute_OtaSoftwareUpdateProvider_ClusterRevision(device, ZCLendpoint, ZCLgroupid) def ClusterOnOff_ReadAttributeOnOff(self, device: ctypes.c_void_p, ZCLendpoint: int, ZCLgroupid: int): return self._chipLib.chip_ime_ReadAttribute_OnOff_OnOff(device, ZCLendpoint, ZCLgroupid) def ClusterOnOff_ConfigureAttributeOnOff(self, device: ctypes.c_void_p, ZCLendpoint: int, minInterval: int, maxInterval: int, change: int): @@ -4243,19 +4243,19 @@ def InitLib(self, chipLib): # Cluster NetworkCommissioning ReadAttribute ClusterRevision self._chipLib.chip_ime_ReadAttribute_NetworkCommissioning_ClusterRevision.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] self._chipLib.chip_ime_ReadAttribute_NetworkCommissioning_ClusterRevision.restype = ctypes.c_uint32 - # Cluster OtaSoftwareUpdateServer - # Cluster OtaSoftwareUpdateServer Command ApplyUpdateRequest - self._chipLib.chip_ime_AppendCommand_OtaSoftwareUpdateServer_ApplyUpdateRequest.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_char_p, ctypes.c_uint32, ctypes.c_uint32] - self._chipLib.chip_ime_AppendCommand_OtaSoftwareUpdateServer_ApplyUpdateRequest.restype = ctypes.c_uint32 - # Cluster OtaSoftwareUpdateServer Command NotifyUpdateApplied - self._chipLib.chip_ime_AppendCommand_OtaSoftwareUpdateServer_NotifyUpdateApplied.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_char_p, ctypes.c_uint32, ctypes.c_uint32] - self._chipLib.chip_ime_AppendCommand_OtaSoftwareUpdateServer_NotifyUpdateApplied.restype = ctypes.c_uint32 - # Cluster OtaSoftwareUpdateServer Command QueryImage - self._chipLib.chip_ime_AppendCommand_OtaSoftwareUpdateServer_QueryImage.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16, ctypes.c_uint16, ctypes.c_uint16, ctypes.c_uint16, ctypes.c_uint32, ctypes.c_uint8, ctypes.c_char_p, ctypes.c_uint32, ctypes.c_uint8, ctypes.c_char_p, ctypes.c_uint32] - self._chipLib.chip_ime_AppendCommand_OtaSoftwareUpdateServer_QueryImage.restype = ctypes.c_uint32 - # Cluster OtaSoftwareUpdateServer ReadAttribute ClusterRevision - self._chipLib.chip_ime_ReadAttribute_OtaSoftwareUpdateServer_ClusterRevision.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] - self._chipLib.chip_ime_ReadAttribute_OtaSoftwareUpdateServer_ClusterRevision.restype = ctypes.c_uint32 + # Cluster OtaSoftwareUpdateProvider + # Cluster OtaSoftwareUpdateProvider Command ApplyUpdateRequest + self._chipLib.chip_ime_AppendCommand_OtaSoftwareUpdateProvider_ApplyUpdateRequest.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_char_p, ctypes.c_uint32, ctypes.c_uint32] + self._chipLib.chip_ime_AppendCommand_OtaSoftwareUpdateProvider_ApplyUpdateRequest.restype = ctypes.c_uint32 + # Cluster OtaSoftwareUpdateProvider Command NotifyUpdateApplied + self._chipLib.chip_ime_AppendCommand_OtaSoftwareUpdateProvider_NotifyUpdateApplied.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_char_p, ctypes.c_uint32, ctypes.c_uint32] + self._chipLib.chip_ime_AppendCommand_OtaSoftwareUpdateProvider_NotifyUpdateApplied.restype = ctypes.c_uint32 + # Cluster OtaSoftwareUpdateProvider Command QueryImage + self._chipLib.chip_ime_AppendCommand_OtaSoftwareUpdateProvider_QueryImage.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16, ctypes.c_uint16, ctypes.c_uint16, ctypes.c_uint16, ctypes.c_uint16, ctypes.c_uint32, ctypes.c_uint8, ctypes.c_char_p, ctypes.c_uint32, ctypes.c_uint8, ctypes.c_char_p, ctypes.c_uint32] + self._chipLib.chip_ime_AppendCommand_OtaSoftwareUpdateProvider_QueryImage.restype = ctypes.c_uint32 + # Cluster OtaSoftwareUpdateProvider ReadAttribute ClusterRevision + self._chipLib.chip_ime_ReadAttribute_OtaSoftwareUpdateProvider_ClusterRevision.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] + self._chipLib.chip_ime_ReadAttribute_OtaSoftwareUpdateProvider_ClusterRevision.restype = ctypes.c_uint32 # Cluster OnOff # Cluster OnOff Command Off self._chipLib.chip_ime_AppendCommand_OnOff_Off.argtypes = [ctypes.c_void_p, ctypes.c_uint8, ctypes.c_uint16] diff --git a/src/darwin/Framework/CHIP/gen/CHIPClustersObjc.h b/src/darwin/Framework/CHIP/gen/CHIPClustersObjc.h index a4a555368af4ca..72b416531768f6 100644 --- a/src/darwin/Framework/CHIP/gen/CHIPClustersObjc.h +++ b/src/darwin/Framework/CHIP/gen/CHIPClustersObjc.h @@ -766,25 +766,25 @@ NS_ASSUME_NONNULL_BEGIN @end /** - * Cluster OTA Software Update Server + * Cluster OTA Software Update Provider * */ -@interface CHIPOtaSoftwareUpdateServer : CHIPCluster +@interface CHIPOtaSoftwareUpdateProvider : CHIPCluster - (void)applyUpdateRequest:(NSData *)updateToken newVersion:(uint32_t)newVersion responseHandler:(ResponseHandler)responseHandler; - (void)notifyUpdateApplied:(NSData *)updateToken currentVersion:(uint32_t)currentVersion responseHandler:(ResponseHandler)responseHandler; - (void)queryImage:(uint16_t)vendorId - productId:(uint16_t)productId - imageType:(uint16_t)imageType - hardwareVersion:(uint16_t)hardwareVersion - currentVersion:(uint32_t)currentVersion - protocolsSupported:(uint8_t)protocolsSupported - location:(NSString *)location - clientCanConsent:(uint8_t)clientCanConsent - metadataForServer:(NSData *)metadataForServer - responseHandler:(ResponseHandler)responseHandler; + productId:(uint16_t)productId + imageType:(uint16_t)imageType + hardwareVersion:(uint16_t)hardwareVersion + currentVersion:(uint32_t)currentVersion + protocolsSupported:(uint8_t)protocolsSupported + location:(NSString *)location + requestorCanConsent:(uint8_t)requestorCanConsent + metadataForProvider:(NSData *)metadataForProvider + responseHandler:(ResponseHandler)responseHandler; - (void)readAttributeClusterRevisionWithResponseHandler:(ResponseHandler)responseHandler; diff --git a/src/darwin/Framework/CHIP/gen/CHIPClustersObjc.mm b/src/darwin/Framework/CHIP/gen/CHIPClustersObjc.mm index 0fac7ce7397958..90edd0ef5f4ea4 100644 --- a/src/darwin/Framework/CHIP/gen/CHIPClustersObjc.mm +++ b/src/darwin/Framework/CHIP/gen/CHIPClustersObjc.mm @@ -2183,22 +2183,22 @@ static void CallbackFn(void * context, uint8_t errorCode, uint8_t * debugText) dispatch_queue_t mQueue; }; -class CHIPOtaSoftwareUpdateServerClusterApplyUpdateRequestResponseCallbackBridge - : public Callback::Callback { +class CHIPOtaSoftwareUpdateProviderClusterApplyUpdateRequestResponseCallbackBridge + : public Callback::Callback { public: - CHIPOtaSoftwareUpdateServerClusterApplyUpdateRequestResponseCallbackBridge(ResponseHandler handler, dispatch_queue_t queue) - : Callback::Callback(CallbackFn, this) + CHIPOtaSoftwareUpdateProviderClusterApplyUpdateRequestResponseCallbackBridge(ResponseHandler handler, dispatch_queue_t queue) + : Callback::Callback(CallbackFn, this) , mHandler(handler) , mQueue(queue) { } - ~CHIPOtaSoftwareUpdateServerClusterApplyUpdateRequestResponseCallbackBridge() {}; + ~CHIPOtaSoftwareUpdateProviderClusterApplyUpdateRequestResponseCallbackBridge() {}; static void CallbackFn(void * context, uint8_t action, uint32_t delayedActionTime) { - CHIPOtaSoftwareUpdateServerClusterApplyUpdateRequestResponseCallbackBridge * callback - = reinterpret_cast(context); + CHIPOtaSoftwareUpdateProviderClusterApplyUpdateRequestResponseCallbackBridge * callback + = reinterpret_cast(context); if (callback && callback->mQueue) { dispatch_async(callback->mQueue, ^{ callback->mHandler(nil, @ { @@ -2216,23 +2216,23 @@ static void CallbackFn(void * context, uint8_t action, uint32_t delayedActionTim dispatch_queue_t mQueue; }; -class CHIPOtaSoftwareUpdateServerClusterQueryImageResponseCallbackBridge - : public Callback::Callback { +class CHIPOtaSoftwareUpdateProviderClusterQueryImageResponseCallbackBridge + : public Callback::Callback { public: - CHIPOtaSoftwareUpdateServerClusterQueryImageResponseCallbackBridge(ResponseHandler handler, dispatch_queue_t queue) - : Callback::Callback(CallbackFn, this) + CHIPOtaSoftwareUpdateProviderClusterQueryImageResponseCallbackBridge(ResponseHandler handler, dispatch_queue_t queue) + : Callback::Callback(CallbackFn, this) , mHandler(handler) , mQueue(queue) { } - ~CHIPOtaSoftwareUpdateServerClusterQueryImageResponseCallbackBridge() {}; + ~CHIPOtaSoftwareUpdateProviderClusterQueryImageResponseCallbackBridge() {}; static void CallbackFn(void * context, uint32_t delayedActionTime, uint8_t * imageURI, uint32_t softwareVersion, - chip::ByteSpan updateToken, uint8_t userConsentNeeded, chip::ByteSpan metadataForClient) + chip::ByteSpan updateToken, uint8_t userConsentNeeded, chip::ByteSpan metadataForRequestor) { - CHIPOtaSoftwareUpdateServerClusterQueryImageResponseCallbackBridge * callback - = reinterpret_cast(context); + CHIPOtaSoftwareUpdateProviderClusterQueryImageResponseCallbackBridge * callback + = reinterpret_cast(context); if (callback && callback->mQueue) { dispatch_async(callback->mQueue, ^{ callback->mHandler(nil, @ { @@ -2241,7 +2241,7 @@ static void CallbackFn(void * context, uint32_t delayedActionTime, uint8_t * ima @"softwareVersion" : [NSNumber numberWithUnsignedLong:softwareVersion], @"updateToken" : [NSData dataWithBytes:updateToken.data() length:updateToken.size()], @"userConsentNeeded" : [NSNumber numberWithUnsignedChar:userConsentNeeded], - @"metadataForClient" : [NSData dataWithBytes:metadataForClient.data() length:metadataForClient.size()], + @"metadataForRequestor" : [NSData dataWithBytes:metadataForRequestor.data() length:metadataForRequestor.size()], }); callback->Cancel(); delete callback; @@ -11874,11 +11874,11 @@ - (void)readAttributeClusterRevisionWithResponseHandler:(ResponseHandler)respons @end -@interface CHIPOtaSoftwareUpdateServer () -@property (readonly) Controller::OtaSoftwareUpdateServerCluster cppCluster; +@interface CHIPOtaSoftwareUpdateProvider () +@property (readonly) Controller::OtaSoftwareUpdateProviderCluster cppCluster; @end -@implementation CHIPOtaSoftwareUpdateServer +@implementation CHIPOtaSoftwareUpdateProvider - (Controller::ClusterBase *)getCluster { @@ -11887,8 +11887,8 @@ @implementation CHIPOtaSoftwareUpdateServer - (void)applyUpdateRequest:(NSData *)updateToken newVersion:(uint32_t)newVersion responseHandler:(ResponseHandler)responseHandler { - CHIPOtaSoftwareUpdateServerClusterApplyUpdateRequestResponseCallbackBridge * onSuccess - = new CHIPOtaSoftwareUpdateServerClusterApplyUpdateRequestResponseCallbackBridge(responseHandler, [self callbackQueue]); + CHIPOtaSoftwareUpdateProviderClusterApplyUpdateRequestResponseCallbackBridge * onSuccess + = new CHIPOtaSoftwareUpdateProviderClusterApplyUpdateRequestResponseCallbackBridge(responseHandler, [self callbackQueue]); if (!onSuccess) { responseHandler([CHIPError errorForCHIPErrorCode:CHIP_ERROR_INCORRECT_STATE], nil); return; @@ -11943,18 +11943,18 @@ - (void)notifyUpdateApplied:(NSData *)updateToken } } - (void)queryImage:(uint16_t)vendorId - productId:(uint16_t)productId - imageType:(uint16_t)imageType - hardwareVersion:(uint16_t)hardwareVersion - currentVersion:(uint32_t)currentVersion - protocolsSupported:(uint8_t)protocolsSupported - location:(NSString *)location - clientCanConsent:(uint8_t)clientCanConsent - metadataForServer:(NSData *)metadataForServer - responseHandler:(ResponseHandler)responseHandler + productId:(uint16_t)productId + imageType:(uint16_t)imageType + hardwareVersion:(uint16_t)hardwareVersion + currentVersion:(uint32_t)currentVersion + protocolsSupported:(uint8_t)protocolsSupported + location:(NSString *)location + requestorCanConsent:(uint8_t)requestorCanConsent + metadataForProvider:(NSData *)metadataForProvider + responseHandler:(ResponseHandler)responseHandler { - CHIPOtaSoftwareUpdateServerClusterQueryImageResponseCallbackBridge * onSuccess - = new CHIPOtaSoftwareUpdateServerClusterQueryImageResponseCallbackBridge(responseHandler, [self callbackQueue]); + CHIPOtaSoftwareUpdateProviderClusterQueryImageResponseCallbackBridge * onSuccess + = new CHIPOtaSoftwareUpdateProviderClusterQueryImageResponseCallbackBridge(responseHandler, [self callbackQueue]); if (!onSuccess) { responseHandler([CHIPError errorForCHIPErrorCode:CHIP_ERROR_INCORRECT_STATE], nil); return; @@ -11973,7 +11973,7 @@ - (void)queryImage:(uint16_t)vendorId currentVersion, protocolsSupported, chip::ByteSpan((const uint8_t *) [location dataUsingEncoding:NSUTF8StringEncoding].bytes, [location lengthOfBytesUsingEncoding:NSUTF8StringEncoding]), - clientCanConsent, chip::ByteSpan((const uint8_t *) metadataForServer.bytes, metadataForServer.length)); + requestorCanConsent, chip::ByteSpan((const uint8_t *) metadataForProvider.bytes, metadataForProvider.length)); }); if (err != CHIP_NO_ERROR) { diff --git a/src/darwin/Framework/CHIP/templates/helper.js b/src/darwin/Framework/CHIP/templates/helper.js index 9ec957d36e74e1..5321145dc83215 100644 --- a/src/darwin/Framework/CHIP/templates/helper.js +++ b/src/darwin/Framework/CHIP/templates/helper.js @@ -39,7 +39,7 @@ function asExpectedEndpointForCluster(clusterName) case 'NetworkCommissioning': case 'OperationalCredentials': case 'TrustedRootCertificates': - case 'OtaSoftwareUpdateServer': + case 'OtaSoftwareUpdateProvider': return 0; } return 1; diff --git a/src/darwin/Framework/CHIPTests/CHIPClustersTests.m b/src/darwin/Framework/CHIPTests/CHIPClustersTests.m index 9ee592ed8b0177..433d9ab66ba67d 100644 --- a/src/darwin/Framework/CHIPTests/CHIPClustersTests.m +++ b/src/darwin/Framework/CHIPTests/CHIPClustersTests.m @@ -5722,18 +5722,18 @@ - (void)testSendClusterNetworkCommissioningReadAttributeClusterRevisionWithRespo [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterOtaSoftwareUpdateServerReadAttributeClusterRevisionWithResponseHandler +- (void)testSendClusterOtaSoftwareUpdateProviderReadAttributeClusterRevisionWithResponseHandler { XCTestExpectation * expectation = - [self expectationWithDescription:@"OtaSoftwareUpdateServerReadAttributeClusterRevisionWithResponseHandler"]; + [self expectationWithDescription:@"OtaSoftwareUpdateProviderReadAttributeClusterRevisionWithResponseHandler"]; CHIPDevice * device = GetPairedDevice(kDeviceId); dispatch_queue_t queue = dispatch_get_main_queue(); - CHIPOtaSoftwareUpdateServer * cluster = [[CHIPOtaSoftwareUpdateServer alloc] initWithDevice:device endpoint:0 queue:queue]; + CHIPOtaSoftwareUpdateProvider * cluster = [[CHIPOtaSoftwareUpdateProvider alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); [cluster readAttributeClusterRevisionWithResponseHandler:^(NSError * err, NSDictionary * values) { - NSLog(@"OtaSoftwareUpdateServer ClusterRevision Error: %@", err); + NSLog(@"OtaSoftwareUpdateProvider ClusterRevision Error: %@", err); XCTAssertEqual(err.code, 0); [expectation fulfill]; }]; From 7dd4183d8e0cbe6f5b08d99a6aacc9104e34f718 Mon Sep 17 00:00:00 2001 From: Trevor Holbrook Date: Tue, 29 Jun 2021 23:29:43 +0000 Subject: [PATCH 2/2] regenerate to fix merge conflicts --- .../gen/IMClusterCommandHandler.cpp | 6 +- .../chip-tool/commands/clusters/Commands.h | 16 +- .../tv-common/gen/IMClusterCommandHandler.cpp | 6 +- src/app/common/gen/client-command-macro.h | 8191 +---------------- .../data_model/gen/CHIPClusters.cpp | 7 - .../gen/IMClusterCommandHandler.cpp | 6 +- 6 files changed, 22 insertions(+), 8210 deletions(-) diff --git a/examples/all-clusters-app/all-clusters-common/gen/IMClusterCommandHandler.cpp b/examples/all-clusters-app/all-clusters-common/gen/IMClusterCommandHandler.cpp index 44eac216959822..e8566516e3f21a 100644 --- a/examples/all-clusters-app/all-clusters-common/gen/IMClusterCommandHandler.cpp +++ b/examples/all-clusters-app/all-clusters-common/gen/IMClusterCommandHandler.cpp @@ -5330,11 +5330,7 @@ void DispatchServerCommand(app::Command * apCommandObj, CommandId aCommandId, En apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kNotFound, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::UnsupportedCommand); -<<<<<<< HEAD - ChipLogError(Zcl, "Unknown command %" PRIx16 " for cluster %" PRIx16, aCommandId, ZCL_OTA_PROVIDER_CLUSTER_ID); -======= - ChipLogError(Zcl, "Unknown command %" PRIx8 " for cluster %" PRIx16, aCommandId, ZCL_OTA_SERVER_CLUSTER_ID); ->>>>>>> master + ChipLogError(Zcl, "Unknown command %" PRIx8 " for cluster %" PRIx16, aCommandId, ZCL_OTA_PROVIDER_CLUSTER_ID); return; } } diff --git a/examples/chip-tool/commands/clusters/Commands.h b/examples/chip-tool/commands/clusters/Commands.h index ee3489e8480447..cb358e34b01bbf 100644 --- a/examples/chip-tool/commands/clusters/Commands.h +++ b/examples/chip-tool/commands/clusters/Commands.h @@ -12465,17 +12465,6 @@ class OtaSoftwareUpdateProviderQueryImage : public ModelCommand public: OtaSoftwareUpdateProviderQueryImage() : ModelCommand("query-image") { -<<<<<<< HEAD - AddArgument("vendorId", 0, UINT16_MAX, &mVendorId); - AddArgument("productId", 0, UINT16_MAX, &mProductId); - AddArgument("imageType", 0, UINT16_MAX, &mImageType); - AddArgument("hardwareVersion", 0, UINT16_MAX, &mHardwareVersion); - AddArgument("currentVersion", 0, UINT32_MAX, &mCurrentVersion); - AddArgument("protocolsSupported", 0, UINT8_MAX, &mProtocolsSupported); - AddArgument("location", &mLocation); - AddArgument("requestorCanConsent", 0, UINT8_MAX, &mRequestorCanConsent); - AddArgument("metadataForProvider", &mMetadataForProvider); -======= AddArgument("VendorId", 0, UINT16_MAX, &mVendorId); AddArgument("ProductId", 0, UINT16_MAX, &mProductId); AddArgument("ImageType", 0, UINT16_MAX, &mImageType); @@ -12483,9 +12472,8 @@ class OtaSoftwareUpdateProviderQueryImage : public ModelCommand AddArgument("CurrentVersion", 0, UINT32_MAX, &mCurrentVersion); AddArgument("ProtocolsSupported", 0, UINT8_MAX, &mProtocolsSupported); AddArgument("Location", &mLocation); - AddArgument("ClientCanConsent", 0, UINT8_MAX, &mClientCanConsent); - AddArgument("MetadataForServer", &mMetadataForServer); ->>>>>>> master + AddArgument("RequestorCanConsent", 0, UINT8_MAX, &mRequestorCanConsent); + AddArgument("MetadataForProvider", &mMetadataForProvider); ModelCommand::AddArguments(); } ~OtaSoftwareUpdateProviderQueryImage() diff --git a/examples/tv-app/tv-common/gen/IMClusterCommandHandler.cpp b/examples/tv-app/tv-common/gen/IMClusterCommandHandler.cpp index a1bbca3948f21b..1ef26a9f88d268 100644 --- a/examples/tv-app/tv-common/gen/IMClusterCommandHandler.cpp +++ b/examples/tv-app/tv-common/gen/IMClusterCommandHandler.cpp @@ -2805,11 +2805,7 @@ void DispatchServerCommand(app::Command * apCommandObj, CommandId aCommandId, En apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kNotFound, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::UnsupportedCommand); -<<<<<<< HEAD - ChipLogError(Zcl, "Unknown command %" PRIx16 " for cluster %" PRIx16, aCommandId, ZCL_OTA_PROVIDER_CLUSTER_ID); -======= - ChipLogError(Zcl, "Unknown command %" PRIx8 " for cluster %" PRIx16, aCommandId, ZCL_OTA_SERVER_CLUSTER_ID); ->>>>>>> master + ChipLogError(Zcl, "Unknown command %" PRIx8 " for cluster %" PRIx16, aCommandId, ZCL_OTA_PROVIDER_CLUSTER_ID); return; } } diff --git a/src/app/common/gen/client-command-macro.h b/src/app/common/gen/client-command-macro.h index d603329ffab3d0..ff46732d39bde1 100644 --- a/src/app/common/gen/client-command-macro.h +++ b/src/app/common/gen/client-command-macro.h @@ -1739,17 +1739,17 @@ * @param protocolsSupported OTADownloadProtocol [] * @param protocolsSupportedLen int * @param location CHAR_STRING - * @param clientCanConsent BOOLEAN - * @param metadataForServer OCTET_STRING + * @param requestorCanConsent BOOLEAN + * @param metadataForProvider OCTET_STRING */ #define emberAfFillCommandOTA \ - Software Update ServerClusterQueryImage(vendorId, productId, imageType, hardwareVersion, currentVersion, protocolsSupported, \ - protocolsSupportedLen, location, clientCanConsent, metadataForServer) \ + Software Update ProviderClusterQueryImage(vendorId, productId, imageType, hardwareVersion, currentVersion, protocolsSupported, \ + protocolsSupportedLen, location, requestorCanConsent, metadataForProvider) \ emberAfFillExternalBuffer(mask, \ \ ZCL_QUERY_IMAGE_COMMAND_ID, "uuuuubuuu", vendorId, productId, imageType, hardwareVersion, \ - currentVersion, protocolsSupported, protocolsSupportedLen, location, clientCanConsent, \ - metadataForServer); + currentVersion, protocolsSupported, protocolsSupportedLen, location, requestorCanConsent, \ + metadataForProvider); /** @brief Command description for ApplyUpdateRequest * @@ -1758,7 +1758,7 @@ * @param newVersion INT32U */ #define emberAfFillCommandOTA \ - Software Update ServerClusterApplyUpdateRequest(updateToken, newVersion) \ + Software Update ProviderClusterApplyUpdateRequest(updateToken, newVersion) \ emberAfFillExternalBuffer(mask, \ \ ZCL_APPLY_UPDATE_REQUEST_COMMAND_ID, "uu", updateToken, newVersion); @@ -1770,7 +1770,7 @@ * @param currentVersion INT32U */ #define emberAfFillCommandOTA \ - Software Update ServerClusterNotifyUpdateApplied(updateToken, currentVersion) \ + Software Update ProviderClusterNotifyUpdateApplied(updateToken, currentVersion) \ emberAfFillExternalBuffer(mask, \ \ ZCL_NOTIFY_UPDATE_APPLIED_COMMAND_ID, "uu", updateToken, currentVersion); @@ -1784,15 +1784,15 @@ * @param softwareVersion INT32U * @param updateToken OCTET_STRING * @param userConsentNeeded BOOLEAN - * @param metadataForClient OCTET_STRING + * @param metadataForRequestor OCTET_STRING */ #define emberAfFillCommandOTA \ - Software Update ServerClusterQueryImageResponse(status, delayedActionTime, imageURI, softwareVersion, updateToken, \ - userConsentNeeded, metadataForClient) \ + Software Update ProviderClusterQueryImageResponse(status, delayedActionTime, imageURI, softwareVersion, updateToken, \ + userConsentNeeded, metadataForRequestor) \ emberAfFillExternalBuffer(mask, \ \ ZCL_QUERY_IMAGE_RESPONSE_COMMAND_ID, "uuuuuuu", status, delayedActionTime, imageURI, \ - softwareVersion, updateToken, userConsentNeeded, metadataForClient); + softwareVersion, updateToken, userConsentNeeded, metadataForRequestor); /** @brief Command description for ApplyUpdateRequestResponse * @@ -1801,24 +1801,24 @@ * @param delayedActionTime INT32U */ #define emberAfFillCommandOTA \ - Software Update ServerClusterApplyUpdateRequestResponse(action, delayedActionTime) \ + Software Update ProviderClusterApplyUpdateRequestResponse(action, delayedActionTime) \ emberAfFillExternalBuffer(mask, \ \ ZCL_APPLY_UPDATE_REQUEST_RESPONSE_COMMAND_ID, "uu", action, delayedActionTime); -/** @brief Command description for AnnounceOtaServer +/** @brief Command description for AnnounceOtaProvider * - * Command: AnnounceOtaServer + * Command: AnnounceOtaProvider * @param serverLocation OCTET_STRING * @param vendorId INT16U * @param announcementReason OTAAnnouncementReason * @param metadataForNode OCTET_STRING */ #define emberAfFillCommandOTA \ - Software Update ClientClusterAnnounceOtaServer(serverLocation, vendorId, announcementReason, metadataForNode) \ + Software Update RequestorClusterAnnounceOtaProvider(serverLocation, vendorId, announcementReason, metadataForNode) \ emberAfFillExternalBuffer(mask, \ \ - ZCL_ANNOUNCE_OTA_SERVER_COMMAND_ID, "uuuu", serverLocation, vendorId, announcementReason, \ + ZCL_ANNOUNCE_OTA_PROVIDER_COMMAND_ID, "uuuu", serverLocation, vendorId, announcementReason, \ metadataForNode); /** @brief Command description for ArmFailSafe @@ -2161,8165 +2161,8 @@ * * Command: ResetCounts */ -<<<<<<< HEAD -#define emberAfFillCommandPower \ - ProfileClusterGetOverallSchedulePriceResponse(price, priceTrailingDigit) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_OVERALL_SCHEDULE_PRICE_RESPONSE_COMMAND_ID, "uu", price, priceTrailingDigit); - -/** @brief Command description for EnergyPhasesScheduleNotification - * - * Command: EnergyPhasesScheduleNotification - * @param powerProfileId INT8U - */ -#define emberAfFillCommandPower \ - ProfileClusterEnergyPhasesScheduleNotification(powerProfileId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_ENERGY_PHASES_SCHEDULE_NOTIFICATION_COMMAND_ID, "u", powerProfileId); - -/** @brief Command description for PowerProfilesStateNotification - * - * Command: PowerProfilesStateNotification - * @param powerProfileCount INT8U - */ -#define emberAfFillCommandPower \ - ProfileClusterPowerProfilesStateNotification(powerProfileCount) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_POWER_PROFILES_STATE_NOTIFICATION_COMMAND_ID, "u", powerProfileCount); - -/** @brief Command description for EnergyPhasesScheduleNotification - * - * Command: EnergyPhasesScheduleNotification - * @param numOfScheduledPhases INT8U - */ -#define emberAfFillCommandPower \ - ProfileClusterEnergyPhasesScheduleNotification(numOfScheduledPhases) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_ENERGY_PHASES_SCHEDULE_NOTIFICATION_COMMAND_ID, "u", numOfScheduledPhases); - -/** @brief Command description for PowerProfilesStateNotification - * - * Command: PowerProfilesStateNotification - * @param powerProfileRecords PowerProfileRecord [] - * @param powerProfileRecordsLen int - */ -#define emberAfFillCommandPower \ - ProfileClusterPowerProfilesStateNotification(powerProfileRecords, powerProfileRecordsLen) emberAfFillExternalBuffer( \ - mask, \ - \ - ZCL_POWER_PROFILES_STATE_NOTIFICATION_COMMAND_ID, "b", powerProfileRecords, powerProfileRecordsLen); - -/** @brief Command description for EnergyPhasesScheduleNotification - * - * Command: EnergyPhasesScheduleNotification - * @param scheduledPhases ScheduledPhase [] - * @param scheduledPhasesLen int - */ -#define emberAfFillCommandPower \ - ProfileClusterEnergyPhasesScheduleNotification(scheduledPhases, scheduledPhasesLen) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_ENERGY_PHASES_SCHEDULE_NOTIFICATION_COMMAND_ID, "b", scheduledPhases, scheduledPhasesLen); - -/** @brief Command description for GetOverallSchedulePrice - * - * Command: GetOverallSchedulePrice - */ -#define emberAfFillCommandPower \ - ProfileClusterGetOverallSchedulePrice() emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_OVERALL_SCHEDULE_PRICE_COMMAND_ID, "", ); - -/** @brief Command description for EnergyPhasesScheduleResponse - * - * Command: EnergyPhasesScheduleResponse - * @param powerProfileId INT8U - * @param numOfScheduledPhases INT8U - * @param scheduledPhases ScheduledPhase [] - * @param scheduledPhasesLen int - */ -#define emberAfFillCommandPower \ - ProfileClusterEnergyPhasesScheduleResponse(powerProfileId, numOfScheduledPhases, scheduledPhases, scheduledPhasesLen) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_ENERGY_PHASES_SCHEDULE_RESPONSE_COMMAND_ID, "uub", powerProfileId, numOfScheduledPhases, \ - scheduledPhases, scheduledPhasesLen); - -/** @brief Command description for PowerProfileScheduleConstraintsRequest - * - * Command: PowerProfileScheduleConstraintsRequest - * @param powerProfileId INT8U - */ -#define emberAfFillCommandPower \ - ProfileClusterPowerProfileScheduleConstraintsRequest(powerProfileId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_POWER_PROFILE_SCHEDULE_CONSTRAINTS_REQUEST_COMMAND_ID, "u", powerProfileId); - -/** @brief Command description for EnergyPhasesScheduleRequest - * - * Command: EnergyPhasesScheduleRequest - * @param powerProfileId INT8U - */ -#define emberAfFillCommandPower \ - ProfileClusterEnergyPhasesScheduleRequest(powerProfileId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_ENERGY_PHASES_SCHEDULE_REQUEST_COMMAND_ID, "u", powerProfileId); - -/** @brief Command description for EnergyPhasesScheduleStateRequest - * - * Command: EnergyPhasesScheduleStateRequest - * @param powerProfileId INT8U - */ -#define emberAfFillCommandPower \ - ProfileClusterEnergyPhasesScheduleStateRequest(powerProfileId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_ENERGY_PHASES_SCHEDULE_STATE_REQUEST_COMMAND_ID, "u", powerProfileId); - -/** @brief Command description for EnergyPhasesScheduleStateResponse - * - * Command: EnergyPhasesScheduleStateResponse - * @param powerProfileId INT8U - * @param numOfScheduledPhases INT8U - * @param scheduledPhases ScheduledPhase [] - * @param scheduledPhasesLen int - */ -#define emberAfFillCommandPower \ - ProfileClusterEnergyPhasesScheduleStateResponse(powerProfileId, numOfScheduledPhases, scheduledPhases, scheduledPhasesLen) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_ENERGY_PHASES_SCHEDULE_STATE_RESPONSE_COMMAND_ID, "uub", powerProfileId, \ - numOfScheduledPhases, scheduledPhases, scheduledPhasesLen); - -/** @brief Command description for GetPowerProfilePriceExtendedResponse - * - * Command: GetPowerProfilePriceExtendedResponse - * @param powerProfileId INT8U - */ -#define emberAfFillCommandPower \ - ProfileClusterGetPowerProfilePriceExtendedResponse(powerProfileId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_POWER_PROFILE_PRICE_EXTENDED_RESPONSE_COMMAND_ID, "u", powerProfileId); - -/** @brief Command description for EnergyPhasesScheduleStateNotification - * - * Command: EnergyPhasesScheduleStateNotification - * @param powerProfileId INT8U - */ -#define emberAfFillCommandPower \ - ProfileClusterEnergyPhasesScheduleStateNotification(powerProfileId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_ENERGY_PHASES_SCHEDULE_STATE_NOTIFICATION_COMMAND_ID, "u", powerProfileId); - -/** @brief Command description for GetPowerProfilePriceExtendedResponse - * - * Command: GetPowerProfilePriceExtendedResponse - * @param currency INT16U - */ -#define emberAfFillCommandPower \ - ProfileClusterGetPowerProfilePriceExtendedResponse(currency) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_POWER_PROFILE_PRICE_EXTENDED_RESPONSE_COMMAND_ID, "u", currency); - -/** @brief Command description for EnergyPhasesScheduleStateNotification - * - * Command: EnergyPhasesScheduleStateNotification - * @param numOfScheduledPhases INT8U - */ -#define emberAfFillCommandPower \ - ProfileClusterEnergyPhasesScheduleStateNotification(numOfScheduledPhases) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_ENERGY_PHASES_SCHEDULE_STATE_NOTIFICATION_COMMAND_ID, "u", numOfScheduledPhases); - -/** @brief Command description for GetPowerProfilePriceExtendedResponse - * - * Command: GetPowerProfilePriceExtendedResponse - * @param price INT32U - */ -#define emberAfFillCommandPower \ - ProfileClusterGetPowerProfilePriceExtendedResponse(price) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_POWER_PROFILE_PRICE_EXTENDED_RESPONSE_COMMAND_ID, "u", price); - -/** @brief Command description for EnergyPhasesScheduleStateNotification - * - * Command: EnergyPhasesScheduleStateNotification - * @param scheduledPhases ScheduledPhase [] - * @param scheduledPhasesLen int - */ -#define emberAfFillCommandPower \ - ProfileClusterEnergyPhasesScheduleStateNotification(scheduledPhases, scheduledPhasesLen) emberAfFillExternalBuffer( \ - mask, \ - \ - ZCL_ENERGY_PHASES_SCHEDULE_STATE_NOTIFICATION_COMMAND_ID, "b", scheduledPhases, scheduledPhasesLen); - -/** @brief Command description for GetPowerProfilePriceExtendedResponse - * - * Command: GetPowerProfilePriceExtendedResponse - * @param priceTrailingDigit INT8U - */ -#define emberAfFillCommandPower \ - ProfileClusterGetPowerProfilePriceExtendedResponse(priceTrailingDigit) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_POWER_PROFILE_PRICE_EXTENDED_RESPONSE_COMMAND_ID, "u", priceTrailingDigit); - -/** @brief Command description for PowerProfileScheduleConstraintsNotification - * - * Command: PowerProfileScheduleConstraintsNotification - * @param powerProfileId INT8U - * @param startAfter INT16U - * @param stopBefore INT16U - */ -#define emberAfFillCommandPower \ - ProfileClusterPowerProfileScheduleConstraintsNotification(powerProfileId, startAfter, stopBefore) emberAfFillExternalBuffer( \ - mask, \ - \ - ZCL_POWER_PROFILE_SCHEDULE_CONSTRAINTS_NOTIFICATION_COMMAND_ID, "uuu", powerProfileId, startAfter, stopBefore); - -/** @brief Command description for PowerProfileScheduleConstraintsResponse - * - * Command: PowerProfileScheduleConstraintsResponse - * @param powerProfileId INT8U - * @param startAfter INT16U - * @param stopBefore INT16U - */ -#define emberAfFillCommandPower \ - ProfileClusterPowerProfileScheduleConstraintsResponse(powerProfileId, startAfter, stopBefore) emberAfFillExternalBuffer( \ - mask, \ - \ - ZCL_POWER_PROFILE_SCHEDULE_CONSTRAINTS_RESPONSE_COMMAND_ID, "uuu", powerProfileId, startAfter, stopBefore); - -/** @brief Command description for GetPowerProfilePriceExtended - * - * Command: GetPowerProfilePriceExtended - * @param options BITMAP8 - * @param powerProfileId INT8U - * @param powerProfileStartTime INT16U - */ -#define emberAfFillCommandPower \ - ProfileClusterGetPowerProfilePriceExtended(options, powerProfileId, powerProfileStartTime) emberAfFillExternalBuffer( \ - mask, \ - \ - ZCL_GET_POWER_PROFILE_PRICE_EXTENDED_COMMAND_ID, "uuu", options, powerProfileId, powerProfileStartTime); - -/** @brief Command description for ExecutionOfACommand - * - * Command: ExecutionOfACommand - * @param commandId CommandIdentification - */ -#define emberAfFillCommandAppliance \ - ControlClusterExecutionOfACommand(commandId) emberAfFillExternalBuffer(mask, \ - \ - ZCL_EXECUTION_OF_A_COMMAND_COMMAND_ID, "u", commandId); - -/** @brief Command description for SignalStateResponse - * - * Command: SignalStateResponse - * @param applianceStatus ApplianceStatus - * @param remoteEnableFlagsAndDeviceStatus2 RemoteEnableFlagsAndDeviceStatus2 - * @param applianceStatus2 INT24U - */ -#define emberAfFillCommandAppliance \ - ControlClusterSignalStateResponse(applianceStatus, remoteEnableFlagsAndDeviceStatus2, applianceStatus2) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_SIGNAL_STATE_RESPONSE_COMMAND_ID, "uuu", applianceStatus, remoteEnableFlagsAndDeviceStatus2, \ - applianceStatus2); - -/** @brief Command description for SignalState - * - * Command: SignalState - */ -#define emberAfFillCommandAppliance \ - ControlClusterSignalState() emberAfFillExternalBuffer(mask, \ - \ - ZCL_SIGNAL_STATE_COMMAND_ID, "", ); - -/** @brief Command description for SignalStateNotification - * - * Command: SignalStateNotification - * @param applianceStatus ApplianceStatus - * @param remoteEnableFlagsAndDeviceStatus2 RemoteEnableFlagsAndDeviceStatus2 - * @param applianceStatus2 INT24U - */ -#define emberAfFillCommandAppliance \ - ControlClusterSignalStateNotification(applianceStatus, remoteEnableFlagsAndDeviceStatus2, applianceStatus2) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_SIGNAL_STATE_NOTIFICATION_COMMAND_ID, "uuu", applianceStatus, \ - remoteEnableFlagsAndDeviceStatus2, applianceStatus2); - -/** @brief Command description for WriteFunctions - * - * Command: WriteFunctions - * @param functionId INT16U - * @param functionDataType ENUM8 - * @param functionData INT8U [] - * @param functionDataLen int - */ -#define emberAfFillCommandAppliance \ - ControlClusterWriteFunctions(functionId, functionDataType, functionData, functionDataLen) emberAfFillExternalBuffer( \ - mask, \ - \ - ZCL_WRITE_FUNCTIONS_COMMAND_ID, "uub", functionId, functionDataType, functionData, functionDataLen); - -/** @brief Command description for OverloadPauseResume - * - * Command: OverloadPauseResume - */ -#define emberAfFillCommandAppliance \ - ControlClusterOverloadPauseResume() emberAfFillExternalBuffer(mask, \ - \ - ZCL_OVERLOAD_PAUSE_RESUME_COMMAND_ID, "", ); - -/** @brief Command description for OverloadPause - * - * Command: OverloadPause - */ -#define emberAfFillCommandAppliance \ - ControlClusterOverloadPause() emberAfFillExternalBuffer(mask, \ - \ - ZCL_OVERLOAD_PAUSE_COMMAND_ID, "", ); - -/** @brief Command description for OverloadWarning - * - * Command: OverloadWarning - * @param warningEvent WarningEvent - */ -#define emberAfFillCommandAppliance \ - ControlClusterOverloadWarning(warningEvent) emberAfFillExternalBuffer(mask, \ - \ - ZCL_OVERLOAD_WARNING_COMMAND_ID, "u", warningEvent); - -/** @brief Command description for CheckIn - * - * Command: CheckIn - */ -#define emberAfFillCommandPoll \ - ControlClusterCheckIn() emberAfFillExternalBuffer(mask, \ - \ - ZCL_CHECK_IN_COMMAND_ID, "", ); - -/** @brief Command description for CheckInResponse - * - * Command: CheckInResponse - * @param startFastPolling BOOLEAN - * @param fastPollTimeout INT16U - */ -#define emberAfFillCommandPoll \ - ControlClusterCheckInResponse(startFastPolling, fastPollTimeout) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_CHECK_IN_RESPONSE_COMMAND_ID, "uu", startFastPolling, fastPollTimeout); - -/** @brief Command description for FastPollStop - * - * Command: FastPollStop - */ -#define emberAfFillCommandPoll \ - ControlClusterFastPollStop() emberAfFillExternalBuffer(mask, \ - \ - ZCL_FAST_POLL_STOP_COMMAND_ID, "", ); - -/** @brief Command description for SetLongPollInterval - * - * Command: SetLongPollInterval - * @param newLongPollInterval INT32U - */ -#define emberAfFillCommandPoll \ - ControlClusterSetLongPollInterval(newLongPollInterval) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_SET_LONG_POLL_INTERVAL_COMMAND_ID, "u", newLongPollInterval); - -/** @brief Command description for SetShortPollInterval - * - * Command: SetShortPollInterval - * @param newShortPollInterval INT16U - */ -#define emberAfFillCommandPoll \ - ControlClusterSetShortPollInterval(newShortPollInterval) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_SET_SHORT_POLL_INTERVAL_COMMAND_ID, "u", newShortPollInterval); - -/** @brief Command description for GpNotification - * - * Command: GpNotification - * @param options GpNotificationOption - */ -#define emberAfFillCommandGreen \ - PowerClusterGpNotification(options) emberAfFillExternalBuffer(mask, \ - \ - ZCL_GP_NOTIFICATION_COMMAND_ID, "u", options); - -/** @brief Command description for GpNotificationResponse - * - * Command: GpNotificationResponse - * @param options GpNotificationResponseOption - */ -#define emberAfFillCommandGreen \ - PowerClusterGpNotificationResponse(options) emberAfFillExternalBuffer(mask, \ - \ - ZCL_GP_NOTIFICATION_RESPONSE_COMMAND_ID, "u", options); - -/** @brief Command description for GpNotification - * - * Command: GpNotification - * @param gpdSrcId INT32U - */ -#define emberAfFillCommandGreen \ - PowerClusterGpNotification(gpdSrcId) emberAfFillExternalBuffer(mask, \ - \ - ZCL_GP_NOTIFICATION_COMMAND_ID, "u", gpdSrcId); - -/** @brief Command description for GpNotificationResponse - * - * Command: GpNotificationResponse - * @param gpdSrcId INT32U - */ -#define emberAfFillCommandGreen \ - PowerClusterGpNotificationResponse(gpdSrcId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GP_NOTIFICATION_RESPONSE_COMMAND_ID, "u", gpdSrcId); - -/** @brief Command description for GpNotification - * - * Command: GpNotification - * @param gpdIeee IEEE_ADDRESS - */ -#define emberAfFillCommandGreen \ - PowerClusterGpNotification(gpdIeee) emberAfFillExternalBuffer(mask, \ - \ - ZCL_GP_NOTIFICATION_COMMAND_ID, "u", gpdIeee); - -/** @brief Command description for GpNotificationResponse - * - * Command: GpNotificationResponse - * @param gpdIeee IEEE_ADDRESS - */ -#define emberAfFillCommandGreen \ - PowerClusterGpNotificationResponse(gpdIeee) emberAfFillExternalBuffer(mask, \ - \ - ZCL_GP_NOTIFICATION_RESPONSE_COMMAND_ID, "u", gpdIeee); - -/** @brief Command description for GpNotification - * - * Command: GpNotification - * @param gpdEndpoint INT8U - */ -#define emberAfFillCommandGreen \ - PowerClusterGpNotification(gpdEndpoint) emberAfFillExternalBuffer(mask, \ - \ - ZCL_GP_NOTIFICATION_COMMAND_ID, "u", gpdEndpoint); - -/** @brief Command description for GpNotificationResponse - * - * Command: GpNotificationResponse - * @param endpoint INT8U - */ -#define emberAfFillCommandGreen \ - PowerClusterGpNotificationResponse(endpoint) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GP_NOTIFICATION_RESPONSE_COMMAND_ID, "u", endpoint); - -/** @brief Command description for GpNotification - * - * Command: GpNotification - * @param gpdSecurityFrameCounter INT32U - */ -#define emberAfFillCommandGreen \ - PowerClusterGpNotification(gpdSecurityFrameCounter) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GP_NOTIFICATION_COMMAND_ID, "u", gpdSecurityFrameCounter); - -/** @brief Command description for GpNotificationResponse - * - * Command: GpNotificationResponse - * @param gpdSecurityFrameCounter INT32U - */ -#define emberAfFillCommandGreen \ - PowerClusterGpNotificationResponse(gpdSecurityFrameCounter) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GP_NOTIFICATION_RESPONSE_COMMAND_ID, "u", gpdSecurityFrameCounter); - -/** @brief Command description for GpNotification - * - * Command: GpNotification - * @param gpdCommandId INT8U - * @param gpdCommandPayload OCTET_STRING - * @param gppShortAddress INT16U - * @param gppDistance INT8U - */ -#define emberAfFillCommandGreen \ - PowerClusterGpNotification(gpdCommandId, gpdCommandPayload, gppShortAddress, gppDistance) emberAfFillExternalBuffer( \ - mask, \ - \ - ZCL_GP_NOTIFICATION_COMMAND_ID, "uuuu", gpdCommandId, gpdCommandPayload, gppShortAddress, gppDistance); - -/** @brief Command description for GpPairingSearch - * - * Command: GpPairingSearch - * @param options GpPairingSearchOption - */ -#define emberAfFillCommandGreen \ - PowerClusterGpPairingSearch(options) emberAfFillExternalBuffer(mask, \ - \ - ZCL_GP_PAIRING_SEARCH_COMMAND_ID, "u", options); - -/** @brief Command description for GpPairing - * - * Command: GpPairing - * @param options GpPairingOption - */ -#define emberAfFillCommandGreen \ - PowerClusterGpPairing(options) emberAfFillExternalBuffer(mask, \ - \ - ZCL_GP_PAIRING_COMMAND_ID, "u", options); - -/** @brief Command description for GpPairingSearch - * - * Command: GpPairingSearch - * @param gpdSrcId INT32U - */ -#define emberAfFillCommandGreen \ - PowerClusterGpPairingSearch(gpdSrcId) emberAfFillExternalBuffer(mask, \ - \ - ZCL_GP_PAIRING_SEARCH_COMMAND_ID, "u", gpdSrcId); - -/** @brief Command description for GpPairing - * - * Command: GpPairing - * @param gpdSrcId INT32U - */ -#define emberAfFillCommandGreen \ - PowerClusterGpPairing(gpdSrcId) emberAfFillExternalBuffer(mask, \ - \ - ZCL_GP_PAIRING_COMMAND_ID, "u", gpdSrcId); - -/** @brief Command description for GpPairingSearch - * - * Command: GpPairingSearch - * @param gpdIeee IEEE_ADDRESS - */ -#define emberAfFillCommandGreen \ - PowerClusterGpPairingSearch(gpdIeee) emberAfFillExternalBuffer(mask, \ - \ - ZCL_GP_PAIRING_SEARCH_COMMAND_ID, "u", gpdIeee); - -/** @brief Command description for GpPairing - * - * Command: GpPairing - * @param gpdIeee IEEE_ADDRESS - */ -#define emberAfFillCommandGreen \ - PowerClusterGpPairing(gpdIeee) emberAfFillExternalBuffer(mask, \ - \ - ZCL_GP_PAIRING_COMMAND_ID, "u", gpdIeee); - -/** @brief Command description for GpPairingSearch - * - * Command: GpPairingSearch - * @param endpoint INT8U - */ -#define emberAfFillCommandGreen \ - PowerClusterGpPairingSearch(endpoint) emberAfFillExternalBuffer(mask, \ - \ - ZCL_GP_PAIRING_SEARCH_COMMAND_ID, "u", endpoint); - -/** @brief Command description for GpPairing - * - * Command: GpPairing - * @param endpoint INT8U - * @param sinkIeeeAddress IEEE_ADDRESS - * @param sinkNwkAddress INT16U - * @param sinkGroupId INT16U - * @param deviceId GpDeviceId - * @param gpdSecurityFrameCounter INT32U - * @param gpdKey SECURITY_KEY - * @param assignedAlias INT16U - * @param groupcastRadius INT8U - */ -#define emberAfFillCommandGreen \ - PowerClusterGpPairing(endpoint, sinkIeeeAddress, sinkNwkAddress, sinkGroupId, deviceId, gpdSecurityFrameCounter, gpdKey, \ - assignedAlias, groupcastRadius) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GP_PAIRING_COMMAND_ID, "uuuuuuuuu", endpoint, sinkIeeeAddress, sinkNwkAddress, sinkGroupId, \ - deviceId, gpdSecurityFrameCounter, gpdKey, assignedAlias, groupcastRadius); - -/** @brief Command description for GpProxyCommissioningMode - * - * Command: GpProxyCommissioningMode - * @param options GpProxyCommissioningModeOption - * @param commissioningWindow INT16U - * @param channel INT8U - */ -#define emberAfFillCommandGreen \ - PowerClusterGpProxyCommissioningMode(options, commissioningWindow, channel) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GP_PROXY_COMMISSIONING_MODE_COMMAND_ID, "uuu", options, commissioningWindow, channel); - -/** @brief Command description for GpTunnelingStop - * - * Command: GpTunnelingStop - * @param options GpTunnelingStopOption - * @param gpdSrcId INT32U - * @param gpdIeee IEEE_ADDRESS - * @param endpoint INT8U - * @param gpdSecurityFrameCounter INT32U - * @param gppShortAddress INT16U - * @param gppDistance INT8S - */ -#define emberAfFillCommandGreen \ - PowerClusterGpTunnelingStop(options, gpdSrcId, gpdIeee, endpoint, gpdSecurityFrameCounter, gppShortAddress, gppDistance) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GP_TUNNELING_STOP_COMMAND_ID, "uuuuuuu", options, gpdSrcId, gpdIeee, endpoint, \ - gpdSecurityFrameCounter, gppShortAddress, gppDistance); - -/** @brief Command description for GpCommissioningNotification - * - * Command: GpCommissioningNotification - * @param options GpCommissioningNotificationOption - * @param gpdSrcId INT32U - * @param gpdIeee IEEE_ADDRESS - * @param endpoint INT8U - * @param gpdSecurityFrameCounter INT32U - * @param gpdCommandId INT8U - * @param gpdCommandPayload OCTET_STRING - * @param gppShortAddress INT16U - * @param gppLink INT8U - * @param mic INT32U - */ -#define emberAfFillCommandGreen \ - PowerClusterGpCommissioningNotification(options, gpdSrcId, gpdIeee, endpoint, gpdSecurityFrameCounter, gpdCommandId, \ - gpdCommandPayload, gppShortAddress, gppLink, mic) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GP_COMMISSIONING_NOTIFICATION_COMMAND_ID, "uuuuuuuuuu", options, gpdSrcId, gpdIeee, \ - endpoint, gpdSecurityFrameCounter, gpdCommandId, gpdCommandPayload, gppShortAddress, gppLink, \ - mic); - -/** @brief Command description for GpSinkCommissioningMode - * - * Command: GpSinkCommissioningMode - * @param options GpSinkCommissioningModeOptions - * @param gpmAddrForSecurity INT16U - * @param gpmAddrForPairing INT16U - * @param sinkEndpoint INT8U - */ -#define emberAfFillCommandGreen \ - PowerClusterGpSinkCommissioningMode(options, gpmAddrForSecurity, gpmAddrForPairing, sinkEndpoint) emberAfFillExternalBuffer( \ - mask, \ - \ - ZCL_GP_SINK_COMMISSIONING_MODE_COMMAND_ID, "uuuu", options, gpmAddrForSecurity, gpmAddrForPairing, sinkEndpoint); - -/** @brief Command description for GpResponse - * - * Command: GpResponse - * @param options GpResponseOption - * @param tempMasterShortAddress INT16U - * @param tempMasterTxChannel BITMAP8 - * @param gpdSrcId INT32U - * @param gpdIeee IEEE_ADDRESS - * @param endpoint INT8U - * @param gpdCommandId INT8U - * @param gpdCommandPayload OCTET_STRING - */ -#define emberAfFillCommandGreen \ - PowerClusterGpResponse(options, tempMasterShortAddress, tempMasterTxChannel, gpdSrcId, gpdIeee, endpoint, gpdCommandId, \ - gpdCommandPayload) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GP_RESPONSE_COMMAND_ID, "uuuuuuuu", options, tempMasterShortAddress, tempMasterTxChannel, \ - gpdSrcId, gpdIeee, endpoint, gpdCommandId, gpdCommandPayload); - -/** @brief Command description for GpTranslationTableUpdate - * - * Command: GpTranslationTableUpdate - * @param options GpTranslationTableUpdateOption - * @param gpdSrcId INT32U - * @param gpdIeee IEEE_ADDRESS - * @param endpoint INT8U - * @param translations GpTranslationTableUpdateTranslation [] - * @param translationsLen int - */ -#define emberAfFillCommandGreen \ - PowerClusterGpTranslationTableUpdate(options, gpdSrcId, gpdIeee, endpoint, translations, translationsLen) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GP_TRANSLATION_TABLE_UPDATE_COMMAND_ID, "uuuub", options, gpdSrcId, gpdIeee, endpoint, \ - translations, translationsLen); - -/** @brief Command description for GpTranslationTableRequest - * - * Command: GpTranslationTableRequest - * @param startIndex INT8U - */ -#define emberAfFillCommandGreen \ - PowerClusterGpTranslationTableRequest(startIndex) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GP_TRANSLATION_TABLE_REQUEST_COMMAND_ID, "u", startIndex); - -/** @brief Command description for GpTranslationTableResponse - * - * Command: GpTranslationTableResponse - * @param status GpTranslationTableResponseStatus - * @param options GpTranslationTableResponseOption - * @param totalNumberOfEntries INT8U - * @param startIndex INT8U - * @param entriesCount INT8U - * @param translationTableList INT8U [] - * @param translationTableListLen int - */ -#define emberAfFillCommandGreen \ - PowerClusterGpTranslationTableResponse(status, options, totalNumberOfEntries, startIndex, entriesCount, translationTableList, \ - translationTableListLen) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GP_TRANSLATION_TABLE_RESPONSE_COMMAND_ID, "uuuuub", status, options, totalNumberOfEntries, \ - startIndex, entriesCount, translationTableList, translationTableListLen); - -/** @brief Command description for GpPairingConfiguration - * - * Command: GpPairingConfiguration - * @param actions GpPairingConfigurationActions - * @param options GpPairingConfigurationOption - * @param gpdSrcId INT32U - * @param gpdIeee IEEE_ADDRESS - * @param endpoint INT8U - * @param deviceId INT8U - * @param groupListCount INT8U - * @param groupList GpPairingConfigurationGroupList [] - * @param groupListLen int - * @param gpdAssignedAlias INT16U - * @param groupcastRadius INT8U - * @param securityOptions INT8U - * @param gpdSecurityFrameCounter INT32U - * @param gpdSecurityKey SECURITY_KEY - * @param numberOfPairedEndpoints INT8U - * @param pairedEndpoints INT8U [] - * @param pairedEndpointsLen int - * @param applicationInformation GpApplicationInformation - * @param manufacturerId INT16U - * @param modeId INT16U - * @param numberOfGpdCommands INT8U - * @param gpdCommandIdList INT8U [] - * @param gpdCommandIdListLen int - * @param clusterIdListCount INT8U - * @param clusterListServer INT16U [] - * @param clusterListServerLen int - * @param clusterListClient INT16U [] - * @param clusterListClientLen int - * @param switchInformationLength INT8U - * @param switchConfiguration INT8U - * @param currentContactStatus INT8U - * @param totalNumberOfReports INT8U - * @param numberOfReports INT8U - * @param reportDescriptor INT8U [] - * @param reportDescriptorLen int - */ -#define emberAfFillCommandGreen \ - PowerClusterGpPairingConfiguration( \ - actions, options, gpdSrcId, gpdIeee, endpoint, deviceId, groupListCount, groupList, groupListLen, gpdAssignedAlias, \ - groupcastRadius, securityOptions, gpdSecurityFrameCounter, gpdSecurityKey, numberOfPairedEndpoints, pairedEndpoints, \ - pairedEndpointsLen, applicationInformation, manufacturerId, modeId, numberOfGpdCommands, gpdCommandIdList, \ - gpdCommandIdListLen, clusterIdListCount, clusterListServer, clusterListServerLen, clusterListClient, clusterListClientLen, \ - switchInformationLength, switchConfiguration, currentContactStatus, totalNumberOfReports, numberOfReports, \ - reportDescriptor, reportDescriptorLen) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GP_PAIRING_CONFIGURATION_COMMAND_ID, "uuuuuuubuuuuuubuuuububbuuuuub", actions, options, \ - gpdSrcId, gpdIeee, endpoint, deviceId, groupListCount, groupList, groupListLen, \ - gpdAssignedAlias, groupcastRadius, securityOptions, gpdSecurityFrameCounter, gpdSecurityKey, \ - numberOfPairedEndpoints, pairedEndpoints, pairedEndpointsLen, applicationInformation, \ - manufacturerId, modeId, numberOfGpdCommands, gpdCommandIdList, gpdCommandIdListLen, \ - clusterIdListCount, clusterListServer, clusterListServerLen, clusterListClient, \ - clusterListClientLen, switchInformationLength, switchConfiguration, currentContactStatus, \ - totalNumberOfReports, numberOfReports, reportDescriptor, reportDescriptorLen); - -/** @brief Command description for GpSinkTableRequest - * - * Command: GpSinkTableRequest - * @param options GpSinkTableRequestOptions - */ -#define emberAfFillCommandGreen \ - PowerClusterGpSinkTableRequest(options) emberAfFillExternalBuffer(mask, \ - \ - ZCL_GP_SINK_TABLE_REQUEST_COMMAND_ID, "u", options); - -/** @brief Command description for GpSinkTableResponse - * - * Command: GpSinkTableResponse - * @param status ENUM8 - */ -#define emberAfFillCommandGreen \ - PowerClusterGpSinkTableResponse(status) emberAfFillExternalBuffer(mask, \ - \ - ZCL_GP_SINK_TABLE_RESPONSE_COMMAND_ID, "u", status); - -/** @brief Command description for GpSinkTableRequest - * - * Command: GpSinkTableRequest - * @param gpdSrcId INT32U - */ -#define emberAfFillCommandGreen \ - PowerClusterGpSinkTableRequest(gpdSrcId) emberAfFillExternalBuffer(mask, \ - \ - ZCL_GP_SINK_TABLE_REQUEST_COMMAND_ID, "u", gpdSrcId); - -/** @brief Command description for GpSinkTableResponse - * - * Command: GpSinkTableResponse - * @param totalNumberofNonEmptySinkTableEntries INT8U - */ -#define emberAfFillCommandGreen \ - PowerClusterGpSinkTableResponse(totalNumberofNonEmptySinkTableEntries) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GP_SINK_TABLE_RESPONSE_COMMAND_ID, "u", totalNumberofNonEmptySinkTableEntries); - -/** @brief Command description for GpSinkTableRequest - * - * Command: GpSinkTableRequest - * @param gpdIeee INT64U - */ -#define emberAfFillCommandGreen \ - PowerClusterGpSinkTableRequest(gpdIeee) emberAfFillExternalBuffer(mask, \ - \ - ZCL_GP_SINK_TABLE_REQUEST_COMMAND_ID, "u", gpdIeee); - -/** @brief Command description for GpSinkTableResponse - * - * Command: GpSinkTableResponse - * @param startIndex INT8U - */ -#define emberAfFillCommandGreen \ - PowerClusterGpSinkTableResponse(startIndex) emberAfFillExternalBuffer(mask, \ - \ - ZCL_GP_SINK_TABLE_RESPONSE_COMMAND_ID, "u", startIndex); - -/** @brief Command description for GpSinkTableRequest - * - * Command: GpSinkTableRequest - * @param endpoint INT8U - */ -#define emberAfFillCommandGreen \ - PowerClusterGpSinkTableRequest(endpoint) emberAfFillExternalBuffer(mask, \ - \ - ZCL_GP_SINK_TABLE_REQUEST_COMMAND_ID, "u", endpoint); - -/** @brief Command description for GpSinkTableResponse - * - * Command: GpSinkTableResponse - * @param sinkTableEntriesCount INT8U - */ -#define emberAfFillCommandGreen \ - PowerClusterGpSinkTableResponse(sinkTableEntriesCount) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GP_SINK_TABLE_RESPONSE_COMMAND_ID, "u", sinkTableEntriesCount); - -/** @brief Command description for GpSinkTableRequest - * - * Command: GpSinkTableRequest - * @param index INT8U - */ -#define emberAfFillCommandGreen \ - PowerClusterGpSinkTableRequest(index) emberAfFillExternalBuffer(mask, \ - \ - ZCL_GP_SINK_TABLE_REQUEST_COMMAND_ID, "u", index); - -/** @brief Command description for GpSinkTableResponse - * - * Command: GpSinkTableResponse - * @param sinkTableEntries INT8U [] - * @param sinkTableEntriesLen int - */ -#define emberAfFillCommandGreen \ - PowerClusterGpSinkTableResponse(sinkTableEntries, sinkTableEntriesLen) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GP_SINK_TABLE_RESPONSE_COMMAND_ID, "b", sinkTableEntries, sinkTableEntriesLen); - -/** @brief Command description for GpProxyTableResponse - * - * Command: GpProxyTableResponse - * @param status GpProxyTableResponseStatus - */ -#define emberAfFillCommandGreen \ - PowerClusterGpProxyTableResponse(status) emberAfFillExternalBuffer(mask, \ - \ - ZCL_GP_PROXY_TABLE_RESPONSE_COMMAND_ID, "u", status); - -/** @brief Command description for GpProxyTableRequest - * - * Command: GpProxyTableRequest - * @param options GpProxyTableRequestOptions - */ -#define emberAfFillCommandGreen \ - PowerClusterGpProxyTableRequest(options) emberAfFillExternalBuffer(mask, \ - \ - ZCL_GP_PROXY_TABLE_REQUEST_COMMAND_ID, "u", options); - -/** @brief Command description for GpProxyTableResponse - * - * Command: GpProxyTableResponse - * @param totalNumberOfNonEmptyProxyTableEntries INT8U - */ -#define emberAfFillCommandGreen \ - PowerClusterGpProxyTableResponse(totalNumberOfNonEmptyProxyTableEntries) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GP_PROXY_TABLE_RESPONSE_COMMAND_ID, "u", totalNumberOfNonEmptyProxyTableEntries); - -/** @brief Command description for GpProxyTableRequest - * - * Command: GpProxyTableRequest - * @param gpdSrcId INT32U - */ -#define emberAfFillCommandGreen \ - PowerClusterGpProxyTableRequest(gpdSrcId) emberAfFillExternalBuffer(mask, \ - \ - ZCL_GP_PROXY_TABLE_REQUEST_COMMAND_ID, "u", gpdSrcId); - -/** @brief Command description for GpProxyTableResponse - * - * Command: GpProxyTableResponse - * @param startIndex INT8U - */ -#define emberAfFillCommandGreen \ - PowerClusterGpProxyTableResponse(startIndex) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GP_PROXY_TABLE_RESPONSE_COMMAND_ID, "u", startIndex); - -/** @brief Command description for GpProxyTableRequest - * - * Command: GpProxyTableRequest - * @param gpdIeee INT64U - */ -#define emberAfFillCommandGreen \ - PowerClusterGpProxyTableRequest(gpdIeee) emberAfFillExternalBuffer(mask, \ - \ - ZCL_GP_PROXY_TABLE_REQUEST_COMMAND_ID, "u", gpdIeee); - -/** @brief Command description for GpProxyTableResponse - * - * Command: GpProxyTableResponse - * @param entriesCount INT8U - */ -#define emberAfFillCommandGreen \ - PowerClusterGpProxyTableResponse(entriesCount) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GP_PROXY_TABLE_RESPONSE_COMMAND_ID, "u", entriesCount); - -/** @brief Command description for GpProxyTableRequest - * - * Command: GpProxyTableRequest - * @param endpoint INT8U - */ -#define emberAfFillCommandGreen \ - PowerClusterGpProxyTableRequest(endpoint) emberAfFillExternalBuffer(mask, \ - \ - ZCL_GP_PROXY_TABLE_REQUEST_COMMAND_ID, "u", endpoint); - -/** @brief Command description for GpProxyTableResponse - * - * Command: GpProxyTableResponse - * @param proxyTableEntries INT8U [] - * @param proxyTableEntriesLen int - */ -#define emberAfFillCommandGreen \ - PowerClusterGpProxyTableResponse(proxyTableEntries, proxyTableEntriesLen) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GP_PROXY_TABLE_RESPONSE_COMMAND_ID, "b", proxyTableEntries, proxyTableEntriesLen); - -/** @brief Command description for GpProxyTableRequest - * - * Command: GpProxyTableRequest - * @param index INT8U - */ -#define emberAfFillCommandGreen \ - PowerClusterGpProxyTableRequest(index) emberAfFillExternalBuffer(mask, \ - \ - ZCL_GP_PROXY_TABLE_REQUEST_COMMAND_ID, "u", index); - -/** @brief Command description for StartUp - * - * Command: StartUp - */ -#define emberAfFillCommandBasicClusterStartUp() \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_START_UP_COMMAND_ID, "", ); - -/** @brief Command description for MfgSpecificPing - * - * Command: MfgSpecificPing - */ -#define emberAfFillCommandBasicClusterMfgSpecificPing() \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_MFG_SPECIFIC_PING_COMMAND_ID, "", ); - -/** @brief Command description for ShutDown - * - * Command: ShutDown - */ -#define emberAfFillCommandBasicClusterShutDown() \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_SHUT_DOWN_COMMAND_ID, "", ); - -/** @brief Command description for Leave - * - * Command: Leave - */ -#define emberAfFillCommandBasicClusterLeave() \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_LEAVE_COMMAND_ID, "", ); - -/** @brief Command description for QueryImage - * - * Command: QueryImage - * @param vendorId INT16U - * @param productId INT16U - * @param imageType INT16U - * @param hardwareVersion INT16U - * @param currentVersion INT32U - * @param protocolsSupported OTADownloadProtocol [] - * @param protocolsSupportedLen int - * @param location CHAR_STRING - * @param requestorCanConsent BOOLEAN - * @param metadataForProvider OCTET_STRING - */ -#define emberAfFillCommandOTA \ - Software Update ProviderClusterQueryImage(vendorId, productId, imageType, hardwareVersion, currentVersion, protocolsSupported, \ - protocolsSupportedLen, location, requestorCanConsent, metadataForProvider) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_QUERY_IMAGE_COMMAND_ID, "uuuuubuuu", vendorId, productId, imageType, hardwareVersion, \ - currentVersion, protocolsSupported, protocolsSupportedLen, location, requestorCanConsent, \ - metadataForProvider); - -/** @brief Command description for ApplyUpdateRequest - * - * Command: ApplyUpdateRequest - * @param updateToken OCTET_STRING - * @param newVersion INT32U - */ -#define emberAfFillCommandOTA \ - Software Update ProviderClusterApplyUpdateRequest(updateToken, newVersion) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_APPLY_UPDATE_REQUEST_COMMAND_ID, "uu", updateToken, newVersion); - -/** @brief Command description for NotifyUpdateApplied - * - * Command: NotifyUpdateApplied - * @param updateToken OCTET_STRING - * @param currentVersion INT32U - */ -#define emberAfFillCommandOTA \ - Software Update ProviderClusterNotifyUpdateApplied(updateToken, currentVersion) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_NOTIFY_UPDATE_APPLIED_COMMAND_ID, "uu", updateToken, currentVersion); - -/** @brief Command description for QueryImageResponse - * - * Command: QueryImageResponse - * @param status OTAQueryStatus - * @param delayedActionTime INT32U - * @param imageURI CHAR_STRING - * @param softwareVersion INT32U - * @param updateToken OCTET_STRING - * @param userConsentNeeded BOOLEAN - * @param metadataForRequestor OCTET_STRING - */ -#define emberAfFillCommandOTA \ - Software Update ProviderClusterQueryImageResponse(status, delayedActionTime, imageURI, softwareVersion, updateToken, \ - userConsentNeeded, metadataForRequestor) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_QUERY_IMAGE_RESPONSE_COMMAND_ID, "uuuuuuu", status, delayedActionTime, imageURI, \ - softwareVersion, updateToken, userConsentNeeded, metadataForRequestor); - -/** @brief Command description for ApplyUpdateRequestResponse - * - * Command: ApplyUpdateRequestResponse - * @param action OTAApplyUpdateAction - * @param delayedActionTime INT32U - */ -#define emberAfFillCommandOTA \ - Software Update ProviderClusterApplyUpdateRequestResponse(action, delayedActionTime) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_APPLY_UPDATE_REQUEST_RESPONSE_COMMAND_ID, "uu", action, delayedActionTime); - -/** @brief Command description for AnnounceOtaProvider - * - * Command: AnnounceOtaProvider - * @param serverLocation OCTET_STRING - * @param vendorId INT16U - * @param announcementReason OTAAnnouncementReason - * @param metadataForNode OCTET_STRING - */ -#define emberAfFillCommandOTA \ - Software Update RequestorClusterAnnounceOtaProvider(serverLocation, vendorId, announcementReason, metadataForNode) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_ANNOUNCE_OTA_PROVIDER_COMMAND_ID, "uuuu", serverLocation, vendorId, announcementReason, \ - metadataForNode); - -/** @brief Command description for ArmFailSafe - * - * Command: ArmFailSafe - * @param expiryLengthSeconds INT16U - * @param breadcrumb INT64U - * @param timeoutMs INT32U - */ -#define emberAfFillCommandGeneral \ - CommissioningClusterArmFailSafe(expiryLengthSeconds, breadcrumb, timeoutMs) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_ARM_FAIL_SAFE_COMMAND_ID, "uuu", expiryLengthSeconds, breadcrumb, timeoutMs); - -/** @brief Command description for ArmFailSafeResponse - * - * Command: ArmFailSafeResponse - * @param errorCode GeneralCommissioningError - * @param debugText CHAR_STRING - */ -#define emberAfFillCommandGeneral \ - CommissioningClusterArmFailSafeResponse(errorCode, debugText) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_ARM_FAIL_SAFE_RESPONSE_COMMAND_ID, "uu", errorCode, debugText); - -/** @brief Command description for SetRegulatoryConfig - * - * Command: SetRegulatoryConfig - * @param location RegulatoryLocationType - * @param countryCode CHAR_STRING - * @param breadcrumb INT64U - * @param timeoutMs INT32U - */ -#define emberAfFillCommandGeneral \ - CommissioningClusterSetRegulatoryConfig(location, countryCode, breadcrumb, timeoutMs) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_SET_REGULATORY_CONFIG_COMMAND_ID, "uuuu", location, countryCode, breadcrumb, timeoutMs); - -/** @brief Command description for SetRegulatoryConfigResponse - * - * Command: SetRegulatoryConfigResponse - * @param errorCode GeneralCommissioningError - * @param debugText CHAR_STRING - */ -#define emberAfFillCommandGeneral \ - CommissioningClusterSetRegulatoryConfigResponse(errorCode, debugText) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_SET_REGULATORY_CONFIG_RESPONSE_COMMAND_ID, "uu", errorCode, debugText); - -/** @brief Command description for CommissioningComplete - * - * Command: CommissioningComplete - */ -#define emberAfFillCommandGeneral \ - CommissioningClusterCommissioningComplete() emberAfFillExternalBuffer(mask, \ - \ - ZCL_COMMISSIONING_COMPLETE_COMMAND_ID, "", ); - -/** @brief Command description for CommissioningCompleteResponse - * - * Command: CommissioningCompleteResponse - * @param errorCode GeneralCommissioningError - * @param debugText CHAR_STRING - */ -#define emberAfFillCommandGeneral \ - CommissioningClusterCommissioningCompleteResponse(errorCode, debugText) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_COMMISSIONING_COMPLETE_RESPONSE_COMMAND_ID, "uu", errorCode, debugText); - -/** @brief Command description for ScanNetworks - * - * Command: ScanNetworks - * @param ssid OCTET_STRING - * @param breadcrumb INT64U - * @param timeoutMs INT32U - */ -#define emberAfFillCommandNetwork \ - CommissioningClusterScanNetworks(ssid, breadcrumb, timeoutMs) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_SCAN_NETWORKS_COMMAND_ID, "uuu", ssid, breadcrumb, timeoutMs); - -/** @brief Command description for ScanNetworksResponse - * - * Command: ScanNetworksResponse - * @param errorCode INT8U - * @param debugText CHAR_STRING - * @param wifiScanResults WiFiInterfaceScanResult [] - * @param wifiScanResultsLen int - * @param threadScanResults ThreadInterfaceScanResult [] - * @param threadScanResultsLen int - */ -#define emberAfFillCommandNetwork \ - CommissioningClusterScanNetworksResponse(errorCode, debugText, wifiScanResults, wifiScanResultsLen, threadScanResults, \ - threadScanResultsLen) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_SCAN_NETWORKS_RESPONSE_COMMAND_ID, "uubb", errorCode, debugText, wifiScanResults, \ - wifiScanResultsLen, threadScanResults, threadScanResultsLen); - -/** @brief Command description for AddWiFiNetwork - * - * Command: AddWiFiNetwork - * @param ssid OCTET_STRING - * @param credentials OCTET_STRING - * @param breadcrumb INT64U - * @param timeoutMs INT32U - */ -#define emberAfFillCommandNetwork \ - CommissioningClusterAddWiFiNetwork(ssid, credentials, breadcrumb, timeoutMs) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_ADD_WI_FI_NETWORK_COMMAND_ID, "uuuu", ssid, credentials, breadcrumb, timeoutMs); - -/** @brief Command description for AddWiFiNetworkResponse - * - * Command: AddWiFiNetworkResponse - * @param errorCode INT8U - * @param debugText CHAR_STRING - */ -#define emberAfFillCommandNetwork \ - CommissioningClusterAddWiFiNetworkResponse(errorCode, debugText) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_ADD_WI_FI_NETWORK_RESPONSE_COMMAND_ID, "uu", errorCode, debugText); - -/** @brief Command description for UpdateWiFiNetwork - * - * Command: UpdateWiFiNetwork - * @param ssid OCTET_STRING - * @param credentials OCTET_STRING - * @param breadcrumb INT64U - * @param timeoutMs INT32U - */ -#define emberAfFillCommandNetwork \ - CommissioningClusterUpdateWiFiNetwork(ssid, credentials, breadcrumb, timeoutMs) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_UPDATE_WI_FI_NETWORK_COMMAND_ID, "uuuu", ssid, credentials, breadcrumb, timeoutMs); - -/** @brief Command description for UpdateWiFiNetworkResponse - * - * Command: UpdateWiFiNetworkResponse - * @param errorCode INT8U - * @param debugText CHAR_STRING - */ -#define emberAfFillCommandNetwork \ - CommissioningClusterUpdateWiFiNetworkResponse(errorCode, debugText) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_UPDATE_WI_FI_NETWORK_RESPONSE_COMMAND_ID, "uu", errorCode, debugText); - -/** @brief Command description for AddThreadNetwork - * - * Command: AddThreadNetwork - * @param operationalDataset OCTET_STRING - * @param breadcrumb INT64U - * @param timeoutMs INT32U - */ -#define emberAfFillCommandNetwork \ - CommissioningClusterAddThreadNetwork(operationalDataset, breadcrumb, timeoutMs) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_ADD_THREAD_NETWORK_COMMAND_ID, "uuu", operationalDataset, breadcrumb, timeoutMs); - -/** @brief Command description for AddThreadNetworkResponse - * - * Command: AddThreadNetworkResponse - * @param errorCode INT8U - * @param debugText CHAR_STRING - */ -#define emberAfFillCommandNetwork \ - CommissioningClusterAddThreadNetworkResponse(errorCode, debugText) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_ADD_THREAD_NETWORK_RESPONSE_COMMAND_ID, "uu", errorCode, debugText); - -/** @brief Command description for UpdateThreadNetwork - * - * Command: UpdateThreadNetwork - * @param operationalDataset OCTET_STRING - * @param breadcrumb INT64U - * @param timeoutMs INT32U - */ -#define emberAfFillCommandNetwork \ - CommissioningClusterUpdateThreadNetwork(operationalDataset, breadcrumb, timeoutMs) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_UPDATE_THREAD_NETWORK_COMMAND_ID, "uuu", operationalDataset, breadcrumb, timeoutMs); - -/** @brief Command description for UpdateThreadNetworkResponse - * - * Command: UpdateThreadNetworkResponse - * @param errorCode INT8U - * @param debugText CHAR_STRING - */ -#define emberAfFillCommandNetwork \ - CommissioningClusterUpdateThreadNetworkResponse(errorCode, debugText) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_UPDATE_THREAD_NETWORK_RESPONSE_COMMAND_ID, "uu", errorCode, debugText); - -/** @brief Command description for RemoveNetwork - * - * Command: RemoveNetwork - * @param NetworkID OCTET_STRING - * @param Breadcrumb INT64U - * @param TimeoutMs INT32U - */ -#define emberAfFillCommandNetwork \ - CommissioningClusterRemoveNetwork(NetworkID, Breadcrumb, TimeoutMs) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_REMOVE_NETWORK_COMMAND_ID, "uuu", NetworkID, Breadcrumb, TimeoutMs); - -/** @brief Command description for RemoveNetworkResponse - * - * Command: RemoveNetworkResponse - * @param errorCode INT8U - * @param debugText CHAR_STRING - */ -#define emberAfFillCommandNetwork \ - CommissioningClusterRemoveNetworkResponse(errorCode, debugText) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_REMOVE_NETWORK_RESPONSE_COMMAND_ID, "uu", errorCode, debugText); - -/** @brief Command description for EnableNetwork - * - * Command: EnableNetwork - * @param networkID OCTET_STRING - * @param breadcrumb INT64U - * @param timeoutMs INT32U - */ -#define emberAfFillCommandNetwork \ - CommissioningClusterEnableNetwork(networkID, breadcrumb, timeoutMs) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_ENABLE_NETWORK_COMMAND_ID, "uuu", networkID, breadcrumb, timeoutMs); - -/** @brief Command description for EnableNetworkResponse - * - * Command: EnableNetworkResponse - * @param errorCode INT8U - * @param debugText CHAR_STRING - */ -#define emberAfFillCommandNetwork \ - CommissioningClusterEnableNetworkResponse(errorCode, debugText) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_ENABLE_NETWORK_RESPONSE_COMMAND_ID, "uu", errorCode, debugText); - -/** @brief Command description for DisableNetwork - * - * Command: DisableNetwork - * @param networkID OCTET_STRING - * @param breadcrumb INT64U - * @param timeoutMs INT32U - */ -#define emberAfFillCommandNetwork \ - CommissioningClusterDisableNetwork(networkID, breadcrumb, timeoutMs) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_DISABLE_NETWORK_COMMAND_ID, "uuu", networkID, breadcrumb, timeoutMs); - -/** @brief Command description for DisableNetworkResponse - * - * Command: DisableNetworkResponse - * @param errorCode INT8U - * @param debugText CHAR_STRING - */ -#define emberAfFillCommandNetwork \ - CommissioningClusterDisableNetworkResponse(errorCode, debugText) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_DISABLE_NETWORK_RESPONSE_COMMAND_ID, "uu", errorCode, debugText); - -/** @brief Command description for GetLastNetworkCommissioningResult - * - * Command: GetLastNetworkCommissioningResult - * @param timeoutMs INT32U - */ -#define emberAfFillCommandNetwork \ - CommissioningClusterGetLastNetworkCommissioningResult(timeoutMs) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_LAST_NETWORK_COMMISSIONING_RESULT_COMMAND_ID, "u", timeoutMs); - -/** @brief Command description for RetrieveLogsRequest - * - * Command: RetrieveLogsRequest - * @param intent LogsIntent - * @param requestedProtocol LogsTransferProtocol - * @param transferFileDesignator OCTET_STRING - */ -#define emberAfFillCommandDiagnostic \ - LogsClusterRetrieveLogsRequest(intent, requestedProtocol, transferFileDesignator) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_RETRIEVE_LOGS_REQUEST_COMMAND_ID, "uuu", intent, requestedProtocol, transferFileDesignator); - -/** @brief Command description for RetrieveLogsResponse - * - * Command: RetrieveLogsResponse - * @param status LogsStatus - * @param content OCTET_STRING - * @param timeStamp UTC_TIME - * @param timeSinceBoot INT32U - */ -#define emberAfFillCommandDiagnostic \ - LogsClusterRetrieveLogsResponse(status, content, timeStamp, timeSinceBoot) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_RETRIEVE_LOGS_RESPONSE_COMMAND_ID, "uuuu", status, content, timeStamp, timeSinceBoot); - -/** @brief Command description for ResetWatermarks - * - * Command: ResetWatermarks - */ -#define emberAfFillCommandSoftware \ - DiagnosticsClusterResetWatermarks() emberAfFillExternalBuffer(mask, \ - \ - ZCL_RESET_WATERMARKS_COMMAND_ID, "", ); - -/** @brief Command description for ResetCounts - * - * Command: ResetCounts - */ -#define emberAfFillCommandThread \ - Network DiagnosticsClusterResetCounts() emberAfFillExternalBuffer(mask, \ - \ - ZCL_RESET_COUNTS_COMMAND_ID, "", ); - -/** @brief Command description for ResetCounts - * - * Command: ResetCounts - */ -#define emberAfFillCommandWiFi \ - Network DiagnosticsClusterResetCounts() emberAfFillExternalBuffer(mask, \ - \ - ZCL_RESET_COUNTS_COMMAND_ID, "", ); - -/** @brief Command description for ResetCounts - * - * Command: ResetCounts - */ -#define emberAfFillCommandEthernet \ - Network DiagnosticsClusterResetCounts() emberAfFillExternalBuffer(mask, \ - \ - ZCL_RESET_COUNTS_COMMAND_ID, "", ); - -/** @brief Command description for StartUp - * - * Command: StartUp - */ -#define emberAfFillCommandBridged \ - Device BasicClusterStartUp() emberAfFillExternalBuffer(mask, \ - \ - ZCL_START_UP_COMMAND_ID, "", ); - -/** @brief Command description for ShutDown - * - * Command: ShutDown - */ -#define emberAfFillCommandBridged \ - Device BasicClusterShutDown() emberAfFillExternalBuffer(mask, \ - \ - ZCL_SHUT_DOWN_COMMAND_ID, "", ); - -/** @brief Command description for Leave - * - * Command: Leave - */ -#define emberAfFillCommandBridged \ - Device BasicClusterLeave() emberAfFillExternalBuffer(mask, \ - \ - ZCL_LEAVE_COMMAND_ID, "", ); - -/** @brief Command description for ReachableChanged - * - * Command: ReachableChanged - */ -#define emberAfFillCommandBridged \ - Device BasicClusterReachableChanged() emberAfFillExternalBuffer(mask, \ - \ - ZCL_REACHABLE_CHANGED_COMMAND_ID, "", ); - -/** @brief Command description for SetFabric - * - * Command: SetFabric - * @param VendorId INT16U - */ -#define emberAfFillCommandOperational \ - CredentialsClusterSetFabric(VendorId) emberAfFillExternalBuffer(mask, \ - \ - ZCL_SET_FABRIC_COMMAND_ID, "u", VendorId); - -/** @brief Command description for SetFabricResponse - * - * Command: SetFabricResponse - * @param FabricId FABRIC_ID - */ -#define emberAfFillCommandOperational \ - CredentialsClusterSetFabricResponse(FabricId) emberAfFillExternalBuffer(mask, \ - \ - ZCL_SET_FABRIC_RESPONSE_COMMAND_ID, "u", FabricId); - -/** @brief Command description for OpCSRRequest - * - * Command: OpCSRRequest - * @param CSRNonce OCTET_STRING - */ -#define emberAfFillCommandOperational \ - CredentialsClusterOpCSRRequest(CSRNonce) emberAfFillExternalBuffer(mask, \ - \ - ZCL_OP_CSR_REQUEST_COMMAND_ID, "u", CSRNonce); - -/** @brief Command description for OpCSRResponse - * - * Command: OpCSRResponse - * @param CSR OCTET_STRING - * @param CSRNonce OCTET_STRING - * @param VendorReserved1 OCTET_STRING - * @param VendorReserved2 OCTET_STRING - * @param VendorReserved3 OCTET_STRING - * @param Signature OCTET_STRING - */ -#define emberAfFillCommandOperational \ - CredentialsClusterOpCSRResponse(CSR, CSRNonce, VendorReserved1, VendorReserved2, VendorReserved3, Signature) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_OP_CSR_RESPONSE_COMMAND_ID, "uuuuuu", CSR, CSRNonce, VendorReserved1, VendorReserved2, \ - VendorReserved3, Signature); - -/** @brief Command description for AddOpCert - * - * Command: AddOpCert - * @param OperationalCert OCTET_STRING - * @param IPKValue OCTET_STRING - * @param CaseAdminNode NODE_ID - * @param AdminVendorId INT16U - */ -#define emberAfFillCommandOperational \ - CredentialsClusterAddOpCert(OperationalCert, IPKValue, CaseAdminNode, AdminVendorId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_ADD_OP_CERT_COMMAND_ID, "uuuu", OperationalCert, IPKValue, CaseAdminNode, AdminVendorId); - -/** @brief Command description for OpCertResponse - * - * Command: OpCertResponse - * @param StatusCode INT8U - * @param FabricIndex INT64U - * @param DebugText CHAR_STRING - */ -#define emberAfFillCommandOperational \ - CredentialsClusterOpCertResponse(StatusCode, FabricIndex, DebugText) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_OP_CERT_RESPONSE_COMMAND_ID, "uuu", StatusCode, FabricIndex, DebugText); - -/** @brief Command description for UpdateFabricLabel - * - * Command: UpdateFabricLabel - * @param Label CHAR_STRING - */ -#define emberAfFillCommandOperational \ - CredentialsClusterUpdateFabricLabel(Label) emberAfFillExternalBuffer(mask, \ - \ - ZCL_UPDATE_FABRIC_LABEL_COMMAND_ID, "u", Label); - -/** @brief Command description for RemoveFabric - * - * Command: RemoveFabric - * @param FabricId FABRIC_ID - * @param NodeId NODE_ID - * @param VendorId INT16U - */ -#define emberAfFillCommandOperational \ - CredentialsClusterRemoveFabric(FabricId, NodeId, VendorId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_REMOVE_FABRIC_COMMAND_ID, "uuu", FabricId, NodeId, VendorId); - -/** @brief Command description for RemoveAllFabrics - * - * Command: RemoveAllFabrics - */ -#define emberAfFillCommandOperational \ - CredentialsClusterRemoveAllFabrics() emberAfFillExternalBuffer(mask, \ - \ - ZCL_REMOVE_ALL_FABRICS_COMMAND_ID, "", ); - -/** @brief Command description for AddTrustedRootCertificate - * - * Command: AddTrustedRootCertificate - * @param RootCertificate OCTET_STRING - */ -#define emberAfFillCommandOperational \ - CredentialsClusterAddTrustedRootCertificate(RootCertificate) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_ADD_TRUSTED_ROOT_CERTIFICATE_COMMAND_ID, "u", RootCertificate); - -/** @brief Command description for RemoveTrustedRootCertificate - * - * Command: RemoveTrustedRootCertificate - * @param TrustedRootIdentifier OCTET_STRING - */ -#define emberAfFillCommandOperational \ - CredentialsClusterRemoveTrustedRootCertificate(TrustedRootIdentifier) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_REMOVE_TRUSTED_ROOT_CERTIFICATE_COMMAND_ID, "u", TrustedRootIdentifier); - -/** @brief Command description for LockDoor - * - * Command: LockDoor - * @param PIN CHAR_STRING - */ -#define emberAfFillCommandDoor \ - LockClusterLockDoor(PIN) emberAfFillExternalBuffer(mask, \ - \ - ZCL_LOCK_DOOR_COMMAND_ID, "u", PIN); - -/** @brief Command description for LockDoorResponse - * - * Command: LockDoorResponse - * @param status INT8U - */ -#define emberAfFillCommandDoor \ - LockClusterLockDoorResponse(status) emberAfFillExternalBuffer(mask, \ - \ - ZCL_LOCK_DOOR_RESPONSE_COMMAND_ID, "u", status); - -/** @brief Command description for UnlockDoor - * - * Command: UnlockDoor - * @param PIN CHAR_STRING - */ -#define emberAfFillCommandDoor \ - LockClusterUnlockDoor(PIN) emberAfFillExternalBuffer(mask, \ - \ - ZCL_UNLOCK_DOOR_COMMAND_ID, "u", PIN); - -/** @brief Command description for UnlockDoorResponse - * - * Command: UnlockDoorResponse - * @param status INT8U - */ -#define emberAfFillCommandDoor \ - LockClusterUnlockDoorResponse(status) emberAfFillExternalBuffer(mask, \ - \ - ZCL_UNLOCK_DOOR_RESPONSE_COMMAND_ID, "u", status); - -/** @brief Command description for Toggle - * - * Command: Toggle - * @param pin CHAR_STRING - */ -#define emberAfFillCommandDoor \ - LockClusterToggle(pin) emberAfFillExternalBuffer(mask, \ - \ - ZCL_TOGGLE_COMMAND_ID, "u", pin); - -/** @brief Command description for ToggleResponse - * - * Command: ToggleResponse - * @param status INT8U - */ -#define emberAfFillCommandDoor \ - LockClusterToggleResponse(status) emberAfFillExternalBuffer(mask, \ - \ - ZCL_TOGGLE_RESPONSE_COMMAND_ID, "u", status); - -/** @brief Command description for UnlockWithTimeout - * - * Command: UnlockWithTimeout - * @param timeoutInSeconds INT16U - */ -#define emberAfFillCommandDoor \ - LockClusterUnlockWithTimeout(timeoutInSeconds) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_UNLOCK_WITH_TIMEOUT_COMMAND_ID, "u", timeoutInSeconds); - -/** @brief Command description for UnlockWithTimeoutResponse - * - * Command: UnlockWithTimeoutResponse - * @param status INT8U - */ -#define emberAfFillCommandDoor \ - LockClusterUnlockWithTimeoutResponse(status) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_UNLOCK_WITH_TIMEOUT_RESPONSE_COMMAND_ID, "u", status); - -/** @brief Command description for UnlockWithTimeout - * - * Command: UnlockWithTimeout - * @param pin CHAR_STRING - */ -#define emberAfFillCommandDoor \ - LockClusterUnlockWithTimeout(pin) emberAfFillExternalBuffer(mask, \ - \ - ZCL_UNLOCK_WITH_TIMEOUT_COMMAND_ID, "u", pin); - -/** @brief Command description for GetLogRecord - * - * Command: GetLogRecord - * @param logIndex INT16U - */ -#define emberAfFillCommandDoor \ - LockClusterGetLogRecord(logIndex) emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_LOG_RECORD_COMMAND_ID, "u", logIndex); - -/** @brief Command description for GetLogRecordResponse - * - * Command: GetLogRecordResponse - * @param logEntryId INT16U - * @param timestamp INT32U - * @param eventType ENUM8 - * @param source INT8U - * @param eventIdOrAlarmCode INT8U - * @param userId INT16U - * @param pin CHAR_STRING - */ -#define emberAfFillCommandDoor \ - LockClusterGetLogRecordResponse(logEntryId, timestamp, eventType, source, eventIdOrAlarmCode, userId, pin) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_LOG_RECORD_RESPONSE_COMMAND_ID, "uuuuuuu", logEntryId, timestamp, eventType, source, \ - eventIdOrAlarmCode, userId, pin); - -/** @brief Command description for SetPin - * - * Command: SetPin - * @param userId INT16U - */ -#define emberAfFillCommandDoor \ - LockClusterSetPin(userId) emberAfFillExternalBuffer(mask, \ - \ - ZCL_SET_PIN_COMMAND_ID, "u", userId); - -/** @brief Command description for SetPinResponse - * - * Command: SetPinResponse - * @param status DoorLockSetPinOrIdStatus - */ -#define emberAfFillCommandDoor \ - LockClusterSetPinResponse(status) emberAfFillExternalBuffer(mask, \ - \ - ZCL_SET_PIN_RESPONSE_COMMAND_ID, "u", status); - -/** @brief Command description for SetPin - * - * Command: SetPin - * @param userStatus DoorLockUserStatus - * @param userType DoorLockUserType - * @param pin CHAR_STRING - */ -#define emberAfFillCommandDoor \ - LockClusterSetPin(userStatus, userType, pin) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_SET_PIN_COMMAND_ID, "uuu", userStatus, userType, pin); - -/** @brief Command description for GetPin - * - * Command: GetPin - * @param userId INT16U - */ -#define emberAfFillCommandDoor \ - LockClusterGetPin(userId) emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_PIN_COMMAND_ID, "u", userId); - -/** @brief Command description for GetPinResponse - * - * Command: GetPinResponse - * @param userId INT16U - * @param userStatus DoorLockUserStatus - * @param userType DoorLockUserType - * @param pin CHAR_STRING - */ -#define emberAfFillCommandDoor \ - LockClusterGetPinResponse(userId, userStatus, userType, pin) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_PIN_RESPONSE_COMMAND_ID, "uuuu", userId, userStatus, userType, pin); - -/** @brief Command description for ClearPin - * - * Command: ClearPin - * @param userId INT16U - */ -#define emberAfFillCommandDoor \ - LockClusterClearPin(userId) emberAfFillExternalBuffer(mask, \ - \ - ZCL_CLEAR_PIN_COMMAND_ID, "u", userId); - -/** @brief Command description for ClearPinResponse - * - * Command: ClearPinResponse - * @param status INT8U - */ -#define emberAfFillCommandDoor \ - LockClusterClearPinResponse(status) emberAfFillExternalBuffer(mask, \ - \ - ZCL_CLEAR_PIN_RESPONSE_COMMAND_ID, "u", status); - -/** @brief Command description for ClearAllPins - * - * Command: ClearAllPins - */ -#define emberAfFillCommandDoor \ - LockClusterClearAllPins() emberAfFillExternalBuffer(mask, \ - \ - ZCL_CLEAR_ALL_PINS_COMMAND_ID, "", ); - -/** @brief Command description for ClearAllPinsResponse - * - * Command: ClearAllPinsResponse - * @param status INT8U - */ -#define emberAfFillCommandDoor \ - LockClusterClearAllPinsResponse(status) emberAfFillExternalBuffer(mask, \ - \ - ZCL_CLEAR_ALL_PINS_RESPONSE_COMMAND_ID, "u", status); - -/** @brief Command description for SetUserStatus - * - * Command: SetUserStatus - * @param userId INT16U - */ -#define emberAfFillCommandDoor \ - LockClusterSetUserStatus(userId) emberAfFillExternalBuffer(mask, \ - \ - ZCL_SET_USER_STATUS_COMMAND_ID, "u", userId); - -/** @brief Command description for SetUserStatusResponse - * - * Command: SetUserStatusResponse - * @param status INT8U - */ -#define emberAfFillCommandDoor \ - LockClusterSetUserStatusResponse(status) emberAfFillExternalBuffer(mask, \ - \ - ZCL_SET_USER_STATUS_RESPONSE_COMMAND_ID, "u", status); - -/** @brief Command description for SetUserStatus - * - * Command: SetUserStatus - * @param userStatus INT8U - */ -#define emberAfFillCommandDoor \ - LockClusterSetUserStatus(userStatus) emberAfFillExternalBuffer(mask, \ - \ - ZCL_SET_USER_STATUS_COMMAND_ID, "u", userStatus); - -/** @brief Command description for GetUserStatus - * - * Command: GetUserStatus - * @param userId INT16U - */ -#define emberAfFillCommandDoor \ - LockClusterGetUserStatus(userId) emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_USER_STATUS_COMMAND_ID, "u", userId); - -/** @brief Command description for GetUserStatusResponse - * - * Command: GetUserStatusResponse - * @param userId INT16U - * @param status INT8U - */ -#define emberAfFillCommandDoor \ - LockClusterGetUserStatusResponse(userId, status) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_USER_STATUS_RESPONSE_COMMAND_ID, "uu", userId, status); - -/** @brief Command description for SetWeekdaySchedule - * - * Command: SetWeekdaySchedule - * @param scheduleId INT8U - */ -#define emberAfFillCommandDoor \ - LockClusterSetWeekdaySchedule(scheduleId) emberAfFillExternalBuffer(mask, \ - \ - ZCL_SET_WEEKDAY_SCHEDULE_COMMAND_ID, "u", scheduleId); - -/** @brief Command description for SetWeekdayScheduleResponse - * - * Command: SetWeekdayScheduleResponse - * @param status INT8U - */ -#define emberAfFillCommandDoor \ - LockClusterSetWeekdayScheduleResponse(status) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_SET_WEEKDAY_SCHEDULE_RESPONSE_COMMAND_ID, "u", status); - -/** @brief Command description for SetWeekdaySchedule - * - * Command: SetWeekdaySchedule - * @param userId INT16U - * @param daysMask DoorLockDayOfWeek - * @param startHour INT8U - * @param startMinute INT8U - * @param endHour INT8U - * @param endMinute INT8U - */ -#define emberAfFillCommandDoor \ - LockClusterSetWeekdaySchedule(userId, daysMask, startHour, startMinute, endHour, endMinute) emberAfFillExternalBuffer( \ - mask, \ - \ - ZCL_SET_WEEKDAY_SCHEDULE_COMMAND_ID, "uuuuuu", userId, daysMask, startHour, startMinute, endHour, endMinute); - -/** @brief Command description for GetWeekdaySchedule - * - * Command: GetWeekdaySchedule - * @param scheduleId INT8U - */ -#define emberAfFillCommandDoor \ - LockClusterGetWeekdaySchedule(scheduleId) emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_WEEKDAY_SCHEDULE_COMMAND_ID, "u", scheduleId); - -/** @brief Command description for GetWeekdayScheduleResponse - * - * Command: GetWeekdayScheduleResponse - * @param scheduleId INT8U - */ -#define emberAfFillCommandDoor \ - LockClusterGetWeekdayScheduleResponse(scheduleId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_WEEKDAY_SCHEDULE_RESPONSE_COMMAND_ID, "u", scheduleId); - -/** @brief Command description for GetWeekdaySchedule - * - * Command: GetWeekdaySchedule - * @param userId INT16U - */ -#define emberAfFillCommandDoor \ - LockClusterGetWeekdaySchedule(userId) emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_WEEKDAY_SCHEDULE_COMMAND_ID, "u", userId); - -/** @brief Command description for GetWeekdayScheduleResponse - * - * Command: GetWeekdayScheduleResponse - * @param userId INT16U - * @param status INT8U - * @param daysMask INT8U - * @param startHour INT8U - * @param startMinute INT8U - * @param endHour INT8U - * @param endMinute INT8U - */ -#define emberAfFillCommandDoor \ - LockClusterGetWeekdayScheduleResponse(userId, status, daysMask, startHour, startMinute, endHour, endMinute) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_WEEKDAY_SCHEDULE_RESPONSE_COMMAND_ID, "uuuuuuu", userId, status, daysMask, startHour, \ - startMinute, endHour, endMinute); - -/** @brief Command description for ClearWeekdaySchedule - * - * Command: ClearWeekdaySchedule - * @param scheduleId INT8U - */ -#define emberAfFillCommandDoor \ - LockClusterClearWeekdaySchedule(scheduleId) emberAfFillExternalBuffer(mask, \ - \ - ZCL_CLEAR_WEEKDAY_SCHEDULE_COMMAND_ID, "u", scheduleId); - -/** @brief Command description for ClearWeekdayScheduleResponse - * - * Command: ClearWeekdayScheduleResponse - * @param status INT8U - */ -#define emberAfFillCommandDoor \ - LockClusterClearWeekdayScheduleResponse(status) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_CLEAR_WEEKDAY_SCHEDULE_RESPONSE_COMMAND_ID, "u", status); - -/** @brief Command description for ClearWeekdaySchedule - * - * Command: ClearWeekdaySchedule - * @param userId INT16U - */ -#define emberAfFillCommandDoor \ - LockClusterClearWeekdaySchedule(userId) emberAfFillExternalBuffer(mask, \ - \ - ZCL_CLEAR_WEEKDAY_SCHEDULE_COMMAND_ID, "u", userId); - -/** @brief Command description for SetYeardaySchedule - * - * Command: SetYeardaySchedule - * @param scheduleId INT8U - */ -#define emberAfFillCommandDoor \ - LockClusterSetYeardaySchedule(scheduleId) emberAfFillExternalBuffer(mask, \ - \ - ZCL_SET_YEARDAY_SCHEDULE_COMMAND_ID, "u", scheduleId); - -/** @brief Command description for SetYeardayScheduleResponse - * - * Command: SetYeardayScheduleResponse - * @param status INT8U - */ -#define emberAfFillCommandDoor \ - LockClusterSetYeardayScheduleResponse(status) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_SET_YEARDAY_SCHEDULE_RESPONSE_COMMAND_ID, "u", status); - -/** @brief Command description for SetYeardaySchedule - * - * Command: SetYeardaySchedule - * @param userId INT16U - * @param localStartTime INT32U - * @param localEndTime INT32U - */ -#define emberAfFillCommandDoor \ - LockClusterSetYeardaySchedule(userId, localStartTime, localEndTime) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_SET_YEARDAY_SCHEDULE_COMMAND_ID, "uuu", userId, localStartTime, localEndTime); - -/** @brief Command description for GetYeardaySchedule - * - * Command: GetYeardaySchedule - * @param scheduleId INT8U - */ -#define emberAfFillCommandDoor \ - LockClusterGetYeardaySchedule(scheduleId) emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_YEARDAY_SCHEDULE_COMMAND_ID, "u", scheduleId); - -/** @brief Command description for GetYeardayScheduleResponse - * - * Command: GetYeardayScheduleResponse - * @param scheduleId INT8U - */ -#define emberAfFillCommandDoor \ - LockClusterGetYeardayScheduleResponse(scheduleId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_YEARDAY_SCHEDULE_RESPONSE_COMMAND_ID, "u", scheduleId); - -/** @brief Command description for GetYeardaySchedule - * - * Command: GetYeardaySchedule - * @param userId INT16U - */ -#define emberAfFillCommandDoor \ - LockClusterGetYeardaySchedule(userId) emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_YEARDAY_SCHEDULE_COMMAND_ID, "u", userId); - -/** @brief Command description for GetYeardayScheduleResponse - * - * Command: GetYeardayScheduleResponse - * @param userId INT16U - * @param status INT8U - * @param localStartTime INT32U - * @param localEndTime INT32U - */ -#define emberAfFillCommandDoor \ - LockClusterGetYeardayScheduleResponse(userId, status, localStartTime, localEndTime) emberAfFillExternalBuffer( \ - mask, \ - \ - ZCL_GET_YEARDAY_SCHEDULE_RESPONSE_COMMAND_ID, "uuuu", userId, status, localStartTime, localEndTime); - -/** @brief Command description for ClearYeardaySchedule - * - * Command: ClearYeardaySchedule - * @param scheduleId INT8U - */ -#define emberAfFillCommandDoor \ - LockClusterClearYeardaySchedule(scheduleId) emberAfFillExternalBuffer(mask, \ - \ - ZCL_CLEAR_YEARDAY_SCHEDULE_COMMAND_ID, "u", scheduleId); - -/** @brief Command description for ClearYeardayScheduleResponse - * - * Command: ClearYeardayScheduleResponse - * @param status INT8U - */ -#define emberAfFillCommandDoor \ - LockClusterClearYeardayScheduleResponse(status) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_CLEAR_YEARDAY_SCHEDULE_RESPONSE_COMMAND_ID, "u", status); - -/** @brief Command description for ClearYeardaySchedule - * - * Command: ClearYeardaySchedule - * @param userId INT16U - */ -#define emberAfFillCommandDoor \ - LockClusterClearYeardaySchedule(userId) emberAfFillExternalBuffer(mask, \ - \ - ZCL_CLEAR_YEARDAY_SCHEDULE_COMMAND_ID, "u", userId); - -/** @brief Command description for SetHolidaySchedule - * - * Command: SetHolidaySchedule - * @param scheduleId INT8U - */ -#define emberAfFillCommandDoor \ - LockClusterSetHolidaySchedule(scheduleId) emberAfFillExternalBuffer(mask, \ - \ - ZCL_SET_HOLIDAY_SCHEDULE_COMMAND_ID, "u", scheduleId); - -/** @brief Command description for SetHolidayScheduleResponse - * - * Command: SetHolidayScheduleResponse - * @param status INT8U - */ -#define emberAfFillCommandDoor \ - LockClusterSetHolidayScheduleResponse(status) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_SET_HOLIDAY_SCHEDULE_RESPONSE_COMMAND_ID, "u", status); - -/** @brief Command description for SetHolidaySchedule - * - * Command: SetHolidaySchedule - * @param localStartTime INT32U - * @param localEndTime INT32U - * @param operatingModeDuringHoliday ENUM8 - */ -#define emberAfFillCommandDoor \ - LockClusterSetHolidaySchedule(localStartTime, localEndTime, operatingModeDuringHoliday) emberAfFillExternalBuffer( \ - mask, \ - \ - ZCL_SET_HOLIDAY_SCHEDULE_COMMAND_ID, "uuu", localStartTime, localEndTime, operatingModeDuringHoliday); - -/** @brief Command description for GetHolidaySchedule - * - * Command: GetHolidaySchedule - * @param scheduleId INT8U - */ -#define emberAfFillCommandDoor \ - LockClusterGetHolidaySchedule(scheduleId) emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_HOLIDAY_SCHEDULE_COMMAND_ID, "u", scheduleId); - -/** @brief Command description for GetHolidayScheduleResponse - * - * Command: GetHolidayScheduleResponse - * @param scheduleId INT8U - * @param status INT8U - * @param localStartTime INT32U - * @param localEndTime INT32U - * @param operatingModeDuringHoliday ENUM8 - */ -#define emberAfFillCommandDoor \ - LockClusterGetHolidayScheduleResponse(scheduleId, status, localStartTime, localEndTime, operatingModeDuringHoliday) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_HOLIDAY_SCHEDULE_RESPONSE_COMMAND_ID, "uuuuu", scheduleId, status, localStartTime, \ - localEndTime, operatingModeDuringHoliday); - -/** @brief Command description for ClearHolidaySchedule - * - * Command: ClearHolidaySchedule - * @param scheduleId INT8U - */ -#define emberAfFillCommandDoor \ - LockClusterClearHolidaySchedule(scheduleId) emberAfFillExternalBuffer(mask, \ - \ - ZCL_CLEAR_HOLIDAY_SCHEDULE_COMMAND_ID, "u", scheduleId); - -/** @brief Command description for ClearHolidayScheduleResponse - * - * Command: ClearHolidayScheduleResponse - * @param status INT8U - */ -#define emberAfFillCommandDoor \ - LockClusterClearHolidayScheduleResponse(status) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_CLEAR_HOLIDAY_SCHEDULE_RESPONSE_COMMAND_ID, "u", status); - -/** @brief Command description for SetUserType - * - * Command: SetUserType - * @param userId INT16U - */ -#define emberAfFillCommandDoor \ - LockClusterSetUserType(userId) emberAfFillExternalBuffer(mask, \ - \ - ZCL_SET_USER_TYPE_COMMAND_ID, "u", userId); - -/** @brief Command description for SetUserTypeResponse - * - * Command: SetUserTypeResponse - * @param status INT8U - */ -#define emberAfFillCommandDoor \ - LockClusterSetUserTypeResponse(status) emberAfFillExternalBuffer(mask, \ - \ - ZCL_SET_USER_TYPE_RESPONSE_COMMAND_ID, "u", status); - -/** @brief Command description for SetUserType - * - * Command: SetUserType - * @param userType DoorLockUserType - */ -#define emberAfFillCommandDoor \ - LockClusterSetUserType(userType) emberAfFillExternalBuffer(mask, \ - \ - ZCL_SET_USER_TYPE_COMMAND_ID, "u", userType); - -/** @brief Command description for GetUserType - * - * Command: GetUserType - * @param userId INT16U - */ -#define emberAfFillCommandDoor \ - LockClusterGetUserType(userId) emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_USER_TYPE_COMMAND_ID, "u", userId); - -/** @brief Command description for GetUserTypeResponse - * - * Command: GetUserTypeResponse - * @param userId INT16U - * @param userType DoorLockUserType - */ -#define emberAfFillCommandDoor \ - LockClusterGetUserTypeResponse(userId, userType) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_USER_TYPE_RESPONSE_COMMAND_ID, "uu", userId, userType); - -/** @brief Command description for SetRfid - * - * Command: SetRfid - * @param userId INT16U - */ -#define emberAfFillCommandDoor \ - LockClusterSetRfid(userId) emberAfFillExternalBuffer(mask, \ - \ - ZCL_SET_RFID_COMMAND_ID, "u", userId); - -/** @brief Command description for SetRfidResponse - * - * Command: SetRfidResponse - * @param status DoorLockSetPinOrIdStatus - */ -#define emberAfFillCommandDoor \ - LockClusterSetRfidResponse(status) emberAfFillExternalBuffer(mask, \ - \ - ZCL_SET_RFID_RESPONSE_COMMAND_ID, "u", status); - -/** @brief Command description for SetRfid - * - * Command: SetRfid - * @param userStatus DoorLockUserStatus - * @param userType DoorLockUserType - * @param id CHAR_STRING - */ -#define emberAfFillCommandDoor \ - LockClusterSetRfid(userStatus, userType, id) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_SET_RFID_COMMAND_ID, "uuu", userStatus, userType, id); - -/** @brief Command description for GetRfid - * - * Command: GetRfid - * @param userId INT16U - */ -#define emberAfFillCommandDoor \ - LockClusterGetRfid(userId) emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_RFID_COMMAND_ID, "u", userId); - -/** @brief Command description for GetRfidResponse - * - * Command: GetRfidResponse - * @param userId INT16U - * @param userStatus DoorLockUserStatus - * @param userType DoorLockUserType - * @param rfid CHAR_STRING - */ -#define emberAfFillCommandDoor \ - LockClusterGetRfidResponse(userId, userStatus, userType, rfid) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_RFID_RESPONSE_COMMAND_ID, "uuuu", userId, userStatus, userType, rfid); - -/** @brief Command description for ClearRfid - * - * Command: ClearRfid - * @param userId INT16U - */ -#define emberAfFillCommandDoor \ - LockClusterClearRfid(userId) emberAfFillExternalBuffer(mask, \ - \ - ZCL_CLEAR_RFID_COMMAND_ID, "u", userId); - -/** @brief Command description for ClearRfidResponse - * - * Command: ClearRfidResponse - * @param status INT8U - */ -#define emberAfFillCommandDoor \ - LockClusterClearRfidResponse(status) emberAfFillExternalBuffer(mask, \ - \ - ZCL_CLEAR_RFID_RESPONSE_COMMAND_ID, "u", status); - -/** @brief Command description for ClearAllRfids - * - * Command: ClearAllRfids - */ -#define emberAfFillCommandDoor \ - LockClusterClearAllRfids() emberAfFillExternalBuffer(mask, \ - \ - ZCL_CLEAR_ALL_RFIDS_COMMAND_ID, "", ); - -/** @brief Command description for ClearAllRfidsResponse - * - * Command: ClearAllRfidsResponse - * @param status INT8U - */ -#define emberAfFillCommandDoor \ - LockClusterClearAllRfidsResponse(status) emberAfFillExternalBuffer(mask, \ - \ - ZCL_CLEAR_ALL_RFIDS_RESPONSE_COMMAND_ID, "u", status); - -/** @brief Command description for OperationEventNotification - * - * Command: OperationEventNotification - * @param source INT8U - * @param eventCode DoorLockOperationEventCode - * @param userId INT16U - * @param pin CHAR_STRING - * @param timeStamp INT32U - * @param data CHAR_STRING - */ -#define emberAfFillCommandDoor \ - LockClusterOperationEventNotification(source, eventCode, userId, pin, timeStamp, data) emberAfFillExternalBuffer( \ - mask, \ - \ - ZCL_OPERATION_EVENT_NOTIFICATION_COMMAND_ID, "uuuuuu", source, eventCode, userId, pin, timeStamp, data); - -/** @brief Command description for ProgrammingEventNotification - * - * Command: ProgrammingEventNotification - * @param source INT8U - * @param eventCode DoorLockProgrammingEventCode - * @param userId INT16U - * @param pin CHAR_STRING - * @param userType DoorLockUserType - * @param userStatus DoorLockUserStatus - * @param timeStamp INT32U - * @param data CHAR_STRING - */ -#define emberAfFillCommandDoor \ - LockClusterProgrammingEventNotification(source, eventCode, userId, pin, userType, userStatus, timeStamp, data) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PROGRAMMING_EVENT_NOTIFICATION_COMMAND_ID, "uuuuuuuu", source, eventCode, userId, pin, \ - userType, userStatus, timeStamp, data); - -/** @brief Command description for UpOrOpen - * - * Command: UpOrOpen - */ -#define emberAfFillCommandWindow \ - CoveringClusterUpOrOpen() emberAfFillExternalBuffer(mask, \ - \ - ZCL_UP_OR_OPEN_COMMAND_ID, "", ); - -/** @brief Command description for DownOrClose - * - * Command: DownOrClose - */ -#define emberAfFillCommandWindow \ - CoveringClusterDownOrClose() emberAfFillExternalBuffer(mask, \ - \ - ZCL_DOWN_OR_CLOSE_COMMAND_ID, "", ); - -/** @brief Command description for StopMotion - * - * Command: StopMotion - */ -#define emberAfFillCommandWindow \ - CoveringClusterStopMotion() emberAfFillExternalBuffer(mask, \ - \ - ZCL_STOP_MOTION_COMMAND_ID, "", ); - -/** @brief Command description for GoToLiftValue - * - * Command: GoToLiftValue - * @param liftValue INT16U - */ -#define emberAfFillCommandWindow \ - CoveringClusterGoToLiftValue(liftValue) emberAfFillExternalBuffer(mask, \ - \ - ZCL_GO_TO_LIFT_VALUE_COMMAND_ID, "u", liftValue); - -/** @brief Command description for GoToLiftPercentage - * - * Command: GoToLiftPercentage - * @param liftPercentageValue INT8U - * @param liftPercent100thsValue INT16U - */ -#define emberAfFillCommandWindow \ - CoveringClusterGoToLiftPercentage(liftPercentageValue, liftPercent100thsValue) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GO_TO_LIFT_PERCENTAGE_COMMAND_ID, "uu", liftPercentageValue, liftPercent100thsValue); - -/** @brief Command description for GoToTiltValue - * - * Command: GoToTiltValue - * @param tiltValue INT16U - */ -#define emberAfFillCommandWindow \ - CoveringClusterGoToTiltValue(tiltValue) emberAfFillExternalBuffer(mask, \ - \ - ZCL_GO_TO_TILT_VALUE_COMMAND_ID, "u", tiltValue); - -/** @brief Command description for GoToTiltPercentage - * - * Command: GoToTiltPercentage - * @param tiltPercentageValue INT8U - * @param tiltPercent100thsValue INT16U - */ -#define emberAfFillCommandWindow \ - CoveringClusterGoToTiltPercentage(tiltPercentageValue, tiltPercent100thsValue) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GO_TO_TILT_PERCENTAGE_COMMAND_ID, "uu", tiltPercentageValue, tiltPercent100thsValue); - -/** @brief Command description for BarrierControlGoToPercent - * - * Command: BarrierControlGoToPercent - * @param percentOpen INT8U - */ -#define emberAfFillCommandBarrier \ - ControlClusterBarrierControlGoToPercent(percentOpen) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_BARRIER_CONTROL_GO_TO_PERCENT_COMMAND_ID, "u", percentOpen); - -/** @brief Command description for BarrierControlStop - * - * Command: BarrierControlStop - */ -#define emberAfFillCommandBarrier \ - ControlClusterBarrierControlStop() emberAfFillExternalBuffer(mask, \ - \ - ZCL_BARRIER_CONTROL_STOP_COMMAND_ID, "", ); - -/** @brief Command description for SetpointRaiseLower - * - * Command: SetpointRaiseLower - * @param mode SetpointAdjustMode - */ -#define emberAfFillCommandThermostatClusterSetpointRaiseLower(mode) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_SETPOINT_RAISE_LOWER_COMMAND_ID, "u", mode); - -/** @brief Command description for CurrentWeeklySchedule - * - * Command: CurrentWeeklySchedule - * @param numberOfTransitionsForSequence ENUM8 - */ -#define emberAfFillCommandThermostatClusterCurrentWeeklySchedule(numberOfTransitionsForSequence) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_CURRENT_WEEKLY_SCHEDULE_COMMAND_ID, "u", numberOfTransitionsForSequence); - -/** @brief Command description for SetpointRaiseLower - * - * Command: SetpointRaiseLower - * @param amount INT8S - */ -#define emberAfFillCommandThermostatClusterSetpointRaiseLower(amount) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_SETPOINT_RAISE_LOWER_COMMAND_ID, "u", amount); - -/** @brief Command description for CurrentWeeklySchedule - * - * Command: CurrentWeeklySchedule - * @param dayOfWeekForSequence DayOfWeek - * @param modeForSequence ModeForSequence - * @param payload INT8U [] - * @param payloadLen int - */ -#define emberAfFillCommandThermostatClusterCurrentWeeklySchedule(dayOfWeekForSequence, modeForSequence, payload, payloadLen) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_CURRENT_WEEKLY_SCHEDULE_COMMAND_ID, "uub", dayOfWeekForSequence, modeForSequence, payload, \ - payloadLen); - -/** @brief Command description for SetWeeklySchedule - * - * Command: SetWeeklySchedule - * @param numberOfTransitionsForSequence ENUM8 - */ -#define emberAfFillCommandThermostatClusterSetWeeklySchedule(numberOfTransitionsForSequence) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_SET_WEEKLY_SCHEDULE_COMMAND_ID, "u", numberOfTransitionsForSequence); - -/** @brief Command description for RelayStatusLog - * - * Command: RelayStatusLog - * @param timeOfDay INT16U - */ -#define emberAfFillCommandThermostatClusterRelayStatusLog(timeOfDay) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_RELAY_STATUS_LOG_COMMAND_ID, "u", timeOfDay); - -/** @brief Command description for SetWeeklySchedule - * - * Command: SetWeeklySchedule - * @param dayOfWeekForSequence DayOfWeek - */ -#define emberAfFillCommandThermostatClusterSetWeeklySchedule(dayOfWeekForSequence) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_SET_WEEKLY_SCHEDULE_COMMAND_ID, "u", dayOfWeekForSequence); - -/** @brief Command description for RelayStatusLog - * - * Command: RelayStatusLog - * @param relayStatus BITMAP16 - */ -#define emberAfFillCommandThermostatClusterRelayStatusLog(relayStatus) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_RELAY_STATUS_LOG_COMMAND_ID, "u", relayStatus); - -/** @brief Command description for SetWeeklySchedule - * - * Command: SetWeeklySchedule - * @param modeForSequence ModeForSequence - */ -#define emberAfFillCommandThermostatClusterSetWeeklySchedule(modeForSequence) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_SET_WEEKLY_SCHEDULE_COMMAND_ID, "u", modeForSequence); - -/** @brief Command description for RelayStatusLog - * - * Command: RelayStatusLog - * @param localTemperature INT16S - */ -#define emberAfFillCommandThermostatClusterRelayStatusLog(localTemperature) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_RELAY_STATUS_LOG_COMMAND_ID, "u", localTemperature); - -/** @brief Command description for SetWeeklySchedule - * - * Command: SetWeeklySchedule - * @param payload INT8U [] - * @param payloadLen int - */ -#define emberAfFillCommandThermostatClusterSetWeeklySchedule(payload, payloadLen) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_SET_WEEKLY_SCHEDULE_COMMAND_ID, "b", payload, payloadLen); - -/** @brief Command description for RelayStatusLog - * - * Command: RelayStatusLog - * @param humidityInPercentage INT8U - * @param setpoint INT16S - * @param unreadEntries INT16U - */ -#define emberAfFillCommandThermostatClusterRelayStatusLog(humidityInPercentage, setpoint, unreadEntries) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_RELAY_STATUS_LOG_COMMAND_ID, "uuu", humidityInPercentage, setpoint, unreadEntries); - -/** @brief Command description for GetWeeklySchedule - * - * Command: GetWeeklySchedule - * @param daysToReturn DayOfWeek - * @param modeToReturn ModeForSequence - */ -#define emberAfFillCommandThermostatClusterGetWeeklySchedule(daysToReturn, modeToReturn) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_WEEKLY_SCHEDULE_COMMAND_ID, "uu", daysToReturn, modeToReturn); - -/** @brief Command description for ClearWeeklySchedule - * - * Command: ClearWeeklySchedule - */ -#define emberAfFillCommandThermostatClusterClearWeeklySchedule() \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_CLEAR_WEEKLY_SCHEDULE_COMMAND_ID, "", ); - -/** @brief Command description for GetRelayStatusLog - * - * Command: GetRelayStatusLog - */ -#define emberAfFillCommandThermostatClusterGetRelayStatusLog() \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_RELAY_STATUS_LOG_COMMAND_ID, "", ); - -/** @brief Command description for MoveToHue - * - * Command: MoveToHue - * @param hue INT8U - * @param direction HueDirection - * @param transitionTime INT16U - * @param optionsMask BITMAP8 - * @param optionsOverride BITMAP8 - */ -#define emberAfFillCommandColor \ - ControlClusterMoveToHue(hue, direction, transitionTime, optionsMask, optionsOverride) emberAfFillExternalBuffer( \ - mask, \ - \ - ZCL_MOVE_TO_HUE_COMMAND_ID, "uuuuu", hue, direction, transitionTime, optionsMask, optionsOverride); - -/** @brief Command description for MoveHue - * - * Command: MoveHue - * @param moveMode HueMoveMode - * @param rate INT8U - * @param optionsMask BITMAP8 - * @param optionsOverride BITMAP8 - */ -#define emberAfFillCommandColor \ - ControlClusterMoveHue(moveMode, rate, optionsMask, optionsOverride) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_MOVE_HUE_COMMAND_ID, "uuuu", moveMode, rate, optionsMask, optionsOverride); - -/** @brief Command description for StepHue - * - * Command: StepHue - * @param stepMode HueStepMode - * @param stepSize INT8U - * @param transitionTime INT8U - * @param optionsMask BITMAP8 - * @param optionsOverride BITMAP8 - */ -#define emberAfFillCommandColor \ - ControlClusterStepHue(stepMode, stepSize, transitionTime, optionsMask, optionsOverride) emberAfFillExternalBuffer( \ - mask, \ - \ - ZCL_STEP_HUE_COMMAND_ID, "uuuuu", stepMode, stepSize, transitionTime, optionsMask, optionsOverride); - -/** @brief Command description for MoveToSaturation - * - * Command: MoveToSaturation - * @param saturation INT8U - * @param transitionTime INT16U - * @param optionsMask BITMAP8 - * @param optionsOverride BITMAP8 - */ -#define emberAfFillCommandColor \ - ControlClusterMoveToSaturation(saturation, transitionTime, optionsMask, optionsOverride) emberAfFillExternalBuffer( \ - mask, \ - \ - ZCL_MOVE_TO_SATURATION_COMMAND_ID, "uuuu", saturation, transitionTime, optionsMask, optionsOverride); - -/** @brief Command description for MoveSaturation - * - * Command: MoveSaturation - * @param moveMode SaturationMoveMode - * @param rate INT8U - * @param optionsMask BITMAP8 - * @param optionsOverride BITMAP8 - */ -#define emberAfFillCommandColor \ - ControlClusterMoveSaturation(moveMode, rate, optionsMask, optionsOverride) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_MOVE_SATURATION_COMMAND_ID, "uuuu", moveMode, rate, optionsMask, optionsOverride); - -/** @brief Command description for StepSaturation - * - * Command: StepSaturation - * @param stepMode SaturationStepMode - * @param stepSize INT8U - * @param transitionTime INT8U - * @param optionsMask BITMAP8 - * @param optionsOverride BITMAP8 - */ -#define emberAfFillCommandColor \ - ControlClusterStepSaturation(stepMode, stepSize, transitionTime, optionsMask, optionsOverride) emberAfFillExternalBuffer( \ - mask, \ - \ - ZCL_STEP_SATURATION_COMMAND_ID, "uuuuu", stepMode, stepSize, transitionTime, optionsMask, optionsOverride); - -/** @brief Command description for MoveToHueAndSaturation - * - * Command: MoveToHueAndSaturation - * @param hue INT8U - * @param saturation INT8U - * @param transitionTime INT16U - * @param optionsMask BITMAP8 - * @param optionsOverride BITMAP8 - */ -#define emberAfFillCommandColor \ - ControlClusterMoveToHueAndSaturation(hue, saturation, transitionTime, optionsMask, optionsOverride) emberAfFillExternalBuffer( \ - mask, \ - \ - ZCL_MOVE_TO_HUE_AND_SATURATION_COMMAND_ID, "uuuuu", hue, saturation, transitionTime, optionsMask, optionsOverride); - -/** @brief Command description for MoveToColor - * - * Command: MoveToColor - * @param colorX INT16U - * @param colorY INT16U - * @param transitionTime INT16U - * @param optionsMask BITMAP8 - * @param optionsOverride BITMAP8 - */ -#define emberAfFillCommandColor \ - ControlClusterMoveToColor(colorX, colorY, transitionTime, optionsMask, optionsOverride) emberAfFillExternalBuffer( \ - mask, \ - \ - ZCL_MOVE_TO_COLOR_COMMAND_ID, "uuuuu", colorX, colorY, transitionTime, optionsMask, optionsOverride); - -/** @brief Command description for MoveColor - * - * Command: MoveColor - * @param rateX INT16S - * @param rateY INT16S - * @param optionsMask BITMAP8 - * @param optionsOverride BITMAP8 - */ -#define emberAfFillCommandColor \ - ControlClusterMoveColor(rateX, rateY, optionsMask, optionsOverride) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_MOVE_COLOR_COMMAND_ID, "uuuu", rateX, rateY, optionsMask, optionsOverride); - -/** @brief Command description for StepColor - * - * Command: StepColor - * @param stepX INT16S - * @param stepY INT16S - * @param transitionTime INT16U - * @param optionsMask BITMAP8 - * @param optionsOverride BITMAP8 - */ -#define emberAfFillCommandColor \ - ControlClusterStepColor(stepX, stepY, transitionTime, optionsMask, optionsOverride) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_STEP_COLOR_COMMAND_ID, "uuuuu", stepX, stepY, transitionTime, optionsMask, optionsOverride); - -/** @brief Command description for MoveToColorTemperature - * - * Command: MoveToColorTemperature - * @param colorTemperature INT16U - * @param transitionTime INT16U - * @param optionsMask BITMAP8 - * @param optionsOverride BITMAP8 - */ -#define emberAfFillCommandColor \ - ControlClusterMoveToColorTemperature(colorTemperature, transitionTime, optionsMask, optionsOverride) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_MOVE_TO_COLOR_TEMPERATURE_COMMAND_ID, "uuuu", colorTemperature, transitionTime, optionsMask, \ - optionsOverride); - -/** @brief Command description for EnhancedMoveToHue - * - * Command: EnhancedMoveToHue - * @param enhancedHue INT16U - * @param direction HueDirection - * @param transitionTime INT16U - */ -#define emberAfFillCommandColor \ - ControlClusterEnhancedMoveToHue(enhancedHue, direction, transitionTime) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_ENHANCED_MOVE_TO_HUE_COMMAND_ID, "uuu", enhancedHue, direction, transitionTime); - -/** @brief Command description for EnhancedMoveHue - * - * Command: EnhancedMoveHue - * @param moveMode HueMoveMode - * @param rate INT16U - */ -#define emberAfFillCommandColor \ - ControlClusterEnhancedMoveHue(moveMode, rate) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_ENHANCED_MOVE_HUE_COMMAND_ID, "uu", moveMode, rate); - -/** @brief Command description for EnhancedStepHue - * - * Command: EnhancedStepHue - * @param stepMode HueStepMode - * @param stepSize INT16U - * @param transitionTime INT16U - */ -#define emberAfFillCommandColor \ - ControlClusterEnhancedStepHue(stepMode, stepSize, transitionTime) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_ENHANCED_STEP_HUE_COMMAND_ID, "uuu", stepMode, stepSize, transitionTime); - -/** @brief Command description for EnhancedMoveToHueAndSaturation - * - * Command: EnhancedMoveToHueAndSaturation - * @param enhancedHue INT16U - * @param saturation INT8U - * @param transitionTime INT16U - */ -#define emberAfFillCommandColor \ - ControlClusterEnhancedMoveToHueAndSaturation(enhancedHue, saturation, transitionTime) emberAfFillExternalBuffer( \ - mask, \ - \ - ZCL_ENHANCED_MOVE_TO_HUE_AND_SATURATION_COMMAND_ID, "uuu", enhancedHue, saturation, transitionTime); - -/** @brief Command description for ColorLoopSet - * - * Command: ColorLoopSet - * @param updateFlags ColorLoopUpdateFlags - * @param action ColorLoopAction - * @param direction ColorLoopDirection - * @param time INT16U - * @param startHue INT16U - */ -#define emberAfFillCommandColor \ - ControlClusterColorLoopSet(updateFlags, action, direction, time, startHue) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_COLOR_LOOP_SET_COMMAND_ID, "uuuuu", updateFlags, action, direction, time, startHue); - -/** @brief Command description for StopMoveStep - * - * Command: StopMoveStep - * @param optionsMask BITMAP8 - * @param optionsOverride BITMAP8 - */ -#define emberAfFillCommandColor \ - ControlClusterStopMoveStep(optionsMask, optionsOverride) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_STOP_MOVE_STEP_COMMAND_ID, "uu", optionsMask, optionsOverride); - -/** @brief Command description for MoveColorTemperature - * - * Command: MoveColorTemperature - * @param moveMode HueMoveMode - * @param rate INT16U - * @param colorTemperatureMinimum INT16U - * @param colorTemperatureMaximum INT16U - * @param optionsMask BITMAP8 - * @param optionsOverride BITMAP8 - */ -#define emberAfFillCommandColor \ - ControlClusterMoveColorTemperature(moveMode, rate, colorTemperatureMinimum, colorTemperatureMaximum, optionsMask, \ - optionsOverride) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_MOVE_COLOR_TEMPERATURE_COMMAND_ID, "uuuuuu", moveMode, rate, colorTemperatureMinimum, \ - colorTemperatureMaximum, optionsMask, optionsOverride); - -/** @brief Command description for StepColorTemperature - * - * Command: StepColorTemperature - * @param stepMode HueStepMode - * @param stepSize INT16U - * @param transitionTime INT16U - * @param colorTemperatureMinimum INT16U - * @param colorTemperatureMaximum INT16U - * @param optionsMask BITMAP8 - * @param optionsOverride BITMAP8 - */ -#define emberAfFillCommandColor \ - ControlClusterStepColorTemperature(stepMode, stepSize, transitionTime, colorTemperatureMinimum, colorTemperatureMaximum, \ - optionsMask, optionsOverride) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_STEP_COLOR_TEMPERATURE_COMMAND_ID, "uuuuuuu", stepMode, stepSize, transitionTime, \ - colorTemperatureMinimum, colorTemperatureMaximum, optionsMask, optionsOverride); - -/** @brief Command description for ZoneEnrollResponse - * - * Command: ZoneEnrollResponse - * @param enrollResponseCode IasEnrollResponseCode - */ -#define emberAfFillCommandIAS \ - ZoneClusterZoneEnrollResponse(enrollResponseCode) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_ZONE_ENROLL_RESPONSE_COMMAND_ID, "u", enrollResponseCode); - -/** @brief Command description for ZoneStatusChangeNotification - * - * Command: ZoneStatusChangeNotification - * @param zoneStatus IasZoneStatus - */ -#define emberAfFillCommandIAS \ - ZoneClusterZoneStatusChangeNotification(zoneStatus) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_ZONE_STATUS_CHANGE_NOTIFICATION_COMMAND_ID, "u", zoneStatus); - -/** @brief Command description for ZoneEnrollResponse - * - * Command: ZoneEnrollResponse - * @param zoneId INT8U - */ -#define emberAfFillCommandIAS \ - ZoneClusterZoneEnrollResponse(zoneId) emberAfFillExternalBuffer(mask, \ - \ - ZCL_ZONE_ENROLL_RESPONSE_COMMAND_ID, "u", zoneId); - -/** @brief Command description for ZoneStatusChangeNotification - * - * Command: ZoneStatusChangeNotification - * @param extendedStatus BITMAP8 - * @param zoneId INT8U - * @param delay INT16U - */ -#define emberAfFillCommandIAS \ - ZoneClusterZoneStatusChangeNotification(extendedStatus, zoneId, delay) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_ZONE_STATUS_CHANGE_NOTIFICATION_COMMAND_ID, "uuu", extendedStatus, zoneId, delay); - -/** @brief Command description for InitiateNormalOperationMode - * - * Command: InitiateNormalOperationMode - */ -#define emberAfFillCommandIAS \ - ZoneClusterInitiateNormalOperationMode() emberAfFillExternalBuffer(mask, \ - \ - ZCL_INITIATE_NORMAL_OPERATION_MODE_COMMAND_ID, "", ); - -/** @brief Command description for ZoneEnrollRequest - * - * Command: ZoneEnrollRequest - * @param zoneType IasZoneType - * @param manufacturerCode INT16U - */ -#define emberAfFillCommandIAS \ - ZoneClusterZoneEnrollRequest(zoneType, manufacturerCode) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_ZONE_ENROLL_REQUEST_COMMAND_ID, "uu", zoneType, manufacturerCode); - -/** @brief Command description for InitiateNormalOperationModeResponse - * - * Command: InitiateNormalOperationModeResponse - */ -#define emberAfFillCommandIAS \ - ZoneClusterInitiateNormalOperationModeResponse() \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_INITIATE_NORMAL_OPERATION_MODE_RESPONSE_COMMAND_ID, "", ); - -/** @brief Command description for InitiateTestMode - * - * Command: InitiateTestMode - * @param testModeDuration INT8U - * @param currentZoneSensitivityLevel INT8U - */ -#define emberAfFillCommandIAS \ - ZoneClusterInitiateTestMode(testModeDuration, currentZoneSensitivityLevel) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_INITIATE_TEST_MODE_COMMAND_ID, "uu", testModeDuration, currentZoneSensitivityLevel); - -/** @brief Command description for InitiateTestModeResponse - * - * Command: InitiateTestModeResponse - */ -#define emberAfFillCommandIAS \ - ZoneClusterInitiateTestModeResponse() emberAfFillExternalBuffer(mask, \ - \ - ZCL_INITIATE_TEST_MODE_RESPONSE_COMMAND_ID, "", ); - -/** @brief Command description for Arm - * - * Command: Arm - * @param armMode IasAceArmMode - */ -#define emberAfFillCommandIAS \ - ACEClusterArm(armMode) emberAfFillExternalBuffer(mask, \ - \ - ZCL_ARM_COMMAND_ID, "u", armMode); - -/** @brief Command description for ArmResponse - * - * Command: ArmResponse - * @param armNotification IasAceArmNotification - */ -#define emberAfFillCommandIAS \ - ACEClusterArmResponse(armNotification) emberAfFillExternalBuffer(mask, \ - \ - ZCL_ARM_RESPONSE_COMMAND_ID, "u", armNotification); - -/** @brief Command description for Arm - * - * Command: Arm - * @param armDisarmCode CHAR_STRING - * @param zoneId INT8U - */ -#define emberAfFillCommandIAS \ - ACEClusterArm(armDisarmCode, zoneId) emberAfFillExternalBuffer(mask, \ - \ - ZCL_ARM_COMMAND_ID, "uu", armDisarmCode, zoneId); - -/** @brief Command description for Bypass - * - * Command: Bypass - * @param numberOfZones INT8U - */ -#define emberAfFillCommandIAS \ - ACEClusterBypass(numberOfZones) emberAfFillExternalBuffer(mask, \ - \ - ZCL_BYPASS_COMMAND_ID, "u", numberOfZones); - -/** @brief Command description for GetZoneIdMapResponse - * - * Command: GetZoneIdMapResponse - * @param section0 BITMAP16 - */ -#define emberAfFillCommandIAS \ - ACEClusterGetZoneIdMapResponse(section0) emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_ZONE_ID_MAP_RESPONSE_COMMAND_ID, "u", section0); - -/** @brief Command description for Bypass - * - * Command: Bypass - * @param zoneIds INT8U [] - * @param zoneIdsLen int - */ -#define emberAfFillCommandIAS \ - ACEClusterBypass(zoneIds, zoneIdsLen) emberAfFillExternalBuffer(mask, \ - \ - ZCL_BYPASS_COMMAND_ID, "b", zoneIds, zoneIdsLen); - -/** @brief Command description for GetZoneIdMapResponse - * - * Command: GetZoneIdMapResponse - * @param section1 BITMAP16 - */ -#define emberAfFillCommandIAS \ - ACEClusterGetZoneIdMapResponse(section1) emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_ZONE_ID_MAP_RESPONSE_COMMAND_ID, "u", section1); - -/** @brief Command description for Bypass - * - * Command: Bypass - * @param armDisarmCode CHAR_STRING - */ -#define emberAfFillCommandIAS \ - ACEClusterBypass(armDisarmCode) emberAfFillExternalBuffer(mask, \ - \ - ZCL_BYPASS_COMMAND_ID, "u", armDisarmCode); - -/** @brief Command description for GetZoneIdMapResponse - * - * Command: GetZoneIdMapResponse - * @param section2 BITMAP16 - * @param section3 BITMAP16 - * @param section4 BITMAP16 - * @param section5 BITMAP16 - * @param section6 BITMAP16 - * @param section7 BITMAP16 - * @param section8 BITMAP16 - * @param section9 BITMAP16 - * @param section10 BITMAP16 - * @param section11 BITMAP16 - * @param section12 BITMAP16 - * @param section13 BITMAP16 - * @param section14 BITMAP16 - * @param section15 BITMAP16 - */ -#define emberAfFillCommandIAS \ - ACEClusterGetZoneIdMapResponse(section2, section3, section4, section5, section6, section7, section8, section9, section10, \ - section11, section12, section13, section14, section15) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_ZONE_ID_MAP_RESPONSE_COMMAND_ID, "uuuuuuuuuuuuuu", section2, section3, section4, \ - section5, section6, section7, section8, section9, section10, section11, section12, section13, \ - section14, section15); - -/** @brief Command description for Emergency - * - * Command: Emergency - */ -#define emberAfFillCommandIAS \ - ACEClusterEmergency() emberAfFillExternalBuffer(mask, \ - \ - ZCL_EMERGENCY_COMMAND_ID, "", ); - -/** @brief Command description for GetZoneInformationResponse - * - * Command: GetZoneInformationResponse - * @param zoneId INT8U - * @param zoneType IasZoneType - * @param ieeeAddress IEEE_ADDRESS - * @param zoneLabel CHAR_STRING - */ -#define emberAfFillCommandIAS \ - ACEClusterGetZoneInformationResponse(zoneId, zoneType, ieeeAddress, zoneLabel) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_ZONE_INFORMATION_RESPONSE_COMMAND_ID, "uuuu", zoneId, zoneType, ieeeAddress, zoneLabel); - -/** @brief Command description for Fire - * - * Command: Fire - */ -#define emberAfFillCommandIAS \ - ACEClusterFire() emberAfFillExternalBuffer(mask, \ - \ - ZCL_FIRE_COMMAND_ID, "", ); - -/** @brief Command description for ZoneStatusChanged - * - * Command: ZoneStatusChanged - * @param zoneId INT8U - * @param zoneStatus ENUM16 - * @param audibleNotification IasAceAudibleNotification - * @param zoneLabel CHAR_STRING - */ -#define emberAfFillCommandIAS \ - ACEClusterZoneStatusChanged(zoneId, zoneStatus, audibleNotification, zoneLabel) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_ZONE_STATUS_CHANGED_COMMAND_ID, "uuuu", zoneId, zoneStatus, audibleNotification, zoneLabel); - -/** @brief Command description for Panic - * - * Command: Panic - */ -#define emberAfFillCommandIAS \ - ACEClusterPanic() emberAfFillExternalBuffer(mask, \ - \ - ZCL_PANIC_COMMAND_ID, "", ); - -/** @brief Command description for PanelStatusChanged - * - * Command: PanelStatusChanged - * @param panelStatus IasAcePanelStatus - * @param secondsRemaining INT8U - * @param audibleNotification IasAceAudibleNotification - * @param alarmStatus IasAceAlarmStatus - */ -#define emberAfFillCommandIAS \ - ACEClusterPanelStatusChanged(panelStatus, secondsRemaining, audibleNotification, alarmStatus) emberAfFillExternalBuffer( \ - mask, \ - \ - ZCL_PANEL_STATUS_CHANGED_COMMAND_ID, "uuuu", panelStatus, secondsRemaining, audibleNotification, alarmStatus); - -/** @brief Command description for GetZoneIdMap - * - * Command: GetZoneIdMap - */ -#define emberAfFillCommandIAS \ - ACEClusterGetZoneIdMap() emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_ZONE_ID_MAP_COMMAND_ID, "", ); - -/** @brief Command description for GetPanelStatusResponse - * - * Command: GetPanelStatusResponse - * @param panelStatus IasAcePanelStatus - * @param secondsRemaining INT8U - * @param audibleNotification IasAceAudibleNotification - * @param alarmStatus IasAceAlarmStatus - */ -#define emberAfFillCommandIAS \ - ACEClusterGetPanelStatusResponse(panelStatus, secondsRemaining, audibleNotification, alarmStatus) emberAfFillExternalBuffer( \ - mask, \ - \ - ZCL_GET_PANEL_STATUS_RESPONSE_COMMAND_ID, "uuuu", panelStatus, secondsRemaining, audibleNotification, alarmStatus); - -/** @brief Command description for GetZoneInformation - * - * Command: GetZoneInformation - * @param zoneId INT8U - */ -#define emberAfFillCommandIAS \ - ACEClusterGetZoneInformation(zoneId) emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_ZONE_INFORMATION_COMMAND_ID, "u", zoneId); - -/** @brief Command description for SetBypassedZoneList - * - * Command: SetBypassedZoneList - * @param numberOfZones INT8U - * @param zoneIds INT8U [] - * @param zoneIdsLen int - */ -#define emberAfFillCommandIAS \ - ACEClusterSetBypassedZoneList(numberOfZones, zoneIds, zoneIdsLen) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_SET_BYPASSED_ZONE_LIST_COMMAND_ID, "ub", numberOfZones, zoneIds, zoneIdsLen); - -/** @brief Command description for GetPanelStatus - * - * Command: GetPanelStatus - */ -#define emberAfFillCommandIAS \ - ACEClusterGetPanelStatus() emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_PANEL_STATUS_COMMAND_ID, "", ); - -/** @brief Command description for BypassResponse - * - * Command: BypassResponse - * @param numberOfZones INT8U - * @param bypassResult IasAceBypassResult [] - * @param bypassResultLen int - */ -#define emberAfFillCommandIAS \ - ACEClusterBypassResponse(numberOfZones, bypassResult, bypassResultLen) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_BYPASS_RESPONSE_COMMAND_ID, "ub", numberOfZones, bypassResult, bypassResultLen); - -/** @brief Command description for GetBypassedZoneList - * - * Command: GetBypassedZoneList - */ -#define emberAfFillCommandIAS \ - ACEClusterGetBypassedZoneList() emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_BYPASSED_ZONE_LIST_COMMAND_ID, "", ); - -/** @brief Command description for GetZoneStatusResponse - * - * Command: GetZoneStatusResponse - * @param zoneStatusComplete BOOLEAN - * @param numberOfZones INT8U - * @param zoneStatusResult IasAceZoneStatusResult [] - * @param zoneStatusResultLen int - */ -#define emberAfFillCommandIAS \ - ACEClusterGetZoneStatusResponse(zoneStatusComplete, numberOfZones, zoneStatusResult, zoneStatusResultLen) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_ZONE_STATUS_RESPONSE_COMMAND_ID, "uub", zoneStatusComplete, numberOfZones, \ - zoneStatusResult, zoneStatusResultLen); - -/** @brief Command description for GetZoneStatus - * - * Command: GetZoneStatus - * @param startingZoneId INT8U - * @param maxNumberOfZoneIds INT8U - * @param zoneStatusMaskFlag BOOLEAN - * @param zoneStatusMask BITMAP16 - */ -#define emberAfFillCommandIAS \ - ACEClusterGetZoneStatus(startingZoneId, maxNumberOfZoneIds, zoneStatusMaskFlag, zoneStatusMask) emberAfFillExternalBuffer( \ - mask, \ - \ - ZCL_GET_ZONE_STATUS_COMMAND_ID, "uuuu", startingZoneId, maxNumberOfZoneIds, zoneStatusMaskFlag, zoneStatusMask); - -/** @brief Command description for StartWarning - * - * Command: StartWarning - * @param warningInfo WarningInfo - * @param warningDuration INT16U - * @param strobeDutyCycle INT8U - * @param strobeLevel ENUM8 - */ -#define emberAfFillCommandIAS \ - WDClusterStartWarning(warningInfo, warningDuration, strobeDutyCycle, strobeLevel) emberAfFillExternalBuffer( \ - mask, \ - \ - ZCL_START_WARNING_COMMAND_ID, "uuuu", warningInfo, warningDuration, strobeDutyCycle, strobeLevel); - -/** @brief Command description for Squawk - * - * Command: Squawk - * @param squawkInfo SquawkInfo - */ -#define emberAfFillCommandIAS \ - WDClusterSquawk(squawkInfo) emberAfFillExternalBuffer(mask, \ - \ - ZCL_SQUAWK_COMMAND_ID, "u", squawkInfo); - -/** @brief Command description for ChangeChannel - * - * Command: ChangeChannel - * @param match CHAR_STRING - */ -#define emberAfFillCommandTV \ - ChannelClusterChangeChannel(match) emberAfFillExternalBuffer(mask, \ - \ - ZCL_CHANGE_CHANNEL_COMMAND_ID, "u", match); - -/** @brief Command description for ChangeChannelResponse - * - * Command: ChangeChannelResponse - * @param ChannelMatch TvChannelInfo [] - * @param ChannelMatchLen int - * @param ErrorType TvChannelErrorType - */ -#define emberAfFillCommandTV \ - ChannelClusterChangeChannelResponse(ChannelMatch, ChannelMatchLen, ErrorType) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_CHANGE_CHANNEL_RESPONSE_COMMAND_ID, "bu", ChannelMatch, ChannelMatchLen, ErrorType); - -/** @brief Command description for ChangeChannelByNumber - * - * Command: ChangeChannelByNumber - * @param majorNumber INT16U - * @param minorNumber INT16U - */ -#define emberAfFillCommandTV \ - ChannelClusterChangeChannelByNumber(majorNumber, minorNumber) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_CHANGE_CHANNEL_BY_NUMBER_COMMAND_ID, "uu", majorNumber, minorNumber); - -/** @brief Command description for SkipChannel - * - * Command: SkipChannel - * @param Count INT16U - */ -#define emberAfFillCommandTV \ - ChannelClusterSkipChannel(Count) emberAfFillExternalBuffer(mask, \ - \ - ZCL_SKIP_CHANNEL_COMMAND_ID, "u", Count); - -/** @brief Command description for NavigateTarget - * - * Command: NavigateTarget - * @param target INT8U - */ -#define emberAfFillCommandTarget \ - NavigatorClusterNavigateTarget(target) emberAfFillExternalBuffer(mask, \ - \ - ZCL_NAVIGATE_TARGET_COMMAND_ID, "u", target); - -/** @brief Command description for NavigateTargetResponse - * - * Command: NavigateTargetResponse - * @param status NavigateTargetStatus - */ -#define emberAfFillCommandTarget \ - NavigatorClusterNavigateTargetResponse(status) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_NAVIGATE_TARGET_RESPONSE_COMMAND_ID, "u", status); - -/** @brief Command description for NavigateTarget - * - * Command: NavigateTarget - * @param data CHAR_STRING - */ -#define emberAfFillCommandTarget \ - NavigatorClusterNavigateTarget(data) emberAfFillExternalBuffer(mask, \ - \ - ZCL_NAVIGATE_TARGET_COMMAND_ID, "u", data); - -/** @brief Command description for NavigateTargetResponse - * - * Command: NavigateTargetResponse - * @param data CHAR_STRING - */ -#define emberAfFillCommandTarget \ - NavigatorClusterNavigateTargetResponse(data) emberAfFillExternalBuffer(mask, \ - \ - ZCL_NAVIGATE_TARGET_RESPONSE_COMMAND_ID, "u", data); - -/** @brief Command description for MediaPlay - * - * Command: MediaPlay - */ -#define emberAfFillCommandMedia \ - PlaybackClusterMediaPlay() emberAfFillExternalBuffer(mask, \ - \ - ZCL_MEDIA_PLAY_COMMAND_ID, "", ); - -/** @brief Command description for MediaPlayResponse - * - * Command: MediaPlayResponse - * @param mediaPlaybackStatus MediaPlaybackStatus - */ -#define emberAfFillCommandMedia \ - PlaybackClusterMediaPlayResponse(mediaPlaybackStatus) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_MEDIA_PLAY_RESPONSE_COMMAND_ID, "u", mediaPlaybackStatus); - -/** @brief Command description for MediaPause - * - * Command: MediaPause - */ -#define emberAfFillCommandMedia \ - PlaybackClusterMediaPause() emberAfFillExternalBuffer(mask, \ - \ - ZCL_MEDIA_PAUSE_COMMAND_ID, "", ); - -/** @brief Command description for MediaPauseResponse - * - * Command: MediaPauseResponse - * @param mediaPlaybackStatus MediaPlaybackStatus - */ -#define emberAfFillCommandMedia \ - PlaybackClusterMediaPauseResponse(mediaPlaybackStatus) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_MEDIA_PAUSE_RESPONSE_COMMAND_ID, "u", mediaPlaybackStatus); - -/** @brief Command description for MediaStop - * - * Command: MediaStop - */ -#define emberAfFillCommandMedia \ - PlaybackClusterMediaStop() emberAfFillExternalBuffer(mask, \ - \ - ZCL_MEDIA_STOP_COMMAND_ID, "", ); - -/** @brief Command description for MediaStopResponse - * - * Command: MediaStopResponse - * @param mediaPlaybackStatus MediaPlaybackStatus - */ -#define emberAfFillCommandMedia \ - PlaybackClusterMediaStopResponse(mediaPlaybackStatus) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_MEDIA_STOP_RESPONSE_COMMAND_ID, "u", mediaPlaybackStatus); - -/** @brief Command description for MediaStartOver - * - * Command: MediaStartOver - */ -#define emberAfFillCommandMedia \ - PlaybackClusterMediaStartOver() emberAfFillExternalBuffer(mask, \ - \ - ZCL_MEDIA_START_OVER_COMMAND_ID, "", ); - -/** @brief Command description for MediaStartOverResponse - * - * Command: MediaStartOverResponse - * @param mediaPlaybackStatus MediaPlaybackStatus - */ -#define emberAfFillCommandMedia \ - PlaybackClusterMediaStartOverResponse(mediaPlaybackStatus) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_MEDIA_START_OVER_RESPONSE_COMMAND_ID, "u", mediaPlaybackStatus); - -/** @brief Command description for MediaPrevious - * - * Command: MediaPrevious - */ -#define emberAfFillCommandMedia \ - PlaybackClusterMediaPrevious() emberAfFillExternalBuffer(mask, \ - \ - ZCL_MEDIA_PREVIOUS_COMMAND_ID, "", ); - -/** @brief Command description for MediaPreviousResponse - * - * Command: MediaPreviousResponse - * @param mediaPlaybackStatus MediaPlaybackStatus - */ -#define emberAfFillCommandMedia \ - PlaybackClusterMediaPreviousResponse(mediaPlaybackStatus) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_MEDIA_PREVIOUS_RESPONSE_COMMAND_ID, "u", mediaPlaybackStatus); - -/** @brief Command description for MediaNext - * - * Command: MediaNext - */ -#define emberAfFillCommandMedia \ - PlaybackClusterMediaNext() emberAfFillExternalBuffer(mask, \ - \ - ZCL_MEDIA_NEXT_COMMAND_ID, "", ); - -/** @brief Command description for MediaNextResponse - * - * Command: MediaNextResponse - * @param mediaPlaybackStatus MediaPlaybackStatus - */ -#define emberAfFillCommandMedia \ - PlaybackClusterMediaNextResponse(mediaPlaybackStatus) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_MEDIA_NEXT_RESPONSE_COMMAND_ID, "u", mediaPlaybackStatus); - -/** @brief Command description for MediaRewind - * - * Command: MediaRewind - */ -#define emberAfFillCommandMedia \ - PlaybackClusterMediaRewind() emberAfFillExternalBuffer(mask, \ - \ - ZCL_MEDIA_REWIND_COMMAND_ID, "", ); - -/** @brief Command description for MediaRewindResponse - * - * Command: MediaRewindResponse - * @param mediaPlaybackStatus MediaPlaybackStatus - */ -#define emberAfFillCommandMedia \ - PlaybackClusterMediaRewindResponse(mediaPlaybackStatus) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_MEDIA_REWIND_RESPONSE_COMMAND_ID, "u", mediaPlaybackStatus); - -/** @brief Command description for MediaFastForward - * - * Command: MediaFastForward - */ -#define emberAfFillCommandMedia \ - PlaybackClusterMediaFastForward() emberAfFillExternalBuffer(mask, \ - \ - ZCL_MEDIA_FAST_FORWARD_COMMAND_ID, "", ); - -/** @brief Command description for MediaFastForwardResponse - * - * Command: MediaFastForwardResponse - * @param mediaPlaybackStatus MediaPlaybackStatus - */ -#define emberAfFillCommandMedia \ - PlaybackClusterMediaFastForwardResponse(mediaPlaybackStatus) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_MEDIA_FAST_FORWARD_RESPONSE_COMMAND_ID, "u", mediaPlaybackStatus); - -/** @brief Command description for MediaSkipForward - * - * Command: MediaSkipForward - * @param deltaPositionMilliseconds INT64U - */ -#define emberAfFillCommandMedia \ - PlaybackClusterMediaSkipForward(deltaPositionMilliseconds) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_MEDIA_SKIP_FORWARD_COMMAND_ID, "u", deltaPositionMilliseconds); - -/** @brief Command description for MediaSkipForwardResponse - * - * Command: MediaSkipForwardResponse - * @param mediaPlaybackStatus MediaPlaybackStatus - */ -#define emberAfFillCommandMedia \ - PlaybackClusterMediaSkipForwardResponse(mediaPlaybackStatus) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_MEDIA_SKIP_FORWARD_RESPONSE_COMMAND_ID, "u", mediaPlaybackStatus); - -/** @brief Command description for MediaSkipBackward - * - * Command: MediaSkipBackward - * @param deltaPositionMilliseconds INT64U - */ -#define emberAfFillCommandMedia \ - PlaybackClusterMediaSkipBackward(deltaPositionMilliseconds) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_MEDIA_SKIP_BACKWARD_COMMAND_ID, "u", deltaPositionMilliseconds); - -/** @brief Command description for MediaSkipBackwardResponse - * - * Command: MediaSkipBackwardResponse - * @param mediaPlaybackStatus MediaPlaybackStatus - */ -#define emberAfFillCommandMedia \ - PlaybackClusterMediaSkipBackwardResponse(mediaPlaybackStatus) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_MEDIA_SKIP_BACKWARD_RESPONSE_COMMAND_ID, "u", mediaPlaybackStatus); - -/** @brief Command description for MediaSkipSeek - * - * Command: MediaSkipSeek - * @param position INT64U - */ -#define emberAfFillCommandMedia \ - PlaybackClusterMediaSkipSeek(position) emberAfFillExternalBuffer(mask, \ - \ - ZCL_MEDIA_SKIP_SEEK_COMMAND_ID, "u", position); - -/** @brief Command description for MediaSkipSeekResponse - * - * Command: MediaSkipSeekResponse - * @param mediaPlaybackStatus MediaPlaybackStatus - */ -#define emberAfFillCommandMedia \ - PlaybackClusterMediaSkipSeekResponse(mediaPlaybackStatus) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_MEDIA_SKIP_SEEK_RESPONSE_COMMAND_ID, "u", mediaPlaybackStatus); - -/** @brief Command description for SelectInput - * - * Command: SelectInput - * @param index INT8U - */ -#define emberAfFillCommandMedia \ - InputClusterSelectInput(index) emberAfFillExternalBuffer(mask, \ - \ - ZCL_SELECT_INPUT_COMMAND_ID, "u", index); - -/** @brief Command description for ShowInputStatus - * - * Command: ShowInputStatus - */ -#define emberAfFillCommandMedia \ - InputClusterShowInputStatus() emberAfFillExternalBuffer(mask, \ - \ - ZCL_SHOW_INPUT_STATUS_COMMAND_ID, "", ); - -/** @brief Command description for HideInputStatus - * - * Command: HideInputStatus - */ -#define emberAfFillCommandMedia \ - InputClusterHideInputStatus() emberAfFillExternalBuffer(mask, \ - \ - ZCL_HIDE_INPUT_STATUS_COMMAND_ID, "", ); - -/** @brief Command description for RenameInput - * - * Command: RenameInput - * @param index INT8U - * @param name CHAR_STRING - */ -#define emberAfFillCommandMedia \ - InputClusterRenameInput(index, name) emberAfFillExternalBuffer(mask, \ - \ - ZCL_RENAME_INPUT_COMMAND_ID, "uu", index, name); - -/** @brief Command description for Sleep - * - * Command: Sleep - */ -#define emberAfFillCommandLow \ - PowerClusterSleep() emberAfFillExternalBuffer(mask, \ - \ - ZCL_SLEEP_COMMAND_ID, "", ); - -/** @brief Command description for SendKey - * - * Command: SendKey - * @param keyCode KeypadInputCecKeyCode - */ -#define emberAfFillCommandKeypad \ - InputClusterSendKey(keyCode) emberAfFillExternalBuffer(mask, \ - \ - ZCL_SEND_KEY_COMMAND_ID, "u", keyCode); - -/** @brief Command description for SendKeyResponse - * - * Command: SendKeyResponse - * @param status KeypadInputStatus - */ -#define emberAfFillCommandKeypad \ - InputClusterSendKeyResponse(status) emberAfFillExternalBuffer(mask, \ - \ - ZCL_SEND_KEY_RESPONSE_COMMAND_ID, "u", status); - -/** @brief Command description for LaunchContent - * - * Command: LaunchContent - * @param autoPlay BOOLEAN - */ -#define emberAfFillCommandContent \ - LauncherClusterLaunchContent(autoPlay) emberAfFillExternalBuffer(mask, \ - \ - ZCL_LAUNCH_CONTENT_COMMAND_ID, "u", autoPlay); - -/** @brief Command description for LaunchContentResponse - * - * Command: LaunchContentResponse - * @param data CHAR_STRING - */ -#define emberAfFillCommandContent \ - LauncherClusterLaunchContentResponse(data) emberAfFillExternalBuffer(mask, \ - \ - ZCL_LAUNCH_CONTENT_RESPONSE_COMMAND_ID, "u", data); - -/** @brief Command description for LaunchContent - * - * Command: LaunchContent - * @param data CHAR_STRING - */ -#define emberAfFillCommandContent \ - LauncherClusterLaunchContent(data) emberAfFillExternalBuffer(mask, \ - \ - ZCL_LAUNCH_CONTENT_COMMAND_ID, "u", data); - -/** @brief Command description for LaunchContentResponse - * - * Command: LaunchContentResponse - * @param contentLaunchStatus ContentLaunchStatus - */ -#define emberAfFillCommandContent \ - LauncherClusterLaunchContentResponse(contentLaunchStatus) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_LAUNCH_CONTENT_RESPONSE_COMMAND_ID, "u", contentLaunchStatus); - -/** @brief Command description for LaunchURL - * - * Command: LaunchURL - * @param contentURL CHAR_STRING - */ -#define emberAfFillCommandContent \ - LauncherClusterLaunchURL(contentURL) emberAfFillExternalBuffer(mask, \ - \ - ZCL_LAUNCH_URL_COMMAND_ID, "u", contentURL); - -/** @brief Command description for LaunchURLResponse - * - * Command: LaunchURLResponse - * @param data CHAR_STRING - */ -#define emberAfFillCommandContent \ - LauncherClusterLaunchURLResponse(data) emberAfFillExternalBuffer(mask, \ - \ - ZCL_LAUNCH_URL_RESPONSE_COMMAND_ID, "u", data); - -/** @brief Command description for LaunchURL - * - * Command: LaunchURL - * @param displayString CHAR_STRING - */ -#define emberAfFillCommandContent \ - LauncherClusterLaunchURL(displayString) emberAfFillExternalBuffer(mask, \ - \ - ZCL_LAUNCH_URL_COMMAND_ID, "u", displayString); - -/** @brief Command description for LaunchURLResponse - * - * Command: LaunchURLResponse - * @param contentLaunchStatus ContentLaunchStatus - */ -#define emberAfFillCommandContent \ - LauncherClusterLaunchURLResponse(contentLaunchStatus) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_LAUNCH_URL_RESPONSE_COMMAND_ID, "u", contentLaunchStatus); - -/** @brief Command description for SelectOutput - * - * Command: SelectOutput - * @param index INT8U - */ -#define emberAfFillCommandAudio \ - OutputClusterSelectOutput(index) emberAfFillExternalBuffer(mask, \ - \ - ZCL_SELECT_OUTPUT_COMMAND_ID, "u", index); - -/** @brief Command description for RenameOutput - * - * Command: RenameOutput - * @param index INT8U - * @param name CHAR_STRING - */ -#define emberAfFillCommandAudio \ - OutputClusterRenameOutput(index, name) emberAfFillExternalBuffer(mask, \ - \ - ZCL_RENAME_OUTPUT_COMMAND_ID, "uu", index, name); - -/** @brief Command description for LaunchApp - * - * Command: LaunchApp - * @param data CHAR_STRING - */ -#define emberAfFillCommandApplication \ - LauncherClusterLaunchApp(data) emberAfFillExternalBuffer(mask, \ - \ - ZCL_LAUNCH_APP_COMMAND_ID, "u", data); - -/** @brief Command description for LaunchAppResponse - * - * Command: LaunchAppResponse - * @param status ApplicationLauncherStatus - */ -#define emberAfFillCommandApplication \ - LauncherClusterLaunchAppResponse(status) emberAfFillExternalBuffer(mask, \ - \ - ZCL_LAUNCH_APP_RESPONSE_COMMAND_ID, "u", status); - -/** @brief Command description for LaunchApp - * - * Command: LaunchApp - * @param application ApplicationLauncherApp [] - * @param applicationLen int - */ -#define emberAfFillCommandApplication \ - LauncherClusterLaunchApp(application, applicationLen) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_LAUNCH_APP_COMMAND_ID, "b", application, applicationLen); - -/** @brief Command description for LaunchAppResponse - * - * Command: LaunchAppResponse - * @param data CHAR_STRING - */ -#define emberAfFillCommandApplication \ - LauncherClusterLaunchAppResponse(data) emberAfFillExternalBuffer(mask, \ - \ - ZCL_LAUNCH_APP_RESPONSE_COMMAND_ID, "u", data); - -/** @brief Command description for ChangeStatus - * - * Command: ChangeStatus - * @param status ApplicationBasicStatus - */ -#define emberAfFillCommandApplication \ - BasicClusterChangeStatus(status) emberAfFillExternalBuffer(mask, \ - \ - ZCL_CHANGE_STATUS_COMMAND_ID, "u", status); - -/** @brief Command description for GetSetupPIN - * - * Command: GetSetupPIN - * @param tempAccountIdentifier CHAR_STRING - */ -#define emberAfFillCommandAccount \ - LoginClusterGetSetupPIN(tempAccountIdentifier) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_SETUP_PIN_COMMAND_ID, "u", tempAccountIdentifier); - -/** @brief Command description for GetSetupPINResponse - * - * Command: GetSetupPINResponse - * @param setupPIN CHAR_STRING - */ -#define emberAfFillCommandAccount \ - LoginClusterGetSetupPINResponse(setupPIN) emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_SETUP_PIN_RESPONSE_COMMAND_ID, "u", setupPIN); - -/** @brief Command description for Login - * - * Command: Login - * @param tempAccountIdentifier CHAR_STRING - * @param setupPIN CHAR_STRING - */ -#define emberAfFillCommandAccount \ - LoginClusterLogin(tempAccountIdentifier, setupPIN) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_LOGIN_COMMAND_ID, "uu", tempAccountIdentifier, setupPIN); - -/** @brief Command description for Test - * - * Command: Test - */ -#define emberAfFillCommandTest \ - ClusterClusterTest() emberAfFillExternalBuffer(mask, \ - \ - ZCL_TEST_COMMAND_ID, "", ); - -/** @brief Command description for TestSpecificResponse - * - * Command: TestSpecificResponse - * @param returnValue INT8U - */ -#define emberAfFillCommandTest \ - ClusterClusterTestSpecificResponse(returnValue) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_TEST_SPECIFIC_RESPONSE_COMMAND_ID, "u", returnValue); - -/** @brief Command description for TestNotHandled - * - * Command: TestNotHandled - */ -#define emberAfFillCommandTest \ - ClusterClusterTestNotHandled() emberAfFillExternalBuffer(mask, \ - \ - ZCL_TEST_NOT_HANDLED_COMMAND_ID, "", ); - -/** @brief Command description for TestSpecific - * - * Command: TestSpecific - */ -#define emberAfFillCommandTest \ - ClusterClusterTestSpecific() emberAfFillExternalBuffer(mask, \ - \ - ZCL_TEST_SPECIFIC_COMMAND_ID, "", ); - -/** @brief Command description for TestUnknownCommand - * - * Command: TestUnknownCommand - */ -#define emberAfFillCommandTest \ - ClusterClusterTestUnknownCommand() emberAfFillExternalBuffer(mask, \ - \ - ZCL_TEST_UNKNOWN_COMMAND_COMMAND_ID, "", ); - -/** @brief Command description for MatchProtocolAddress - * - * Command: MatchProtocolAddress - * @param protocolAddress OCTET_STRING - */ -#define emberAfFillCommandGeneric \ - TunnelClusterMatchProtocolAddress(protocolAddress) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_MATCH_PROTOCOL_ADDRESS_COMMAND_ID, "u", protocolAddress); - -/** @brief Command description for MatchProtocolAddressResponse - * - * Command: MatchProtocolAddressResponse - * @param deviceIeeeAddress IEEE_ADDRESS - * @param protocolAddress OCTET_STRING - */ -#define emberAfFillCommandGeneric \ - TunnelClusterMatchProtocolAddressResponse(deviceIeeeAddress, protocolAddress) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_MATCH_PROTOCOL_ADDRESS_RESPONSE_COMMAND_ID, "uu", deviceIeeeAddress, protocolAddress); - -/** @brief Command description for AdvertiseProtocolAddress - * - * Command: AdvertiseProtocolAddress - * @param protocolAddress OCTET_STRING - */ -#define emberAfFillCommandGeneric \ - TunnelClusterAdvertiseProtocolAddress(protocolAddress) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_ADVERTISE_PROTOCOL_ADDRESS_COMMAND_ID, "u", protocolAddress); - -/** @brief Command description for TransferNpdu - * - * Command: TransferNpdu - * @param npdu DATA8 [] - * @param npduLen int - */ -#define emberAfFillCommandBACnet \ - Protocol TunnelClusterTransferNpdu(npdu, npduLen) emberAfFillExternalBuffer(mask, \ - \ - ZCL_TRANSFER_NPDU_COMMAND_ID, "b", npdu, npduLen); - -/** @brief Command description for TransferAPDU - * - * Command: TransferAPDU - * @param apdu OCTET_STRING - */ -#define emberAfFillCommand11073 \ - Protocol TunnelClusterTransferAPDU(apdu) emberAfFillExternalBuffer(mask, \ - \ - ZCL_TRANSFER_APDU_COMMAND_ID, "u", apdu); - -/** @brief Command description for ConnectRequest - * - * Command: ConnectRequest - * @param connectControl 11073ConnectRequestConnectControl - * @param idleTimeout INT16U - * @param managerTarget IEEE_ADDRESS - * @param managerEndpoint INT8U - */ -#define emberAfFillCommand11073 \ - Protocol TunnelClusterConnectRequest(connectControl, idleTimeout, managerTarget, managerEndpoint) emberAfFillExternalBuffer( \ - mask, \ - \ - ZCL_CONNECT_REQUEST_COMMAND_ID, "uuuu", connectControl, idleTimeout, managerTarget, managerEndpoint); - -/** @brief Command description for DisconnectRequest - * - * Command: DisconnectRequest - * @param managerIEEEAddress IEEE_ADDRESS - */ -#define emberAfFillCommand11073 \ - Protocol TunnelClusterDisconnectRequest(managerIEEEAddress) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_DISCONNECT_REQUEST_COMMAND_ID, "u", managerIEEEAddress); - -/** @brief Command description for ConnectStatusNotification - * - * Command: ConnectStatusNotification - * @param connectStatus 11073TunnelConnectionStatus - */ -#define emberAfFillCommand11073 \ - Protocol TunnelClusterConnectStatusNotification(connectStatus) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_CONNECT_STATUS_NOTIFICATION_COMMAND_ID, "u", connectStatus); - -/** @brief Command description for TransferApdu - * - * Command: TransferApdu - * @param apdu OCTET_STRING - */ -#define emberAfFillCommandISO \ - 7816 Protocol TunnelClusterTransferApdu(apdu) emberAfFillExternalBuffer(mask, \ - \ - ZCL_TRANSFER_APDU_COMMAND_ID, "u", apdu); - -/** @brief Command description for InsertSmartCard - * - * Command: InsertSmartCard - */ -#define emberAfFillCommandISO \ - 7816 Protocol TunnelClusterInsertSmartCard() emberAfFillExternalBuffer(mask, \ - \ - ZCL_INSERT_SMART_CARD_COMMAND_ID, "", ); - -/** @brief Command description for ExtractSmartCard - * - * Command: ExtractSmartCard - */ -#define emberAfFillCommandISO \ - 7816 Protocol TunnelClusterExtractSmartCard() emberAfFillExternalBuffer(mask, \ - \ - ZCL_EXTRACT_SMART_CARD_COMMAND_ID, "", ); - -/** @brief Command description for PublishPrice - * - * Command: PublishPrice - * @param providerId INT32U - */ -#define emberAfFillCommandPriceClusterPublishPrice(providerId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_PRICE_COMMAND_ID, "u", providerId); - -/** @brief Command description for GetCurrentPrice - * - * Command: GetCurrentPrice - * @param commandOptions AmiCommandOptions - */ -#define emberAfFillCommandPriceClusterGetCurrentPrice(commandOptions) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_CURRENT_PRICE_COMMAND_ID, "u", commandOptions); - -/** @brief Command description for PublishPrice - * - * Command: PublishPrice - * @param rateLabel OCTET_STRING - * @param issuerEventId INT32U - * @param currentTime UTC_TIME - * @param unitOfMeasure AmiUnitOfMeasure - * @param currency INT16U - * @param priceTrailingDigitAndPriceTier PriceTrailingDigitAndPriceTier - * @param numberOfPriceTiersAndRegisterTier PriceNumberOfPriceTiersAndRegisterTier - * @param startTime UTC_TIME - * @param durationInMinutes INT16U - * @param price INT32U - * @param priceRatio INT8U - * @param generationPrice INT32U - * @param generationPriceRatio INT8U - * @param alternateCostDelivered INT32U - * @param alternateCostUnit AlternateCostUnit - * @param alternateCostTrailingDigit AlternateCostTrailingDigit - * @param numberOfBlockThresholds INT8U - * @param priceControl PriceControlMask - * @param numberOfGenerationTiers INT8U - * @param generationTier GenerationTier - * @param extendedNumberOfPriceTiers ExtendedNumberOfPriceTiers - * @param extendedPriceTier ExtendedPriceTier - * @param extendedRegisterTier ExtendedRegisterTier - */ -#define emberAfFillCommandPriceClusterPublishPrice( \ - rateLabel, issuerEventId, currentTime, unitOfMeasure, currency, priceTrailingDigitAndPriceTier, \ - numberOfPriceTiersAndRegisterTier, startTime, durationInMinutes, price, priceRatio, generationPrice, generationPriceRatio, \ - alternateCostDelivered, alternateCostUnit, alternateCostTrailingDigit, numberOfBlockThresholds, priceControl, \ - numberOfGenerationTiers, generationTier, extendedNumberOfPriceTiers, extendedPriceTier, extendedRegisterTier) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_PRICE_COMMAND_ID, "uuuuuuuuuuuuuuuuuuuuuuu", rateLabel, issuerEventId, currentTime, \ - unitOfMeasure, currency, priceTrailingDigitAndPriceTier, numberOfPriceTiersAndRegisterTier, \ - startTime, durationInMinutes, price, priceRatio, generationPrice, generationPriceRatio, \ - alternateCostDelivered, alternateCostUnit, alternateCostTrailingDigit, numberOfBlockThresholds, \ - priceControl, numberOfGenerationTiers, generationTier, extendedNumberOfPriceTiers, \ - extendedPriceTier, extendedRegisterTier); - -/** @brief Command description for PublishBlockPeriod - * - * Command: PublishBlockPeriod - * @param providerId INT32U - */ -#define emberAfFillCommandPriceClusterPublishBlockPeriod(providerId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_BLOCK_PERIOD_COMMAND_ID, "u", providerId); - -/** @brief Command description for GetScheduledPrices - * - * Command: GetScheduledPrices - * @param startTime UTC_TIME - */ -#define emberAfFillCommandPriceClusterGetScheduledPrices(startTime) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_SCHEDULED_PRICES_COMMAND_ID, "u", startTime); - -/** @brief Command description for PublishBlockPeriod - * - * Command: PublishBlockPeriod - * @param issuerEventId INT32U - */ -#define emberAfFillCommandPriceClusterPublishBlockPeriod(issuerEventId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_BLOCK_PERIOD_COMMAND_ID, "u", issuerEventId); - -/** @brief Command description for GetScheduledPrices - * - * Command: GetScheduledPrices - * @param numberOfEvents INT8U - */ -#define emberAfFillCommandPriceClusterGetScheduledPrices(numberOfEvents) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_SCHEDULED_PRICES_COMMAND_ID, "u", numberOfEvents); - -/** @brief Command description for PublishBlockPeriod - * - * Command: PublishBlockPeriod - * @param blockPeriodStartTime UTC_TIME - * @param blockPeriodDuration INT24U - * @param blockPeriodControl BlockPeriodControl - * @param blockPeriodDurationType BlockPeriodDurationType - * @param tariffType TariffType - * @param tariffResolutionPeriod TariffResolutionPeriod - */ -#define emberAfFillCommandPriceClusterPublishBlockPeriod(blockPeriodStartTime, blockPeriodDuration, blockPeriodControl, \ - blockPeriodDurationType, tariffType, tariffResolutionPeriod) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_BLOCK_PERIOD_COMMAND_ID, "uuuuuu", blockPeriodStartTime, blockPeriodDuration, \ - blockPeriodControl, blockPeriodDurationType, tariffType, tariffResolutionPeriod); - -/** @brief Command description for PublishConversionFactor - * - * Command: PublishConversionFactor - * @param issuerEventId INT32U - */ -#define emberAfFillCommandPriceClusterPublishConversionFactor(issuerEventId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_CONVERSION_FACTOR_COMMAND_ID, "u", issuerEventId); - -/** @brief Command description for PriceAcknowledgement - * - * Command: PriceAcknowledgement - * @param providerId INT32U - */ -#define emberAfFillCommandPriceClusterPriceAcknowledgement(providerId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PRICE_ACKNOWLEDGEMENT_COMMAND_ID, "u", providerId); - -/** @brief Command description for PublishConversionFactor - * - * Command: PublishConversionFactor - * @param startTime UTC_TIME - */ -#define emberAfFillCommandPriceClusterPublishConversionFactor(startTime) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_CONVERSION_FACTOR_COMMAND_ID, "u", startTime); - -/** @brief Command description for PriceAcknowledgement - * - * Command: PriceAcknowledgement - * @param issuerEventId INT32U - */ -#define emberAfFillCommandPriceClusterPriceAcknowledgement(issuerEventId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PRICE_ACKNOWLEDGEMENT_COMMAND_ID, "u", issuerEventId); - -/** @brief Command description for PublishConversionFactor - * - * Command: PublishConversionFactor - * @param conversionFactor INT32U - */ -#define emberAfFillCommandPriceClusterPublishConversionFactor(conversionFactor) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_CONVERSION_FACTOR_COMMAND_ID, "u", conversionFactor); - -/** @brief Command description for PriceAcknowledgement - * - * Command: PriceAcknowledgement - * @param priceAckTime UTC_TIME - */ -#define emberAfFillCommandPriceClusterPriceAcknowledgement(priceAckTime) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PRICE_ACKNOWLEDGEMENT_COMMAND_ID, "u", priceAckTime); - -/** @brief Command description for PublishConversionFactor - * - * Command: PublishConversionFactor - * @param conversionFactorTrailingDigit ConversionFactorTrailingDigit - */ -#define emberAfFillCommandPriceClusterPublishConversionFactor(conversionFactorTrailingDigit) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_CONVERSION_FACTOR_COMMAND_ID, "u", conversionFactorTrailingDigit); - -/** @brief Command description for PriceAcknowledgement - * - * Command: PriceAcknowledgement - * @param control PriceControlMask - */ -#define emberAfFillCommandPriceClusterPriceAcknowledgement(control) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PRICE_ACKNOWLEDGEMENT_COMMAND_ID, "u", control); - -/** @brief Command description for PublishCalorificValue - * - * Command: PublishCalorificValue - * @param issuerEventId INT32U - */ -#define emberAfFillCommandPriceClusterPublishCalorificValue(issuerEventId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_CALORIFIC_VALUE_COMMAND_ID, "u", issuerEventId); - -/** @brief Command description for GetBlockPeriods - * - * Command: GetBlockPeriods - * @param startTime UTC_TIME - */ -#define emberAfFillCommandPriceClusterGetBlockPeriods(startTime) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_BLOCK_PERIODS_COMMAND_ID, "u", startTime); - -/** @brief Command description for PublishCalorificValue - * - * Command: PublishCalorificValue - * @param startTime UTC_TIME - */ -#define emberAfFillCommandPriceClusterPublishCalorificValue(startTime) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_CALORIFIC_VALUE_COMMAND_ID, "u", startTime); - -/** @brief Command description for GetBlockPeriods - * - * Command: GetBlockPeriods - * @param numberOfEvents INT8U - */ -#define emberAfFillCommandPriceClusterGetBlockPeriods(numberOfEvents) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_BLOCK_PERIODS_COMMAND_ID, "u", numberOfEvents); - -/** @brief Command description for PublishCalorificValue - * - * Command: PublishCalorificValue - * @param calorificValue INT32U - */ -#define emberAfFillCommandPriceClusterPublishCalorificValue(calorificValue) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_CALORIFIC_VALUE_COMMAND_ID, "u", calorificValue); - -/** @brief Command description for GetBlockPeriods - * - * Command: GetBlockPeriods - * @param tariffType TariffType - */ -#define emberAfFillCommandPriceClusterGetBlockPeriods(tariffType) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_BLOCK_PERIODS_COMMAND_ID, "u", tariffType); - -/** @brief Command description for PublishCalorificValue - * - * Command: PublishCalorificValue - * @param calorificValueUnit CalorificValueUnit - * @param calorificValueTrailingDigit CalorificValueTrailingDigit - */ -#define emberAfFillCommandPriceClusterPublishCalorificValue(calorificValueUnit, calorificValueTrailingDigit) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_CALORIFIC_VALUE_COMMAND_ID, "uu", calorificValueUnit, calorificValueTrailingDigit); - -/** @brief Command description for PublishTariffInformation - * - * Command: PublishTariffInformation - * @param providerId INT32U - */ -#define emberAfFillCommandPriceClusterPublishTariffInformation(providerId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_TARIFF_INFORMATION_COMMAND_ID, "u", providerId); - -/** @brief Command description for GetConversionFactor - * - * Command: GetConversionFactor - * @param earliestStartTime UTC_TIME - */ -#define emberAfFillCommandPriceClusterGetConversionFactor(earliestStartTime) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_CONVERSION_FACTOR_COMMAND_ID, "u", earliestStartTime); - -/** @brief Command description for PublishTariffInformation - * - * Command: PublishTariffInformation - * @param issuerEventId INT32U - */ -#define emberAfFillCommandPriceClusterPublishTariffInformation(issuerEventId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_TARIFF_INFORMATION_COMMAND_ID, "u", issuerEventId); - -/** @brief Command description for GetConversionFactor - * - * Command: GetConversionFactor - * @param minIssuerEventId INT32U - */ -#define emberAfFillCommandPriceClusterGetConversionFactor(minIssuerEventId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_CONVERSION_FACTOR_COMMAND_ID, "u", minIssuerEventId); - -/** @brief Command description for PublishTariffInformation - * - * Command: PublishTariffInformation - * @param issuerTariffId INT32U - */ -#define emberAfFillCommandPriceClusterPublishTariffInformation(issuerTariffId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_TARIFF_INFORMATION_COMMAND_ID, "u", issuerTariffId); - -/** @brief Command description for GetConversionFactor - * - * Command: GetConversionFactor - * @param numberOfCommands INT8U - */ -#define emberAfFillCommandPriceClusterGetConversionFactor(numberOfCommands) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_CONVERSION_FACTOR_COMMAND_ID, "u", numberOfCommands); - -/** @brief Command description for PublishTariffInformation - * - * Command: PublishTariffInformation - * @param startTime UTC_TIME - * @param tariffTypeChargingScheme TariffTypeChargingScheme - * @param tariffLabel OCTET_STRING - * @param numberOfPriceTiersInUse INT8U - * @param numberOfBlockThresholdsInUse INT8U - * @param unitOfMeasure AmiUnitOfMeasure - * @param currency INT16U - * @param priceTrailingDigit PriceTrailingDigit - * @param standingCharge INT32U - * @param tierBlockMode TierBlockMode - * @param blockThresholdMultiplier INT24U - * @param blockThresholdDivisor INT24U - */ -#define emberAfFillCommandPriceClusterPublishTariffInformation( \ - startTime, tariffTypeChargingScheme, tariffLabel, numberOfPriceTiersInUse, numberOfBlockThresholdsInUse, unitOfMeasure, \ - currency, priceTrailingDigit, standingCharge, tierBlockMode, blockThresholdMultiplier, blockThresholdDivisor) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_TARIFF_INFORMATION_COMMAND_ID, "uuuuuuuuuuuu", startTime, tariffTypeChargingScheme, \ - tariffLabel, numberOfPriceTiersInUse, numberOfBlockThresholdsInUse, unitOfMeasure, currency, \ - priceTrailingDigit, standingCharge, tierBlockMode, blockThresholdMultiplier, blockThresholdDivisor); - -/** @brief Command description for PublishPriceMatrix - * - * Command: PublishPriceMatrix - * @param providerId INT32U - */ -#define emberAfFillCommandPriceClusterPublishPriceMatrix(providerId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_PRICE_MATRIX_COMMAND_ID, "u", providerId); - -/** @brief Command description for GetCalorificValue - * - * Command: GetCalorificValue - * @param earliestStartTime UTC_TIME - */ -#define emberAfFillCommandPriceClusterGetCalorificValue(earliestStartTime) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_CALORIFIC_VALUE_COMMAND_ID, "u", earliestStartTime); - -/** @brief Command description for PublishPriceMatrix - * - * Command: PublishPriceMatrix - * @param issuerEventId INT32U - */ -#define emberAfFillCommandPriceClusterPublishPriceMatrix(issuerEventId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_PRICE_MATRIX_COMMAND_ID, "u", issuerEventId); - -/** @brief Command description for GetCalorificValue - * - * Command: GetCalorificValue - * @param minIssuerEventId INT32U - */ -#define emberAfFillCommandPriceClusterGetCalorificValue(minIssuerEventId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_CALORIFIC_VALUE_COMMAND_ID, "u", minIssuerEventId); - -/** @brief Command description for PublishPriceMatrix - * - * Command: PublishPriceMatrix - * @param startTime UTC_TIME - */ -#define emberAfFillCommandPriceClusterPublishPriceMatrix(startTime) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_PRICE_MATRIX_COMMAND_ID, "u", startTime); - -/** @brief Command description for GetCalorificValue - * - * Command: GetCalorificValue - * @param numberOfCommands INT8U - */ -#define emberAfFillCommandPriceClusterGetCalorificValue(numberOfCommands) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_CALORIFIC_VALUE_COMMAND_ID, "u", numberOfCommands); - -/** @brief Command description for PublishPriceMatrix - * - * Command: PublishPriceMatrix - * @param issuerTariffId INT32U - * @param commandIndex INT8U - * @param numberOfCommands INT8U - * @param subPayloadControl PriceMatrixSubPayloadControl - * @param payload PriceMatrixSubPayload [] - * @param payloadLen int - */ -#define emberAfFillCommandPriceClusterPublishPriceMatrix(issuerTariffId, commandIndex, numberOfCommands, subPayloadControl, \ - payload, payloadLen) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_PRICE_MATRIX_COMMAND_ID, "uuuub", issuerTariffId, commandIndex, numberOfCommands, \ - subPayloadControl, payload, payloadLen); - -/** @brief Command description for PublishBlockThresholds - * - * Command: PublishBlockThresholds - * @param providerId INT32U - */ -#define emberAfFillCommandPriceClusterPublishBlockThresholds(providerId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_BLOCK_THRESHOLDS_COMMAND_ID, "u", providerId); - -/** @brief Command description for GetTariffInformation - * - * Command: GetTariffInformation - * @param earliestStartTime UTC_TIME - */ -#define emberAfFillCommandPriceClusterGetTariffInformation(earliestStartTime) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_TARIFF_INFORMATION_COMMAND_ID, "u", earliestStartTime); - -/** @brief Command description for PublishBlockThresholds - * - * Command: PublishBlockThresholds - * @param issuerEventId INT32U - */ -#define emberAfFillCommandPriceClusterPublishBlockThresholds(issuerEventId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_BLOCK_THRESHOLDS_COMMAND_ID, "u", issuerEventId); - -/** @brief Command description for GetTariffInformation - * - * Command: GetTariffInformation - * @param minIssuerEventId INT32U - */ -#define emberAfFillCommandPriceClusterGetTariffInformation(minIssuerEventId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_TARIFF_INFORMATION_COMMAND_ID, "u", minIssuerEventId); - -/** @brief Command description for PublishBlockThresholds - * - * Command: PublishBlockThresholds - * @param startTime UTC_TIME - */ -#define emberAfFillCommandPriceClusterPublishBlockThresholds(startTime) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_BLOCK_THRESHOLDS_COMMAND_ID, "u", startTime); - -/** @brief Command description for GetTariffInformation - * - * Command: GetTariffInformation - * @param numberOfCommands INT8U - */ -#define emberAfFillCommandPriceClusterGetTariffInformation(numberOfCommands) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_TARIFF_INFORMATION_COMMAND_ID, "u", numberOfCommands); - -/** @brief Command description for PublishBlockThresholds - * - * Command: PublishBlockThresholds - * @param issuerTariffId INT32U - */ -#define emberAfFillCommandPriceClusterPublishBlockThresholds(issuerTariffId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_BLOCK_THRESHOLDS_COMMAND_ID, "u", issuerTariffId); - -/** @brief Command description for GetTariffInformation - * - * Command: GetTariffInformation - * @param tariffType TariffType - */ -#define emberAfFillCommandPriceClusterGetTariffInformation(tariffType) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_TARIFF_INFORMATION_COMMAND_ID, "u", tariffType); - -/** @brief Command description for PublishBlockThresholds - * - * Command: PublishBlockThresholds - * @param commandIndex INT8U - * @param numberOfCommands INT8U - * @param subPayloadControl BlockThresholdSubPayloadControl - * @param payload BlockThresholdSubPayload [] - * @param payloadLen int - */ -#define emberAfFillCommandPriceClusterPublishBlockThresholds(commandIndex, numberOfCommands, subPayloadControl, payload, \ - payloadLen) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_BLOCK_THRESHOLDS_COMMAND_ID, "uuub", commandIndex, numberOfCommands, subPayloadControl, \ - payload, payloadLen); - -/** @brief Command description for PublishCO2Value - * - * Command: PublishCO2Value - * @param providerId INT32U - */ -#define emberAfFillCommandPriceClusterPublishCO2Value(providerId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_CO2_VALUE_COMMAND_ID, "u", providerId); - -/** @brief Command description for GetPriceMatrix - * - * Command: GetPriceMatrix - * @param issuerTariffId INT32U - */ -#define emberAfFillCommandPriceClusterGetPriceMatrix(issuerTariffId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_PRICE_MATRIX_COMMAND_ID, "u", issuerTariffId); - -/** @brief Command description for PublishCO2Value - * - * Command: PublishCO2Value - * @param issuerEventId INT32U - * @param startTime UTC_TIME - * @param tariffType TariffType - * @param cO2Value INT32U - * @param cO2ValueUnit CO2Unit - * @param cO2ValueTrailingDigit CO2TrailingDigit - */ -#define emberAfFillCommandPriceClusterPublishCO2Value(issuerEventId, startTime, tariffType, cO2Value, cO2ValueUnit, \ - cO2ValueTrailingDigit) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_CO2_VALUE_COMMAND_ID, "uuuuuu", issuerEventId, startTime, tariffType, cO2Value, \ - cO2ValueUnit, cO2ValueTrailingDigit); - -/** @brief Command description for PublishTierLabels - * - * Command: PublishTierLabels - * @param providerId INT32U - */ -#define emberAfFillCommandPriceClusterPublishTierLabels(providerId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_TIER_LABELS_COMMAND_ID, "u", providerId); - -/** @brief Command description for GetBlockThresholds - * - * Command: GetBlockThresholds - * @param issuerTariffId INT32U - */ -#define emberAfFillCommandPriceClusterGetBlockThresholds(issuerTariffId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_BLOCK_THRESHOLDS_COMMAND_ID, "u", issuerTariffId); - -/** @brief Command description for PublishTierLabels - * - * Command: PublishTierLabels - * @param issuerEventId INT32U - * @param issuerTariffId INT32U - * @param commandIndex INT8U - * @param numberOfCommands INT8U - * @param numberOfLabels INT8U - * @param tierLabelsPayload INT8U [] - * @param tierLabelsPayloadLen int - */ -#define emberAfFillCommandPriceClusterPublishTierLabels(issuerEventId, issuerTariffId, commandIndex, numberOfCommands, \ - numberOfLabels, tierLabelsPayload, tierLabelsPayloadLen) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_TIER_LABELS_COMMAND_ID, "uuuuub", issuerEventId, issuerTariffId, commandIndex, \ - numberOfCommands, numberOfLabels, tierLabelsPayload, tierLabelsPayloadLen); - -/** @brief Command description for PublishBillingPeriod - * - * Command: PublishBillingPeriod - * @param providerId INT32U - */ -#define emberAfFillCommandPriceClusterPublishBillingPeriod(providerId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_BILLING_PERIOD_COMMAND_ID, "u", providerId); - -/** @brief Command description for GetCO2Value - * - * Command: GetCO2Value - * @param earliestStartTime UTC_TIME - */ -#define emberAfFillCommandPriceClusterGetCO2Value(earliestStartTime) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_CO2_VALUE_COMMAND_ID, "u", earliestStartTime); - -/** @brief Command description for PublishBillingPeriod - * - * Command: PublishBillingPeriod - * @param issuerEventId INT32U - */ -#define emberAfFillCommandPriceClusterPublishBillingPeriod(issuerEventId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_BILLING_PERIOD_COMMAND_ID, "u", issuerEventId); - -/** @brief Command description for GetCO2Value - * - * Command: GetCO2Value - * @param minIssuerEventId INT32U - */ -#define emberAfFillCommandPriceClusterGetCO2Value(minIssuerEventId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_CO2_VALUE_COMMAND_ID, "u", minIssuerEventId); - -/** @brief Command description for PublishBillingPeriod - * - * Command: PublishBillingPeriod - * @param billingPeriodStartTime UTC_TIME - */ -#define emberAfFillCommandPriceClusterPublishBillingPeriod(billingPeriodStartTime) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_BILLING_PERIOD_COMMAND_ID, "u", billingPeriodStartTime); - -/** @brief Command description for GetCO2Value - * - * Command: GetCO2Value - * @param numberOfCommands INT8U - */ -#define emberAfFillCommandPriceClusterGetCO2Value(numberOfCommands) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_CO2_VALUE_COMMAND_ID, "u", numberOfCommands); - -/** @brief Command description for PublishBillingPeriod - * - * Command: PublishBillingPeriod - * @param billingPeriodDuration BillingPeriodDuration - */ -#define emberAfFillCommandPriceClusterPublishBillingPeriod(billingPeriodDuration) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_BILLING_PERIOD_COMMAND_ID, "u", billingPeriodDuration); - -/** @brief Command description for GetCO2Value - * - * Command: GetCO2Value - * @param tariffType TariffType - */ -#define emberAfFillCommandPriceClusterGetCO2Value(tariffType) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_CO2_VALUE_COMMAND_ID, "u", tariffType); - -/** @brief Command description for PublishBillingPeriod - * - * Command: PublishBillingPeriod - * @param billingPeriodDurationType BillingPeriodDurationType - * @param tariffType TariffType - */ -#define emberAfFillCommandPriceClusterPublishBillingPeriod(billingPeriodDurationType, tariffType) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_BILLING_PERIOD_COMMAND_ID, "uu", billingPeriodDurationType, tariffType); - -/** @brief Command description for PublishConsolidatedBill - * - * Command: PublishConsolidatedBill - * @param providerId INT32U - */ -#define emberAfFillCommandPriceClusterPublishConsolidatedBill(providerId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_CONSOLIDATED_BILL_COMMAND_ID, "u", providerId); - -/** @brief Command description for GetTierLabels - * - * Command: GetTierLabels - * @param issuerTariffId INT32U - */ -#define emberAfFillCommandPriceClusterGetTierLabels(issuerTariffId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_TIER_LABELS_COMMAND_ID, "u", issuerTariffId); - -/** @brief Command description for PublishConsolidatedBill - * - * Command: PublishConsolidatedBill - * @param issuerEventId INT32U - * @param billingPeriodStartTime UTC_TIME - * @param billingPeriodDuration BillingPeriodDuration - * @param billingPeriodDurationType BillingPeriodDurationType - * @param tariffType TariffType - * @param consolidatedBill INT32U - * @param currency INT16U - * @param billTrailingDigit BillTrailingDigit - */ -#define emberAfFillCommandPriceClusterPublishConsolidatedBill(issuerEventId, billingPeriodStartTime, billingPeriodDuration, \ - billingPeriodDurationType, tariffType, consolidatedBill, currency, \ - billTrailingDigit) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_CONSOLIDATED_BILL_COMMAND_ID, "uuuuuuuu", issuerEventId, billingPeriodStartTime, \ - billingPeriodDuration, billingPeriodDurationType, tariffType, consolidatedBill, currency, \ - billTrailingDigit); - -/** @brief Command description for PublishCppEvent - * - * Command: PublishCppEvent - * @param providerId INT32U - */ -#define emberAfFillCommandPriceClusterPublishCppEvent(providerId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_CPP_EVENT_COMMAND_ID, "u", providerId); - -/** @brief Command description for GetBillingPeriod - * - * Command: GetBillingPeriod - * @param earliestStartTime UTC_TIME - */ -#define emberAfFillCommandPriceClusterGetBillingPeriod(earliestStartTime) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_BILLING_PERIOD_COMMAND_ID, "u", earliestStartTime); - -/** @brief Command description for PublishCppEvent - * - * Command: PublishCppEvent - * @param issuerEventId INT32U - */ -#define emberAfFillCommandPriceClusterPublishCppEvent(issuerEventId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_CPP_EVENT_COMMAND_ID, "u", issuerEventId); - -/** @brief Command description for GetBillingPeriod - * - * Command: GetBillingPeriod - * @param minIssuerEventId INT32U - */ -#define emberAfFillCommandPriceClusterGetBillingPeriod(minIssuerEventId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_BILLING_PERIOD_COMMAND_ID, "u", minIssuerEventId); - -/** @brief Command description for PublishCppEvent - * - * Command: PublishCppEvent - * @param startTime UTC_TIME - */ -#define emberAfFillCommandPriceClusterPublishCppEvent(startTime) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_CPP_EVENT_COMMAND_ID, "u", startTime); - -/** @brief Command description for GetBillingPeriod - * - * Command: GetBillingPeriod - * @param numberOfCommands INT8U - */ -#define emberAfFillCommandPriceClusterGetBillingPeriod(numberOfCommands) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_BILLING_PERIOD_COMMAND_ID, "u", numberOfCommands); - -/** @brief Command description for PublishCppEvent - * - * Command: PublishCppEvent - * @param durationInMinutes INT16U - */ -#define emberAfFillCommandPriceClusterPublishCppEvent(durationInMinutes) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_CPP_EVENT_COMMAND_ID, "u", durationInMinutes); - -/** @brief Command description for GetBillingPeriod - * - * Command: GetBillingPeriod - * @param tariffType TariffType - */ -#define emberAfFillCommandPriceClusterGetBillingPeriod(tariffType) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_BILLING_PERIOD_COMMAND_ID, "u", tariffType); - -/** @brief Command description for PublishCppEvent - * - * Command: PublishCppEvent - * @param tariffType TariffType - * @param cppPriceTier CppPriceTier - * @param cppAuth PublishCppEventCppAuth - */ -#define emberAfFillCommandPriceClusterPublishCppEvent(tariffType, cppPriceTier, cppAuth) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_CPP_EVENT_COMMAND_ID, "uuu", tariffType, cppPriceTier, cppAuth); - -/** @brief Command description for PublishCreditPayment - * - * Command: PublishCreditPayment - * @param providerId INT32U - */ -#define emberAfFillCommandPriceClusterPublishCreditPayment(providerId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_CREDIT_PAYMENT_COMMAND_ID, "u", providerId); - -/** @brief Command description for GetConsolidatedBill - * - * Command: GetConsolidatedBill - * @param earliestStartTime UTC_TIME - */ -#define emberAfFillCommandPriceClusterGetConsolidatedBill(earliestStartTime) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_CONSOLIDATED_BILL_COMMAND_ID, "u", earliestStartTime); - -/** @brief Command description for PublishCreditPayment - * - * Command: PublishCreditPayment - * @param issuerEventId INT32U - */ -#define emberAfFillCommandPriceClusterPublishCreditPayment(issuerEventId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_CREDIT_PAYMENT_COMMAND_ID, "u", issuerEventId); - -/** @brief Command description for GetConsolidatedBill - * - * Command: GetConsolidatedBill - * @param minIssuerEventId INT32U - */ -#define emberAfFillCommandPriceClusterGetConsolidatedBill(minIssuerEventId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_CONSOLIDATED_BILL_COMMAND_ID, "u", minIssuerEventId); - -/** @brief Command description for PublishCreditPayment - * - * Command: PublishCreditPayment - * @param creditPaymentDueDate UTC_TIME - */ -#define emberAfFillCommandPriceClusterPublishCreditPayment(creditPaymentDueDate) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_CREDIT_PAYMENT_COMMAND_ID, "u", creditPaymentDueDate); - -/** @brief Command description for GetConsolidatedBill - * - * Command: GetConsolidatedBill - * @param numberOfCommands INT8U - */ -#define emberAfFillCommandPriceClusterGetConsolidatedBill(numberOfCommands) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_CONSOLIDATED_BILL_COMMAND_ID, "u", numberOfCommands); - -/** @brief Command description for PublishCreditPayment - * - * Command: PublishCreditPayment - * @param creditPaymentOverDueAmount INT32U - */ -#define emberAfFillCommandPriceClusterPublishCreditPayment(creditPaymentOverDueAmount) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_CREDIT_PAYMENT_COMMAND_ID, "u", creditPaymentOverDueAmount); - -/** @brief Command description for GetConsolidatedBill - * - * Command: GetConsolidatedBill - * @param tariffType TariffType - */ -#define emberAfFillCommandPriceClusterGetConsolidatedBill(tariffType) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_CONSOLIDATED_BILL_COMMAND_ID, "u", tariffType); - -/** @brief Command description for PublishCreditPayment - * - * Command: PublishCreditPayment - * @param creditPaymentStatus CreditPaymentStatus - * @param creditPayment INT32U - * @param creditPaymentDate UTC_TIME - * @param creditPaymentRef OCTET_STRING - */ -#define emberAfFillCommandPriceClusterPublishCreditPayment(creditPaymentStatus, creditPayment, creditPaymentDate, \ - creditPaymentRef) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_CREDIT_PAYMENT_COMMAND_ID, "uuuu", creditPaymentStatus, creditPayment, \ - creditPaymentDate, creditPaymentRef); - -/** @brief Command description for PublishCurrencyConversion - * - * Command: PublishCurrencyConversion - * @param providerId INT32U - */ -#define emberAfFillCommandPriceClusterPublishCurrencyConversion(providerId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_CURRENCY_CONVERSION_COMMAND_ID, "u", providerId); - -/** @brief Command description for CppEventResponse - * - * Command: CppEventResponse - * @param issuerEventId INT32U - */ -#define emberAfFillCommandPriceClusterCppEventResponse(issuerEventId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_CPP_EVENT_RESPONSE_COMMAND_ID, "u", issuerEventId); - -/** @brief Command description for PublishCurrencyConversion - * - * Command: PublishCurrencyConversion - * @param issuerEventId INT32U - */ -#define emberAfFillCommandPriceClusterPublishCurrencyConversion(issuerEventId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_CURRENCY_CONVERSION_COMMAND_ID, "u", issuerEventId); - -/** @brief Command description for CppEventResponse - * - * Command: CppEventResponse - * @param cppAuth CppEventResponseCppAuth - */ -#define emberAfFillCommandPriceClusterCppEventResponse(cppAuth) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_CPP_EVENT_RESPONSE_COMMAND_ID, "u", cppAuth); - -/** @brief Command description for PublishCurrencyConversion - * - * Command: PublishCurrencyConversion - * @param startTime UTC_TIME - * @param oldCurrency INT16U - * @param newCurrency INT16U - * @param conversionFactor INT32U - * @param conversionFactorTrailingDigit ConversionFactorTrailingDigit - * @param currencyChangeControlFlags CurrencyChangeControl - */ -#define emberAfFillCommandPriceClusterPublishCurrencyConversion(startTime, oldCurrency, newCurrency, conversionFactor, \ - conversionFactorTrailingDigit, currencyChangeControlFlags) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_CURRENCY_CONVERSION_COMMAND_ID, "uuuuuu", startTime, oldCurrency, newCurrency, \ - conversionFactor, conversionFactorTrailingDigit, currencyChangeControlFlags); - -/** @brief Command description for CancelTariff - * - * Command: CancelTariff - * @param providerId INT32U - */ -#define emberAfFillCommandPriceClusterCancelTariff(providerId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_CANCEL_TARIFF_COMMAND_ID, "u", providerId); - -/** @brief Command description for GetCreditPayment - * - * Command: GetCreditPayment - * @param latestEndTime UTC_TIME - */ -#define emberAfFillCommandPriceClusterGetCreditPayment(latestEndTime) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_CREDIT_PAYMENT_COMMAND_ID, "u", latestEndTime); - -/** @brief Command description for CancelTariff - * - * Command: CancelTariff - * @param issuerTariffId INT32U - */ -#define emberAfFillCommandPriceClusterCancelTariff(issuerTariffId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_CANCEL_TARIFF_COMMAND_ID, "u", issuerTariffId); - -/** @brief Command description for GetCreditPayment - * - * Command: GetCreditPayment - * @param numberOfRecords INT8U - */ -#define emberAfFillCommandPriceClusterGetCreditPayment(numberOfRecords) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_CREDIT_PAYMENT_COMMAND_ID, "u", numberOfRecords); - -/** @brief Command description for CancelTariff - * - * Command: CancelTariff - * @param tariffType TariffType - */ -#define emberAfFillCommandPriceClusterCancelTariff(tariffType) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_CANCEL_TARIFF_COMMAND_ID, "u", tariffType); - -/** @brief Command description for GetCurrencyConversionCommand - * - * Command: GetCurrencyConversionCommand - */ -#define emberAfFillCommandPriceClusterGetCurrencyConversionCommand() \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_CURRENCY_CONVERSION_COMMAND_COMMAND_ID, "", ); - -/** @brief Command description for GetTariffCancellation - * - * Command: GetTariffCancellation - */ -#define emberAfFillCommandPriceClusterGetTariffCancellation() \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_TARIFF_CANCELLATION_COMMAND_ID, "", ); - -/** @brief Command description for LoadControlEvent - * - * Command: LoadControlEvent - * @param issuerEventId INT32U - */ -#define emberAfFillCommandDemand \ - Response and Load ControlClusterLoadControlEvent(issuerEventId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_LOAD_CONTROL_EVENT_COMMAND_ID, "u", issuerEventId); - -/** @brief Command description for ReportEventStatus - * - * Command: ReportEventStatus - * @param issuerEventId INT32U - */ -#define emberAfFillCommandDemand \ - Response and Load ControlClusterReportEventStatus(issuerEventId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_REPORT_EVENT_STATUS_COMMAND_ID, "u", issuerEventId); - -/** @brief Command description for LoadControlEvent - * - * Command: LoadControlEvent - * @param deviceClass AmiDeviceClass - */ -#define emberAfFillCommandDemand \ - Response and Load ControlClusterLoadControlEvent(deviceClass) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_LOAD_CONTROL_EVENT_COMMAND_ID, "u", deviceClass); - -/** @brief Command description for ReportEventStatus - * - * Command: ReportEventStatus - * @param eventStatus AmiEventStatus - */ -#define emberAfFillCommandDemand \ - Response and Load ControlClusterReportEventStatus(eventStatus) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_REPORT_EVENT_STATUS_COMMAND_ID, "u", eventStatus); - -/** @brief Command description for LoadControlEvent - * - * Command: LoadControlEvent - * @param utilityEnrollmentGroup INT8U - */ -#define emberAfFillCommandDemand \ - Response and Load ControlClusterLoadControlEvent(utilityEnrollmentGroup) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_LOAD_CONTROL_EVENT_COMMAND_ID, "u", utilityEnrollmentGroup); - -/** @brief Command description for ReportEventStatus - * - * Command: ReportEventStatus - * @param eventStatusTime UTC_TIME - */ -#define emberAfFillCommandDemand \ - Response and Load ControlClusterReportEventStatus(eventStatusTime) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_REPORT_EVENT_STATUS_COMMAND_ID, "u", eventStatusTime); - -/** @brief Command description for LoadControlEvent - * - * Command: LoadControlEvent - * @param startTime UTC_TIME - */ -#define emberAfFillCommandDemand \ - Response and Load ControlClusterLoadControlEvent(startTime) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_LOAD_CONTROL_EVENT_COMMAND_ID, "u", startTime); - -/** @brief Command description for ReportEventStatus - * - * Command: ReportEventStatus - * @param criticalityLevelApplied AmiCriticalityLevel - */ -#define emberAfFillCommandDemand \ - Response and Load ControlClusterReportEventStatus(criticalityLevelApplied) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_REPORT_EVENT_STATUS_COMMAND_ID, "u", criticalityLevelApplied); - -/** @brief Command description for LoadControlEvent - * - * Command: LoadControlEvent - * @param durationInMinutes INT16U - */ -#define emberAfFillCommandDemand \ - Response and Load ControlClusterLoadControlEvent(durationInMinutes) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_LOAD_CONTROL_EVENT_COMMAND_ID, "u", durationInMinutes); - -/** @brief Command description for ReportEventStatus - * - * Command: ReportEventStatus - * @param coolingTemperatureSetPointApplied INT16U - */ -#define emberAfFillCommandDemand \ - Response and Load ControlClusterReportEventStatus(coolingTemperatureSetPointApplied) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_REPORT_EVENT_STATUS_COMMAND_ID, "u", coolingTemperatureSetPointApplied); - -/** @brief Command description for LoadControlEvent - * - * Command: LoadControlEvent - * @param criticalityLevel AmiCriticalityLevel - */ -#define emberAfFillCommandDemand \ - Response and Load ControlClusterLoadControlEvent(criticalityLevel) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_LOAD_CONTROL_EVENT_COMMAND_ID, "u", criticalityLevel); - -/** @brief Command description for ReportEventStatus - * - * Command: ReportEventStatus - * @param heatingTemperatureSetPointApplied INT16U - */ -#define emberAfFillCommandDemand \ - Response and Load ControlClusterReportEventStatus(heatingTemperatureSetPointApplied) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_REPORT_EVENT_STATUS_COMMAND_ID, "u", heatingTemperatureSetPointApplied); - -/** @brief Command description for LoadControlEvent - * - * Command: LoadControlEvent - * @param coolingTemperatureOffset INT8U - */ -#define emberAfFillCommandDemand \ - Response and Load ControlClusterLoadControlEvent(coolingTemperatureOffset) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_LOAD_CONTROL_EVENT_COMMAND_ID, "u", coolingTemperatureOffset); - -/** @brief Command description for ReportEventStatus - * - * Command: ReportEventStatus - * @param averageLoadAdjustmentPercentageApplied INT8S - */ -#define emberAfFillCommandDemand \ - Response and Load ControlClusterReportEventStatus(averageLoadAdjustmentPercentageApplied) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_REPORT_EVENT_STATUS_COMMAND_ID, "u", averageLoadAdjustmentPercentageApplied); - -/** @brief Command description for LoadControlEvent - * - * Command: LoadControlEvent - * @param heatingTemperatureOffset INT8U - */ -#define emberAfFillCommandDemand \ - Response and Load ControlClusterLoadControlEvent(heatingTemperatureOffset) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_LOAD_CONTROL_EVENT_COMMAND_ID, "u", heatingTemperatureOffset); - -/** @brief Command description for ReportEventStatus - * - * Command: ReportEventStatus - * @param dutyCycleApplied INT8U - */ -#define emberAfFillCommandDemand \ - Response and Load ControlClusterReportEventStatus(dutyCycleApplied) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_REPORT_EVENT_STATUS_COMMAND_ID, "u", dutyCycleApplied); - -/** @brief Command description for LoadControlEvent - * - * Command: LoadControlEvent - * @param coolingTemperatureSetPoint INT16S - */ -#define emberAfFillCommandDemand \ - Response and Load ControlClusterLoadControlEvent(coolingTemperatureSetPoint) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_LOAD_CONTROL_EVENT_COMMAND_ID, "u", coolingTemperatureSetPoint); - -/** @brief Command description for ReportEventStatus - * - * Command: ReportEventStatus - * @param eventControl AmiEventControl - */ -#define emberAfFillCommandDemand \ - Response and Load ControlClusterReportEventStatus(eventControl) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_REPORT_EVENT_STATUS_COMMAND_ID, "u", eventControl); - -/** @brief Command description for LoadControlEvent - * - * Command: LoadControlEvent - * @param heatingTemperatureSetPoint INT16S - */ -#define emberAfFillCommandDemand \ - Response and Load ControlClusterLoadControlEvent(heatingTemperatureSetPoint) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_LOAD_CONTROL_EVENT_COMMAND_ID, "u", heatingTemperatureSetPoint); - -/** @brief Command description for ReportEventStatus - * - * Command: ReportEventStatus - * @param signatureType SignatureType - */ -#define emberAfFillCommandDemand \ - Response and Load ControlClusterReportEventStatus(signatureType) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_REPORT_EVENT_STATUS_COMMAND_ID, "u", signatureType); - -/** @brief Command description for LoadControlEvent - * - * Command: LoadControlEvent - * @param averageLoadAdjustmentPercentage INT8S - */ -#define emberAfFillCommandDemand \ - Response and Load ControlClusterLoadControlEvent(averageLoadAdjustmentPercentage) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_LOAD_CONTROL_EVENT_COMMAND_ID, "u", averageLoadAdjustmentPercentage); - -/** @brief Command description for ReportEventStatus - * - * Command: ReportEventStatus - * @param signature Signature - */ -#define emberAfFillCommandDemand \ - Response and Load ControlClusterReportEventStatus(signature) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_REPORT_EVENT_STATUS_COMMAND_ID, "u", signature); - -/** @brief Command description for LoadControlEvent - * - * Command: LoadControlEvent - * @param dutyCycle INT8U - * @param eventControl AmiEventControl - */ -#define emberAfFillCommandDemand \ - Response and Load ControlClusterLoadControlEvent(dutyCycle, eventControl) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_LOAD_CONTROL_EVENT_COMMAND_ID, "uu", dutyCycle, eventControl); - -/** @brief Command description for CancelLoadControlEvent - * - * Command: CancelLoadControlEvent - * @param issuerEventId INT32U - */ -#define emberAfFillCommandDemand \ - Response and Load ControlClusterCancelLoadControlEvent(issuerEventId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_CANCEL_LOAD_CONTROL_EVENT_COMMAND_ID, "u", issuerEventId); - -/** @brief Command description for GetScheduledEvents - * - * Command: GetScheduledEvents - * @param startTime UTC_TIME - */ -#define emberAfFillCommandDemand \ - Response and Load ControlClusterGetScheduledEvents(startTime) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_SCHEDULED_EVENTS_COMMAND_ID, "u", startTime); - -/** @brief Command description for CancelLoadControlEvent - * - * Command: CancelLoadControlEvent - * @param deviceClass AmiDeviceClass - */ -#define emberAfFillCommandDemand \ - Response and Load ControlClusterCancelLoadControlEvent(deviceClass) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_CANCEL_LOAD_CONTROL_EVENT_COMMAND_ID, "u", deviceClass); - -/** @brief Command description for GetScheduledEvents - * - * Command: GetScheduledEvents - * @param numberOfEvents INT8U - */ -#define emberAfFillCommandDemand \ - Response and Load ControlClusterGetScheduledEvents(numberOfEvents) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_SCHEDULED_EVENTS_COMMAND_ID, "u", numberOfEvents); - -/** @brief Command description for CancelLoadControlEvent - * - * Command: CancelLoadControlEvent - * @param utilityEnrollmentGroup INT8U - */ -#define emberAfFillCommandDemand \ - Response and Load ControlClusterCancelLoadControlEvent(utilityEnrollmentGroup) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_CANCEL_LOAD_CONTROL_EVENT_COMMAND_ID, "u", utilityEnrollmentGroup); - -/** @brief Command description for GetScheduledEvents - * - * Command: GetScheduledEvents - * @param issuerEventId INT32U - */ -#define emberAfFillCommandDemand \ - Response and Load ControlClusterGetScheduledEvents(issuerEventId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_SCHEDULED_EVENTS_COMMAND_ID, "u", issuerEventId); - -/** @brief Command description for CancelLoadControlEvent - * - * Command: CancelLoadControlEvent - * @param cancelControl AmiCancelControl - * @param effectiveTime UTC_TIME - */ -#define emberAfFillCommandDemand \ - Response and Load ControlClusterCancelLoadControlEvent(cancelControl, effectiveTime) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_CANCEL_LOAD_CONTROL_EVENT_COMMAND_ID, "uu", cancelControl, effectiveTime); - -/** @brief Command description for CancelAllLoadControlEvents - * - * Command: CancelAllLoadControlEvents - * @param cancelControl AmiCancelControl - */ -#define emberAfFillCommandDemand \ - Response and Load ControlClusterCancelAllLoadControlEvents(cancelControl) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_CANCEL_ALL_LOAD_CONTROL_EVENTS_COMMAND_ID, "u", cancelControl); - -/** @brief Command description for GetProfileResponse - * - * Command: GetProfileResponse - * @param endTime UTC_TIME - */ -#define emberAfFillCommandSimple \ - MeteringClusterGetProfileResponse(endTime) emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_PROFILE_RESPONSE_COMMAND_ID, "u", endTime); - -/** @brief Command description for GetProfile - * - * Command: GetProfile - * @param intervalChannel AmiIntervalChannel - */ -#define emberAfFillCommandSimple \ - MeteringClusterGetProfile(intervalChannel) emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_PROFILE_COMMAND_ID, "u", intervalChannel); - -/** @brief Command description for GetProfileResponse - * - * Command: GetProfileResponse - * @param status AmiGetProfileStatus - */ -#define emberAfFillCommandSimple \ - MeteringClusterGetProfileResponse(status) emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_PROFILE_RESPONSE_COMMAND_ID, "u", status); - -/** @brief Command description for GetProfile - * - * Command: GetProfile - * @param endTime UTC_TIME - */ -#define emberAfFillCommandSimple \ - MeteringClusterGetProfile(endTime) emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_PROFILE_COMMAND_ID, "u", endTime); - -/** @brief Command description for GetProfileResponse - * - * Command: GetProfileResponse - * @param profileIntervalPeriod AmiIntervalPeriod - */ -#define emberAfFillCommandSimple \ - MeteringClusterGetProfileResponse(profileIntervalPeriod) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_PROFILE_RESPONSE_COMMAND_ID, "u", profileIntervalPeriod); - -/** @brief Command description for GetProfile - * - * Command: GetProfile - * @param numberOfPeriods INT8U - */ -#define emberAfFillCommandSimple \ - MeteringClusterGetProfile(numberOfPeriods) emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_PROFILE_COMMAND_ID, "u", numberOfPeriods); - -/** @brief Command description for GetProfileResponse - * - * Command: GetProfileResponse - * @param numberOfPeriodsDelivered INT8U - * @param intervals INT24U [] - * @param intervalsLen int - */ -#define emberAfFillCommandSimple \ - MeteringClusterGetProfileResponse(numberOfPeriodsDelivered, intervals, intervalsLen) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_PROFILE_RESPONSE_COMMAND_ID, "ub", numberOfPeriodsDelivered, intervals, intervalsLen); - -/** @brief Command description for RequestMirror - * - * Command: RequestMirror - */ -#define emberAfFillCommandSimple \ - MeteringClusterRequestMirror() emberAfFillExternalBuffer(mask, \ - \ - ZCL_REQUEST_MIRROR_COMMAND_ID, "", ); - -/** @brief Command description for RequestMirrorResponse - * - * Command: RequestMirrorResponse - * @param endpointId INT16U - */ -#define emberAfFillCommandSimple \ - MeteringClusterRequestMirrorResponse(endpointId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_REQUEST_MIRROR_RESPONSE_COMMAND_ID, "u", endpointId); - -/** @brief Command description for RemoveMirror - * - * Command: RemoveMirror - */ -#define emberAfFillCommandSimple \ - MeteringClusterRemoveMirror() emberAfFillExternalBuffer(mask, \ - \ - ZCL_REMOVE_MIRROR_COMMAND_ID, "", ); - -/** @brief Command description for MirrorRemoved - * - * Command: MirrorRemoved - * @param endpointId INT16U - */ -#define emberAfFillCommandSimple \ - MeteringClusterMirrorRemoved(endpointId) emberAfFillExternalBuffer(mask, \ - \ - ZCL_MIRROR_REMOVED_COMMAND_ID, "u", endpointId); - -/** @brief Command description for RequestFastPollModeResponse - * - * Command: RequestFastPollModeResponse - * @param appliedUpdatePeriod INT8U - */ -#define emberAfFillCommandSimple \ - MeteringClusterRequestFastPollModeResponse(appliedUpdatePeriod) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_REQUEST_FAST_POLL_MODE_RESPONSE_COMMAND_ID, "u", appliedUpdatePeriod); - -/** @brief Command description for RequestFastPollMode - * - * Command: RequestFastPollMode - * @param fastPollUpdatePeriod INT8U - */ -#define emberAfFillCommandSimple \ - MeteringClusterRequestFastPollMode(fastPollUpdatePeriod) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_REQUEST_FAST_POLL_MODE_COMMAND_ID, "u", fastPollUpdatePeriod); - -/** @brief Command description for RequestFastPollModeResponse - * - * Command: RequestFastPollModeResponse - * @param fastPollModeEndtime UTC_TIME - */ -#define emberAfFillCommandSimple \ - MeteringClusterRequestFastPollModeResponse(fastPollModeEndtime) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_REQUEST_FAST_POLL_MODE_RESPONSE_COMMAND_ID, "u", fastPollModeEndtime); - -/** @brief Command description for RequestFastPollMode - * - * Command: RequestFastPollMode - * @param duration INT8U - */ -#define emberAfFillCommandSimple \ - MeteringClusterRequestFastPollMode(duration) emberAfFillExternalBuffer(mask, \ - \ - ZCL_REQUEST_FAST_POLL_MODE_COMMAND_ID, "u", duration); - -/** @brief Command description for ScheduleSnapshotResponse - * - * Command: ScheduleSnapshotResponse - * @param issuerEventId INT32U - */ -#define emberAfFillCommandSimple \ - MeteringClusterScheduleSnapshotResponse(issuerEventId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_SCHEDULE_SNAPSHOT_RESPONSE_COMMAND_ID, "u", issuerEventId); - -/** @brief Command description for ScheduleSnapshot - * - * Command: ScheduleSnapshot - * @param issuerEventId INT32U - */ -#define emberAfFillCommandSimple \ - MeteringClusterScheduleSnapshot(issuerEventId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_SCHEDULE_SNAPSHOT_COMMAND_ID, "u", issuerEventId); - -/** @brief Command description for ScheduleSnapshotResponse - * - * Command: ScheduleSnapshotResponse - * @param snapshotResponsePayload SnapshotResponsePayload [] - * @param snapshotResponsePayloadLen int - */ -#define emberAfFillCommandSimple \ - MeteringClusterScheduleSnapshotResponse(snapshotResponsePayload, snapshotResponsePayloadLen) emberAfFillExternalBuffer( \ - mask, \ - \ - ZCL_SCHEDULE_SNAPSHOT_RESPONSE_COMMAND_ID, "b", snapshotResponsePayload, snapshotResponsePayloadLen); - -/** @brief Command description for ScheduleSnapshot - * - * Command: ScheduleSnapshot - * @param commandIndex INT8U - * @param commandCount INT8U - * @param snapshotSchedulePayload SnapshotSchedulePayload [] - * @param snapshotSchedulePayloadLen int - */ -#define emberAfFillCommandSimple \ - MeteringClusterScheduleSnapshot(commandIndex, commandCount, snapshotSchedulePayload, snapshotSchedulePayloadLen) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_SCHEDULE_SNAPSHOT_COMMAND_ID, "uub", commandIndex, commandCount, snapshotSchedulePayload, \ - snapshotSchedulePayloadLen); - -/** @brief Command description for TakeSnapshotResponse - * - * Command: TakeSnapshotResponse - * @param snapshotId INT32U - */ -#define emberAfFillCommandSimple \ - MeteringClusterTakeSnapshotResponse(snapshotId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_TAKE_SNAPSHOT_RESPONSE_COMMAND_ID, "u", snapshotId); - -/** @brief Command description for TakeSnapshot - * - * Command: TakeSnapshot - * @param snapshotCause SnapshotCause - */ -#define emberAfFillCommandSimple \ - MeteringClusterTakeSnapshot(snapshotCause) emberAfFillExternalBuffer(mask, \ - \ - ZCL_TAKE_SNAPSHOT_COMMAND_ID, "u", snapshotCause); - -/** @brief Command description for TakeSnapshotResponse - * - * Command: TakeSnapshotResponse - * @param snapshotConfirmation SnapshotConfirmation - */ -#define emberAfFillCommandSimple \ - MeteringClusterTakeSnapshotResponse(snapshotConfirmation) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_TAKE_SNAPSHOT_RESPONSE_COMMAND_ID, "u", snapshotConfirmation); - -/** @brief Command description for PublishSnapshot - * - * Command: PublishSnapshot - * @param snapshotId INT32U - */ -#define emberAfFillCommandSimple \ - MeteringClusterPublishSnapshot(snapshotId) emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_SNAPSHOT_COMMAND_ID, "u", snapshotId); - -/** @brief Command description for GetSnapshot - * - * Command: GetSnapshot - * @param earliestStartTime UTC_TIME - */ -#define emberAfFillCommandSimple \ - MeteringClusterGetSnapshot(earliestStartTime) emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_SNAPSHOT_COMMAND_ID, "u", earliestStartTime); - -/** @brief Command description for PublishSnapshot - * - * Command: PublishSnapshot - * @param snapshotTime UTC_TIME - */ -#define emberAfFillCommandSimple \ - MeteringClusterPublishSnapshot(snapshotTime) emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_SNAPSHOT_COMMAND_ID, "u", snapshotTime); - -/** @brief Command description for GetSnapshot - * - * Command: GetSnapshot - * @param latestEndTime UTC_TIME - */ -#define emberAfFillCommandSimple \ - MeteringClusterGetSnapshot(latestEndTime) emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_SNAPSHOT_COMMAND_ID, "u", latestEndTime); - -/** @brief Command description for PublishSnapshot - * - * Command: PublishSnapshot - * @param totalSnapshotsFound INT8U - */ -#define emberAfFillCommandSimple \ - MeteringClusterPublishSnapshot(totalSnapshotsFound) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_SNAPSHOT_COMMAND_ID, "u", totalSnapshotsFound); - -/** @brief Command description for GetSnapshot - * - * Command: GetSnapshot - * @param snapshotOffset INT8U - */ -#define emberAfFillCommandSimple \ - MeteringClusterGetSnapshot(snapshotOffset) emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_SNAPSHOT_COMMAND_ID, "u", snapshotOffset); - -/** @brief Command description for PublishSnapshot - * - * Command: PublishSnapshot - * @param commandIndex INT8U - */ -#define emberAfFillCommandSimple \ - MeteringClusterPublishSnapshot(commandIndex) emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_SNAPSHOT_COMMAND_ID, "u", commandIndex); - -/** @brief Command description for GetSnapshot - * - * Command: GetSnapshot - * @param snapshotCause SnapshotCause - */ -#define emberAfFillCommandSimple \ - MeteringClusterGetSnapshot(snapshotCause) emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_SNAPSHOT_COMMAND_ID, "u", snapshotCause); - -/** @brief Command description for PublishSnapshot - * - * Command: PublishSnapshot - * @param totalCommands INT8U - * @param snapshotCause SnapshotCause - * @param snapshotPayloadType SnapshotPayloadType - * @param snapshotPayload INT8U [] - * @param snapshotPayloadLen int - */ -#define emberAfFillCommandSimple \ - MeteringClusterPublishSnapshot(totalCommands, snapshotCause, snapshotPayloadType, snapshotPayload, snapshotPayloadLen) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_SNAPSHOT_COMMAND_ID, "uuub", totalCommands, snapshotCause, snapshotPayloadType, \ - snapshotPayload, snapshotPayloadLen); - -/** @brief Command description for GetSampledDataResponse - * - * Command: GetSampledDataResponse - * @param sampleId INT16U - */ -#define emberAfFillCommandSimple \ - MeteringClusterGetSampledDataResponse(sampleId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_SAMPLED_DATA_RESPONSE_COMMAND_ID, "u", sampleId); - -/** @brief Command description for StartSampling - * - * Command: StartSampling - * @param issuerEventId INT32U - */ -#define emberAfFillCommandSimple \ - MeteringClusterStartSampling(issuerEventId) emberAfFillExternalBuffer(mask, \ - \ - ZCL_START_SAMPLING_COMMAND_ID, "u", issuerEventId); - -/** @brief Command description for GetSampledDataResponse - * - * Command: GetSampledDataResponse - * @param sampleStartTime UTC_TIME - */ -#define emberAfFillCommandSimple \ - MeteringClusterGetSampledDataResponse(sampleStartTime) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_SAMPLED_DATA_RESPONSE_COMMAND_ID, "u", sampleStartTime); - -/** @brief Command description for StartSampling - * - * Command: StartSampling - * @param startSamplingTime UTC_TIME - */ -#define emberAfFillCommandSimple \ - MeteringClusterStartSampling(startSamplingTime) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_START_SAMPLING_COMMAND_ID, "u", startSamplingTime); - -/** @brief Command description for GetSampledDataResponse - * - * Command: GetSampledDataResponse - * @param sampleType SampleType - */ -#define emberAfFillCommandSimple \ - MeteringClusterGetSampledDataResponse(sampleType) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_SAMPLED_DATA_RESPONSE_COMMAND_ID, "u", sampleType); - -/** @brief Command description for StartSampling - * - * Command: StartSampling - * @param sampleType SampleType - */ -#define emberAfFillCommandSimple \ - MeteringClusterStartSampling(sampleType) emberAfFillExternalBuffer(mask, \ - \ - ZCL_START_SAMPLING_COMMAND_ID, "u", sampleType); - -/** @brief Command description for GetSampledDataResponse - * - * Command: GetSampledDataResponse - * @param sampleRequestInterval INT16U - */ -#define emberAfFillCommandSimple \ - MeteringClusterGetSampledDataResponse(sampleRequestInterval) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_SAMPLED_DATA_RESPONSE_COMMAND_ID, "u", sampleRequestInterval); - -/** @brief Command description for StartSampling - * - * Command: StartSampling - * @param sampleRequestInterval INT16U - */ -#define emberAfFillCommandSimple \ - MeteringClusterStartSampling(sampleRequestInterval) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_START_SAMPLING_COMMAND_ID, "u", sampleRequestInterval); - -/** @brief Command description for GetSampledDataResponse - * - * Command: GetSampledDataResponse - * @param numberOfSamples INT16U - */ -#define emberAfFillCommandSimple \ - MeteringClusterGetSampledDataResponse(numberOfSamples) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_SAMPLED_DATA_RESPONSE_COMMAND_ID, "u", numberOfSamples); - -/** @brief Command description for StartSampling - * - * Command: StartSampling - * @param maxNumberOfSamples INT16U - */ -#define emberAfFillCommandSimple \ - MeteringClusterStartSampling(maxNumberOfSamples) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_START_SAMPLING_COMMAND_ID, "u", maxNumberOfSamples); - -/** @brief Command description for GetSampledDataResponse - * - * Command: GetSampledDataResponse - * @param samples INT24U [] - * @param samplesLen int - */ -#define emberAfFillCommandSimple \ - MeteringClusterGetSampledDataResponse(samples, samplesLen) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_SAMPLED_DATA_RESPONSE_COMMAND_ID, "b", samples, samplesLen); - -/** @brief Command description for ConfigureMirror - * - * Command: ConfigureMirror - * @param issuerEventId INT32U - */ -#define emberAfFillCommandSimple \ - MeteringClusterConfigureMirror(issuerEventId) emberAfFillExternalBuffer(mask, \ - \ - ZCL_CONFIGURE_MIRROR_COMMAND_ID, "u", issuerEventId); - -/** @brief Command description for GetSampledData - * - * Command: GetSampledData - * @param sampleId INT16U - */ -#define emberAfFillCommandSimple \ - MeteringClusterGetSampledData(sampleId) emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_SAMPLED_DATA_COMMAND_ID, "u", sampleId); - -/** @brief Command description for ConfigureMirror - * - * Command: ConfigureMirror - * @param reportingInterval INT24U - */ -#define emberAfFillCommandSimple \ - MeteringClusterConfigureMirror(reportingInterval) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_CONFIGURE_MIRROR_COMMAND_ID, "u", reportingInterval); - -/** @brief Command description for GetSampledData - * - * Command: GetSampledData - * @param earliestSampleTime UTC_TIME - */ -#define emberAfFillCommandSimple \ - MeteringClusterGetSampledData(earliestSampleTime) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_SAMPLED_DATA_COMMAND_ID, "u", earliestSampleTime); - -/** @brief Command description for ConfigureMirror - * - * Command: ConfigureMirror - * @param mirrorNotificationReporting BOOLEAN - */ -#define emberAfFillCommandSimple \ - MeteringClusterConfigureMirror(mirrorNotificationReporting) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_CONFIGURE_MIRROR_COMMAND_ID, "u", mirrorNotificationReporting); - -/** @brief Command description for GetSampledData - * - * Command: GetSampledData - * @param sampleType SampleType - */ -#define emberAfFillCommandSimple \ - MeteringClusterGetSampledData(sampleType) emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_SAMPLED_DATA_COMMAND_ID, "u", sampleType); - -/** @brief Command description for ConfigureMirror - * - * Command: ConfigureMirror - * @param notificationScheme INT8U - */ -#define emberAfFillCommandSimple \ - MeteringClusterConfigureMirror(notificationScheme) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_CONFIGURE_MIRROR_COMMAND_ID, "u", notificationScheme); - -/** @brief Command description for GetSampledData - * - * Command: GetSampledData - * @param numberOfSamples INT16U - */ -#define emberAfFillCommandSimple \ - MeteringClusterGetSampledData(numberOfSamples) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_SAMPLED_DATA_COMMAND_ID, "u", numberOfSamples); - -/** @brief Command description for ConfigureNotificationScheme - * - * Command: ConfigureNotificationScheme - * @param issuerEventId INT32U - */ -#define emberAfFillCommandSimple \ - MeteringClusterConfigureNotificationScheme(issuerEventId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_CONFIGURE_NOTIFICATION_SCHEME_COMMAND_ID, "u", issuerEventId); - -/** @brief Command description for MirrorReportAttributeResponse - * - * Command: MirrorReportAttributeResponse - * @param notificationScheme INT8U - */ -#define emberAfFillCommandSimple \ - MeteringClusterMirrorReportAttributeResponse(notificationScheme) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_MIRROR_REPORT_ATTRIBUTE_RESPONSE_COMMAND_ID, "u", notificationScheme); - -/** @brief Command description for ConfigureNotificationScheme - * - * Command: ConfigureNotificationScheme - * @param notificationScheme INT8U - */ -#define emberAfFillCommandSimple \ - MeteringClusterConfigureNotificationScheme(notificationScheme) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_CONFIGURE_NOTIFICATION_SCHEME_COMMAND_ID, "u", notificationScheme); - -/** @brief Command description for MirrorReportAttributeResponse - * - * Command: MirrorReportAttributeResponse - * @param notificationFlags BITMAP32 [] - * @param notificationFlagsLen int - */ -#define emberAfFillCommandSimple \ - MeteringClusterMirrorReportAttributeResponse(notificationFlags, notificationFlagsLen) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_MIRROR_REPORT_ATTRIBUTE_RESPONSE_COMMAND_ID, "b", notificationFlags, notificationFlagsLen); - -/** @brief Command description for ConfigureNotificationScheme - * - * Command: ConfigureNotificationScheme - * @param notificationFlagOrder BITMAP32 - */ -#define emberAfFillCommandSimple \ - MeteringClusterConfigureNotificationScheme(notificationFlagOrder) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_CONFIGURE_NOTIFICATION_SCHEME_COMMAND_ID, "u", notificationFlagOrder); - -/** @brief Command description for ConfigureNotificationFlags - * - * Command: ConfigureNotificationFlags - * @param issuerEventId INT32U - */ -#define emberAfFillCommandSimple \ - MeteringClusterConfigureNotificationFlags(issuerEventId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_CONFIGURE_NOTIFICATION_FLAGS_COMMAND_ID, "u", issuerEventId); - -/** @brief Command description for ResetLoadLimitCounter - * - * Command: ResetLoadLimitCounter - * @param providerId INT32U - */ -#define emberAfFillCommandSimple \ - MeteringClusterResetLoadLimitCounter(providerId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_RESET_LOAD_LIMIT_COUNTER_COMMAND_ID, "u", providerId); - -/** @brief Command description for ConfigureNotificationFlags - * - * Command: ConfigureNotificationFlags - * @param notificationScheme INT8U - */ -#define emberAfFillCommandSimple \ - MeteringClusterConfigureNotificationFlags(notificationScheme) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_CONFIGURE_NOTIFICATION_FLAGS_COMMAND_ID, "u", notificationScheme); - -/** @brief Command description for ResetLoadLimitCounter - * - * Command: ResetLoadLimitCounter - * @param issuerEventId INT32U - */ -#define emberAfFillCommandSimple \ - MeteringClusterResetLoadLimitCounter(issuerEventId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_RESET_LOAD_LIMIT_COUNTER_COMMAND_ID, "u", issuerEventId); - -/** @brief Command description for ConfigureNotificationFlags - * - * Command: ConfigureNotificationFlags - * @param notificationFlagAttributeId INT16U - * @param clusterId INT16U - * @param manufacturerCode INT16U - * @param numberOfCommands INT8U - * @param commandIds INT8U [] - * @param commandIdsLen int - */ -#define emberAfFillCommandSimple \ - MeteringClusterConfigureNotificationFlags(notificationFlagAttributeId, clusterId, manufacturerCode, numberOfCommands, \ - commandIds, commandIdsLen) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_CONFIGURE_NOTIFICATION_FLAGS_COMMAND_ID, "uuuub", notificationFlagAttributeId, clusterId, \ - manufacturerCode, numberOfCommands, commandIds, commandIdsLen); - -/** @brief Command description for GetNotifiedMessage - * - * Command: GetNotifiedMessage - * @param notificationScheme INT8U - */ -#define emberAfFillCommandSimple \ - MeteringClusterGetNotifiedMessage(notificationScheme) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_NOTIFIED_MESSAGE_COMMAND_ID, "u", notificationScheme); - -/** @brief Command description for ChangeSupply - * - * Command: ChangeSupply - * @param providerId INT32U - */ -#define emberAfFillCommandSimple \ - MeteringClusterChangeSupply(providerId) emberAfFillExternalBuffer(mask, \ - \ - ZCL_CHANGE_SUPPLY_COMMAND_ID, "u", providerId); - -/** @brief Command description for GetNotifiedMessage - * - * Command: GetNotifiedMessage - * @param notificationFlagAttributeId INT16U - */ -#define emberAfFillCommandSimple \ - MeteringClusterGetNotifiedMessage(notificationFlagAttributeId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_NOTIFIED_MESSAGE_COMMAND_ID, "u", notificationFlagAttributeId); - -/** @brief Command description for ChangeSupply - * - * Command: ChangeSupply - * @param issuerEventId INT32U - */ -#define emberAfFillCommandSimple \ - MeteringClusterChangeSupply(issuerEventId) emberAfFillExternalBuffer(mask, \ - \ - ZCL_CHANGE_SUPPLY_COMMAND_ID, "u", issuerEventId); - -/** @brief Command description for GetNotifiedMessage - * - * Command: GetNotifiedMessage - * @param notificationFlagsN BITMAP32 - */ -#define emberAfFillCommandSimple \ - MeteringClusterGetNotifiedMessage(notificationFlagsN) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_NOTIFIED_MESSAGE_COMMAND_ID, "u", notificationFlagsN); - -/** @brief Command description for ChangeSupply - * - * Command: ChangeSupply - * @param requestDateTime UTC_TIME - * @param implementationDateTime UTC_TIME - * @param proposedSupplyStatus MeteringSupplyStatus - * @param supplyControlBits SupplyControlBits - */ -#define emberAfFillCommandSimple \ - MeteringClusterChangeSupply(requestDateTime, implementationDateTime, proposedSupplyStatus, supplyControlBits) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_CHANGE_SUPPLY_COMMAND_ID, "uuuu", requestDateTime, implementationDateTime, \ - proposedSupplyStatus, supplyControlBits); - -/** @brief Command description for SupplyStatusResponse - * - * Command: SupplyStatusResponse - * @param providerId INT32U - */ -#define emberAfFillCommandSimple \ - MeteringClusterSupplyStatusResponse(providerId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_SUPPLY_STATUS_RESPONSE_COMMAND_ID, "u", providerId); - -/** @brief Command description for LocalChangeSupply - * - * Command: LocalChangeSupply - * @param proposedSupplyStatus ProposedSupplyStatus - */ -#define emberAfFillCommandSimple \ - MeteringClusterLocalChangeSupply(proposedSupplyStatus) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_LOCAL_CHANGE_SUPPLY_COMMAND_ID, "u", proposedSupplyStatus); - -/** @brief Command description for SupplyStatusResponse - * - * Command: SupplyStatusResponse - * @param issuerEventId INT32U - * @param implementationDateTime UTC_TIME - * @param supplyStatus MeteringSupplyStatus - */ -#define emberAfFillCommandSimple \ - MeteringClusterSupplyStatusResponse(issuerEventId, implementationDateTime, supplyStatus) emberAfFillExternalBuffer( \ - mask, \ - \ - ZCL_SUPPLY_STATUS_RESPONSE_COMMAND_ID, "uuu", issuerEventId, implementationDateTime, supplyStatus); - -/** @brief Command description for StartSamplingResponse - * - * Command: StartSamplingResponse - * @param sampleId INT16U - */ -#define emberAfFillCommandSimple \ - MeteringClusterStartSamplingResponse(sampleId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_START_SAMPLING_RESPONSE_COMMAND_ID, "u", sampleId); - -/** @brief Command description for SetSupplyStatus - * - * Command: SetSupplyStatus - * @param issuerEventId INT32U - * @param supplyTamperState SupplyStatus - * @param supplyDepletionState SupplyStatus - * @param supplyUncontrolledFlowState SupplyStatus - * @param loadLimitSupplyState SupplyStatus - */ -#define emberAfFillCommandSimple \ - MeteringClusterSetSupplyStatus(issuerEventId, supplyTamperState, supplyDepletionState, supplyUncontrolledFlowState, \ - loadLimitSupplyState) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_SET_SUPPLY_STATUS_COMMAND_ID, "uuuuu", issuerEventId, supplyTamperState, \ - supplyDepletionState, supplyUncontrolledFlowState, loadLimitSupplyState); - -/** @brief Command description for SetUncontrolledFlowThreshold - * - * Command: SetUncontrolledFlowThreshold - * @param providerId INT32U - * @param issuerEventId INT32U - * @param uncontrolledFlowThreshold INT16U - * @param unitOfMeasure AmiUnitOfMeasure - * @param multiplier INT16U - * @param divisor INT16U - * @param stabilisationPeriod INT8U - * @param measurementPeriod INT16U - */ -#define emberAfFillCommandSimple \ - MeteringClusterSetUncontrolledFlowThreshold(providerId, issuerEventId, uncontrolledFlowThreshold, unitOfMeasure, multiplier, \ - divisor, stabilisationPeriod, measurementPeriod) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_SET_UNCONTROLLED_FLOW_THRESHOLD_COMMAND_ID, "uuuuuuuu", providerId, issuerEventId, \ - uncontrolledFlowThreshold, unitOfMeasure, multiplier, divisor, stabilisationPeriod, \ - measurementPeriod); - -/** @brief Command description for GetLastMessage - * - * Command: GetLastMessage - */ -#define emberAfFillCommandMessagingClusterGetLastMessage() \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_LAST_MESSAGE_COMMAND_ID, "", ); - -/** @brief Command description for DisplayMessage - * - * Command: DisplayMessage - * @param messageId INT32U - * @param messageControl MessagingControlMask - * @param startTime UTC_TIME - * @param durationInMinutes INT16U - * @param message CHAR_STRING - * @param optionalExtendedMessageControl MessagingExtendedControlMask - */ -#define emberAfFillCommandMessagingClusterDisplayMessage(messageId, messageControl, startTime, durationInMinutes, message, \ - optionalExtendedMessageControl) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_DISPLAY_MESSAGE_COMMAND_ID, "uuuuuu", messageId, messageControl, startTime, durationInMinutes, \ - message, optionalExtendedMessageControl); - -/** @brief Command description for CancelMessage - * - * Command: CancelMessage - * @param messageId INT32U - */ -#define emberAfFillCommandMessagingClusterCancelMessage(messageId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_CANCEL_MESSAGE_COMMAND_ID, "u", messageId); - -/** @brief Command description for MessageConfirmation - * - * Command: MessageConfirmation - * @param messageId INT32U - */ -#define emberAfFillCommandMessagingClusterMessageConfirmation(messageId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_MESSAGE_CONFIRMATION_COMMAND_ID, "u", messageId); - -/** @brief Command description for CancelMessage - * - * Command: CancelMessage - * @param messageControl MessagingControlMask - */ -#define emberAfFillCommandMessagingClusterCancelMessage(messageControl) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_CANCEL_MESSAGE_COMMAND_ID, "u", messageControl); - -/** @brief Command description for MessageConfirmation - * - * Command: MessageConfirmation - * @param confirmationTime UTC_TIME - * @param messageConfirmationControl BITMAP8 - * @param messageResponse OCTET_STRING - */ -#define emberAfFillCommandMessagingClusterMessageConfirmation(confirmationTime, messageConfirmationControl, messageResponse) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_MESSAGE_CONFIRMATION_COMMAND_ID, "uuu", confirmationTime, messageConfirmationControl, \ - messageResponse); - -/** @brief Command description for DisplayProtectedMessage - * - * Command: DisplayProtectedMessage - * @param messageId INT32U - */ -#define emberAfFillCommandMessagingClusterDisplayProtectedMessage(messageId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_DISPLAY_PROTECTED_MESSAGE_COMMAND_ID, "u", messageId); - -/** @brief Command description for GetMessageCancellation - * - * Command: GetMessageCancellation - * @param earliestImplementationTime UTC_TIME - */ -#define emberAfFillCommandMessagingClusterGetMessageCancellation(earliestImplementationTime) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_MESSAGE_CANCELLATION_COMMAND_ID, "u", earliestImplementationTime); - -/** @brief Command description for DisplayProtectedMessage - * - * Command: DisplayProtectedMessage - * @param messageControl MessagingControlMask - * @param startTime UTC_TIME - * @param durationInMinutes INT16U - * @param message CHAR_STRING - * @param optionalExtendedMessageControl MessagingExtendedControlMask - */ -#define emberAfFillCommandMessagingClusterDisplayProtectedMessage(messageControl, startTime, durationInMinutes, message, \ - optionalExtendedMessageControl) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_DISPLAY_PROTECTED_MESSAGE_COMMAND_ID, "uuuuu", messageControl, startTime, durationInMinutes, \ - message, optionalExtendedMessageControl); - -/** @brief Command description for CancelAllMessages - * - * Command: CancelAllMessages - * @param implementationDateTime UTC_TIME - */ -#define emberAfFillCommandMessagingClusterCancelAllMessages(implementationDateTime) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_CANCEL_ALL_MESSAGES_COMMAND_ID, "u", implementationDateTime); - -/** @brief Command description for RequestTunnel - * - * Command: RequestTunnel - * @param protocolId INT8U - */ -#define emberAfFillCommandTunnelingClusterRequestTunnel(protocolId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_REQUEST_TUNNEL_COMMAND_ID, "u", protocolId); - -/** @brief Command description for RequestTunnelResponse - * - * Command: RequestTunnelResponse - * @param tunnelId INT16U - */ -#define emberAfFillCommandTunnelingClusterRequestTunnelResponse(tunnelId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_REQUEST_TUNNEL_RESPONSE_COMMAND_ID, "u", tunnelId); - -/** @brief Command description for RequestTunnel - * - * Command: RequestTunnel - * @param manufacturerCode INT16U - */ -#define emberAfFillCommandTunnelingClusterRequestTunnel(manufacturerCode) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_REQUEST_TUNNEL_COMMAND_ID, "u", manufacturerCode); - -/** @brief Command description for RequestTunnelResponse - * - * Command: RequestTunnelResponse - * @param tunnelStatus TunnelingTunnelStatus - */ -#define emberAfFillCommandTunnelingClusterRequestTunnelResponse(tunnelStatus) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_REQUEST_TUNNEL_RESPONSE_COMMAND_ID, "u", tunnelStatus); - -/** @brief Command description for RequestTunnel - * - * Command: RequestTunnel - * @param flowControlSupport BOOLEAN - */ -#define emberAfFillCommandTunnelingClusterRequestTunnel(flowControlSupport) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_REQUEST_TUNNEL_COMMAND_ID, "u", flowControlSupport); - -/** @brief Command description for RequestTunnelResponse - * - * Command: RequestTunnelResponse - * @param maximumIncomingTransferSize INT16U - */ -#define emberAfFillCommandTunnelingClusterRequestTunnelResponse(maximumIncomingTransferSize) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_REQUEST_TUNNEL_RESPONSE_COMMAND_ID, "u", maximumIncomingTransferSize); - -/** @brief Command description for RequestTunnel - * - * Command: RequestTunnel - * @param maximumIncomingTransferSize INT16U - */ -#define emberAfFillCommandTunnelingClusterRequestTunnel(maximumIncomingTransferSize) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_REQUEST_TUNNEL_COMMAND_ID, "u", maximumIncomingTransferSize); - -/** @brief Command description for CloseTunnel - * - * Command: CloseTunnel - * @param tunnelId INT16U - */ -#define emberAfFillCommandTunnelingClusterCloseTunnel(tunnelId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_CLOSE_TUNNEL_COMMAND_ID, "u", tunnelId); - -/** @brief Command description for TransferDataServerToClient - * - * Command: TransferDataServerToClient - * @param tunnelId INT16U - * @param data INT8U [] - * @param dataLen int - */ -#define emberAfFillCommandTunnelingClusterTransferDataServerToClient(tunnelId, data, dataLen) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_TRANSFER_DATA_SERVER_TO_CLIENT_COMMAND_ID, "ub", tunnelId, data, dataLen); - -/** @brief Command description for TransferDataClientToServer - * - * Command: TransferDataClientToServer - * @param tunnelId INT16U - */ -#define emberAfFillCommandTunnelingClusterTransferDataClientToServer(tunnelId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_TRANSFER_DATA_CLIENT_TO_SERVER_COMMAND_ID, "u", tunnelId); - -/** @brief Command description for TransferDataErrorServerToClient - * - * Command: TransferDataErrorServerToClient - * @param tunnelId INT16U - */ -#define emberAfFillCommandTunnelingClusterTransferDataErrorServerToClient(tunnelId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_TRANSFER_DATA_ERROR_SERVER_TO_CLIENT_COMMAND_ID, "u", tunnelId); - -/** @brief Command description for TransferDataClientToServer - * - * Command: TransferDataClientToServer - * @param data INT8U [] - * @param dataLen int - */ -#define emberAfFillCommandTunnelingClusterTransferDataClientToServer(data, dataLen) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_TRANSFER_DATA_CLIENT_TO_SERVER_COMMAND_ID, "b", data, dataLen); - -/** @brief Command description for TransferDataErrorServerToClient - * - * Command: TransferDataErrorServerToClient - * @param transferDataStatus TunnelingTransferDataStatus - */ -#define emberAfFillCommandTunnelingClusterTransferDataErrorServerToClient(transferDataStatus) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_TRANSFER_DATA_ERROR_SERVER_TO_CLIENT_COMMAND_ID, "u", transferDataStatus); - -/** @brief Command description for TransferDataErrorClientToServer - * - * Command: TransferDataErrorClientToServer - * @param tunnelId INT16U - */ -#define emberAfFillCommandTunnelingClusterTransferDataErrorClientToServer(tunnelId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_TRANSFER_DATA_ERROR_CLIENT_TO_SERVER_COMMAND_ID, "u", tunnelId); - -/** @brief Command description for AckTransferDataServerToClient - * - * Command: AckTransferDataServerToClient - * @param tunnelId INT16U - */ -#define emberAfFillCommandTunnelingClusterAckTransferDataServerToClient(tunnelId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_ACK_TRANSFER_DATA_SERVER_TO_CLIENT_COMMAND_ID, "u", tunnelId); - -/** @brief Command description for TransferDataErrorClientToServer - * - * Command: TransferDataErrorClientToServer - * @param transferDataStatus TunnelingTransferDataStatus - */ -#define emberAfFillCommandTunnelingClusterTransferDataErrorClientToServer(transferDataStatus) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_TRANSFER_DATA_ERROR_CLIENT_TO_SERVER_COMMAND_ID, "u", transferDataStatus); - -/** @brief Command description for AckTransferDataServerToClient - * - * Command: AckTransferDataServerToClient - * @param numberOfBytesLeft INT16U - */ -#define emberAfFillCommandTunnelingClusterAckTransferDataServerToClient(numberOfBytesLeft) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_ACK_TRANSFER_DATA_SERVER_TO_CLIENT_COMMAND_ID, "u", numberOfBytesLeft); - -/** @brief Command description for AckTransferDataClientToServer - * - * Command: AckTransferDataClientToServer - * @param tunnelId INT16U - */ -#define emberAfFillCommandTunnelingClusterAckTransferDataClientToServer(tunnelId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_ACK_TRANSFER_DATA_CLIENT_TO_SERVER_COMMAND_ID, "u", tunnelId); - -/** @brief Command description for ReadyDataServerToClient - * - * Command: ReadyDataServerToClient - * @param tunnelId INT16U - */ -#define emberAfFillCommandTunnelingClusterReadyDataServerToClient(tunnelId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_READY_DATA_SERVER_TO_CLIENT_COMMAND_ID, "u", tunnelId); - -/** @brief Command description for AckTransferDataClientToServer - * - * Command: AckTransferDataClientToServer - * @param numberOfBytesLeft INT16U - */ -#define emberAfFillCommandTunnelingClusterAckTransferDataClientToServer(numberOfBytesLeft) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_ACK_TRANSFER_DATA_CLIENT_TO_SERVER_COMMAND_ID, "u", numberOfBytesLeft); - -/** @brief Command description for ReadyDataServerToClient - * - * Command: ReadyDataServerToClient - * @param numberOfOctetsLeft INT16U - */ -#define emberAfFillCommandTunnelingClusterReadyDataServerToClient(numberOfOctetsLeft) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_READY_DATA_SERVER_TO_CLIENT_COMMAND_ID, "u", numberOfOctetsLeft); - -/** @brief Command description for ReadyDataClientToServer - * - * Command: ReadyDataClientToServer - * @param tunnelId INT16U - */ -#define emberAfFillCommandTunnelingClusterReadyDataClientToServer(tunnelId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_READY_DATA_CLIENT_TO_SERVER_COMMAND_ID, "u", tunnelId); - -/** @brief Command description for SupportedTunnelProtocolsResponse - * - * Command: SupportedTunnelProtocolsResponse - * @param protocolListComplete BOOLEAN - */ -#define emberAfFillCommandTunnelingClusterSupportedTunnelProtocolsResponse(protocolListComplete) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_SUPPORTED_TUNNEL_PROTOCOLS_RESPONSE_COMMAND_ID, "u", protocolListComplete); - -/** @brief Command description for ReadyDataClientToServer - * - * Command: ReadyDataClientToServer - * @param numberOfOctetsLeft INT16U - */ -#define emberAfFillCommandTunnelingClusterReadyDataClientToServer(numberOfOctetsLeft) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_READY_DATA_CLIENT_TO_SERVER_COMMAND_ID, "u", numberOfOctetsLeft); - -/** @brief Command description for SupportedTunnelProtocolsResponse - * - * Command: SupportedTunnelProtocolsResponse - * @param protocolCount INT8U - * @param protocolList Protocol [] - * @param protocolListLen int - */ -#define emberAfFillCommandTunnelingClusterSupportedTunnelProtocolsResponse(protocolCount, protocolList, protocolListLen) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_SUPPORTED_TUNNEL_PROTOCOLS_RESPONSE_COMMAND_ID, "ub", protocolCount, protocolList, \ - protocolListLen); - -/** @brief Command description for GetSupportedTunnelProtocols - * - * Command: GetSupportedTunnelProtocols - * @param protocolOffset INT8U - */ -#define emberAfFillCommandTunnelingClusterGetSupportedTunnelProtocols(protocolOffset) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_SUPPORTED_TUNNEL_PROTOCOLS_COMMAND_ID, "u", protocolOffset); - -/** @brief Command description for TunnelClosureNotification - * - * Command: TunnelClosureNotification - * @param tunnelId INT16U - */ -#define emberAfFillCommandTunnelingClusterTunnelClosureNotification(tunnelId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_TUNNEL_CLOSURE_NOTIFICATION_COMMAND_ID, "u", tunnelId); - -/** @brief Command description for SelectAvailableEmergencyCredit - * - * Command: SelectAvailableEmergencyCredit - * @param commandIssueDateTime UTC_TIME - * @param originatingDevice OriginatingDevice - */ -#define emberAfFillCommandPrepaymentClusterSelectAvailableEmergencyCredit(commandIssueDateTime, originatingDevice) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_SELECT_AVAILABLE_EMERGENCY_CREDIT_COMMAND_ID, "uu", commandIssueDateTime, originatingDevice); - -/** @brief Command description for PublishPrepaySnapshot - * - * Command: PublishPrepaySnapshot - * @param snapshotId INT32U - * @param snapshotTime UTC_TIME - * @param totalSnapshotsFound INT8U - * @param commandIndex INT8U - * @param totalNumberOfCommands INT8U - * @param snapshotCause PrepaySnapshotPayloadCause - * @param snapshotPayloadType PrepaySnapshotPayloadType - * @param snapshotPayload INT8U [] - * @param snapshotPayloadLen int - */ -#define emberAfFillCommandPrepaymentClusterPublishPrepaySnapshot(snapshotId, snapshotTime, totalSnapshotsFound, commandIndex, \ - totalNumberOfCommands, snapshotCause, snapshotPayloadType, \ - snapshotPayload, snapshotPayloadLen) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_PREPAY_SNAPSHOT_COMMAND_ID, "uuuuuuub", snapshotId, snapshotTime, totalSnapshotsFound, \ - commandIndex, totalNumberOfCommands, snapshotCause, snapshotPayloadType, snapshotPayload, \ - snapshotPayloadLen); - -/** @brief Command description for ChangeDebt - * - * Command: ChangeDebt - * @param issuerEventId INT32U - */ -#define emberAfFillCommandPrepaymentClusterChangeDebt(issuerEventId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_CHANGE_DEBT_COMMAND_ID, "u", issuerEventId); - -/** @brief Command description for ChangePaymentModeResponse - * - * Command: ChangePaymentModeResponse - * @param friendlyCredit FriendlyCredit - */ -#define emberAfFillCommandPrepaymentClusterChangePaymentModeResponse(friendlyCredit) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_CHANGE_PAYMENT_MODE_RESPONSE_COMMAND_ID, "u", friendlyCredit); - -/** @brief Command description for ChangeDebt - * - * Command: ChangeDebt - * @param debtLabel OCTET_STRING - */ -#define emberAfFillCommandPrepaymentClusterChangeDebt(debtLabel) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_CHANGE_DEBT_COMMAND_ID, "u", debtLabel); - -/** @brief Command description for ChangePaymentModeResponse - * - * Command: ChangePaymentModeResponse - * @param friendlyCreditCalendarId INT32U - */ -#define emberAfFillCommandPrepaymentClusterChangePaymentModeResponse(friendlyCreditCalendarId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_CHANGE_PAYMENT_MODE_RESPONSE_COMMAND_ID, "u", friendlyCreditCalendarId); - -/** @brief Command description for ChangeDebt - * - * Command: ChangeDebt - * @param debtAmount INT32U - */ -#define emberAfFillCommandPrepaymentClusterChangeDebt(debtAmount) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_CHANGE_DEBT_COMMAND_ID, "u", debtAmount); - -/** @brief Command description for ChangePaymentModeResponse - * - * Command: ChangePaymentModeResponse - * @param emergencyCreditLimit INT32U - */ -#define emberAfFillCommandPrepaymentClusterChangePaymentModeResponse(emergencyCreditLimit) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_CHANGE_PAYMENT_MODE_RESPONSE_COMMAND_ID, "u", emergencyCreditLimit); - -/** @brief Command description for ChangeDebt - * - * Command: ChangeDebt - * @param debtRecoveryMethod DebtRecoveryMethod - */ -#define emberAfFillCommandPrepaymentClusterChangeDebt(debtRecoveryMethod) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_CHANGE_DEBT_COMMAND_ID, "u", debtRecoveryMethod); - -/** @brief Command description for ChangePaymentModeResponse - * - * Command: ChangePaymentModeResponse - * @param emergencyCreditThreshold INT32U - */ -#define emberAfFillCommandPrepaymentClusterChangePaymentModeResponse(emergencyCreditThreshold) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_CHANGE_PAYMENT_MODE_RESPONSE_COMMAND_ID, "u", emergencyCreditThreshold); - -/** @brief Command description for ChangeDebt - * - * Command: ChangeDebt - * @param debtAmountType DebtAmountType - * @param debtRecoveryStartTime UTC_TIME - * @param debtRecoveryCollectionTime INT16U - * @param debtRecoveryFrequency DebtRecoveryFrequency - * @param debtRecoveryAmount INT32U - * @param debtRecoveryBalancePercentage INT16U - */ -#define emberAfFillCommandPrepaymentClusterChangeDebt(debtAmountType, debtRecoveryStartTime, debtRecoveryCollectionTime, \ - debtRecoveryFrequency, debtRecoveryAmount, debtRecoveryBalancePercentage) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_CHANGE_DEBT_COMMAND_ID, "uuuuuu", debtAmountType, debtRecoveryStartTime, \ - debtRecoveryCollectionTime, debtRecoveryFrequency, debtRecoveryAmount, \ - debtRecoveryBalancePercentage); - -/** @brief Command description for EmergencyCreditSetup - * - * Command: EmergencyCreditSetup - * @param issuerEventId INT32U - */ -#define emberAfFillCommandPrepaymentClusterEmergencyCreditSetup(issuerEventId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_EMERGENCY_CREDIT_SETUP_COMMAND_ID, "u", issuerEventId); - -/** @brief Command description for ConsumerTopUpResponse - * - * Command: ConsumerTopUpResponse - * @param resultType ResultType - */ -#define emberAfFillCommandPrepaymentClusterConsumerTopUpResponse(resultType) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_CONSUMER_TOP_UP_RESPONSE_COMMAND_ID, "u", resultType); - -/** @brief Command description for EmergencyCreditSetup - * - * Command: EmergencyCreditSetup - * @param startTime UTC_TIME - */ -#define emberAfFillCommandPrepaymentClusterEmergencyCreditSetup(startTime) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_EMERGENCY_CREDIT_SETUP_COMMAND_ID, "u", startTime); - -/** @brief Command description for ConsumerTopUpResponse - * - * Command: ConsumerTopUpResponse - * @param topUpValue INT32U - */ -#define emberAfFillCommandPrepaymentClusterConsumerTopUpResponse(topUpValue) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_CONSUMER_TOP_UP_RESPONSE_COMMAND_ID, "u", topUpValue); - -/** @brief Command description for EmergencyCreditSetup - * - * Command: EmergencyCreditSetup - * @param emergencyCreditLimit INT32U - */ -#define emberAfFillCommandPrepaymentClusterEmergencyCreditSetup(emergencyCreditLimit) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_EMERGENCY_CREDIT_SETUP_COMMAND_ID, "u", emergencyCreditLimit); - -/** @brief Command description for ConsumerTopUpResponse - * - * Command: ConsumerTopUpResponse - * @param sourceOfTopUp OriginatingDevice - */ -#define emberAfFillCommandPrepaymentClusterConsumerTopUpResponse(sourceOfTopUp) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_CONSUMER_TOP_UP_RESPONSE_COMMAND_ID, "u", sourceOfTopUp); - -/** @brief Command description for EmergencyCreditSetup - * - * Command: EmergencyCreditSetup - * @param emergencyCreditThreshold INT32U - */ -#define emberAfFillCommandPrepaymentClusterEmergencyCreditSetup(emergencyCreditThreshold) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_EMERGENCY_CREDIT_SETUP_COMMAND_ID, "u", emergencyCreditThreshold); - -/** @brief Command description for ConsumerTopUpResponse - * - * Command: ConsumerTopUpResponse - * @param creditRemaining INT32U - */ -#define emberAfFillCommandPrepaymentClusterConsumerTopUpResponse(creditRemaining) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_CONSUMER_TOP_UP_RESPONSE_COMMAND_ID, "u", creditRemaining); - -/** @brief Command description for ConsumerTopUp - * - * Command: ConsumerTopUp - * @param originatingDevice OriginatingDevice - * @param topUpCode OCTET_STRING - */ -#define emberAfFillCommandPrepaymentClusterConsumerTopUp(originatingDevice, topUpCode) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_CONSUMER_TOP_UP_COMMAND_ID, "uu", originatingDevice, topUpCode); - -/** @brief Command description for CreditAdjustment - * - * Command: CreditAdjustment - * @param issuerEventId INT32U - */ -#define emberAfFillCommandPrepaymentClusterCreditAdjustment(issuerEventId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_CREDIT_ADJUSTMENT_COMMAND_ID, "u", issuerEventId); - -/** @brief Command description for PublishTopUpLog - * - * Command: PublishTopUpLog - * @param commandIndex INT8U - */ -#define emberAfFillCommandPrepaymentClusterPublishTopUpLog(commandIndex) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_TOP_UP_LOG_COMMAND_ID, "u", commandIndex); - -/** @brief Command description for CreditAdjustment - * - * Command: CreditAdjustment - * @param startTime UTC_TIME - */ -#define emberAfFillCommandPrepaymentClusterCreditAdjustment(startTime) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_CREDIT_ADJUSTMENT_COMMAND_ID, "u", startTime); - -/** @brief Command description for PublishTopUpLog - * - * Command: PublishTopUpLog - * @param totalNumberOfCommands INT8U - */ -#define emberAfFillCommandPrepaymentClusterPublishTopUpLog(totalNumberOfCommands) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_TOP_UP_LOG_COMMAND_ID, "u", totalNumberOfCommands); - -/** @brief Command description for CreditAdjustment - * - * Command: CreditAdjustment - * @param creditAdjustmentType CreditAdjustmentType - */ -#define emberAfFillCommandPrepaymentClusterCreditAdjustment(creditAdjustmentType) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_CREDIT_ADJUSTMENT_COMMAND_ID, "u", creditAdjustmentType); - -/** @brief Command description for PublishTopUpLog - * - * Command: PublishTopUpLog - * @param topUpPayload TopUpPayload [] - * @param topUpPayloadLen int - */ -#define emberAfFillCommandPrepaymentClusterPublishTopUpLog(topUpPayload, topUpPayloadLen) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_TOP_UP_LOG_COMMAND_ID, "b", topUpPayload, topUpPayloadLen); - -/** @brief Command description for CreditAdjustment - * - * Command: CreditAdjustment - * @param creditAdjustmentValue INT32U - */ -#define emberAfFillCommandPrepaymentClusterCreditAdjustment(creditAdjustmentValue) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_CREDIT_ADJUSTMENT_COMMAND_ID, "u", creditAdjustmentValue); - -/** @brief Command description for ChangePaymentMode - * - * Command: ChangePaymentMode - * @param providerId INT32U - */ -#define emberAfFillCommandPrepaymentClusterChangePaymentMode(providerId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_CHANGE_PAYMENT_MODE_COMMAND_ID, "u", providerId); - -/** @brief Command description for PublishDebtLog - * - * Command: PublishDebtLog - * @param commandIndex INT8U - */ -#define emberAfFillCommandPrepaymentClusterPublishDebtLog(commandIndex) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_DEBT_LOG_COMMAND_ID, "u", commandIndex); - -/** @brief Command description for ChangePaymentMode - * - * Command: ChangePaymentMode - * @param issuerEventId INT32U - */ -#define emberAfFillCommandPrepaymentClusterChangePaymentMode(issuerEventId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_CHANGE_PAYMENT_MODE_COMMAND_ID, "u", issuerEventId); - -/** @brief Command description for PublishDebtLog - * - * Command: PublishDebtLog - * @param totalNumberOfCommands INT8U - */ -#define emberAfFillCommandPrepaymentClusterPublishDebtLog(totalNumberOfCommands) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_DEBT_LOG_COMMAND_ID, "u", totalNumberOfCommands); - -/** @brief Command description for ChangePaymentMode - * - * Command: ChangePaymentMode - * @param implementationDateTime UTC_TIME - */ -#define emberAfFillCommandPrepaymentClusterChangePaymentMode(implementationDateTime) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_CHANGE_PAYMENT_MODE_COMMAND_ID, "u", implementationDateTime); - -/** @brief Command description for PublishDebtLog - * - * Command: PublishDebtLog - * @param debtPayload DebtPayload [] - * @param debtPayloadLen int - */ -#define emberAfFillCommandPrepaymentClusterPublishDebtLog(debtPayload, debtPayloadLen) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_DEBT_LOG_COMMAND_ID, "b", debtPayload, debtPayloadLen); - -/** @brief Command description for ChangePaymentMode - * - * Command: ChangePaymentMode - * @param proposedPaymentControlConfiguration PaymentControlConfiguration - * @param cutOffValue INT32U - */ -#define emberAfFillCommandPrepaymentClusterChangePaymentMode(proposedPaymentControlConfiguration, cutOffValue) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_CHANGE_PAYMENT_MODE_COMMAND_ID, "uu", proposedPaymentControlConfiguration, cutOffValue); - -/** @brief Command description for GetPrepaySnapshot - * - * Command: GetPrepaySnapshot - * @param earliestStartTime UTC_TIME - * @param latestEndTime UTC_TIME - * @param snapshotOffset INT8U - * @param snapshotCause PrepaySnapshotPayloadCause - */ -#define emberAfFillCommandPrepaymentClusterGetPrepaySnapshot(earliestStartTime, latestEndTime, snapshotOffset, snapshotCause) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_PREPAY_SNAPSHOT_COMMAND_ID, "uuuu", earliestStartTime, latestEndTime, snapshotOffset, \ - snapshotCause); - -/** @brief Command description for GetTopUpLog - * - * Command: GetTopUpLog - * @param latestEndTime UTC_TIME - * @param numberOfRecords INT8U - */ -#define emberAfFillCommandPrepaymentClusterGetTopUpLog(latestEndTime, numberOfRecords) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_TOP_UP_LOG_COMMAND_ID, "uu", latestEndTime, numberOfRecords); - -/** @brief Command description for SetLowCreditWarningLevel - * - * Command: SetLowCreditWarningLevel - * @param lowCreditWarningLevel INT32U - */ -#define emberAfFillCommandPrepaymentClusterSetLowCreditWarningLevel(lowCreditWarningLevel) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_SET_LOW_CREDIT_WARNING_LEVEL_COMMAND_ID, "u", lowCreditWarningLevel); - -/** @brief Command description for GetDebtRepaymentLog - * - * Command: GetDebtRepaymentLog - * @param latestEndTime UTC_TIME - * @param numberOfDebts INT8U - * @param debtType RepaymentDebtType - */ -#define emberAfFillCommandPrepaymentClusterGetDebtRepaymentLog(latestEndTime, numberOfDebts, debtType) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_DEBT_REPAYMENT_LOG_COMMAND_ID, "uuu", latestEndTime, numberOfDebts, debtType); - -/** @brief Command description for SetMaximumCreditLimit - * - * Command: SetMaximumCreditLimit - * @param providerId INT32U - * @param issuerEventId INT32U - * @param implementationDateTime UTC_TIME - * @param maximumCreditLevel INT32U - * @param maximumCreditPerTopUp INT32U - */ -#define emberAfFillCommandPrepaymentClusterSetMaximumCreditLimit(providerId, issuerEventId, implementationDateTime, \ - maximumCreditLevel, maximumCreditPerTopUp) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_SET_MAXIMUM_CREDIT_LIMIT_COMMAND_ID, "uuuuu", providerId, issuerEventId, implementationDateTime, \ - maximumCreditLevel, maximumCreditPerTopUp); - -/** @brief Command description for SetOverallDebtCap - * - * Command: SetOverallDebtCap - * @param providerId INT32U - * @param issuerEventId INT32U - * @param implementationDateTime UTC_TIME - * @param overallDebtCap INT32U - */ -#define emberAfFillCommandPrepaymentClusterSetOverallDebtCap(providerId, issuerEventId, implementationDateTime, overallDebtCap) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_SET_OVERALL_DEBT_CAP_COMMAND_ID, "uuuu", providerId, issuerEventId, implementationDateTime, \ - overallDebtCap); - -/** @brief Command description for ReportEventStatus - * - * Command: ReportEventStatus - * @param issuerEventId INT32U - */ -#define emberAfFillCommandEnergy \ - ManagementClusterReportEventStatus(issuerEventId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_REPORT_EVENT_STATUS_COMMAND_ID, "u", issuerEventId); - -/** @brief Command description for ManageEvent - * - * Command: ManageEvent - * @param issuerEventId INT32U - */ -#define emberAfFillCommandEnergy \ - ManagementClusterManageEvent(issuerEventId) emberAfFillExternalBuffer(mask, \ - \ - ZCL_MANAGE_EVENT_COMMAND_ID, "u", issuerEventId); - -/** @brief Command description for ReportEventStatus - * - * Command: ReportEventStatus - * @param eventStatus AmiEventStatus - */ -#define emberAfFillCommandEnergy \ - ManagementClusterReportEventStatus(eventStatus) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_REPORT_EVENT_STATUS_COMMAND_ID, "u", eventStatus); - -/** @brief Command description for ManageEvent - * - * Command: ManageEvent - * @param deviceClass AmiDeviceClass - */ -#define emberAfFillCommandEnergy \ - ManagementClusterManageEvent(deviceClass) emberAfFillExternalBuffer(mask, \ - \ - ZCL_MANAGE_EVENT_COMMAND_ID, "u", deviceClass); - -/** @brief Command description for ReportEventStatus - * - * Command: ReportEventStatus - * @param eventStatusTime UTC_TIME - */ -#define emberAfFillCommandEnergy \ - ManagementClusterReportEventStatus(eventStatusTime) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_REPORT_EVENT_STATUS_COMMAND_ID, "u", eventStatusTime); - -/** @brief Command description for ManageEvent - * - * Command: ManageEvent - * @param utilityEnrollmentGroup INT8U - */ -#define emberAfFillCommandEnergy \ - ManagementClusterManageEvent(utilityEnrollmentGroup) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_MANAGE_EVENT_COMMAND_ID, "u", utilityEnrollmentGroup); - -/** @brief Command description for ReportEventStatus - * - * Command: ReportEventStatus - * @param criticalityLevelApplied AmiCriticalityLevel - */ -#define emberAfFillCommandEnergy \ - ManagementClusterReportEventStatus(criticalityLevelApplied) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_REPORT_EVENT_STATUS_COMMAND_ID, "u", criticalityLevelApplied); - -/** @brief Command description for ManageEvent - * - * Command: ManageEvent - * @param actionRequired INT8U - */ -#define emberAfFillCommandEnergy \ - ManagementClusterManageEvent(actionRequired) emberAfFillExternalBuffer(mask, \ - \ - ZCL_MANAGE_EVENT_COMMAND_ID, "u", actionRequired); - -/** @brief Command description for ReportEventStatus - * - * Command: ReportEventStatus - * @param coolingTemperatureSetPointApplied INT16U - * @param heatingTemperatureSetPointApplied INT16U - * @param averageLoadAdjustmentPercentageApplied INT8S - * @param dutyCycleApplied INT8U - * @param eventControl AmiEventControl - */ -#define emberAfFillCommandEnergy \ - ManagementClusterReportEventStatus(coolingTemperatureSetPointApplied, heatingTemperatureSetPointApplied, \ - averageLoadAdjustmentPercentageApplied, dutyCycleApplied, eventControl) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_REPORT_EVENT_STATUS_COMMAND_ID, "uuuuu", coolingTemperatureSetPointApplied, \ - heatingTemperatureSetPointApplied, averageLoadAdjustmentPercentageApplied, dutyCycleApplied, \ - eventControl); - -/** @brief Command description for PublishCalendar - * - * Command: PublishCalendar - * @param providerId INT32U - */ -#define emberAfFillCommandCalendarClusterPublishCalendar(providerId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_CALENDAR_COMMAND_ID, "u", providerId); - -/** @brief Command description for GetCalendar - * - * Command: GetCalendar - * @param earliestStartTime UTC_TIME - */ -#define emberAfFillCommandCalendarClusterGetCalendar(earliestStartTime) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_CALENDAR_COMMAND_ID, "u", earliestStartTime); - -/** @brief Command description for PublishCalendar - * - * Command: PublishCalendar - * @param issuerEventId INT32U - */ -#define emberAfFillCommandCalendarClusterPublishCalendar(issuerEventId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_CALENDAR_COMMAND_ID, "u", issuerEventId); - -/** @brief Command description for GetCalendar - * - * Command: GetCalendar - * @param minIssuerEventId INT32U - */ -#define emberAfFillCommandCalendarClusterGetCalendar(minIssuerEventId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_CALENDAR_COMMAND_ID, "u", minIssuerEventId); - -/** @brief Command description for PublishCalendar - * - * Command: PublishCalendar - * @param issuerCalendarId INT32U - */ -#define emberAfFillCommandCalendarClusterPublishCalendar(issuerCalendarId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_CALENDAR_COMMAND_ID, "u", issuerCalendarId); - -/** @brief Command description for GetCalendar - * - * Command: GetCalendar - * @param numberOfCalendars INT8U - */ -#define emberAfFillCommandCalendarClusterGetCalendar(numberOfCalendars) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_CALENDAR_COMMAND_ID, "u", numberOfCalendars); - -/** @brief Command description for PublishCalendar - * - * Command: PublishCalendar - * @param startTime UTC_TIME - */ -#define emberAfFillCommandCalendarClusterPublishCalendar(startTime) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_CALENDAR_COMMAND_ID, "u", startTime); - -/** @brief Command description for GetCalendar - * - * Command: GetCalendar - * @param calendarType CalendarType - */ -#define emberAfFillCommandCalendarClusterGetCalendar(calendarType) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_CALENDAR_COMMAND_ID, "u", calendarType); - -/** @brief Command description for PublishCalendar - * - * Command: PublishCalendar - * @param calendarType CalendarType - */ -#define emberAfFillCommandCalendarClusterPublishCalendar(calendarType) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_CALENDAR_COMMAND_ID, "u", calendarType); - -/** @brief Command description for GetCalendar - * - * Command: GetCalendar - * @param providerId INT32U - */ -#define emberAfFillCommandCalendarClusterGetCalendar(providerId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_CALENDAR_COMMAND_ID, "u", providerId); - -/** @brief Command description for PublishCalendar - * - * Command: PublishCalendar - * @param calendarTimeReference CalendarTimeReference - * @param calendarName OCTET_STRING - * @param numberOfSeasons INT8U - * @param numberOfWeekProfiles INT8U - * @param numberOfDayProfiles INT8U - */ -#define emberAfFillCommandCalendarClusterPublishCalendar(calendarTimeReference, calendarName, numberOfSeasons, \ - numberOfWeekProfiles, numberOfDayProfiles) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_CALENDAR_COMMAND_ID, "uuuuu", calendarTimeReference, calendarName, numberOfSeasons, \ - numberOfWeekProfiles, numberOfDayProfiles); - -/** @brief Command description for PublishDayProfile - * - * Command: PublishDayProfile - * @param providerId INT32U - */ -#define emberAfFillCommandCalendarClusterPublishDayProfile(providerId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_DAY_PROFILE_COMMAND_ID, "u", providerId); - -/** @brief Command description for GetDayProfiles - * - * Command: GetDayProfiles - * @param providerId INT32U - */ -#define emberAfFillCommandCalendarClusterGetDayProfiles(providerId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_DAY_PROFILES_COMMAND_ID, "u", providerId); - -/** @brief Command description for PublishDayProfile - * - * Command: PublishDayProfile - * @param issuerEventId INT32U - */ -#define emberAfFillCommandCalendarClusterPublishDayProfile(issuerEventId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_DAY_PROFILE_COMMAND_ID, "u", issuerEventId); - -/** @brief Command description for GetDayProfiles - * - * Command: GetDayProfiles - * @param issuerCalendarId INT32U - */ -#define emberAfFillCommandCalendarClusterGetDayProfiles(issuerCalendarId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_DAY_PROFILES_COMMAND_ID, "u", issuerCalendarId); - -/** @brief Command description for PublishDayProfile - * - * Command: PublishDayProfile - * @param issuerCalendarId INT32U - */ -#define emberAfFillCommandCalendarClusterPublishDayProfile(issuerCalendarId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_DAY_PROFILE_COMMAND_ID, "u", issuerCalendarId); - -/** @brief Command description for GetDayProfiles - * - * Command: GetDayProfiles - * @param startDayId INT8U - */ -#define emberAfFillCommandCalendarClusterGetDayProfiles(startDayId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_DAY_PROFILES_COMMAND_ID, "u", startDayId); - -/** @brief Command description for PublishDayProfile - * - * Command: PublishDayProfile - * @param dayId INT8U - */ -#define emberAfFillCommandCalendarClusterPublishDayProfile(dayId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_DAY_PROFILE_COMMAND_ID, "u", dayId); - -/** @brief Command description for GetDayProfiles - * - * Command: GetDayProfiles - * @param numberOfDays INT8U - */ -#define emberAfFillCommandCalendarClusterGetDayProfiles(numberOfDays) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_DAY_PROFILES_COMMAND_ID, "u", numberOfDays); - -/** @brief Command description for PublishDayProfile - * - * Command: PublishDayProfile - * @param totalNumberOfScheduleEntries INT8U - * @param commandIndex INT8U - * @param totalNumberOfCommands INT8U - * @param calendarType CalendarType - * @param dayScheduleEntries ScheduleEntry [] - * @param dayScheduleEntriesLen int - */ -#define emberAfFillCommandCalendarClusterPublishDayProfile(totalNumberOfScheduleEntries, commandIndex, totalNumberOfCommands, \ - calendarType, dayScheduleEntries, dayScheduleEntriesLen) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_DAY_PROFILE_COMMAND_ID, "uuuub", totalNumberOfScheduleEntries, commandIndex, \ - totalNumberOfCommands, calendarType, dayScheduleEntries, dayScheduleEntriesLen); - -/** @brief Command description for PublishWeekProfile - * - * Command: PublishWeekProfile - * @param providerId INT32U - */ -#define emberAfFillCommandCalendarClusterPublishWeekProfile(providerId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_WEEK_PROFILE_COMMAND_ID, "u", providerId); - -/** @brief Command description for GetWeekProfiles - * - * Command: GetWeekProfiles - * @param providerId INT32U - */ -#define emberAfFillCommandCalendarClusterGetWeekProfiles(providerId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_WEEK_PROFILES_COMMAND_ID, "u", providerId); - -/** @brief Command description for PublishWeekProfile - * - * Command: PublishWeekProfile - * @param issuerEventId INT32U - */ -#define emberAfFillCommandCalendarClusterPublishWeekProfile(issuerEventId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_WEEK_PROFILE_COMMAND_ID, "u", issuerEventId); - -/** @brief Command description for GetWeekProfiles - * - * Command: GetWeekProfiles - * @param issuerCalendarId INT32U - */ -#define emberAfFillCommandCalendarClusterGetWeekProfiles(issuerCalendarId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_WEEK_PROFILES_COMMAND_ID, "u", issuerCalendarId); - -/** @brief Command description for PublishWeekProfile - * - * Command: PublishWeekProfile - * @param issuerCalendarId INT32U - */ -#define emberAfFillCommandCalendarClusterPublishWeekProfile(issuerCalendarId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_WEEK_PROFILE_COMMAND_ID, "u", issuerCalendarId); - -/** @brief Command description for GetWeekProfiles - * - * Command: GetWeekProfiles - * @param startWeekId INT8U - */ -#define emberAfFillCommandCalendarClusterGetWeekProfiles(startWeekId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_WEEK_PROFILES_COMMAND_ID, "u", startWeekId); - -/** @brief Command description for PublishWeekProfile - * - * Command: PublishWeekProfile - * @param weekId INT8U - */ -#define emberAfFillCommandCalendarClusterPublishWeekProfile(weekId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_WEEK_PROFILE_COMMAND_ID, "u", weekId); - -/** @brief Command description for GetWeekProfiles - * - * Command: GetWeekProfiles - * @param numberOfWeeks INT8U - */ -#define emberAfFillCommandCalendarClusterGetWeekProfiles(numberOfWeeks) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_WEEK_PROFILES_COMMAND_ID, "u", numberOfWeeks); - -/** @brief Command description for PublishWeekProfile - * - * Command: PublishWeekProfile - * @param dayIdRefMonday INT8U - * @param dayIdRefTuesday INT8U - * @param dayIdRefWednesday INT8U - * @param dayIdRefThursday INT8U - * @param dayIdRefFriday INT8U - * @param dayIdRefSaturday INT8U - * @param dayIdRefSunday INT8U - */ -#define emberAfFillCommandCalendarClusterPublishWeekProfile(dayIdRefMonday, dayIdRefTuesday, dayIdRefWednesday, dayIdRefThursday, \ - dayIdRefFriday, dayIdRefSaturday, dayIdRefSunday) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_WEEK_PROFILE_COMMAND_ID, "uuuuuuu", dayIdRefMonday, dayIdRefTuesday, dayIdRefWednesday, \ - dayIdRefThursday, dayIdRefFriday, dayIdRefSaturday, dayIdRefSunday); - -/** @brief Command description for PublishSeasons - * - * Command: PublishSeasons - * @param providerId INT32U - */ -#define emberAfFillCommandCalendarClusterPublishSeasons(providerId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_SEASONS_COMMAND_ID, "u", providerId); - -/** @brief Command description for GetSeasons - * - * Command: GetSeasons - * @param providerId INT32U - */ -#define emberAfFillCommandCalendarClusterGetSeasons(providerId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_SEASONS_COMMAND_ID, "u", providerId); - -/** @brief Command description for PublishSeasons - * - * Command: PublishSeasons - * @param issuerEventId INT32U - */ -#define emberAfFillCommandCalendarClusterPublishSeasons(issuerEventId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_SEASONS_COMMAND_ID, "u", issuerEventId); - -/** @brief Command description for GetSeasons - * - * Command: GetSeasons - * @param issuerCalendarId INT32U - */ -#define emberAfFillCommandCalendarClusterGetSeasons(issuerCalendarId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_SEASONS_COMMAND_ID, "u", issuerCalendarId); - -/** @brief Command description for PublishSeasons - * - * Command: PublishSeasons - * @param issuerCalendarId INT32U - * @param commandIndex INT8U - * @param totalNumberOfCommands INT8U - * @param seasonEntries SeasonEntry [] - * @param seasonEntriesLen int - */ -#define emberAfFillCommandCalendarClusterPublishSeasons(issuerCalendarId, commandIndex, totalNumberOfCommands, seasonEntries, \ - seasonEntriesLen) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_SEASONS_COMMAND_ID, "uuub", issuerCalendarId, commandIndex, totalNumberOfCommands, \ - seasonEntries, seasonEntriesLen); - -/** @brief Command description for PublishSpecialDays - * - * Command: PublishSpecialDays - * @param providerId INT32U - */ -#define emberAfFillCommandCalendarClusterPublishSpecialDays(providerId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_SPECIAL_DAYS_COMMAND_ID, "u", providerId); - -/** @brief Command description for GetSpecialDays - * - * Command: GetSpecialDays - * @param startTime UTC_TIME - */ -#define emberAfFillCommandCalendarClusterGetSpecialDays(startTime) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_SPECIAL_DAYS_COMMAND_ID, "u", startTime); - -/** @brief Command description for PublishSpecialDays - * - * Command: PublishSpecialDays - * @param issuerEventId INT32U - */ -#define emberAfFillCommandCalendarClusterPublishSpecialDays(issuerEventId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_SPECIAL_DAYS_COMMAND_ID, "u", issuerEventId); - -/** @brief Command description for GetSpecialDays - * - * Command: GetSpecialDays - * @param numberOfEvents INT8U - */ -#define emberAfFillCommandCalendarClusterGetSpecialDays(numberOfEvents) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_SPECIAL_DAYS_COMMAND_ID, "u", numberOfEvents); - -/** @brief Command description for PublishSpecialDays - * - * Command: PublishSpecialDays - * @param issuerCalendarId INT32U - */ -#define emberAfFillCommandCalendarClusterPublishSpecialDays(issuerCalendarId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_SPECIAL_DAYS_COMMAND_ID, "u", issuerCalendarId); - -/** @brief Command description for GetSpecialDays - * - * Command: GetSpecialDays - * @param calendarType CalendarType - */ -#define emberAfFillCommandCalendarClusterGetSpecialDays(calendarType) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_SPECIAL_DAYS_COMMAND_ID, "u", calendarType); - -/** @brief Command description for PublishSpecialDays - * - * Command: PublishSpecialDays - * @param startTime UTC_TIME - */ -#define emberAfFillCommandCalendarClusterPublishSpecialDays(startTime) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_SPECIAL_DAYS_COMMAND_ID, "u", startTime); - -/** @brief Command description for GetSpecialDays - * - * Command: GetSpecialDays - * @param providerId INT32U - */ -#define emberAfFillCommandCalendarClusterGetSpecialDays(providerId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_SPECIAL_DAYS_COMMAND_ID, "u", providerId); - -/** @brief Command description for PublishSpecialDays - * - * Command: PublishSpecialDays - * @param calendarType CalendarType - */ -#define emberAfFillCommandCalendarClusterPublishSpecialDays(calendarType) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_SPECIAL_DAYS_COMMAND_ID, "u", calendarType); - -/** @brief Command description for GetSpecialDays - * - * Command: GetSpecialDays - * @param issuerCalendarId INT32U - */ -#define emberAfFillCommandCalendarClusterGetSpecialDays(issuerCalendarId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_SPECIAL_DAYS_COMMAND_ID, "u", issuerCalendarId); - -/** @brief Command description for PublishSpecialDays - * - * Command: PublishSpecialDays - * @param totalNumberOfSpecialDays INT8U - * @param commandIndex INT8U - * @param totalNumberOfCommands INT8U - * @param specialDayEntries SpecialDay [] - * @param specialDayEntriesLen int - */ -#define emberAfFillCommandCalendarClusterPublishSpecialDays(totalNumberOfSpecialDays, commandIndex, totalNumberOfCommands, \ - specialDayEntries, specialDayEntriesLen) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_SPECIAL_DAYS_COMMAND_ID, "uuub", totalNumberOfSpecialDays, commandIndex, \ - totalNumberOfCommands, specialDayEntries, specialDayEntriesLen); - -/** @brief Command description for GetCalendarCancellation - * - * Command: GetCalendarCancellation - */ -#define emberAfFillCommandCalendarClusterGetCalendarCancellation() \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_CALENDAR_CANCELLATION_COMMAND_ID, "", ); - -/** @brief Command description for CancelCalendar - * - * Command: CancelCalendar - * @param providerId INT32U - * @param issuerCalendarId INT32U - * @param calendarType CalendarType - */ -#define emberAfFillCommandCalendarClusterCancelCalendar(providerId, issuerCalendarId, calendarType) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_CANCEL_CALENDAR_COMMAND_ID, "uuu", providerId, issuerCalendarId, calendarType); - -/** @brief Command description for GetChangeOfTenancy - * - * Command: GetChangeOfTenancy - */ -#define emberAfFillCommandDevice \ - ManagementClusterGetChangeOfTenancy() emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_CHANGE_OF_TENANCY_COMMAND_ID, "", ); - -/** @brief Command description for PublishChangeOfTenancy - * - * Command: PublishChangeOfTenancy - * @param providerId INT32U - * @param issuerEventId INT32U - * @param tariffType TariffType - * @param implementationDateTime UTC_TIME - * @param proposedTenancyChangeControl ProposedChangeControl - */ -#define emberAfFillCommandDevice \ - ManagementClusterPublishChangeOfTenancy(providerId, issuerEventId, tariffType, implementationDateTime, \ - proposedTenancyChangeControl) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_CHANGE_OF_TENANCY_COMMAND_ID, "uuuuu", providerId, issuerEventId, tariffType, \ - implementationDateTime, proposedTenancyChangeControl); - -/** @brief Command description for GetChangeOfSupplier - * - * Command: GetChangeOfSupplier - */ -#define emberAfFillCommandDevice \ - ManagementClusterGetChangeOfSupplier() emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_CHANGE_OF_SUPPLIER_COMMAND_ID, "", ); - -/** @brief Command description for PublishChangeOfSupplier - * - * Command: PublishChangeOfSupplier - * @param currentProviderId INT32U - * @param issuerEventId INT32U - * @param tariffType TariffType - * @param proposedProviderId INT32U - * @param providerChangeImplementationTime UTC_TIME - * @param providerChangeControl ProposedChangeControl - * @param proposedProviderName OCTET_STRING - * @param proposedProviderContactDetails OCTET_STRING - */ -#define emberAfFillCommandDevice \ - ManagementClusterPublishChangeOfSupplier(currentProviderId, issuerEventId, tariffType, proposedProviderId, \ - providerChangeImplementationTime, providerChangeControl, proposedProviderName, \ - proposedProviderContactDetails) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_CHANGE_OF_SUPPLIER_COMMAND_ID, "uuuuuuuu", currentProviderId, issuerEventId, \ - tariffType, proposedProviderId, providerChangeImplementationTime, providerChangeControl, \ - proposedProviderName, proposedProviderContactDetails); - -/** @brief Command description for RequestNewPassword - * - * Command: RequestNewPassword - * @param passwordType PasswordType - */ -#define emberAfFillCommandDevice \ - ManagementClusterRequestNewPassword(passwordType) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_REQUEST_NEW_PASSWORD_COMMAND_ID, "u", passwordType); - -/** @brief Command description for RequestNewPasswordResponse - * - * Command: RequestNewPasswordResponse - * @param issuerEventId INT32U - * @param implementationDateTime UTC_TIME - * @param durationInMinutes INT16U - * @param passwordType PasswordType - * @param password OCTET_STRING - */ -#define emberAfFillCommandDevice \ - ManagementClusterRequestNewPasswordResponse(issuerEventId, implementationDateTime, durationInMinutes, passwordType, password) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_REQUEST_NEW_PASSWORD_RESPONSE_COMMAND_ID, "uuuuu", issuerEventId, implementationDateTime, \ - durationInMinutes, passwordType, password); - -/** @brief Command description for GetSiteId - * - * Command: GetSiteId - */ -#define emberAfFillCommandDevice \ - ManagementClusterGetSiteId() emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_SITE_ID_COMMAND_ID, "", ); - -/** @brief Command description for UpdateSiteId - * - * Command: UpdateSiteId - * @param issuerEventId INT32U - * @param siteIdTime UTC_TIME - * @param providerId INT32U - * @param siteId OCTET_STRING - */ -#define emberAfFillCommandDevice \ - ManagementClusterUpdateSiteId(issuerEventId, siteIdTime, providerId, siteId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_UPDATE_SITE_ID_COMMAND_ID, "uuuu", issuerEventId, siteIdTime, providerId, siteId); - -/** @brief Command description for ReportEventConfiguration - * - * Command: ReportEventConfiguration - * @param commandIndex INT8U - */ -#define emberAfFillCommandDevice \ - ManagementClusterReportEventConfiguration(commandIndex) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_REPORT_EVENT_CONFIGURATION_COMMAND_ID, "u", commandIndex); - -/** @brief Command description for SetEventConfiguration - * - * Command: SetEventConfiguration - * @param issuerEventId INT32U - */ -#define emberAfFillCommandDevice \ - ManagementClusterSetEventConfiguration(issuerEventId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_SET_EVENT_CONFIGURATION_COMMAND_ID, "u", issuerEventId); - -/** @brief Command description for ReportEventConfiguration - * - * Command: ReportEventConfiguration - * @param totalCommands INT8U - */ -#define emberAfFillCommandDevice \ - ManagementClusterReportEventConfiguration(totalCommands) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_REPORT_EVENT_CONFIGURATION_COMMAND_ID, "u", totalCommands); - -/** @brief Command description for SetEventConfiguration - * - * Command: SetEventConfiguration - * @param startDateTime UTC_TIME - */ -#define emberAfFillCommandDevice \ - ManagementClusterSetEventConfiguration(startDateTime) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_SET_EVENT_CONFIGURATION_COMMAND_ID, "u", startDateTime); - -/** @brief Command description for ReportEventConfiguration - * - * Command: ReportEventConfiguration - * @param eventConfigurationPayload EventConfigurationPayload [] - * @param eventConfigurationPayloadLen int - */ -#define emberAfFillCommandDevice \ - ManagementClusterReportEventConfiguration(eventConfigurationPayload, eventConfigurationPayloadLen) emberAfFillExternalBuffer( \ - mask, \ - \ - ZCL_REPORT_EVENT_CONFIGURATION_COMMAND_ID, "b", eventConfigurationPayload, eventConfigurationPayloadLen); - -/** @brief Command description for SetEventConfiguration - * - * Command: SetEventConfiguration - * @param eventConfiguration EventConfiguration - * @param configurationControl EventConfigurationControl - * @param eventConfigurationPayload INT8U [] - * @param eventConfigurationPayloadLen int - */ -#define emberAfFillCommandDevice \ - ManagementClusterSetEventConfiguration(eventConfiguration, configurationControl, eventConfigurationPayload, \ - eventConfigurationPayloadLen) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_SET_EVENT_CONFIGURATION_COMMAND_ID, "uub", eventConfiguration, configurationControl, \ - eventConfigurationPayload, eventConfigurationPayloadLen); - -/** @brief Command description for GetCIN - * - * Command: GetCIN - */ -#define emberAfFillCommandDevice \ - ManagementClusterGetCIN() emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_CIN_COMMAND_ID, "", ); - -/** @brief Command description for GetEventConfiguration - * - * Command: GetEventConfiguration - * @param eventId INT16U - */ -#define emberAfFillCommandDevice \ - ManagementClusterGetEventConfiguration(eventId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_EVENT_CONFIGURATION_COMMAND_ID, "u", eventId); - -/** @brief Command description for UpdateCIN - * - * Command: UpdateCIN - * @param issuerEventId INT32U - * @param implementationTime UTC_TIME - * @param providerId INT32U - * @param customerIdNumber OCTET_STRING - */ -#define emberAfFillCommandDevice \ - ManagementClusterUpdateCIN(issuerEventId, implementationTime, providerId, customerIdNumber) emberAfFillExternalBuffer( \ - mask, \ - \ - ZCL_UPDATE_CIN_COMMAND_ID, "uuuu", issuerEventId, implementationTime, providerId, customerIdNumber); - -/** @brief Command description for GetEventLog - * - * Command: GetEventLog - * @param eventControlLogId EventControlLogId - */ -#define emberAfFillCommandEventsClusterGetEventLog(eventControlLogId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_EVENT_LOG_COMMAND_ID, "u", eventControlLogId); - -/** @brief Command description for PublishEvent - * - * Command: PublishEvent - * @param logId EventLogId - */ -#define emberAfFillCommandEventsClusterPublishEvent(logId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_EVENT_COMMAND_ID, "u", logId); - -/** @brief Command description for GetEventLog - * - * Command: GetEventLog - * @param eventId INT16U - */ -#define emberAfFillCommandEventsClusterGetEventLog(eventId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_EVENT_LOG_COMMAND_ID, "u", eventId); - -/** @brief Command description for PublishEvent - * - * Command: PublishEvent - * @param eventId INT16U - */ -#define emberAfFillCommandEventsClusterPublishEvent(eventId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_EVENT_COMMAND_ID, "u", eventId); - -/** @brief Command description for GetEventLog - * - * Command: GetEventLog - * @param startTime UTC_TIME - */ -#define emberAfFillCommandEventsClusterGetEventLog(startTime) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_EVENT_LOG_COMMAND_ID, "u", startTime); - -/** @brief Command description for PublishEvent - * - * Command: PublishEvent - * @param eventTime UTC_TIME - */ -#define emberAfFillCommandEventsClusterPublishEvent(eventTime) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_EVENT_COMMAND_ID, "u", eventTime); - -/** @brief Command description for GetEventLog - * - * Command: GetEventLog - * @param endTime UTC_TIME - */ -#define emberAfFillCommandEventsClusterGetEventLog(endTime) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_EVENT_LOG_COMMAND_ID, "u", endTime); - -/** @brief Command description for PublishEvent - * - * Command: PublishEvent - * @param eventControl EventActionControl - */ -#define emberAfFillCommandEventsClusterPublishEvent(eventControl) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_EVENT_COMMAND_ID, "u", eventControl); - -/** @brief Command description for GetEventLog - * - * Command: GetEventLog - * @param numberOfEvents INT8U - */ -#define emberAfFillCommandEventsClusterGetEventLog(numberOfEvents) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_EVENT_LOG_COMMAND_ID, "u", numberOfEvents); - -/** @brief Command description for PublishEvent - * - * Command: PublishEvent - * @param eventData OCTET_STRING - */ -#define emberAfFillCommandEventsClusterPublishEvent(eventData) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_EVENT_COMMAND_ID, "u", eventData); - -/** @brief Command description for GetEventLog - * - * Command: GetEventLog - * @param eventOffset INT16U - */ -#define emberAfFillCommandEventsClusterGetEventLog(eventOffset) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_EVENT_LOG_COMMAND_ID, "u", eventOffset); - -/** @brief Command description for ClearEventLogRequest - * - * Command: ClearEventLogRequest - * @param logId EventLogId - */ -#define emberAfFillCommandEventsClusterClearEventLogRequest(logId) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_CLEAR_EVENT_LOG_REQUEST_COMMAND_ID, "u", logId); - -/** @brief Command description for PublishEventLog - * - * Command: PublishEventLog - * @param totalNumberOfEvents INT16U - * @param commandIndex INT8U - * @param totalCommands INT8U - * @param logPayloadControl NumberOfEventsLogPayloadControl - * @param logPayload EventLogPayload [] - * @param logPayloadLen int - */ -#define emberAfFillCommandEventsClusterPublishEventLog(totalNumberOfEvents, commandIndex, totalCommands, logPayloadControl, \ - logPayload, logPayloadLen) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PUBLISH_EVENT_LOG_COMMAND_ID, "uuuub", totalNumberOfEvents, commandIndex, totalCommands, \ - logPayloadControl, logPayload, logPayloadLen); - -/** @brief Command description for ClearEventLogResponse - * - * Command: ClearEventLogResponse - * @param clearedEventsLogs ClearedEventsLogs - */ -#define emberAfFillCommandEventsClusterClearEventLogResponse(clearedEventsLogs) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_CLEAR_EVENT_LOG_RESPONSE_COMMAND_ID, "u", clearedEventsLogs); - -/** @brief Command description for PairingResponse - * - * Command: PairingResponse - * @param pairingInformationVersion INT32U - */ -#define emberAfFillCommandMDU \ - PairingClusterPairingResponse(pairingInformationVersion) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PAIRING_RESPONSE_COMMAND_ID, "u", pairingInformationVersion); - -/** @brief Command description for PairingRequest - * - * Command: PairingRequest - * @param localPairingInformationVersion INT32U - */ -#define emberAfFillCommandMDU \ - PairingClusterPairingRequest(localPairingInformationVersion) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PAIRING_REQUEST_COMMAND_ID, "u", localPairingInformationVersion); - -/** @brief Command description for PairingResponse - * - * Command: PairingResponse - * @param totalNumberOfDevices INT8U - */ -#define emberAfFillCommandMDU \ - PairingClusterPairingResponse(totalNumberOfDevices) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PAIRING_RESPONSE_COMMAND_ID, "u", totalNumberOfDevices); - -/** @brief Command description for PairingRequest - * - * Command: PairingRequest - * @param eui64OfRequestingDevice IEEE_ADDRESS - */ -#define emberAfFillCommandMDU \ - PairingClusterPairingRequest(eui64OfRequestingDevice) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PAIRING_REQUEST_COMMAND_ID, "u", eui64OfRequestingDevice); - -/** @brief Command description for PairingResponse - * - * Command: PairingResponse - * @param commandIndex INT8U - * @param totalNumberOfCommands INT8U - * @param eui64s IEEE_ADDRESS [] - * @param eui64sLen int - */ -#define emberAfFillCommandMDU \ - PairingClusterPairingResponse(commandIndex, totalNumberOfCommands, eui64s, eui64sLen) \ - emberAfFillExternalBuffer(mask, \ - \ - ZCL_PAIRING_RESPONSE_COMMAND_ID, "uub", commandIndex, totalNumberOfCommands, eui64s, eui64sLen); - -/** @brief Command description for GetSuspendZclMessagesStatus - * - * Command: GetSuspendZclMessagesStatus - */ -#define emberAfFillCommandSub \ - -GHzClusterGetSuspendZclMessagesStatus() emberAfFillExternalBuffer(mask, \ - \ - ZCL_GET_SUSPEND_ZCL_MESSAGES_STATUS_COMMAND_ID, "", ); - -/** @brief Command description for SuspendZclMessages - * - * Command: SuspendZclMessages - * @param period INT8U - */ -#define emberAfFillCommandSub \ - -GHzClusterSuspendZclMessages(period) emberAfFillExternalBuffer(mask, \ - \ - ZCL_SUSPEND_ZCL_MESSAGES_COMMAND_ID, "u", period); - -/** @brief Command description for InitiateKeyEstablishmentRequest - * - * Command: InitiateKeyEstablishmentRequest - * @param keyEstablishmentSuite BITMAP16 - */ -#define emberAfFillCommandKey \ - EstablishmentClusterInitiateKeyEstablishmentRequest(keyEstablishmentSuite) \ - emberAfFillExternalBuffer(mask, \ -======= #define emberAfFillCommandWiFi \ Network DiagnosticsClusterResetCounts() emberAfFillExternalBuffer(mask, \ ->>>>>>> master \ ZCL_RESET_COUNTS_COMMAND_ID, "", ); diff --git a/src/controller/data_model/gen/CHIPClusters.cpp b/src/controller/data_model/gen/CHIPClusters.cpp index 8c5cf4981b45bc..95df537bddf817 100644 --- a/src/controller/data_model/gen/CHIPClusters.cpp +++ b/src/controller/data_model/gen/CHIPClusters.cpp @@ -6786,12 +6786,6 @@ CHIP_ERROR OtaSoftwareUpdateProviderCluster::DiscoverAttributes(Callback::Cancel CHIP_ERROR OtaSoftwareUpdateProviderCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { -<<<<<<< HEAD - uint8_t seqNum = mDevice->GetNextSequenceNumber(); - System::PacketBufferHandle encodedCommand = - encodeOtaSoftwareUpdateProviderClusterReadClusterRevisionAttribute(seqNum, mEndpoint); - return SendCommand(seqNum, std::move(encodedCommand), onSuccessCallback, onFailureCallback); -======= chip::app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; @@ -6799,7 +6793,6 @@ CHIP_ERROR OtaSoftwareUpdateProviderCluster::ReadAttributeClusterRevision(Callba attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); ->>>>>>> master } // OnOff Cluster Commands diff --git a/src/controller/data_model/gen/IMClusterCommandHandler.cpp b/src/controller/data_model/gen/IMClusterCommandHandler.cpp index 88dbce24935a81..2d24b4ca67f1b3 100644 --- a/src/controller/data_model/gen/IMClusterCommandHandler.cpp +++ b/src/controller/data_model/gen/IMClusterCommandHandler.cpp @@ -4198,11 +4198,7 @@ void DispatchClientCommand(app::Command * apCommandObj, CommandId aCommandId, En apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kNotFound, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::UnsupportedCommand); -<<<<<<< HEAD - ChipLogError(Zcl, "Unknown command %" PRIx16 " for cluster %" PRIx16, aCommandId, ZCL_OTA_PROVIDER_CLUSTER_ID); -======= - ChipLogError(Zcl, "Unknown command %" PRIx8 " for cluster %" PRIx16, aCommandId, ZCL_OTA_SERVER_CLUSTER_ID); ->>>>>>> master + ChipLogError(Zcl, "Unknown command %" PRIx8 " for cluster %" PRIx16, aCommandId, ZCL_OTA_PROVIDER_CLUSTER_ID); return; } }