Skip to content

Commit

Permalink
Zap regen
Browse files Browse the repository at this point in the history
  • Loading branch information
jadhavrohit924 committed Jun 2, 2023
1 parent c6ae5a1 commit 6e0a2d0
Show file tree
Hide file tree
Showing 32 changed files with 111 additions and 684 deletions.
14 changes: 6 additions & 8 deletions src/controller/data_model/controller-clusters.matter
Original file line number Diff line number Diff line change
Expand Up @@ -2827,23 +2827,21 @@ client cluster RefrigeratorAlarm = 87 {
AlarmMap mask = 3;
}

attribute AlarmMap mask = 0;
readonly attribute AlarmMap latch = 1;
readonly attribute AlarmMap state = 2;
readonly attribute AlarmMap mask = 0;
readonly attribute AlarmMap state = 1;
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 ResetRequest {
AlarmMap alarms = 0;
optional AlarmMap mask = 1;
request struct ModifyEnabledAlarmsRequest {
AlarmMap mask = 0;
}

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

/** Attributes for reporting air quality classification */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6446,8 +6446,7 @@ public long getID() {

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

public enum Command {
Reset(0L),;
ModifyEnabledAlarms(0L),;
private final long id;
Command(long id) {
this.id = id;
Expand All @@ -6513,17 +6512,17 @@ public static Command value(long id) throws NoSuchFieldError {
}
throw new NoSuchFieldError();
}
}public enum ResetCommandField {Alarms(0),Mask(1),;
}public enum ModifyEnabledAlarmsCommandField {Mask(0),;
private final int id;
ResetCommandField(int id) {
ModifyEnabledAlarmsCommandField(int id) {
this.id = id;
}

public int getID() {
return id;
}
public static ResetCommandField value(int id) throws NoSuchFieldError {
for (ResetCommandField field : ResetCommandField.values()) {
public static ModifyEnabledAlarmsCommandField value(int id) throws NoSuchFieldError {
for (ModifyEnabledAlarmsCommandField field : ModifyEnabledAlarmsCommandField.values()) {
if (field.getID() == id) {
return field;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6204,17 +6204,6 @@ private static Map<String, InteractionInfo> readRefrigeratorAlarmInteractionInfo
readRefrigeratorAlarmMaskCommandParams
);
result.put("readMaskAttribute", readRefrigeratorAlarmMaskAttributeInteractionInfo);
Map<String, CommandParameterInfo> readRefrigeratorAlarmLatchCommandParams = new LinkedHashMap<String, CommandParameterInfo>();
InteractionInfo readRefrigeratorAlarmLatchAttributeInteractionInfo = new InteractionInfo(
(cluster, callback, commandArguments) -> {
((ChipClusters.RefrigeratorAlarmCluster) cluster).readLatchAttribute(
(ChipClusters.LongAttributeCallback) callback
);
},
() -> new ClusterInfoMapping.DelegatedLongAttributeCallback(),
readRefrigeratorAlarmLatchCommandParams
);
result.put("readLatchAttribute", readRefrigeratorAlarmLatchAttributeInteractionInfo);
Map<String, CommandParameterInfo> readRefrigeratorAlarmStateCommandParams = new LinkedHashMap<String, CommandParameterInfo>();
InteractionInfo readRefrigeratorAlarmStateAttributeInteractionInfo = new InteractionInfo(
(cluster, callback, commandArguments) -> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -773,28 +773,6 @@ public Map<String, Map<String, InteractionInfo>> getWriteAttributeMap() {
Map<String, InteractionInfo> writeTemperatureControlInteractionInfo = new LinkedHashMap<>();
writeAttributeMap.put("temperatureControl", writeTemperatureControlInteractionInfo);
Map<String, InteractionInfo> writeRefrigeratorAlarmInteractionInfo = new LinkedHashMap<>();
Map<String, CommandParameterInfo> writeRefrigeratorAlarmMaskCommandParams = new LinkedHashMap<String, CommandParameterInfo>();
CommandParameterInfo refrigeratorAlarmmaskCommandParameterInfo =
new CommandParameterInfo(
"value",
Long.class,
Long.class
);
writeRefrigeratorAlarmMaskCommandParams.put(
"value",
refrigeratorAlarmmaskCommandParameterInfo
);
InteractionInfo writeRefrigeratorAlarmMaskAttributeInteractionInfo = new InteractionInfo(
(cluster, callback, commandArguments) -> {
((ChipClusters.RefrigeratorAlarmCluster) cluster).writeMaskAttribute(
(DefaultClusterCallback) callback,
(Long) commandArguments.get("value")
);
},
() -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(),
writeRefrigeratorAlarmMaskCommandParams
);
writeRefrigeratorAlarmInteractionInfo.put("writeMaskAttribute", writeRefrigeratorAlarmMaskAttributeInteractionInfo);
writeAttributeMap.put("refrigeratorAlarm", writeRefrigeratorAlarmInteractionInfo);
Map<String, InteractionInfo> writeAirQualityInteractionInfo = new LinkedHashMap<>();
writeAttributeMap.put("airQuality", writeAirQualityInteractionInfo);
Expand Down
15 changes: 0 additions & 15 deletions src/controller/java/zap-generated/CHIPAttributeTLVValueDecoder.cpp

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

52 changes: 0 additions & 52 deletions src/controller/java/zap-generated/CHIPClustersWrite-JNI.cpp

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.

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

12 changes: 2 additions & 10 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.

Loading

0 comments on commit 6e0a2d0

Please sign in to comment.