Skip to content

Commit

Permalink
Add missing parts in Time Format cluster (#13324)
Browse files Browse the repository at this point in the history
* Add missing parts in time format cluster

* Run codegen
  • Loading branch information
yufengwangca authored and pull[bot] committed Jul 12, 2023
1 parent e330a89 commit a979315
Show file tree
Hide file tree
Showing 10 changed files with 489 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,26 @@ limitations under the License.
-->
<configurator>
<domain name="CHIP" />


<enum name="HourFormat" type="ENUM8">
<cluster code="0x002c"/>
<item name="12hr" value="0x00"/>
<item name="24hr" value="0x01"/>
</enum>
<enum name="CalendarType" type="ENUM8">
<cluster code="0x002c"/>
<item name="Buddhist" value="0x00"/>
<item name="Chinese" value="0x01"/>
<item name="Coptic" value="0x02"/>
<item name="Ethiopian" value="0x03"/>
<item name="Gregorian" value="0x04"/>
<item name="Hebrew" value="0x05"/>
<item name="Indian" value="0x06"/>
<item name="Islamic" value="0x07"/>
<item name="Japanese" value="0x08"/>
<item name="Korean" value="0x09"/>
<item name="Persian" value="0x0A"/>
<item name="Taiwanese" value="0x0B"/>
</enum>
<cluster>
<domain>General</domain>
<name>Localization Time Format</name>
Expand All @@ -26,12 +44,12 @@ limitations under the License.
<client init="false" tick="false">true</client>
<server init="false" tick="false">true</server>
<description>Nodes should be expected to be deployed to any and all regions of the world. These global regions
may have differing preferences for how dates and times are conveyed. As such, Nodes that visually
or audibly convey time information need a mechanism by which they can be configured to use a
user’s preferred format.</description>
may have differing preferences for how dates and times are conveyed. As such, Nodes that visually
or audibly convey time information need a mechanism by which they can be configured to use a
user’s preferred format.</description>
<!-- Base data types -->

<!-- Test Commands -->

<attribute side="server" code="0x00" define="HOUR_FORMAT" type="ENUM8" writable="true" optional="false">HourFormat</attribute>
<attribute side="server" code="0x01" define="CALENDAR_TYPE" type="ENUM8" writable="true" optional="true">CalendarType</attribute>
<attribute side="server" code="0x02" define="SUPPORTED_CALENDAR_TYPES" type="ARRAY" entryType="CalendarType" length="254" writable="false" optional="true">SupportedCalendarTypes</attribute>
</cluster>
</configurator>
73 changes: 73 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.

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

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

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

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

Loading

0 comments on commit a979315

Please sign in to comment.