Skip to content

Commit 1635132

Browse files
krypton36pull[bot]
authored andcommitted
Add missing clusters and attributes to simulated app (#16461)
* Add missing clusters and attributes to simulated device app. * Generated code.
1 parent e0282ce commit 1635132

21 files changed

+3259
-373
lines changed

examples/placeholder/linux/BUILD.gn

+4-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@ config("includes") {
3636
}
3737

3838
executable("chip-${chip_tests_zap_config}") {
39-
sources = [ "main.cpp" ]
39+
sources = [
40+
"main.cpp",
41+
"static-supported-modes-manager.cpp",
42+
]
4043

4144
deps = [
4245
":configuration",

examples/placeholder/linux/apps/app1/config.matter

+184
Original file line numberDiff line numberDiff line change
@@ -1009,6 +1009,56 @@ server cluster LevelControl = 8 {
10091009
command StopWithOnOff(): DefaultSuccess = 7;
10101010
}
10111011

1012+
client cluster ModeSelect = 80 {
1013+
struct ModeOptionStruct {
1014+
CHAR_STRING<32> label = 0;
1015+
INT8U mode = 1;
1016+
INT32U semanticTag = 2;
1017+
}
1018+
1019+
readonly attribute int8u currentMode = 0;
1020+
readonly attribute ModeOptionStruct supportedModes[] = 1;
1021+
attribute int8u onMode = 2;
1022+
readonly attribute int8u startUpMode = 3;
1023+
readonly attribute char_string<32> description = 4;
1024+
readonly global attribute command_id generatedCommandList[] = 65528;
1025+
readonly global attribute command_id acceptedCommandList[] = 65529;
1026+
readonly global attribute attrib_id attributeList[] = 65531;
1027+
readonly global attribute bitmap32 featureMap = 65532;
1028+
readonly global attribute int16u clusterRevision = 65533;
1029+
1030+
request struct ChangeToModeRequest {
1031+
INT8U newMode = 0;
1032+
}
1033+
1034+
command ChangeToMode(ChangeToModeRequest): DefaultSuccess = 0;
1035+
}
1036+
1037+
server cluster ModeSelect = 80 {
1038+
struct ModeOptionStruct {
1039+
CHAR_STRING<32> label = 0;
1040+
INT8U mode = 1;
1041+
INT32U semanticTag = 2;
1042+
}
1043+
1044+
readonly attribute int8u currentMode = 0;
1045+
readonly attribute ModeOptionStruct supportedModes[] = 1;
1046+
attribute int8u onMode = 2;
1047+
readonly attribute int8u startUpMode = 3;
1048+
readonly attribute char_string<32> description = 4;
1049+
readonly global attribute command_id generatedCommandList[] = 65528;
1050+
readonly global attribute command_id acceptedCommandList[] = 65529;
1051+
readonly global attribute attrib_id attributeList[] = 65531;
1052+
readonly global attribute bitmap32 featureMap = 65532;
1053+
readonly global attribute int16u clusterRevision = 65533;
1054+
1055+
request struct ChangeToModeRequest {
1056+
INT8U newMode = 0;
1057+
}
1058+
1059+
command ChangeToMode(ChangeToModeRequest): DefaultSuccess = 0;
1060+
}
1061+
10121062
server cluster NetworkCommissioning = 49 {
10131063
enum NetworkCommissioningStatus : ENUM8 {
10141064
kSuccess = 0;
@@ -1528,6 +1578,28 @@ server cluster PumpConfigurationAndControl = 512 {
15281578
readonly global attribute int16u clusterRevision = 65533;
15291579
}
15301580

1581+
client cluster RelativeHumidityMeasurement = 1029 {
1582+
readonly attribute int16u measuredValue = 0;
1583+
readonly attribute int16u minMeasuredValue = 1;
1584+
readonly attribute int16u maxMeasuredValue = 2;
1585+
readonly attribute int16u tolerance = 3;
1586+
readonly global attribute command_id generatedCommandList[] = 65528;
1587+
readonly global attribute command_id acceptedCommandList[] = 65529;
1588+
readonly global attribute attrib_id attributeList[] = 65531;
1589+
readonly global attribute bitmap32 featureMap = 65532;
1590+
}
1591+
1592+
server cluster RelativeHumidityMeasurement = 1029 {
1593+
readonly attribute int16u measuredValue = 0;
1594+
readonly attribute int16u minMeasuredValue = 1;
1595+
readonly attribute int16u maxMeasuredValue = 2;
1596+
readonly attribute int16u tolerance = 3;
1597+
readonly global attribute command_id generatedCommandList[] = 65528;
1598+
readonly global attribute command_id acceptedCommandList[] = 65529;
1599+
readonly global attribute attrib_id attributeList[] = 65531;
1600+
readonly global attribute bitmap32 featureMap = 65532;
1601+
}
1602+
15311603
server cluster Scenes = 5 {
15321604
bitmap ScenesCopyMode : BITMAP8 {
15331605
kCopyAllScenes = 0x1;
@@ -1632,6 +1704,88 @@ server cluster Scenes = 5 {
16321704
command ViewScene(ViewSceneRequest): ViewSceneResponse = 1;
16331705
}
16341706

1707+
client cluster Switch = 59 {
1708+
info event SwitchLatched = 0 {
1709+
INT8U newPosition = 0;
1710+
}
1711+
1712+
info event InitialPress = 1 {
1713+
INT8U newPosition = 0;
1714+
}
1715+
1716+
info event LongPress = 2 {
1717+
INT8U newPosition = 0;
1718+
}
1719+
1720+
info event ShortRelease = 3 {
1721+
INT8U previousPosition = 0;
1722+
}
1723+
1724+
info event LongRelease = 4 {
1725+
INT8U previousPosition = 0;
1726+
}
1727+
1728+
info event MultiPressOngoing = 5 {
1729+
INT8U newPosition = 0;
1730+
INT8U currentNumberOfPressesCounted = 1;
1731+
}
1732+
1733+
info event MultiPressComplete = 6 {
1734+
INT8U newPosition = 0;
1735+
INT8U totalNumberOfPressesCounted = 1;
1736+
}
1737+
1738+
readonly attribute int8u numberOfPositions = 0;
1739+
readonly attribute int8u currentPosition = 1;
1740+
readonly attribute int8u multiPressMax = 2;
1741+
readonly global attribute command_id generatedCommandList[] = 65528;
1742+
readonly global attribute command_id acceptedCommandList[] = 65529;
1743+
readonly global attribute attrib_id attributeList[] = 65531;
1744+
readonly global attribute bitmap32 featureMap = 65532;
1745+
readonly global attribute int16u clusterRevision = 65533;
1746+
}
1747+
1748+
server cluster Switch = 59 {
1749+
info event SwitchLatched = 0 {
1750+
INT8U newPosition = 0;
1751+
}
1752+
1753+
info event InitialPress = 1 {
1754+
INT8U newPosition = 0;
1755+
}
1756+
1757+
info event LongPress = 2 {
1758+
INT8U newPosition = 0;
1759+
}
1760+
1761+
info event ShortRelease = 3 {
1762+
INT8U previousPosition = 0;
1763+
}
1764+
1765+
info event LongRelease = 4 {
1766+
INT8U previousPosition = 0;
1767+
}
1768+
1769+
info event MultiPressOngoing = 5 {
1770+
INT8U newPosition = 0;
1771+
INT8U currentNumberOfPressesCounted = 1;
1772+
}
1773+
1774+
info event MultiPressComplete = 6 {
1775+
INT8U newPosition = 0;
1776+
INT8U totalNumberOfPressesCounted = 1;
1777+
}
1778+
1779+
readonly attribute int8u numberOfPositions = 0;
1780+
readonly attribute int8u currentPosition = 1;
1781+
readonly attribute int8u multiPressMax = 2;
1782+
readonly global attribute command_id generatedCommandList[] = 65528;
1783+
readonly global attribute command_id acceptedCommandList[] = 65529;
1784+
readonly global attribute attrib_id attributeList[] = 65531;
1785+
readonly global attribute bitmap32 featureMap = 65532;
1786+
readonly global attribute int16u clusterRevision = 65533;
1787+
}
1788+
16351789
client cluster TargetNavigator = 1285 {
16361790
enum StatusEnum : ENUM8 {
16371791
kSuccess = 0;
@@ -1787,6 +1941,28 @@ server cluster Thermostat = 513 {
17871941
readonly global attribute int16u clusterRevision = 65533;
17881942
}
17891943

1944+
client cluster ThermostatUserInterfaceConfiguration = 516 {
1945+
attribute enum8 temperatureDisplayMode = 0;
1946+
attribute enum8 keypadLockout = 1;
1947+
attribute enum8 scheduleProgrammingVisibility = 2;
1948+
readonly global attribute command_id generatedCommandList[] = 65528;
1949+
readonly global attribute command_id acceptedCommandList[] = 65529;
1950+
readonly global attribute attrib_id attributeList[] = 65531;
1951+
readonly global attribute bitmap32 featureMap = 65532;
1952+
readonly global attribute int16u clusterRevision = 65533;
1953+
}
1954+
1955+
server cluster ThermostatUserInterfaceConfiguration = 516 {
1956+
attribute enum8 temperatureDisplayMode = 0;
1957+
attribute enum8 keypadLockout = 1;
1958+
attribute enum8 scheduleProgrammingVisibility = 2;
1959+
readonly global attribute command_id generatedCommandList[] = 65528;
1960+
readonly global attribute command_id acceptedCommandList[] = 65529;
1961+
readonly global attribute attrib_id attributeList[] = 65531;
1962+
readonly global attribute bitmap32 featureMap = 65532;
1963+
readonly global attribute int16u clusterRevision = 65533;
1964+
}
1965+
17901966
server cluster WindowCovering = 258 {
17911967
bitmap WcConfigStatus : BITMAP8 {
17921968
kOperational = 0x1;
@@ -1895,17 +2071,25 @@ endpoint 0 {
18952071
server cluster GeneralDiagnostics;
18962072
binding cluster KeypadInput;
18972073
server cluster KeypadInput;
2074+
binding cluster ModeSelect;
2075+
server cluster ModeSelect;
18982076
server cluster NetworkCommissioning;
18992077
binding cluster OnOff;
19002078
server cluster OnOff;
19012079
binding cluster OperationalCredentials;
19022080
server cluster OperationalCredentials;
19032081
server cluster PumpConfigurationAndControl;
2082+
binding cluster RelativeHumidityMeasurement;
2083+
server cluster RelativeHumidityMeasurement;
2084+
binding cluster Switch;
2085+
server cluster Switch;
19042086
binding cluster TargetNavigator;
19052087
server cluster TargetNavigator;
19062088
binding cluster TemperatureMeasurement;
19072089
server cluster TemperatureMeasurement;
19082090
server cluster Thermostat;
2091+
binding cluster ThermostatUserInterfaceConfiguration;
2092+
server cluster ThermostatUserInterfaceConfiguration;
19092093
server cluster WindowCovering;
19102094
}
19112095

0 commit comments

Comments
 (0)