Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove deprecated RVC items #31451

Merged
merged 27 commits into from
Jan 29, 2024
Merged
Changes from 19 commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
3347533
Depricated the OnMode attribute for the RvcRunMode and RvcCleanMode c…
hicklin Jan 16, 2024
27b55bf
Depricated the OnOff feature for the RvcRunMode and RvcCleanMode clus…
hicklin Jan 16, 2024
28a3bea
Depricated the Start and Stop commands for the RvcOperationalState cl…
hicklin Jan 16, 2024
6d96609
Removed the depricated OnMode attributes from the attributeAccessInte…
hicklin Jan 16, 2024
63b3ee6
Removed the RvcOpState tests for the Start and stop command.
hicklin Jan 16, 2024
0088e84
regenerated zap code.
hicklin Jan 16, 2024
ac33a60
Restyled by prettier-json
restyled-commits Jan 16, 2024
af83ffb
Added back the feature map for the RvcClean and RvcRun mode clusters …
hicklin Jan 17, 2024
66a1d0f
Regenerated files.
hicklin Jan 17, 2024
8869972
Updated the all-clusters-app zap file.
hicklin Jan 17, 2024
3eaadf4
Regenerated the matter file for the all-clusters-app.
hicklin Jan 17, 2024
8fe32ae
Removed the setting of the OnOff feature in instances of RvcRunMode a…
hicklin Jan 17, 2024
7c5c6bc
Merge branch 'master' into remove_depricated_RVC_items
hicklin Jan 17, 2024
4ce890b
Merge branch 'master' into remove_depricated_RVC_items
hicklin Jan 22, 2024
98750a7
Regenerated zap files.
hicklin Jan 22, 2024
f768e20
Merge branch 'master' into remove_depricated_RVC_item and regenerated…
hicklin Jan 25, 2024
282567d
Merge branch 'master' into remove_depricated_RVC_items
hicklin Jan 25, 2024
7a05862
Restyled by clang-format
restyled-commits Jan 25, 2024
2f26b66
The Objects.py template adds a kInternalDoNotUseNone entry if a bitma…
hicklin Jan 25, 2024
856f906
Merge branch 'master' into remove_depricated_RVC_items
hicklin Jan 25, 2024
9175e75
Replaced the previous solution that fixed the issue in the generated …
hicklin Jan 26, 2024
1f20db4
Merge branch 'master' into remove_depricated_RVC_items
hicklin Jan 29, 2024
3603fa6
Used the new kNoFeatures feature instead of a locally declared constant.
hicklin Jan 29, 2024
d18bfcd
Readded a valve cluster attributed which was annoyingly removed by za…
hicklin Jan 29, 2024
d6e6db3
Restyled by clang-format
restyled-commits Jan 29, 2024
b226510
Regenerated zap files.
hicklin Jan 29, 2024
6a6d3df
Fixed missing namesapace call.
hicklin Jan 29, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -2929,7 +2929,6 @@ cluster RvcRunMode = 84 {
}

bitmap Feature : bitmap32 {
kOnOff = 0x1;
}

