Skip to content

Commit

Permalink
IDL: add information about cluster instantiations on endpoints (#13612)
Browse files Browse the repository at this point in the history
* IDL: output cluster instantiations for each endpoint

* Restyle fixes
  • Loading branch information
andy31415 authored and pull[bot] committed Apr 4, 2022
1 parent 0606215 commit d47ac4c
Show file tree
Hide file tree
Showing 21 changed files with 537 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2999,11 +2999,86 @@ server cluster WindowCovering = 258 {


endpoint 0 {
instantiate cluster AccessControl;
instantiate cluster AdministratorCommissioning;
instantiate cluster Basic;
instantiate cluster Binding;
instantiate cluster Descriptor;
instantiate cluster DiagnosticLogs;
instantiate cluster EthernetNetworkDiagnostics;
instantiate cluster FixedLabel;
instantiate cluster GeneralCommissioning;
instantiate cluster GeneralDiagnostics;
instantiate cluster GroupKeyManagement;
instantiate cluster Groups;
instantiate cluster Identify;
instantiate cluster LocalizationConfiguration;
instantiate cluster NetworkCommissioning;
instantiate cluster OtaSoftwareUpdateProvider;
instantiate cluster OtaSoftwareUpdateRequestor;
instantiate cluster OperationalCredentials;
instantiate cluster PowerSourceConfiguration;
instantiate cluster RelativeHumidityMeasurement;
instantiate cluster SoftwareDiagnostics;
instantiate cluster ThreadNetworkDiagnostics;
instantiate cluster UserLabel;
instantiate cluster WiFiNetworkDiagnostics;
}

endpoint 1 {
instantiate cluster AccountLogin;
instantiate cluster ApplicationBasic;
instantiate cluster ApplicationLauncher;
instantiate cluster AudioOutput;
instantiate cluster BarrierControl;
instantiate cluster BinaryInputBasic;
instantiate cluster Binding;
instantiate cluster BooleanState;
instantiate cluster BridgedActions;
instantiate cluster BridgedDeviceBasic;
instantiate cluster Channel;
instantiate cluster ColorControl;
instantiate cluster ContentLauncher;
instantiate cluster Descriptor;
instantiate cluster DoorLock;
instantiate cluster ElectricalMeasurement;
instantiate cluster FixedLabel;
instantiate cluster FlowMeasurement;
instantiate cluster Groups;
instantiate cluster IasZone;
instantiate cluster Identify;
instantiate cluster IlluminanceMeasurement;
instantiate cluster KeypadInput;
instantiate cluster LevelControl;
instantiate cluster LocalizationConfiguration;
instantiate cluster LowPower;
instantiate cluster MediaInput;
instantiate cluster MediaPlayback;
instantiate cluster ModeSelect;
instantiate cluster NetworkCommissioning;
instantiate cluster OccupancySensing;
instantiate cluster OnOff;
instantiate cluster OnOffSwitchConfiguration;
instantiate cluster PowerSource;
instantiate cluster PressureMeasurement;
instantiate cluster PumpConfigurationAndControl;
instantiate cluster RelativeHumidityMeasurement;
instantiate cluster Scenes;
instantiate cluster Switch;
instantiate cluster TargetNavigator;
instantiate cluster TemperatureMeasurement;
instantiate cluster TestCluster;
instantiate cluster Thermostat;
instantiate cluster ThermostatUserInterfaceConfiguration;
instantiate cluster UserLabel;
instantiate cluster WakeOnLan;
instantiate cluster WindowCovering;
}

endpoint 2 {
instantiate cluster Descriptor;
instantiate cluster Groups;
instantiate cluster OccupancySensing;
instantiate cluster OnOff;
}

20 changes: 20 additions & 0 deletions examples/bridge-app/bridge-common/bridge-app.matter
Original file line number Diff line number Diff line change
Expand Up @@ -895,8 +895,28 @@ server cluster WiFiNetworkDiagnostics = 54 {


endpoint 0 {
instantiate cluster AdministratorCommissioning;
instantiate cluster Basic;
instantiate cluster Descriptor;
instantiate cluster DiagnosticLogs;
instantiate cluster EthernetNetworkDiagnostics;
instantiate cluster FixedLabel;
instantiate cluster GeneralCommissioning;
instantiate cluster GeneralDiagnostics;
instantiate cluster LocalizationConfiguration;
instantiate cluster NetworkCommissioning;
instantiate cluster OperationalCredentials;
instantiate cluster SoftwareDiagnostics;
instantiate cluster ThreadNetworkDiagnostics;
instantiate cluster UserLabel;
instantiate cluster WiFiNetworkDiagnostics;
}

endpoint 1 {
instantiate cluster Descriptor;
instantiate cluster FixedLabel;
instantiate cluster LevelControl;
instantiate cluster OnOff;
instantiate cluster Switch;
}

20 changes: 20 additions & 0 deletions examples/door-lock-app/door-lock-common/door-lock-app.matter
Original file line number Diff line number Diff line change
Expand Up @@ -1103,8 +1103,28 @@ server cluster WiFiNetworkDiagnostics = 54 {


endpoint 0 {
instantiate cluster AdministratorCommissioning;
instantiate cluster Basic;
instantiate cluster Descriptor;
instantiate cluster DiagnosticLogs;
instantiate cluster EthernetNetworkDiagnostics;
instantiate cluster FixedLabel;
instantiate cluster GeneralCommissioning;
instantiate cluster GeneralDiagnostics;
instantiate cluster LocalizationConfiguration;
instantiate cluster NetworkCommissioning;
instantiate cluster OperationalCredentials;
instantiate cluster PowerSource;
instantiate cluster PowerSourceConfiguration;
instantiate cluster SoftwareDiagnostics;
instantiate cluster ThreadNetworkDiagnostics;
instantiate cluster UserLabel;
instantiate cluster WiFiNetworkDiagnostics;
}

endpoint 1 {
instantiate cluster Descriptor;
instantiate cluster DoorLock;
instantiate cluster PowerSource;
}

26 changes: 26 additions & 0 deletions examples/lighting-app/lighting-common/lighting-app.matter
Original file line number Diff line number Diff line change
Expand Up @@ -1381,11 +1381,37 @@ server cluster WiFiNetworkDiagnostics = 54 {


endpoint 0 {
instantiate cluster AdministratorCommissioning;
instantiate cluster Basic;
instantiate cluster Descriptor;
instantiate cluster DiagnosticLogs;
instantiate cluster EthernetNetworkDiagnostics;
instantiate cluster FixedLabel;
instantiate cluster GeneralCommissioning;
instantiate cluster GeneralDiagnostics;
instantiate cluster LocalizationConfiguration;
instantiate cluster NetworkCommissioning;
instantiate cluster OtaSoftwareUpdateProvider;
instantiate cluster OtaSoftwareUpdateRequestor;
instantiate cluster OperationalCredentials;
instantiate cluster SoftwareDiagnostics;
instantiate cluster Switch;
instantiate cluster ThreadNetworkDiagnostics;
instantiate cluster UserLabel;
instantiate cluster WiFiNetworkDiagnostics;
}

endpoint 1 {
instantiate cluster ColorControl;
instantiate cluster Descriptor;
instantiate cluster Identify;
instantiate cluster LevelControl;
instantiate cluster OccupancySensing;
instantiate cluster OnOff;
}

endpoint 2 {
instantiate cluster OnOff;
instantiate cluster OnOffSwitchConfiguration;
}

20 changes: 20 additions & 0 deletions examples/lock-app/lock-common/lock-app.matter
Original file line number Diff line number Diff line change
Expand Up @@ -799,8 +799,28 @@ server cluster WiFiNetworkDiagnostics = 54 {


endpoint 0 {
instantiate cluster AdministratorCommissioning;
instantiate cluster Basic;
instantiate cluster Descriptor;
instantiate cluster DiagnosticLogs;
instantiate cluster EthernetNetworkDiagnostics;
instantiate cluster FixedLabel;
instantiate cluster GeneralCommissioning;
instantiate cluster GeneralDiagnostics;
instantiate cluster LocalizationConfiguration;
instantiate cluster NetworkCommissioning;
instantiate cluster OperationalCredentials;
instantiate cluster PowerSource;
instantiate cluster PowerSourceConfiguration;
instantiate cluster SoftwareDiagnostics;
instantiate cluster ThreadNetworkDiagnostics;
instantiate cluster UserLabel;
instantiate cluster WiFiNetworkDiagnostics;
}

endpoint 1 {
instantiate cluster Descriptor;
instantiate cluster OnOff;
instantiate cluster PowerSource;
}

Original file line number Diff line number Diff line change
Expand Up @@ -312,5 +312,10 @@ server cluster OperationalCredentials = 62 {


endpoint 0 {
instantiate cluster DiagnosticLogs;
instantiate cluster DiagnosticLogs;
instantiate cluster GeneralCommissioning;
instantiate cluster NetworkCommissioning;
instantiate cluster OperationalCredentials;
}

Original file line number Diff line number Diff line change
Expand Up @@ -356,5 +356,12 @@ server cluster UserLabel = 65 {


endpoint 0 {
instantiate cluster FixedLabel;
instantiate cluster GeneralCommissioning;
instantiate cluster LocalizationConfiguration;
instantiate cluster NetworkCommissioning;
instantiate cluster OtaSoftwareUpdateProvider;
instantiate cluster OperationalCredentials;
instantiate cluster UserLabel;
}

Original file line number Diff line number Diff line change
Expand Up @@ -467,5 +467,14 @@ server cluster UserLabel = 65 {


endpoint 0 {
instantiate cluster Basic;
instantiate cluster FixedLabel;
instantiate cluster GeneralCommissioning;
instantiate cluster LocalizationConfiguration;
instantiate cluster NetworkCommissioning;
instantiate cluster OtaSoftwareUpdateProvider;
instantiate cluster OtaSoftwareUpdateRequestor;
instantiate cluster OperationalCredentials;
instantiate cluster UserLabel;
}

14 changes: 14 additions & 0 deletions examples/placeholder/linux/apps/app1/config.matter
Original file line number Diff line number Diff line change
Expand Up @@ -710,8 +710,22 @@ server cluster TemperatureMeasurement = 1026 {


endpoint 0 {
instantiate cluster Basic;
instantiate cluster Descriptor;
instantiate cluster GeneralCommissioning;
instantiate cluster NetworkCommissioning;
instantiate cluster OperationalCredentials;
instantiate cluster TemperatureMeasurement;
instantiate cluster TemperatureMeasurement;
}

endpoint 1 {
instantiate cluster Basic;
instantiate cluster ColorControl;
instantiate cluster Groups;
instantiate cluster Identify;
instantiate cluster LevelControl;
instantiate cluster OnOff;
instantiate cluster Scenes;
}

14 changes: 14 additions & 0 deletions examples/placeholder/linux/apps/app2/config.matter
Original file line number Diff line number Diff line change
Expand Up @@ -710,8 +710,22 @@ server cluster TemperatureMeasurement = 1026 {


endpoint 0 {
instantiate cluster Basic;
instantiate cluster Descriptor;
instantiate cluster GeneralCommissioning;
instantiate cluster NetworkCommissioning;
instantiate cluster OperationalCredentials;
instantiate cluster TemperatureMeasurement;
instantiate cluster TemperatureMeasurement;
}

endpoint 1 {
instantiate cluster Basic;
instantiate cluster ColorControl;
instantiate cluster Groups;
instantiate cluster Identify;
instantiate cluster LevelControl;
instantiate cluster OnOff;
instantiate cluster Scenes;
}

23 changes: 23 additions & 0 deletions examples/pump-app/pump-common/pump-app.matter
Original file line number Diff line number Diff line change
Expand Up @@ -895,8 +895,31 @@ server cluster UserLabel = 65 {


endpoint 0 {
instantiate cluster AdministratorCommissioning;
instantiate cluster Basic;
instantiate cluster Descriptor;
instantiate cluster DiagnosticLogs;
instantiate cluster FixedLabel;
instantiate cluster GeneralCommissioning;
instantiate cluster GeneralDiagnostics;
instantiate cluster LocalizationConfiguration;
instantiate cluster NetworkCommissioning;
instantiate cluster OperationalCredentials;
instantiate cluster SoftwareDiagnostics;
instantiate cluster ThreadNetworkDiagnostics;
instantiate cluster UserLabel;
}

endpoint 1 {
instantiate cluster Descriptor;
instantiate cluster FlowMeasurement;
instantiate cluster FlowMeasurement;
instantiate cluster LevelControl;
instantiate cluster OnOff;
instantiate cluster PressureMeasurement;
instantiate cluster PressureMeasurement;
instantiate cluster PumpConfigurationAndControl;
instantiate cluster TemperatureMeasurement;
instantiate cluster TemperatureMeasurement;
}

Original file line number Diff line number Diff line change
Expand Up @@ -944,8 +944,30 @@ server cluster WiFiNetworkDiagnostics = 54 {


endpoint 0 {
instantiate cluster AdministratorCommissioning;
instantiate cluster Basic;
instantiate cluster Descriptor;
instantiate cluster DiagnosticLogs;
instantiate cluster EthernetNetworkDiagnostics;
instantiate cluster FixedLabel;
instantiate cluster GeneralCommissioning;
instantiate cluster GeneralDiagnostics;
instantiate cluster LevelControl;
instantiate cluster LocalizationConfiguration;
instantiate cluster NetworkCommissioning;
instantiate cluster OperationalCredentials;
instantiate cluster SoftwareDiagnostics;
instantiate cluster ThreadNetworkDiagnostics;
instantiate cluster UserLabel;
instantiate cluster WiFiNetworkDiagnostics;
}

endpoint 1 {
instantiate cluster Descriptor;
instantiate cluster FlowMeasurement;
instantiate cluster OnOff;
instantiate cluster PressureMeasurement;
instantiate cluster PumpConfigurationAndControl;
instantiate cluster TemperatureMeasurement;
}

Original file line number Diff line number Diff line change
Expand Up @@ -598,8 +598,24 @@ server cluster WiFiNetworkDiagnostics = 54 {


endpoint 0 {
instantiate cluster AdministratorCommissioning;
instantiate cluster Basic;
instantiate cluster Descriptor;
instantiate cluster DiagnosticLogs;
instantiate cluster EthernetNetworkDiagnostics;
instantiate cluster FixedLabel;
instantiate cluster GeneralCommissioning;
instantiate cluster GeneralDiagnostics;
instantiate cluster LocalizationConfiguration;
instantiate cluster NetworkCommissioning;
instantiate cluster OperationalCredentials;
instantiate cluster SoftwareDiagnostics;
instantiate cluster UserLabel;
instantiate cluster WiFiNetworkDiagnostics;
}

endpoint 1 {
instantiate cluster Descriptor;
instantiate cluster TemperatureMeasurement;
}

Loading

0 comments on commit d47ac4c

Please sign in to comment.