Skip to content

Commit

Permalink
Add lit-icd light-switch zap file
Browse files Browse the repository at this point in the history
  • Loading branch information
mkardous-silabs committed Oct 23, 2024
1 parent 21c86db commit 0b9d3a5
Show file tree
Hide file tree
Showing 5 changed files with 9,071 additions and 183 deletions.
7 changes: 6 additions & 1 deletion examples/light-switch-app/light-switch-common/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,13 @@

import("//build_overrides/chip.gni")
import("${chip_root}/src/app/chip_data_model.gni")
import("${chip_root}/src/app/icd/icd.gni")

chip_data_model("light-switch-common") {
zap_file = "light-switch-app.zap"
if (chip_enable_icd_lit) {
zap_file = "lit-icd-light-switch-app.zap"
} else {
zap_file = "light-switch-app.zap"
}
is_server = true
}
Original file line number Diff line number Diff line change
Expand Up @@ -3131,21 +3131,8 @@ endpoint 0 {
callback attribute idleModeDuration;
callback attribute activeModeDuration;
callback attribute activeModeThreshold;
callback attribute registeredClients;
callback attribute ICDCounter;
callback attribute clientsSupportedPerFabric;
ram attribute userActiveModeTriggerHint default = 0x1115;
ram attribute userActiveModeTriggerInstruction default = "Power Cycle";
ram attribute operatingMode default = 0;
callback attribute maximumCheckInBackOff;
ram attribute featureMap default = 15;
ram attribute featureMap default = 0x0000;
ram attribute clusterRevision default = 3;

handle command RegisterClient;
handle command RegisterClientResponse;
handle command UnregisterClient;
handle command StayActiveRequest;
handle command StayActiveResponse;
}
}
endpoint 1 {
Expand Down
176 changes: 8 additions & 168 deletions examples/light-switch-app/light-switch-common/light-switch-app.zap
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"fileFormat": 2,
"featureLevel": 104,
"featureLevel": 103,
"creator": "zap",
"keyValuePairs": [
{
Expand Down Expand Up @@ -41,16 +41,14 @@
"code": 22,
"profileId": 259,
"label": "MA-rootdevice",
"name": "MA-rootdevice",
"deviceTypeOrder": 0
"name": "MA-rootdevice"
},
"deviceTypes": [
{
"code": 22,
"profileId": 259,
"label": "MA-rootdevice",
"name": "MA-rootdevice",
"deviceTypeOrder": 0
"name": "MA-rootdevice"
}
],
"deviceVersions": [
Expand Down Expand Up @@ -4315,48 +4313,6 @@
"define": "ICD_MANAGEMENT_CLUSTER",
"side": "server",
"enabled": 1,
"commands": [
{
"name": "RegisterClient",
"code": 0,
"mfgCode": null,
"source": "client",
"isIncoming": 1,
"isEnabled": 1
},
{
"name": "RegisterClientResponse",
"code": 1,
"mfgCode": null,
"source": "server",
"isIncoming": 0,
"isEnabled": 1
},
{
"name": "UnregisterClient",
"code": 2,
"mfgCode": null,
"source": "client",
"isIncoming": 1,
"isEnabled": 1
},
{
"name": "StayActiveRequest",
"code": 3,
"mfgCode": null,
"source": "client",
"isIncoming": 1,
"isEnabled": 1
},
{
"name": "StayActiveResponse",
"code": 4,
"mfgCode": null,
"source": "server",
"isIncoming": 0,
"isEnabled": 1
}
],
"attributes": [
{
"name": "IdleModeDuration",
Expand Down Expand Up @@ -4406,118 +4362,6 @@
"maxInterval": 65534,
"reportableChange": 0
},
{
"name": "RegisteredClients",
"code": 3,
"mfgCode": null,
"side": "server",
"type": "array",
"included": 1,
"storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": null,
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
"reportableChange": 0
},
{
"name": "ICDCounter",
"code": 4,
"mfgCode": null,
"side": "server",
"type": "int32u",
"included": 1,
"storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": null,
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
"reportableChange": 0
},
{
"name": "ClientsSupportedPerFabric",
"code": 5,
"mfgCode": null,
"side": "server",
"type": "int16u",
"included": 1,
"storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": null,
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
"reportableChange": 0
},
{
"name": "UserActiveModeTriggerHint",
"code": 6,
"mfgCode": null,
"side": "server",
"type": "UserActiveModeTriggerBitmap",
"included": 1,
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "0x1115",
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
"reportableChange": 0
},
{
"name": "UserActiveModeTriggerInstruction",
"code": 7,
"mfgCode": null,
"side": "server",
"type": "char_string",
"included": 1,
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "Power Cycle",
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
"reportableChange": 0
},
{
"name": "OperatingMode",
"code": 8,
"mfgCode": null,
"side": "server",
"type": "OperatingModeEnum",
"included": 1,
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "0",
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
"reportableChange": 0
},
{
"name": "MaximumCheckInBackOff",
"code": 9,
"mfgCode": null,
"side": "server",
"type": "int32u",
"included": 1,
"storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": null,
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
"reportableChange": 0
},
{
"name": "FeatureMap",
"code": 65532,
Expand All @@ -4528,7 +4372,7 @@
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "15",
"defaultValue": "0x0000",
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
Expand Down Expand Up @@ -4561,16 +4405,14 @@
"code": 259,
"profileId": 259,
"label": "MA-onofflightswitch",
"name": "MA-onofflightswitch",
"deviceTypeOrder": 0
"name": "MA-onofflightswitch"
},
"deviceTypes": [
{
"code": 259,
"profileId": 259,
"label": "MA-onofflightswitch",
"name": "MA-onofflightswitch",
"deviceTypeOrder": 0
"name": "MA-onofflightswitch"
}
],
"deviceVersions": [
Expand Down Expand Up @@ -5333,16 +5175,14 @@
"code": 15,
"profileId": 259,
"label": "MA-genericswitch",
"name": "MA-genericswitch",
"deviceTypeOrder": 0
"name": "MA-genericswitch"
},
"deviceTypes": [
{
"code": 15,
"profileId": 259,
"label": "MA-genericswitch",
"name": "MA-genericswitch",
"deviceTypeOrder": 0
"name": "MA-genericswitch"
}
],
"deviceVersions": [
Expand Down
Loading

0 comments on commit 0b9d3a5

Please sign in to comment.