Skip to content

Commit

Permalink
Update .matter to contain information about enabled commands per en…
Browse files Browse the repository at this point in the history
…dpoint cluster. (#29686)

* Add support for parsing "handle command" entries in matter files

* Make codegen show commands that are handled for each endpoints

---------

Co-authored-by: Andrei Litvin <andreilitvin@google.com>
  • Loading branch information
2 people authored and pull[bot] committed Oct 21, 2023
1 parent 46a74bf commit 3465285
Show file tree
Hide file tree
Showing 75 changed files with 5,662 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1818,6 +1818,8 @@ endpoint 0 {
ram attribute updateStateProgress default = 0;
ram attribute featureMap default = 0;
ram attribute clusterRevision default = 1;

handle command AnnounceOTAProvider;
}

server cluster GeneralCommissioning {
Expand All @@ -1828,6 +1830,13 @@ endpoint 0 {
callback attribute supportsConcurrentConnection default = 1;
ram attribute featureMap default = 6;
ram attribute clusterRevision default = 1;

handle command ArmFailSafe;
handle command ArmFailSafeResponse;
handle command SetRegulatoryConfig;
handle command SetRegulatoryConfigResponse;
handle command CommissioningComplete;
handle command CommissioningCompleteResponse;
}

server cluster NetworkCommissioning {
Expand All @@ -1841,6 +1850,16 @@ endpoint 0 {
ram attribute lastConnectErrorValue;
ram attribute featureMap default = 2;
ram attribute clusterRevision default = 1;

handle command ScanNetworks;
handle command ScanNetworksResponse;
handle command AddOrUpdateWiFiNetwork;
handle command AddOrUpdateThreadNetwork;
handle command RemoveNetwork;
handle command NetworkConfigResponse;
handle command ConnectNetwork;
handle command ConnectNetworkResponse;
handle command ReorderNetwork;
}

server cluster GeneralDiagnostics {
Expand All @@ -1856,6 +1875,8 @@ endpoint 0 {
callback attribute testEventTriggersEnabled default = false;
ram attribute featureMap default = 0;
ram attribute clusterRevision default = 1;

handle command TestEventTrigger;
}

server cluster SoftwareDiagnostics {
Expand All @@ -1865,6 +1886,8 @@ endpoint 0 {
callback attribute currentHeapHighWatermark default = 0x0000000000000000;
callback attribute featureMap default = 1;
ram attribute clusterRevision default = 1;

handle command ResetWatermarks;
}

server cluster ThreadNetworkDiagnostics {
Expand Down Expand Up @@ -1933,6 +1956,8 @@ endpoint 0 {
callback attribute activeNetworkFaultsList;
ram attribute featureMap default = 0x000F;
ram attribute clusterRevision default = 1;

handle command ResetCounts;
}

server cluster WiFiNetworkDiagnostics {
Expand All @@ -1954,6 +1979,8 @@ endpoint 0 {
callback attribute overrunCount default = 0x0000000000000000;
ram attribute featureMap default = 3;
ram attribute clusterRevision default = 1;

handle command ResetCounts;
}

server cluster EthernetNetworkDiagnostics {
Expand All @@ -1968,6 +1995,8 @@ endpoint 0 {
callback attribute timeSinceReset default = 0x0000000000000000;
ram attribute featureMap default = 3;
ram attribute clusterRevision default = 1;

handle command ResetCounts;
}

server cluster AdministratorCommissioning {
Expand All @@ -1976,6 +2005,10 @@ endpoint 0 {
callback attribute adminVendorId default = 0;
ram attribute featureMap default = 0;
ram attribute clusterRevision default = 1;

handle command OpenCommissioningWindow;
handle command OpenBasicCommissioningWindow;
handle command RevokeCommissioning;
}

server cluster OperationalCredentials {
Expand All @@ -1987,6 +2020,19 @@ endpoint 0 {
callback attribute currentFabricIndex;
ram attribute featureMap default = 0;
ram attribute clusterRevision default = 1;

handle command AttestationRequest;
handle command AttestationResponse;
handle command CertificateChainRequest;
handle command CertificateChainResponse;
handle command CSRRequest;
handle command CSRResponse;
handle command AddNOC;
handle command UpdateNOC;
handle command NOCResponse;
handle command UpdateFabricLabel;
handle command RemoveFabric;
handle command AddTrustedRootCertificate;
}

server cluster GroupKeyManagement {
Expand All @@ -1996,6 +2042,13 @@ endpoint 0 {
callback attribute maxGroupKeysPerFabric;
callback attribute featureMap default = 0;
callback attribute clusterRevision default = 1;

handle command KeySetWrite;
handle command KeySetRead;
handle command KeySetReadResponse;
handle command KeySetRemove;
handle command KeySetReadAllIndices;
handle command KeySetReadAllIndicesResponse;
}
}
endpoint 1 {
Expand All @@ -2011,6 +2064,8 @@ endpoint 1 {
callback attribute attributeList;
ram attribute featureMap default = 0;
ram attribute clusterRevision default = 4;

handle command Identify;
}

server cluster AirQuality {
Expand Down
Loading

0 comments on commit 3465285

Please sign in to comment.