Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ICD] Add onTransitionToActiveMode Event to the ICDM cluster #31303

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2147,6 +2147,9 @@ cluster IcdManagement = 70 {
fabric_idx fabricIndex = 254;
}

critical event OnTransitionToActiveMode = 0 {
}

readonly attribute int32u idleModeDuration = 0;
readonly attribute int32u activeModeDuration = 1;
readonly attribute int16u activeModeThreshold = 2;
Expand Down
4 changes: 4 additions & 0 deletions examples/lit-icd-app/lit-icd-common/lit-icd-server-app.matter
Original file line number Diff line number Diff line change
Expand Up @@ -1412,6 +1412,9 @@ cluster IcdManagement = 70 {
fabric_idx fabricIndex = 254;
}

critical event OnTransitionToActiveMode = 0 {
}

readonly attribute int32u idleModeDuration = 0;
readonly attribute int32u activeModeDuration = 1;
readonly attribute int16u activeModeThreshold = 2;
Expand Down Expand Up @@ -1734,6 +1737,7 @@ endpoint 0 {
}

server cluster IcdManagement {
emits event OnTransitionToActiveMode;
callback attribute idleModeDuration;
callback attribute activeModeDuration;
callback attribute activeModeThreshold;
Expand Down
11 changes: 10 additions & 1 deletion examples/lit-icd-app/lit-icd-common/lit-icd-server-app.zap
Original file line number Diff line number Diff line change
Expand Up @@ -1781,7 +1781,7 @@
"storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "0x0000000000000000",
"defaultValue": null,
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
Expand Down Expand Up @@ -3615,6 +3615,15 @@
"maxInterval": 65534,
"reportableChange": 0
}
],
"events": [
{
"name": "OnTransitionToActiveMode",
"code": 0,
"mfgCode": null,
"side": "server",
"included": 1
}
]
}
]
Expand Down
3 changes: 3 additions & 0 deletions examples/lock-app/lock-common/lock-app.matter
Original file line number Diff line number Diff line change
Expand Up @@ -1772,6 +1772,9 @@ cluster IcdManagement = 70 {
fabric_idx fabricIndex = 254;
}

critical event OnTransitionToActiveMode = 0 {
}

readonly attribute int32u idleModeDuration = 0;
readonly attribute int32u activeModeDuration = 1;
readonly attribute int16u activeModeThreshold = 2;
Expand Down
3 changes: 3 additions & 0 deletions examples/lock-app/qpg/zap/lock.matter
Original file line number Diff line number Diff line change
Expand Up @@ -1428,6 +1428,9 @@ cluster IcdManagement = 70 {
fabric_idx fabricIndex = 254;
}

critical event OnTransitionToActiveMode = 0 {
}

readonly attribute int32u idleModeDuration = 0;
readonly attribute int32u activeModeDuration = 1;
readonly attribute int16u activeModeThreshold = 2;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1748,6 +1748,9 @@ cluster IcdManagement = 70 {
fabric_idx fabricIndex = 254;
}

critical event OnTransitionToActiveMode = 0 {
}

readonly attribute int32u idleModeDuration = 0;
readonly attribute int32u activeModeDuration = 1;
readonly attribute int16u activeModeThreshold = 2;
Expand Down
mkardous-silabs marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ limitations under the License.
<attribute side="server" code="0x06" define="USER_ACTIVE_MODE_TRIGGER_HINT" type="UserActiveModeTriggerBitmap" writable="false" optional="true" isNullable="false">UserActiveModeTriggerHint</attribute>
<attribute side="server" code="0x07" define="USER_ACTIVE_MODE_TRIGGER_INSTRUCTION" type="char_string" length="128" writable="false" optional="true" isNullable="false">UserActiveModeTriggerInstruction</attribute>

<event side="server" code="0x00" priority="critical" name="OnTransitionToActiveMode" optional="true">
<description>OnTransitionToActiveMode</description>
</event>

<command source="client" code="0x00" name="RegisterClient" response="RegisterClientResponse" isFabricScoped="true" optional="true">
<description>Register a client to the end device</description>
<arg name="CheckInNodeID" type="node_id" optional="false"/>
Expand Down
3 changes: 3 additions & 0 deletions src/controller/data_model/controller-clusters.matter
Original file line number Diff line number Diff line change
Expand Up @@ -2880,6 +2880,9 @@ cluster IcdManagement = 70 {
fabric_idx fabricIndex = 254;
}

critical event OnTransitionToActiveMode = 0 {
}

readonly attribute int32u idleModeDuration = 0;
readonly attribute int32u activeModeDuration = 1;
readonly attribute int16u activeModeThreshold = 2;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2297,6 +2297,34 @@ public String toString() {
return output.toString();
}
}
public static class IcdManagementClusterOnTransitionToActiveModeEvent {

public IcdManagementClusterOnTransitionToActiveModeEvent(
) {
}

public StructType encodeTlv() {
ArrayList<StructElement> values = new ArrayList<>();

return new StructType(values);
}

public static IcdManagementClusterOnTransitionToActiveModeEvent decodeTlv(BaseTLVType tlvValue) {
if (tlvValue == null || tlvValue.type() != TLVType.Struct) {
return null;
}
return new IcdManagementClusterOnTransitionToActiveModeEvent(
);
}

@Override
public String toString() {
StringBuilder output = new StringBuilder();
output.append("IcdManagementClusterOnTransitionToActiveModeEvent {\n");
output.append("}\n");
return output.toString();
}
}
public static class OvenCavityOperationalStateClusterOperationalErrorEvent {
public ChipStructs.OvenCavityOperationalStateClusterErrorStateStruct errorState;
private static final long ERROR_STATE_ID = 0L;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6060,7 +6060,8 @@ public static Attribute value(long id) throws NoSuchFieldError {
}
}

public enum Event {;
public enum Event {
OnTransitionToActiveMode(0L),;
private final long id;
Event(long id) {
this.id = id;
Expand Down
27 changes: 27 additions & 0 deletions src/controller/java/zap-generated/CHIPEventTLVValueDecoder.cpp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions src/controller/python/chip/clusters/Objects.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions src/darwin/Framework/CHIP/zap-generated/MTRStructsObjc.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 23 additions & 0 deletions src/darwin/Framework/CHIP/zap-generated/MTRStructsObjc.mm

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions zzz_generated/app-common/app-common/zap-generated/ids/Events.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions zzz_generated/chip-tool/zap-generated/cluster/Commands.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading