Identify cluster XML update (#26738)
* update Identify cluster XML and generate code
* cleaned up identify server implementation
* update generated code references in Identify cluster examples
* avoid using namespace in header and update identify init signature
* update last pieces of legacy identify generated code
* update missed references to legacy generated code
* fix typo
* fixed logging errors
* update namespace usage
* fixed few more namespace usage and cast
* few more missed namespace updates
* Update examples/chef/efr32/src/AppTask.cpp
Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
* Update examples/light-switch-app/silabs/efr32/src/AppTask.cpp
Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
* Update examples/lighting-app/nxp/k32w/k32w0/main/AppTask.cpp
Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
* address PR comments
* regenerate code after removing feature map from XML and running zap_convert_all.py
* fix CI errors
* trying to fix types
* added missing namespace
* No need for spurious changes. And for a 16-bit int, 0x00 is not any more "correct" than 0x0.
Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
* Revert warning fixes which are not neccessary
* shorten namespace use
* run restyler
* regen
Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
* fix spell check
* Fix new pump-app example.
---------
Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
diff --git a/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter b/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter
index 4d25f93..dff6d67 100644
--- a/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter
+++ b/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter
@@ -13,7 +13,7 @@
/** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */
server cluster Identify = 3 {
- enum IdentifyEffectIdentifier : ENUM8 {
+ enum EffectIdentifierEnum : ENUM8 {
kBlink = 0;
kBreathe = 1;
kOkay = 2;
@@ -22,21 +22,21 @@
kStopEffect = 255;
}
- enum IdentifyEffectVariant : ENUM8 {
+ enum EffectVariantEnum : ENUM8 {
kDefault = 0;
}
- enum IdentifyIdentifyType : ENUM8 {
+ enum IdentifyTypeEnum : ENUM8 {
kNone = 0;
- kVisibleLight = 1;
- kVisibleLED = 2;
+ kLightOutput = 1;
+ kVisibleIndicator = 2;
kAudibleBeep = 3;
kDisplay = 4;
kActuator = 5;
}
attribute int16u identifyTime = 0;
- readonly attribute enum8 identifyType = 1;
+ readonly attribute IdentifyTypeEnum identifyType = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
@@ -49,8 +49,8 @@
}
request struct TriggerEffectRequest {
- IdentifyEffectIdentifier effectIdentifier = 0;
- IdentifyEffectVariant effectVariant = 1;
+ EffectIdentifierEnum effectIdentifier = 0;
+ EffectVariantEnum effectVariant = 1;
}
command access(invoke: manage) Identify(IdentifyRequest): DefaultSuccess = 0;
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 5fe59d9..869e7eb 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
@@ -111,7 +111,7 @@
"code": 1,
"mfgCode": null,
"side": "server",
- "type": "enum8",
+ "type": "IdentifyTypeEnum",
"included": 1,
"storageOption": "RAM",
"singleton": 0,
@@ -9097,7 +9097,7 @@
"code": 1,
"mfgCode": null,
"side": "server",
- "type": "enum8",
+ "type": "IdentifyTypeEnum",
"included": 1,
"storageOption": "RAM",
"singleton": 0,
diff --git a/examples/all-clusters-app/ameba/main/chipinterface.cpp b/examples/all-clusters-app/ameba/main/chipinterface.cpp
index c8b2e9a..8f32c8d 100644
--- a/examples/all-clusters-app/ameba/main/chipinterface.cpp
+++ b/examples/all-clusters-app/ameba/main/chipinterface.cpp
@@ -48,6 +48,7 @@
#endif
using namespace ::chip;
+using namespace ::chip::app;
using namespace ::chip::DeviceManager;
using namespace ::chip::DeviceLayer;
using namespace ::chip::System;
@@ -73,17 +74,17 @@
{
switch (identify->mCurrentEffectIdentifier)
{
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BLINK:
- ChipLogProgress(Zcl, "EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BLINK");
+ case Clusters::Identify::EffectIdentifierEnum::kBlink:
+ ChipLogProgress(Zcl, "Clusters::Identify::EffectIdentifierEnum::kBlink");
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BREATHE:
- ChipLogProgress(Zcl, "EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BREATHE");
+ case Clusters::Identify::EffectIdentifierEnum::kBreathe:
+ ChipLogProgress(Zcl, "Clusters::Identify::EffectIdentifierEnum::kBreathe");
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_OKAY:
- ChipLogProgress(Zcl, "EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_OKAY");
+ case Clusters::Identify::EffectIdentifierEnum::kOkay:
+ ChipLogProgress(Zcl, "Clusters::Identify::EffectIdentifierEnum::kOkay");
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_CHANNEL_CHANGE:
- ChipLogProgress(Zcl, "EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_CHANNEL_CHANGE");
+ case Clusters::Identify::EffectIdentifierEnum::kChannelChange:
+ ChipLogProgress(Zcl, "Clusters::Identify::EffectIdentifierEnum::kChannelChange");
break;
default:
ChipLogProgress(Zcl, "No identifier effect");
@@ -96,7 +97,7 @@
chip::EndpointId{ 0 },
[](Identify *) { ChipLogProgress(Zcl, "onIdentifyStart"); },
[](Identify *) { ChipLogProgress(Zcl, "onIdentifyStop"); },
- EMBER_ZCL_IDENTIFY_IDENTIFY_TYPE_VISIBLE_LED,
+ Clusters::Identify::IdentifyTypeEnum::kVisibleIndicator,
OnIdentifyTriggerEffect,
};
@@ -104,7 +105,7 @@
chip::EndpointId{ 1 },
[](Identify *) { ChipLogProgress(Zcl, "onIdentifyStart"); },
[](Identify *) { ChipLogProgress(Zcl, "onIdentifyStop"); },
- EMBER_ZCL_IDENTIFY_IDENTIFY_TYPE_VISIBLE_LED,
+ Clusters::Identify::IdentifyTypeEnum::kVisibleIndicator,
OnIdentifyTriggerEffect,
};
diff --git a/examples/all-clusters-app/ameba/main/include/IdentifyCommand.h b/examples/all-clusters-app/ameba/main/include/IdentifyCommand.h
index ab93460..472b66e 100644
--- a/examples/all-clusters-app/ameba/main/include/IdentifyCommand.h
+++ b/examples/all-clusters-app/ameba/main/include/IdentifyCommand.h
@@ -96,8 +96,8 @@
break;
case Clusters::Identify::Commands::TriggerEffect::Id:
- triggerEffectCommand.effectIdentifier = static_cast<EmberAfIdentifyEffectIdentifier>(data->args[0]);
- triggerEffectCommand.effectVariant = static_cast<EmberAfIdentifyEffectVariant>(data->args[1]);
+ triggerEffectCommand.effectIdentifier = static_cast<Clusters::Identify::EffectIdentifierEnum>(data->args[0]);
+ triggerEffectCommand.effectVariant = static_cast<Clusters::Identify::EffectVariantEnum>(data->args[1]);
Controller::InvokeCommandRequest(peer_device->GetExchangeManager(), peer_device->GetSecureSession().Value(), binding.remote,
triggerEffectCommand, onSuccess, onFailure);
break;
@@ -119,8 +119,8 @@
break;
case Clusters::Identify::Commands::TriggerEffect::Id:
- triggerEffectCommand.effectIdentifier = static_cast<EmberAfIdentifyEffectIdentifier>(data->args[0]);
- triggerEffectCommand.effectVariant = static_cast<EmberAfIdentifyEffectVariant>(data->args[1]);
+ triggerEffectCommand.effectIdentifier = static_cast<Clusters::Identify::EffectIdentifierEnum>(data->args[0]);
+ triggerEffectCommand.effectVariant = static_cast<Clusters::Identify::EffectVariantEnum>(data->args[1]);
Controller::InvokeGroupCommandRequest(&exchangeMgr, binding.fabricIndex, binding.groupId, triggerEffectCommand);
break;
}
diff --git a/examples/all-clusters-app/cc13x2x7_26x2x7/main/ClusterManager.cpp b/examples/all-clusters-app/cc13x2x7_26x2x7/main/ClusterManager.cpp
index 17922c6..df12e13 100644
--- a/examples/all-clusters-app/cc13x2x7_26x2x7/main/ClusterManager.cpp
+++ b/examples/all-clusters-app/cc13x2x7_26x2x7/main/ClusterManager.cpp
@@ -29,6 +29,7 @@
#endif
using namespace ::chip;
+using namespace ::chip::app;
using namespace ::chip::Inet;
using namespace ::chip::System;
using namespace ::chip::DeviceLayer;
@@ -45,17 +46,17 @@
{
switch (identify->mCurrentEffectIdentifier)
{
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BLINK:
- PLAT_LOG("EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BLINK");
+ case Clusters::Identify::EffectIdentifierEnum::kBlink:
+ PLAT_LOG("Clusters::Identify::EffectIdentifierEnum::kBlink");
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BREATHE:
- PLAT_LOG("EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BREATHE");
+ case Clusters::Identify::EffectIdentifierEnum::kBreathe:
+ PLAT_LOG("Clusters::Identify::EffectIdentifierEnum::kBreathe");
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_OKAY:
- PLAT_LOG("EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_OKAY");
+ case Clusters::Identify::EffectIdentifierEnum::kOkay:
+ PLAT_LOG("Clusters::Identify::EffectIdentifierEnum::kOkay");
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_CHANNEL_CHANGE:
- PLAT_LOG("EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_CHANNEL_CHANGE");
+ case Clusters::Identify::EffectIdentifierEnum::kChannelChange:
+ PLAT_LOG("Clusters::Identify::EffectIdentifierEnum::kChannelChange");
break;
default:
PLAT_LOG("No identifier effect");
@@ -68,7 +69,7 @@
chip::EndpointId{ 0 },
[](Identify *) { PLAT_LOG("onIdentifyStart"); },
[](Identify *) { PLAT_LOG("onIdentifyStop"); },
- EMBER_ZCL_IDENTIFY_IDENTIFY_TYPE_VISIBLE_LED,
+ Clusters::Identify::IdentifyTypeEnum::kVisibleIndicator,
OnIdentifyTriggerEffect,
};
@@ -76,7 +77,7 @@
chip::EndpointId{ 1 },
[](Identify *) { PLAT_LOG("onIdentifyStart"); },
[](Identify *) { PLAT_LOG("onIdentifyStop"); },
- EMBER_ZCL_IDENTIFY_IDENTIFY_TYPE_VISIBLE_LED,
+ Clusters::Identify::IdentifyTypeEnum::kVisibleIndicator,
OnIdentifyTriggerEffect,
};
diff --git a/examples/all-clusters-app/cc13x4_26x4/main/ClusterManager.cpp b/examples/all-clusters-app/cc13x4_26x4/main/ClusterManager.cpp
index 7e6173a..bf5176f 100644
--- a/examples/all-clusters-app/cc13x4_26x4/main/ClusterManager.cpp
+++ b/examples/all-clusters-app/cc13x4_26x4/main/ClusterManager.cpp
@@ -28,6 +28,7 @@
#endif
using namespace ::chip;
+using namespace ::chip::app;
using namespace ::chip::Inet;
using namespace ::chip::System;
using namespace ::chip::DeviceLayer;
@@ -44,17 +45,17 @@
{
switch (identify->mCurrentEffectIdentifier)
{
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BLINK:
- PLAT_LOG("EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BLINK");
+ case Clusters::Identify::EffectIdentifierEnum::kBlink:
+ PLAT_LOG("Clusters::Identify::EffectIdentifierEnum::kBlink");
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BREATHE:
- PLAT_LOG("EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BREATHE");
+ case Clusters::Identify::EffectIdentifierEnum::kBreathe:
+ PLAT_LOG("Clusters::Identify::EffectIdentifierEnum::kBreathe");
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_OKAY:
- PLAT_LOG("EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_OKAY");
+ case Clusters::Identify::EffectIdentifierEnum::kOkay:
+ PLAT_LOG("Clusters::Identify::EffectIdentifierEnum::kOkay");
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_CHANNEL_CHANGE:
- PLAT_LOG("EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_CHANNEL_CHANGE");
+ case Clusters::Identify::EffectIdentifierEnum::kChannelChange:
+ PLAT_LOG("Clusters::Identify::EffectIdentifierEnum::kChannelChange");
break;
default:
PLAT_LOG("No identifier effect");
@@ -67,7 +68,7 @@
chip::EndpointId{ 0 },
[](Identify *) { PLAT_LOG("onIdentifyStart"); },
[](Identify *) { PLAT_LOG("onIdentifyStop"); },
- EMBER_ZCL_IDENTIFY_IDENTIFY_TYPE_VISIBLE_LED,
+ Clusters::Identify::IdentifyTypeEnum::kVisibleIndicator,
OnIdentifyTriggerEffect,
};
@@ -75,7 +76,7 @@
chip::EndpointId{ 1 },
[](Identify *) { PLAT_LOG("onIdentifyStart"); },
[](Identify *) { PLAT_LOG("onIdentifyStop"); },
- EMBER_ZCL_IDENTIFY_IDENTIFY_TYPE_VISIBLE_LED,
+ Clusters::Identify::IdentifyTypeEnum::kVisibleIndicator,
OnIdentifyTriggerEffect,
};
diff --git a/examples/all-clusters-app/esp32/main/DeviceCallbacks.cpp b/examples/all-clusters-app/esp32/main/DeviceCallbacks.cpp
index 277cdb2..271dc37 100644
--- a/examples/all-clusters-app/esp32/main/DeviceCallbacks.cpp
+++ b/examples/all-clusters-app/esp32/main/DeviceCallbacks.cpp
@@ -54,18 +54,18 @@
{
switch (identify->mCurrentEffectIdentifier)
{
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BLINK:
+ case Clusters::Identify::EffectIdentifierEnum::kBlink:
statusLED1.Blink(kIdentifyTimerDelayMS * 2);
- ChipLogProgress(Zcl, "EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BLINK");
+ ChipLogProgress(Zcl, "Clusters::Identify::EffectIdentifierEnum::kBlink");
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BREATHE:
- ChipLogProgress(Zcl, "EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BREATHE");
+ case Clusters::Identify::EffectIdentifierEnum::kBreathe:
+ ChipLogProgress(Zcl, "Clusters::Identify::EffectIdentifierEnum::kBreathe");
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_OKAY:
- ChipLogProgress(Zcl, "EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_OKAY");
+ case Clusters::Identify::EffectIdentifierEnum::kOkay:
+ ChipLogProgress(Zcl, "Clusters::Identify::EffectIdentifierEnum::kOkay");
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_CHANNEL_CHANGE:
- ChipLogProgress(Zcl, "EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_CHANNEL_CHANGE");
+ case Clusters::Identify::EffectIdentifierEnum::kChannelChange:
+ ChipLogProgress(Zcl, "Clusters::Identify::EffectIdentifierEnum::kChannelChange");
break;
default:
ChipLogProgress(Zcl, "No identifier effect");
@@ -78,7 +78,7 @@
chip::EndpointId{ 0 },
[](Identify *) { ChipLogProgress(Zcl, "onIdentifyStart"); },
[](Identify *) { ChipLogProgress(Zcl, "onIdentifyStop"); },
- EMBER_ZCL_IDENTIFY_IDENTIFY_TYPE_VISIBLE_LED,
+ Clusters::Identify::IdentifyTypeEnum::kVisibleIndicator,
OnIdentifyTriggerEffect,
};
@@ -86,7 +86,7 @@
chip::EndpointId{ 1 },
[](Identify *) { ChipLogProgress(Zcl, "onIdentifyStart"); },
[](Identify *) { ChipLogProgress(Zcl, "onIdentifyStop"); },
- EMBER_ZCL_IDENTIFY_IDENTIFY_TYPE_VISIBLE_LED,
+ Clusters::Identify::IdentifyTypeEnum::kVisibleIndicator,
OnIdentifyTriggerEffect,
};
diff --git a/examples/all-clusters-app/linux/main-common.cpp b/examples/all-clusters-app/linux/main-common.cpp
index dcce3f1..4c22561 100644
--- a/examples/all-clusters-app/linux/main-common.cpp
+++ b/examples/all-clusters-app/linux/main-common.cpp
@@ -77,17 +77,17 @@
{
switch (identify->mCurrentEffectIdentifier)
{
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BLINK:
- ChipLogProgress(Zcl, "EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BLINK");
+ case Clusters::Identify::EffectIdentifierEnum::kBlink:
+ ChipLogProgress(Zcl, "Clusters::Identify::EffectIdentifierEnum::kBlink");
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BREATHE:
- ChipLogProgress(Zcl, "EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BREATHE");
+ case Clusters::Identify::EffectIdentifierEnum::kBreathe:
+ ChipLogProgress(Zcl, "Clusters::Identify::EffectIdentifierEnum::kBreathe");
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_OKAY:
- ChipLogProgress(Zcl, "EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_OKAY");
+ case Clusters::Identify::EffectIdentifierEnum::kOkay:
+ ChipLogProgress(Zcl, "Clusters::Identify::EffectIdentifierEnum::kOkay");
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_CHANNEL_CHANGE:
- ChipLogProgress(Zcl, "EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_CHANNEL_CHANGE");
+ case Clusters::Identify::EffectIdentifierEnum::kChannelChange:
+ ChipLogProgress(Zcl, "Clusters::Identify::EffectIdentifierEnum::kChannelChange");
break;
default:
ChipLogProgress(Zcl, "No identifier effect");
@@ -96,11 +96,13 @@
}
static Identify gIdentify0 = {
- chip::EndpointId{ 0 }, OnIdentifyStart, OnIdentifyStop, EMBER_ZCL_IDENTIFY_IDENTIFY_TYPE_VISIBLE_LED, OnTriggerEffect,
+ chip::EndpointId{ 0 }, OnIdentifyStart, OnIdentifyStop, Clusters::Identify::IdentifyTypeEnum::kVisibleIndicator,
+ OnTriggerEffect,
};
static Identify gIdentify1 = {
- chip::EndpointId{ 1 }, OnIdentifyStart, OnIdentifyStop, EMBER_ZCL_IDENTIFY_IDENTIFY_TYPE_VISIBLE_LED, OnTriggerEffect,
+ chip::EndpointId{ 1 }, OnIdentifyStart, OnIdentifyStop, Clusters::Identify::IdentifyTypeEnum::kVisibleIndicator,
+ OnTriggerEffect,
};
// Network commissioning
diff --git a/examples/all-clusters-app/nrfconnect/main/AppTask.cpp b/examples/all-clusters-app/nrfconnect/main/AppTask.cpp
index 05103f4..a5fbf9b 100644
--- a/examples/all-clusters-app/nrfconnect/main/AppTask.cpp
+++ b/examples/all-clusters-app/nrfconnect/main/AppTask.cpp
@@ -71,7 +71,7 @@
chip::DeviceLayer::DeviceInfoProviderImpl gExampleDeviceInfoProvider;
Identify sIdentify = { kIdentifyEndpointId, AppTask::IdentifyStartHandler, AppTask::IdentifyStopHandler,
- EMBER_ZCL_IDENTIFY_IDENTIFY_TYPE_VISIBLE_LED };
+ Clusters::Identify::IdentifyTypeEnum::kVisibleIndicator };
LEDWidget sStatusLED;
LEDWidget sIdentifyLED;
diff --git a/examples/all-clusters-app/telink/Readme.md b/examples/all-clusters-app/telink/Readme.md
index 719656c..ececcdb 100644
--- a/examples/all-clusters-app/telink/Readme.md
+++ b/examples/all-clusters-app/telink/Readme.md
@@ -83,14 +83,14 @@
Identify command of the Identify cluster is received. The command's argument can
be used to specify the the effect. It is able to be in following effects:
-| Effect | Description |
-| :------------------------------ | :------------------------------------------------------------------- |
-| Blinks (200 ms on/200 ms off) | Blink (EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BLINK) |
-| Breathe (during 1000 ms) | Breathe (EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BREATHE) |
-| Blinks (50 ms on/950 ms off) | Okay (EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_OKAY) |
-| Blinks (1000 ms on/1000 ms off) | Channel Change (EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_CHANNEL_CHANGE) |
-| Blinks (950 ms on/50 ms off) | Finish (EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_FINISH_EFFECT) |
-| LED off | Stop (EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_STOP_EFFECT) |
+| Effect | Description |
+| :------------------------------ | :--------------------------------------------------------------------------- |
+| Blinks (200 ms on/200 ms off) | Blink (`Clusters::Identify::EffectIdentifierEnum::kBlink`) |
+| Breathe (during 1000 ms) | Breathe (`Clusters::Identify::EffectIdentifierEnum::kBreathe`) |
+| Blinks (50 ms on/950 ms off) | Okay (`Clusters::Identify::EffectIdentifierEnum::kOkay`) |
+| Blinks (1000 ms on/1000 ms off) | Channel Change ( `Clusters::Identify::EffectIdentifierEnum::kChannelChange`) |
+| Blinks (950 ms on/50 ms off) | Finish ( `Clusters::Identify::EffectIdentifierEnum::kFinishEffect`) |
+| LED off | Stop (`Clusters::Identify::EffectIdentifierEnum::kStopEffect`) |
### CHIP tool commands
diff --git a/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.matter b/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.matter
index 7570f49..02bd957 100644
--- a/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.matter
+++ b/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.matter
@@ -13,7 +13,7 @@
/** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */
server cluster Identify = 3 {
- enum IdentifyEffectIdentifier : ENUM8 {
+ enum EffectIdentifierEnum : ENUM8 {
kBlink = 0;
kBreathe = 1;
kOkay = 2;
@@ -22,21 +22,21 @@
kStopEffect = 255;
}
- enum IdentifyEffectVariant : ENUM8 {
+ enum EffectVariantEnum : ENUM8 {
kDefault = 0;
}
- enum IdentifyIdentifyType : ENUM8 {
+ enum IdentifyTypeEnum : ENUM8 {
kNone = 0;
- kVisibleLight = 1;
- kVisibleLED = 2;
+ kLightOutput = 1;
+ kVisibleIndicator = 2;
kAudibleBeep = 3;
kDisplay = 4;
kActuator = 5;
}
attribute int16u identifyTime = 0;
- readonly attribute enum8 identifyType = 1;
+ readonly attribute IdentifyTypeEnum identifyType = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
diff --git a/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.zap b/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.zap
index 8bb9653..ad57bb3 100644
--- a/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.zap
+++ b/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.zap
@@ -111,7 +111,7 @@
"code": 1,
"mfgCode": null,
"side": "server",
- "type": "enum8",
+ "type": "IdentifyTypeEnum",
"included": 1,
"storageOption": "RAM",
"singleton": 0,
@@ -8568,7 +8568,7 @@
"code": 1,
"mfgCode": null,
"side": "server",
- "type": "enum8",
+ "type": "IdentifyTypeEnum",
"included": 1,
"storageOption": "RAM",
"singleton": 0,
@@ -24952,5 +24952,6 @@
"endpointVersion": 1,
"deviceIdentifier": 61442
}
- ]
+ ],
+ "log": []
}
\ No newline at end of file
diff --git a/examples/all-clusters-minimal-app/ameba/main/chipinterface.cpp b/examples/all-clusters-minimal-app/ameba/main/chipinterface.cpp
index 306d9c3..870870b 100644
--- a/examples/all-clusters-minimal-app/ameba/main/chipinterface.cpp
+++ b/examples/all-clusters-minimal-app/ameba/main/chipinterface.cpp
@@ -54,6 +54,7 @@
#endif
using namespace ::chip;
+using namespace ::chip::app;
using namespace ::chip::Credentials;
using namespace ::chip::DeviceManager;
using namespace ::chip::DeviceLayer;
@@ -80,14 +81,14 @@
chip::EndpointId{ 0 },
[](Identify *) { ChipLogProgress(Zcl, "onIdentifyStart"); },
[](Identify *) { ChipLogProgress(Zcl, "onIdentifyStop"); },
- EMBER_ZCL_IDENTIFY_IDENTIFY_TYPE_VISIBLE_LED,
+ Clusters::Identify::IdentifyTypeEnum::kVisibleIndicator,
};
Identify gIdentify1 = {
chip::EndpointId{ 1 },
[](Identify *) { ChipLogProgress(Zcl, "onIdentifyStart"); },
[](Identify *) { ChipLogProgress(Zcl, "onIdentifyStop"); },
- EMBER_ZCL_IDENTIFY_IDENTIFY_TYPE_VISIBLE_LED,
+ Clusters::Identify::IdentifyTypeEnum::kVisibleIndicator,
};
#ifdef CONFIG_PLATFORM_8721D
diff --git a/examples/all-clusters-minimal-app/esp32/README.md b/examples/all-clusters-minimal-app/esp32/README.md
deleted file mode 120000
index ded1934..0000000
--- a/examples/all-clusters-minimal-app/esp32/README.md
+++ /dev/null
@@ -1 +0,0 @@
-../../all-clusters-app/esp32/README.md
\ No newline at end of file
diff --git a/examples/all-clusters-minimal-app/esp32/README.md b/examples/all-clusters-minimal-app/esp32/README.md
new file mode 100644
index 0000000..6cb3f90
--- /dev/null
+++ b/examples/all-clusters-minimal-app/esp32/README.md
@@ -0,0 +1,51 @@
+# CHIP ESP32 All Clusters Example
+
+A prototype application that demonstrates device commissioning and cluster
+control.
+
+Please
+[setup ESP-IDF and CHIP Environment](../../../docs/guides/esp32/setup_idf_chip.md)
+and refer
+[building and commissioning](../../../docs/guides/esp32/build_app_and_commission.md)
+guides to get started.
+
+---
+
+- [Cluster control](#cluster-control)
+- [Matter OTA guide](../../../docs/guides/esp32/ota.md)
+- [RPC console and Device Tracing](../../../docs/guides/esp32/rpc_console.md)
+
+---
+
+### Cluster control
+
+#### onoff
+
+To use the Client to send Matter commands, run the built executable and pass it
+the target cluster name, the target command name as well as an endpoint id.
+
+```
+$ ./out/debug/chip-tool onoff on <NODE ID> <ENDPOINT>
+```
+
+The client will send a single command packet and then exit.
+
+#### levelcontrol
+
+```bash
+Usage:
+ $ ./out/debug/chip-tool levelcontrol move-to-level Level=10 TransitionTime=0 OptionMask=0 OptionOverride=0 <NODE ID> <ENDPOINT>
+```
+
+---
+
+This demo app illustrates controlling OnOff cluster (Server) attributes of an
+endpoint. For `ESP32-DevKitC`, `ESP32-WROVER-KIT_V4.1` and `ESP32C3-DevKitM`, a
+GPIO (configurable through `STATUS_LED_GPIO_NUM` in `main/main.cpp`) is updated
+through the on/off/toggle commands from the `python-controller`. For `M5Stack`,
+a virtual Green LED on the display is used for the same.
+
+If you wish to see the actual effect of the commands on `ESP32-DevKitC`,
+`ESP32-WROVER-KIT_V4.1`, you will have to connect an external LED to GPIO
+`STATUS_LED_GPIO_NUM`. For `ESP32C3-DevKitM`, the on-board LED will show the
+actual effect of the commands.
diff --git a/examples/all-clusters-minimal-app/esp32/main/DeviceCallbacks.cpp b/examples/all-clusters-minimal-app/esp32/main/DeviceCallbacks.cpp
index 333ec58..cff7233 100644
--- a/examples/all-clusters-minimal-app/esp32/main/DeviceCallbacks.cpp
+++ b/examples/all-clusters-minimal-app/esp32/main/DeviceCallbacks.cpp
@@ -53,18 +53,18 @@
{
switch (identify->mCurrentEffectIdentifier)
{
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BLINK:
+ case Clusters::Identify::EffectIdentifierEnum::kBlink:
statusLED1.Blink(kIdentifyTimerDelayMS * 2);
- ChipLogProgress(Zcl, "EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BLINK");
+ ChipLogProgress(Zcl, "Clusters::Identify::EffectIdentifierEnum::kBlink");
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BREATHE:
- ChipLogProgress(Zcl, "EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BREATHE");
+ case Clusters::Identify::EffectIdentifierEnum::kBreathe:
+ ChipLogProgress(Zcl, "Clusters::Identify::EffectIdentifierEnum::kBreathe");
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_OKAY:
- ChipLogProgress(Zcl, "EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_OKAY");
+ case Clusters::Identify::EffectIdentifierEnum::kOkay:
+ ChipLogProgress(Zcl, "Clusters::Identify::EffectIdentifierEnum::kOkay");
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_CHANNEL_CHANGE:
- ChipLogProgress(Zcl, "EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_CHANNEL_CHANGE");
+ case Clusters::Identify::EffectIdentifierEnum::kChannelChange:
+ ChipLogProgress(Zcl, "Clusters::Identify::EffectIdentifierEnum::kChannelChange");
break;
default:
ChipLogProgress(Zcl, "No identifier effect");
@@ -77,7 +77,7 @@
chip::EndpointId{ 0 },
[](Identify *) { ChipLogProgress(Zcl, "onIdentifyStart"); },
[](Identify *) { ChipLogProgress(Zcl, "onIdentifyStop"); },
- EMBER_ZCL_IDENTIFY_IDENTIFY_TYPE_VISIBLE_LED,
+ Clusters::Identify::IdentifyTypeEnum::kVisibleIndicator,
OnIdentifyTriggerEffect,
};
@@ -85,7 +85,7 @@
chip::EndpointId{ 1 },
[](Identify *) { ChipLogProgress(Zcl, "onIdentifyStart"); },
[](Identify *) { ChipLogProgress(Zcl, "onIdentifyStop"); },
- EMBER_ZCL_IDENTIFY_IDENTIFY_TYPE_VISIBLE_LED,
+ Clusters::Identify::IdentifyTypeEnum::kVisibleIndicator,
OnIdentifyTriggerEffect,
};
diff --git a/examples/all-clusters-minimal-app/linux/main-common.cpp b/examples/all-clusters-minimal-app/linux/main-common.cpp
index 7ff4635..fadc7fc 100644
--- a/examples/all-clusters-minimal-app/linux/main-common.cpp
+++ b/examples/all-clusters-minimal-app/linux/main-common.cpp
@@ -56,17 +56,17 @@
{
switch (identify->mCurrentEffectIdentifier)
{
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BLINK:
- ChipLogProgress(Zcl, "EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BLINK");
+ case Clusters::Identify::EffectIdentifierEnum::kBlink:
+ ChipLogProgress(Zcl, "Clusters::Identify::EffectIdentifierEnum::kBlink");
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BREATHE:
- ChipLogProgress(Zcl, "EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BREATHE");
+ case Clusters::Identify::EffectIdentifierEnum::kBreathe:
+ ChipLogProgress(Zcl, "Clusters::Identify::EffectIdentifierEnum::kBreathe");
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_OKAY:
- ChipLogProgress(Zcl, "EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_OKAY");
+ case Clusters::Identify::EffectIdentifierEnum::kOkay:
+ ChipLogProgress(Zcl, "Clusters::Identify::EffectIdentifierEnum::kOkay");
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_CHANNEL_CHANGE:
- ChipLogProgress(Zcl, "EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_CHANNEL_CHANGE");
+ case Clusters::Identify::EffectIdentifierEnum::kChannelChange:
+ ChipLogProgress(Zcl, "Clusters::Identify::EffectIdentifierEnum::kChannelChange");
break;
default:
ChipLogProgress(Zcl, "No identifier effect");
@@ -75,11 +75,13 @@
}
static Identify gIdentify0 = {
- chip::EndpointId{ 0 }, OnIdentifyStart, OnIdentifyStop, EMBER_ZCL_IDENTIFY_IDENTIFY_TYPE_VISIBLE_LED, OnTriggerEffect,
+ chip::EndpointId{ 0 }, OnIdentifyStart, OnIdentifyStop, Clusters::Identify::IdentifyTypeEnum::kVisibleIndicator,
+ OnTriggerEffect,
};
static Identify gIdentify1 = {
- chip::EndpointId{ 1 }, OnIdentifyStart, OnIdentifyStop, EMBER_ZCL_IDENTIFY_IDENTIFY_TYPE_VISIBLE_LED, OnTriggerEffect,
+ chip::EndpointId{ 1 }, OnIdentifyStart, OnIdentifyStop, Clusters::Identify::IdentifyTypeEnum::kVisibleIndicator,
+ OnTriggerEffect,
};
// Network commissioning
diff --git a/examples/bridge-app/bridge-common/bridge-app.matter b/examples/bridge-app/bridge-common/bridge-app.matter
index ed6bebe..32b8d2e 100644
--- a/examples/bridge-app/bridge-common/bridge-app.matter
+++ b/examples/bridge-app/bridge-common/bridge-app.matter
@@ -13,7 +13,7 @@
/** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */
server cluster Identify = 3 {
- enum IdentifyEffectIdentifier : ENUM8 {
+ enum EffectIdentifierEnum : ENUM8 {
kBlink = 0;
kBreathe = 1;
kOkay = 2;
@@ -22,21 +22,21 @@
kStopEffect = 255;
}
- enum IdentifyEffectVariant : ENUM8 {
+ enum EffectVariantEnum : ENUM8 {
kDefault = 0;
}
- enum IdentifyIdentifyType : ENUM8 {
+ enum IdentifyTypeEnum : ENUM8 {
kNone = 0;
- kVisibleLight = 1;
- kVisibleLED = 2;
+ kLightOutput = 1;
+ kVisibleIndicator = 2;
kAudibleBeep = 3;
kDisplay = 4;
kActuator = 5;
}
attribute int16u identifyTime = 0;
- readonly attribute enum8 identifyType = 1;
+ readonly attribute IdentifyTypeEnum identifyType = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
@@ -49,8 +49,8 @@
}
request struct TriggerEffectRequest {
- IdentifyEffectIdentifier effectIdentifier = 0;
- IdentifyEffectVariant effectVariant = 1;
+ EffectIdentifierEnum effectIdentifier = 0;
+ EffectVariantEnum effectVariant = 1;
}
command access(invoke: manage) Identify(IdentifyRequest): DefaultSuccess = 0;
diff --git a/examples/bridge-app/bridge-common/bridge-app.zap b/examples/bridge-app/bridge-common/bridge-app.zap
index c7a564c..920ea17 100644
--- a/examples/bridge-app/bridge-common/bridge-app.zap
+++ b/examples/bridge-app/bridge-common/bridge-app.zap
@@ -5112,7 +5112,7 @@
"code": 1,
"mfgCode": null,
"side": "server",
- "type": "enum8",
+ "type": "IdentifyTypeEnum",
"included": 1,
"storageOption": "RAM",
"singleton": 0,
diff --git a/examples/bridge-app/telink/README.md b/examples/bridge-app/telink/README.md
index 67ded6c..bec1790 100644
--- a/examples/bridge-app/telink/README.md
+++ b/examples/bridge-app/telink/README.md
@@ -160,14 +160,14 @@
Identify command of the Identify cluster is received. The command's argument can
be used to specify the the effect. It is able to be in following effects:
-| Effect | Description |
-| :------------------------------ | :------------------------------------------------------------------- |
-| Blinks (200 ms on/200 ms off) | Blink (EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BLINK) |
-| Breathe (during 1000 ms) | Breathe (EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BREATHE) |
-| Blinks (50 ms on/950 ms off) | Okay (EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_OKAY) |
-| Blinks (1000 ms on/1000 ms off) | Channel Change (EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_CHANNEL_CHANGE) |
-| Blinks (950 ms on/50 ms off) | Finish (EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_FINISH_EFFECT) |
-| LED off | Stop (EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_STOP_EFFECT) |
+| Effect | Description |
+| :------------------------------ | :--------------------------------------------------------------------------- |
+| Blinks (200 ms on/200 ms off) | Blink (`Clusters::Identify::EffectIdentifierEnum::kBlink`) |
+| Breathe (during 1000 ms) | Breathe (`Clusters::Identify::EffectIdentifierEnum::kBreathe`) |
+| Blinks (50 ms on/950 ms off) | Okay (`Clusters::Identify::EffectIdentifierEnum::kOkay`) |
+| Blinks (1000 ms on/1000 ms off) | Channel Change ( `Clusters::Identify::EffectIdentifierEnum::kChannelChange`) |
+| Blinks (950 ms on/50 ms off) | Finish ( `Clusters::Identify::EffectIdentifierEnum::kFinishEffect`) |
+| LED off | Stop (`Clusters::Identify::EffectIdentifierEnum::kStopEffect`) |
### CHIP tool commands
diff --git a/examples/chef/ameba/main/chipinterface.cpp b/examples/chef/ameba/main/chipinterface.cpp
index f68fca0..7e52ae2 100644
--- a/examples/chef/ameba/main/chipinterface.cpp
+++ b/examples/chef/ameba/main/chipinterface.cpp
@@ -50,6 +50,7 @@
#endif
using namespace ::chip;
+using namespace ::chip::app;
using namespace ::chip::Credentials;
using namespace ::chip::DeviceManager;
using namespace ::chip::DeviceLayer;
@@ -76,14 +77,14 @@
chip::EndpointId{ 0 },
[](Identify *) { ChipLogProgress(Zcl, "onIdentifyStart"); },
[](Identify *) { ChipLogProgress(Zcl, "onIdentifyStop"); },
- EMBER_ZCL_IDENTIFY_IDENTIFY_TYPE_VISIBLE_LED,
+ Clusters::Identify::IdentifyTypeEnum::kVisibleIndicator,
};
Identify gIdentify1 = {
chip::EndpointId{ 1 },
[](Identify *) { ChipLogProgress(Zcl, "onIdentifyStart"); },
[](Identify *) { ChipLogProgress(Zcl, "onIdentifyStop"); },
- EMBER_ZCL_IDENTIFY_IDENTIFY_TYPE_VISIBLE_LED,
+ Clusters::Identify::IdentifyTypeEnum::kVisibleIndicator,
};
#ifdef CONFIG_PLATFORM_8721D
diff --git a/examples/chef/devices/noip_rootnode_dimmablelight_bCwGYSDpoe.matter b/examples/chef/devices/noip_rootnode_dimmablelight_bCwGYSDpoe.matter
index ec26c6d..87a8216 100644
--- a/examples/chef/devices/noip_rootnode_dimmablelight_bCwGYSDpoe.matter
+++ b/examples/chef/devices/noip_rootnode_dimmablelight_bCwGYSDpoe.matter
@@ -13,7 +13,7 @@
/** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */
server cluster Identify = 3 {
- enum IdentifyEffectIdentifier : ENUM8 {
+ enum EffectIdentifierEnum : ENUM8 {
kBlink = 0;
kBreathe = 1;
kOkay = 2;
@@ -22,21 +22,21 @@
kStopEffect = 255;
}
- enum IdentifyEffectVariant : ENUM8 {
+ enum EffectVariantEnum : ENUM8 {
kDefault = 0;
}
- enum IdentifyIdentifyType : ENUM8 {
+ enum IdentifyTypeEnum : ENUM8 {
kNone = 0;
- kVisibleLight = 1;
- kVisibleLED = 2;
+ kLightOutput = 1;
+ kVisibleIndicator = 2;
kAudibleBeep = 3;
kDisplay = 4;
kActuator = 5;
}
attribute int16u identifyTime = 0;
- readonly attribute enum8 identifyType = 1;
+ readonly attribute IdentifyTypeEnum identifyType = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
diff --git a/examples/chef/devices/noip_rootnode_dimmablelight_bCwGYSDpoe.zap b/examples/chef/devices/noip_rootnode_dimmablelight_bCwGYSDpoe.zap
index 11db4cf..f031d3d 100644
--- a/examples/chef/devices/noip_rootnode_dimmablelight_bCwGYSDpoe.zap
+++ b/examples/chef/devices/noip_rootnode_dimmablelight_bCwGYSDpoe.zap
@@ -5503,7 +5503,7 @@
"code": 1,
"mfgCode": null,
"side": "server",
- "type": "enum8",
+ "type": "IdentifyTypeEnum",
"included": 1,
"storageOption": "RAM",
"singleton": 0,
diff --git a/examples/chef/devices/rootnode_colortemperaturelight_hbUnzYVeyn.matter b/examples/chef/devices/rootnode_colortemperaturelight_hbUnzYVeyn.matter
index 4c0cf67..7d148c4 100644
--- a/examples/chef/devices/rootnode_colortemperaturelight_hbUnzYVeyn.matter
+++ b/examples/chef/devices/rootnode_colortemperaturelight_hbUnzYVeyn.matter
@@ -13,7 +13,7 @@
/** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */
server cluster Identify = 3 {
- enum IdentifyEffectIdentifier : ENUM8 {
+ enum EffectIdentifierEnum : ENUM8 {
kBlink = 0;
kBreathe = 1;
kOkay = 2;
@@ -22,21 +22,21 @@
kStopEffect = 255;
}
- enum IdentifyEffectVariant : ENUM8 {
+ enum EffectVariantEnum : ENUM8 {
kDefault = 0;
}
- enum IdentifyIdentifyType : ENUM8 {
+ enum IdentifyTypeEnum : ENUM8 {
kNone = 0;
- kVisibleLight = 1;
- kVisibleLED = 2;
+ kLightOutput = 1;
+ kVisibleIndicator = 2;
kAudibleBeep = 3;
kDisplay = 4;
kActuator = 5;
}
attribute int16u identifyTime = 0;
- readonly attribute enum8 identifyType = 1;
+ readonly attribute IdentifyTypeEnum identifyType = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
@@ -49,8 +49,8 @@
}
request struct TriggerEffectRequest {
- IdentifyEffectIdentifier effectIdentifier = 0;
- IdentifyEffectVariant effectVariant = 1;
+ EffectIdentifierEnum effectIdentifier = 0;
+ EffectVariantEnum effectVariant = 1;
}
command access(invoke: manage) Identify(IdentifyRequest): DefaultSuccess = 0;
diff --git a/examples/chef/devices/rootnode_colortemperaturelight_hbUnzYVeyn.zap b/examples/chef/devices/rootnode_colortemperaturelight_hbUnzYVeyn.zap
index 1d22678..3443a88 100644
--- a/examples/chef/devices/rootnode_colortemperaturelight_hbUnzYVeyn.zap
+++ b/examples/chef/devices/rootnode_colortemperaturelight_hbUnzYVeyn.zap
@@ -5488,7 +5488,7 @@
"code": 1,
"mfgCode": null,
"side": "server",
- "type": "enum8",
+ "type": "IdentifyTypeEnum",
"included": 1,
"storageOption": "RAM",
"singleton": 0,
diff --git a/examples/chef/devices/rootnode_contactsensor_lFAGG1bfRO.matter b/examples/chef/devices/rootnode_contactsensor_lFAGG1bfRO.matter
index 4e8886b..0f00306 100644
--- a/examples/chef/devices/rootnode_contactsensor_lFAGG1bfRO.matter
+++ b/examples/chef/devices/rootnode_contactsensor_lFAGG1bfRO.matter
@@ -13,7 +13,7 @@
/** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */
server cluster Identify = 3 {
- enum IdentifyEffectIdentifier : ENUM8 {
+ enum EffectIdentifierEnum : ENUM8 {
kBlink = 0;
kBreathe = 1;
kOkay = 2;
@@ -22,21 +22,21 @@
kStopEffect = 255;
}
- enum IdentifyEffectVariant : ENUM8 {
+ enum EffectVariantEnum : ENUM8 {
kDefault = 0;
}
- enum IdentifyIdentifyType : ENUM8 {
+ enum IdentifyTypeEnum : ENUM8 {
kNone = 0;
- kVisibleLight = 1;
- kVisibleLED = 2;
+ kLightOutput = 1;
+ kVisibleIndicator = 2;
kAudibleBeep = 3;
kDisplay = 4;
kActuator = 5;
}
attribute int16u identifyTime = 0;
- readonly attribute enum8 identifyType = 1;
+ readonly attribute IdentifyTypeEnum identifyType = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
diff --git a/examples/chef/devices/rootnode_contactsensor_lFAGG1bfRO.zap b/examples/chef/devices/rootnode_contactsensor_lFAGG1bfRO.zap
index f05fe65..1a347ec 100644
--- a/examples/chef/devices/rootnode_contactsensor_lFAGG1bfRO.zap
+++ b/examples/chef/devices/rootnode_contactsensor_lFAGG1bfRO.zap
@@ -5480,7 +5480,7 @@
"code": 1,
"mfgCode": null,
"side": "server",
- "type": "enum8",
+ "type": "IdentifyTypeEnum",
"included": 1,
"storageOption": "RAM",
"singleton": 0,
diff --git a/examples/chef/devices/rootnode_dimmablelight_bCwGYSDpoe.matter b/examples/chef/devices/rootnode_dimmablelight_bCwGYSDpoe.matter
index 050111d..a5dfc6f 100644
--- a/examples/chef/devices/rootnode_dimmablelight_bCwGYSDpoe.matter
+++ b/examples/chef/devices/rootnode_dimmablelight_bCwGYSDpoe.matter
@@ -13,7 +13,7 @@
/** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */
server cluster Identify = 3 {
- enum IdentifyEffectIdentifier : ENUM8 {
+ enum EffectIdentifierEnum : ENUM8 {
kBlink = 0;
kBreathe = 1;
kOkay = 2;
@@ -22,21 +22,21 @@
kStopEffect = 255;
}
- enum IdentifyEffectVariant : ENUM8 {
+ enum EffectVariantEnum : ENUM8 {
kDefault = 0;
}
- enum IdentifyIdentifyType : ENUM8 {
+ enum IdentifyTypeEnum : ENUM8 {
kNone = 0;
- kVisibleLight = 1;
- kVisibleLED = 2;
+ kLightOutput = 1;
+ kVisibleIndicator = 2;
kAudibleBeep = 3;
kDisplay = 4;
kActuator = 5;
}
attribute int16u identifyTime = 0;
- readonly attribute enum8 identifyType = 1;
+ readonly attribute IdentifyTypeEnum identifyType = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
diff --git a/examples/chef/devices/rootnode_dimmablelight_bCwGYSDpoe.zap b/examples/chef/devices/rootnode_dimmablelight_bCwGYSDpoe.zap
index d4ecb08..771cfe7 100644
--- a/examples/chef/devices/rootnode_dimmablelight_bCwGYSDpoe.zap
+++ b/examples/chef/devices/rootnode_dimmablelight_bCwGYSDpoe.zap
@@ -5528,7 +5528,7 @@
"code": 1,
"mfgCode": null,
"side": "server",
- "type": "enum8",
+ "type": "IdentifyTypeEnum",
"included": 1,
"storageOption": "RAM",
"singleton": 0,
diff --git a/examples/chef/devices/rootnode_doorlock_aNKYAreMXE.matter b/examples/chef/devices/rootnode_doorlock_aNKYAreMXE.matter
index 30c65ab..2b23b97 100644
--- a/examples/chef/devices/rootnode_doorlock_aNKYAreMXE.matter
+++ b/examples/chef/devices/rootnode_doorlock_aNKYAreMXE.matter
@@ -13,7 +13,7 @@
/** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */
server cluster Identify = 3 {
- enum IdentifyEffectIdentifier : ENUM8 {
+ enum EffectIdentifierEnum : ENUM8 {
kBlink = 0;
kBreathe = 1;
kOkay = 2;
@@ -22,21 +22,21 @@
kStopEffect = 255;
}
- enum IdentifyEffectVariant : ENUM8 {
+ enum EffectVariantEnum : ENUM8 {
kDefault = 0;
}
- enum IdentifyIdentifyType : ENUM8 {
+ enum IdentifyTypeEnum : ENUM8 {
kNone = 0;
- kVisibleLight = 1;
- kVisibleLED = 2;
+ kLightOutput = 1;
+ kVisibleIndicator = 2;
kAudibleBeep = 3;
kDisplay = 4;
kActuator = 5;
}
attribute int16u identifyTime = 0;
- readonly attribute enum8 identifyType = 1;
+ readonly attribute IdentifyTypeEnum identifyType = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
diff --git a/examples/chef/devices/rootnode_doorlock_aNKYAreMXE.zap b/examples/chef/devices/rootnode_doorlock_aNKYAreMXE.zap
index a2cd89f..a398cfe 100644
--- a/examples/chef/devices/rootnode_doorlock_aNKYAreMXE.zap
+++ b/examples/chef/devices/rootnode_doorlock_aNKYAreMXE.zap
@@ -5480,7 +5480,7 @@
"code": 1,
"mfgCode": null,
"side": "server",
- "type": "enum8",
+ "type": "IdentifyTypeEnum",
"included": 1,
"storageOption": "RAM",
"singleton": 0,
diff --git a/examples/chef/devices/rootnode_extendedcolorlight_8lcaaYJVAa.matter b/examples/chef/devices/rootnode_extendedcolorlight_8lcaaYJVAa.matter
index 4f55793..385a6ad 100644
--- a/examples/chef/devices/rootnode_extendedcolorlight_8lcaaYJVAa.matter
+++ b/examples/chef/devices/rootnode_extendedcolorlight_8lcaaYJVAa.matter
@@ -13,7 +13,7 @@
/** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */
server cluster Identify = 3 {
- enum IdentifyEffectIdentifier : ENUM8 {
+ enum EffectIdentifierEnum : ENUM8 {
kBlink = 0;
kBreathe = 1;
kOkay = 2;
@@ -22,21 +22,21 @@
kStopEffect = 255;
}
- enum IdentifyEffectVariant : ENUM8 {
+ enum EffectVariantEnum : ENUM8 {
kDefault = 0;
}
- enum IdentifyIdentifyType : ENUM8 {
+ enum IdentifyTypeEnum : ENUM8 {
kNone = 0;
- kVisibleLight = 1;
- kVisibleLED = 2;
+ kLightOutput = 1;
+ kVisibleIndicator = 2;
kAudibleBeep = 3;
kDisplay = 4;
kActuator = 5;
}
attribute int16u identifyTime = 0;
- readonly attribute enum8 identifyType = 1;
+ readonly attribute IdentifyTypeEnum identifyType = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
diff --git a/examples/chef/devices/rootnode_extendedcolorlight_8lcaaYJVAa.zap b/examples/chef/devices/rootnode_extendedcolorlight_8lcaaYJVAa.zap
index 5642a98..a6df919 100644
--- a/examples/chef/devices/rootnode_extendedcolorlight_8lcaaYJVAa.zap
+++ b/examples/chef/devices/rootnode_extendedcolorlight_8lcaaYJVAa.zap
@@ -5480,7 +5480,7 @@
"code": 1,
"mfgCode": null,
"side": "server",
- "type": "enum8",
+ "type": "IdentifyTypeEnum",
"included": 1,
"storageOption": "RAM",
"singleton": 0,
diff --git a/examples/chef/devices/rootnode_fan_7N2TobIlOX.matter b/examples/chef/devices/rootnode_fan_7N2TobIlOX.matter
index b32ad8e..d897406 100644
--- a/examples/chef/devices/rootnode_fan_7N2TobIlOX.matter
+++ b/examples/chef/devices/rootnode_fan_7N2TobIlOX.matter
@@ -13,7 +13,7 @@
/** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */
server cluster Identify = 3 {
- enum IdentifyEffectIdentifier : ENUM8 {
+ enum EffectIdentifierEnum : ENUM8 {
kBlink = 0;
kBreathe = 1;
kOkay = 2;
@@ -22,21 +22,21 @@
kStopEffect = 255;
}
- enum IdentifyEffectVariant : ENUM8 {
+ enum EffectVariantEnum : ENUM8 {
kDefault = 0;
}
- enum IdentifyIdentifyType : ENUM8 {
+ enum IdentifyTypeEnum : ENUM8 {
kNone = 0;
- kVisibleLight = 1;
- kVisibleLED = 2;
+ kLightOutput = 1;
+ kVisibleIndicator = 2;
kAudibleBeep = 3;
kDisplay = 4;
kActuator = 5;
}
attribute int16u identifyTime = 0;
- readonly attribute enum8 identifyType = 1;
+ readonly attribute IdentifyTypeEnum identifyType = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
@@ -49,8 +49,8 @@
}
request struct TriggerEffectRequest {
- IdentifyEffectIdentifier effectIdentifier = 0;
- IdentifyEffectVariant effectVariant = 1;
+ EffectIdentifierEnum effectIdentifier = 0;
+ EffectVariantEnum effectVariant = 1;
}
command access(invoke: manage) Identify(IdentifyRequest): DefaultSuccess = 0;
diff --git a/examples/chef/devices/rootnode_fan_7N2TobIlOX.zap b/examples/chef/devices/rootnode_fan_7N2TobIlOX.zap
index 681c657..0e21ca5 100644
--- a/examples/chef/devices/rootnode_fan_7N2TobIlOX.zap
+++ b/examples/chef/devices/rootnode_fan_7N2TobIlOX.zap
@@ -5536,7 +5536,7 @@
"code": 1,
"mfgCode": null,
"side": "server",
- "type": "enum8",
+ "type": "IdentifyTypeEnum",
"included": 1,
"storageOption": "RAM",
"singleton": 0,
diff --git a/examples/chef/devices/rootnode_flowsensor_1zVxHedlaV.matter b/examples/chef/devices/rootnode_flowsensor_1zVxHedlaV.matter
index b8d2ee4..5481f14 100644
--- a/examples/chef/devices/rootnode_flowsensor_1zVxHedlaV.matter
+++ b/examples/chef/devices/rootnode_flowsensor_1zVxHedlaV.matter
@@ -13,7 +13,7 @@
/** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */
server cluster Identify = 3 {
- enum IdentifyEffectIdentifier : ENUM8 {
+ enum EffectIdentifierEnum : ENUM8 {
kBlink = 0;
kBreathe = 1;
kOkay = 2;
@@ -22,21 +22,21 @@
kStopEffect = 255;
}
- enum IdentifyEffectVariant : ENUM8 {
+ enum EffectVariantEnum : ENUM8 {
kDefault = 0;
}
- enum IdentifyIdentifyType : ENUM8 {
+ enum IdentifyTypeEnum : ENUM8 {
kNone = 0;
- kVisibleLight = 1;
- kVisibleLED = 2;
+ kLightOutput = 1;
+ kVisibleIndicator = 2;
kAudibleBeep = 3;
kDisplay = 4;
kActuator = 5;
}
attribute int16u identifyTime = 0;
- readonly attribute enum8 identifyType = 1;
+ readonly attribute IdentifyTypeEnum identifyType = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
diff --git a/examples/chef/devices/rootnode_flowsensor_1zVxHedlaV.zap b/examples/chef/devices/rootnode_flowsensor_1zVxHedlaV.zap
index 2908b67..ff13ace 100644
--- a/examples/chef/devices/rootnode_flowsensor_1zVxHedlaV.zap
+++ b/examples/chef/devices/rootnode_flowsensor_1zVxHedlaV.zap
@@ -5480,7 +5480,7 @@
"code": 1,
"mfgCode": null,
"side": "server",
- "type": "enum8",
+ "type": "IdentifyTypeEnum",
"included": 1,
"storageOption": "RAM",
"singleton": 0,
diff --git a/examples/chef/devices/rootnode_heatingcoolingunit_ncdGai1E5a.matter b/examples/chef/devices/rootnode_heatingcoolingunit_ncdGai1E5a.matter
index faf4f58..dce6707 100644
--- a/examples/chef/devices/rootnode_heatingcoolingunit_ncdGai1E5a.matter
+++ b/examples/chef/devices/rootnode_heatingcoolingunit_ncdGai1E5a.matter
@@ -13,7 +13,7 @@
/** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */
server cluster Identify = 3 {
- enum IdentifyEffectIdentifier : ENUM8 {
+ enum EffectIdentifierEnum : ENUM8 {
kBlink = 0;
kBreathe = 1;
kOkay = 2;
@@ -22,21 +22,21 @@
kStopEffect = 255;
}
- enum IdentifyEffectVariant : ENUM8 {
+ enum EffectVariantEnum : ENUM8 {
kDefault = 0;
}
- enum IdentifyIdentifyType : ENUM8 {
+ enum IdentifyTypeEnum : ENUM8 {
kNone = 0;
- kVisibleLight = 1;
- kVisibleLED = 2;
+ kLightOutput = 1;
+ kVisibleIndicator = 2;
kAudibleBeep = 3;
kDisplay = 4;
kActuator = 5;
}
attribute int16u identifyTime = 0;
- readonly attribute enum8 identifyType = 1;
+ readonly attribute IdentifyTypeEnum identifyType = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
diff --git a/examples/chef/devices/rootnode_heatingcoolingunit_ncdGai1E5a.zap b/examples/chef/devices/rootnode_heatingcoolingunit_ncdGai1E5a.zap
index dd99019..8f9676e 100644
--- a/examples/chef/devices/rootnode_heatingcoolingunit_ncdGai1E5a.zap
+++ b/examples/chef/devices/rootnode_heatingcoolingunit_ncdGai1E5a.zap
@@ -5480,7 +5480,7 @@
"code": 1,
"mfgCode": null,
"side": "server",
- "type": "enum8",
+ "type": "IdentifyTypeEnum",
"included": 1,
"storageOption": "RAM",
"singleton": 0,
diff --git a/examples/chef/devices/rootnode_humiditysensor_Xyj4gda6Hb.matter b/examples/chef/devices/rootnode_humiditysensor_Xyj4gda6Hb.matter
index 5ddb184..786ffa0 100644
--- a/examples/chef/devices/rootnode_humiditysensor_Xyj4gda6Hb.matter
+++ b/examples/chef/devices/rootnode_humiditysensor_Xyj4gda6Hb.matter
@@ -13,7 +13,7 @@
/** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */
server cluster Identify = 3 {
- enum IdentifyEffectIdentifier : ENUM8 {
+ enum EffectIdentifierEnum : ENUM8 {
kBlink = 0;
kBreathe = 1;
kOkay = 2;
@@ -22,21 +22,21 @@
kStopEffect = 255;
}
- enum IdentifyEffectVariant : ENUM8 {
+ enum EffectVariantEnum : ENUM8 {
kDefault = 0;
}
- enum IdentifyIdentifyType : ENUM8 {
+ enum IdentifyTypeEnum : ENUM8 {
kNone = 0;
- kVisibleLight = 1;
- kVisibleLED = 2;
+ kLightOutput = 1;
+ kVisibleIndicator = 2;
kAudibleBeep = 3;
kDisplay = 4;
kActuator = 5;
}
attribute int16u identifyTime = 0;
- readonly attribute enum8 identifyType = 1;
+ readonly attribute IdentifyTypeEnum identifyType = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
diff --git a/examples/chef/devices/rootnode_humiditysensor_Xyj4gda6Hb.zap b/examples/chef/devices/rootnode_humiditysensor_Xyj4gda6Hb.zap
index 109f2ba..aac331b 100644
--- a/examples/chef/devices/rootnode_humiditysensor_Xyj4gda6Hb.zap
+++ b/examples/chef/devices/rootnode_humiditysensor_Xyj4gda6Hb.zap
@@ -5480,7 +5480,7 @@
"code": 1,
"mfgCode": null,
"side": "server",
- "type": "enum8",
+ "type": "IdentifyTypeEnum",
"included": 1,
"storageOption": "RAM",
"singleton": 0,
diff --git a/examples/chef/devices/rootnode_lightsensor_lZQycTFcJK.matter b/examples/chef/devices/rootnode_lightsensor_lZQycTFcJK.matter
index b4ef5d3..3820a6a 100644
--- a/examples/chef/devices/rootnode_lightsensor_lZQycTFcJK.matter
+++ b/examples/chef/devices/rootnode_lightsensor_lZQycTFcJK.matter
@@ -13,7 +13,7 @@
/** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */
server cluster Identify = 3 {
- enum IdentifyEffectIdentifier : ENUM8 {
+ enum EffectIdentifierEnum : ENUM8 {
kBlink = 0;
kBreathe = 1;
kOkay = 2;
@@ -22,21 +22,21 @@
kStopEffect = 255;
}
- enum IdentifyEffectVariant : ENUM8 {
+ enum EffectVariantEnum : ENUM8 {
kDefault = 0;
}
- enum IdentifyIdentifyType : ENUM8 {
+ enum IdentifyTypeEnum : ENUM8 {
kNone = 0;
- kVisibleLight = 1;
- kVisibleLED = 2;
+ kLightOutput = 1;
+ kVisibleIndicator = 2;
kAudibleBeep = 3;
kDisplay = 4;
kActuator = 5;
}
attribute int16u identifyTime = 0;
- readonly attribute enum8 identifyType = 1;
+ readonly attribute IdentifyTypeEnum identifyType = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
diff --git a/examples/chef/devices/rootnode_lightsensor_lZQycTFcJK.zap b/examples/chef/devices/rootnode_lightsensor_lZQycTFcJK.zap
index 7df7126..a321d2b 100644
--- a/examples/chef/devices/rootnode_lightsensor_lZQycTFcJK.zap
+++ b/examples/chef/devices/rootnode_lightsensor_lZQycTFcJK.zap
@@ -5480,7 +5480,7 @@
"code": 1,
"mfgCode": null,
"side": "server",
- "type": "enum8",
+ "type": "IdentifyTypeEnum",
"included": 1,
"storageOption": "RAM",
"singleton": 0,
diff --git a/examples/chef/devices/rootnode_occupancysensor_iHyVgifZuo.matter b/examples/chef/devices/rootnode_occupancysensor_iHyVgifZuo.matter
index 3e0244a..ced95fb 100644
--- a/examples/chef/devices/rootnode_occupancysensor_iHyVgifZuo.matter
+++ b/examples/chef/devices/rootnode_occupancysensor_iHyVgifZuo.matter
@@ -13,7 +13,7 @@
/** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */
server cluster Identify = 3 {
- enum IdentifyEffectIdentifier : ENUM8 {
+ enum EffectIdentifierEnum : ENUM8 {
kBlink = 0;
kBreathe = 1;
kOkay = 2;
@@ -22,21 +22,21 @@
kStopEffect = 255;
}
- enum IdentifyEffectVariant : ENUM8 {
+ enum EffectVariantEnum : ENUM8 {
kDefault = 0;
}
- enum IdentifyIdentifyType : ENUM8 {
+ enum IdentifyTypeEnum : ENUM8 {
kNone = 0;
- kVisibleLight = 1;
- kVisibleLED = 2;
+ kLightOutput = 1;
+ kVisibleIndicator = 2;
kAudibleBeep = 3;
kDisplay = 4;
kActuator = 5;
}
attribute int16u identifyTime = 0;
- readonly attribute enum8 identifyType = 1;
+ readonly attribute IdentifyTypeEnum identifyType = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
diff --git a/examples/chef/devices/rootnode_occupancysensor_iHyVgifZuo.zap b/examples/chef/devices/rootnode_occupancysensor_iHyVgifZuo.zap
index dbfe3e8..c19b17b 100644
--- a/examples/chef/devices/rootnode_occupancysensor_iHyVgifZuo.zap
+++ b/examples/chef/devices/rootnode_occupancysensor_iHyVgifZuo.zap
@@ -5480,7 +5480,7 @@
"code": 1,
"mfgCode": null,
"side": "server",
- "type": "enum8",
+ "type": "IdentifyTypeEnum",
"included": 1,
"storageOption": "RAM",
"singleton": 0,
diff --git a/examples/chef/devices/rootnode_onofflight_bbs1b7IaOV.matter b/examples/chef/devices/rootnode_onofflight_bbs1b7IaOV.matter
index d1e2a04..b061252 100644
--- a/examples/chef/devices/rootnode_onofflight_bbs1b7IaOV.matter
+++ b/examples/chef/devices/rootnode_onofflight_bbs1b7IaOV.matter
@@ -13,7 +13,7 @@
/** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */
server cluster Identify = 3 {
- enum IdentifyEffectIdentifier : ENUM8 {
+ enum EffectIdentifierEnum : ENUM8 {
kBlink = 0;
kBreathe = 1;
kOkay = 2;
@@ -22,21 +22,21 @@
kStopEffect = 255;
}
- enum IdentifyEffectVariant : ENUM8 {
+ enum EffectVariantEnum : ENUM8 {
kDefault = 0;
}
- enum IdentifyIdentifyType : ENUM8 {
+ enum IdentifyTypeEnum : ENUM8 {
kNone = 0;
- kVisibleLight = 1;
- kVisibleLED = 2;
+ kLightOutput = 1;
+ kVisibleIndicator = 2;
kAudibleBeep = 3;
kDisplay = 4;
kActuator = 5;
}
attribute int16u identifyTime = 0;
- readonly attribute enum8 identifyType = 1;
+ readonly attribute IdentifyTypeEnum identifyType = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
diff --git a/examples/chef/devices/rootnode_onofflight_bbs1b7IaOV.zap b/examples/chef/devices/rootnode_onofflight_bbs1b7IaOV.zap
index 6f2c666..6f557a2 100644
--- a/examples/chef/devices/rootnode_onofflight_bbs1b7IaOV.zap
+++ b/examples/chef/devices/rootnode_onofflight_bbs1b7IaOV.zap
@@ -5480,7 +5480,7 @@
"code": 1,
"mfgCode": null,
"side": "server",
- "type": "enum8",
+ "type": "IdentifyTypeEnum",
"included": 1,
"storageOption": "RAM",
"singleton": 0,
diff --git a/examples/chef/devices/rootnode_onofflightswitch_FsPlMr090Q.matter b/examples/chef/devices/rootnode_onofflightswitch_FsPlMr090Q.matter
index 534be03..6975bc6 100644
--- a/examples/chef/devices/rootnode_onofflightswitch_FsPlMr090Q.matter
+++ b/examples/chef/devices/rootnode_onofflightswitch_FsPlMr090Q.matter
@@ -13,7 +13,7 @@
/** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */
server cluster Identify = 3 {
- enum IdentifyEffectIdentifier : ENUM8 {
+ enum EffectIdentifierEnum : ENUM8 {
kBlink = 0;
kBreathe = 1;
kOkay = 2;
@@ -22,21 +22,21 @@
kStopEffect = 255;
}
- enum IdentifyEffectVariant : ENUM8 {
+ enum EffectVariantEnum : ENUM8 {
kDefault = 0;
}
- enum IdentifyIdentifyType : ENUM8 {
+ enum IdentifyTypeEnum : ENUM8 {
kNone = 0;
- kVisibleLight = 1;
- kVisibleLED = 2;
+ kLightOutput = 1;
+ kVisibleIndicator = 2;
kAudibleBeep = 3;
kDisplay = 4;
kActuator = 5;
}
attribute int16u identifyTime = 0;
- readonly attribute enum8 identifyType = 1;
+ readonly attribute IdentifyTypeEnum identifyType = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
diff --git a/examples/chef/devices/rootnode_onofflightswitch_FsPlMr090Q.zap b/examples/chef/devices/rootnode_onofflightswitch_FsPlMr090Q.zap
index 97a00a6..a351b6a 100644
--- a/examples/chef/devices/rootnode_onofflightswitch_FsPlMr090Q.zap
+++ b/examples/chef/devices/rootnode_onofflightswitch_FsPlMr090Q.zap
@@ -5480,7 +5480,7 @@
"code": 1,
"mfgCode": null,
"side": "server",
- "type": "enum8",
+ "type": "IdentifyTypeEnum",
"included": 1,
"storageOption": "RAM",
"singleton": 0,
diff --git a/examples/chef/devices/rootnode_onoffpluginunit_Wtf8ss5EBY.matter b/examples/chef/devices/rootnode_onoffpluginunit_Wtf8ss5EBY.matter
index 5313ccd..116b20a 100644
--- a/examples/chef/devices/rootnode_onoffpluginunit_Wtf8ss5EBY.matter
+++ b/examples/chef/devices/rootnode_onoffpluginunit_Wtf8ss5EBY.matter
@@ -13,7 +13,7 @@
/** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */
server cluster Identify = 3 {
- enum IdentifyEffectIdentifier : ENUM8 {
+ enum EffectIdentifierEnum : ENUM8 {
kBlink = 0;
kBreathe = 1;
kOkay = 2;
@@ -22,21 +22,21 @@
kStopEffect = 255;
}
- enum IdentifyEffectVariant : ENUM8 {
+ enum EffectVariantEnum : ENUM8 {
kDefault = 0;
}
- enum IdentifyIdentifyType : ENUM8 {
+ enum IdentifyTypeEnum : ENUM8 {
kNone = 0;
- kVisibleLight = 1;
- kVisibleLED = 2;
+ kLightOutput = 1;
+ kVisibleIndicator = 2;
kAudibleBeep = 3;
kDisplay = 4;
kActuator = 5;
}
attribute int16u identifyTime = 0;
- readonly attribute enum8 identifyType = 1;
+ readonly attribute IdentifyTypeEnum identifyType = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
diff --git a/examples/chef/devices/rootnode_onoffpluginunit_Wtf8ss5EBY.zap b/examples/chef/devices/rootnode_onoffpluginunit_Wtf8ss5EBY.zap
index d3cd82c..2d1328a 100644
--- a/examples/chef/devices/rootnode_onoffpluginunit_Wtf8ss5EBY.zap
+++ b/examples/chef/devices/rootnode_onoffpluginunit_Wtf8ss5EBY.zap
@@ -5480,7 +5480,7 @@
"code": 1,
"mfgCode": null,
"side": "server",
- "type": "enum8",
+ "type": "IdentifyTypeEnum",
"included": 1,
"storageOption": "RAM",
"singleton": 0,
diff --git a/examples/chef/devices/rootnode_pressuresensor_s0qC9wLH4k.matter b/examples/chef/devices/rootnode_pressuresensor_s0qC9wLH4k.matter
index c74e006..5e25edb 100644
--- a/examples/chef/devices/rootnode_pressuresensor_s0qC9wLH4k.matter
+++ b/examples/chef/devices/rootnode_pressuresensor_s0qC9wLH4k.matter
@@ -13,7 +13,7 @@
/** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */
server cluster Identify = 3 {
- enum IdentifyEffectIdentifier : ENUM8 {
+ enum EffectIdentifierEnum : ENUM8 {
kBlink = 0;
kBreathe = 1;
kOkay = 2;
@@ -22,21 +22,21 @@
kStopEffect = 255;
}
- enum IdentifyEffectVariant : ENUM8 {
+ enum EffectVariantEnum : ENUM8 {
kDefault = 0;
}
- enum IdentifyIdentifyType : ENUM8 {
+ enum IdentifyTypeEnum : ENUM8 {
kNone = 0;
- kVisibleLight = 1;
- kVisibleLED = 2;
+ kLightOutput = 1;
+ kVisibleIndicator = 2;
kAudibleBeep = 3;
kDisplay = 4;
kActuator = 5;
}
attribute int16u identifyTime = 0;
- readonly attribute enum8 identifyType = 1;
+ readonly attribute IdentifyTypeEnum identifyType = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
diff --git a/examples/chef/devices/rootnode_pressuresensor_s0qC9wLH4k.zap b/examples/chef/devices/rootnode_pressuresensor_s0qC9wLH4k.zap
index 43b4f4d..45d9a02 100644
--- a/examples/chef/devices/rootnode_pressuresensor_s0qC9wLH4k.zap
+++ b/examples/chef/devices/rootnode_pressuresensor_s0qC9wLH4k.zap
@@ -5480,7 +5480,7 @@
"code": 1,
"mfgCode": null,
"side": "server",
- "type": "enum8",
+ "type": "IdentifyTypeEnum",
"included": 1,
"storageOption": "RAM",
"singleton": 0,
diff --git a/examples/chef/devices/rootnode_pump_a811bb33a0.matter b/examples/chef/devices/rootnode_pump_a811bb33a0.matter
index 7a6dcd9..23bc7c1 100644
--- a/examples/chef/devices/rootnode_pump_a811bb33a0.matter
+++ b/examples/chef/devices/rootnode_pump_a811bb33a0.matter
@@ -13,7 +13,7 @@
/** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */
server cluster Identify = 3 {
- enum IdentifyEffectIdentifier : ENUM8 {
+ enum EffectIdentifierEnum : ENUM8 {
kBlink = 0;
kBreathe = 1;
kOkay = 2;
@@ -22,21 +22,21 @@
kStopEffect = 255;
}
- enum IdentifyEffectVariant : ENUM8 {
+ enum EffectVariantEnum : ENUM8 {
kDefault = 0;
}
- enum IdentifyIdentifyType : ENUM8 {
+ enum IdentifyTypeEnum : ENUM8 {
kNone = 0;
- kVisibleLight = 1;
- kVisibleLED = 2;
+ kLightOutput = 1;
+ kVisibleIndicator = 2;
kAudibleBeep = 3;
kDisplay = 4;
kActuator = 5;
}
attribute int16u identifyTime = 0;
- readonly attribute enum8 identifyType = 1;
+ readonly attribute IdentifyTypeEnum identifyType = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
@@ -49,8 +49,8 @@
}
request struct TriggerEffectRequest {
- IdentifyEffectIdentifier effectIdentifier = 0;
- IdentifyEffectVariant effectVariant = 1;
+ EffectIdentifierEnum effectIdentifier = 0;
+ EffectVariantEnum effectVariant = 1;
}
command access(invoke: manage) Identify(IdentifyRequest): DefaultSuccess = 0;
diff --git a/examples/chef/devices/rootnode_pump_a811bb33a0.zap b/examples/chef/devices/rootnode_pump_a811bb33a0.zap
index b24bf3e..af6d260 100644
--- a/examples/chef/devices/rootnode_pump_a811bb33a0.zap
+++ b/examples/chef/devices/rootnode_pump_a811bb33a0.zap
@@ -6309,7 +6309,7 @@
"code": 1,
"mfgCode": null,
"side": "server",
- "type": "enum8",
+ "type": "IdentifyTypeEnum",
"included": 1,
"storageOption": "RAM",
"singleton": 0,
diff --git a/examples/chef/devices/rootnode_speaker_RpzeXdimqA.matter b/examples/chef/devices/rootnode_speaker_RpzeXdimqA.matter
index a854dc7..a52f5c0 100644
--- a/examples/chef/devices/rootnode_speaker_RpzeXdimqA.matter
+++ b/examples/chef/devices/rootnode_speaker_RpzeXdimqA.matter
@@ -13,7 +13,7 @@
/** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */
server cluster Identify = 3 {
- enum IdentifyEffectIdentifier : ENUM8 {
+ enum EffectIdentifierEnum : ENUM8 {
kBlink = 0;
kBreathe = 1;
kOkay = 2;
@@ -22,21 +22,21 @@
kStopEffect = 255;
}
- enum IdentifyEffectVariant : ENUM8 {
+ enum EffectVariantEnum : ENUM8 {
kDefault = 0;
}
- enum IdentifyIdentifyType : ENUM8 {
+ enum IdentifyTypeEnum : ENUM8 {
kNone = 0;
- kVisibleLight = 1;
- kVisibleLED = 2;
+ kLightOutput = 1;
+ kVisibleIndicator = 2;
kAudibleBeep = 3;
kDisplay = 4;
kActuator = 5;
}
attribute int16u identifyTime = 0;
- readonly attribute enum8 identifyType = 1;
+ readonly attribute IdentifyTypeEnum identifyType = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
diff --git a/examples/chef/devices/rootnode_speaker_RpzeXdimqA.zap b/examples/chef/devices/rootnode_speaker_RpzeXdimqA.zap
index a6a959c..6e54444 100644
--- a/examples/chef/devices/rootnode_speaker_RpzeXdimqA.zap
+++ b/examples/chef/devices/rootnode_speaker_RpzeXdimqA.zap
@@ -5480,7 +5480,7 @@
"code": 1,
"mfgCode": null,
"side": "server",
- "type": "enum8",
+ "type": "IdentifyTypeEnum",
"included": 1,
"storageOption": "RAM",
"singleton": 0,
diff --git a/examples/chef/devices/rootnode_temperaturesensor_Qy1zkNW7c3.matter b/examples/chef/devices/rootnode_temperaturesensor_Qy1zkNW7c3.matter
index 3f1ab70..98ee9f3 100644
--- a/examples/chef/devices/rootnode_temperaturesensor_Qy1zkNW7c3.matter
+++ b/examples/chef/devices/rootnode_temperaturesensor_Qy1zkNW7c3.matter
@@ -13,7 +13,7 @@
/** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */
server cluster Identify = 3 {
- enum IdentifyEffectIdentifier : ENUM8 {
+ enum EffectIdentifierEnum : ENUM8 {
kBlink = 0;
kBreathe = 1;
kOkay = 2;
@@ -22,21 +22,21 @@
kStopEffect = 255;
}
- enum IdentifyEffectVariant : ENUM8 {
+ enum EffectVariantEnum : ENUM8 {
kDefault = 0;
}
- enum IdentifyIdentifyType : ENUM8 {
+ enum IdentifyTypeEnum : ENUM8 {
kNone = 0;
- kVisibleLight = 1;
- kVisibleLED = 2;
+ kLightOutput = 1;
+ kVisibleIndicator = 2;
kAudibleBeep = 3;
kDisplay = 4;
kActuator = 5;
}
attribute int16u identifyTime = 0;
- readonly attribute enum8 identifyType = 1;
+ readonly attribute IdentifyTypeEnum identifyType = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
diff --git a/examples/chef/devices/rootnode_temperaturesensor_Qy1zkNW7c3.zap b/examples/chef/devices/rootnode_temperaturesensor_Qy1zkNW7c3.zap
index 7460448..c205b1d 100644
--- a/examples/chef/devices/rootnode_temperaturesensor_Qy1zkNW7c3.zap
+++ b/examples/chef/devices/rootnode_temperaturesensor_Qy1zkNW7c3.zap
@@ -5480,7 +5480,7 @@
"code": 1,
"mfgCode": null,
"side": "server",
- "type": "enum8",
+ "type": "IdentifyTypeEnum",
"included": 1,
"storageOption": "RAM",
"singleton": 0,
diff --git a/examples/chef/devices/rootnode_thermostat_bm3fb8dhYi.matter b/examples/chef/devices/rootnode_thermostat_bm3fb8dhYi.matter
index 3c40b49..17d0226 100644
--- a/examples/chef/devices/rootnode_thermostat_bm3fb8dhYi.matter
+++ b/examples/chef/devices/rootnode_thermostat_bm3fb8dhYi.matter
@@ -13,7 +13,7 @@
/** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */
server cluster Identify = 3 {
- enum IdentifyEffectIdentifier : ENUM8 {
+ enum EffectIdentifierEnum : ENUM8 {
kBlink = 0;
kBreathe = 1;
kOkay = 2;
@@ -22,21 +22,21 @@
kStopEffect = 255;
}
- enum IdentifyEffectVariant : ENUM8 {
+ enum EffectVariantEnum : ENUM8 {
kDefault = 0;
}
- enum IdentifyIdentifyType : ENUM8 {
+ enum IdentifyTypeEnum : ENUM8 {
kNone = 0;
- kVisibleLight = 1;
- kVisibleLED = 2;
+ kLightOutput = 1;
+ kVisibleIndicator = 2;
kAudibleBeep = 3;
kDisplay = 4;
kActuator = 5;
}
attribute int16u identifyTime = 0;
- readonly attribute enum8 identifyType = 1;
+ readonly attribute IdentifyTypeEnum identifyType = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
diff --git a/examples/chef/devices/rootnode_thermostat_bm3fb8dhYi.zap b/examples/chef/devices/rootnode_thermostat_bm3fb8dhYi.zap
index e8db2a4..32bc098 100644
--- a/examples/chef/devices/rootnode_thermostat_bm3fb8dhYi.zap
+++ b/examples/chef/devices/rootnode_thermostat_bm3fb8dhYi.zap
@@ -5528,7 +5528,7 @@
"code": 1,
"mfgCode": null,
"side": "server",
- "type": "enum8",
+ "type": "IdentifyTypeEnum",
"included": 1,
"storageOption": "RAM",
"singleton": 0,
diff --git a/examples/chef/devices/rootnode_windowcovering_RLCxaGi9Yx.matter b/examples/chef/devices/rootnode_windowcovering_RLCxaGi9Yx.matter
index 504db5e..70cbdc1 100644
--- a/examples/chef/devices/rootnode_windowcovering_RLCxaGi9Yx.matter
+++ b/examples/chef/devices/rootnode_windowcovering_RLCxaGi9Yx.matter
@@ -13,7 +13,7 @@
/** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */
server cluster Identify = 3 {
- enum IdentifyEffectIdentifier : ENUM8 {
+ enum EffectIdentifierEnum : ENUM8 {
kBlink = 0;
kBreathe = 1;
kOkay = 2;
@@ -22,21 +22,21 @@
kStopEffect = 255;
}
- enum IdentifyEffectVariant : ENUM8 {
+ enum EffectVariantEnum : ENUM8 {
kDefault = 0;
}
- enum IdentifyIdentifyType : ENUM8 {
+ enum IdentifyTypeEnum : ENUM8 {
kNone = 0;
- kVisibleLight = 1;
- kVisibleLED = 2;
+ kLightOutput = 1;
+ kVisibleIndicator = 2;
kAudibleBeep = 3;
kDisplay = 4;
kActuator = 5;
}
attribute int16u identifyTime = 0;
- readonly attribute enum8 identifyType = 1;
+ readonly attribute IdentifyTypeEnum identifyType = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
diff --git a/examples/chef/devices/rootnode_windowcovering_RLCxaGi9Yx.zap b/examples/chef/devices/rootnode_windowcovering_RLCxaGi9Yx.zap
index fdf5901..fac7b92 100644
--- a/examples/chef/devices/rootnode_windowcovering_RLCxaGi9Yx.zap
+++ b/examples/chef/devices/rootnode_windowcovering_RLCxaGi9Yx.zap
@@ -5480,7 +5480,7 @@
"code": 1,
"mfgCode": null,
"side": "server",
- "type": "enum8",
+ "type": "IdentifyTypeEnum",
"included": 1,
"storageOption": "RAM",
"singleton": 0,
diff --git a/examples/chef/silabs/src/AppTask.cpp b/examples/chef/silabs/src/AppTask.cpp
index d166243..fca7a76 100644
--- a/examples/chef/silabs/src/AppTask.cpp
+++ b/examples/chef/silabs/src/AppTask.cpp
@@ -54,19 +54,20 @@
#define APP_FUNCTION_BUTTON 0
using namespace chip;
+using namespace chip::app;
using namespace ::chip::DeviceLayer;
namespace {
#ifdef EMBER_AF_PLUGIN_IDENTIFY_SERVER
-EmberAfIdentifyEffectIdentifier sIdentifyEffect = EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_STOP_EFFECT;
+Clusters::Identify::EffectIdentifierEnum sIdentifyEffect = Clusters::Identify::EffectIdentifierEnum::kStopEffect;
#endif // EMBER_AF_PLUGIN_IDENTIFY_SERVER
namespace {
#ifdef EMBER_AF_PLUGIN_IDENTIFY_SERVER
void OnTriggerIdentifyEffectCompleted(chip::System::Layer * systemLayer, void * appState)
{
- sIdentifyEffect = EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_STOP_EFFECT;
+ sIdentifyEffect = Clusters::Identify::EffectIdentifierEnum::kStopEffect;
}
#endif // EMBER_AF_PLUGIN_IDENTIFY_SERVER
} // namespace
@@ -76,29 +77,29 @@
{
sIdentifyEffect = identify->mCurrentEffectIdentifier;
- if (identify->mCurrentEffectIdentifier == EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_CHANNEL_CHANGE)
+ if (identify->mCurrentEffectIdentifier == Clusters::Identify::EffectIdentifierEnum::kChannelChange)
{
ChipLogProgress(Zcl, "IDENTIFY_EFFECT_IDENTIFIER_CHANNEL_CHANGE - Not supported, use effect varriant %d",
- identify->mEffectVariant);
- sIdentifyEffect = static_cast<EmberAfIdentifyEffectIdentifier>(identify->mEffectVariant);
+ to_underlying(identify->mEffectVariant));
+ sIdentifyEffect = static_cast<Clusters::Identify::EffectIdentifierEnum>(identify->mEffectVariant);
}
switch (sIdentifyEffect)
{
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BLINK:
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BREATHE:
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_OKAY:
+ case Clusters::Identify::EffectIdentifierEnum::kBlink:
+ case Clusters::Identify::EffectIdentifierEnum::kBreathe:
+ case Clusters::Identify::EffectIdentifierEnum::kOkay:
(void) chip::DeviceLayer::SystemLayer().StartTimer(chip::System::Clock::Seconds16(5), OnTriggerIdentifyEffectCompleted,
identify);
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_FINISH_EFFECT:
+ case Clusters::Identify::EffectIdentifierEnum::kFinishEffect:
(void) chip::DeviceLayer::SystemLayer().CancelTimer(OnTriggerIdentifyEffectCompleted, identify);
(void) chip::DeviceLayer::SystemLayer().StartTimer(chip::System::Clock::Seconds16(1), OnTriggerIdentifyEffectCompleted,
identify);
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_STOP_EFFECT:
+ case Clusters::Identify::EffectIdentifierEnum::kStopEffect:
(void) chip::DeviceLayer::SystemLayer().CancelTimer(OnTriggerIdentifyEffectCompleted, identify);
- sIdentifyEffect = EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_STOP_EFFECT;
+ sIdentifyEffect = Clusters::Identify::EffectIdentifierEnum::kStopEffect;
break;
default:
ChipLogProgress(Zcl, "No identifier effect");
@@ -111,7 +112,7 @@
chip::EndpointId{ 1 },
[](Identify *) { ChipLogProgress(Zcl, "onIdentifyStart"); },
[](Identify *) { ChipLogProgress(Zcl, "onIdentifyStop"); },
- EMBER_ZCL_IDENTIFY_IDENTIFY_TYPE_VISIBLE_LED,
+ Clusters::Identify::IdentifyTypeEnum::kVisibleIndicator,
OnTriggerIdentifyEffect,
};
#endif // EMBER_AF_PLUGIN_IDENTIFY_SERVER
diff --git a/examples/contact-sensor-app/contact-sensor-common/contact-sensor-app.matter b/examples/contact-sensor-app/contact-sensor-common/contact-sensor-app.matter
index 0b2f623..f917642 100644
--- a/examples/contact-sensor-app/contact-sensor-common/contact-sensor-app.matter
+++ b/examples/contact-sensor-app/contact-sensor-common/contact-sensor-app.matter
@@ -13,7 +13,7 @@
/** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */
server cluster Identify = 3 {
- enum IdentifyEffectIdentifier : ENUM8 {
+ enum EffectIdentifierEnum : ENUM8 {
kBlink = 0;
kBreathe = 1;
kOkay = 2;
@@ -22,21 +22,21 @@
kStopEffect = 255;
}
- enum IdentifyEffectVariant : ENUM8 {
+ enum EffectVariantEnum : ENUM8 {
kDefault = 0;
}
- enum IdentifyIdentifyType : ENUM8 {
+ enum IdentifyTypeEnum : ENUM8 {
kNone = 0;
- kVisibleLight = 1;
- kVisibleLED = 2;
+ kLightOutput = 1;
+ kVisibleIndicator = 2;
kAudibleBeep = 3;
kDisplay = 4;
kActuator = 5;
}
attribute int16u identifyTime = 0;
- readonly attribute enum8 identifyType = 1;
+ readonly attribute IdentifyTypeEnum identifyType = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
@@ -49,8 +49,8 @@
}
request struct TriggerEffectRequest {
- IdentifyEffectIdentifier effectIdentifier = 0;
- IdentifyEffectVariant effectVariant = 1;
+ EffectIdentifierEnum effectIdentifier = 0;
+ EffectVariantEnum effectVariant = 1;
}
command access(invoke: manage) Identify(IdentifyRequest): DefaultSuccess = 0;
diff --git a/examples/contact-sensor-app/contact-sensor-common/contact-sensor-app.zap b/examples/contact-sensor-app/contact-sensor-common/contact-sensor-app.zap
index 36ab94f..990672e 100644
--- a/examples/contact-sensor-app/contact-sensor-common/contact-sensor-app.zap
+++ b/examples/contact-sensor-app/contact-sensor-common/contact-sensor-app.zap
@@ -5479,7 +5479,7 @@
"code": 1,
"mfgCode": null,
"side": "server",
- "type": "enum8",
+ "type": "IdentifyTypeEnum",
"included": 1,
"storageOption": "RAM",
"singleton": 0,
diff --git a/examples/contact-sensor-app/nxp/k32w/k32w0/main/AppTask.cpp b/examples/contact-sensor-app/nxp/k32w/k32w0/main/AppTask.cpp
index c4332df..3630e58 100644
--- a/examples/contact-sensor-app/nxp/k32w/k32w0/main/AppTask.cpp
+++ b/examples/contact-sensor-app/nxp/k32w/k32w0/main/AppTask.cpp
@@ -82,11 +82,12 @@
using namespace ::chip::Credentials;
using namespace ::chip::DeviceLayer;
using namespace chip;
+using namespace chip::app;
AppTask AppTask::sAppTask;
static Identify gIdentify = { chip::EndpointId{ 1 }, AppTask::OnIdentifyStart, AppTask::OnIdentifyStop,
- EMBER_ZCL_IDENTIFY_IDENTIFY_TYPE_VISIBLE_LED };
+ Clusters::Identify::IdentifyTypeEnum::kVisibleIndicator };
/* OTA related variables */
#if CHIP_DEVICE_CONFIG_ENABLE_OTA_REQUESTOR
@@ -723,7 +724,7 @@
void AppTask::OnIdentifyStart(Identify * identify)
{
- if (EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BLINK == identify->mCurrentEffectIdentifier)
+ if (Clusters::Identify::EffectIdentifierEnum::kBlink == identify->mCurrentEffectIdentifier)
{
if (Function::kNoneSelected != sAppTask.mFunction)
{
@@ -741,7 +742,7 @@
void AppTask::OnIdentifyStop(Identify * identify)
{
- if (EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BLINK == identify->mCurrentEffectIdentifier)
+ if (Clusters::Identify::EffectIdentifierEnum::kBlink == identify->mCurrentEffectIdentifier)
{
K32W_LOG("Identify process has stopped.");
sAppTask.mFunction = Function::kNoneSelected;
diff --git a/examples/contact-sensor-app/telink/README.md b/examples/contact-sensor-app/telink/README.md
index d6c8bd7..d8d60e6 100755
--- a/examples/contact-sensor-app/telink/README.md
+++ b/examples/contact-sensor-app/telink/README.md
@@ -81,14 +81,14 @@
Identify command of the Identify cluster is received. The command's argument can
be used to specify the the effect. It is able to be in following effects:
-| Effect | Description |
-| :------------------------------ | :------------------------------------------------------------------- |
-| Blinks (200 ms on/200 ms off) | Blink (EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BLINK) |
-| Breathe (during 1000 ms) | Breathe (EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BREATHE) |
-| Blinks (50 ms on/950 ms off) | Okay (EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_OKAY) |
-| Blinks (1000 ms on/1000 ms off) | Channel Change (EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_CHANNEL_CHANGE) |
-| Blinks (950 ms on/50 ms off) | Finish (EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_FINISH_EFFECT) |
-| LED off | Stop (EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_STOP_EFFECT) |
+| Effect | Description |
+| :------------------------------ | :--------------------------------------------------------------------------- |
+| Blinks (200 ms on/200 ms off) | Blink (`Clusters::Identify::EffectIdentifierEnum::kBlink`) |
+| Breathe (during 1000 ms) | Breathe (`Clusters::Identify::EffectIdentifierEnum::kBreathe`) |
+| Blinks (50 ms on/950 ms off) | Okay (`Clusters::Identify::EffectIdentifierEnum::kOkay`) |
+| Blinks (1000 ms on/1000 ms off) | Channel Change ( `Clusters::Identify::EffectIdentifierEnum::kChannelChange`) |
+| Blinks (950 ms on/50 ms off) | Finish ( `Clusters::Identify::EffectIdentifierEnum::kFinishEffect`) |
+| LED off | Stop (`Clusters::Identify::EffectIdentifierEnum::kStopEffect`) |
#### Indicate current state of Contact Sensor
diff --git a/examples/dynamic-bridge-app/bridge-common/bridge-app.matter b/examples/dynamic-bridge-app/bridge-common/bridge-app.matter
index fe52398..b10efb5 100644
--- a/examples/dynamic-bridge-app/bridge-common/bridge-app.matter
+++ b/examples/dynamic-bridge-app/bridge-common/bridge-app.matter
@@ -13,7 +13,7 @@
/** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */
server cluster Identify = 3 {
- enum IdentifyEffectIdentifier : ENUM8 {
+ enum EffectIdentifierEnum : ENUM8 {
kBlink = 0;
kBreathe = 1;
kOkay = 2;
@@ -22,21 +22,21 @@
kStopEffect = 255;
}
- enum IdentifyEffectVariant : ENUM8 {
+ enum EffectVariantEnum : ENUM8 {
kDefault = 0;
}
- enum IdentifyIdentifyType : ENUM8 {
+ enum IdentifyTypeEnum : ENUM8 {
kNone = 0;
- kVisibleLight = 1;
- kVisibleLED = 2;
+ kLightOutput = 1;
+ kVisibleIndicator = 2;
kAudibleBeep = 3;
kDisplay = 4;
kActuator = 5;
}
attribute int16u identifyTime = 0;
- readonly attribute enum8 identifyType = 1;
+ readonly attribute IdentifyTypeEnum identifyType = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
@@ -49,8 +49,8 @@
}
request struct TriggerEffectRequest {
- IdentifyEffectIdentifier effectIdentifier = 0;
- IdentifyEffectVariant effectVariant = 1;
+ EffectIdentifierEnum effectIdentifier = 0;
+ EffectVariantEnum effectVariant = 1;
}
command access(invoke: manage) Identify(IdentifyRequest): DefaultSuccess = 0;
diff --git a/examples/dynamic-bridge-app/bridge-common/bridge-app.zap b/examples/dynamic-bridge-app/bridge-common/bridge-app.zap
index c6fab6c..4b3a07c 100644
--- a/examples/dynamic-bridge-app/bridge-common/bridge-app.zap
+++ b/examples/dynamic-bridge-app/bridge-common/bridge-app.zap
@@ -5110,7 +5110,7 @@
"code": 1,
"mfgCode": null,
"side": "server",
- "type": "enum8",
+ "type": "IdentifyTypeEnum",
"included": 1,
"storageOption": "RAM",
"singleton": 0,
diff --git a/examples/light-switch-app/ameba/main/chipinterface.cpp b/examples/light-switch-app/ameba/main/chipinterface.cpp
index 7bc5c3e..81cb25a 100644
--- a/examples/light-switch-app/ameba/main/chipinterface.cpp
+++ b/examples/light-switch-app/ameba/main/chipinterface.cpp
@@ -48,6 +48,7 @@
#endif
using namespace ::chip;
+using namespace ::chip::app;
using namespace ::chip::DeviceManager;
using namespace ::chip::DeviceLayer;
using namespace ::chip::System;
@@ -73,14 +74,14 @@
chip::EndpointId{ 0 },
[](Identify *) { ChipLogProgress(Zcl, "onIdentifyStart"); },
[](Identify *) { ChipLogProgress(Zcl, "onIdentifyStop"); },
- EMBER_ZCL_IDENTIFY_IDENTIFY_TYPE_VISIBLE_LED,
+ Clusters::Identify::IdentifyTypeEnum::kVisibleIndicator,
};
Identify gIdentify1 = {
chip::EndpointId{ 1 },
[](Identify *) { ChipLogProgress(Zcl, "onIdentifyStart"); },
[](Identify *) { ChipLogProgress(Zcl, "onIdentifyStop"); },
- EMBER_ZCL_IDENTIFY_IDENTIFY_TYPE_VISIBLE_LED,
+ Clusters::Identify::IdentifyTypeEnum::kVisibleIndicator,
};
#ifdef CONFIG_PLATFORM_8721D
diff --git a/examples/light-switch-app/infineon/cyw30739/src/main.cpp b/examples/light-switch-app/infineon/cyw30739/src/main.cpp
index c828788..dbfdb81 100644
--- a/examples/light-switch-app/infineon/cyw30739/src/main.cpp
+++ b/examples/light-switch-app/infineon/cyw30739/src/main.cpp
@@ -46,6 +46,7 @@
using namespace ::chip::Credentials;
using namespace ::chip::DeviceLayer;
using namespace ::chip::Shell;
+using namespace ::chip::app;
constexpr chip::EndpointId kLightDimmerSwitchEndpointId = 1;
@@ -72,17 +73,17 @@
{
switch (identify->mCurrentEffectIdentifier)
{
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BLINK:
- ChipLogProgress(Zcl, "EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BLINK");
+ case Clusters::Identify::EffectIdentifierEnum::kBlink:
+ ChipLogProgress(Zcl, "Clusters::Identify::EffectIdentifierEnum::kBlink");
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BREATHE:
- ChipLogProgress(Zcl, "EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BREATHE");
+ case Clusters::Identify::EffectIdentifierEnum::kBreathe:
+ ChipLogProgress(Zcl, "Clusters::Identify::EffectIdentifierEnum::kBreathe");
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_OKAY:
- ChipLogProgress(Zcl, "EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_OKAY");
+ case Clusters::Identify::EffectIdentifierEnum::kOkay:
+ ChipLogProgress(Zcl, "Clusters::Identify::EffectIdentifierEnum::kOkay");
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_CHANNEL_CHANGE:
- ChipLogProgress(Zcl, "EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_CHANNEL_CHANGE");
+ case Clusters::Identify::EffectIdentifierEnum::kChannelChange:
+ ChipLogProgress(Zcl, "Clusters::Identify::EffectIdentifierEnum::kChannelChange");
break;
default:
ChipLogProgress(Zcl, "No identifier effect");
@@ -95,7 +96,7 @@
chip::EndpointId{ 1 },
[](Identify *) { ChipLogProgress(Zcl, "onIdentifyStart"); },
[](Identify *) { ChipLogProgress(Zcl, "onIdentifyStop"); },
- EMBER_ZCL_IDENTIFY_IDENTIFY_TYPE_NONE,
+ Clusters::Identify::IdentifyTypeEnum::kNone,
OnIdentifyTriggerEffect,
};
diff --git a/examples/light-switch-app/light-switch-common/light-switch-app.matter b/examples/light-switch-app/light-switch-common/light-switch-app.matter
index c7ce018..83f7339 100644
--- a/examples/light-switch-app/light-switch-common/light-switch-app.matter
+++ b/examples/light-switch-app/light-switch-common/light-switch-app.matter
@@ -13,7 +13,7 @@
/** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */
client cluster Identify = 3 {
- enum IdentifyEffectIdentifier : ENUM8 {
+ enum EffectIdentifierEnum : ENUM8 {
kBlink = 0;
kBreathe = 1;
kOkay = 2;
@@ -22,21 +22,21 @@
kStopEffect = 255;
}
- enum IdentifyEffectVariant : ENUM8 {
+ enum EffectVariantEnum : ENUM8 {
kDefault = 0;
}
- enum IdentifyIdentifyType : ENUM8 {
+ enum IdentifyTypeEnum : ENUM8 {
kNone = 0;
- kVisibleLight = 1;
- kVisibleLED = 2;
+ kLightOutput = 1;
+ kVisibleIndicator = 2;
kAudibleBeep = 3;
kDisplay = 4;
kActuator = 5;
}
attribute int16u identifyTime = 0;
- readonly attribute enum8 identifyType = 1;
+ readonly attribute IdentifyTypeEnum identifyType = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
@@ -49,8 +49,8 @@
}
request struct TriggerEffectRequest {
- IdentifyEffectIdentifier effectIdentifier = 0;
- IdentifyEffectVariant effectVariant = 1;
+ EffectIdentifierEnum effectIdentifier = 0;
+ EffectVariantEnum effectVariant = 1;
}
/** Command description for Identify */
@@ -61,7 +61,7 @@
/** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */
server cluster Identify = 3 {
- enum IdentifyEffectIdentifier : ENUM8 {
+ enum EffectIdentifierEnum : ENUM8 {
kBlink = 0;
kBreathe = 1;
kOkay = 2;
@@ -70,21 +70,21 @@
kStopEffect = 255;
}
- enum IdentifyEffectVariant : ENUM8 {
+ enum EffectVariantEnum : ENUM8 {
kDefault = 0;
}
- enum IdentifyIdentifyType : ENUM8 {
+ enum IdentifyTypeEnum : ENUM8 {
kNone = 0;
- kVisibleLight = 1;
- kVisibleLED = 2;
+ kLightOutput = 1;
+ kVisibleIndicator = 2;
kAudibleBeep = 3;
kDisplay = 4;
kActuator = 5;
}
attribute int16u identifyTime = 0;
- readonly attribute enum8 identifyType = 1;
+ readonly attribute IdentifyTypeEnum identifyType = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
@@ -97,8 +97,8 @@
}
request struct TriggerEffectRequest {
- IdentifyEffectIdentifier effectIdentifier = 0;
- IdentifyEffectVariant effectVariant = 1;
+ EffectIdentifierEnum effectIdentifier = 0;
+ EffectVariantEnum effectVariant = 1;
}
command access(invoke: manage) Identify(IdentifyRequest): DefaultSuccess = 0;
diff --git a/examples/light-switch-app/light-switch-common/light-switch-app.zap b/examples/light-switch-app/light-switch-common/light-switch-app.zap
index b4c5116..674a2b2 100644
--- a/examples/light-switch-app/light-switch-common/light-switch-app.zap
+++ b/examples/light-switch-app/light-switch-common/light-switch-app.zap
@@ -5461,7 +5461,7 @@
"code": 1,
"mfgCode": null,
"side": "server",
- "type": "enum8",
+ "type": "IdentifyTypeEnum",
"included": 1,
"storageOption": "RAM",
"singleton": 0,
@@ -8109,7 +8109,7 @@
"code": 1,
"mfgCode": null,
"side": "server",
- "type": "enum8",
+ "type": "IdentifyTypeEnum",
"included": 1,
"storageOption": "RAM",
"singleton": 0,
diff --git a/examples/light-switch-app/nrfconnect/main/AppTask.cpp b/examples/light-switch-app/nrfconnect/main/AppTask.cpp
index e77184a..9bc8422 100644
--- a/examples/light-switch-app/nrfconnect/main/AppTask.cpp
+++ b/examples/light-switch-app/nrfconnect/main/AppTask.cpp
@@ -73,7 +73,7 @@
K_MSGQ_DEFINE(sAppEventQueue, sizeof(AppEvent), kAppEventQueueSize, alignof(AppEvent));
Identify sIdentify = { kLightEndpointId, AppTask::IdentifyStartHandler, AppTask::IdentifyStopHandler,
- EMBER_ZCL_IDENTIFY_IDENTIFY_TYPE_VISIBLE_LED };
+ Clusters::Identify::IdentifyTypeEnum::kVisibleIndicator };
// NOTE! This key is for test/certification only and should not be available in production devices!
// If CONFIG_CHIP_FACTORY_DATA is enabled, this value is read from the factory data.
diff --git a/examples/light-switch-app/silabs/src/AppTask.cpp b/examples/light-switch-app/silabs/src/AppTask.cpp
index 38dea28..7274ae5 100644
--- a/examples/light-switch-app/silabs/src/AppTask.cpp
+++ b/examples/light-switch-app/silabs/src/AppTask.cpp
@@ -67,6 +67,7 @@
} // namespace
using namespace chip;
+using namespace chip::app;
using namespace ::chip::DeviceLayer;
using namespace ::chip::DeviceLayer::Silabs;
@@ -76,7 +77,7 @@
* Variable declarations
*********************************************************/
-EmberAfIdentifyEffectIdentifier sIdentifyEffect = EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_STOP_EFFECT;
+Clusters::Identify::EffectIdentifierEnum sIdentifyEffect = Clusters::Identify::EffectIdentifierEnum::kStopEffect;
/**********************************************************
* Identify Callbacks
@@ -86,7 +87,7 @@
void OnTriggerIdentifyEffectCompleted(chip::System::Layer * systemLayer, void * appState)
{
ChipLogProgress(Zcl, "Trigger Identify Complete");
- sIdentifyEffect = EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_STOP_EFFECT;
+ sIdentifyEffect = Clusters::Identify::EffectIdentifierEnum::kStopEffect;
#if CHIP_DEVICE_CONFIG_ENABLE_SED == 1
AppTask::GetAppTask().StopStatusLEDTimer();
@@ -99,11 +100,11 @@
ChipLogProgress(Zcl, "Trigger Identify Effect");
sIdentifyEffect = identify->mCurrentEffectIdentifier;
- if (identify->mCurrentEffectIdentifier == EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_CHANNEL_CHANGE)
+ if (identify->mCurrentEffectIdentifier == Clusters::Identify::EffectIdentifierEnum::kChannelChange)
{
ChipLogProgress(Zcl, "IDENTIFY_EFFECT_IDENTIFIER_CHANNEL_CHANGE - Not supported, use effect varriant %d",
- identify->mEffectVariant);
- sIdentifyEffect = static_cast<EmberAfIdentifyEffectIdentifier>(identify->mEffectVariant);
+ to_underlying(identify->mEffectVariant));
+ sIdentifyEffect = static_cast<Clusters::Identify::EffectIdentifierEnum>(identify->mEffectVariant);
}
#if CHIP_DEVICE_CONFIG_ENABLE_SED == 1
@@ -112,20 +113,20 @@
switch (sIdentifyEffect)
{
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BLINK:
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BREATHE:
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_OKAY:
+ case Clusters::Identify::EffectIdentifierEnum::kBlink:
+ case Clusters::Identify::EffectIdentifierEnum::kBreathe:
+ case Clusters::Identify::EffectIdentifierEnum::kOkay:
(void) chip::DeviceLayer::SystemLayer().StartTimer(chip::System::Clock::Seconds16(5), OnTriggerIdentifyEffectCompleted,
identify);
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_FINISH_EFFECT:
+ case Clusters::Identify::EffectIdentifierEnum::kFinishEffect:
(void) chip::DeviceLayer::SystemLayer().CancelTimer(OnTriggerIdentifyEffectCompleted, identify);
(void) chip::DeviceLayer::SystemLayer().StartTimer(chip::System::Clock::Seconds16(1), OnTriggerIdentifyEffectCompleted,
identify);
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_STOP_EFFECT:
+ case Clusters::Identify::EffectIdentifierEnum::kStopEffect:
(void) chip::DeviceLayer::SystemLayer().CancelTimer(OnTriggerIdentifyEffectCompleted, identify);
- sIdentifyEffect = EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_STOP_EFFECT;
+ sIdentifyEffect = Clusters::Identify::EffectIdentifierEnum::kStopEffect;
break;
default:
ChipLogProgress(Zcl, "No identifier effect");
@@ -136,7 +137,7 @@
chip::EndpointId{ 1 },
AppTask::GetAppTask().OnIdentifyStart,
AppTask::GetAppTask().OnIdentifyStop,
- EMBER_ZCL_IDENTIFY_IDENTIFY_TYPE_VISIBLE_LED,
+ Clusters::Identify::IdentifyTypeEnum::kVisibleIndicator,
OnTriggerIdentifyEffect,
};
diff --git a/examples/light-switch-app/telink/README.md b/examples/light-switch-app/telink/README.md
index 865f482..bca9837 100755
--- a/examples/light-switch-app/telink/README.md
+++ b/examples/light-switch-app/telink/README.md
@@ -86,14 +86,14 @@
Identify command of the Identify cluster is received. The command's argument can
be used to specify the the effect. It is able to be in following effects:
-| Effect | Description |
-| :------------------------------ | :------------------------------------------------------------------- |
-| Blinks (200 ms on/200 ms off) | Blink (EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BLINK) |
-| Breathe (during 1000 ms) | Breathe (EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BREATHE) |
-| Blinks (50 ms on/950 ms off) | Okay (EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_OKAY) |
-| Blinks (1000 ms on/1000 ms off) | Channel Change (EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_CHANNEL_CHANGE) |
-| Blinks (950 ms on/50 ms off) | Finish (EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_FINISH_EFFECT) |
-| LED off | Stop (EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_STOP_EFFECT) |
+| Effect | Description |
+| :------------------------------ | :--------------------------------------------------------------------------- |
+| Blinks (200 ms on/200 ms off) | Blink (`Clusters::Identify::EffectIdentifierEnum::kBlink`) |
+| Breathe (during 1000 ms) | Breathe (`Clusters::Identify::EffectIdentifierEnum::kBreathe`) |
+| Blinks (50 ms on/950 ms off) | Okay (`Clusters::Identify::EffectIdentifierEnum::kOkay`) |
+| Blinks (1000 ms on/1000 ms off) | Channel Change ( `Clusters::Identify::EffectIdentifierEnum::kChannelChange`) |
+| Blinks (950 ms on/50 ms off) | Finish ( `Clusters::Identify::EffectIdentifierEnum::kFinishEffect`) |
+| LED off | Stop (`Clusters::Identify::EffectIdentifierEnum::kStopEffect`) |
### CHIP tool commands
diff --git a/examples/lighting-app/ameba/main/chipinterface.cpp b/examples/lighting-app/ameba/main/chipinterface.cpp
index e9ef017..4b342b4 100644
--- a/examples/lighting-app/ameba/main/chipinterface.cpp
+++ b/examples/lighting-app/ameba/main/chipinterface.cpp
@@ -46,6 +46,7 @@
#endif
using namespace ::chip;
+using namespace ::chip::app;
using namespace ::chip::DeviceManager;
using namespace ::chip::DeviceLayer;
using namespace ::chip::System;
@@ -92,17 +93,17 @@
{
switch (identify->mCurrentEffectIdentifier)
{
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BLINK:
- ChipLogProgress(Zcl, "EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BLINK");
+ case Clusters::Identify::EffectIdentifierEnum::kBlink:
+ ChipLogProgress(Zcl, "Clusters::Identify::EffectIdentifierEnum::kBlink");
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BREATHE:
- ChipLogProgress(Zcl, "EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BREATHE");
+ case Clusters::Identify::EffectIdentifierEnum::kBreathe:
+ ChipLogProgress(Zcl, "Clusters::Identify::EffectIdentifierEnum::kBreathe");
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_OKAY:
- ChipLogProgress(Zcl, "EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_OKAY");
+ case Clusters::Identify::EffectIdentifierEnum::kOkay:
+ ChipLogProgress(Zcl, "Clusters::Identify::EffectIdentifierEnum::kOkay");
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_CHANNEL_CHANGE:
- ChipLogProgress(Zcl, "EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_CHANNEL_CHANGE");
+ case Clusters::Identify::EffectIdentifierEnum::kChannelChange:
+ ChipLogProgress(Zcl, "Clusters::Identify::EffectIdentifierEnum::kChannelChange");
break;
default:
ChipLogProgress(Zcl, "No identifier effect");
@@ -111,7 +112,8 @@
}
static Identify gIdentify1 = {
- chip::EndpointId{ 1 }, OnIdentifyStart, OnIdentifyStop, EMBER_ZCL_IDENTIFY_IDENTIFY_TYPE_VISIBLE_LED, OnTriggerEffect,
+ chip::EndpointId{ 1 }, OnIdentifyStart, OnIdentifyStop, Clusters::Identify::IdentifyTypeEnum::kVisibleIndicator,
+ OnTriggerEffect,
};
static void InitServer(intptr_t context)
diff --git a/examples/lighting-app/beken/main/chipinterface.cpp b/examples/lighting-app/beken/main/chipinterface.cpp
index 79ab247..8ad5a5c 100644
--- a/examples/lighting-app/beken/main/chipinterface.cpp
+++ b/examples/lighting-app/beken/main/chipinterface.cpp
@@ -52,6 +52,7 @@
using namespace chip::Messaging;
using namespace ::chip;
+using namespace ::chip::app;
using namespace ::chip::Credentials;
using namespace ::chip::DeviceManager;
using namespace ::chip::DeviceLayer;
@@ -72,17 +73,17 @@
{
switch (identify->mCurrentEffectIdentifier)
{
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BLINK:
- ChipLogProgress(Zcl, "EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BLINK");
+ case Clusters::Identify::EffectIdentifierEnum::kBlink:
+ ChipLogProgress(Zcl, "Clusters::Identify::EffectIdentifierEnum::kBlink");
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BREATHE:
- ChipLogProgress(Zcl, "EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BREATHE");
+ case Clusters::Identify::EffectIdentifierEnum::kBreathe:
+ ChipLogProgress(Zcl, "Clusters::Identify::EffectIdentifierEnum::kBreathe");
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_OKAY:
- ChipLogProgress(Zcl, "EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_OKAY");
+ case Clusters::Identify::EffectIdentifierEnum::kOkay:
+ ChipLogProgress(Zcl, "Clusters::Identify::EffectIdentifierEnum::kOkay");
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_CHANNEL_CHANGE:
- ChipLogProgress(Zcl, "EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_CHANNEL_CHANGE");
+ case Clusters::Identify::EffectIdentifierEnum::kChannelChange:
+ ChipLogProgress(Zcl, "Clusters::Identify::EffectIdentifierEnum::kChannelChange");
break;
default:
ChipLogProgress(Zcl, "No identifier effect");
@@ -91,7 +92,8 @@
}
static Identify gIdentify1 = {
- chip::EndpointId{ 1 }, OnIdentifyStart, OnIdentifyStop, EMBER_ZCL_IDENTIFY_IDENTIFY_TYPE_VISIBLE_LED, OnTriggerEffect,
+ chip::EndpointId{ 1 }, OnIdentifyStart, OnIdentifyStop, Clusters::Identify::IdentifyTypeEnum::kVisibleIndicator,
+ OnTriggerEffect,
};
// Warkaround for ld error:undefined reference to '__sync_synchronize'
diff --git a/examples/lighting-app/bouffalolab/common/AppTask.cpp b/examples/lighting-app/bouffalolab/common/AppTask.cpp
index 8b88e68..100e879 100644
--- a/examples/lighting-app/bouffalolab/common/AppTask.cpp
+++ b/examples/lighting-app/bouffalolab/common/AppTask.cpp
@@ -61,6 +61,15 @@
#include "AppTask.h"
+using namespace ::chip;
+using namespace ::chip::app;
+using namespace ::chip::Credentials;
+using namespace ::chip::DeviceLayer;
+
+#if CONFIG_ENABLE_CHIP_SHELL
+using namespace chip::Shell;
+#endif
+
namespace {
#if defined(BL706_NIGHT_LIGHT) || defined(BL602_NIGHT_LIGHT)
@@ -73,20 +82,11 @@
APP_LIGHT_ENDPOINT_ID,
AppTask::IdentifyStartHandler,
AppTask::IdentifyStopHandler,
- EMBER_ZCL_IDENTIFY_IDENTIFY_TYPE_VISIBLE_LIGHT,
+ Clusters::Identify::IdentifyTypeEnum::kLightOutput,
};
} // namespace
-using namespace ::chip;
-using namespace ::chip::app;
-using namespace ::chip::Credentials;
-using namespace ::chip::DeviceLayer;
-
-#if CONFIG_ENABLE_CHIP_SHELL
-using namespace chip::Shell;
-#endif
-
AppTask AppTask::sAppTask;
StackType_t AppTask::appStack[APP_TASK_STACK_SIZE / sizeof(StackType_t)];
StaticTask_t AppTask::appTaskStruct;
diff --git a/examples/lighting-app/bouffalolab/data_model/lighting-app-thread.matter b/examples/lighting-app/bouffalolab/data_model/lighting-app-thread.matter
index b859292..976e85a 100644
--- a/examples/lighting-app/bouffalolab/data_model/lighting-app-thread.matter
+++ b/examples/lighting-app/bouffalolab/data_model/lighting-app-thread.matter
@@ -13,7 +13,7 @@
/** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */
server cluster Identify = 3 {
- enum IdentifyEffectIdentifier : ENUM8 {
+ enum EffectIdentifierEnum : ENUM8 {
kBlink = 0;
kBreathe = 1;
kOkay = 2;
@@ -22,21 +22,21 @@
kStopEffect = 255;
}
- enum IdentifyEffectVariant : ENUM8 {
+ enum EffectVariantEnum : ENUM8 {
kDefault = 0;
}
- enum IdentifyIdentifyType : ENUM8 {
+ enum IdentifyTypeEnum : ENUM8 {
kNone = 0;
- kVisibleLight = 1;
- kVisibleLED = 2;
+ kLightOutput = 1;
+ kVisibleIndicator = 2;
kAudibleBeep = 3;
kDisplay = 4;
kActuator = 5;
}
attribute int16u identifyTime = 0;
- readonly attribute enum8 identifyType = 1;
+ readonly attribute IdentifyTypeEnum identifyType = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
@@ -49,8 +49,8 @@
}
request struct TriggerEffectRequest {
- IdentifyEffectIdentifier effectIdentifier = 0;
- IdentifyEffectVariant effectVariant = 1;
+ EffectIdentifierEnum effectIdentifier = 0;
+ EffectVariantEnum effectVariant = 1;
}
command access(invoke: manage) Identify(IdentifyRequest): DefaultSuccess = 0;
diff --git a/examples/lighting-app/bouffalolab/data_model/lighting-app-thread.zap b/examples/lighting-app/bouffalolab/data_model/lighting-app-thread.zap
index 085744f..dbf0663 100644
--- a/examples/lighting-app/bouffalolab/data_model/lighting-app-thread.zap
+++ b/examples/lighting-app/bouffalolab/data_model/lighting-app-thread.zap
@@ -5516,7 +5516,7 @@
"code": 1,
"mfgCode": null,
"side": "server",
- "type": "enum8",
+ "type": "IdentifyTypeEnum",
"included": 1,
"storageOption": "RAM",
"singleton": 0,
diff --git a/examples/lighting-app/bouffalolab/data_model/lighting-app-wifi.matter b/examples/lighting-app/bouffalolab/data_model/lighting-app-wifi.matter
index ad6be5d..d535e94 100644
--- a/examples/lighting-app/bouffalolab/data_model/lighting-app-wifi.matter
+++ b/examples/lighting-app/bouffalolab/data_model/lighting-app-wifi.matter
@@ -13,7 +13,7 @@
/** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */
server cluster Identify = 3 {
- enum IdentifyEffectIdentifier : ENUM8 {
+ enum EffectIdentifierEnum : ENUM8 {
kBlink = 0;
kBreathe = 1;
kOkay = 2;
@@ -22,21 +22,21 @@
kStopEffect = 255;
}
- enum IdentifyEffectVariant : ENUM8 {
+ enum EffectVariantEnum : ENUM8 {
kDefault = 0;
}
- enum IdentifyIdentifyType : ENUM8 {
+ enum IdentifyTypeEnum : ENUM8 {
kNone = 0;
- kVisibleLight = 1;
- kVisibleLED = 2;
+ kLightOutput = 1;
+ kVisibleIndicator = 2;
kAudibleBeep = 3;
kDisplay = 4;
kActuator = 5;
}
attribute int16u identifyTime = 0;
- readonly attribute enum8 identifyType = 1;
+ readonly attribute IdentifyTypeEnum identifyType = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
@@ -49,8 +49,8 @@
}
request struct TriggerEffectRequest {
- IdentifyEffectIdentifier effectIdentifier = 0;
- IdentifyEffectVariant effectVariant = 1;
+ EffectIdentifierEnum effectIdentifier = 0;
+ EffectVariantEnum effectVariant = 1;
}
command access(invoke: manage) Identify(IdentifyRequest): DefaultSuccess = 0;
diff --git a/examples/lighting-app/bouffalolab/data_model/lighting-app-wifi.zap b/examples/lighting-app/bouffalolab/data_model/lighting-app-wifi.zap
index 9afac33..819a109 100644
--- a/examples/lighting-app/bouffalolab/data_model/lighting-app-wifi.zap
+++ b/examples/lighting-app/bouffalolab/data_model/lighting-app-wifi.zap
@@ -5516,7 +5516,7 @@
"code": 1,
"mfgCode": null,
"side": "server",
- "type": "enum8",
+ "type": "IdentifyTypeEnum",
"included": 1,
"storageOption": "RAM",
"singleton": 0,
diff --git a/examples/lighting-app/cc13x2x7_26x2x7/src/AppTask.cpp b/examples/lighting-app/cc13x2x7_26x2x7/src/AppTask.cpp
index 945679b..c9e8845 100644
--- a/examples/lighting-app/cc13x2x7_26x2x7/src/AppTask.cpp
+++ b/examples/lighting-app/cc13x2x7_26x2x7/src/AppTask.cpp
@@ -69,6 +69,7 @@
#define LIGHTING_APPLICATION_IDENTIFY_ENDPOINT 1
using namespace ::chip;
+using namespace ::chip::app;
using namespace ::chip::Credentials;
using namespace ::chip::DeviceLayer;
@@ -104,7 +105,7 @@
#endif
::Identify stIdentify = { LIGHTING_APPLICATION_IDENTIFY_ENDPOINT, AppTask::IdentifyStartHandler, AppTask::IdentifyStopHandler,
- EMBER_ZCL_IDENTIFY_IDENTIFY_TYPE_VISIBLE_LED, AppTask::TriggerIdentifyEffectHandler };
+ Clusters::Identify::IdentifyTypeEnum::kVisibleIndicator, AppTask::TriggerIdentifyEffectHandler };
int AppTask::StartAppTask()
{
@@ -506,30 +507,30 @@
{
switch (identify->mCurrentEffectIdentifier)
{
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BLINK:
+ case Clusters::Identify::EffectIdentifierEnum::kBlink:
PLAT_LOG("Starting blink identifier effect");
identify_trigger_effect = IDENTIFY_TRIGGER_EFFECT_BLINK;
IdentifyStartHandler(identify);
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BREATHE:
+ case Clusters::Identify::EffectIdentifierEnum::kBreathe:
PLAT_LOG("Starting breathe identifier effect");
identify_trigger_effect = IDENTIFY_TRIGGER_EFFECT_BREATHE;
IdentifyStartHandler(identify);
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_OKAY:
+ case Clusters::Identify::EffectIdentifierEnum::kOkay:
PLAT_LOG("Starting okay identifier effect");
identify_trigger_effect = IDENTIFY_TRIGGER_EFFECT_OKAY;
IdentifyStartHandler(identify);
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_CHANNEL_CHANGE:
+ case Clusters::Identify::EffectIdentifierEnum::kChannelChange:
PLAT_LOG("Channel Change identifier effect not implemented");
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_FINISH_EFFECT:
+ case Clusters::Identify::EffectIdentifierEnum::kFinishEffect:
PLAT_LOG("Finish identifier effect");
identify_trigger_effect = IDENTIFY_TRIGGER_EFFECT_FINISH_STOP;
IdentifyStopHandler(identify);
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_STOP_EFFECT:
+ case Clusters::Identify::EffectIdentifierEnum::kStopEffect:
PLAT_LOG("Stop identifier effect");
identify_trigger_effect = IDENTIFY_TRIGGER_EFFECT_FINISH_STOP;
IdentifyStopHandler(identify);
diff --git a/examples/lighting-app/cc13x4_26x4/src/AppTask.cpp b/examples/lighting-app/cc13x4_26x4/src/AppTask.cpp
index d7b45b5..b6cce74 100644
--- a/examples/lighting-app/cc13x4_26x4/src/AppTask.cpp
+++ b/examples/lighting-app/cc13x4_26x4/src/AppTask.cpp
@@ -68,6 +68,7 @@
#define LIGHTING_APPLICATION_IDENTIFY_ENDPOINT 1
using namespace ::chip;
+using namespace ::chip::app;
using namespace ::chip::Credentials;
using namespace ::chip::DeviceLayer;
@@ -103,7 +104,7 @@
#endif
::Identify stIdentify = { LIGHTING_APPLICATION_IDENTIFY_ENDPOINT, AppTask::IdentifyStartHandler, AppTask::IdentifyStopHandler,
- EMBER_ZCL_IDENTIFY_IDENTIFY_TYPE_VISIBLE_LED, AppTask::TriggerIdentifyEffectHandler };
+ Clusters::Identify::IdentifyTypeEnum::kVisibleIndicator, AppTask::TriggerIdentifyEffectHandler };
int AppTask::StartAppTask()
{
@@ -505,30 +506,30 @@
{
switch (identify->mCurrentEffectIdentifier)
{
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BLINK:
+ case Clusters::Identify::EffectIdentifierEnum::kBlink:
PLAT_LOG("Starting blink identifier effect");
identify_trigger_effect = IDENTIFY_TRIGGER_EFFECT_BLINK;
IdentifyStartHandler(identify);
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BREATHE:
+ case Clusters::Identify::EffectIdentifierEnum::kBreathe:
PLAT_LOG("Starting breathe identifier effect");
identify_trigger_effect = IDENTIFY_TRIGGER_EFFECT_BREATHE;
IdentifyStartHandler(identify);
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_OKAY:
+ case Clusters::Identify::EffectIdentifierEnum::kOkay:
PLAT_LOG("Starting okay identifier effect");
identify_trigger_effect = IDENTIFY_TRIGGER_EFFECT_OKAY;
IdentifyStartHandler(identify);
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_CHANNEL_CHANGE:
+ case Clusters::Identify::EffectIdentifierEnum::kChannelChange:
PLAT_LOG("Channel Change identifier effect not implemented");
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_FINISH_EFFECT:
+ case Clusters::Identify::EffectIdentifierEnum::kFinishEffect:
PLAT_LOG("Finish identifier effect");
identify_trigger_effect = IDENTIFY_TRIGGER_EFFECT_FINISH_STOP;
IdentifyStopHandler(identify);
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_STOP_EFFECT:
+ case Clusters::Identify::EffectIdentifierEnum::kStopEffect:
PLAT_LOG("Stop identifier effect");
identify_trigger_effect = IDENTIFY_TRIGGER_EFFECT_FINISH_STOP;
IdentifyStopHandler(identify);
diff --git a/examples/lighting-app/infineon/cyw30739/src/main.cpp b/examples/lighting-app/infineon/cyw30739/src/main.cpp
index f1b2806..1473025 100644
--- a/examples/lighting-app/infineon/cyw30739/src/main.cpp
+++ b/examples/lighting-app/infineon/cyw30739/src/main.cpp
@@ -46,6 +46,7 @@
using namespace ::chip::Credentials;
using namespace ::chip::DeviceLayer;
using namespace ::chip::Shell;
+using namespace ::chip::app;
static chip::DeviceLayer::DeviceInfoProviderImpl gExampleDeviceInfoProvider;
static FactoryDataProvider sFactoryDataProvider;
@@ -71,17 +72,17 @@
{
switch (identify->mCurrentEffectIdentifier)
{
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BLINK:
- ChipLogProgress(Zcl, "EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BLINK");
+ case Clusters::Identify::EffectIdentifierEnum::kBlink:
+ ChipLogProgress(Zcl, "Clusters::Identify::EffectIdentifierEnum::kBlink");
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BREATHE:
- ChipLogProgress(Zcl, "EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BREATHE");
+ case Clusters::Identify::EffectIdentifierEnum::kBreathe:
+ ChipLogProgress(Zcl, "Clusters::Identify::EffectIdentifierEnum::kBreathe");
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_OKAY:
- ChipLogProgress(Zcl, "EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_OKAY");
+ case Clusters::Identify::EffectIdentifierEnum::kOkay:
+ ChipLogProgress(Zcl, "Clusters::Identify::EffectIdentifierEnum::kOkay");
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_CHANNEL_CHANGE:
- ChipLogProgress(Zcl, "EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_CHANNEL_CHANGE");
+ case Clusters::Identify::EffectIdentifierEnum::kChannelChange:
+ ChipLogProgress(Zcl, "Clusters::Identify::EffectIdentifierEnum::kChannelChange");
break;
default:
ChipLogProgress(Zcl, "No identifier effect");
@@ -94,7 +95,7 @@
chip::EndpointId{ 1 },
[](Identify *) { ChipLogProgress(Zcl, "onIdentifyStart"); },
[](Identify *) { ChipLogProgress(Zcl, "onIdentifyStop"); },
- EMBER_ZCL_IDENTIFY_IDENTIFY_TYPE_NONE,
+ Clusters::Identify::IdentifyTypeEnum::kNone,
OnIdentifyTriggerEffect,
};
diff --git a/examples/lighting-app/infineon/psoc6/src/AppTask.cpp b/examples/lighting-app/infineon/psoc6/src/AppTask.cpp
index bcbb794..987213e 100644
--- a/examples/lighting-app/infineon/psoc6/src/AppTask.cpp
+++ b/examples/lighting-app/infineon/psoc6/src/AppTask.cpp
@@ -103,6 +103,7 @@
} // namespace
using namespace ::chip;
+using namespace ::chip::app;
using namespace chip::TLV;
using namespace ::chip::Credentials;
using namespace ::chip::DeviceLayer;
@@ -134,7 +135,7 @@
chip::EndpointId{ 1 },
OnIdentifyStart,
OnIdentifyStop,
- EMBER_ZCL_IDENTIFY_IDENTIFY_TYPE_NONE,
+ Clusters::Identify::IdentifyTypeEnum::kNone,
};
static void InitServer(intptr_t context)
diff --git a/examples/lighting-app/lighting-common/lighting-app.matter b/examples/lighting-app/lighting-common/lighting-app.matter
index 69852e7..580e841 100644
--- a/examples/lighting-app/lighting-common/lighting-app.matter
+++ b/examples/lighting-app/lighting-common/lighting-app.matter
@@ -13,7 +13,7 @@
/** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */
server cluster Identify = 3 {
- enum IdentifyEffectIdentifier : ENUM8 {
+ enum EffectIdentifierEnum : ENUM8 {
kBlink = 0;
kBreathe = 1;
kOkay = 2;
@@ -22,21 +22,21 @@
kStopEffect = 255;
}
- enum IdentifyEffectVariant : ENUM8 {
+ enum EffectVariantEnum : ENUM8 {
kDefault = 0;
}
- enum IdentifyIdentifyType : ENUM8 {
+ enum IdentifyTypeEnum : ENUM8 {
kNone = 0;
- kVisibleLight = 1;
- kVisibleLED = 2;
+ kLightOutput = 1;
+ kVisibleIndicator = 2;
kAudibleBeep = 3;
kDisplay = 4;
kActuator = 5;
}
attribute int16u identifyTime = 0;
- readonly attribute enum8 identifyType = 1;
+ readonly attribute IdentifyTypeEnum identifyType = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
@@ -49,8 +49,8 @@
}
request struct TriggerEffectRequest {
- IdentifyEffectIdentifier effectIdentifier = 0;
- IdentifyEffectVariant effectVariant = 1;
+ EffectIdentifierEnum effectIdentifier = 0;
+ EffectVariantEnum effectVariant = 1;
}
command access(invoke: manage) Identify(IdentifyRequest): DefaultSuccess = 0;
diff --git a/examples/lighting-app/lighting-common/lighting-app.zap b/examples/lighting-app/lighting-common/lighting-app.zap
index 1f563a5..d799c8d 100644
--- a/examples/lighting-app/lighting-common/lighting-app.zap
+++ b/examples/lighting-app/lighting-common/lighting-app.zap
@@ -5516,7 +5516,7 @@
"code": 1,
"mfgCode": null,
"side": "server",
- "type": "enum8",
+ "type": "IdentifyTypeEnum",
"included": 1,
"storageOption": "RAM",
"singleton": 0,
diff --git a/examples/lighting-app/nrfconnect/main/AppTask.cpp b/examples/lighting-app/nrfconnect/main/AppTask.cpp
index 3b4d1a0..5ff0c6a 100644
--- a/examples/lighting-app/nrfconnect/main/AppTask.cpp
+++ b/examples/lighting-app/nrfconnect/main/AppTask.cpp
@@ -79,7 +79,7 @@
k_timer sFunctionTimer;
Identify sIdentify = { kLightEndpointId, AppTask::IdentifyStartHandler, AppTask::IdentifyStopHandler,
- EMBER_ZCL_IDENTIFY_IDENTIFY_TYPE_VISIBLE_LED };
+ Clusters::Identify::IdentifyTypeEnum::kVisibleIndicator };
LEDWidget sStatusLED;
LEDWidget sIdentifyLED;
diff --git a/examples/lighting-app/nxp/k32w/k32w0/main/AppTask.cpp b/examples/lighting-app/nxp/k32w/k32w0/main/AppTask.cpp
index c609786..2298c42 100644
--- a/examples/lighting-app/nxp/k32w/k32w0/main/AppTask.cpp
+++ b/examples/lighting-app/nxp/k32w/k32w0/main/AppTask.cpp
@@ -84,6 +84,7 @@
using namespace ::chip::Credentials;
using namespace ::chip::DeviceLayer;
using namespace chip;
+using namespace chip::app;
AppTask AppTask::sAppTask;
@@ -93,11 +94,11 @@
0x88, 0x99, 0xaa, 0xbb, 0xcc, 0xdd, 0xee, 0xff };
static Identify gIdentify = { chip::EndpointId{ 1 }, AppTask::OnIdentifyStart, AppTask::OnIdentifyStop,
- EMBER_ZCL_IDENTIFY_IDENTIFY_TYPE_VISIBLE_LED, AppTask::OnTriggerEffect,
+ Clusters::Identify::IdentifyTypeEnum::kVisibleIndicator, AppTask::OnTriggerEffect,
// Use invalid value for identifiers to enable TriggerEffect command
// to stop Identify command for each effect
- (EmberAfIdentifyEffectIdentifier)(EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_STOP_EFFECT - 0x10),
- EMBER_ZCL_IDENTIFY_EFFECT_VARIANT_DEFAULT };
+ Clusters::Identify::EffectIdentifierEnum::kUnknownEnumValue,
+ Clusters::Identify::EffectVariantEnum::kDefault };
/* OTA related variables */
#if CHIP_DEVICE_CONFIG_ENABLE_OTA_REQUESTOR
@@ -770,11 +771,9 @@
// TriggerEffect finished - reset identifiers
// Use invalid value for identifiers to enable TriggerEffect command
// to stop Identify command for each effect
- gIdentify.mCurrentEffectIdentifier =
- (EmberAfIdentifyEffectIdentifier)(EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_STOP_EFFECT - 0x10);
- gIdentify.mTargetEffectIdentifier =
- (EmberAfIdentifyEffectIdentifier)(EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_STOP_EFFECT - 0x10);
- gIdentify.mEffectVariant = EMBER_ZCL_IDENTIFY_EFFECT_VARIANT_DEFAULT;
+ gIdentify.mCurrentEffectIdentifier = Clusters::Identify::EffectIdentifierEnum::kUnknownEnumValue;
+ gIdentify.mTargetEffectIdentifier = Clusters::Identify::EffectIdentifierEnum::kUnknownEnumValue;
+ gIdentify.mEffectVariant = Clusters::Identify::EffectVariantEnum::kDefault;
RestoreLightingState();
}
@@ -796,29 +795,30 @@
switch (identify->mCurrentEffectIdentifier)
{
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BLINK:
+ case Clusters::Identify::EffectIdentifierEnum::kBlink:
timerDelay = 2;
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BREATHE:
+ case Clusters::Identify::EffectIdentifierEnum::kBreathe:
timerDelay = 15;
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_OKAY:
+ case Clusters::Identify::EffectIdentifierEnum::kOkay:
timerDelay = 4;
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_CHANNEL_CHANGE:
- ChipLogProgress(Zcl, "Channel Change effect not supported, using effect %d", EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BLINK);
+ case Clusters::Identify::EffectIdentifierEnum::kChannelChange:
+ ChipLogProgress(Zcl, "Channel Change effect not supported, using effect %d",
+ to_underlying(Clusters::Identify::EffectIdentifierEnum::kBlink));
timerDelay = 2;
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_FINISH_EFFECT:
+ case Clusters::Identify::EffectIdentifierEnum::kFinishEffect:
chip::DeviceLayer::SystemLayer().CancelTimer(OnTriggerEffectComplete, identify);
timerDelay = 1;
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_STOP_EFFECT:
+ case Clusters::Identify::EffectIdentifierEnum::kStopEffect:
chip::DeviceLayer::SystemLayer().CancelTimer(OnTriggerEffectComplete, identify);
OnTriggerEffectComplete(&chip::DeviceLayer::SystemLayer(), identify);
break;
diff --git a/examples/lighting-app/nxp/zap/lighting-on-off.matter b/examples/lighting-app/nxp/zap/lighting-on-off.matter
index 5b6589c..5d2e337 100644
--- a/examples/lighting-app/nxp/zap/lighting-on-off.matter
+++ b/examples/lighting-app/nxp/zap/lighting-on-off.matter
@@ -13,7 +13,7 @@
/** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */
server cluster Identify = 3 {
- enum IdentifyEffectIdentifier : ENUM8 {
+ enum EffectIdentifierEnum : ENUM8 {
kBlink = 0;
kBreathe = 1;
kOkay = 2;
@@ -22,21 +22,21 @@
kStopEffect = 255;
}
- enum IdentifyEffectVariant : ENUM8 {
+ enum EffectVariantEnum : ENUM8 {
kDefault = 0;
}
- enum IdentifyIdentifyType : ENUM8 {
+ enum IdentifyTypeEnum : ENUM8 {
kNone = 0;
- kVisibleLight = 1;
- kVisibleLED = 2;
+ kLightOutput = 1;
+ kVisibleIndicator = 2;
kAudibleBeep = 3;
kDisplay = 4;
kActuator = 5;
}
attribute int16u identifyTime = 0;
- readonly attribute enum8 identifyType = 1;
+ readonly attribute IdentifyTypeEnum identifyType = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
@@ -49,8 +49,8 @@
}
request struct TriggerEffectRequest {
- IdentifyEffectIdentifier effectIdentifier = 0;
- IdentifyEffectVariant effectVariant = 1;
+ EffectIdentifierEnum effectIdentifier = 0;
+ EffectVariantEnum effectVariant = 1;
}
command access(invoke: manage) Identify(IdentifyRequest): DefaultSuccess = 0;
diff --git a/examples/lighting-app/nxp/zap/lighting-on-off.zap b/examples/lighting-app/nxp/zap/lighting-on-off.zap
index e42e030..0706d84 100644
--- a/examples/lighting-app/nxp/zap/lighting-on-off.zap
+++ b/examples/lighting-app/nxp/zap/lighting-on-off.zap
@@ -5580,7 +5580,7 @@
"code": 1,
"mfgCode": null,
"side": "server",
- "type": "enum8",
+ "type": "IdentifyTypeEnum",
"included": 1,
"storageOption": "RAM",
"singleton": 0,
@@ -9113,5 +9113,6 @@
"endpointVersion": 1,
"deviceIdentifier": 256
}
- ]
+ ],
+ "log": []
}
\ No newline at end of file
diff --git a/examples/lighting-app/qpg/src/AppTask.cpp b/examples/lighting-app/qpg/src/AppTask.cpp
index a1b8db6..93d2ae3 100644
--- a/examples/lighting-app/qpg/src/AppTask.cpp
+++ b/examples/lighting-app/qpg/src/AppTask.cpp
@@ -90,7 +90,7 @@
StackType_t appStack[APP_TASK_STACK_SIZE / sizeof(StackType_t)];
StaticTask_t appTaskStruct;
-EmberAfIdentifyEffectIdentifier sIdentifyEffect = EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_STOP_EFFECT;
+Clusters::Identify::EffectIdentifierEnum sIdentifyEffect = Clusters::Identify::EffectIdentifierEnum::kStopEffect;
chip::DeviceLayer::DeviceInfoProviderImpl gExampleDeviceInfoProvider;
/**********************************************************
@@ -100,7 +100,7 @@
namespace {
void OnTriggerIdentifyEffectCompleted(chip::System::Layer * systemLayer, void * appState)
{
- sIdentifyEffect = EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_STOP_EFFECT;
+ sIdentifyEffect = Clusters::Identify::EffectIdentifierEnum::kStopEffect;
}
} // namespace
@@ -108,34 +108,34 @@
{
sIdentifyEffect = identify->mCurrentEffectIdentifier;
- if (identify->mCurrentEffectIdentifier == EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_CHANNEL_CHANGE)
+ if (identify->mCurrentEffectIdentifier == Clusters::Identify::EffectIdentifierEnum::kChannelChange)
{
ChipLogProgress(Zcl, "IDENTIFY_EFFECT_IDENTIFIER_CHANNEL_CHANGE - Not supported, use effect variant %d",
- identify->mEffectVariant);
- sIdentifyEffect = static_cast<EmberAfIdentifyEffectIdentifier>(identify->mEffectVariant);
+ to_underlying(identify->mEffectVariant));
+ sIdentifyEffect = static_cast<Clusters::Identify::EffectIdentifierEnum>(identify->mEffectVariant);
}
switch (sIdentifyEffect)
{
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BLINK:
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BREATHE:
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_OKAY:
+ case Clusters::Identify::EffectIdentifierEnum::kBlink:
+ case Clusters::Identify::EffectIdentifierEnum::kBreathe:
+ case Clusters::Identify::EffectIdentifierEnum::kOkay:
SystemLayer().ScheduleLambda([identify] {
(void) chip::DeviceLayer::SystemLayer().StartTimer(chip::System::Clock::Seconds16(5), OnTriggerIdentifyEffectCompleted,
identify);
});
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_FINISH_EFFECT:
+ case Clusters::Identify::EffectIdentifierEnum::kFinishEffect:
SystemLayer().ScheduleLambda([identify] {
(void) chip::DeviceLayer::SystemLayer().CancelTimer(OnTriggerIdentifyEffectCompleted, identify);
(void) chip::DeviceLayer::SystemLayer().StartTimer(chip::System::Clock::Seconds16(1), OnTriggerIdentifyEffectCompleted,
identify);
});
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_STOP_EFFECT:
+ case Clusters::Identify::EffectIdentifierEnum::kStopEffect:
SystemLayer().ScheduleLambda(
[identify] { (void) chip::DeviceLayer::SystemLayer().CancelTimer(OnTriggerIdentifyEffectCompleted, identify); });
- sIdentifyEffect = EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_STOP_EFFECT;
+ sIdentifyEffect = Clusters::Identify::EffectIdentifierEnum::kStopEffect;
break;
default:
ChipLogProgress(Zcl, "No identifier effect");
@@ -146,7 +146,7 @@
chip::EndpointId{ 1 },
[](Identify *) { ChipLogProgress(Zcl, "onIdentifyStart"); },
[](Identify *) { ChipLogProgress(Zcl, "onIdentifyStop"); },
- EMBER_ZCL_IDENTIFY_IDENTIFY_TYPE_VISIBLE_LED,
+ Clusters::Identify::IdentifyTypeEnum::kVisibleIndicator,
OnTriggerIdentifyEffect,
};
diff --git a/examples/lighting-app/qpg/zap/light.matter b/examples/lighting-app/qpg/zap/light.matter
index f6ea5f4..ff264ca 100644
--- a/examples/lighting-app/qpg/zap/light.matter
+++ b/examples/lighting-app/qpg/zap/light.matter
@@ -13,7 +13,7 @@
/** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */
server cluster Identify = 3 {
- enum IdentifyEffectIdentifier : ENUM8 {
+ enum EffectIdentifierEnum : ENUM8 {
kBlink = 0;
kBreathe = 1;
kOkay = 2;
@@ -22,21 +22,21 @@
kStopEffect = 255;
}
- enum IdentifyEffectVariant : ENUM8 {
+ enum EffectVariantEnum : ENUM8 {
kDefault = 0;
}
- enum IdentifyIdentifyType : ENUM8 {
+ enum IdentifyTypeEnum : ENUM8 {
kNone = 0;
- kVisibleLight = 1;
- kVisibleLED = 2;
+ kLightOutput = 1;
+ kVisibleIndicator = 2;
kAudibleBeep = 3;
kDisplay = 4;
kActuator = 5;
}
attribute int16u identifyTime = 0;
- readonly attribute enum8 identifyType = 1;
+ readonly attribute IdentifyTypeEnum identifyType = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
@@ -49,8 +49,8 @@
}
request struct TriggerEffectRequest {
- IdentifyEffectIdentifier effectIdentifier = 0;
- IdentifyEffectVariant effectVariant = 1;
+ EffectIdentifierEnum effectIdentifier = 0;
+ EffectVariantEnum effectVariant = 1;
}
command access(invoke: manage) Identify(IdentifyRequest): DefaultSuccess = 0;
diff --git a/examples/lighting-app/qpg/zap/light.zap b/examples/lighting-app/qpg/zap/light.zap
index f47568b..55f8020 100644
--- a/examples/lighting-app/qpg/zap/light.zap
+++ b/examples/lighting-app/qpg/zap/light.zap
@@ -6484,7 +6484,7 @@
"code": 1,
"mfgCode": null,
"side": "server",
- "type": "enum8",
+ "type": "IdentifyTypeEnum",
"included": 1,
"storageOption": "RAM",
"singleton": 0,
diff --git a/examples/lighting-app/silabs/data_model/lighting-thread-app.matter b/examples/lighting-app/silabs/data_model/lighting-thread-app.matter
index 4f1be06..e761595 100644
--- a/examples/lighting-app/silabs/data_model/lighting-thread-app.matter
+++ b/examples/lighting-app/silabs/data_model/lighting-thread-app.matter
@@ -13,7 +13,7 @@
/** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */
server cluster Identify = 3 {
- enum IdentifyEffectIdentifier : ENUM8 {
+ enum EffectIdentifierEnum : ENUM8 {
kBlink = 0;
kBreathe = 1;
kOkay = 2;
@@ -22,21 +22,21 @@
kStopEffect = 255;
}
- enum IdentifyEffectVariant : ENUM8 {
+ enum EffectVariantEnum : ENUM8 {
kDefault = 0;
}
- enum IdentifyIdentifyType : ENUM8 {
+ enum IdentifyTypeEnum : ENUM8 {
kNone = 0;
- kVisibleLight = 1;
- kVisibleLED = 2;
+ kLightOutput = 1;
+ kVisibleIndicator = 2;
kAudibleBeep = 3;
kDisplay = 4;
kActuator = 5;
}
attribute int16u identifyTime = 0;
- readonly attribute enum8 identifyType = 1;
+ readonly attribute IdentifyTypeEnum identifyType = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
@@ -49,8 +49,8 @@
}
request struct TriggerEffectRequest {
- IdentifyEffectIdentifier effectIdentifier = 0;
- IdentifyEffectVariant effectVariant = 1;
+ EffectIdentifierEnum effectIdentifier = 0;
+ EffectVariantEnum effectVariant = 1;
}
command access(invoke: manage) Identify(IdentifyRequest): DefaultSuccess = 0;
diff --git a/examples/lighting-app/silabs/data_model/lighting-thread-app.zap b/examples/lighting-app/silabs/data_model/lighting-thread-app.zap
index 596c95c..8b08a3f 100644
--- a/examples/lighting-app/silabs/data_model/lighting-thread-app.zap
+++ b/examples/lighting-app/silabs/data_model/lighting-thread-app.zap
@@ -5623,7 +5623,7 @@
"code": 1,
"mfgCode": null,
"side": "server",
- "type": "enum8",
+ "type": "IdentifyTypeEnum",
"included": 1,
"storageOption": "RAM",
"singleton": 0,
diff --git a/examples/lighting-app/silabs/data_model/lighting-wifi-app.matter b/examples/lighting-app/silabs/data_model/lighting-wifi-app.matter
index ab7999f..9ab75d7 100644
--- a/examples/lighting-app/silabs/data_model/lighting-wifi-app.matter
+++ b/examples/lighting-app/silabs/data_model/lighting-wifi-app.matter
@@ -13,7 +13,7 @@
/** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */
server cluster Identify = 3 {
- enum IdentifyEffectIdentifier : ENUM8 {
+ enum EffectIdentifierEnum : ENUM8 {
kBlink = 0;
kBreathe = 1;
kOkay = 2;
@@ -22,21 +22,21 @@
kStopEffect = 255;
}
- enum IdentifyEffectVariant : ENUM8 {
+ enum EffectVariantEnum : ENUM8 {
kDefault = 0;
}
- enum IdentifyIdentifyType : ENUM8 {
+ enum IdentifyTypeEnum : ENUM8 {
kNone = 0;
- kVisibleLight = 1;
- kVisibleLED = 2;
+ kLightOutput = 1;
+ kVisibleIndicator = 2;
kAudibleBeep = 3;
kDisplay = 4;
kActuator = 5;
}
attribute int16u identifyTime = 0;
- readonly attribute enum8 identifyType = 1;
+ readonly attribute IdentifyTypeEnum identifyType = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
@@ -49,8 +49,8 @@
}
request struct TriggerEffectRequest {
- IdentifyEffectIdentifier effectIdentifier = 0;
- IdentifyEffectVariant effectVariant = 1;
+ EffectIdentifierEnum effectIdentifier = 0;
+ EffectVariantEnum effectVariant = 1;
}
command access(invoke: manage) Identify(IdentifyRequest): DefaultSuccess = 0;
diff --git a/examples/lighting-app/silabs/data_model/lighting-wifi-app.zap b/examples/lighting-app/silabs/data_model/lighting-wifi-app.zap
index c119cc3..808f47d 100644
--- a/examples/lighting-app/silabs/data_model/lighting-wifi-app.zap
+++ b/examples/lighting-app/silabs/data_model/lighting-wifi-app.zap
@@ -5369,7 +5369,7 @@
"code": 1,
"mfgCode": null,
"side": "server",
- "type": "enum8",
+ "type": "IdentifyTypeEnum",
"included": 1,
"storageOption": "RAM",
"singleton": 0,
diff --git a/examples/lighting-app/silabs/src/AppTask.cpp b/examples/lighting-app/silabs/src/AppTask.cpp
index f40e13a..9194f4a 100644
--- a/examples/lighting-app/silabs/src/AppTask.cpp
+++ b/examples/lighting-app/silabs/src/AppTask.cpp
@@ -50,6 +50,7 @@
#define APP_LIGHT_SWITCH 1
using namespace chip;
+using namespace chip::app;
using namespace ::chip::DeviceLayer;
using namespace ::chip::DeviceLayer::Silabs;
@@ -57,7 +58,7 @@
LEDWidget sLightLED;
-EmberAfIdentifyEffectIdentifier sIdentifyEffect = EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_STOP_EFFECT;
+Clusters::Identify::EffectIdentifierEnum sIdentifyEffect = Clusters::Identify::EffectIdentifierEnum::kStopEffect;
/**********************************************************
* Identify Callbacks
@@ -67,7 +68,7 @@
void OnTriggerIdentifyEffectCompleted(chip::System::Layer * systemLayer, void * appState)
{
ChipLogProgress(Zcl, "Trigger Identify Complete");
- sIdentifyEffect = EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_STOP_EFFECT;
+ sIdentifyEffect = Clusters::Identify::EffectIdentifierEnum::kStopEffect;
#if CHIP_DEVICE_CONFIG_ENABLE_SED == 1
AppTask::GetAppTask().StopStatusLEDTimer();
@@ -79,11 +80,11 @@
{
sIdentifyEffect = identify->mCurrentEffectIdentifier;
- if (identify->mCurrentEffectIdentifier == EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_CHANNEL_CHANGE)
+ if (identify->mCurrentEffectIdentifier == Clusters::Identify::EffectIdentifierEnum::kChannelChange)
{
ChipLogProgress(Zcl, "IDENTIFY_EFFECT_IDENTIFIER_CHANNEL_CHANGE - Not supported, use effect varriant %d",
- identify->mEffectVariant);
- sIdentifyEffect = static_cast<EmberAfIdentifyEffectIdentifier>(identify->mEffectVariant);
+ to_underlying(identify->mEffectVariant));
+ sIdentifyEffect = static_cast<Clusters::Identify::EffectIdentifierEnum>(identify->mEffectVariant);
}
#if CHIP_DEVICE_CONFIG_ENABLE_SED == 1
@@ -92,20 +93,20 @@
switch (sIdentifyEffect)
{
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BLINK:
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BREATHE:
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_OKAY:
+ case Clusters::Identify::EffectIdentifierEnum::kBlink:
+ case Clusters::Identify::EffectIdentifierEnum::kBreathe:
+ case Clusters::Identify::EffectIdentifierEnum::kOkay:
(void) chip::DeviceLayer::SystemLayer().StartTimer(chip::System::Clock::Seconds16(5), OnTriggerIdentifyEffectCompleted,
identify);
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_FINISH_EFFECT:
+ case Clusters::Identify::EffectIdentifierEnum::kFinishEffect:
(void) chip::DeviceLayer::SystemLayer().CancelTimer(OnTriggerIdentifyEffectCompleted, identify);
(void) chip::DeviceLayer::SystemLayer().StartTimer(chip::System::Clock::Seconds16(1), OnTriggerIdentifyEffectCompleted,
identify);
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_STOP_EFFECT:
+ case Clusters::Identify::EffectIdentifierEnum::kStopEffect:
(void) chip::DeviceLayer::SystemLayer().CancelTimer(OnTriggerIdentifyEffectCompleted, identify);
- sIdentifyEffect = EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_STOP_EFFECT;
+ sIdentifyEffect = Clusters::Identify::EffectIdentifierEnum::kStopEffect;
break;
default:
ChipLogProgress(Zcl, "No identifier effect");
@@ -116,7 +117,7 @@
chip::EndpointId{ 1 },
AppTask::GetAppTask().OnIdentifyStart,
AppTask::GetAppTask().OnIdentifyStop,
- EMBER_ZCL_IDENTIFY_IDENTIFY_TYPE_VISIBLE_LED,
+ Clusters::Identify::IdentifyTypeEnum::kVisibleIndicator,
OnTriggerIdentifyEffect,
};
diff --git a/examples/lighting-app/telink/README.md b/examples/lighting-app/telink/README.md
index e0594e2..e9c4c5a 100644
--- a/examples/lighting-app/telink/README.md
+++ b/examples/lighting-app/telink/README.md
@@ -84,14 +84,14 @@
Identify command of the Identify cluster is received. The command's argument can
be used to specify the the effect. It is able to be in following effects:
-| Effect | Description |
-| :------------------------------ | :------------------------------------------------------------------- |
-| Blinks (200 ms on/200 ms off) | Blink (EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BLINK) |
-| Breathe (during 1000 ms) | Breathe (EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BREATHE) |
-| Blinks (50 ms on/950 ms off) | Okay (EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_OKAY) |
-| Blinks (1000 ms on/1000 ms off) | Channel Change (EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_CHANNEL_CHANGE) |
-| Blinks (950 ms on/50 ms off) | Finish (EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_FINISH_EFFECT) |
-| LED off | Stop (EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_STOP_EFFECT) |
+| Effect | Description |
+| :------------------------------ | :--------------------------------------------------------------------------- |
+| Blinks (200 ms on/200 ms off) | Blink (`Clusters::Identify::EffectIdentifierEnum::kBlink`) |
+| Breathe (during 1000 ms) | Breathe (`Clusters::Identify::EffectIdentifierEnum::kBreathe`) |
+| Blinks (50 ms on/950 ms off) | Okay (`Clusters::Identify::EffectIdentifierEnum::kOkay`) |
+| Blinks (1000 ms on/1000 ms off) | Channel Change ( `Clusters::Identify::EffectIdentifierEnum::kChannelChange`) |
+| Blinks (950 ms on/50 ms off) | Finish ( `Clusters::Identify::EffectIdentifierEnum::kFinishEffect`) |
+| LED off | Stop (`Clusters::Identify::EffectIdentifierEnum::kStopEffect`) |
#### Indicate current state of lightbulb
diff --git a/examples/lock-app/cc13x2x7_26x2x7/src/AppTask.cpp b/examples/lock-app/cc13x2x7_26x2x7/src/AppTask.cpp
index 772070f..d4e3d8f 100644
--- a/examples/lock-app/cc13x2x7_26x2x7/src/AppTask.cpp
+++ b/examples/lock-app/cc13x2x7_26x2x7/src/AppTask.cpp
@@ -59,6 +59,7 @@
#define APP_EVENT_QUEUE_SIZE 10
using namespace ::chip;
+using namespace ::chip::app;
using namespace ::chip::Credentials;
using namespace ::chip::DeviceLayer;
using namespace ::chip::app::Clusters::DoorLock;
@@ -95,7 +96,7 @@
#endif
::Identify stIdentify = { 0, AppTask::IdentifyStartHandler, AppTask::IdentifyStopHandler,
- EMBER_ZCL_IDENTIFY_IDENTIFY_TYPE_VISIBLE_LED, AppTask::TriggerIdentifyEffectHandler };
+ Clusters::Identify::IdentifyTypeEnum::kVisibleIndicator, AppTask::TriggerIdentifyEffectHandler };
int AppTask::StartAppTask()
{
@@ -535,23 +536,23 @@
{
switch (identify->mCurrentEffectIdentifier)
{
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BLINK:
+ case Clusters::Identify::EffectIdentifierEnum::kBlink:
PLAT_LOG("Starting blink identifier effect");
IdentifyStartHandler(identify);
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BREATHE:
+ case Clusters::Identify::EffectIdentifierEnum::kBreathe:
PLAT_LOG("Breathe identifier effect not implemented");
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_OKAY:
+ case Clusters::Identify::EffectIdentifierEnum::kOkay:
PLAT_LOG("Okay identifier effect not implemented");
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_CHANNEL_CHANGE:
+ case Clusters::Identify::EffectIdentifierEnum::kChannelChange:
PLAT_LOG("Channel Change identifier effect not implemented");
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_FINISH_EFFECT:
+ case Clusters::Identify::EffectIdentifierEnum::kFinishEffect:
PLAT_LOG("Finish identifier effect not implemented");
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_STOP_EFFECT:
+ case Clusters::Identify::EffectIdentifierEnum::kStopEffect:
PLAT_LOG("Stop identifier effect");
IdentifyStopHandler(identify);
break;
diff --git a/examples/lock-app/cc13x4_26x4/src/AppTask.cpp b/examples/lock-app/cc13x4_26x4/src/AppTask.cpp
index 5880c27..c73fd1f 100644
--- a/examples/lock-app/cc13x4_26x4/src/AppTask.cpp
+++ b/examples/lock-app/cc13x4_26x4/src/AppTask.cpp
@@ -58,6 +58,7 @@
#define APP_EVENT_QUEUE_SIZE 10
using namespace ::chip;
+using namespace ::chip::app;
using namespace ::chip::Credentials;
using namespace ::chip::DeviceLayer;
using namespace ::chip::app::Clusters::DoorLock;
@@ -94,7 +95,7 @@
#endif
::Identify stIdentify = { 0, AppTask::IdentifyStartHandler, AppTask::IdentifyStopHandler,
- EMBER_ZCL_IDENTIFY_IDENTIFY_TYPE_VISIBLE_LED, AppTask::TriggerIdentifyEffectHandler };
+ Clusters::Identify::IdentifyTypeEnum::kVisibleIndicator, AppTask::TriggerIdentifyEffectHandler };
int AppTask::StartAppTask()
{
@@ -534,23 +535,23 @@
{
switch (identify->mCurrentEffectIdentifier)
{
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BLINK:
+ case Clusters::Identify::EffectIdentifierEnum::kBlink:
PLAT_LOG("Starting blink identifier effect");
IdentifyStartHandler(identify);
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BREATHE:
+ case Clusters::Identify::EffectIdentifierEnum::kBreathe:
PLAT_LOG("Breathe identifier effect not implemented");
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_OKAY:
+ case Clusters::Identify::EffectIdentifierEnum::kOkay:
PLAT_LOG("Okay identifier effect not implemented");
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_CHANNEL_CHANGE:
+ case Clusters::Identify::EffectIdentifierEnum::kChannelChange:
PLAT_LOG("Channel Change identifier effect not implemented");
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_FINISH_EFFECT:
+ case Clusters::Identify::EffectIdentifierEnum::kFinishEffect:
PLAT_LOG("Finish identifier effect not implemented");
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_STOP_EFFECT:
+ case Clusters::Identify::EffectIdentifierEnum::kStopEffect:
PLAT_LOG("Stop identifier effect");
IdentifyStopHandler(identify);
break;
diff --git a/examples/lock-app/infineon/cyw30739/src/main.cpp b/examples/lock-app/infineon/cyw30739/src/main.cpp
index 551fc31..76fa848 100644
--- a/examples/lock-app/infineon/cyw30739/src/main.cpp
+++ b/examples/lock-app/infineon/cyw30739/src/main.cpp
@@ -51,6 +51,7 @@
using chip::app::Clusters::DoorLock::OperationSourceEnum;
using namespace chip;
+using namespace chip::app;
using namespace ::chip::DeviceLayer::Internal;
using namespace ::chip::Credentials;
@@ -92,7 +93,7 @@
chip::EndpointId{ 1 },
[](Identify *) { ChipLogProgress(Zcl, "onIdentifyStart"); },
[](Identify *) { ChipLogProgress(Zcl, "onIdentifyStop"); },
- EMBER_ZCL_IDENTIFY_IDENTIFY_TYPE_VISIBLE_LED,
+ Clusters::Identify::IdentifyTypeEnum::kVisibleIndicator,
};
APPLICATION_START()
diff --git a/examples/lock-app/infineon/psoc6/src/AppTask.cpp b/examples/lock-app/infineon/psoc6/src/AppTask.cpp
index b5bd7a4..14d5aba 100644
--- a/examples/lock-app/infineon/psoc6/src/AppTask.cpp
+++ b/examples/lock-app/infineon/psoc6/src/AppTask.cpp
@@ -64,6 +64,7 @@
using chip::System::Layer;
using namespace ::chip;
+using namespace ::chip::app;
using namespace chip::TLV;
using namespace ::chip::Credentials;
using namespace ::chip::DeviceLayer;
@@ -108,6 +109,7 @@
} // namespace
using namespace ::chip;
+using namespace ::chip::app;
using namespace chip::TLV;
using namespace ::chip::Credentials;
using namespace ::chip::DeviceLayer;
@@ -141,7 +143,7 @@
chip::EndpointId{ 1 },
OnIdentifyStart,
OnIdentifyStop,
- EMBER_ZCL_IDENTIFY_IDENTIFY_TYPE_NONE,
+ Clusters::Identify::IdentifyTypeEnum::kNone,
};
static void InitServer(intptr_t context)
diff --git a/examples/lock-app/lock-common/lock-app.matter b/examples/lock-app/lock-common/lock-app.matter
index 8106b7e..1dff883 100644
--- a/examples/lock-app/lock-common/lock-app.matter
+++ b/examples/lock-app/lock-common/lock-app.matter
@@ -13,7 +13,7 @@
/** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */
server cluster Identify = 3 {
- enum IdentifyEffectIdentifier : ENUM8 {
+ enum EffectIdentifierEnum : ENUM8 {
kBlink = 0;
kBreathe = 1;
kOkay = 2;
@@ -22,21 +22,21 @@
kStopEffect = 255;
}
- enum IdentifyEffectVariant : ENUM8 {
+ enum EffectVariantEnum : ENUM8 {
kDefault = 0;
}
- enum IdentifyIdentifyType : ENUM8 {
+ enum IdentifyTypeEnum : ENUM8 {
kNone = 0;
- kVisibleLight = 1;
- kVisibleLED = 2;
+ kLightOutput = 1;
+ kVisibleIndicator = 2;
kAudibleBeep = 3;
kDisplay = 4;
kActuator = 5;
}
attribute int16u identifyTime = 0;
- readonly attribute enum8 identifyType = 1;
+ readonly attribute IdentifyTypeEnum identifyType = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
diff --git a/examples/lock-app/lock-common/lock-app.zap b/examples/lock-app/lock-common/lock-app.zap
index 47ab38a..74a1d27 100644
--- a/examples/lock-app/lock-common/lock-app.zap
+++ b/examples/lock-app/lock-common/lock-app.zap
@@ -5479,7 +5479,7 @@
"code": 1,
"mfgCode": null,
"side": "server",
- "type": "enum8",
+ "type": "IdentifyTypeEnum",
"included": 1,
"storageOption": "RAM",
"singleton": 0,
diff --git a/examples/lock-app/nrfconnect/main/AppTask.cpp b/examples/lock-app/nrfconnect/main/AppTask.cpp
index 9e59b86..8acf7d6 100644
--- a/examples/lock-app/nrfconnect/main/AppTask.cpp
+++ b/examples/lock-app/nrfconnect/main/AppTask.cpp
@@ -79,7 +79,7 @@
k_timer sFunctionTimer;
Identify sIdentify = { kLockEndpointId, AppTask::IdentifyStartHandler, AppTask::IdentifyStopHandler,
- EMBER_ZCL_IDENTIFY_IDENTIFY_TYPE_VISIBLE_LED };
+ Clusters::Identify::IdentifyTypeEnum::kVisibleIndicator };
LEDWidget sStatusLED;
LEDWidget sLockLED;
diff --git a/examples/lock-app/nxp/zap/lock-app.matter b/examples/lock-app/nxp/zap/lock-app.matter
index 16b6442..7b739d8 100644
--- a/examples/lock-app/nxp/zap/lock-app.matter
+++ b/examples/lock-app/nxp/zap/lock-app.matter
@@ -13,7 +13,7 @@
/** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */
server cluster Identify = 3 {
- enum IdentifyEffectIdentifier : ENUM8 {
+ enum EffectIdentifierEnum : ENUM8 {
kBlink = 0;
kBreathe = 1;
kOkay = 2;
@@ -22,21 +22,21 @@
kStopEffect = 255;
}
- enum IdentifyEffectVariant : ENUM8 {
+ enum EffectVariantEnum : ENUM8 {
kDefault = 0;
}
- enum IdentifyIdentifyType : ENUM8 {
+ enum IdentifyTypeEnum : ENUM8 {
kNone = 0;
- kVisibleLight = 1;
- kVisibleLED = 2;
+ kLightOutput = 1;
+ kVisibleIndicator = 2;
kAudibleBeep = 3;
kDisplay = 4;
kActuator = 5;
}
attribute int16u identifyTime = 0;
- readonly attribute enum8 identifyType = 1;
+ readonly attribute IdentifyTypeEnum identifyType = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
@@ -49,8 +49,8 @@
}
request struct TriggerEffectRequest {
- IdentifyEffectIdentifier effectIdentifier = 0;
- IdentifyEffectVariant effectVariant = 1;
+ EffectIdentifierEnum effectIdentifier = 0;
+ EffectVariantEnum effectVariant = 1;
}
command access(invoke: manage) Identify(IdentifyRequest): DefaultSuccess = 0;
diff --git a/examples/lock-app/nxp/zap/lock-app.zap b/examples/lock-app/nxp/zap/lock-app.zap
index 7b715d2..e136bca 100644
--- a/examples/lock-app/nxp/zap/lock-app.zap
+++ b/examples/lock-app/nxp/zap/lock-app.zap
@@ -5580,7 +5580,7 @@
"code": 1,
"mfgCode": null,
"side": "server",
- "type": "enum8",
+ "type": "IdentifyTypeEnum",
"included": 1,
"storageOption": "RAM",
"singleton": 0,
@@ -6720,5 +6720,6 @@
"endpointVersion": 1,
"deviceIdentifier": 10
}
- ]
+ ],
+ "log": []
}
\ No newline at end of file
diff --git a/examples/lock-app/qpg/src/AppTask.cpp b/examples/lock-app/qpg/src/AppTask.cpp
index 7ffd23a..839e3b9 100644
--- a/examples/lock-app/qpg/src/AppTask.cpp
+++ b/examples/lock-app/qpg/src/AppTask.cpp
@@ -88,7 +88,7 @@
constexpr int extDiscTimeoutSecs = 20;
}
-EmberAfIdentifyEffectIdentifier sIdentifyEffect = EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_STOP_EFFECT;
+Clusters::Identify::EffectIdentifierEnum sIdentifyEffect = Clusters::Identify::EffectIdentifierEnum::kStopEffect;
/**********************************************************
* Identify Callbacks
@@ -97,7 +97,7 @@
namespace {
void OnTriggerIdentifyEffectCompleted(chip::System::Layer * systemLayer, void * appState)
{
- sIdentifyEffect = EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_STOP_EFFECT;
+ sIdentifyEffect = Clusters::Identify::EffectIdentifierEnum::kStopEffect;
}
} // namespace
@@ -105,34 +105,34 @@
{
sIdentifyEffect = identify->mCurrentEffectIdentifier;
- if (identify->mCurrentEffectIdentifier == EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_CHANNEL_CHANGE)
+ if (identify->mCurrentEffectIdentifier == Clusters::Identify::EffectIdentifierEnum::kChannelChange)
{
ChipLogProgress(Zcl, "IDENTIFY_EFFECT_IDENTIFIER_CHANNEL_CHANGE - Not supported, use effect variant %d",
- identify->mEffectVariant);
- sIdentifyEffect = static_cast<EmberAfIdentifyEffectIdentifier>(identify->mEffectVariant);
+ to_underlying(identify->mEffectVariant));
+ sIdentifyEffect = static_cast<Clusters::Identify::EffectIdentifierEnum>(identify->mEffectVariant);
}
switch (sIdentifyEffect)
{
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BLINK:
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BREATHE:
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_OKAY:
+ case Clusters::Identify::EffectIdentifierEnum::kBlink:
+ case Clusters::Identify::EffectIdentifierEnum::kBreathe:
+ case Clusters::Identify::EffectIdentifierEnum::kOkay:
SystemLayer().ScheduleLambda([identify] {
(void) chip::DeviceLayer::SystemLayer().StartTimer(chip::System::Clock::Seconds16(5), OnTriggerIdentifyEffectCompleted,
identify);
});
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_FINISH_EFFECT:
+ case Clusters::Identify::EffectIdentifierEnum::kFinishEffect:
SystemLayer().ScheduleLambda([identify] {
(void) chip::DeviceLayer::SystemLayer().CancelTimer(OnTriggerIdentifyEffectCompleted, identify);
(void) chip::DeviceLayer::SystemLayer().StartTimer(chip::System::Clock::Seconds16(1), OnTriggerIdentifyEffectCompleted,
identify);
});
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_STOP_EFFECT:
+ case Clusters::Identify::EffectIdentifierEnum::kStopEffect:
SystemLayer().ScheduleLambda(
[identify] { (void) chip::DeviceLayer::SystemLayer().CancelTimer(OnTriggerIdentifyEffectCompleted, identify); });
- sIdentifyEffect = EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_STOP_EFFECT;
+ sIdentifyEffect = Clusters::Identify::EffectIdentifierEnum::kStopEffect;
break;
default:
ChipLogProgress(Zcl, "No identifier effect");
@@ -143,7 +143,7 @@
chip::EndpointId{ 1 },
[](Identify *) { ChipLogProgress(Zcl, "onIdentifyStart"); },
[](Identify *) { ChipLogProgress(Zcl, "onIdentifyStop"); },
- EMBER_ZCL_IDENTIFY_IDENTIFY_TYPE_VISIBLE_LED,
+ Clusters::Identify::IdentifyTypeEnum::kVisibleIndicator,
OnTriggerIdentifyEffect,
};
diff --git a/examples/lock-app/qpg/zap/lock.matter b/examples/lock-app/qpg/zap/lock.matter
index ba31725..1e11358 100644
--- a/examples/lock-app/qpg/zap/lock.matter
+++ b/examples/lock-app/qpg/zap/lock.matter
@@ -13,7 +13,7 @@
/** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */
server cluster Identify = 3 {
- enum IdentifyEffectIdentifier : ENUM8 {
+ enum EffectIdentifierEnum : ENUM8 {
kBlink = 0;
kBreathe = 1;
kOkay = 2;
@@ -22,21 +22,21 @@
kStopEffect = 255;
}
- enum IdentifyEffectVariant : ENUM8 {
+ enum EffectVariantEnum : ENUM8 {
kDefault = 0;
}
- enum IdentifyIdentifyType : ENUM8 {
+ enum IdentifyTypeEnum : ENUM8 {
kNone = 0;
- kVisibleLight = 1;
- kVisibleLED = 2;
+ kLightOutput = 1;
+ kVisibleIndicator = 2;
kAudibleBeep = 3;
kDisplay = 4;
kActuator = 5;
}
attribute int16u identifyTime = 0;
- readonly attribute enum8 identifyType = 1;
+ readonly attribute IdentifyTypeEnum identifyType = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
@@ -49,8 +49,8 @@
}
request struct TriggerEffectRequest {
- IdentifyEffectIdentifier effectIdentifier = 0;
- IdentifyEffectVariant effectVariant = 1;
+ EffectIdentifierEnum effectIdentifier = 0;
+ EffectVariantEnum effectVariant = 1;
}
command access(invoke: manage) Identify(IdentifyRequest): DefaultSuccess = 0;
diff --git a/examples/lock-app/qpg/zap/lock.zap b/examples/lock-app/qpg/zap/lock.zap
index e2bea24..d12fbed 100644
--- a/examples/lock-app/qpg/zap/lock.zap
+++ b/examples/lock-app/qpg/zap/lock.zap
@@ -6423,7 +6423,7 @@
"code": 1,
"mfgCode": null,
"side": "server",
- "type": "enum8",
+ "type": "IdentifyTypeEnum",
"included": 1,
"storageOption": "RAM",
"singleton": 0,
diff --git a/examples/lock-app/silabs/src/AppTask.cpp b/examples/lock-app/silabs/src/AppTask.cpp
index cf3d1f5..9677a81 100644
--- a/examples/lock-app/silabs/src/AppTask.cpp
+++ b/examples/lock-app/silabs/src/AppTask.cpp
@@ -63,6 +63,7 @@
using chip::app::Clusters::DoorLock::OperationSourceEnum;
using namespace chip;
+using namespace chip::app;
using namespace ::chip::DeviceLayer;
using namespace ::chip::DeviceLayer::Silabs;
using namespace ::chip::DeviceLayer::Internal;
@@ -71,7 +72,7 @@
namespace {
LEDWidget sLockLED;
-EmberAfIdentifyEffectIdentifier sIdentifyEffect = EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_STOP_EFFECT;
+Clusters::Identify::EffectIdentifierEnum sIdentifyEffect = Clusters::Identify::EffectIdentifierEnum::kStopEffect;
} // namespace
/**********************************************************
* Identify Callbacks
@@ -81,7 +82,7 @@
void OnTriggerIdentifyEffectCompleted(chip::System::Layer * systemLayer, void * appState)
{
ChipLogProgress(Zcl, "Trigger Identify Complete");
- sIdentifyEffect = EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_STOP_EFFECT;
+ sIdentifyEffect = Clusters::Identify::EffectIdentifierEnum::kStopEffect;
#if CHIP_DEVICE_CONFIG_ENABLE_SED == 1
AppTask::GetAppTask().StopStatusLEDTimer();
@@ -92,11 +93,11 @@
{
sIdentifyEffect = identify->mCurrentEffectIdentifier;
- if (identify->mCurrentEffectIdentifier == EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_CHANNEL_CHANGE)
+ if (identify->mCurrentEffectIdentifier == Clusters::Identify::EffectIdentifierEnum::kChannelChange)
{
ChipLogProgress(Zcl, "IDENTIFY_EFFECT_IDENTIFIER_CHANNEL_CHANGE - Not supported, use effect varriant %d",
- identify->mEffectVariant);
- sIdentifyEffect = static_cast<EmberAfIdentifyEffectIdentifier>(identify->mEffectVariant);
+ to_underlying(identify->mEffectVariant));
+ sIdentifyEffect = static_cast<Clusters::Identify::EffectIdentifierEnum>(identify->mEffectVariant);
}
#if CHIP_DEVICE_CONFIG_ENABLE_SED == 1
@@ -105,20 +106,20 @@
switch (sIdentifyEffect)
{
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BLINK:
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BREATHE:
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_OKAY:
+ case Clusters::Identify::EffectIdentifierEnum::kBlink:
+ case Clusters::Identify::EffectIdentifierEnum::kBreathe:
+ case Clusters::Identify::EffectIdentifierEnum::kOkay:
(void) chip::DeviceLayer::SystemLayer().StartTimer(chip::System::Clock::Seconds16(5), OnTriggerIdentifyEffectCompleted,
identify);
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_FINISH_EFFECT:
+ case Clusters::Identify::EffectIdentifierEnum::kFinishEffect:
(void) chip::DeviceLayer::SystemLayer().CancelTimer(OnTriggerIdentifyEffectCompleted, identify);
(void) chip::DeviceLayer::SystemLayer().StartTimer(chip::System::Clock::Seconds16(1), OnTriggerIdentifyEffectCompleted,
identify);
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_STOP_EFFECT:
+ case Clusters::Identify::EffectIdentifierEnum::kStopEffect:
(void) chip::DeviceLayer::SystemLayer().CancelTimer(OnTriggerIdentifyEffectCompleted, identify);
- sIdentifyEffect = EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_STOP_EFFECT;
+ sIdentifyEffect = Clusters::Identify::EffectIdentifierEnum::kStopEffect;
break;
default:
ChipLogProgress(Zcl, "No identifier effect");
@@ -129,7 +130,7 @@
chip::EndpointId{ 1 },
AppTask::GetAppTask().OnIdentifyStart,
AppTask::GetAppTask().OnIdentifyStop,
- EMBER_ZCL_IDENTIFY_IDENTIFY_TYPE_VISIBLE_LED,
+ Clusters::Identify::IdentifyTypeEnum::kVisibleIndicator,
OnTriggerIdentifyEffect,
};
diff --git a/examples/lock-app/telink/README.md b/examples/lock-app/telink/README.md
index 0729dfb..8905d99 100755
--- a/examples/lock-app/telink/README.md
+++ b/examples/lock-app/telink/README.md
@@ -84,14 +84,14 @@
Identify command of the Identify cluster is received. The command's argument can
be used to specify the the effect. It is able to be in following effects:
-| Effect | Description |
-| :------------------------------ | :------------------------------------------------------------------- |
-| Blinks (200 ms on/200 ms off) | Blink (EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BLINK) |
-| Breathe (during 1000 ms) | Breathe (EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BREATHE) |
-| Blinks (50 ms on/950 ms off) | Okay (EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_OKAY) |
-| Blinks (1000 ms on/1000 ms off) | Channel Change (EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_CHANNEL_CHANGE) |
-| Blinks (950 ms on/50 ms off) | Finish (EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_FINISH_EFFECT) |
-| LED off | Stop (EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_STOP_EFFECT) |
+| Effect | Description |
+| :------------------------------ | :--------------------------------------------------------------------------- |
+| Blinks (200 ms on/200 ms off) | Blink (`Clusters::Identify::EffectIdentifierEnum::kBlink`) |
+| Breathe (during 1000 ms) | Breathe (`Clusters::Identify::EffectIdentifierEnum::kBreathe`) |
+| Blinks (50 ms on/950 ms off) | Okay (`Clusters::Identify::EffectIdentifierEnum::kOkay`) |
+| Blinks (1000 ms on/1000 ms off) | Channel Change ( `Clusters::Identify::EffectIdentifierEnum::kChannelChange`) |
+| Blinks (950 ms on/50 ms off) | Finish ( `Clusters::Identify::EffectIdentifierEnum::kFinishEffect`) |
+| LED off | Stop (`Clusters::Identify::EffectIdentifierEnum::kStopEffect`) |
#### Indicate current Lock state
diff --git a/examples/ota-requestor-app/ota-requestor-common/ota-requestor-app.matter b/examples/ota-requestor-app/ota-requestor-common/ota-requestor-app.matter
index c5cd44e..6a99553 100644
--- a/examples/ota-requestor-app/ota-requestor-common/ota-requestor-app.matter
+++ b/examples/ota-requestor-app/ota-requestor-common/ota-requestor-app.matter
@@ -13,7 +13,7 @@
/** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */
server cluster Identify = 3 {
- enum IdentifyEffectIdentifier : ENUM8 {
+ enum EffectIdentifierEnum : ENUM8 {
kBlink = 0;
kBreathe = 1;
kOkay = 2;
@@ -22,21 +22,21 @@
kStopEffect = 255;
}
- enum IdentifyEffectVariant : ENUM8 {
+ enum EffectVariantEnum : ENUM8 {
kDefault = 0;
}
- enum IdentifyIdentifyType : ENUM8 {
+ enum IdentifyTypeEnum : ENUM8 {
kNone = 0;
- kVisibleLight = 1;
- kVisibleLED = 2;
+ kLightOutput = 1;
+ kVisibleIndicator = 2;
kAudibleBeep = 3;
kDisplay = 4;
kActuator = 5;
}
attribute int16u identifyTime = 0;
- readonly attribute enum8 identifyType = 1;
+ readonly attribute IdentifyTypeEnum identifyType = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
@@ -49,8 +49,8 @@
}
request struct TriggerEffectRequest {
- IdentifyEffectIdentifier effectIdentifier = 0;
- IdentifyEffectVariant effectVariant = 1;
+ EffectIdentifierEnum effectIdentifier = 0;
+ EffectVariantEnum effectVariant = 1;
}
command access(invoke: manage) Identify(IdentifyRequest): DefaultSuccess = 0;
diff --git a/examples/ota-requestor-app/ota-requestor-common/ota-requestor-app.zap b/examples/ota-requestor-app/ota-requestor-common/ota-requestor-app.zap
index b3801d7..f94041e 100644
--- a/examples/ota-requestor-app/ota-requestor-common/ota-requestor-app.zap
+++ b/examples/ota-requestor-app/ota-requestor-common/ota-requestor-app.zap
@@ -5152,7 +5152,7 @@
"code": 1,
"mfgCode": null,
"side": "server",
- "type": "enum8",
+ "type": "IdentifyTypeEnum",
"included": 1,
"storageOption": "RAM",
"singleton": 0,
diff --git a/examples/ota-requestor-app/telink/Readme.md b/examples/ota-requestor-app/telink/Readme.md
index 7a38eb4..00ed51b 100755
--- a/examples/ota-requestor-app/telink/Readme.md
+++ b/examples/ota-requestor-app/telink/Readme.md
@@ -77,14 +77,14 @@
Identify command of the Identify cluster is received. The command's argument can
be used to specify the the effect. It is able to be in following effects:
-| Effect | Description |
-| :------------------------------ | :------------------------------------------------------------------- |
-| Blinks (200 ms on/200 ms off) | Blink (EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BLINK) |
-| Breathe (during 1000 ms) | Breathe (EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BREATHE) |
-| Blinks (50 ms on/950 ms off) | Okay (EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_OKAY) |
-| Blinks (1000 ms on/1000 ms off) | Channel Change (EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_CHANNEL_CHANGE) |
-| Blinks (950 ms on/50 ms off) | Finish (EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_FINISH_EFFECT) |
-| LED off | Stop (EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_STOP_EFFECT) |
+| Effect | Description |
+| :------------------------------ | :--------------------------------------------------------------------------- |
+| Blinks (200 ms on/200 ms off) | Blink (`Clusters::Identify::EffectIdentifierEnum::kBlink`) |
+| Breathe (during 1000 ms) | Breathe (`Clusters::Identify::EffectIdentifierEnum::kBreathe`) |
+| Blinks (50 ms on/950 ms off) | Okay (`Clusters::Identify::EffectIdentifierEnum::kOkay`) |
+| Blinks (1000 ms on/1000 ms off) | Channel Change ( `Clusters::Identify::EffectIdentifierEnum::kChannelChange`) |
+| Blinks (950 ms on/50 ms off) | Finish ( `Clusters::Identify::EffectIdentifierEnum::kFinishEffect`) |
+| LED off | Stop (`Clusters::Identify::EffectIdentifierEnum::kStopEffect`) |
### CHIP tool commands
diff --git a/examples/placeholder/linux/apps/app1/config.matter b/examples/placeholder/linux/apps/app1/config.matter
index 314ffe3..b7b0c5f 100644
--- a/examples/placeholder/linux/apps/app1/config.matter
+++ b/examples/placeholder/linux/apps/app1/config.matter
@@ -13,7 +13,7 @@
/** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */
server cluster Identify = 3 {
- enum IdentifyEffectIdentifier : ENUM8 {
+ enum EffectIdentifierEnum : ENUM8 {
kBlink = 0;
kBreathe = 1;
kOkay = 2;
@@ -22,21 +22,21 @@
kStopEffect = 255;
}
- enum IdentifyEffectVariant : ENUM8 {
+ enum EffectVariantEnum : ENUM8 {
kDefault = 0;
}
- enum IdentifyIdentifyType : ENUM8 {
+ enum IdentifyTypeEnum : ENUM8 {
kNone = 0;
- kVisibleLight = 1;
- kVisibleLED = 2;
+ kLightOutput = 1;
+ kVisibleIndicator = 2;
kAudibleBeep = 3;
kDisplay = 4;
kActuator = 5;
}
attribute int16u identifyTime = 0;
- readonly attribute enum8 identifyType = 1;
+ readonly attribute IdentifyTypeEnum identifyType = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
@@ -49,8 +49,8 @@
}
request struct TriggerEffectRequest {
- IdentifyEffectIdentifier effectIdentifier = 0;
- IdentifyEffectVariant effectVariant = 1;
+ EffectIdentifierEnum effectIdentifier = 0;
+ EffectVariantEnum effectVariant = 1;
}
command access(invoke: manage) Identify(IdentifyRequest): DefaultSuccess = 0;
diff --git a/examples/placeholder/linux/apps/app1/config.zap b/examples/placeholder/linux/apps/app1/config.zap
index e9e3dc0..02c19e6 100644
--- a/examples/placeholder/linux/apps/app1/config.zap
+++ b/examples/placeholder/linux/apps/app1/config.zap
@@ -10987,7 +10987,7 @@
"code": 1,
"mfgCode": null,
"side": "server",
- "type": "enum8",
+ "type": "IdentifyTypeEnum",
"included": 1,
"storageOption": "RAM",
"singleton": 0,
diff --git a/examples/placeholder/linux/apps/app2/config.matter b/examples/placeholder/linux/apps/app2/config.matter
index f4482dd..0f3d9c4 100644
--- a/examples/placeholder/linux/apps/app2/config.matter
+++ b/examples/placeholder/linux/apps/app2/config.matter
@@ -13,7 +13,7 @@
/** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */
server cluster Identify = 3 {
- enum IdentifyEffectIdentifier : ENUM8 {
+ enum EffectIdentifierEnum : ENUM8 {
kBlink = 0;
kBreathe = 1;
kOkay = 2;
@@ -22,21 +22,21 @@
kStopEffect = 255;
}
- enum IdentifyEffectVariant : ENUM8 {
+ enum EffectVariantEnum : ENUM8 {
kDefault = 0;
}
- enum IdentifyIdentifyType : ENUM8 {
+ enum IdentifyTypeEnum : ENUM8 {
kNone = 0;
- kVisibleLight = 1;
- kVisibleLED = 2;
+ kLightOutput = 1;
+ kVisibleIndicator = 2;
kAudibleBeep = 3;
kDisplay = 4;
kActuator = 5;
}
attribute int16u identifyTime = 0;
- readonly attribute enum8 identifyType = 1;
+ readonly attribute IdentifyTypeEnum identifyType = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
@@ -49,8 +49,8 @@
}
request struct TriggerEffectRequest {
- IdentifyEffectIdentifier effectIdentifier = 0;
- IdentifyEffectVariant effectVariant = 1;
+ EffectIdentifierEnum effectIdentifier = 0;
+ EffectVariantEnum effectVariant = 1;
}
command access(invoke: manage) Identify(IdentifyRequest): DefaultSuccess = 0;
diff --git a/examples/placeholder/linux/apps/app2/config.zap b/examples/placeholder/linux/apps/app2/config.zap
index 988f417..843b768 100644
--- a/examples/placeholder/linux/apps/app2/config.zap
+++ b/examples/placeholder/linux/apps/app2/config.zap
@@ -11271,7 +11271,7 @@
"code": 1,
"mfgCode": null,
"side": "server",
- "type": "enum8",
+ "type": "IdentifyTypeEnum",
"included": 1,
"storageOption": "RAM",
"singleton": 0,
diff --git a/examples/platform/silabs/SiWx917/BaseApplication.cpp b/examples/platform/silabs/SiWx917/BaseApplication.cpp
index 7b0bae1..db6ddc1 100644
--- a/examples/platform/silabs/SiWx917/BaseApplication.cpp
+++ b/examples/platform/silabs/SiWx917/BaseApplication.cpp
@@ -71,6 +71,7 @@
#define APP_STATE_LED 0
using namespace chip;
+using namespace chip::app;
using namespace ::chip::DeviceLayer;
using namespace ::chip::DeviceLayer::Silabs;
@@ -102,7 +103,7 @@
#endif // CHIP_DEVICE_CONFIG_ENABLE_SED
-EmberAfIdentifyEffectIdentifier sIdentifyEffect = EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_STOP_EFFECT;
+Clusters::Identify::EffectIdentifierEnum sIdentifyEffect = Clusters::Identify::EffectIdentifierEnum::kStopEffect;
uint8_t sAppEventQueueBuffer[APP_EVENT_QUEUE_SIZE * sizeof(AppEvent)];
StaticQueue_t sAppEventQueueStruct;
@@ -306,17 +307,17 @@
{
sStatusLED.Blink(250, 250);
}
- else if (sIdentifyEffect != EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_STOP_EFFECT)
+ else if (sIdentifyEffect != Clusters::Identify::EffectIdentifierEnum::kStopEffect)
{
- if (sIdentifyEffect == EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BLINK)
+ if (sIdentifyEffect == Clusters::Identify::EffectIdentifierEnum::kBlink)
{
sStatusLED.Blink(50, 50);
}
- if (sIdentifyEffect == EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BREATHE)
+ if (sIdentifyEffect == Clusters::Identify::EffectIdentifierEnum::kBreathe)
{
sStatusLED.Blink(1000, 1000);
}
- if (sIdentifyEffect == EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_OKAY)
+ if (sIdentifyEffect == Clusters::Identify::EffectIdentifierEnum::kOkay)
{
sStatusLED.Blink(300, 700);
}
diff --git a/examples/platform/silabs/efr32/BaseApplication.cpp b/examples/platform/silabs/efr32/BaseApplication.cpp
index baf16e7..b37a3ee 100644
--- a/examples/platform/silabs/efr32/BaseApplication.cpp
+++ b/examples/platform/silabs/efr32/BaseApplication.cpp
@@ -80,6 +80,7 @@
#define APP_FUNCTION_BUTTON 0
using namespace chip;
+using namespace chip::app;
using namespace ::chip::DeviceLayer;
using namespace ::chip::DeviceLayer::Silabs;
@@ -112,7 +113,7 @@
bool sHaveBLEConnections = false;
#endif // CHIP_DEVICE_CONFIG_ENABLE_SED
-EmberAfIdentifyEffectIdentifier sIdentifyEffect = EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_STOP_EFFECT;
+Clusters::Identify::EffectIdentifierEnum sIdentifyEffect = Clusters::Identify::EffectIdentifierEnum::kStopEffect;
uint8_t sAppEventQueueBuffer[APP_EVENT_QUEUE_SIZE * sizeof(AppEvent)];
StaticQueue_t sAppEventQueueStruct;
@@ -342,21 +343,21 @@
sStatusLED.Blink(250, 250);
#endif // ENABLE_WSTK_LEDS
}
- else if (sIdentifyEffect != EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_STOP_EFFECT)
+ else if (sIdentifyEffect != Clusters::Identify::EffectIdentifierEnum::kStopEffect)
{
- if (sIdentifyEffect == EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BLINK)
+ if (sIdentifyEffect == Clusters::Identify::EffectIdentifierEnum::kBlink)
{
#if defined(ENABLE_WSTK_LEDS) && defined(SL_CATALOG_SIMPLE_LED_LED1_PRESENT)
sStatusLED.Blink(50, 50);
#endif // ENABLE_WSTK_LEDS
}
- if (sIdentifyEffect == EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BREATHE)
+ if (sIdentifyEffect == Clusters::Identify::EffectIdentifierEnum::kBreathe)
{
#if defined(ENABLE_WSTK_LEDS) && defined(SL_CATALOG_SIMPLE_LED_LED1_PRESENT)
sStatusLED.Blink(1000, 1000);
#endif // ENABLE_WSTK_LEDS
}
- if (sIdentifyEffect == EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_OKAY)
+ if (sIdentifyEffect == Clusters::Identify::EffectIdentifierEnum::kOkay)
{
#if defined(ENABLE_WSTK_LEDS) && defined(SL_CATALOG_SIMPLE_LED_LED1_PRESENT)
sStatusLED.Blink(300, 700);
diff --git a/examples/platform/telink/common/include/AppTaskCommon.h b/examples/platform/telink/common/include/AppTaskCommon.h
index 01e0208..97b87f0 100644
--- a/examples/platform/telink/common/include/AppTaskCommon.h
+++ b/examples/platform/telink/common/include/AppTaskCommon.h
@@ -62,7 +62,7 @@
CHIP_ERROR StartApp();
void PostEvent(AppEvent * event);
- static void IdentifyEffectHandler(EmberAfIdentifyEffectIdentifier aEffect);
+ static void IdentifyEffectHandler(Clusters::Identify::EffectIdentifierEnum aEffect);
protected:
CHIP_ERROR InitCommonParts(void);
diff --git a/examples/platform/telink/common/src/AppTaskCommon.cpp b/examples/platform/telink/common/src/AppTaskCommon.cpp
index c49222d..4297d3a 100644
--- a/examples/platform/telink/common/src/AppTaskCommon.cpp
+++ b/examples/platform/telink/common/src/AppTaskCommon.cpp
@@ -38,6 +38,8 @@
#include <app/InteractionModelEngine.h>
#endif
+using namespace chip::app;
+
LOG_MODULE_DECLARE(app, CONFIG_CHIP_APP_LOG_LEVEL);
namespace {
@@ -98,7 +100,7 @@
kExampleEndpointId,
[](Identify *) { ChipLogProgress(Zcl, "OnIdentifyStart"); },
[](Identify *) { ChipLogProgress(Zcl, "OnIdentifyStop"); },
- EMBER_ZCL_IDENTIFY_IDENTIFY_TYPE_VISIBLE_LED,
+ Clusters::Identify::IdentifyTypeEnum::kVisibleIndicator,
OnIdentifyTriggerEffect,
};
#endif
@@ -346,45 +348,45 @@
GetAppTask().mPwmIdentifyLed.UpdateAction();
}
-void AppTaskCommon::IdentifyEffectHandler(EmberAfIdentifyEffectIdentifier aEffect)
+void AppTaskCommon::IdentifyEffectHandler(Clusters::Identify::EffectIdentifierEnum aEffect)
{
AppEvent event;
event.Type = AppEvent::kEventType_IdentifyStart;
switch (aEffect)
{
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BLINK:
- ChipLogProgress(Zcl, "EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BLINK");
+ case Clusters::Identify::EffectIdentifierEnum::kBlink:
+ ChipLogProgress(Zcl, "Clusters::Identify::EffectIdentifierEnum::kBlink");
event.Handler = [](AppEvent *) {
GetAppTask().mPwmIdentifyLed.InitiateBlinkAction(kIdentifyBlinkRateMs, kIdentifyBlinkRateMs);
};
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BREATHE:
- ChipLogProgress(Zcl, "EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BREATHE");
+ case Clusters::Identify::EffectIdentifierEnum::kBreathe:
+ ChipLogProgress(Zcl, "Clusters::Identify::EffectIdentifierEnum::kBreathe");
event.Handler = [](AppEvent *) {
GetAppTask().mPwmIdentifyLed.InitiateBreatheAction(PWMDevice::kBreatheType_Both, kIdentifyBreatheRateMs);
};
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_OKAY:
- ChipLogProgress(Zcl, "EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_OKAY");
+ case Clusters::Identify::EffectIdentifierEnum::kOkay:
+ ChipLogProgress(Zcl, "Clusters::Identify::EffectIdentifierEnum::kOkay");
event.Handler = [](AppEvent *) {
GetAppTask().mPwmIdentifyLed.InitiateBlinkAction(kIdentifyOkayOnRateMs, kIdentifyOkayOffRateMs);
};
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_CHANNEL_CHANGE:
- ChipLogProgress(Zcl, "EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_CHANNEL_CHANGE");
+ case Clusters::Identify::EffectIdentifierEnum::kChannelChange:
+ ChipLogProgress(Zcl, "Clusters::Identify::EffectIdentifierEnum::kChannelChange");
event.Handler = [](AppEvent *) {
GetAppTask().mPwmIdentifyLed.InitiateBlinkAction(kIdentifyChannelChangeRateMs, kIdentifyChannelChangeRateMs);
};
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_FINISH_EFFECT:
- ChipLogProgress(Zcl, "EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_FINISH_EFFECT");
+ case Clusters::Identify::EffectIdentifierEnum::kFinishEffect:
+ ChipLogProgress(Zcl, "Clusters::Identify::EffectIdentifierEnum::kFinishEffect");
event.Handler = [](AppEvent *) {
GetAppTask().mPwmIdentifyLed.InitiateBlinkAction(kIdentifyFinishOnRateMs, kIdentifyFinishOffRateMs);
};
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_STOP_EFFECT:
- ChipLogProgress(Zcl, "EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_STOP_EFFECT");
+ case Clusters::Identify::EffectIdentifierEnum::kStopEffect:
+ ChipLogProgress(Zcl, "Clusters::Identify::EffectIdentifierEnum::kStopEffect");
event.Handler = [](AppEvent *) { GetAppTask().mPwmIdentifyLed.StopAction(); };
event.Type = AppEvent::kEventType_IdentifyStop;
break;
diff --git a/examples/pump-app/cc13x2x7_26x2x7/main/AppTask.cpp b/examples/pump-app/cc13x2x7_26x2x7/main/AppTask.cpp
index 4514cd7..2dfecb6 100644
--- a/examples/pump-app/cc13x2x7_26x2x7/main/AppTask.cpp
+++ b/examples/pump-app/cc13x2x7_26x2x7/main/AppTask.cpp
@@ -105,7 +105,7 @@
static const uint32_t sIdentifyBlinkRateMs = 500;
::Identify stIdentify = { sIdentifyEndpointId, AppTask::IdentifyStartHandler, AppTask::IdentifyStopHandler,
- EMBER_ZCL_IDENTIFY_IDENTIFY_TYPE_VISIBLE_LED, AppTask::TriggerIdentifyEffectHandler };
+ Clusters::Identify::IdentifyTypeEnum::kVisibleIndicator, AppTask::TriggerIdentifyEffectHandler };
int AppTask::StartAppTask()
{
@@ -649,23 +649,23 @@
{
switch (identify->mCurrentEffectIdentifier)
{
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BLINK:
+ case Clusters::Identify::EffectIdentifierEnum::kBlink:
PLAT_LOG("Starting blink identifier effect");
IdentifyStartHandler(identify);
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BREATHE:
+ case Clusters::Identify::EffectIdentifierEnum::kBreathe:
PLAT_LOG("Breathe identifier effect not implemented");
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_OKAY:
+ case Clusters::Identify::EffectIdentifierEnum::kOkay:
PLAT_LOG("Okay identifier effect not implemented");
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_CHANNEL_CHANGE:
+ case Clusters::Identify::EffectIdentifierEnum::kChannelChange:
PLAT_LOG("Channel Change identifier effect not implemented");
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_FINISH_EFFECT:
+ case Clusters::Identify::EffectIdentifierEnum::kFinishEffect:
PLAT_LOG("Finish identifier effect not implemented");
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_STOP_EFFECT:
+ case Clusters::Identify::EffectIdentifierEnum::kStopEffect:
PLAT_LOG("Stop identifier effect");
IdentifyStopHandler(identify);
break;
diff --git a/examples/pump-app/cc13x4_26x4/main/AppTask.cpp b/examples/pump-app/cc13x4_26x4/main/AppTask.cpp
index 8b03138..b5be215 100644
--- a/examples/pump-app/cc13x4_26x4/main/AppTask.cpp
+++ b/examples/pump-app/cc13x4_26x4/main/AppTask.cpp
@@ -106,7 +106,7 @@
static const uint32_t sIdentifyBlinkRateMs = 500;
::Identify stIdentify = { sIdentifyEndpointId, AppTask::IdentifyStartHandler, AppTask::IdentifyStopHandler,
- EMBER_ZCL_IDENTIFY_IDENTIFY_TYPE_VISIBLE_LED, AppTask::TriggerIdentifyEffectHandler };
+ Clusters::Identify::IdentifyTypeEnum::kVisibleIndicator, AppTask::TriggerIdentifyEffectHandler };
int AppTask::StartAppTask()
{
@@ -650,23 +650,23 @@
{
switch (identify->mCurrentEffectIdentifier)
{
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BLINK:
+ case Clusters::Identify::EffectIdentifierEnum::kBlink:
PLAT_LOG("Starting blink identifier effect");
IdentifyStartHandler(identify);
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BREATHE:
+ case Clusters::Identify::EffectIdentifierEnum::kBreathe:
PLAT_LOG("Breathe identifier effect not implemented");
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_OKAY:
+ case Clusters::Identify::EffectIdentifierEnum::kOkay:
PLAT_LOG("Okay identifier effect not implemented");
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_CHANNEL_CHANGE:
+ case Clusters::Identify::EffectIdentifierEnum::kChannelChange:
PLAT_LOG("Channel Change identifier effect not implemented");
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_FINISH_EFFECT:
+ case Clusters::Identify::EffectIdentifierEnum::kFinishEffect:
PLAT_LOG("Finish identifier effect not implemented");
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_STOP_EFFECT:
+ case Clusters::Identify::EffectIdentifierEnum::kStopEffect:
PLAT_LOG("Stop identifier effect");
IdentifyStopHandler(identify);
break;
diff --git a/examples/pump-app/pump-common/pump-app.matter b/examples/pump-app/pump-common/pump-app.matter
index 452de8a..c1791c3 100644
--- a/examples/pump-app/pump-common/pump-app.matter
+++ b/examples/pump-app/pump-common/pump-app.matter
@@ -13,7 +13,7 @@
/** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */
server cluster Identify = 3 {
- enum IdentifyEffectIdentifier : ENUM8 {
+ enum EffectIdentifierEnum : ENUM8 {
kBlink = 0;
kBreathe = 1;
kOkay = 2;
@@ -22,21 +22,21 @@
kStopEffect = 255;
}
- enum IdentifyEffectVariant : ENUM8 {
+ enum EffectVariantEnum : ENUM8 {
kDefault = 0;
}
- enum IdentifyIdentifyType : ENUM8 {
+ enum IdentifyTypeEnum : ENUM8 {
kNone = 0;
- kVisibleLight = 1;
- kVisibleLED = 2;
+ kLightOutput = 1;
+ kVisibleIndicator = 2;
kAudibleBeep = 3;
kDisplay = 4;
kActuator = 5;
}
attribute int16u identifyTime = 0;
- readonly attribute enum8 identifyType = 1;
+ readonly attribute IdentifyTypeEnum identifyType = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
diff --git a/examples/pump-app/pump-common/pump-app.zap b/examples/pump-app/pump-common/pump-app.zap
index 4e72e20..de1eb19 100644
--- a/examples/pump-app/pump-common/pump-app.zap
+++ b/examples/pump-app/pump-common/pump-app.zap
@@ -93,7 +93,7 @@
"code": 1,
"mfgCode": null,
"side": "server",
- "type": "enum8",
+ "type": "IdentifyTypeEnum",
"included": 1,
"storageOption": "RAM",
"singleton": 0,
@@ -5722,7 +5722,7 @@
"code": 1,
"mfgCode": null,
"side": "server",
- "type": "enum8",
+ "type": "IdentifyTypeEnum",
"included": 1,
"storageOption": "RAM",
"singleton": 0,
@@ -7985,5 +7985,6 @@
"endpointVersion": 1,
"deviceIdentifier": 771
}
- ]
+ ],
+ "log": []
}
\ No newline at end of file
diff --git a/examples/pump-app/telink/README.md b/examples/pump-app/telink/README.md
index 1281b69..b1e9238 100755
--- a/examples/pump-app/telink/README.md
+++ b/examples/pump-app/telink/README.md
@@ -85,14 +85,14 @@
Identify command of the Identify cluster is received. The command's argument can
be used to specify the the effect. It is able to be in following effects:
-| Effect | Description |
-| :------------------------------ | :------------------------------------------------------------------- |
-| Blinks (200 ms on/200 ms off) | Blink (EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BLINK) |
-| Breathe (during 1000 ms) | Breathe (EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BREATHE) |
-| Blinks (50 ms on/950 ms off) | Okay (EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_OKAY) |
-| Blinks (1000 ms on/1000 ms off) | Channel Change (EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_CHANNEL_CHANGE) |
-| Blinks (950 ms on/50 ms off) | Finish (EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_FINISH_EFFECT) |
-| LED off | Stop (EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_STOP_EFFECT) |
+| Effect | Description |
+| :------------------------------ | :--------------------------------------------------------------------------- |
+| Blinks (200 ms on/200 ms off) | Blink (`Clusters::Identify::EffectIdentifierEnum::kBlink`) |
+| Breathe (during 1000 ms) | Breathe (`Clusters::Identify::EffectIdentifierEnum::kBreathe`) |
+| Blinks (50 ms on/950 ms off) | Okay (`Clusters::Identify::EffectIdentifierEnum::kOkay`) |
+| Blinks (1000 ms on/1000 ms off) | Channel Change ( `Clusters::Identify::EffectIdentifierEnum::kChannelChange`) |
+| Blinks (950 ms on/50 ms off) | Finish ( `Clusters::Identify::EffectIdentifierEnum::kFinishEffect`) |
+| LED off | Stop (`Clusters::Identify::EffectIdentifierEnum::kStopEffect`) |
#### Indicate current Pump state
diff --git a/examples/pump-controller-app/cc13x2x7_26x2x7/main/AppTask.cpp b/examples/pump-controller-app/cc13x2x7_26x2x7/main/AppTask.cpp
index 8c4e51f..fa5d85e 100644
--- a/examples/pump-controller-app/cc13x2x7_26x2x7/main/AppTask.cpp
+++ b/examples/pump-controller-app/cc13x2x7_26x2x7/main/AppTask.cpp
@@ -56,6 +56,7 @@
#define APP_EVENT_QUEUE_SIZE 10
using namespace ::chip;
+using namespace ::chip::app;
using namespace ::chip::Credentials;
using namespace ::chip::DeviceLayer;
@@ -93,7 +94,7 @@
static const uint32_t sIdentifyBlinkRateMs = 500;
::Identify stIdentify = { sIdentifyEndpointId, AppTask::IdentifyStartHandler, AppTask::IdentifyStopHandler,
- EMBER_ZCL_IDENTIFY_IDENTIFY_TYPE_VISIBLE_LED, AppTask::TriggerIdentifyEffectHandler };
+ Clusters::Identify::IdentifyTypeEnum::kVisibleIndicator, AppTask::TriggerIdentifyEffectHandler };
int AppTask::StartAppTask()
{
@@ -435,23 +436,23 @@
{
switch (identify->mCurrentEffectIdentifier)
{
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BLINK:
+ case Clusters::Identify::EffectIdentifierEnum::kBlink:
PLAT_LOG("Starting blink identifier effect");
IdentifyStartHandler(identify);
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BREATHE:
+ case Clusters::Identify::EffectIdentifierEnum::kBreathe:
PLAT_LOG("Breathe identifier effect not implemented");
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_OKAY:
+ case Clusters::Identify::EffectIdentifierEnum::kOkay:
PLAT_LOG("Okay identifier effect not implemented");
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_CHANNEL_CHANGE:
+ case Clusters::Identify::EffectIdentifierEnum::kChannelChange:
PLAT_LOG("Channel Change identifier effect not implemented");
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_FINISH_EFFECT:
+ case Clusters::Identify::EffectIdentifierEnum::kFinishEffect:
PLAT_LOG("Finish identifier effect not implemented");
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_STOP_EFFECT:
+ case Clusters::Identify::EffectIdentifierEnum::kStopEffect:
PLAT_LOG("Stop identifier effect");
IdentifyStopHandler(identify);
break;
diff --git a/examples/pump-controller-app/cc13x4_26x4/main/AppTask.cpp b/examples/pump-controller-app/cc13x4_26x4/main/AppTask.cpp
index e2470d3..51ef817 100644
--- a/examples/pump-controller-app/cc13x4_26x4/main/AppTask.cpp
+++ b/examples/pump-controller-app/cc13x4_26x4/main/AppTask.cpp
@@ -56,6 +56,7 @@
#define APP_EVENT_QUEUE_SIZE 10
using namespace ::chip;
+using namespace ::chip::app;
using namespace ::chip::Credentials;
using namespace ::chip::DeviceLayer;
@@ -93,7 +94,7 @@
static const uint32_t sIdentifyBlinkRateMs = 500;
::Identify stIdentify = { sIdentifyEndpointId, AppTask::IdentifyStartHandler, AppTask::IdentifyStopHandler,
- EMBER_ZCL_IDENTIFY_IDENTIFY_TYPE_VISIBLE_LED, AppTask::TriggerIdentifyEffectHandler };
+ Clusters::Identify::IdentifyTypeEnum::kVisibleIndicator, AppTask::TriggerIdentifyEffectHandler };
int AppTask::StartAppTask()
{
@@ -435,23 +436,23 @@
{
switch (identify->mCurrentEffectIdentifier)
{
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BLINK:
+ case Clusters::Identify::EffectIdentifierEnum::kBlink:
PLAT_LOG("Starting blink identifier effect");
IdentifyStartHandler(identify);
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BREATHE:
+ case Clusters::Identify::EffectIdentifierEnum::kBreathe:
PLAT_LOG("Breathe identifier effect not implemented");
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_OKAY:
+ case Clusters::Identify::EffectIdentifierEnum::kOkay:
PLAT_LOG("Okay identifier effect not implemented");
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_CHANNEL_CHANGE:
+ case Clusters::Identify::EffectIdentifierEnum::kChannelChange:
PLAT_LOG("Channel Change identifier effect not implemented");
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_FINISH_EFFECT:
+ case Clusters::Identify::EffectIdentifierEnum::kFinishEffect:
PLAT_LOG("Finish identifier effect not implemented");
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_STOP_EFFECT:
+ case Clusters::Identify::EffectIdentifierEnum::kStopEffect:
PLAT_LOG("Stop identifier effect");
IdentifyStopHandler(identify);
break;
diff --git a/examples/pump-controller-app/pump-controller-common/pump-controller-app.matter b/examples/pump-controller-app/pump-controller-common/pump-controller-app.matter
index b25fd06..a5f22c5 100644
--- a/examples/pump-controller-app/pump-controller-common/pump-controller-app.matter
+++ b/examples/pump-controller-app/pump-controller-common/pump-controller-app.matter
@@ -13,7 +13,7 @@
/** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */
server cluster Identify = 3 {
- enum IdentifyEffectIdentifier : ENUM8 {
+ enum EffectIdentifierEnum : ENUM8 {
kBlink = 0;
kBreathe = 1;
kOkay = 2;
@@ -22,21 +22,21 @@
kStopEffect = 255;
}
- enum IdentifyEffectVariant : ENUM8 {
+ enum EffectVariantEnum : ENUM8 {
kDefault = 0;
}
- enum IdentifyIdentifyType : ENUM8 {
+ enum IdentifyTypeEnum : ENUM8 {
kNone = 0;
- kVisibleLight = 1;
- kVisibleLED = 2;
+ kLightOutput = 1;
+ kVisibleIndicator = 2;
kAudibleBeep = 3;
kDisplay = 4;
kActuator = 5;
}
attribute int16u identifyTime = 0;
- readonly attribute enum8 identifyType = 1;
+ readonly attribute IdentifyTypeEnum identifyType = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
diff --git a/examples/pump-controller-app/pump-controller-common/pump-controller-app.zap b/examples/pump-controller-app/pump-controller-common/pump-controller-app.zap
index de7f015..2c49307 100644
--- a/examples/pump-controller-app/pump-controller-common/pump-controller-app.zap
+++ b/examples/pump-controller-app/pump-controller-common/pump-controller-app.zap
@@ -111,7 +111,7 @@
"code": 1,
"mfgCode": null,
"side": "server",
- "type": "enum8",
+ "type": "IdentifyTypeEnum",
"included": 1,
"storageOption": "RAM",
"singleton": 0,
@@ -5670,7 +5670,7 @@
"code": 1,
"mfgCode": null,
"side": "server",
- "type": "enum8",
+ "type": "IdentifyTypeEnum",
"included": 1,
"storageOption": "RAM",
"singleton": 0,
@@ -6813,5 +6813,6 @@
"endpointVersion": 1,
"deviceIdentifier": 772
}
- ]
+ ],
+ "log": []
}
\ No newline at end of file
diff --git a/examples/pump-controller-app/telink/README.md b/examples/pump-controller-app/telink/README.md
index 3ea6b04..1f3cd01 100755
--- a/examples/pump-controller-app/telink/README.md
+++ b/examples/pump-controller-app/telink/README.md
@@ -86,14 +86,14 @@
Identify command of the Identify cluster is received. The command's argument can
be used to specify the the effect. It is able to be in following effects:
-| Effect | Description |
-| :------------------------------ | :------------------------------------------------------------------- |
-| Blinks (200 ms on/200 ms off) | Blink (EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BLINK) |
-| Breathe (during 1000 ms) | Breathe (EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BREATHE) |
-| Blinks (50 ms on/950 ms off) | Okay (EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_OKAY) |
-| Blinks (1000 ms on/1000 ms off) | Channel Change (EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_CHANNEL_CHANGE) |
-| Blinks (950 ms on/50 ms off) | Finish (EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_FINISH_EFFECT) |
-| LED off | Stop (EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_STOP_EFFECT) |
+| Effect | Description |
+| :------------------------------ | :--------------------------------------------------------------------------- |
+| Blinks (200 ms on/200 ms off) | Blink (`Clusters::Identify::EffectIdentifierEnum::kBlink`) |
+| Breathe (during 1000 ms) | Breathe (`Clusters::Identify::EffectIdentifierEnum::kBreathe`) |
+| Blinks (50 ms on/950 ms off) | Okay (`Clusters::Identify::EffectIdentifierEnum::kOkay`) |
+| Blinks (1000 ms on/1000 ms off) | Channel Change ( `Clusters::Identify::EffectIdentifierEnum::kChannelChange`) |
+| Blinks (950 ms on/50 ms off) | Finish ( `Clusters::Identify::EffectIdentifierEnum::kFinishEffect`) |
+| LED off | Stop (`Clusters::Identify::EffectIdentifierEnum::kStopEffect`) |
#### Indicate current Pump state
diff --git a/examples/thermostat/linux/main.cpp b/examples/thermostat/linux/main.cpp
index 16b6dad..34c4cc9 100644
--- a/examples/thermostat/linux/main.cpp
+++ b/examples/thermostat/linux/main.cpp
@@ -50,17 +50,17 @@
{
switch (identify->mCurrentEffectIdentifier)
{
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BLINK:
- ChipLogProgress(Zcl, "EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BLINK");
+ case Clusters::Identify::EffectIdentifierEnum::kBlink:
+ ChipLogProgress(Zcl, "Clusters::Identify::EffectIdentifierEnum::kBlink");
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BREATHE:
- ChipLogProgress(Zcl, "EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BREATHE");
+ case Clusters::Identify::EffectIdentifierEnum::kBreathe:
+ ChipLogProgress(Zcl, "Clusters::Identify::EffectIdentifierEnum::kBreathe");
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_OKAY:
- ChipLogProgress(Zcl, "EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_OKAY");
+ case Clusters::Identify::EffectIdentifierEnum::kOkay:
+ ChipLogProgress(Zcl, "Clusters::Identify::EffectIdentifierEnum::kOkay");
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_CHANNEL_CHANGE:
- ChipLogProgress(Zcl, "EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_CHANNEL_CHANGE");
+ case Clusters::Identify::EffectIdentifierEnum::kChannelChange:
+ ChipLogProgress(Zcl, "Clusters::Identify::EffectIdentifierEnum::kChannelChange");
break;
default:
ChipLogProgress(Zcl, "No identifier effect");
@@ -69,11 +69,13 @@
}
static Identify gIdentify0 = {
- chip::EndpointId{ 0 }, OnIdentifyStart, OnIdentifyStop, EMBER_ZCL_IDENTIFY_IDENTIFY_TYPE_VISIBLE_LED, OnTriggerEffect,
+ chip::EndpointId{ 0 }, OnIdentifyStart, OnIdentifyStop, Clusters::Identify::IdentifyTypeEnum::kVisibleIndicator,
+ OnTriggerEffect,
};
static Identify gIdentify1 = {
- chip::EndpointId{ 1 }, OnIdentifyStart, OnIdentifyStop, EMBER_ZCL_IDENTIFY_IDENTIFY_TYPE_VISIBLE_LED, OnTriggerEffect,
+ chip::EndpointId{ 1 }, OnIdentifyStart, OnIdentifyStop, Clusters::Identify::IdentifyTypeEnum::kVisibleIndicator,
+ OnTriggerEffect,
};
void ApplicationInit()
diff --git a/examples/thermostat/silabs/src/AppTask.cpp b/examples/thermostat/silabs/src/AppTask.cpp
index 2e506d1..b191874 100644
--- a/examples/thermostat/silabs/src/AppTask.cpp
+++ b/examples/thermostat/silabs/src/AppTask.cpp
@@ -60,6 +60,7 @@
#define MODE_TIMER 1000 // 1s timer period
using namespace chip;
+using namespace chip::app;
using namespace chip::TLV;
using namespace ::chip::DeviceLayer;
@@ -67,8 +68,7 @@
* Variable declarations
*********************************************************/
namespace {
-EmberAfIdentifyEffectIdentifier sIdentifyEffect = EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_STOP_EFFECT;
-
+Clusters::Identify::EffectIdentifierEnum sIdentifyEffect = Clusters::Identify::EffectIdentifierEnum::kStopEffect;
}
/**********************************************************
* Identify Callbacks
@@ -78,7 +78,7 @@
void OnTriggerIdentifyEffectCompleted(chip::System::Layer * systemLayer, void * appState)
{
ChipLogProgress(Zcl, "Trigger Identify Complete");
- sIdentifyEffect = EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_STOP_EFFECT;
+ sIdentifyEffect = Clusters::Identify::EffectIdentifierEnum::kStopEffect;
#if CHIP_DEVICE_CONFIG_ENABLE_SED == 1
AppTask::GetAppTask().StopStatusLEDTimer();
@@ -90,11 +90,11 @@
ChipLogProgress(Zcl, "Trigger Identify Effect");
sIdentifyEffect = identify->mCurrentEffectIdentifier;
- if (identify->mCurrentEffectIdentifier == EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_CHANNEL_CHANGE)
+ if (identify->mCurrentEffectIdentifier == Clusters::Identify::EffectIdentifierEnum::kChannelChange)
{
ChipLogProgress(Zcl, "IDENTIFY_EFFECT_IDENTIFIER_CHANNEL_CHANGE - Not supported, use effect varriant %d",
- identify->mEffectVariant);
- sIdentifyEffect = static_cast<EmberAfIdentifyEffectIdentifier>(identify->mEffectVariant);
+ to_underlying(identify->mEffectVariant));
+ sIdentifyEffect = static_cast<Clusters::Identify::EffectIdentifierEnum>(identify->mEffectVariant);
}
#if CHIP_DEVICE_CONFIG_ENABLE_SED == 1
@@ -103,20 +103,20 @@
switch (sIdentifyEffect)
{
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BLINK:
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BREATHE:
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_OKAY:
+ case Clusters::Identify::EffectIdentifierEnum::kBlink:
+ case Clusters::Identify::EffectIdentifierEnum::kBreathe:
+ case Clusters::Identify::EffectIdentifierEnum::kOkay:
(void) chip::DeviceLayer::SystemLayer().StartTimer(chip::System::Clock::Seconds16(5), OnTriggerIdentifyEffectCompleted,
identify);
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_FINISH_EFFECT:
+ case Clusters::Identify::EffectIdentifierEnum::kFinishEffect:
(void) chip::DeviceLayer::SystemLayer().CancelTimer(OnTriggerIdentifyEffectCompleted, identify);
(void) chip::DeviceLayer::SystemLayer().StartTimer(chip::System::Clock::Seconds16(1), OnTriggerIdentifyEffectCompleted,
identify);
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_STOP_EFFECT:
+ case Clusters::Identify::EffectIdentifierEnum::kStopEffect:
(void) chip::DeviceLayer::SystemLayer().CancelTimer(OnTriggerIdentifyEffectCompleted, identify);
- sIdentifyEffect = EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_STOP_EFFECT;
+ sIdentifyEffect = Clusters::Identify::EffectIdentifierEnum::kStopEffect;
break;
default:
ChipLogProgress(Zcl, "No identifier effect");
@@ -127,7 +127,7 @@
chip::EndpointId{ 1 },
AppTask::GetAppTask().OnIdentifyStart,
AppTask::GetAppTask().OnIdentifyStop,
- EMBER_ZCL_IDENTIFY_IDENTIFY_TYPE_VISIBLE_LED,
+ Clusters::Identify::IdentifyTypeEnum::kVisibleIndicator,
OnTriggerIdentifyEffect,
};
diff --git a/examples/thermostat/telink/Readme.md b/examples/thermostat/telink/Readme.md
index bba0bb6..c8c306b 100755
--- a/examples/thermostat/telink/Readme.md
+++ b/examples/thermostat/telink/Readme.md
@@ -81,14 +81,14 @@
Identify command of the Identify cluster is received. The command's argument can
be used to specify the the effect. It is able to be in following effects:
-| Effect | Description |
-| :------------------------------ | :------------------------------------------------------------------- |
-| Blinks (200 ms on/200 ms off) | Blink (EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BLINK) |
-| Breathe (during 1000 ms) | Breathe (EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BREATHE) |
-| Blinks (50 ms on/950 ms off) | Okay (EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_OKAY) |
-| Blinks (1000 ms on/1000 ms off) | Channel Change (EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_CHANNEL_CHANGE) |
-| Blinks (950 ms on/50 ms off) | Finish (EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_FINISH_EFFECT) |
-| LED off | Stop (EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_STOP_EFFECT) |
+| Effect | Description |
+| :------------------------------ | :--------------------------------------------------------------------------- |
+| Blinks (200 ms on/200 ms off) | Blink (`Clusters::Identify::EffectIdentifierEnum::kBlink`) |
+| Breathe (during 1000 ms) | Breathe (`Clusters::Identify::EffectIdentifierEnum::kBreathe`) |
+| Blinks (50 ms on/950 ms off) | Okay (`Clusters::Identify::EffectIdentifierEnum::kOkay`) |
+| Blinks (1000 ms on/1000 ms off) | Channel Change ( `Clusters::Identify::EffectIdentifierEnum::kChannelChange`) |
+| Blinks (950 ms on/50 ms off) | Finish ( `Clusters::Identify::EffectIdentifierEnum::kFinishEffect`) |
+| LED off | Stop (`Clusters::Identify::EffectIdentifierEnum::kStopEffect`) |
### CHIP tool commands
diff --git a/examples/thermostat/thermostat-common/thermostat.matter b/examples/thermostat/thermostat-common/thermostat.matter
index d41bcfa..a314a02 100644
--- a/examples/thermostat/thermostat-common/thermostat.matter
+++ b/examples/thermostat/thermostat-common/thermostat.matter
@@ -13,7 +13,7 @@
/** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */
client cluster Identify = 3 {
- enum IdentifyEffectIdentifier : ENUM8 {
+ enum EffectIdentifierEnum : ENUM8 {
kBlink = 0;
kBreathe = 1;
kOkay = 2;
@@ -22,21 +22,21 @@
kStopEffect = 255;
}
- enum IdentifyEffectVariant : ENUM8 {
+ enum EffectVariantEnum : ENUM8 {
kDefault = 0;
}
- enum IdentifyIdentifyType : ENUM8 {
+ enum IdentifyTypeEnum : ENUM8 {
kNone = 0;
- kVisibleLight = 1;
- kVisibleLED = 2;
+ kLightOutput = 1;
+ kVisibleIndicator = 2;
kAudibleBeep = 3;
kDisplay = 4;
kActuator = 5;
}
attribute int16u identifyTime = 0;
- readonly attribute enum8 identifyType = 1;
+ readonly attribute IdentifyTypeEnum identifyType = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
@@ -49,8 +49,8 @@
}
request struct TriggerEffectRequest {
- IdentifyEffectIdentifier effectIdentifier = 0;
- IdentifyEffectVariant effectVariant = 1;
+ EffectIdentifierEnum effectIdentifier = 0;
+ EffectVariantEnum effectVariant = 1;
}
/** Command description for Identify */
@@ -61,7 +61,7 @@
/** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */
server cluster Identify = 3 {
- enum IdentifyEffectIdentifier : ENUM8 {
+ enum EffectIdentifierEnum : ENUM8 {
kBlink = 0;
kBreathe = 1;
kOkay = 2;
@@ -70,21 +70,21 @@
kStopEffect = 255;
}
- enum IdentifyEffectVariant : ENUM8 {
+ enum EffectVariantEnum : ENUM8 {
kDefault = 0;
}
- enum IdentifyIdentifyType : ENUM8 {
+ enum IdentifyTypeEnum : ENUM8 {
kNone = 0;
- kVisibleLight = 1;
- kVisibleLED = 2;
+ kLightOutput = 1;
+ kVisibleIndicator = 2;
kAudibleBeep = 3;
kDisplay = 4;
kActuator = 5;
}
attribute int16u identifyTime = 0;
- readonly attribute enum8 identifyType = 1;
+ readonly attribute IdentifyTypeEnum identifyType = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
@@ -97,8 +97,8 @@
}
request struct TriggerEffectRequest {
- IdentifyEffectIdentifier effectIdentifier = 0;
- IdentifyEffectVariant effectVariant = 1;
+ EffectIdentifierEnum effectIdentifier = 0;
+ EffectVariantEnum effectVariant = 1;
}
command access(invoke: manage) Identify(IdentifyRequest): DefaultSuccess = 0;
diff --git a/examples/thermostat/thermostat-common/thermostat.zap b/examples/thermostat/thermostat-common/thermostat.zap
index ac33961..38a4366 100644
--- a/examples/thermostat/thermostat-common/thermostat.zap
+++ b/examples/thermostat/thermostat-common/thermostat.zap
@@ -7707,7 +7707,7 @@
"code": 1,
"mfgCode": null,
"side": "server",
- "type": "enum8",
+ "type": "IdentifyTypeEnum",
"included": 1,
"storageOption": "RAM",
"singleton": 0,
diff --git a/examples/tv-casting-app/tv-casting-common/tv-casting-app.matter b/examples/tv-casting-app/tv-casting-common/tv-casting-app.matter
index f7fca99..3e6fd12 100644
--- a/examples/tv-casting-app/tv-casting-common/tv-casting-app.matter
+++ b/examples/tv-casting-app/tv-casting-common/tv-casting-app.matter
@@ -13,7 +13,7 @@
/** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */
server cluster Identify = 3 {
- enum IdentifyEffectIdentifier : ENUM8 {
+ enum EffectIdentifierEnum : ENUM8 {
kBlink = 0;
kBreathe = 1;
kOkay = 2;
@@ -22,21 +22,21 @@
kStopEffect = 255;
}
- enum IdentifyEffectVariant : ENUM8 {
+ enum EffectVariantEnum : ENUM8 {
kDefault = 0;
}
- enum IdentifyIdentifyType : ENUM8 {
+ enum IdentifyTypeEnum : ENUM8 {
kNone = 0;
- kVisibleLight = 1;
- kVisibleLED = 2;
+ kLightOutput = 1;
+ kVisibleIndicator = 2;
kAudibleBeep = 3;
kDisplay = 4;
kActuator = 5;
}
attribute int16u identifyTime = 0;
- readonly attribute enum8 identifyType = 1;
+ readonly attribute IdentifyTypeEnum identifyType = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
diff --git a/examples/tv-casting-app/tv-casting-common/tv-casting-app.zap b/examples/tv-casting-app/tv-casting-common/tv-casting-app.zap
index 4e5d9b9..1f4e5c2 100644
--- a/examples/tv-casting-app/tv-casting-common/tv-casting-app.zap
+++ b/examples/tv-casting-app/tv-casting-common/tv-casting-app.zap
@@ -7130,7 +7130,7 @@
"code": 1,
"mfgCode": null,
"side": "server",
- "type": "enum8",
+ "type": "IdentifyTypeEnum",
"included": 1,
"storageOption": "RAM",
"singleton": 0,
diff --git a/examples/window-app/common/src/WindowApp.cpp b/examples/window-app/common/src/WindowApp.cpp
index 9adafad..788917b 100644
--- a/examples/window-app/common/src/WindowApp.cpp
+++ b/examples/window-app/common/src/WindowApp.cpp
@@ -25,8 +25,10 @@
#include <lib/support/CodeUtils.h>
#include <platform/CHIPDeviceLayer.h>
+using namespace chip;
using namespace ::chip::Credentials;
using namespace ::chip::DeviceLayer;
+using namespace chip::app;
using namespace chip::app::Clusters::WindowCovering;
inline void OnTriggerEffectCompleted(chip::System::Layer * systemLayer, void * appState)
@@ -36,27 +38,27 @@
void OnTriggerEffect(Identify * identify)
{
- EmberAfIdentifyEffectIdentifier sIdentifyEffect = identify->mCurrentEffectIdentifier;
+ Clusters::Identify::EffectIdentifierEnum sIdentifyEffect = identify->mCurrentEffectIdentifier;
ChipLogProgress(Zcl, "IDENTFY OnTriggerEffect");
- if (identify->mCurrentEffectIdentifier == EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_CHANNEL_CHANGE)
+ if (identify->mCurrentEffectIdentifier == Clusters::Identify::EffectIdentifierEnum::kChannelChange)
{
ChipLogProgress(Zcl, "IDENTIFY_EFFECT_IDENTIFIER_CHANNEL_CHANGE - Not supported, use effect varriant %d",
- identify->mEffectVariant);
- sIdentifyEffect = static_cast<EmberAfIdentifyEffectIdentifier>(identify->mEffectVariant);
+ to_underlying(identify->mEffectVariant));
+ sIdentifyEffect = static_cast<Clusters::Identify::EffectIdentifierEnum>(identify->mEffectVariant);
}
switch (sIdentifyEffect)
{
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BLINK:
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BREATHE:
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_OKAY:
+ case Clusters::Identify::EffectIdentifierEnum::kBlink:
+ case Clusters::Identify::EffectIdentifierEnum::kBreathe:
+ case Clusters::Identify::EffectIdentifierEnum::kOkay:
WindowApp::Instance().PostEvent(WindowApp::EventId::WinkOn);
(void) chip::DeviceLayer::SystemLayer().StartTimer(chip::System::Clock::Seconds16(5), OnTriggerEffectCompleted, identify);
break;
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_FINISH_EFFECT:
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_STOP_EFFECT:
+ case Clusters::Identify::EffectIdentifierEnum::kFinishEffect:
+ case Clusters::Identify::EffectIdentifierEnum::kStopEffect:
(void) chip::DeviceLayer::SystemLayer().CancelTimer(OnTriggerEffectCompleted, identify);
break;
default:
@@ -68,7 +70,7 @@
chip::EndpointId{ 1 },
[](Identify *) { ChipLogProgress(Zcl, "onIdentifyStart"); },
[](Identify *) { ChipLogProgress(Zcl, "onIdentifyStop"); },
- EMBER_ZCL_IDENTIFY_IDENTIFY_TYPE_VISIBLE_LED,
+ Clusters::Identify::IdentifyTypeEnum::kVisibleIndicator,
OnTriggerEffect,
};
diff --git a/examples/window-app/common/window-app.matter b/examples/window-app/common/window-app.matter
index ce1cc42..9b19d19 100644
--- a/examples/window-app/common/window-app.matter
+++ b/examples/window-app/common/window-app.matter
@@ -13,7 +13,7 @@
/** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */
server cluster Identify = 3 {
- enum IdentifyEffectIdentifier : ENUM8 {
+ enum EffectIdentifierEnum : ENUM8 {
kBlink = 0;
kBreathe = 1;
kOkay = 2;
@@ -22,21 +22,21 @@
kStopEffect = 255;
}
- enum IdentifyEffectVariant : ENUM8 {
+ enum EffectVariantEnum : ENUM8 {
kDefault = 0;
}
- enum IdentifyIdentifyType : ENUM8 {
+ enum IdentifyTypeEnum : ENUM8 {
kNone = 0;
- kVisibleLight = 1;
- kVisibleLED = 2;
+ kLightOutput = 1;
+ kVisibleIndicator = 2;
kAudibleBeep = 3;
kDisplay = 4;
kActuator = 5;
}
attribute int16u identifyTime = 0;
- readonly attribute enum8 identifyType = 1;
+ readonly attribute IdentifyTypeEnum identifyType = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
@@ -49,8 +49,8 @@
}
request struct TriggerEffectRequest {
- IdentifyEffectIdentifier effectIdentifier = 0;
- IdentifyEffectVariant effectVariant = 1;
+ EffectIdentifierEnum effectIdentifier = 0;
+ EffectVariantEnum effectVariant = 1;
}
command access(invoke: manage) Identify(IdentifyRequest): DefaultSuccess = 0;
diff --git a/examples/window-app/common/window-app.zap b/examples/window-app/common/window-app.zap
index 0a1727b..d01a811 100644
--- a/examples/window-app/common/window-app.zap
+++ b/examples/window-app/common/window-app.zap
@@ -111,7 +111,7 @@
"code": 1,
"mfgCode": null,
"side": "server",
- "type": "enum8",
+ "type": "IdentifyTypeEnum",
"included": 1,
"storageOption": "RAM",
"singleton": 0,
@@ -6305,7 +6305,7 @@
"code": 1,
"mfgCode": null,
"side": "server",
- "type": "enum8",
+ "type": "IdentifyTypeEnum",
"included": 1,
"storageOption": "RAM",
"singleton": 0,
@@ -7841,7 +7841,7 @@
"code": 1,
"mfgCode": null,
"side": "server",
- "type": "enum8",
+ "type": "IdentifyTypeEnum",
"included": 1,
"storageOption": "RAM",
"singleton": 0,
diff --git a/examples/window-app/nrfconnect/main/AppTask.cpp b/examples/window-app/nrfconnect/main/AppTask.cpp
index 280f633..fca63e3 100644
--- a/examples/window-app/nrfconnect/main/AppTask.cpp
+++ b/examples/window-app/nrfconnect/main/AppTask.cpp
@@ -46,6 +46,7 @@
LOG_MODULE_DECLARE(app, CONFIG_CHIP_APP_LOG_LEVEL);
using namespace ::chip;
+using namespace ::chip::app;
using namespace ::chip::Credentials;
using namespace ::chip::DeviceLayer;
namespace {
@@ -62,7 +63,7 @@
0x88, 0x99, 0xaa, 0xbb, 0xcc, 0xdd, 0xee, 0xff };
Identify sIdentify = { WindowCovering::Endpoint(), AppTask::IdentifyStartHandler, AppTask::IdentifyStopHandler,
- EMBER_ZCL_IDENTIFY_IDENTIFY_TYPE_VISIBLE_LED };
+ Clusters::Identify::IdentifyTypeEnum::kVisibleIndicator };
LEDWidget sStatusLED;
LEDWidget sIdentifyLED;
diff --git a/examples/window-app/telink/README.md b/examples/window-app/telink/README.md
index b2e7d3d..a19defc 100644
--- a/examples/window-app/telink/README.md
+++ b/examples/window-app/telink/README.md
@@ -89,14 +89,14 @@
Identify command of the Identify cluster is received. The command's argument can
be used to specify the the effect. It is able to be in following effects:
-| Effect | Description |
-| :------------------------------ | :------------------------------------------------------------------- |
-| Blinks (200 ms on/200 ms off) | Blink (EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BLINK) |
-| Breathe (during 1000 ms) | Breathe (EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BREATHE) |
-| Blinks (50 ms on/950 ms off) | Okay (EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_OKAY) |
-| Blinks (1000 ms on/1000 ms off) | Channel Change (EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_CHANNEL_CHANGE) |
-| Blinks (950 ms on/50 ms off) | Finish (EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_FINISH_EFFECT) |
-| LED off | Stop (EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_STOP_EFFECT) |
+| Effect | Description |
+| :------------------------------ | :--------------------------------------------------------------------------- |
+| Blinks (200 ms on/200 ms off) | Blink (`Clusters::Identify::EffectIdentifierEnum::kBlink`) |
+| Breathe (during 1000 ms) | Breathe (`Clusters::Identify::EffectIdentifierEnum::kBreathe`) |
+| Blinks (50 ms on/950 ms off) | Okay (`Clusters::Identify::EffectIdentifierEnum::kOkay`) |
+| Blinks (1000 ms on/1000 ms off) | Channel Change ( `Clusters::Identify::EffectIdentifierEnum::kChannelChange`) |
+| Blinks (950 ms on/50 ms off) | Finish ( `Clusters::Identify::EffectIdentifierEnum::kFinishEffect`) |
+| LED off | Stop (`Clusters::Identify::EffectIdentifierEnum::kStopEffect`) |
### CHIP tool commands
diff --git a/scripts/tools/zap/tests/inputs/all-clusters-app.zap b/scripts/tools/zap/tests/inputs/all-clusters-app.zap
index cab21dc..10fad27 100644
--- a/scripts/tools/zap/tests/inputs/all-clusters-app.zap
+++ b/scripts/tools/zap/tests/inputs/all-clusters-app.zap
@@ -111,7 +111,7 @@
"code": 1,
"mfgCode": null,
"side": "server",
- "type": "enum8",
+ "type": "IdentifyTypeEnum",
"included": 1,
"storageOption": "RAM",
"singleton": 0,
@@ -8801,7 +8801,7 @@
"code": 1,
"mfgCode": null,
"side": "server",
- "type": "enum8",
+ "type": "IdentifyTypeEnum",
"included": 1,
"storageOption": "RAM",
"singleton": 0,
@@ -24919,5 +24919,6 @@
"endpointVersion": 1,
"deviceIdentifier": 61442
}
- ]
+ ],
+ "log": []
}
\ No newline at end of file
diff --git a/scripts/tools/zap/tests/inputs/lighting-app.zap b/scripts/tools/zap/tests/inputs/lighting-app.zap
index af9592f..13b6098 100644
--- a/scripts/tools/zap/tests/inputs/lighting-app.zap
+++ b/scripts/tools/zap/tests/inputs/lighting-app.zap
@@ -5484,7 +5484,7 @@
"code": 1,
"mfgCode": null,
"side": "server",
- "type": "enum8",
+ "type": "IdentifyTypeEnum",
"included": 1,
"storageOption": "RAM",
"singleton": 0,
@@ -8309,5 +8309,6 @@
"endpointVersion": 1,
"deviceIdentifier": 257
}
- ]
+ ],
+ "log": []
}
\ No newline at end of file
diff --git a/src/app/clusters/identify-server/identify-server.cpp b/src/app/clusters/identify-server/identify-server.cpp
index 15da36a..e60b89d 100644
--- a/src/app/clusters/identify-server/identify-server.cpp
+++ b/src/app/clusters/identify-server/identify-server.cpp
@@ -18,7 +18,6 @@
#include "identify-server.h"
#include <app-common/zap-generated/attributes/Accessors.h>
-#include <app-common/zap-generated/callback.h>
#include <app-common/zap-generated/cluster-objects.h>
#include <app-common/zap-generated/ids/Attributes.h>
#include <app-common/zap-generated/ids/Clusters.h>
@@ -37,10 +36,6 @@
#error "identify requrires a device layer"
#endif
-#ifndef emberAfIdentifyClusterPrintln
-#define emberAfIdentifyClusterPrintln(...) ChipLogProgress(Zcl, __VA_ARGS__);
-#endif
-
using namespace chip;
using namespace chip::app;
using namespace chip::app::Clusters::Identify;
@@ -96,7 +91,7 @@
Identify * identify = inst(endpoint);
if (identify != nullptr)
{
- (void) Clusters::Identify::Attributes::IdentifyType::Set(endpoint, identify->mIdentifyType);
+ (void) Attributes::IdentifyType::Set(endpoint, identify->mIdentifyType);
}
}
@@ -109,13 +104,12 @@
{
EndpointId endpoint = identify->mEndpoint;
- if (EMBER_ZCL_STATUS_SUCCESS == Clusters::Identify::Attributes::IdentifyTime::Get(endpoint, &identifyTime) &&
- 0 != identifyTime)
+ if (EMBER_ZCL_STATUS_SUCCESS == Attributes::IdentifyTime::Get(endpoint, &identifyTime) && 0 != identifyTime)
{
identifyTime = static_cast<uint16_t>(identifyTime == 0 ? 0 : identifyTime - 1);
// This tick writes the new attribute, which will trigger the Attribute
// Changed callback.
- (void) Clusters::Identify::Attributes::IdentifyTime::Set(endpoint, identifyTime);
+ (void) Attributes::IdentifyTime::Set(endpoint, identifyTime);
}
}
}
@@ -140,7 +134,7 @@
void MatterIdentifyClusterServerAttributeChangedCallback(const app::ConcreteAttributePath & attributePath)
{
- if (attributePath.mAttributeId == Clusters::Identify::Attributes::IdentifyTime::Id)
+ if (attributePath.mAttributeId == Attributes::IdentifyTime::Id)
{
EndpointId endpoint = attributePath.mEndpointId;
Identify * identify = inst(endpoint);
@@ -151,7 +145,7 @@
return;
}
- if (EMBER_ZCL_STATUS_SUCCESS == Clusters::Identify::Attributes::IdentifyTime::Get(endpoint, &identifyTime))
+ if (EMBER_ZCL_STATUS_SUCCESS == Attributes::IdentifyTime::Get(endpoint, &identifyTime))
{
/* effect identifier changed during identify */
if (identify->mTargetEffectIdentifier != identify->mCurrentEffectIdentifier)
@@ -159,21 +153,21 @@
identify->mCurrentEffectIdentifier = identify->mTargetEffectIdentifier;
/* finish identify process */
- if (EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_FINISH_EFFECT == identify->mCurrentEffectIdentifier && identifyTime > 0)
+ if (EffectIdentifierEnum::kFinishEffect == identify->mCurrentEffectIdentifier && identifyTime > 0)
{
- Clusters::Identify::Attributes::IdentifyTime::Set(endpoint, 1);
+ Attributes::IdentifyTime::Set(endpoint, 1);
}
/* stop identify process */
- if (EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_STOP_EFFECT == identify->mCurrentEffectIdentifier && identifyTime > 0)
+ if (EffectIdentifierEnum::kStopEffect == identify->mCurrentEffectIdentifier && identifyTime > 0)
{
- Clusters::Identify::Attributes::IdentifyTime::Set(endpoint, 0);
+ Attributes::IdentifyTime::Set(endpoint, 0);
identify_deactivate(identify);
}
/* change from e.g. Breathe to Blink during identify */
else
{
/* cancel identify */
- Clusters::Identify::Attributes::IdentifyTime::Set(endpoint, 0);
+ Attributes::IdentifyTime::Set(endpoint, 0);
identify_deactivate(identify);
/* trigger effect identifier callback */
@@ -199,7 +193,7 @@
}
}
-bool emberAfIdentifyClusterIdentifyCallback(CommandHandler * commandObj, const app::ConcreteCommandPath & commandPath,
+bool emberAfIdentifyClusterIdentifyCallback(CommandHandler * commandObj, const ConcreteCommandPath & commandPath,
const Commands::Identify::DecodableType & commandData)
{
auto & identifyTime = commandData.identifyTime;
@@ -210,7 +204,7 @@
return true;
}
-bool emberAfIdentifyClusterTriggerEffectCallback(CommandHandler * commandObj, const app::ConcreteCommandPath & commandPath,
+bool emberAfIdentifyClusterTriggerEffectCallback(CommandHandler * commandObj, const ConcreteCommandPath & commandPath,
const Commands::TriggerEffect::DecodableType & commandData)
{
auto & effectIdentifier = commandData.effectIdentifier;
@@ -219,23 +213,23 @@
EndpointId endpoint = commandPath.mEndpointId;
// cmd TriggerEffect
- Identify * identify = inst(endpoint);
- uint16_t identifyTime = 0;
- EmberAfIdentifyEffectIdentifier effectId = static_cast<EmberAfIdentifyEffectIdentifier>(effectIdentifier);
+ Identify * identify = inst(endpoint);
+ uint16_t identifyTime = 0;
- emberAfIdentifyClusterPrintln("RX identify:trigger effect 0x%X variant 0x%X", effectId, effectVariant);
+ ChipLogProgress(Zcl, "RX identify:trigger effect identifier 0x%X variant 0x%X", to_underlying(effectIdentifier),
+ to_underlying(effectVariant));
if (identify == nullptr)
{
return false;
}
- identify->mTargetEffectIdentifier = effectId;
+ identify->mTargetEffectIdentifier = effectIdentifier;
identify->mEffectVariant = effectVariant;
/* only call the callback if no identify is in progress */
if (nullptr != identify->mOnEffectIdentifier &&
- EMBER_ZCL_STATUS_SUCCESS == Clusters::Identify::Attributes::IdentifyTime::Get(endpoint, &identifyTime) && 0 == identifyTime)
+ EMBER_ZCL_STATUS_SUCCESS == Attributes::IdentifyTime::Get(endpoint, &identifyTime) && 0 == identifyTime)
{
identify->mCurrentEffectIdentifier = identify->mTargetEffectIdentifier;
identify->mOnEffectIdentifier(identify);
@@ -245,13 +239,13 @@
return true;
}
-Identify::Identify(chip::EndpointId endpoint, onIdentifyStartCb onIdentifyStart, onIdentifyStopCb onIdentifyStop,
- EmberAfIdentifyIdentifyType identifyType, onEffectIdentifierCb onEffectIdentifier,
- EmberAfIdentifyEffectIdentifier effectIdentifier, EmberAfIdentifyEffectVariant effectVariant) :
+Identify::Identify(EndpointId endpoint, onIdentifyStartCb onIdentifyStart, onIdentifyStopCb onIdentifyStop,
+ IdentifyTypeEnum identifyType, onEffectIdentifierCb onEffectIdentifier, EffectIdentifierEnum effectIdentifier,
+ EffectVariantEnum effectVariant) :
mEndpoint(endpoint),
mOnIdentifyStart(onIdentifyStart), mOnIdentifyStop(onIdentifyStop), mIdentifyType(identifyType),
mOnEffectIdentifier(onEffectIdentifier), mCurrentEffectIdentifier(effectIdentifier), mTargetEffectIdentifier(effectIdentifier),
- mEffectVariant(static_cast<uint8_t>(effectVariant))
+ mEffectVariant(effectVariant)
{
reg(this);
};
diff --git a/src/app/clusters/identify-server/identify-server.h b/src/app/clusters/identify-server/identify-server.h
index 355c599..8ada9e2 100644
--- a/src/app/clusters/identify-server/identify-server.h
+++ b/src/app/clusters/identify-server/identify-server.h
@@ -17,7 +17,7 @@
#pragma once
-#include <app-common/zap-generated/enums.h>
+#include <app-common/zap-generated/cluster-enums.h>
#include <app/util/basic-types.h>
struct Identify
@@ -45,19 +45,21 @@
* @param effectVariant if supported by the app, initial effect variant
*/
Identify(chip::EndpointId endpoint, onIdentifyStartCb onIdentifyStart, onIdentifyStopCb onIdentifyStop,
- EmberAfIdentifyIdentifyType identifyType, onEffectIdentifierCb onEffectIdentifier = nullptr,
- EmberAfIdentifyEffectIdentifier effectIdentifier = EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BLINK,
- EmberAfIdentifyEffectVariant effectVariant = EMBER_ZCL_IDENTIFY_EFFECT_VARIANT_DEFAULT);
+ chip::app::Clusters::Identify::IdentifyTypeEnum identifyType, onEffectIdentifierCb onEffectIdentifier = nullptr,
+ chip::app::Clusters::Identify::EffectIdentifierEnum effectIdentifier =
+ chip::app::Clusters::Identify::EffectIdentifierEnum::kBlink,
+ chip::app::Clusters::Identify::EffectVariantEnum effectVariant =
+ chip::app::Clusters::Identify::EffectVariantEnum::kDefault);
~Identify();
chip::EndpointId mEndpoint;
onIdentifyStartCb mOnIdentifyStart = nullptr;
onIdentifyStopCb mOnIdentifyStop = nullptr;
- EmberAfIdentifyIdentifyType mIdentifyType;
+ chip::app::Clusters::Identify::IdentifyTypeEnum mIdentifyType;
onEffectIdentifierCb mOnEffectIdentifier;
- EmberAfIdentifyEffectIdentifier mCurrentEffectIdentifier;
- EmberAfIdentifyEffectIdentifier mTargetEffectIdentifier;
- uint8_t mEffectVariant;
+ chip::app::Clusters::Identify::EffectIdentifierEnum mCurrentEffectIdentifier;
+ chip::app::Clusters::Identify::EffectIdentifierEnum mTargetEffectIdentifier;
+ chip::app::Clusters::Identify::EffectVariantEnum mEffectVariant;
bool mActive = false;
Identify * nextIdentify = nullptr;
diff --git a/src/app/common/templates/config-data.yaml b/src/app/common/templates/config-data.yaml
index 91350c6..1d73fff 100644
--- a/src/app/common/templates/config-data.yaml
+++ b/src/app/common/templates/config-data.yaml
@@ -6,9 +6,6 @@
- ColorControlOptions
- ColorMode
- EnhancedColorMode
- - IdentifyEffectIdentifier
- - IdentifyEffectVariant
- - IdentifyIdentifyType
- InterfaceTypeEnum
- MoveMode
- NetworkFaultEnum
diff --git a/src/app/zap-templates/zcl/data-model/chip/identify-cluster.xml b/src/app/zap-templates/zcl/data-model/chip/identify-cluster.xml
index f2b4ab7..3348e15 100644
--- a/src/app/zap-templates/zcl/data-model/chip/identify-cluster.xml
+++ b/src/app/zap-templates/zcl/data-model/chip/identify-cluster.xml
@@ -17,17 +17,17 @@
<configurator>
<domain name="CHIP"/>
- <enum name="IdentifyIdentifyType" type="ENUM8">
+ <enum name="IdentifyTypeEnum" type="ENUM8">
<cluster code="0x0003"/>
<item name="None" value="0x00"/>
- <item name="VisibleLight" value="0x01"/>
- <item name="VisibleLED" value="0x02"/>
+ <item name="LightOutput" value="0x01"/>
+ <item name="VisibleIndicator" value="0x02"/>
<item name="AudibleBeep" value="0x03"/>
<item name="Display" value="0x04"/>
<item name="Actuator" value="0x05"/>
</enum>
- <enum name="IdentifyEffectIdentifier" type="ENUM8">
+ <enum name="EffectIdentifierEnum" type="ENUM8">
<cluster code="0x0003"/>
<item name="Blink" value="0x00"/>
<item name="Breathe" value="0x01"/>
@@ -37,22 +37,24 @@
<item name="StopEffect" value="0xFF"/>
</enum>
- <enum name="IdentifyEffectVariant" type="ENUM8">
+ <enum name="EffectVariantEnum" type="ENUM8">
<cluster code="0x0003"/>
<item name="Default" value="0x00"/>
</enum>
<cluster>
- <name>Identify</name>
<domain>General</domain>
- <description>Attributes and commands for putting a device into Identification mode (e.g. flashing a light).</description>
+ <name>Identify</name>
<code>0x0003</code>
<define>IDENTIFY_CLUSTER</define>
+ <description>Attributes and commands for putting a device into Identification mode (e.g. flashing a light).</description>
<client tick="false" init="false">true</client>
<server tick="false" init="false">true</server>
<globalAttribute side="either" code="0xFFFD" value="4"/>
+
<attribute side="server" code="0x0000" define="IDENTIFY_TIME" type="INT16U" writable="true" default="0x0" optional="false">IdentifyTime</attribute>
- <attribute side="server" code="0x0001" define="IDENTIFY_TYPE" type="ENUM8" writable="false" default="0x0" optional="false">IdentifyType</attribute>
+ <attribute side="server" code="0x0001" define="IDENTIFY_TYPE" type="IdentifyTypeEnum" writable="false" default="0x00" optional="false">IdentifyType</attribute>
+
<command source="client" code="0x00" name="Identify" optional="false">
<description>
Command description for Identify
@@ -64,8 +66,8 @@
<description>
Command description for TriggerEffect
</description>
- <arg name="EffectIdentifier" type="IdentifyEffectIdentifier"/>
- <arg name="EffectVariant" type="IdentifyEffectVariant"/>
+ <arg name="EffectIdentifier" type="EffectIdentifierEnum"/>
+ <arg name="EffectVariant" type="EffectVariantEnum"/>
<access op="invoke" privilege="manage"/>
</command>
</cluster>
diff --git a/src/controller/data_model/controller-clusters.matter b/src/controller/data_model/controller-clusters.matter
index 38e1811..c05b40f 100644
--- a/src/controller/data_model/controller-clusters.matter
+++ b/src/controller/data_model/controller-clusters.matter
@@ -13,7 +13,7 @@
/** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */
client cluster Identify = 3 {
- enum IdentifyEffectIdentifier : ENUM8 {
+ enum EffectIdentifierEnum : ENUM8 {
kBlink = 0;
kBreathe = 1;
kOkay = 2;
@@ -22,21 +22,21 @@
kStopEffect = 255;
}
- enum IdentifyEffectVariant : ENUM8 {
+ enum EffectVariantEnum : ENUM8 {
kDefault = 0;
}
- enum IdentifyIdentifyType : ENUM8 {
+ enum IdentifyTypeEnum : ENUM8 {
kNone = 0;
- kVisibleLight = 1;
- kVisibleLED = 2;
+ kLightOutput = 1;
+ kVisibleIndicator = 2;
kAudibleBeep = 3;
kDisplay = 4;
kActuator = 5;
}
attribute int16u identifyTime = 0;
- readonly attribute enum8 identifyType = 1;
+ readonly attribute IdentifyTypeEnum identifyType = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
@@ -49,8 +49,8 @@
}
request struct TriggerEffectRequest {
- IdentifyEffectIdentifier effectIdentifier = 0;
- IdentifyEffectVariant effectVariant = 1;
+ EffectIdentifierEnum effectIdentifier = 0;
+ EffectVariantEnum effectVariant = 1;
}
/** Command description for Identify */
diff --git a/src/controller/data_model/controller-clusters.zap b/src/controller/data_model/controller-clusters.zap
index 3b756b7..e57bcc5 100644
--- a/src/controller/data_model/controller-clusters.zap
+++ b/src/controller/data_model/controller-clusters.zap
@@ -111,7 +111,7 @@
"code": 1,
"mfgCode": null,
"side": "server",
- "type": "enum8",
+ "type": "IdentifyTypeEnum",
"included": 1,
"storageOption": "RAM",
"singleton": 0,
diff --git a/src/controller/java/zap-generated/CHIPAttributeTLVValueDecoder.cpp b/src/controller/java/zap-generated/CHIPAttributeTLVValueDecoder.cpp
index e2af658..da4acdf 100644
--- a/src/controller/java/zap-generated/CHIPAttributeTLVValueDecoder.cpp
+++ b/src/controller/java/zap-generated/CHIPAttributeTLVValueDecoder.cpp
@@ -68,7 +68,7 @@
std::string valueClassName = "java/lang/Integer";
std::string valueCtorSignature = "(I)V";
chip::JniReferences::GetInstance().CreateBoxedObject<uint8_t>(valueClassName.c_str(), valueCtorSignature.c_str(),
- cppValue, value);
+ static_cast<uint8_t>(cppValue), value);
return value;
}
case Attributes::GeneratedCommandList::Id: {
diff --git a/src/controller/python/chip/clusters/Objects.py b/src/controller/python/chip/clusters/Objects.py
index be562eb..4960641 100644
--- a/src/controller/python/chip/clusters/Objects.py
+++ b/src/controller/python/chip/clusters/Objects.py
@@ -46,7 +46,7 @@
return ClusterObjectDescriptor(
Fields=[
ClusterObjectFieldDescriptor(Label="identifyTime", Tag=0x00000000, Type=uint),
- ClusterObjectFieldDescriptor(Label="identifyType", Tag=0x00000001, Type=uint),
+ ClusterObjectFieldDescriptor(Label="identifyType", Tag=0x00000001, Type=Identify.Enums.IdentifyTypeEnum),
ClusterObjectFieldDescriptor(Label="generatedCommandList", Tag=0x0000FFF8, Type=typing.List[uint]),
ClusterObjectFieldDescriptor(Label="acceptedCommandList", Tag=0x0000FFF9, Type=typing.List[uint]),
ClusterObjectFieldDescriptor(Label="eventList", Tag=0x0000FFFA, Type=typing.List[uint]),
@@ -56,7 +56,7 @@
])
identifyTime: 'uint' = None
- identifyType: 'uint' = None
+ identifyType: 'Identify.Enums.IdentifyTypeEnum' = None
generatedCommandList: 'typing.List[uint]' = None
acceptedCommandList: 'typing.List[uint]' = None
eventList: 'typing.List[uint]' = None
@@ -65,7 +65,7 @@
clusterRevision: 'uint' = None
class Enums:
- class IdentifyEffectIdentifier(MatterIntEnum):
+ class EffectIdentifierEnum(MatterIntEnum):
kBlink = 0x00
kBreathe = 0x01
kOkay = 0x02
@@ -78,7 +78,7 @@
# enum value. This specific should never be transmitted.
kUnknownEnumValue = 3,
- class IdentifyEffectVariant(MatterIntEnum):
+ class EffectVariantEnum(MatterIntEnum):
kDefault = 0x00
# All received enum values that are not listed above will be mapped
# to kUnknownEnumValue. This is a helper enum value that should only
@@ -86,10 +86,10 @@
# enum value. This specific should never be transmitted.
kUnknownEnumValue = 1,
- class IdentifyIdentifyType(MatterIntEnum):
+ class IdentifyTypeEnum(MatterIntEnum):
kNone = 0x00
- kVisibleLight = 0x01
- kVisibleLED = 0x02
+ kLightOutput = 0x01
+ kVisibleIndicator = 0x02
kAudibleBeep = 0x03
kDisplay = 0x04
kActuator = 0x05
@@ -127,12 +127,12 @@
def descriptor(cls) -> ClusterObjectDescriptor:
return ClusterObjectDescriptor(
Fields=[
- ClusterObjectFieldDescriptor(Label="effectIdentifier", Tag=0, Type=Identify.Enums.IdentifyEffectIdentifier),
- ClusterObjectFieldDescriptor(Label="effectVariant", Tag=1, Type=Identify.Enums.IdentifyEffectVariant),
+ ClusterObjectFieldDescriptor(Label="effectIdentifier", Tag=0, Type=Identify.Enums.EffectIdentifierEnum),
+ ClusterObjectFieldDescriptor(Label="effectVariant", Tag=1, Type=Identify.Enums.EffectVariantEnum),
])
- effectIdentifier: 'Identify.Enums.IdentifyEffectIdentifier' = 0
- effectVariant: 'Identify.Enums.IdentifyEffectVariant' = 0
+ effectIdentifier: 'Identify.Enums.EffectIdentifierEnum' = 0
+ effectVariant: 'Identify.Enums.EffectVariantEnum' = 0
class Attributes:
@dataclass
@@ -163,9 +163,9 @@
@ChipUtility.classproperty
def attribute_type(cls) -> ClusterObjectFieldDescriptor:
- return ClusterObjectFieldDescriptor(Type=uint)
+ return ClusterObjectFieldDescriptor(Type=Identify.Enums.IdentifyTypeEnum)
- value: 'uint' = 0
+ value: 'Identify.Enums.IdentifyTypeEnum' = 0
@dataclass
class GeneratedCommandList(ClusterAttributeDescriptor):
diff --git a/src/darwin/Framework/CHIP/zap-generated/MTRAttributeTLVValueDecoder.mm b/src/darwin/Framework/CHIP/zap-generated/MTRAttributeTLVValueDecoder.mm
index 0fb1ae6..e8c4853 100644
--- a/src/darwin/Framework/CHIP/zap-generated/MTRAttributeTLVValueDecoder.mm
+++ b/src/darwin/Framework/CHIP/zap-generated/MTRAttributeTLVValueDecoder.mm
@@ -52,7 +52,7 @@
return nil;
}
NSNumber * _Nonnull value;
- value = [NSNumber numberWithUnsignedChar:cppValue];
+ value = [NSNumber numberWithUnsignedChar:chip::to_underlying(cppValue)];
return value;
}
case Attributes::GeneratedCommandList::Id: {
diff --git a/src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.h b/src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.h
index e391f1a..d03181e 100644
--- a/src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.h
+++ b/src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.h
@@ -29980,26 +29980,26 @@
@end
typedef NS_ENUM(uint8_t, MTRIdentifyEffectIdentifier) {
- MTRIdentifyEffectIdentifierBlink API_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) = 0x00,
- MTRIdentifyEffectIdentifierBreathe API_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) = 0x01,
- MTRIdentifyEffectIdentifierOkay API_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) = 0x02,
- MTRIdentifyEffectIdentifierChannelChange API_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) = 0x0B,
- MTRIdentifyEffectIdentifierFinishEffect API_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) = 0xFE,
- MTRIdentifyEffectIdentifierStopEffect API_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) = 0xFF,
-} API_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1));
+ MTRIdentifyEffectIdentifierBlink MTR_NEWLY_AVAILABLE = 0x00,
+ MTRIdentifyEffectIdentifierBreathe MTR_NEWLY_AVAILABLE = 0x01,
+ MTRIdentifyEffectIdentifierOkay MTR_NEWLY_AVAILABLE = 0x02,
+ MTRIdentifyEffectIdentifierChannelChange MTR_NEWLY_AVAILABLE = 0x0B,
+ MTRIdentifyEffectIdentifierFinishEffect MTR_NEWLY_AVAILABLE = 0xFE,
+ MTRIdentifyEffectIdentifierStopEffect MTR_NEWLY_AVAILABLE = 0xFF,
+} MTR_NEWLY_AVAILABLE;
typedef NS_ENUM(uint8_t, MTRIdentifyEffectVariant) {
- MTRIdentifyEffectVariantDefault API_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) = 0x00,
-} API_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1));
+ MTRIdentifyEffectVariantDefault MTR_NEWLY_AVAILABLE = 0x00,
+} MTR_NEWLY_AVAILABLE;
typedef NS_ENUM(uint8_t, MTRIdentifyType) {
- MTRIdentifyTypeNone API_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) = 0x00,
- MTRIdentifyTypeVisibleLight API_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) = 0x01,
- MTRIdentifyTypeVisibleLED API_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) = 0x02,
- MTRIdentifyTypeAudibleBeep API_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) = 0x03,
- MTRIdentifyTypeDisplay API_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) = 0x04,
- MTRIdentifyTypeActuator API_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) = 0x05,
-} API_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1));
+ MTRIdentifyTypeNone MTR_NEWLY_AVAILABLE = 0x00,
+ MTRIdentifyTypeLightOutput MTR_NEWLY_AVAILABLE = 0x01,
+ MTRIdentifyTypeVisibleIndicator MTR_NEWLY_AVAILABLE = 0x02,
+ MTRIdentifyTypeAudibleBeep MTR_NEWLY_AVAILABLE = 0x03,
+ MTRIdentifyTypeDisplay MTR_NEWLY_AVAILABLE = 0x04,
+ MTRIdentifyTypeActuator MTR_NEWLY_AVAILABLE = 0x05,
+} MTR_NEWLY_AVAILABLE;
typedef NS_OPTIONS(uint32_t, MTRGroupsFeature) {
MTRGroupsFeatureGroupNames MTR_NEWLY_AVAILABLE = 0x1,
diff --git a/src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.mm b/src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.mm
index 7fc1afd..4664c58 100644
--- a/src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.mm
+++ b/src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.mm
@@ -217,7 +217,7 @@
{
MTRReadParams * params = [[MTRReadParams alloc] init];
using TypeInfo = Identify::Attributes::IdentifyType::TypeInfo;
- return MTRReadAttribute<MTRInt8uAttributeCallbackBridge, NSNumber, TypeInfo::DecodableType>(
+ return MTRReadAttribute<MTRIdentifyClusterIdentifyTypeEnumAttributeCallbackBridge, NSNumber, TypeInfo::DecodableType>(
params, completion, self.callbackQueue, self.device, self->_endpoint, TypeInfo::GetClusterId(), TypeInfo::GetAttributeId());
}
@@ -226,8 +226,8 @@
reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler
{
using TypeInfo = Identify::Attributes::IdentifyType::TypeInfo;
- MTRSubscribeAttribute<MTRInt8uAttributeCallbackSubscriptionBridge, NSNumber, TypeInfo::DecodableType>(params,
- subscriptionEstablished, reportHandler, self.callbackQueue, self.device, self->_endpoint, TypeInfo::GetClusterId(),
+ MTRSubscribeAttribute<MTRIdentifyClusterIdentifyTypeEnumAttributeCallbackSubscriptionBridge, NSNumber, TypeInfo::DecodableType>(
+ params, subscriptionEstablished, reportHandler, self.callbackQueue, self.device, self->_endpoint, TypeInfo::GetClusterId(),
TypeInfo::GetAttributeId());
}
@@ -236,9 +236,9 @@
queue:(dispatch_queue_t)queue
completion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion
{
- auto * bridge = new MTRInt8uAttributeCallbackBridge(queue, completion);
- std::move(*bridge).DispatchLocalAction(
- clusterStateCacheContainer.baseDevice, ^(Int8uAttributeCallback successCb, MTRErrorCallback failureCb) {
+ auto * bridge = new MTRIdentifyClusterIdentifyTypeEnumAttributeCallbackBridge(queue, completion);
+ std::move(*bridge).DispatchLocalAction(clusterStateCacheContainer.baseDevice,
+ ^(IdentifyClusterIdentifyTypeEnumAttributeCallback successCb, MTRErrorCallback failureCb) {
if (clusterStateCacheContainer.cppClusterStateCache) {
chip::app::ConcreteAttributePath path;
using TypeInfo = Identify::Attributes::IdentifyType::TypeInfo;
diff --git a/src/darwin/Framework/CHIP/zap-generated/MTRCallbackBridge.h b/src/darwin/Framework/CHIP/zap-generated/MTRCallbackBridge.h
index f83676e..7affdab 100644
--- a/src/darwin/Framework/CHIP/zap-generated/MTRCallbackBridge.h
+++ b/src/darwin/Framework/CHIP/zap-generated/MTRCallbackBridge.h
@@ -138,16 +138,15 @@
typedef void (*UnitTestingClusterTestEmitTestFabricScopedEventResponseCallbackType)(
void *, const chip::app::Clusters::UnitTesting::Commands::TestEmitTestFabricScopedEventResponse::DecodableType &);
-typedef void (*IdentifyClusterIdentifyEffectIdentifierAttributeCallback)(void *,
- chip::app::Clusters::Identify::IdentifyEffectIdentifier);
-typedef void (*NullableIdentifyClusterIdentifyEffectIdentifierAttributeCallback)(
- void *, const chip::app::DataModel::Nullable<chip::app::Clusters::Identify::IdentifyEffectIdentifier> &);
-typedef void (*IdentifyClusterIdentifyEffectVariantAttributeCallback)(void *, chip::app::Clusters::Identify::IdentifyEffectVariant);
-typedef void (*NullableIdentifyClusterIdentifyEffectVariantAttributeCallback)(
- void *, const chip::app::DataModel::Nullable<chip::app::Clusters::Identify::IdentifyEffectVariant> &);
-typedef void (*IdentifyClusterIdentifyIdentifyTypeAttributeCallback)(void *, chip::app::Clusters::Identify::IdentifyIdentifyType);
-typedef void (*NullableIdentifyClusterIdentifyIdentifyTypeAttributeCallback)(
- void *, const chip::app::DataModel::Nullable<chip::app::Clusters::Identify::IdentifyIdentifyType> &);
+typedef void (*IdentifyClusterEffectIdentifierEnumAttributeCallback)(void *, chip::app::Clusters::Identify::EffectIdentifierEnum);
+typedef void (*NullableIdentifyClusterEffectIdentifierEnumAttributeCallback)(
+ void *, const chip::app::DataModel::Nullable<chip::app::Clusters::Identify::EffectIdentifierEnum> &);
+typedef void (*IdentifyClusterEffectVariantEnumAttributeCallback)(void *, chip::app::Clusters::Identify::EffectVariantEnum);
+typedef void (*NullableIdentifyClusterEffectVariantEnumAttributeCallback)(
+ void *, const chip::app::DataModel::Nullable<chip::app::Clusters::Identify::EffectVariantEnum> &);
+typedef void (*IdentifyClusterIdentifyTypeEnumAttributeCallback)(void *, chip::app::Clusters::Identify::IdentifyTypeEnum);
+typedef void (*NullableIdentifyClusterIdentifyTypeEnumAttributeCallback)(
+ void *, const chip::app::DataModel::Nullable<chip::app::Clusters::Identify::IdentifyTypeEnum> &);
typedef void (*OnOffClusterOnOffDelayedAllOffEffectVariantAttributeCallback)(
void *, chip::app::Clusters::OnOff::OnOffDelayedAllOffEffectVariant);
typedef void (*NullableOnOffClusterOnOffDelayedAllOffEffectVariantAttributeCallback)(
@@ -22582,202 +22581,202 @@
const chip::app::Clusters::UnitTesting::Commands::TestEmitTestFabricScopedEventResponse::DecodableType & data);
};
-class MTRIdentifyClusterIdentifyEffectIdentifierAttributeCallbackBridge
- : public MTRCallbackBridge<IdentifyClusterIdentifyEffectIdentifierAttributeCallback>
+class MTRIdentifyClusterEffectIdentifierEnumAttributeCallbackBridge
+ : public MTRCallbackBridge<IdentifyClusterEffectIdentifierEnumAttributeCallback>
{
public:
- MTRIdentifyClusterIdentifyEffectIdentifierAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler) :
- MTRCallbackBridge<IdentifyClusterIdentifyEffectIdentifierAttributeCallback>(queue, handler, OnSuccessFn){};
+ MTRIdentifyClusterEffectIdentifierEnumAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler) :
+ MTRCallbackBridge<IdentifyClusterEffectIdentifierEnumAttributeCallback>(queue, handler, OnSuccessFn){};
- MTRIdentifyClusterIdentifyEffectIdentifierAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler,
- MTRActionBlock action) :
- MTRCallbackBridge<IdentifyClusterIdentifyEffectIdentifierAttributeCallback>(queue, handler, action, OnSuccessFn){};
-
- static void OnSuccessFn(void * context, chip::app::Clusters::Identify::IdentifyEffectIdentifier value);
-};
-
-class MTRIdentifyClusterIdentifyEffectIdentifierAttributeCallbackSubscriptionBridge
- : public MTRIdentifyClusterIdentifyEffectIdentifierAttributeCallbackBridge
-{
-public:
- MTRIdentifyClusterIdentifyEffectIdentifierAttributeCallbackSubscriptionBridge(
- dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action,
- MTRSubscriptionEstablishedHandler establishedHandler) :
- MTRIdentifyClusterIdentifyEffectIdentifierAttributeCallbackBridge(queue, handler, action),
- mEstablishedHandler(establishedHandler)
- {}
-
- void OnSubscriptionEstablished();
- using MTRIdentifyClusterIdentifyEffectIdentifierAttributeCallbackBridge::KeepAliveOnCallback;
- using MTRIdentifyClusterIdentifyEffectIdentifierAttributeCallbackBridge::OnDone;
-
-private:
- MTRSubscriptionEstablishedHandler mEstablishedHandler;
-};
-
-class MTRNullableIdentifyClusterIdentifyEffectIdentifierAttributeCallbackBridge
- : public MTRCallbackBridge<NullableIdentifyClusterIdentifyEffectIdentifierAttributeCallback>
-{
-public:
- MTRNullableIdentifyClusterIdentifyEffectIdentifierAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler) :
- MTRCallbackBridge<NullableIdentifyClusterIdentifyEffectIdentifierAttributeCallback>(queue, handler, OnSuccessFn){};
-
- MTRNullableIdentifyClusterIdentifyEffectIdentifierAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler,
- MTRActionBlock action) :
- MTRCallbackBridge<NullableIdentifyClusterIdentifyEffectIdentifierAttributeCallback>(queue, handler, action, OnSuccessFn){};
-
- static void OnSuccessFn(void * context,
- const chip::app::DataModel::Nullable<chip::app::Clusters::Identify::IdentifyEffectIdentifier> & value);
-};
-
-class MTRNullableIdentifyClusterIdentifyEffectIdentifierAttributeCallbackSubscriptionBridge
- : public MTRNullableIdentifyClusterIdentifyEffectIdentifierAttributeCallbackBridge
-{
-public:
- MTRNullableIdentifyClusterIdentifyEffectIdentifierAttributeCallbackSubscriptionBridge(
- dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action,
- MTRSubscriptionEstablishedHandler establishedHandler) :
- MTRNullableIdentifyClusterIdentifyEffectIdentifierAttributeCallbackBridge(queue, handler, action),
- mEstablishedHandler(establishedHandler)
- {}
-
- void OnSubscriptionEstablished();
- using MTRNullableIdentifyClusterIdentifyEffectIdentifierAttributeCallbackBridge::KeepAliveOnCallback;
- using MTRNullableIdentifyClusterIdentifyEffectIdentifierAttributeCallbackBridge::OnDone;
-
-private:
- MTRSubscriptionEstablishedHandler mEstablishedHandler;
-};
-
-class MTRIdentifyClusterIdentifyEffectVariantAttributeCallbackBridge
- : public MTRCallbackBridge<IdentifyClusterIdentifyEffectVariantAttributeCallback>
-{
-public:
- MTRIdentifyClusterIdentifyEffectVariantAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler) :
- MTRCallbackBridge<IdentifyClusterIdentifyEffectVariantAttributeCallback>(queue, handler, OnSuccessFn){};
-
- MTRIdentifyClusterIdentifyEffectVariantAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler,
- MTRActionBlock action) :
- MTRCallbackBridge<IdentifyClusterIdentifyEffectVariantAttributeCallback>(queue, handler, action, OnSuccessFn){};
-
- static void OnSuccessFn(void * context, chip::app::Clusters::Identify::IdentifyEffectVariant value);
-};
-
-class MTRIdentifyClusterIdentifyEffectVariantAttributeCallbackSubscriptionBridge
- : public MTRIdentifyClusterIdentifyEffectVariantAttributeCallbackBridge
-{
-public:
- MTRIdentifyClusterIdentifyEffectVariantAttributeCallbackSubscriptionBridge(
- dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action,
- MTRSubscriptionEstablishedHandler establishedHandler) :
- MTRIdentifyClusterIdentifyEffectVariantAttributeCallbackBridge(queue, handler, action),
- mEstablishedHandler(establishedHandler)
- {}
-
- void OnSubscriptionEstablished();
- using MTRIdentifyClusterIdentifyEffectVariantAttributeCallbackBridge::KeepAliveOnCallback;
- using MTRIdentifyClusterIdentifyEffectVariantAttributeCallbackBridge::OnDone;
-
-private:
- MTRSubscriptionEstablishedHandler mEstablishedHandler;
-};
-
-class MTRNullableIdentifyClusterIdentifyEffectVariantAttributeCallbackBridge
- : public MTRCallbackBridge<NullableIdentifyClusterIdentifyEffectVariantAttributeCallback>
-{
-public:
- MTRNullableIdentifyClusterIdentifyEffectVariantAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler) :
- MTRCallbackBridge<NullableIdentifyClusterIdentifyEffectVariantAttributeCallback>(queue, handler, OnSuccessFn){};
-
- MTRNullableIdentifyClusterIdentifyEffectVariantAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler,
- MTRActionBlock action) :
- MTRCallbackBridge<NullableIdentifyClusterIdentifyEffectVariantAttributeCallback>(queue, handler, action, OnSuccessFn){};
-
- static void OnSuccessFn(void * context,
- const chip::app::DataModel::Nullable<chip::app::Clusters::Identify::IdentifyEffectVariant> & value);
-};
-
-class MTRNullableIdentifyClusterIdentifyEffectVariantAttributeCallbackSubscriptionBridge
- : public MTRNullableIdentifyClusterIdentifyEffectVariantAttributeCallbackBridge
-{
-public:
- MTRNullableIdentifyClusterIdentifyEffectVariantAttributeCallbackSubscriptionBridge(
- dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action,
- MTRSubscriptionEstablishedHandler establishedHandler) :
- MTRNullableIdentifyClusterIdentifyEffectVariantAttributeCallbackBridge(queue, handler, action),
- mEstablishedHandler(establishedHandler)
- {}
-
- void OnSubscriptionEstablished();
- using MTRNullableIdentifyClusterIdentifyEffectVariantAttributeCallbackBridge::KeepAliveOnCallback;
- using MTRNullableIdentifyClusterIdentifyEffectVariantAttributeCallbackBridge::OnDone;
-
-private:
- MTRSubscriptionEstablishedHandler mEstablishedHandler;
-};
-
-class MTRIdentifyClusterIdentifyIdentifyTypeAttributeCallbackBridge
- : public MTRCallbackBridge<IdentifyClusterIdentifyIdentifyTypeAttributeCallback>
-{
-public:
- MTRIdentifyClusterIdentifyIdentifyTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler) :
- MTRCallbackBridge<IdentifyClusterIdentifyIdentifyTypeAttributeCallback>(queue, handler, OnSuccessFn){};
-
- MTRIdentifyClusterIdentifyIdentifyTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler,
+ MTRIdentifyClusterEffectIdentifierEnumAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler,
MTRActionBlock action) :
- MTRCallbackBridge<IdentifyClusterIdentifyIdentifyTypeAttributeCallback>(queue, handler, action, OnSuccessFn){};
+ MTRCallbackBridge<IdentifyClusterEffectIdentifierEnumAttributeCallback>(queue, handler, action, OnSuccessFn){};
- static void OnSuccessFn(void * context, chip::app::Clusters::Identify::IdentifyIdentifyType value);
+ static void OnSuccessFn(void * context, chip::app::Clusters::Identify::EffectIdentifierEnum value);
};
-class MTRIdentifyClusterIdentifyIdentifyTypeAttributeCallbackSubscriptionBridge
- : public MTRIdentifyClusterIdentifyIdentifyTypeAttributeCallbackBridge
+class MTRIdentifyClusterEffectIdentifierEnumAttributeCallbackSubscriptionBridge
+ : public MTRIdentifyClusterEffectIdentifierEnumAttributeCallbackBridge
{
public:
- MTRIdentifyClusterIdentifyIdentifyTypeAttributeCallbackSubscriptionBridge(
+ MTRIdentifyClusterEffectIdentifierEnumAttributeCallbackSubscriptionBridge(
dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action,
MTRSubscriptionEstablishedHandler establishedHandler) :
- MTRIdentifyClusterIdentifyIdentifyTypeAttributeCallbackBridge(queue, handler, action),
+ MTRIdentifyClusterEffectIdentifierEnumAttributeCallbackBridge(queue, handler, action),
mEstablishedHandler(establishedHandler)
{}
void OnSubscriptionEstablished();
- using MTRIdentifyClusterIdentifyIdentifyTypeAttributeCallbackBridge::KeepAliveOnCallback;
- using MTRIdentifyClusterIdentifyIdentifyTypeAttributeCallbackBridge::OnDone;
+ using MTRIdentifyClusterEffectIdentifierEnumAttributeCallbackBridge::KeepAliveOnCallback;
+ using MTRIdentifyClusterEffectIdentifierEnumAttributeCallbackBridge::OnDone;
private:
MTRSubscriptionEstablishedHandler mEstablishedHandler;
};
-class MTRNullableIdentifyClusterIdentifyIdentifyTypeAttributeCallbackBridge
- : public MTRCallbackBridge<NullableIdentifyClusterIdentifyIdentifyTypeAttributeCallback>
+class MTRNullableIdentifyClusterEffectIdentifierEnumAttributeCallbackBridge
+ : public MTRCallbackBridge<NullableIdentifyClusterEffectIdentifierEnumAttributeCallback>
{
public:
- MTRNullableIdentifyClusterIdentifyIdentifyTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler) :
- MTRCallbackBridge<NullableIdentifyClusterIdentifyIdentifyTypeAttributeCallback>(queue, handler, OnSuccessFn){};
+ MTRNullableIdentifyClusterEffectIdentifierEnumAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler) :
+ MTRCallbackBridge<NullableIdentifyClusterEffectIdentifierEnumAttributeCallback>(queue, handler, OnSuccessFn){};
- MTRNullableIdentifyClusterIdentifyIdentifyTypeAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler,
+ MTRNullableIdentifyClusterEffectIdentifierEnumAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler,
MTRActionBlock action) :
- MTRCallbackBridge<NullableIdentifyClusterIdentifyIdentifyTypeAttributeCallback>(queue, handler, action, OnSuccessFn){};
+ MTRCallbackBridge<NullableIdentifyClusterEffectIdentifierEnumAttributeCallback>(queue, handler, action, OnSuccessFn){};
static void OnSuccessFn(void * context,
- const chip::app::DataModel::Nullable<chip::app::Clusters::Identify::IdentifyIdentifyType> & value);
+ const chip::app::DataModel::Nullable<chip::app::Clusters::Identify::EffectIdentifierEnum> & value);
};
-class MTRNullableIdentifyClusterIdentifyIdentifyTypeAttributeCallbackSubscriptionBridge
- : public MTRNullableIdentifyClusterIdentifyIdentifyTypeAttributeCallbackBridge
+class MTRNullableIdentifyClusterEffectIdentifierEnumAttributeCallbackSubscriptionBridge
+ : public MTRNullableIdentifyClusterEffectIdentifierEnumAttributeCallbackBridge
{
public:
- MTRNullableIdentifyClusterIdentifyIdentifyTypeAttributeCallbackSubscriptionBridge(
+ MTRNullableIdentifyClusterEffectIdentifierEnumAttributeCallbackSubscriptionBridge(
dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action,
MTRSubscriptionEstablishedHandler establishedHandler) :
- MTRNullableIdentifyClusterIdentifyIdentifyTypeAttributeCallbackBridge(queue, handler, action),
+ MTRNullableIdentifyClusterEffectIdentifierEnumAttributeCallbackBridge(queue, handler, action),
mEstablishedHandler(establishedHandler)
{}
void OnSubscriptionEstablished();
- using MTRNullableIdentifyClusterIdentifyIdentifyTypeAttributeCallbackBridge::KeepAliveOnCallback;
- using MTRNullableIdentifyClusterIdentifyIdentifyTypeAttributeCallbackBridge::OnDone;
+ using MTRNullableIdentifyClusterEffectIdentifierEnumAttributeCallbackBridge::KeepAliveOnCallback;
+ using MTRNullableIdentifyClusterEffectIdentifierEnumAttributeCallbackBridge::OnDone;
+
+private:
+ MTRSubscriptionEstablishedHandler mEstablishedHandler;
+};
+
+class MTRIdentifyClusterEffectVariantEnumAttributeCallbackBridge
+ : public MTRCallbackBridge<IdentifyClusterEffectVariantEnumAttributeCallback>
+{
+public:
+ MTRIdentifyClusterEffectVariantEnumAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler) :
+ MTRCallbackBridge<IdentifyClusterEffectVariantEnumAttributeCallback>(queue, handler, OnSuccessFn){};
+
+ MTRIdentifyClusterEffectVariantEnumAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler,
+ MTRActionBlock action) :
+ MTRCallbackBridge<IdentifyClusterEffectVariantEnumAttributeCallback>(queue, handler, action, OnSuccessFn){};
+
+ static void OnSuccessFn(void * context, chip::app::Clusters::Identify::EffectVariantEnum value);
+};
+
+class MTRIdentifyClusterEffectVariantEnumAttributeCallbackSubscriptionBridge
+ : public MTRIdentifyClusterEffectVariantEnumAttributeCallbackBridge
+{
+public:
+ MTRIdentifyClusterEffectVariantEnumAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler,
+ MTRActionBlock action,
+ MTRSubscriptionEstablishedHandler establishedHandler) :
+ MTRIdentifyClusterEffectVariantEnumAttributeCallbackBridge(queue, handler, action),
+ mEstablishedHandler(establishedHandler)
+ {}
+
+ void OnSubscriptionEstablished();
+ using MTRIdentifyClusterEffectVariantEnumAttributeCallbackBridge::KeepAliveOnCallback;
+ using MTRIdentifyClusterEffectVariantEnumAttributeCallbackBridge::OnDone;
+
+private:
+ MTRSubscriptionEstablishedHandler mEstablishedHandler;
+};
+
+class MTRNullableIdentifyClusterEffectVariantEnumAttributeCallbackBridge
+ : public MTRCallbackBridge<NullableIdentifyClusterEffectVariantEnumAttributeCallback>
+{
+public:
+ MTRNullableIdentifyClusterEffectVariantEnumAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler) :
+ MTRCallbackBridge<NullableIdentifyClusterEffectVariantEnumAttributeCallback>(queue, handler, OnSuccessFn){};
+
+ MTRNullableIdentifyClusterEffectVariantEnumAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler,
+ MTRActionBlock action) :
+ MTRCallbackBridge<NullableIdentifyClusterEffectVariantEnumAttributeCallback>(queue, handler, action, OnSuccessFn){};
+
+ static void OnSuccessFn(void * context,
+ const chip::app::DataModel::Nullable<chip::app::Clusters::Identify::EffectVariantEnum> & value);
+};
+
+class MTRNullableIdentifyClusterEffectVariantEnumAttributeCallbackSubscriptionBridge
+ : public MTRNullableIdentifyClusterEffectVariantEnumAttributeCallbackBridge
+{
+public:
+ MTRNullableIdentifyClusterEffectVariantEnumAttributeCallbackSubscriptionBridge(
+ dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action,
+ MTRSubscriptionEstablishedHandler establishedHandler) :
+ MTRNullableIdentifyClusterEffectVariantEnumAttributeCallbackBridge(queue, handler, action),
+ mEstablishedHandler(establishedHandler)
+ {}
+
+ void OnSubscriptionEstablished();
+ using MTRNullableIdentifyClusterEffectVariantEnumAttributeCallbackBridge::KeepAliveOnCallback;
+ using MTRNullableIdentifyClusterEffectVariantEnumAttributeCallbackBridge::OnDone;
+
+private:
+ MTRSubscriptionEstablishedHandler mEstablishedHandler;
+};
+
+class MTRIdentifyClusterIdentifyTypeEnumAttributeCallbackBridge
+ : public MTRCallbackBridge<IdentifyClusterIdentifyTypeEnumAttributeCallback>
+{
+public:
+ MTRIdentifyClusterIdentifyTypeEnumAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler) :
+ MTRCallbackBridge<IdentifyClusterIdentifyTypeEnumAttributeCallback>(queue, handler, OnSuccessFn){};
+
+ MTRIdentifyClusterIdentifyTypeEnumAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler,
+ MTRActionBlock action) :
+ MTRCallbackBridge<IdentifyClusterIdentifyTypeEnumAttributeCallback>(queue, handler, action, OnSuccessFn){};
+
+ static void OnSuccessFn(void * context, chip::app::Clusters::Identify::IdentifyTypeEnum value);
+};
+
+class MTRIdentifyClusterIdentifyTypeEnumAttributeCallbackSubscriptionBridge
+ : public MTRIdentifyClusterIdentifyTypeEnumAttributeCallbackBridge
+{
+public:
+ MTRIdentifyClusterIdentifyTypeEnumAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler,
+ MTRActionBlock action,
+ MTRSubscriptionEstablishedHandler establishedHandler) :
+ MTRIdentifyClusterIdentifyTypeEnumAttributeCallbackBridge(queue, handler, action),
+ mEstablishedHandler(establishedHandler)
+ {}
+
+ void OnSubscriptionEstablished();
+ using MTRIdentifyClusterIdentifyTypeEnumAttributeCallbackBridge::KeepAliveOnCallback;
+ using MTRIdentifyClusterIdentifyTypeEnumAttributeCallbackBridge::OnDone;
+
+private:
+ MTRSubscriptionEstablishedHandler mEstablishedHandler;
+};
+
+class MTRNullableIdentifyClusterIdentifyTypeEnumAttributeCallbackBridge
+ : public MTRCallbackBridge<NullableIdentifyClusterIdentifyTypeEnumAttributeCallback>
+{
+public:
+ MTRNullableIdentifyClusterIdentifyTypeEnumAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler) :
+ MTRCallbackBridge<NullableIdentifyClusterIdentifyTypeEnumAttributeCallback>(queue, handler, OnSuccessFn){};
+
+ MTRNullableIdentifyClusterIdentifyTypeEnumAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler,
+ MTRActionBlock action) :
+ MTRCallbackBridge<NullableIdentifyClusterIdentifyTypeEnumAttributeCallback>(queue, handler, action, OnSuccessFn){};
+
+ static void OnSuccessFn(void * context,
+ const chip::app::DataModel::Nullable<chip::app::Clusters::Identify::IdentifyTypeEnum> & value);
+};
+
+class MTRNullableIdentifyClusterIdentifyTypeEnumAttributeCallbackSubscriptionBridge
+ : public MTRNullableIdentifyClusterIdentifyTypeEnumAttributeCallbackBridge
+{
+public:
+ MTRNullableIdentifyClusterIdentifyTypeEnumAttributeCallbackSubscriptionBridge(
+ dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action,
+ MTRSubscriptionEstablishedHandler establishedHandler) :
+ MTRNullableIdentifyClusterIdentifyTypeEnumAttributeCallbackBridge(queue, handler, action),
+ mEstablishedHandler(establishedHandler)
+ {}
+
+ void OnSubscriptionEstablished();
+ using MTRNullableIdentifyClusterIdentifyTypeEnumAttributeCallbackBridge::KeepAliveOnCallback;
+ using MTRNullableIdentifyClusterIdentifyTypeEnumAttributeCallbackBridge::OnDone;
private:
MTRSubscriptionEstablishedHandler mEstablishedHandler;
diff --git a/src/darwin/Framework/CHIP/zap-generated/MTRCallbackBridge.mm b/src/darwin/Framework/CHIP/zap-generated/MTRCallbackBridge.mm
index 0af7803..c830740 100644
--- a/src/darwin/Framework/CHIP/zap-generated/MTRCallbackBridge.mm
+++ b/src/darwin/Framework/CHIP/zap-generated/MTRCallbackBridge.mm
@@ -22779,15 +22779,15 @@
DispatchSuccess(context, response);
};
-void MTRIdentifyClusterIdentifyEffectIdentifierAttributeCallbackBridge::OnSuccessFn(
- void * context, chip::app::Clusters::Identify::IdentifyEffectIdentifier value)
+void MTRIdentifyClusterEffectIdentifierEnumAttributeCallbackBridge::OnSuccessFn(
+ void * context, chip::app::Clusters::Identify::EffectIdentifierEnum value)
{
NSNumber * _Nonnull objCValue;
objCValue = [NSNumber numberWithUnsignedChar:chip::to_underlying(value)];
DispatchSuccess(context, objCValue);
};
-void MTRIdentifyClusterIdentifyEffectIdentifierAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished()
+void MTRIdentifyClusterEffectIdentifierEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished()
{
if (!mQueue) {
return;
@@ -22802,8 +22802,8 @@
}
}
-void MTRNullableIdentifyClusterIdentifyEffectIdentifierAttributeCallbackBridge::OnSuccessFn(
- void * context, const chip::app::DataModel::Nullable<chip::app::Clusters::Identify::IdentifyEffectIdentifier> & value)
+void MTRNullableIdentifyClusterEffectIdentifierEnumAttributeCallbackBridge::OnSuccessFn(
+ void * context, const chip::app::DataModel::Nullable<chip::app::Clusters::Identify::EffectIdentifierEnum> & value)
{
NSNumber * _Nullable objCValue;
if (value.IsNull()) {
@@ -22814,7 +22814,7 @@
DispatchSuccess(context, objCValue);
};
-void MTRNullableIdentifyClusterIdentifyEffectIdentifierAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished()
+void MTRNullableIdentifyClusterEffectIdentifierEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished()
{
if (!mQueue) {
return;
@@ -22829,15 +22829,15 @@
}
}
-void MTRIdentifyClusterIdentifyEffectVariantAttributeCallbackBridge::OnSuccessFn(
- void * context, chip::app::Clusters::Identify::IdentifyEffectVariant value)
+void MTRIdentifyClusterEffectVariantEnumAttributeCallbackBridge::OnSuccessFn(
+ void * context, chip::app::Clusters::Identify::EffectVariantEnum value)
{
NSNumber * _Nonnull objCValue;
objCValue = [NSNumber numberWithUnsignedChar:chip::to_underlying(value)];
DispatchSuccess(context, objCValue);
};
-void MTRIdentifyClusterIdentifyEffectVariantAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished()
+void MTRIdentifyClusterEffectVariantEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished()
{
if (!mQueue) {
return;
@@ -22852,8 +22852,8 @@
}
}
-void MTRNullableIdentifyClusterIdentifyEffectVariantAttributeCallbackBridge::OnSuccessFn(
- void * context, const chip::app::DataModel::Nullable<chip::app::Clusters::Identify::IdentifyEffectVariant> & value)
+void MTRNullableIdentifyClusterEffectVariantEnumAttributeCallbackBridge::OnSuccessFn(
+ void * context, const chip::app::DataModel::Nullable<chip::app::Clusters::Identify::EffectVariantEnum> & value)
{
NSNumber * _Nullable objCValue;
if (value.IsNull()) {
@@ -22864,7 +22864,7 @@
DispatchSuccess(context, objCValue);
};
-void MTRNullableIdentifyClusterIdentifyEffectVariantAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished()
+void MTRNullableIdentifyClusterEffectVariantEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished()
{
if (!mQueue) {
return;
@@ -22879,15 +22879,15 @@
}
}
-void MTRIdentifyClusterIdentifyIdentifyTypeAttributeCallbackBridge::OnSuccessFn(
- void * context, chip::app::Clusters::Identify::IdentifyIdentifyType value)
+void MTRIdentifyClusterIdentifyTypeEnumAttributeCallbackBridge::OnSuccessFn(
+ void * context, chip::app::Clusters::Identify::IdentifyTypeEnum value)
{
NSNumber * _Nonnull objCValue;
objCValue = [NSNumber numberWithUnsignedChar:chip::to_underlying(value)];
DispatchSuccess(context, objCValue);
};
-void MTRIdentifyClusterIdentifyIdentifyTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished()
+void MTRIdentifyClusterIdentifyTypeEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished()
{
if (!mQueue) {
return;
@@ -22902,8 +22902,8 @@
}
}
-void MTRNullableIdentifyClusterIdentifyIdentifyTypeAttributeCallbackBridge::OnSuccessFn(
- void * context, const chip::app::DataModel::Nullable<chip::app::Clusters::Identify::IdentifyIdentifyType> & value)
+void MTRNullableIdentifyClusterIdentifyTypeEnumAttributeCallbackBridge::OnSuccessFn(
+ void * context, const chip::app::DataModel::Nullable<chip::app::Clusters::Identify::IdentifyTypeEnum> & value)
{
NSNumber * _Nullable objCValue;
if (value.IsNull()) {
@@ -22914,7 +22914,7 @@
DispatchSuccess(context, objCValue);
};
-void MTRNullableIdentifyClusterIdentifyIdentifyTypeAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished()
+void MTRNullableIdentifyClusterIdentifyTypeEnumAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished()
{
if (!mQueue) {
return;
diff --git a/zzz_generated/app-common/app-common/zap-generated/attributes/Accessors.cpp b/zzz_generated/app-common/app-common/zap-generated/attributes/Accessors.cpp
index 8ea0385..ac7008e 100644
--- a/zzz_generated/app-common/app-common/zap-generated/attributes/Accessors.cpp
+++ b/zzz_generated/app-common/app-common/zap-generated/attributes/Accessors.cpp
@@ -71,9 +71,9 @@
namespace IdentifyType {
-EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value)
+EmberAfStatus Get(chip::EndpointId endpoint, chip::app::Clusters::Identify::IdentifyTypeEnum * value)
{
- using Traits = NumericAttributeTraits<uint8_t>;
+ using Traits = NumericAttributeTraits<chip::app::Clusters::Identify::IdentifyTypeEnum>;
Traits::StorageType temp;
uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp);
EmberAfStatus status = emberAfReadAttribute(endpoint, Clusters::Identify::Id, Id, readable, sizeof(temp));
@@ -85,9 +85,9 @@
*value = Traits::StorageToWorking(temp);
return status;
}
-EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value)
+EmberAfStatus Set(chip::EndpointId endpoint, chip::app::Clusters::Identify::IdentifyTypeEnum value)
{
- using Traits = NumericAttributeTraits<uint8_t>;
+ using Traits = NumericAttributeTraits<chip::app::Clusters::Identify::IdentifyTypeEnum>;
if (!Traits::CanRepresentValue(/* isNullable = */ false, value))
{
return EMBER_ZCL_STATUS_CONSTRAINT_ERROR;
diff --git a/zzz_generated/app-common/app-common/zap-generated/attributes/Accessors.h b/zzz_generated/app-common/app-common/zap-generated/attributes/Accessors.h
index e416ce7..8885bdc 100644
--- a/zzz_generated/app-common/app-common/zap-generated/attributes/Accessors.h
+++ b/zzz_generated/app-common/app-common/zap-generated/attributes/Accessors.h
@@ -42,8 +42,8 @@
} // namespace IdentifyTime
namespace IdentifyType {
-EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value); // enum8
-EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value);
+EmberAfStatus Get(chip::EndpointId endpoint, chip::app::Clusters::Identify::IdentifyTypeEnum * value); // IdentifyTypeEnum
+EmberAfStatus Set(chip::EndpointId endpoint, chip::app::Clusters::Identify::IdentifyTypeEnum value);
} // namespace IdentifyType
namespace FeatureMap {
diff --git a/zzz_generated/app-common/app-common/zap-generated/cluster-enums-check.h b/zzz_generated/app-common/app-common/zap-generated/cluster-enums-check.h
index 834e4d5..221d18e 100644
--- a/zzz_generated/app-common/app-common/zap-generated/cluster-enums-check.h
+++ b/zzz_generated/app-common/app-common/zap-generated/cluster-enums-check.h
@@ -24,72 +24,44 @@
namespace chip {
namespace app {
namespace Clusters {
-static auto __attribute__((unused)) EnsureKnownEnumValue(Identify::IdentifyEffectIdentifier val)
+static auto __attribute__((unused)) EnsureKnownEnumValue(Identify::EffectIdentifierEnum val)
{
- using EnumType = Identify::IdentifyEffectIdentifier;
+ using EnumType = Identify::EffectIdentifierEnum;
switch (val)
{
-// Need to convert consumers to using the new enum classes, so we
-// don't just have casts all over.
-#ifdef CHIP_USE_ENUM_CLASS_FOR_IM_ENUM
case EnumType::kBlink:
case EnumType::kBreathe:
case EnumType::kOkay:
case EnumType::kChannelChange:
case EnumType::kFinishEffect:
case EnumType::kStopEffect:
-#else // CHIP_USE_ENUM_CLASS_FOR_IM_ENUM
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BLINK:
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BREATHE:
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_OKAY:
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_CHANNEL_CHANGE:
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_FINISH_EFFECT:
- case EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_STOP_EFFECT:
-#endif // CHIP_USE_ENUM_CLASS_FOR_IM_ENUM
return val;
default:
return static_cast<EnumType>(3);
}
}
-static auto __attribute__((unused)) EnsureKnownEnumValue(Identify::IdentifyEffectVariant val)
+static auto __attribute__((unused)) EnsureKnownEnumValue(Identify::EffectVariantEnum val)
{
- using EnumType = Identify::IdentifyEffectVariant;
+ using EnumType = Identify::EffectVariantEnum;
switch (val)
{
-// Need to convert consumers to using the new enum classes, so we
-// don't just have casts all over.
-#ifdef CHIP_USE_ENUM_CLASS_FOR_IM_ENUM
case EnumType::kDefault:
-#else // CHIP_USE_ENUM_CLASS_FOR_IM_ENUM
- case EMBER_ZCL_IDENTIFY_EFFECT_VARIANT_DEFAULT:
-#endif // CHIP_USE_ENUM_CLASS_FOR_IM_ENUM
return val;
default:
return static_cast<EnumType>(1);
}
}
-static auto __attribute__((unused)) EnsureKnownEnumValue(Identify::IdentifyIdentifyType val)
+static auto __attribute__((unused)) EnsureKnownEnumValue(Identify::IdentifyTypeEnum val)
{
- using EnumType = Identify::IdentifyIdentifyType;
+ using EnumType = Identify::IdentifyTypeEnum;
switch (val)
{
-// Need to convert consumers to using the new enum classes, so we
-// don't just have casts all over.
-#ifdef CHIP_USE_ENUM_CLASS_FOR_IM_ENUM
case EnumType::kNone:
- case EnumType::kVisibleLight:
- case EnumType::kVisibleLED:
+ case EnumType::kLightOutput:
+ case EnumType::kVisibleIndicator:
case EnumType::kAudibleBeep:
case EnumType::kDisplay:
case EnumType::kActuator:
-#else // CHIP_USE_ENUM_CLASS_FOR_IM_ENUM
- case EMBER_ZCL_IDENTIFY_IDENTIFY_TYPE_NONE:
- case EMBER_ZCL_IDENTIFY_IDENTIFY_TYPE_VISIBLE_LIGHT:
- case EMBER_ZCL_IDENTIFY_IDENTIFY_TYPE_VISIBLE_LED:
- case EMBER_ZCL_IDENTIFY_IDENTIFY_TYPE_AUDIBLE_BEEP:
- case EMBER_ZCL_IDENTIFY_IDENTIFY_TYPE_DISPLAY:
- case EMBER_ZCL_IDENTIFY_IDENTIFY_TYPE_ACTUATOR:
-#endif // CHIP_USE_ENUM_CLASS_FOR_IM_ENUM
return val;
default:
return static_cast<EnumType>(6);
diff --git a/zzz_generated/app-common/app-common/zap-generated/cluster-enums.h b/zzz_generated/app-common/app-common/zap-generated/cluster-enums.h
index fb54bf0..2f37166 100644
--- a/zzz_generated/app-common/app-common/zap-generated/cluster-enums.h
+++ b/zzz_generated/app-common/app-common/zap-generated/cluster-enums.h
@@ -29,11 +29,8 @@
namespace Identify {
-// Need to convert consumers to using the new enum classes, so we
-// don't just have casts all over.
-#ifdef CHIP_USE_ENUM_CLASS_FOR_IM_ENUM
-// Enum for IdentifyEffectIdentifier
-enum class IdentifyEffectIdentifier : uint8_t
+// Enum for EffectIdentifierEnum
+enum class EffectIdentifierEnum : uint8_t
{
kBlink = 0x00,
kBreathe = 0x01,
@@ -47,17 +44,9 @@
// enum value. This specific should never be transmitted.
kUnknownEnumValue = 3,
};
-#else // CHIP_USE_ENUM_CLASS_FOR_IM_ENUM
-using IdentifyEffectIdentifier = EmberAfIdentifyEffectIdentifier;
-static IdentifyEffectIdentifier __attribute__((unused)) kIdentifyEffectIdentifierkUnknownEnumValue =
- static_cast<IdentifyEffectIdentifier>(3);
-#endif // CHIP_USE_ENUM_CLASS_FOR_IM_ENUM
-// Need to convert consumers to using the new enum classes, so we
-// don't just have casts all over.
-#ifdef CHIP_USE_ENUM_CLASS_FOR_IM_ENUM
-// Enum for IdentifyEffectVariant
-enum class IdentifyEffectVariant : uint8_t
+// Enum for EffectVariantEnum
+enum class EffectVariantEnum : uint8_t
{
kDefault = 0x00,
// All received enum values that are not listed above will be mapped
@@ -66,34 +55,22 @@
// enum value. This specific should never be transmitted.
kUnknownEnumValue = 1,
};
-#else // CHIP_USE_ENUM_CLASS_FOR_IM_ENUM
-using IdentifyEffectVariant = EmberAfIdentifyEffectVariant;
-static IdentifyEffectVariant __attribute__((unused)) kIdentifyEffectVariantkUnknownEnumValue =
- static_cast<IdentifyEffectVariant>(1);
-#endif // CHIP_USE_ENUM_CLASS_FOR_IM_ENUM
-// Need to convert consumers to using the new enum classes, so we
-// don't just have casts all over.
-#ifdef CHIP_USE_ENUM_CLASS_FOR_IM_ENUM
-// Enum for IdentifyIdentifyType
-enum class IdentifyIdentifyType : uint8_t
+// Enum for IdentifyTypeEnum
+enum class IdentifyTypeEnum : uint8_t
{
- kNone = 0x00,
- kVisibleLight = 0x01,
- kVisibleLED = 0x02,
- kAudibleBeep = 0x03,
- kDisplay = 0x04,
- kActuator = 0x05,
+ kNone = 0x00,
+ kLightOutput = 0x01,
+ kVisibleIndicator = 0x02,
+ kAudibleBeep = 0x03,
+ kDisplay = 0x04,
+ kActuator = 0x05,
// All received enum values that are not listed above will be mapped
// to kUnknownEnumValue. This is a helper enum value that should only
// be used by code to process how it handles receiving and unknown
// enum value. This specific should never be transmitted.
kUnknownEnumValue = 6,
};
-#else // CHIP_USE_ENUM_CLASS_FOR_IM_ENUM
-using IdentifyIdentifyType = EmberAfIdentifyIdentifyType;
-static IdentifyIdentifyType __attribute__((unused)) kIdentifyIdentifyTypekUnknownEnumValue = static_cast<IdentifyIdentifyType>(6);
-#endif // CHIP_USE_ENUM_CLASS_FOR_IM_ENUM
} // namespace Identify
namespace Groups {
@@ -209,8 +186,8 @@
kUnknownEnumValue = 2,
};
#else // CHIP_USE_ENUM_CLASS_FOR_IM_ENUM
-using MoveMode = EmberAfMoveMode;
-static MoveMode __attribute__((unused)) kMoveModekUnknownEnumValue = static_cast<MoveMode>(2);
+using MoveMode = EmberAfMoveMode;
+static MoveMode __attribute__((unused)) kMoveModekUnknownEnumValue = static_cast<MoveMode>(2);
#endif // CHIP_USE_ENUM_CLASS_FOR_IM_ENUM
// Need to convert consumers to using the new enum classes, so we
@@ -228,8 +205,8 @@
kUnknownEnumValue = 2,
};
#else // CHIP_USE_ENUM_CLASS_FOR_IM_ENUM
-using StepMode = EmberAfStepMode;
-static StepMode __attribute__((unused)) kStepModekUnknownEnumValue = static_cast<StepMode>(2);
+using StepMode = EmberAfStepMode;
+static StepMode __attribute__((unused)) kStepModekUnknownEnumValue = static_cast<StepMode>(2);
#endif // CHIP_USE_ENUM_CLASS_FOR_IM_ENUM
// Bitmap for Feature
@@ -1035,8 +1012,8 @@
kUnknownEnumValue = 5,
};
#else // CHIP_USE_ENUM_CLASS_FOR_IM_ENUM
-using InterfaceTypeEnum = EmberAfInterfaceTypeEnum;
-static InterfaceTypeEnum __attribute__((unused)) kInterfaceTypeEnumkUnknownEnumValue = static_cast<InterfaceTypeEnum>(5);
+using InterfaceTypeEnum = EmberAfInterfaceTypeEnum;
+static InterfaceTypeEnum __attribute__((unused)) kInterfaceTypeEnumkUnknownEnumValue = static_cast<InterfaceTypeEnum>(5);
#endif // CHIP_USE_ENUM_CLASS_FOR_IM_ENUM
// Need to convert consumers to using the new enum classes, so we
@@ -1056,8 +1033,8 @@
kUnknownEnumValue = 4,
};
#else // CHIP_USE_ENUM_CLASS_FOR_IM_ENUM
-using NetworkFaultEnum = EmberAfNetworkFaultEnum;
-static NetworkFaultEnum __attribute__((unused)) kNetworkFaultEnumkUnknownEnumValue = static_cast<NetworkFaultEnum>(4);
+using NetworkFaultEnum = EmberAfNetworkFaultEnum;
+static NetworkFaultEnum __attribute__((unused)) kNetworkFaultEnumkUnknownEnumValue = static_cast<NetworkFaultEnum>(4);
#endif // CHIP_USE_ENUM_CLASS_FOR_IM_ENUM
// Need to convert consumers to using the new enum classes, so we
@@ -1080,8 +1057,8 @@
kUnknownEnumValue = 7,
};
#else // CHIP_USE_ENUM_CLASS_FOR_IM_ENUM
-using RadioFaultEnum = EmberAfRadioFaultEnum;
-static RadioFaultEnum __attribute__((unused)) kRadioFaultEnumkUnknownEnumValue = static_cast<RadioFaultEnum>(7);
+using RadioFaultEnum = EmberAfRadioFaultEnum;
+static RadioFaultEnum __attribute__((unused)) kRadioFaultEnumkUnknownEnumValue = static_cast<RadioFaultEnum>(7);
#endif // CHIP_USE_ENUM_CLASS_FOR_IM_ENUM
} // namespace GeneralDiagnostics
@@ -1142,8 +1119,8 @@
kUnknownEnumValue = 7,
};
#else // CHIP_USE_ENUM_CLASS_FOR_IM_ENUM
-using RoutingRole = EmberAfRoutingRole;
-static RoutingRole __attribute__((unused)) kRoutingRolekUnknownEnumValue = static_cast<RoutingRole>(7);
+using RoutingRole = EmberAfRoutingRole;
+static RoutingRole __attribute__((unused)) kRoutingRolekUnknownEnumValue = static_cast<RoutingRole>(7);
#endif // CHIP_USE_ENUM_CLASS_FOR_IM_ENUM
// Bitmap for Feature
@@ -1250,8 +1227,8 @@
kUnknownEnumValue = 10,
};
#else // CHIP_USE_ENUM_CLASS_FOR_IM_ENUM
-using PHYRateEnum = EmberAfPHYRateEnum;
-static PHYRateEnum __attribute__((unused)) kPHYRateEnumkUnknownEnumValue = static_cast<PHYRateEnum>(10);
+using PHYRateEnum = EmberAfPHYRateEnum;
+static PHYRateEnum __attribute__((unused)) kPHYRateEnumkUnknownEnumValue = static_cast<PHYRateEnum>(10);
#endif // CHIP_USE_ENUM_CLASS_FOR_IM_ENUM
// Bitmap for Feature
@@ -2965,8 +2942,8 @@
kUnknownEnumValue = 3,
};
#else // CHIP_USE_ENUM_CLASS_FOR_IM_ENUM
-using ColorMode = EmberAfColorMode;
-static ColorMode __attribute__((unused)) kColorModekUnknownEnumValue = static_cast<ColorMode>(3);
+using ColorMode = EmberAfColorMode;
+static ColorMode __attribute__((unused)) kColorModekUnknownEnumValue = static_cast<ColorMode>(3);
#endif // CHIP_USE_ENUM_CLASS_FOR_IM_ENUM
// Enum for HueDirection
diff --git a/zzz_generated/app-common/app-common/zap-generated/cluster-objects.h b/zzz_generated/app-common/app-common/zap-generated/cluster-objects.h
index 1a2c01d..9f54830 100644
--- a/zzz_generated/app-common/app-common/zap-generated/cluster-objects.h
+++ b/zzz_generated/app-common/app-common/zap-generated/cluster-objects.h
@@ -233,8 +233,8 @@
static constexpr CommandId GetCommandId() { return Commands::TriggerEffect::Id; }
static constexpr ClusterId GetClusterId() { return Clusters::Identify::Id; }
- IdentifyEffectIdentifier effectIdentifier = static_cast<IdentifyEffectIdentifier>(0);
- IdentifyEffectVariant effectVariant = static_cast<IdentifyEffectVariant>(0);
+ EffectIdentifierEnum effectIdentifier = static_cast<EffectIdentifierEnum>(0);
+ EffectVariantEnum effectVariant = static_cast<EffectVariantEnum>(0);
CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const;
@@ -249,8 +249,8 @@
static constexpr CommandId GetCommandId() { return Commands::TriggerEffect::Id; }
static constexpr ClusterId GetClusterId() { return Clusters::Identify::Id; }
- IdentifyEffectIdentifier effectIdentifier = static_cast<IdentifyEffectIdentifier>(0);
- IdentifyEffectVariant effectVariant = static_cast<IdentifyEffectVariant>(0);
+ EffectIdentifierEnum effectIdentifier = static_cast<EffectIdentifierEnum>(0);
+ EffectVariantEnum effectVariant = static_cast<EffectVariantEnum>(0);
CHIP_ERROR Decode(TLV::TLVReader & reader);
};
}; // namespace TriggerEffect
@@ -273,9 +273,9 @@
namespace IdentifyType {
struct TypeInfo
{
- using Type = uint8_t;
- using DecodableType = uint8_t;
- using DecodableArgType = uint8_t;
+ using Type = chip::app::Clusters::Identify::IdentifyTypeEnum;
+ using DecodableType = chip::app::Clusters::Identify::IdentifyTypeEnum;
+ using DecodableArgType = chip::app::Clusters::Identify::IdentifyTypeEnum;
static constexpr ClusterId GetClusterId() { return Clusters::Identify::Id; }
static constexpr AttributeId GetAttributeId() { return Attributes::IdentifyType::Id; }
@@ -328,7 +328,8 @@
CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path);
Attributes::IdentifyTime::TypeInfo::DecodableType identifyTime = static_cast<uint16_t>(0);
- Attributes::IdentifyType::TypeInfo::DecodableType identifyType = static_cast<uint8_t>(0);
+ Attributes::IdentifyType::TypeInfo::DecodableType identifyType =
+ static_cast<chip::app::Clusters::Identify::IdentifyTypeEnum>(0);
Attributes::GeneratedCommandList::TypeInfo::DecodableType generatedCommandList;
Attributes::AcceptedCommandList::TypeInfo::DecodableType acceptedCommandList;
Attributes::EventList::TypeInfo::DecodableType eventList;
diff --git a/zzz_generated/app-common/app-common/zap-generated/enums.h b/zzz_generated/app-common/app-common/zap-generated/enums.h
index 1d4e992..6e843b5 100644
--- a/zzz_generated/app-common/app-common/zap-generated/enums.h
+++ b/zzz_generated/app-common/app-common/zap-generated/enums.h
@@ -63,34 +63,6 @@
EMBER_ZCL_ENHANCED_COLOR_MODE_ENHANCED_CURRENT_HUE_AND_CURRENT_SATURATION = 3,
};
-// Enum for IdentifyEffectIdentifier
-enum EmberAfIdentifyEffectIdentifier : uint8_t
-{
- EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BLINK = 0,
- EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_BREATHE = 1,
- EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_OKAY = 2,
- EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_CHANNEL_CHANGE = 11,
- EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_FINISH_EFFECT = 254,
- EMBER_ZCL_IDENTIFY_EFFECT_IDENTIFIER_STOP_EFFECT = 255,
-};
-
-// Enum for IdentifyEffectVariant
-enum EmberAfIdentifyEffectVariant : uint8_t
-{
- EMBER_ZCL_IDENTIFY_EFFECT_VARIANT_DEFAULT = 0,
-};
-
-// Enum for IdentifyIdentifyType
-enum EmberAfIdentifyIdentifyType : uint8_t
-{
- EMBER_ZCL_IDENTIFY_IDENTIFY_TYPE_NONE = 0,
- EMBER_ZCL_IDENTIFY_IDENTIFY_TYPE_VISIBLE_LIGHT = 1,
- EMBER_ZCL_IDENTIFY_IDENTIFY_TYPE_VISIBLE_LED = 2,
- EMBER_ZCL_IDENTIFY_IDENTIFY_TYPE_AUDIBLE_BEEP = 3,
- EMBER_ZCL_IDENTIFY_IDENTIFY_TYPE_DISPLAY = 4,
- EMBER_ZCL_IDENTIFY_IDENTIFY_TYPE_ACTUATOR = 5,
-};
-
// Enum for InterfaceTypeEnum
enum EmberAfInterfaceTypeEnum : uint8_t
{
diff --git a/zzz_generated/chip-tool/zap-generated/cluster/Commands.h b/zzz_generated/chip-tool/zap-generated/cluster/Commands.h
index a86d949..ab09691 100644
--- a/zzz_generated/chip-tool/zap-generated/cluster/Commands.h
+++ b/zzz_generated/chip-tool/zap-generated/cluster/Commands.h
@@ -10464,8 +10464,8 @@
make_unique<WriteAttribute<>>(Id, credsIssuerConfig), //
make_unique<WriteAttribute<uint16_t>>(Id, "identify-time", 0, UINT16_MAX, Attributes::IdentifyTime::Id,
WriteCommandType::kWrite, credsIssuerConfig), //
- make_unique<WriteAttribute<uint8_t>>(Id, "identify-type", 0, UINT8_MAX, Attributes::IdentifyType::Id,
- WriteCommandType::kForceWrite, credsIssuerConfig), //
+ make_unique<WriteAttribute<chip::app::Clusters::Identify::IdentifyTypeEnum>>(
+ Id, "identify-type", 0, UINT8_MAX, Attributes::IdentifyType::Id, WriteCommandType::kForceWrite, credsIssuerConfig), //
make_unique<WriteAttributeAsComplex<chip::app::DataModel::List<const chip::CommandId>>>(
Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite,
credsIssuerConfig), //
diff --git a/zzz_generated/chip-tool/zap-generated/cluster/logging/DataModelLogger.cpp b/zzz_generated/chip-tool/zap-generated/cluster/logging/DataModelLogger.cpp
index 8b133c3..4ca14a7 100644
--- a/zzz_generated/chip-tool/zap-generated/cluster/logging/DataModelLogger.cpp
+++ b/zzz_generated/chip-tool/zap-generated/cluster/logging/DataModelLogger.cpp
@@ -4724,7 +4724,7 @@
return DataModelLogger::LogValue("IdentifyTime", 1, value);
}
case Identify::Attributes::IdentifyType::Id: {
- uint8_t value;
+ chip::app::Clusters::Identify::IdentifyTypeEnum value;
ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value));
return DataModelLogger::LogValue("IdentifyType", 1, value);
}
diff --git a/zzz_generated/chip-tool/zap-generated/test/Commands.h b/zzz_generated/chip-tool/zap-generated/test/Commands.h
index e6e5489..636d4b9 100644
--- a/zzz_generated/chip-tool/zap-generated/test/Commands.h
+++ b/zzz_generated/chip-tool/zap-generated/test/Commands.h
@@ -28278,7 +28278,7 @@
case 2:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
{
- uint8_t value;
+ chip::app::Clusters::Identify::IdentifyTypeEnum value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
VerifyOrReturn(CheckConstraintType("value", "enum8", "enum8"));
VerifyOrReturn(CheckConstraintMinValue("value", value, 0U));
@@ -28668,8 +28668,8 @@
VerifyOrDo(!ShouldSkip("I.S.C40.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
ListFreer listFreer;
chip::app::Clusters::Identify::Commands::TriggerEffect::Type value;
- value.effectIdentifier = static_cast<chip::app::Clusters::Identify::IdentifyEffectIdentifier>(0);
- value.effectVariant = static_cast<chip::app::Clusters::Identify::IdentifyEffectVariant>(0);
+ value.effectIdentifier = static_cast<chip::app::Clusters::Identify::EffectIdentifierEnum>(0);
+ value.effectVariant = static_cast<chip::app::Clusters::Identify::EffectVariantEnum>(0);
return SendCommand(kIdentityAlpha, GetEndpoint(1), Identify::Id, Identify::Commands::TriggerEffect::Id, value,
chip::NullOptional
@@ -28692,8 +28692,8 @@
VerifyOrDo(!ShouldSkip("I.S.C40.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
ListFreer listFreer;
chip::app::Clusters::Identify::Commands::TriggerEffect::Type value;
- value.effectIdentifier = static_cast<chip::app::Clusters::Identify::IdentifyEffectIdentifier>(1);
- value.effectVariant = static_cast<chip::app::Clusters::Identify::IdentifyEffectVariant>(0);
+ value.effectIdentifier = static_cast<chip::app::Clusters::Identify::EffectIdentifierEnum>(1);
+ value.effectVariant = static_cast<chip::app::Clusters::Identify::EffectVariantEnum>(0);
return SendCommand(kIdentityAlpha, GetEndpoint(1), Identify::Id, Identify::Commands::TriggerEffect::Id, value,
chip::NullOptional
@@ -28716,8 +28716,8 @@
VerifyOrDo(!ShouldSkip("I.S.C40.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
ListFreer listFreer;
chip::app::Clusters::Identify::Commands::TriggerEffect::Type value;
- value.effectIdentifier = static_cast<chip::app::Clusters::Identify::IdentifyEffectIdentifier>(2);
- value.effectVariant = static_cast<chip::app::Clusters::Identify::IdentifyEffectVariant>(0);
+ value.effectIdentifier = static_cast<chip::app::Clusters::Identify::EffectIdentifierEnum>(2);
+ value.effectVariant = static_cast<chip::app::Clusters::Identify::EffectVariantEnum>(0);
return SendCommand(kIdentityAlpha, GetEndpoint(1), Identify::Id, Identify::Commands::TriggerEffect::Id, value,
chip::NullOptional
@@ -28740,8 +28740,8 @@
VerifyOrDo(!ShouldSkip("I.S.C40.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
ListFreer listFreer;
chip::app::Clusters::Identify::Commands::TriggerEffect::Type value;
- value.effectIdentifier = static_cast<chip::app::Clusters::Identify::IdentifyEffectIdentifier>(11);
- value.effectVariant = static_cast<chip::app::Clusters::Identify::IdentifyEffectVariant>(0);
+ value.effectIdentifier = static_cast<chip::app::Clusters::Identify::EffectIdentifierEnum>(11);
+ value.effectVariant = static_cast<chip::app::Clusters::Identify::EffectVariantEnum>(0);
return SendCommand(kIdentityAlpha, GetEndpoint(1), Identify::Id, Identify::Commands::TriggerEffect::Id, value,
chip::NullOptional
@@ -28764,8 +28764,8 @@
VerifyOrDo(!ShouldSkip("I.S.C40.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
ListFreer listFreer;
chip::app::Clusters::Identify::Commands::TriggerEffect::Type value;
- value.effectIdentifier = static_cast<chip::app::Clusters::Identify::IdentifyEffectIdentifier>(1);
- value.effectVariant = static_cast<chip::app::Clusters::Identify::IdentifyEffectVariant>(0);
+ value.effectIdentifier = static_cast<chip::app::Clusters::Identify::EffectIdentifierEnum>(1);
+ value.effectVariant = static_cast<chip::app::Clusters::Identify::EffectVariantEnum>(0);
return SendCommand(kIdentityAlpha, GetEndpoint(1), Identify::Id, Identify::Commands::TriggerEffect::Id, value,
chip::NullOptional
@@ -28788,8 +28788,8 @@
VerifyOrDo(!ShouldSkip("I.S.C40.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
ListFreer listFreer;
chip::app::Clusters::Identify::Commands::TriggerEffect::Type value;
- value.effectIdentifier = static_cast<chip::app::Clusters::Identify::IdentifyEffectIdentifier>(254);
- value.effectVariant = static_cast<chip::app::Clusters::Identify::IdentifyEffectVariant>(0);
+ value.effectIdentifier = static_cast<chip::app::Clusters::Identify::EffectIdentifierEnum>(254);
+ value.effectVariant = static_cast<chip::app::Clusters::Identify::EffectVariantEnum>(0);
return SendCommand(kIdentityAlpha, GetEndpoint(1), Identify::Id, Identify::Commands::TriggerEffect::Id, value,
chip::NullOptional
@@ -28812,8 +28812,8 @@
VerifyOrDo(!ShouldSkip("I.S.C40.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
ListFreer listFreer;
chip::app::Clusters::Identify::Commands::TriggerEffect::Type value;
- value.effectIdentifier = static_cast<chip::app::Clusters::Identify::IdentifyEffectIdentifier>(1);
- value.effectVariant = static_cast<chip::app::Clusters::Identify::IdentifyEffectVariant>(0);
+ value.effectIdentifier = static_cast<chip::app::Clusters::Identify::EffectIdentifierEnum>(1);
+ value.effectVariant = static_cast<chip::app::Clusters::Identify::EffectVariantEnum>(0);
return SendCommand(kIdentityAlpha, GetEndpoint(1), Identify::Id, Identify::Commands::TriggerEffect::Id, value,
chip::NullOptional
@@ -28836,8 +28836,8 @@
VerifyOrDo(!ShouldSkip("I.S.C40.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
ListFreer listFreer;
chip::app::Clusters::Identify::Commands::TriggerEffect::Type value;
- value.effectIdentifier = static_cast<chip::app::Clusters::Identify::IdentifyEffectIdentifier>(255);
- value.effectVariant = static_cast<chip::app::Clusters::Identify::IdentifyEffectVariant>(0);
+ value.effectIdentifier = static_cast<chip::app::Clusters::Identify::EffectIdentifierEnum>(255);
+ value.effectVariant = static_cast<chip::app::Clusters::Identify::EffectVariantEnum>(0);
return SendCommand(kIdentityAlpha, GetEndpoint(1), Identify::Id, Identify::Commands::TriggerEffect::Id, value,
chip::NullOptional
@@ -28860,8 +28860,8 @@
VerifyOrDo(!ShouldSkip("I.S.C40.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
ListFreer listFreer;
chip::app::Clusters::Identify::Commands::TriggerEffect::Type value;
- value.effectIdentifier = static_cast<chip::app::Clusters::Identify::IdentifyEffectIdentifier>(0);
- value.effectVariant = static_cast<chip::app::Clusters::Identify::IdentifyEffectVariant>(66);
+ value.effectIdentifier = static_cast<chip::app::Clusters::Identify::EffectIdentifierEnum>(0);
+ value.effectVariant = static_cast<chip::app::Clusters::Identify::EffectVariantEnum>(66);
return SendCommand(kIdentityAlpha, GetEndpoint(1), Identify::Id, Identify::Commands::TriggerEffect::Id, value,
chip::NullOptional
@@ -28884,8 +28884,8 @@
VerifyOrDo(!ShouldSkip("I.S.C40.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
ListFreer listFreer;
chip::app::Clusters::Identify::Commands::TriggerEffect::Type value;
- value.effectIdentifier = static_cast<chip::app::Clusters::Identify::IdentifyEffectIdentifier>(255);
- value.effectVariant = static_cast<chip::app::Clusters::Identify::IdentifyEffectVariant>(0);
+ value.effectIdentifier = static_cast<chip::app::Clusters::Identify::EffectIdentifierEnum>(255);
+ value.effectVariant = static_cast<chip::app::Clusters::Identify::EffectVariantEnum>(0);
return SendCommand(kIdentityAlpha, GetEndpoint(1), Identify::Id, Identify::Commands::TriggerEffect::Id, value,
chip::NullOptional