Skip to content

Commit

Permalink
Standardise feature names (#25896)
Browse files Browse the repository at this point in the history
* Standardize feature flags name into CLUSTERFeature

* Zap regen

* Fix group cluster feature naming

* Correct Darwin availability annotations for feature bitmap renames.

* Fix usage of pump configuration and control feature naming

* Fix window covering feature usage

* Fix one more use of WindowCoveringFeature

---------

Co-authored-by: Boris Zbarsky <[email protected]>
  • Loading branch information
2 people authored and pull[bot] committed Oct 5, 2023
1 parent 2a4b09d commit 3391193
Show file tree
Hide file tree
Showing 53 changed files with 330 additions and 248 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ server cluster Identify = 3 {
}

server cluster Groups = 4 {
bitmap GroupClusterFeature : BITMAP32 {
bitmap GroupsFeature : BITMAP32 {
kGroupNames = 0x1;
}

Expand Down Expand Up @@ -116,14 +116,14 @@ server cluster Groups = 4 {
}

server cluster Scenes = 5 {
bitmap SceneFeatures : BITMAP32 {
kSceneNames = 0x1;
}

bitmap ScenesCopyMode : BITMAP8 {
kCopyAllScenes = 0x1;
}

bitmap ScenesFeature : BITMAP32 {
kSceneNames = 0x1;
}

struct ExtensionFieldSet {
cluster_id clusterID = 0;
AttributeValuePair attributeValueList[] = 1;
Expand Down Expand Up @@ -2734,14 +2734,6 @@ server cluster WindowCovering = 258 {
kTiltEncoderControlled = 0x40;
}

bitmap Feature : BITMAP32 {
kLift = 0x1;
kTilt = 0x2;
kPositionAwareLift = 0x4;
kAbsolutePosition = 0x8;
kPositionAwareTilt = 0x10;
}

bitmap Mode : BITMAP8 {
kMotorDirectionReversed = 0x1;
kCalibrationMode = 0x2;
Expand Down Expand Up @@ -2770,6 +2762,14 @@ server cluster WindowCovering = 258 {
kProtection = 0x800;
}

bitmap WindowCoveringFeature : BITMAP32 {
kLift = 0x1;
kTilt = 0x2;
kPositionAwareLift = 0x4;
kAbsolutePosition = 0x8;
kPositionAwareTilt = 0x10;
}

readonly attribute Type type = 0;
readonly attribute int16u physicalClosedLimitLift = 1;
readonly attribute int16u physicalClosedLimitTilt = 2;
Expand Down Expand Up @@ -2861,7 +2861,7 @@ server cluster PumpConfigurationAndControl = 512 {
kLocal = 3;
}

bitmap PumpFeature : BITMAP32 {
bitmap PumpConfigurationAndControlFeature : BITMAP32 {
kConstantPressure = 0x1;
kCompensatedPressure = 0x2;
kConstantFlow = 0x4;
Expand Down Expand Up @@ -3487,7 +3487,7 @@ server cluster TemperatureMeasurement = 1026 {
}

server cluster PressureMeasurement = 1027 {
bitmap PressureFeature : BITMAP32 {
bitmap PressureMeasurementFeature : BITMAP32 {
kExtended = 0x1;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ server cluster Identify = 3 {
}

server cluster Groups = 4 {
bitmap GroupClusterFeature : BITMAP32 {
bitmap GroupsFeature : BITMAP32 {
kGroupNames = 0x1;
}

Expand Down Expand Up @@ -115,14 +115,14 @@ server cluster Groups = 4 {
}

server cluster Scenes = 5 {
bitmap SceneFeatures : BITMAP32 {
kSceneNames = 0x1;
}

bitmap ScenesCopyMode : BITMAP8 {
kCopyAllScenes = 0x1;
}

bitmap ScenesFeature : BITMAP32 {
kSceneNames = 0x1;
}

struct ExtensionFieldSet {
cluster_id clusterID = 0;
AttributeValuePair attributeValueList[] = 1;
Expand Down Expand Up @@ -2376,14 +2376,6 @@ server cluster WindowCovering = 258 {
kTiltEncoderControlled = 0x40;
}

bitmap Feature : BITMAP32 {
kLift = 0x1;
kTilt = 0x2;
kPositionAwareLift = 0x4;
kAbsolutePosition = 0x8;
kPositionAwareTilt = 0x10;
}

bitmap Mode : BITMAP8 {
kMotorDirectionReversed = 0x1;
kCalibrationMode = 0x2;
Expand Down Expand Up @@ -2412,6 +2404,14 @@ server cluster WindowCovering = 258 {
kProtection = 0x800;
}

bitmap WindowCoveringFeature : BITMAP32 {
kLift = 0x1;
kTilt = 0x2;
kPositionAwareLift = 0x4;
kAbsolutePosition = 0x8;
kPositionAwareTilt = 0x10;
}

readonly attribute Type type = 0;
readonly attribute ConfigStatus configStatus = 7;
readonly attribute OperationalStatus operationalStatus = 10;
Expand Down Expand Up @@ -2446,7 +2446,7 @@ server cluster PumpConfigurationAndControl = 512 {
kLocal = 3;
}

bitmap PumpFeature : BITMAP32 {
bitmap PumpConfigurationAndControlFeature : BITMAP32 {
kConstantPressure = 0x1;
kCompensatedPressure = 0x2;
kConstantFlow = 0x4;
Expand Down Expand Up @@ -2813,7 +2813,7 @@ server cluster TemperatureMeasurement = 1026 {
}

server cluster PressureMeasurement = 1027 {
bitmap PressureFeature : BITMAP32 {
bitmap PressureMeasurementFeature : BITMAP32 {
kExtended = 0x1;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ server cluster Identify = 3 {
}

server cluster Groups = 4 {
bitmap GroupClusterFeature : BITMAP32 {
bitmap GroupsFeature : BITMAP32 {
kGroupNames = 0x1;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ server cluster Identify = 3 {
}

server cluster Groups = 4 {
bitmap GroupClusterFeature : BITMAP32 {
bitmap GroupsFeature : BITMAP32 {
kGroupNames = 0x1;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ server cluster Identify = 3 {
}

server cluster Groups = 4 {
bitmap GroupClusterFeature : BITMAP32 {
bitmap GroupsFeature : BITMAP32 {
kGroupNames = 0x1;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ server cluster Identify = 3 {
}

server cluster Groups = 4 {
bitmap GroupClusterFeature : BITMAP32 {
bitmap GroupsFeature : BITMAP32 {
kGroupNames = 0x1;
}

Expand Down
2 changes: 1 addition & 1 deletion examples/chef/devices/rootnode_doorlock_aNKYAreMXE.matter
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ server cluster Identify = 3 {
}

server cluster Groups = 4 {
bitmap GroupClusterFeature : BITMAP32 {
bitmap GroupsFeature : BITMAP32 {
kGroupNames = 0x1;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ server cluster Identify = 3 {
}

server cluster Groups = 4 {
bitmap GroupClusterFeature : BITMAP32 {
bitmap GroupsFeature : BITMAP32 {
kGroupNames = 0x1;
}

Expand Down
2 changes: 1 addition & 1 deletion examples/chef/devices/rootnode_fan_7N2TobIlOX.matter
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ server cluster Identify = 3 {
}

server cluster Groups = 4 {
bitmap GroupClusterFeature : BITMAP32 {
bitmap GroupsFeature : BITMAP32 {
kGroupNames = 0x1;
}

Expand Down
4 changes: 2 additions & 2 deletions examples/chef/devices/rootnode_flowsensor_1zVxHedlaV.matter
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ server cluster Identify = 3 {
}

client cluster Groups = 4 {
bitmap GroupClusterFeature : BITMAP32 {
bitmap GroupsFeature : BITMAP32 {
kGroupNames = 0x1;
}

Expand Down Expand Up @@ -105,7 +105,7 @@ client cluster Groups = 4 {
}

server cluster Groups = 4 {
bitmap GroupClusterFeature : BITMAP32 {
bitmap GroupsFeature : BITMAP32 {
kGroupNames = 0x1;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ server cluster Identify = 3 {
}

server cluster Groups = 4 {
bitmap GroupClusterFeature : BITMAP32 {
bitmap GroupsFeature : BITMAP32 {
kGroupNames = 0x1;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ server cluster Identify = 3 {
}

client cluster Groups = 4 {
bitmap GroupClusterFeature : BITMAP32 {
bitmap GroupsFeature : BITMAP32 {
kGroupNames = 0x1;
}

Expand Down Expand Up @@ -105,7 +105,7 @@ client cluster Groups = 4 {
}

server cluster Groups = 4 {
bitmap GroupClusterFeature : BITMAP32 {
bitmap GroupsFeature : BITMAP32 {
kGroupNames = 0x1;
}

Expand Down
4 changes: 2 additions & 2 deletions examples/chef/devices/rootnode_lightsensor_lZQycTFcJK.matter
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ server cluster Identify = 3 {
}

client cluster Groups = 4 {
bitmap GroupClusterFeature : BITMAP32 {
bitmap GroupsFeature : BITMAP32 {
kGroupNames = 0x1;
}

Expand Down Expand Up @@ -105,7 +105,7 @@ client cluster Groups = 4 {
}

server cluster Groups = 4 {
bitmap GroupClusterFeature : BITMAP32 {
bitmap GroupsFeature : BITMAP32 {
kGroupNames = 0x1;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ server cluster Identify = 3 {
}

client cluster Groups = 4 {
bitmap GroupClusterFeature : BITMAP32 {
bitmap GroupsFeature : BITMAP32 {
kGroupNames = 0x1;
}

Expand Down Expand Up @@ -105,7 +105,7 @@ client cluster Groups = 4 {
}

server cluster Groups = 4 {
bitmap GroupClusterFeature : BITMAP32 {
bitmap GroupsFeature : BITMAP32 {
kGroupNames = 0x1;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ server cluster Identify = 3 {
}

server cluster Groups = 4 {
bitmap GroupClusterFeature : BITMAP32 {
bitmap GroupsFeature : BITMAP32 {
kGroupNames = 0x1;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ server cluster Identify = 3 {
}

server cluster Groups = 4 {
bitmap GroupClusterFeature : BITMAP32 {
bitmap GroupsFeature : BITMAP32 {
kGroupNames = 0x1;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ server cluster Identify = 3 {
}

server cluster Groups = 4 {
bitmap GroupClusterFeature : BITMAP32 {
bitmap GroupsFeature : BITMAP32 {
kGroupNames = 0x1;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ server cluster Identify = 3 {
}

client cluster Groups = 4 {
bitmap GroupClusterFeature : BITMAP32 {
bitmap GroupsFeature : BITMAP32 {
kGroupNames = 0x1;
}

Expand Down Expand Up @@ -110,7 +110,7 @@ client cluster Groups = 4 {
}

server cluster Groups = 4 {
bitmap GroupClusterFeature : BITMAP32 {
bitmap GroupsFeature : BITMAP32 {
kGroupNames = 0x1;
}

Expand Down Expand Up @@ -1171,7 +1171,7 @@ server cluster UserLabel = 65 {
}

server cluster PressureMeasurement = 1027 {
bitmap PressureFeature : BITMAP32 {
bitmap PressureMeasurementFeature : BITMAP32 {
kExtended = 0x1;
}

Expand Down
2 changes: 1 addition & 1 deletion examples/chef/devices/rootnode_speaker_RpzeXdimqA.matter
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ server cluster Identify = 3 {
}

server cluster Groups = 4 {
bitmap GroupClusterFeature : BITMAP32 {
bitmap GroupsFeature : BITMAP32 {
kGroupNames = 0x1;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ server cluster Identify = 3 {
}

client cluster Groups = 4 {
bitmap GroupClusterFeature : BITMAP32 {
bitmap GroupsFeature : BITMAP32 {
kGroupNames = 0x1;
}

Expand Down Expand Up @@ -105,7 +105,7 @@ client cluster Groups = 4 {
}

server cluster Groups = 4 {
bitmap GroupClusterFeature : BITMAP32 {
bitmap GroupsFeature : BITMAP32 {
kGroupNames = 0x1;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ server cluster Identify = 3 {
}

server cluster Groups = 4 {
bitmap GroupClusterFeature : BITMAP32 {
bitmap GroupsFeature : BITMAP32 {
kGroupNames = 0x1;
}

Expand Down
Loading

0 comments on commit 3391193

Please sign in to comment.