Skip to content

Commit

Permalink
[Pump] Add feature map support (#23824)
Browse files Browse the repository at this point in the history
* Added feature map to pump xml, updated server and zap regen all

* Added namespace and minor refactoring

* Removed PumpConfigurationAndControlAttrAccess since it is not used

* Updated PCC cluster on all cluster apps

* Updated to latest featureLevel to match master

* Ran regen all on latest zap and master

* zap regen all

* Updated PCC test cases to use new feature PICS

* Fixed PICS error in 1_1 and restyle

* Removed whitespaces

* Try to fix CI failure

* Added missing PICS for TC-PCC-2.2

Co-authored-by: Andrei Litvin <[email protected]>
  • Loading branch information
2 people authored and pull[bot] committed Feb 23, 2024
1 parent adec037 commit 62111c4
Show file tree
Hide file tree
Showing 22 changed files with 801 additions and 366 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2516,6 +2516,16 @@ server cluster PumpConfigurationAndControl = 512 {
kLocal = 3;
}

bitmap PumpFeature : BITMAP32 {
kConstantPressure = 0x1;
kCompensatedPressure = 0x2;
kConstantFlow = 0x4;
kConstantSpeed = 0x8;
kConstantTemperature = 0x10;
kAutomatic = 0x20;
kLocal = 0x40;
}

bitmap PumpStatus : BITMAP16 {
kDeviceFault = 0x1;
kSupplyfault = 0x2;
Expand Down Expand Up @@ -4513,8 +4523,8 @@ endpoint 1 {
ram attribute lifetimeEnergyConsumed;
ram attribute operationMode;
ram attribute controlMode;
ram attribute featureMap;
ram attribute clusterRevision default = 3;
ram attribute featureMap default = 0x1F;
ram attribute clusterRevision default = 4;
}

server cluster Thermostat {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14724,7 +14724,7 @@
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "0",
"defaultValue": "0x1F",
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
Expand All @@ -14740,7 +14740,7 @@
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "3",
"defaultValue": "4",
"reportable": 1,
"minInterval": 0,
"maxInterval": 65344,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2169,6 +2169,16 @@ server cluster PumpConfigurationAndControl = 512 {
kLocal = 3;
}

bitmap PumpFeature : BITMAP32 {
kConstantPressure = 0x1;
kCompensatedPressure = 0x2;
kConstantFlow = 0x4;
kConstantSpeed = 0x8;
kConstantTemperature = 0x10;
kAutomatic = 0x20;
kLocal = 0x40;
}

bitmap PumpStatus : BITMAP16 {
kDeviceFault = 0x1;
kSupplyfault = 0x2;
Expand Down Expand Up @@ -2235,6 +2245,8 @@ server cluster PumpConfigurationAndControl = 512 {
readonly attribute nullable int16s maxPressure = 0;
readonly attribute nullable int16u maxSpeed = 1;
readonly attribute nullable int16u maxFlow = 2;
readonly attribute nullable int16s minConstPressure = 3;
readonly attribute nullable int16s maxConstPressure = 4;
readonly attribute PumpOperationMode effectiveOperationMode = 17;
readonly attribute PumpControlMode effectiveControlMode = 18;
readonly attribute nullable int16s capacity = 19;
Expand Down Expand Up @@ -3664,12 +3676,14 @@ endpoint 1 {
ram attribute maxPressure;
ram attribute maxSpeed;
ram attribute maxFlow;
ram attribute minConstPressure;
ram attribute maxConstPressure;
ram attribute effectiveOperationMode;
ram attribute effectiveControlMode;
ram attribute capacity;
ram attribute operationMode;
ram attribute featureMap;
ram attribute clusterRevision default = 3;
ram attribute featureMap default = 1;
ram attribute clusterRevision default = 4;
}

server cluster Thermostat {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13956,11 +13956,11 @@
"mfgCode": null,
"side": "server",
"type": "int16s",
"included": 0,
"included": 1,
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "",
"defaultValue": null,
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
Expand All @@ -13972,11 +13972,11 @@
"mfgCode": null,
"side": "server",
"type": "int16s",
"included": 0,
"included": 1,
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "",
"defaultValue": null,
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
Expand Down Expand Up @@ -14280,7 +14280,7 @@
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "0",
"defaultValue": "1",
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
Expand All @@ -14296,7 +14296,7 @@
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "3",
"defaultValue": "4",
"reportable": 1,
"minInterval": 0,
"maxInterval": 65344,
Expand Down
10 changes: 10 additions & 0 deletions examples/placeholder/linux/apps/app1/config.matter
Original file line number Diff line number Diff line change
Expand Up @@ -1760,6 +1760,16 @@ server cluster PumpConfigurationAndControl = 512 {
kLocal = 3;
}

bitmap PumpFeature : BITMAP32 {
kConstantPressure = 0x1;
kCompensatedPressure = 0x2;
kConstantFlow = 0x4;
kConstantSpeed = 0x8;
kConstantTemperature = 0x10;
kAutomatic = 0x20;
kLocal = 0x40;
}

bitmap PumpStatus : BITMAP16 {
kDeviceFault = 0x1;
kSupplyfault = 0x2;
Expand Down
10 changes: 10 additions & 0 deletions examples/placeholder/linux/apps/app2/config.matter
Original file line number Diff line number Diff line change
Expand Up @@ -1737,6 +1737,16 @@ server cluster PumpConfigurationAndControl = 512 {
kLocal = 3;
}

bitmap PumpFeature : BITMAP32 {
kConstantPressure = 0x1;
kCompensatedPressure = 0x2;
kConstantFlow = 0x4;
kConstantSpeed = 0x8;
kConstantTemperature = 0x10;
kAutomatic = 0x20;
kLocal = 0x40;
}

bitmap PumpStatus : BITMAP16 {
kDeviceFault = 0x1;
kSupplyfault = 0x2;
Expand Down
14 changes: 12 additions & 2 deletions examples/pump-app/pump-common/pump-app.matter
Original file line number Diff line number Diff line change
Expand Up @@ -1110,6 +1110,16 @@ server cluster PumpConfigurationAndControl = 512 {
kLocal = 3;
}

bitmap PumpFeature : BITMAP32 {
kConstantPressure = 0x1;
kCompensatedPressure = 0x2;
kConstantFlow = 0x4;
kConstantSpeed = 0x8;
kConstantTemperature = 0x10;
kAutomatic = 0x20;
kLocal = 0x40;
}

bitmap PumpStatus : BITMAP16 {
kDeviceFault = 0x1;
kSupplyfault = 0x2;
Expand Down Expand Up @@ -1503,8 +1513,8 @@ endpoint 1 {
callback attribute generatedCommandList;
callback attribute acceptedCommandList;
callback attribute attributeList;
ram attribute featureMap;
ram attribute clusterRevision default = 3;
ram attribute featureMap default = 31;
ram attribute clusterRevision default = 4;
}

server cluster TemperatureMeasurement {
Expand Down
7 changes: 4 additions & 3 deletions examples/pump-app/pump-common/pump-app.zap
Original file line number Diff line number Diff line change
Expand Up @@ -7150,7 +7150,7 @@
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "0",
"defaultValue": "31",
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
Expand All @@ -7166,7 +7166,7 @@
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "3",
"defaultValue": "4",
"reportable": 1,
"minInterval": 0,
"maxInterval": 65344,
Expand Down Expand Up @@ -7914,5 +7914,6 @@
"endpointVersion": 1,
"deviceIdentifier": 771
}
]
],
"log": []
}
Original file line number Diff line number Diff line change
Expand Up @@ -1009,6 +1009,16 @@ client cluster PumpConfigurationAndControl = 512 {
kLocal = 3;
}

bitmap PumpFeature : BITMAP32 {
kConstantPressure = 0x1;
kCompensatedPressure = 0x2;
kConstantFlow = 0x4;
kConstantSpeed = 0x8;
kConstantTemperature = 0x10;
kAutomatic = 0x20;
kLocal = 0x40;
}

bitmap PumpStatus : BITMAP16 {
kDeviceFault = 0x1;
kSupplyfault = 0x2;
Expand Down
Loading

0 comments on commit 62111c4

Please sign in to comment.