Skip to content

Commit

Permalink
Move Pump Configuration and Control to match spec (#29955)
Browse files Browse the repository at this point in the history
* Fix case typo on pumpcc cluster to match spec

* Zap regen

* Minor change to re-kick CI

* Revert "Minor change to re-kick CI"

This reverts commit e5b6e55.

t push # with '#' will be ignored, and an empty message aborts the commit.

* Fix Darwin availability annotations and codegen.

---------

Co-authored-by: Andrei Litvin <[email protected]>
Co-authored-by: Boris Zbarsky <[email protected]>
  • Loading branch information
3 people authored Oct 25, 2023
1 parent a0d3555 commit 22cf87b
Show file tree
Hide file tree
Showing 17 changed files with 40 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3461,7 +3461,7 @@ server cluster PumpConfigurationAndControl = 512 {

bitmap PumpStatusBitmap : bitmap16 {
kDeviceFault = 0x1;
kSupplyfault = 0x2;
kSupplyFault = 0x2;
kSpeedLow = 0x4;
kSpeedHigh = 0x8;
kLocalOverride = 0x10;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2662,7 +2662,7 @@ server cluster PumpConfigurationAndControl = 512 {

bitmap PumpStatusBitmap : bitmap16 {
kDeviceFault = 0x1;
kSupplyfault = 0x2;
kSupplyFault = 0x2;
kSpeedLow = 0x4;
kSpeedHigh = 0x8;
kLocalOverride = 0x10;
Expand Down
2 changes: 1 addition & 1 deletion examples/chef/devices/rootnode_pump_5f904818cc.matter
Original file line number Diff line number Diff line change
Expand Up @@ -923,7 +923,7 @@ server cluster PumpConfigurationAndControl = 512 {

bitmap PumpStatusBitmap : bitmap16 {
kDeviceFault = 0x1;
kSupplyfault = 0x2;
kSupplyFault = 0x2;
kSpeedLow = 0x4;
kSpeedHigh = 0x8;
kLocalOverride = 0x10;
Expand Down
2 changes: 1 addition & 1 deletion examples/chef/devices/rootnode_pump_a811bb33a0.matter
Original file line number Diff line number Diff line change
Expand Up @@ -923,7 +923,7 @@ server cluster PumpConfigurationAndControl = 512 {

bitmap PumpStatusBitmap : bitmap16 {
kDeviceFault = 0x1;
kSupplyfault = 0x2;
kSupplyFault = 0x2;
kSpeedLow = 0x4;
kSpeedHigh = 0x8;
kLocalOverride = 0x10;
Expand Down
2 changes: 1 addition & 1 deletion examples/placeholder/linux/apps/app1/config.matter
Original file line number Diff line number Diff line change
Expand Up @@ -4129,7 +4129,7 @@ server cluster PumpConfigurationAndControl = 512 {

bitmap PumpStatusBitmap : bitmap16 {
kDeviceFault = 0x1;
kSupplyfault = 0x2;
kSupplyFault = 0x2;
kSpeedLow = 0x4;
kSpeedHigh = 0x8;
kLocalOverride = 0x10;
Expand Down
2 changes: 1 addition & 1 deletion examples/placeholder/linux/apps/app2/config.matter
Original file line number Diff line number Diff line change
Expand Up @@ -4088,7 +4088,7 @@ server cluster PumpConfigurationAndControl = 512 {

bitmap PumpStatusBitmap : bitmap16 {
kDeviceFault = 0x1;
kSupplyfault = 0x2;
kSupplyFault = 0x2;
kSpeedLow = 0x4;
kSpeedHigh = 0x8;
kLocalOverride = 0x10;
Expand Down
2 changes: 1 addition & 1 deletion examples/pump-app/pump-common/pump-app.matter
Original file line number Diff line number Diff line change
Expand Up @@ -1223,7 +1223,7 @@ server cluster PumpConfigurationAndControl = 512 {

bitmap PumpStatusBitmap : bitmap16 {
kDeviceFault = 0x1;
kSupplyfault = 0x2;
kSupplyFault = 0x2;
kSpeedLow = 0x4;
kSpeedHigh = 0x8;
kLocalOverride = 0x10;
Expand Down
2 changes: 1 addition & 1 deletion examples/pump-app/silabs/data_model/pump-thread-app.matter
Original file line number Diff line number Diff line change
Expand Up @@ -1223,7 +1223,7 @@ server cluster PumpConfigurationAndControl = 512 {

bitmap PumpStatusBitmap : bitmap16 {
kDeviceFault = 0x1;
kSupplyfault = 0x2;
kSupplyFault = 0x2;
kSpeedLow = 0x4;
kSpeedHigh = 0x8;
kLocalOverride = 0x10;
Expand Down
2 changes: 1 addition & 1 deletion examples/pump-app/silabs/data_model/pump-wifi-app.matter
Original file line number Diff line number Diff line change
Expand Up @@ -1223,7 +1223,7 @@ server cluster PumpConfigurationAndControl = 512 {

bitmap PumpStatusBitmap : bitmap16 {
kDeviceFault = 0x1;
kSupplyfault = 0x2;
kSupplyFault = 0x2;
kSpeedLow = 0x4;
kSpeedHigh = 0x8;
kLocalOverride = 0x10;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1148,7 +1148,7 @@ client cluster PumpConfigurationAndControl = 512 {

bitmap PumpStatusBitmap : bitmap16 {
kDeviceFault = 0x1;
kSupplyfault = 0x2;
kSupplyFault = 0x2;
kSpeedLow = 0x4;
kSpeedHigh = 0x8;
kLocalOverride = 0x10;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ limitations under the License.
<bitmap name="PumpStatusBitmap" type="bitmap16">
<cluster code="0x0200"/>
<field name="DeviceFault" mask="0x1"/>
<field name="Supplyfault" mask="0x2"/>
<field name="SupplyFault" mask="0x2"/>
<field name="SpeedLow" mask="0x4"/>
<field name="SpeedHigh" mask="0x8"/>
<field name="LocalOverride" mask="0x10"/>
Expand Down
2 changes: 1 addition & 1 deletion src/controller/data_model/controller-clusters.matter
Original file line number Diff line number Diff line change
Expand Up @@ -4393,7 +4393,7 @@ client cluster PumpConfigurationAndControl = 512 {

bitmap PumpStatusBitmap : bitmap16 {
kDeviceFault = 0x1;
kSupplyfault = 0x2;
kSupplyFault = 0x2;
kSpeedLow = 0x4;
kSpeedHigh = 0x8;
kLocalOverride = 0x10;
Expand Down
2 changes: 1 addition & 1 deletion src/controller/python/chip/clusters/Objects.py

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

7 changes: 6 additions & 1 deletion src/darwin/Framework/CHIP/templates/MTRBaseClusters.zapt
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,12 @@ typedef NS_OPTIONS({{asUnderlyingZclType name}}, {{objCEnumName clusterName bitm
{{/if}}
{{/if}}
{{/inline}}
{{> oldNameItemDecl oldItemName=(oldName ../clusterName bitmap=../bitmapName bitmapValue=(asUpperCamelCase label preserveAcronyms=true))}}
{{! The cluster or the bitmap or the value could have been renamed, so this is a bit of a pain... Just cover the cases that matter to us for now }}
{{#if (hasOldName ../clusterName bitmap=../bitmapName bitmapValue=(asUpperCamelCase label preserveAcronyms=true))}}
{{> oldNameItemDecl oldItemName=(oldName ../clusterName bitmap=../bitmapName bitmapValue=(asUpperCamelCase label preserveAcronyms=true))}}
{{else if (hasOldName (asUpperCamelCase ../../name preserveAcronyms=true) bitmap=(asUpperCamelCase ../name preserveAcronyms=true) bitmapValue=(asUpperCamelCase label preserveAcronyms=true))}}
{{> oldNameItemDecl oldItemName=(oldName (asUpperCamelCase ../../name preserveAcronyms=true) bitmap=(asUpperCamelCase ../name preserveAcronyms=true) bitmapValue=(asUpperCamelCase label preserveAcronyms=true))}}
{{/if}}
{{/zcl_bitmap_items}}
}
{{/inline}}
Expand Down
15 changes: 15 additions & 0 deletions src/darwin/Framework/CHIP/templates/availability.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7728,3 +7728,18 @@

- release: "Future"
versions: "future"
introduced:
bitmap values:
PumpConfigurationAndControl:
PumpStatusBitmap:
- SupplyFault
deprecated:
bitmap values:
PumpConfigurationAndControl:
PumpStatusBitmap:
- Supplyfault
renames:
bitmap values:
PumpConfigurationAndControl:
PumpStatusBitmap:
SupplyFault: Supplyfault
7 changes: 5 additions & 2 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.

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

0 comments on commit 22cf87b

Please sign in to comment.