-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add XML and zap gen for dishwasher alarm cluster (#26771)
* Add XML and zap gen for dish alarm * Apply suggestions from code review Co-authored-by: Boris Zbarsky <[email protected]> * Added feature map * Change after merge from upstream and regen-all * Adding files after manual step * Commits after regen-all * Add missing stuff to build.gn * Revert autoformat changes * Revert reformat changes * Revert autoformat changes * Changes per spec changes * Changed name * Add non-gen'd files * Commit after build following merge --------- Co-authored-by: Boris Zbarsky <[email protected]>
- Loading branch information
1 parent
7806dd1
commit c42d458
Showing
54 changed files
with
6,170 additions
and
157 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
63 changes: 63 additions & 0 deletions
63
src/app/zap-templates/zcl/data-model/chip/dishwasher-alarm-cluster.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
<?xml version="1.0"?> | ||
<!-- | ||
Copyright (c) 2023 Project CHIP Authors | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
--> | ||
<configurator> | ||
<domain name="CHIP"/> | ||
|
||
<bitmap name="AlarmMap" type="BITMAP32"> | ||
<cluster code="0x005D" /> | ||
<field name="InflowError" mask="0x01"/> | ||
<field name="DrainError" mask="0x02"/> | ||
<field name="DoorError" mask="0x04"/> | ||
<field name="TempTooLow" mask="0x08"/> | ||
<field name="TempTooHigh" mask="0x10"/> | ||
<field name="WaterLevelError" mask="0x20"/> | ||
</bitmap> | ||
|
||
<cluster> | ||
<name>Dishwasher Alarm</name> | ||
<domain>Appliances</domain> | ||
<description>Attributes and commands for configuring the Dishwasher alarm.</description> | ||
<code>0x005D</code> | ||
<define>DISHWASHER_ALARM_CLUSTER</define> | ||
|
||
<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="LATCH" type="AlarmMap" default="0" writable="false" optional="true">Latch</attribute> | ||
<attribute side="server" code="0x0002" define="STATE" type="AlarmMap" default="0" writable="false" optional="false">State</attribute> | ||
<attribute side="server" code="0x0003" define="SUPPORTED" type="AlarmMap" default="0" writable="false" optional="false">Supported</attribute> | ||
|
||
<command source="client" code="0x00" name="Reset" optional="true"> | ||
<description>Reset alarm</description> | ||
<arg name="Alarms" type="AlarmMap" optional="false"/> | ||
</command> | ||
|
||
<command source="client" code="0x01" name="ModifyEnabledAlarms" optional="true"> | ||
<description>Modify enabled alarms</description> | ||
<arg name="Mask" type="AlarmMap" optional="false"/> | ||
</command> | ||
|
||
<event side="server" code="0x00" priority="info" name="Notify" optional="false"> | ||
<description>Notify</description> | ||
<field id="0" name="Active" type="AlarmMap" /> | ||
<field id="1" name="Inactive" type="AlarmMap" /> | ||
<field id="2" name="State" type="AlarmMap" /> | ||
<field id="3" name="Mask" type="AlarmMap" /> | ||
</event> | ||
</cluster> | ||
</configurator> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.