struct ModeTagStruct {
@@ -2945,7 +2944,6 @@ cluster RvcRunMode = 84 {

readonly attribute ModeOptionStruct supportedModes[] = 0;
readonly attribute int8u currentMode = 1;
attribute optional nullable int8u onMode = 3;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
@@ -2982,7 +2980,6 @@ cluster RvcCleanMode = 85 {
}

bitmap Feature : bitmap32 {
kOnOff = 0x1;
}

struct ModeTagStruct {
@@ -2998,7 +2995,6 @@ cluster RvcCleanMode = 85 {

readonly attribute ModeOptionStruct supportedModes[] = 0;
readonly attribute int8u currentMode = 1;
attribute optional nullable int8u onMode = 3;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
@@ -3480,10 +3476,6 @@ cluster RvcOperationalState = 97 {

/** Upon receipt, the device SHALL pause its operation if it is possible based on the current function of the server. */
command Pause(): OperationalCommandResponse = 0;
/** Upon receipt, the device SHALL stop its operation if it is at a position where it is safe to do so and/or permitted. */
command Stop(): OperationalCommandResponse = 1;
/** Upon receipt, the device SHALL start its operation if it is safe to do so and the device is in an operational state from which it can be started. */
command Start(): OperationalCommandResponse = 2;
/** Upon receipt, the device SHALL resume its operation from the point it was at when it received the Pause command, or from the point when it was paused by means outside of this cluster (for example by manual button press). */
command Resume(): OperationalCommandResponse = 3;
/** On receipt of this command, the device SHALL start seeking the charging dock, if possible in the current state of the device. */
@@ -7807,9 +7799,9 @@ endpoint 1 {
server cluster RvcRunMode {
callback attribute supportedModes;
callback attribute currentMode;
callback attribute onMode;
callback attribute generatedCommandList;
callback attribute acceptedCommandList;
callback attribute eventList;
callback attribute attributeList;
callback attribute featureMap;
ram attribute clusterRevision default = 2;
@@ -7821,9 +7813,9 @@ endpoint 1 {
server cluster RvcCleanMode {
callback attribute supportedModes;
callback attribute currentMode;
callback attribute onMode;
callback attribute generatedCommandList;
callback attribute acceptedCommandList;
callback attribute eventList;
callback attribute attributeList;
callback attribute featureMap;
ram attribute clusterRevision default = 2;
@@ -7971,6 +7963,7 @@ endpoint 1 {
callback attribute operationalError;
callback attribute generatedCommandList;
callback attribute acceptedCommandList;
callback attribute eventList;
callback attribute attributeList;
ram attribute featureMap default = 0;
ram attribute clusterRevision default = 1;
@@ -8076,7 +8069,6 @@ endpoint 1 {
ram attribute targetLevel;
persist attribute defaultOpenLevel default = 100;
ram attribute valveFault default = 0;
ram attribute levelStep default = 1;
callback attribute generatedCommandList;
callback attribute acceptedCommandList;
callback attribute eventList;
64 changes: 32 additions & 32 deletions examples/all-clusters-app/all-clusters-common/all-clusters-app.zap
Original file line number Diff line number Diff line change
@@ -9747,11 +9747,11 @@
"reportableChange": 0
},
{
"name": "OnMode",
"code": 3,
"name": "GeneratedCommandList",
"code": 65528,
"mfgCode": null,
"side": "server",
"type": "int8u",
"type": "array",
"included": 1,
"storageOption": "External",
"singleton": 0,
@@ -9763,8 +9763,8 @@
"reportableChange": 0
},
{
"name": "GeneratedCommandList",
"code": 65528,
"name": "AcceptedCommandList",
"code": 65529,
"mfgCode": null,
"side": "server",
"type": "array",
@@ -9779,16 +9779,16 @@
"reportableChange": 0
},
{
"name": "AcceptedCommandList",
"code": 65529,
"name": "EventList",
"code": 65530,
"mfgCode": null,
"side": "server",
"type": "array",
"included": 1,
"storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": null,
"defaultValue": "",
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
@@ -9903,11 +9903,11 @@
"reportableChange": 0
},
{
"name": "OnMode",
"code": 3,
"name": "GeneratedCommandList",
"code": 65528,
"mfgCode": null,
"side": "server",
"type": "int8u",
"type": "array",
"included": 1,
"storageOption": "External",
"singleton": 0,
@@ -9919,8 +9919,8 @@
"reportableChange": 0
},
{
"name": "GeneratedCommandList",
"code": 65528,
"name": "AcceptedCommandList",
"code": 65529,
"mfgCode": null,
"side": "server",
"type": "array",
@@ -9935,16 +9935,16 @@
"reportableChange": 0
},
{
"name": "AcceptedCommandList",
"code": 65529,
"name": "EventList",
"code": 65530,
"mfgCode": null,
"side": "server",
"type": "array",
"included": 1,
"storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": null,
"defaultValue": "",
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
@@ -11630,6 +11630,22 @@
"maxInterval": 65534,
"reportableChange": 0
},
{
"name": "EventList",
"code": 65530,
"mfgCode": null,
"side": "server",
"type": "array",
"included": 1,
"storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "",
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
"reportableChange": 0
},
{
"name": "AttributeList",
"code": 65531,
@@ -12544,22 +12560,6 @@
"maxInterval": 65534,
"reportableChange": 0
},
{
"name": "LevelStep",
"code": 10,
"mfgCode": null,
"side": "server",
"type": "int8u",
"included": 1,
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "1",
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
"reportableChange": 0
},
{
"name": "GeneratedCommandList",
"code": 65528,
Original file line number Diff line number Diff line change
@@ -26,6 +26,8 @@ template <typename T>
using List = chip::app::DataModel::List<T>;
using ModeTagStructType = chip::app::Clusters::detail::Structs::ModeTagStruct::Type;

const uint32_t NO_FEATURES = 0;

// RVC Run

static RvcRunModeDelegate * gRvcRunModeDelegate = nullptr;
@@ -112,7 +114,7 @@ void emberAfRvcRunModeClusterInitCallback(chip::EndpointId endpointId)
VerifyOrDie(endpointId == 1); // this cluster is only enabled for endpoint 1.
VerifyOrDie(gRvcRunModeDelegate == nullptr && gRvcRunModeInstance == nullptr);
gRvcRunModeDelegate = new RvcRunMode::RvcRunModeDelegate;
gRvcRunModeInstance = new ModeBase::Instance(gRvcRunModeDelegate, 0x1, RvcRunMode::Id, 0);
gRvcRunModeInstance = new ModeBase::Instance(gRvcRunModeDelegate, 0x1, RvcRunMode::Id, NO_FEATURES);
gRvcRunModeInstance->Init();
}

@@ -201,6 +203,6 @@ void emberAfRvcCleanModeClusterInitCallback(chip::EndpointId endpointId)
VerifyOrDie(endpointId == 1); // this cluster is only enabled for endpoint 1.
VerifyOrDie(gRvcCleanModeDelegate == nullptr && gRvcCleanModeInstance == nullptr);
gRvcCleanModeDelegate = new RvcCleanMode::RvcCleanModeDelegate;
gRvcCleanModeInstance = new ModeBase::Instance(gRvcCleanModeDelegate, 0x1, RvcCleanMode::Id, 0);
gRvcCleanModeInstance = new ModeBase::Instance(gRvcCleanModeDelegate, 0x1, RvcCleanMode::Id, NO_FEATURES);
gRvcCleanModeInstance->Init();
}
Original file line number Diff line number Diff line change
@@ -1020,7 +1020,6 @@ cluster RvcRunMode = 84 {
}

bitmap Feature : bitmap32 {
kOnOff = 0x1;
}

struct ModeTagStruct {
@@ -1036,7 +1035,6 @@ cluster RvcRunMode = 84 {

readonly attribute ModeOptionStruct supportedModes[] = 0;
readonly attribute int8u currentMode = 1;
attribute optional nullable int8u onMode = 3;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
@@ -1073,7 +1071,6 @@ cluster RvcCleanMode = 85 {
}

bitmap Feature : bitmap32 {
kOnOff = 0x1;
}

struct ModeTagStruct {
@@ -1089,7 +1086,6 @@ cluster RvcCleanMode = 85 {

readonly attribute ModeOptionStruct supportedModes[] = 0;
readonly attribute int8u currentMode = 1;
attribute optional nullable int8u onMode = 3;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
@@ -1172,10 +1168,6 @@ cluster RvcOperationalState = 97 {

/** Upon receipt, the device SHALL pause its operation if it is possible based on the current function of the server. */
command Pause(): OperationalCommandResponse = 0;
/** Upon receipt, the device SHALL stop its operation if it is at a position where it is safe to do so and/or permitted. */
command Stop(): OperationalCommandResponse = 1;
/** Upon receipt, the device SHALL start its operation if it is safe to do so and the device is in an operational state from which it can be started. */
command Start(): OperationalCommandResponse = 2;
/** Upon receipt, the device SHALL resume its operation from the point it was at when it received the Pause command, or from the point when it was paused by means outside of this cluster (for example by manual button press). */
command Resume(): OperationalCommandResponse = 3;
/** On receipt of this command, the device SHALL start seeking the charging dock, if possible in the current state of the device. */
@@ -1410,7 +1402,6 @@ endpoint 1 {
server cluster RvcRunMode {
callback attribute supportedModes;
callback attribute currentMode;
callback attribute onMode;
callback attribute generatedCommandList;
callback attribute acceptedCommandList;
callback attribute eventList;
@@ -1425,7 +1416,6 @@ endpoint 1 {
server cluster RvcCleanMode {
callback attribute supportedModes;
callback attribute currentMode;
callback attribute onMode;
callback attribute generatedCommandList;
callback attribute acceptedCommandList;
callback attribute eventList;
@@ -1454,8 +1444,6 @@ endpoint 1 {
ram attribute clusterRevision default = 1;

handle command Pause;
handle command Stop;
handle command Start;
handle command Resume;
handle command OperationalCommandResponse;
}
8 changes: 0 additions & 8 deletions examples/rvc-app/rvc-common/rvc-app.matter
Original file line number Diff line number Diff line change
@@ -943,7 +943,6 @@ cluster RvcRunMode = 84 {
}

bitmap Feature : bitmap32 {
kOnOff = 0x1;
}

struct ModeTagStruct {
@@ -959,7 +958,6 @@ cluster RvcRunMode = 84 {

readonly attribute ModeOptionStruct supportedModes[] = 0;
readonly attribute int8u currentMode = 1;
attribute optional nullable int8u onMode = 3;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
@@ -996,7 +994,6 @@ cluster RvcCleanMode = 85 {
}

bitmap Feature : bitmap32 {
kOnOff = 0x1;
}

struct ModeTagStruct {
@@ -1012,7 +1009,6 @@ cluster RvcCleanMode = 85 {

readonly attribute ModeOptionStruct supportedModes[] = 0;
readonly attribute int8u currentMode = 1;
attribute optional nullable int8u onMode = 3;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
@@ -1095,10 +1091,6 @@ cluster RvcOperationalState = 97 {

/** Upon receipt, the device SHALL pause its operation if it is possible based on the current function of the server. */
command Pause(): OperationalCommandResponse = 0;
/** Upon receipt, the device SHALL stop its operation if it is at a position where it is safe to do so and/or permitted. */
command Stop(): OperationalCommandResponse = 1;
/** Upon receipt, the device SHALL start its operation if it is safe to do so and the device is in an operational state from which it can be started. */
command Start(): OperationalCommandResponse = 2;
/** Upon receipt, the device SHALL resume its operation from the point it was at when it received the Pause command, or from the point when it was paused by means outside of this cluster (for example by manual button press). */
command Resume(): OperationalCommandResponse = 3;
/** On receipt of this command, the device SHALL start seeking the charging dock, if possible in the current state of the device. */
10 changes: 0 additions & 10 deletions src/app/tests/suites/TestRVCOperationalState.yaml
Original file line number Diff line number Diff line change
@@ -73,11 +73,6 @@ tests:
response:
value: 0

- label: "Start Command"
command: "Start"
response:
error: UNSUPPORTED_COMMAND

- label: "Read current Operational State"
command: "readAttribute"
attribute: "OperationalState"
@@ -110,11 +105,6 @@ tests:
response:
value: 0

- label: "Stop Command"
command: "Stop"
response:
error: UNSUPPORTED_COMMAND

- label: "Read current Operational State"
command: "readAttribute"
attribute: "OperationalState"
Original file line number Diff line number Diff line change
@@ -90,8 +90,8 @@ This is because zap does not currently support generating code for clusters that
<!-- <cluster code="0x..."/>-->
<cluster code="0x0051"/> <!-- Laundry Washer Mode -->
<cluster code="0x0052"/> <!-- Refrigerator and temperature controlled cabinet Mode -->
<cluster code="0x0054"/> <!-- RVC Run Mode -->
<cluster code="0x0055"/> <!-- RVC Clean Mode -->
<!-- <cluster code="0x0054"/> RVC Run Mode. This feature map is implemented in rvc-run-mode-cluster.xml -->
<!-- <cluster code="0x0055"/> RVC Clean Mode. This feature map is implemented in rvc-clean-mode-cluster.xml -->
<cluster code="0x0059"/> <!-- Dishwasher Mode -->
<cluster code="0x005E"/> <!-- Microwave Oven Mode -->
<cluster code="0x0049"/> <!-- Oven Mode -->
Loading