Skip to content

Commit

Permalink
Addressed review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jadhavrohit924 committed Jun 6, 2023
1 parent b23588c commit d64905a
Show file tree
Hide file tree
Showing 22 changed files with 18 additions and 471 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,7 @@ limitations under the License.
<client tick="false" init="false">true</client>
<server tick="false" init="false">true</server>
<attribute side="server" code="0x0000" define="MASK" type="AlarmMap" default="0" writable="false" optional="false">Mask</attribute>
<attribute side="server" code="0x0001" define="STATE" type="AlarmMap" default="0" writable="false" optional="false">State</attribute>

<command source="client" code="0x00" name="ModifyEnabledAlarms" optional="true">
<description>Modify enabled alarms</description>
<arg name="Mask" type="AlarmMap" optional="false"/>
</command>
<attribute side="server" code="0x0002" define="STATE" type="AlarmMap" default="0" writable="false" optional="false">State</attribute>

<event side="server" code="0x00" priority="info" name="Notify" optional="false">
<description>Notify</description>
Expand Down
9 changes: 1 addition & 8 deletions src/controller/data_model/controller-clusters.matter
Original file line number Diff line number Diff line change
Expand Up @@ -3128,20 +3128,13 @@ client cluster RefrigeratorAlarm = 87 {
}

readonly attribute AlarmMap mask = 0;
readonly attribute AlarmMap state = 1;
readonly attribute AlarmMap state = 2;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
readonly attribute attrib_id attributeList[] = 65531;
readonly attribute bitmap32 featureMap = 65532;
readonly attribute int16u clusterRevision = 65533;

request struct ModifyEnabledAlarmsRequest {
AlarmMap mask = 0;
}

/** Modify enabled alarms */
command ModifyEnabledAlarms(ModifyEnabledAlarmsRequest): DefaultSuccess = 0;
}

/** This cluster is an alias of the Mode Select cluster, defining additional semantics and
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7043,7 +7043,7 @@ public long getID() {

public enum Attribute {
Mask(0L),
State(1L),
State(2L),
GeneratedCommandList(65528L),
AcceptedCommandList(65529L),
EventList(65530L),
Expand Down Expand Up @@ -7090,8 +7090,7 @@ public static Event value(long id) throws NoSuchFieldError {
}
}

public enum Command {
ModifyEnabledAlarms(0L),;
public enum Command {;
private final long id;
Command(long id) {
this.id = id;
Expand All @@ -7109,24 +7108,7 @@ public static Command value(long id) throws NoSuchFieldError {
}
throw new NoSuchFieldError();
}
}public enum ModifyEnabledAlarmsCommandField {Mask(0),;
private final int id;
ModifyEnabledAlarmsCommandField(int id) {
this.id = id;
}

public int getID() {
return id;
}
public static ModifyEnabledAlarmsCommandField value(int id) throws NoSuchFieldError {
for (ModifyEnabledAlarmsCommandField field : ModifyEnabledAlarmsCommandField.values()) {
if (field.getID() == id) {
return field;
}
}
throw new NoSuchFieldError();
}
}@Override
}@Override
public String getAttributeName(long id) throws NoSuchFieldError {
return Attribute.value(id).toString();
}
Expand Down

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.

11 changes: 2 additions & 9 deletions src/controller/python/chip/clusters/CHIPClusters.py

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

21 changes: 2 additions & 19 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.

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

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

37 changes: 0 additions & 37 deletions src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.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.

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

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

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

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

Loading

0 comments on commit d64905a

Please sign in to comment.