-
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 of refrigerator alarm cluster and zap generated (#26572)
* Add refrigerator alarm cluster xml to data-model * Zap generated for refrigerator alarm cluster * Changed domain name to Appliences * Fix Android build. * Fix Android and Java codegen for bitmaps. We were casting to the BitMask type, which did implicit conversions to its IntegerType. And those could fail if the java primitive type ended up wider than IntegerType. * Try to fix java build by enabling RefrigeratorAlarm in controller-clusters.zap. * Fix is_bitmap test in java codegen to actually work. * Fix up jinja codegen for untyped bitmaps. ZAP file codegen still broken * Fixup encode_value to use strong bitmap checks only for java --------- Co-authored-by: Boris Zbarsky <[email protected]> Co-authored-by: Andrei Litvin <[email protected]>
- Loading branch information
Showing
60 changed files
with
5,208 additions
and
43 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
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
49 changes: 49 additions & 0 deletions
49
src/app/zap-templates/zcl/data-model/chip/refrigerator-alarm.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,49 @@ | ||
<?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="0x0057" /> | ||
<field name="DoorOpen" mask="0x01"/> | ||
</bitmap> | ||
<cluster> | ||
<name>Refrigerator Alarm</name> | ||
<domain>Appliances</domain> | ||
<description>Attributes and commands for configuring the Refrigerator alarm.</description> | ||
<code>0x0057</code> | ||
<define>REFRIGERATOR_ALARM</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="true" optional="false">Mask</attribute> | ||
<attribute side="server" code="0x0001" define="LATCH" type="AlarmMap" default="0" writable="false" optional="false">Latch</attribute> | ||
<attribute side="server" code="0x0002" define="STATE" type="AlarmMap" default="0" writable="false" optional="false">State</attribute> | ||
|
||
<command source="client" code="0x00" name="Reset" optional="false"> | ||
<description>Reset alarm</description> | ||
<arg name="Alarms" type="AlarmMap" optional="false"/> | ||
<arg name="Mask" type="AlarmMap" optional="true"/> | ||
</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.