Skip to content

Commit

Permalink
Add missing clusters and attributes to simulated app (#16461)
Browse files Browse the repository at this point in the history
* Add missing clusters and attributes to simulated device app.

* Generated code.
  • Loading branch information
krypton36 authored and pull[bot] committed Apr 1, 2022
1 parent fddb564 commit 1639396
Show file tree
Hide file tree
Showing 21 changed files with 3,259 additions and 373 deletions.
5 changes: 4 additions & 1 deletion examples/placeholder/linux/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ config("includes") {
}

executable("chip-${chip_tests_zap_config}") {
sources = [ "main.cpp" ]
sources = [
"main.cpp",
"static-supported-modes-manager.cpp",
]

deps = [
":configuration",
Expand Down
184 changes: 184 additions & 0 deletions examples/placeholder/linux/apps/app1/config.matter
Original file line number Diff line number Diff line change
Expand Up @@ -1009,6 +1009,56 @@ server cluster LevelControl = 8 {
command StopWithOnOff(): DefaultSuccess = 7;
}

client cluster ModeSelect = 80 {
struct ModeOptionStruct {
CHAR_STRING<32> label = 0;
INT8U mode = 1;
INT32U semanticTag = 2;
}

readonly attribute int8u currentMode = 0;
readonly attribute ModeOptionStruct supportedModes[] = 1;
attribute int8u onMode = 2;
readonly attribute int8u startUpMode = 3;
readonly attribute char_string<32> description = 4;
readonly global attribute command_id generatedCommandList[] = 65528;
readonly global attribute command_id acceptedCommandList[] = 65529;
readonly global attribute attrib_id attributeList[] = 65531;
readonly global attribute bitmap32 featureMap = 65532;
readonly global attribute int16u clusterRevision = 65533;

request struct ChangeToModeRequest {
INT8U newMode = 0;
}

command ChangeToMode(ChangeToModeRequest): DefaultSuccess = 0;
}

server cluster ModeSelect = 80 {
struct ModeOptionStruct {
CHAR_STRING<32> label = 0;
INT8U mode = 1;
INT32U semanticTag = 2;
}

readonly attribute int8u currentMode = 0;
readonly attribute ModeOptionStruct supportedModes[] = 1;
attribute int8u onMode = 2;
readonly attribute int8u startUpMode = 3;
readonly attribute char_string<32> description = 4;
readonly global attribute command_id generatedCommandList[] = 65528;
readonly global attribute command_id acceptedCommandList[] = 65529;
readonly global attribute attrib_id attributeList[] = 65531;
readonly global attribute bitmap32 featureMap = 65532;
readonly global attribute int16u clusterRevision = 65533;

request struct ChangeToModeRequest {
INT8U newMode = 0;
}

command ChangeToMode(ChangeToModeRequest): DefaultSuccess = 0;
}

server cluster NetworkCommissioning = 49 {
enum NetworkCommissioningStatus : ENUM8 {
kSuccess = 0;
Expand Down Expand Up @@ -1528,6 +1578,28 @@ server cluster PumpConfigurationAndControl = 512 {
readonly global attribute int16u clusterRevision = 65533;
}

client cluster RelativeHumidityMeasurement = 1029 {
readonly attribute int16u measuredValue = 0;
readonly attribute int16u minMeasuredValue = 1;
readonly attribute int16u maxMeasuredValue = 2;
readonly attribute int16u tolerance = 3;
readonly global attribute command_id generatedCommandList[] = 65528;
readonly global attribute command_id acceptedCommandList[] = 65529;
readonly global attribute attrib_id attributeList[] = 65531;
readonly global attribute bitmap32 featureMap = 65532;
}

server cluster RelativeHumidityMeasurement = 1029 {
readonly attribute int16u measuredValue = 0;
readonly attribute int16u minMeasuredValue = 1;
readonly attribute int16u maxMeasuredValue = 2;
readonly attribute int16u tolerance = 3;
readonly global attribute command_id generatedCommandList[] = 65528;
readonly global attribute command_id acceptedCommandList[] = 65529;
readonly global attribute attrib_id attributeList[] = 65531;
readonly global attribute bitmap32 featureMap = 65532;
}

server cluster Scenes = 5 {
bitmap ScenesCopyMode : BITMAP8 {
kCopyAllScenes = 0x1;
Expand Down Expand Up @@ -1632,6 +1704,88 @@ server cluster Scenes = 5 {
command ViewScene(ViewSceneRequest): ViewSceneResponse = 1;
}

client cluster Switch = 59 {
info event SwitchLatched = 0 {
INT8U newPosition = 0;
}

info event InitialPress = 1 {
INT8U newPosition = 0;
}

info event LongPress = 2 {
INT8U newPosition = 0;
}

info event ShortRelease = 3 {
INT8U previousPosition = 0;
}

info event LongRelease = 4 {
INT8U previousPosition = 0;
}

info event MultiPressOngoing = 5 {
INT8U newPosition = 0;
INT8U currentNumberOfPressesCounted = 1;
}

info event MultiPressComplete = 6 {
INT8U newPosition = 0;
INT8U totalNumberOfPressesCounted = 1;
}

readonly attribute int8u numberOfPositions = 0;
readonly attribute int8u currentPosition = 1;
readonly attribute int8u multiPressMax = 2;
readonly global attribute command_id generatedCommandList[] = 65528;
readonly global attribute command_id acceptedCommandList[] = 65529;
readonly global attribute attrib_id attributeList[] = 65531;
readonly global attribute bitmap32 featureMap = 65532;
readonly global attribute int16u clusterRevision = 65533;
}

server cluster Switch = 59 {
info event SwitchLatched = 0 {
INT8U newPosition = 0;
}

info event InitialPress = 1 {
INT8U newPosition = 0;
}

info event LongPress = 2 {
INT8U newPosition = 0;
}

info event ShortRelease = 3 {
INT8U previousPosition = 0;
}

info event LongRelease = 4 {
INT8U previousPosition = 0;
}

info event MultiPressOngoing = 5 {
INT8U newPosition = 0;
INT8U currentNumberOfPressesCounted = 1;
}

info event MultiPressComplete = 6 {
INT8U newPosition = 0;
INT8U totalNumberOfPressesCounted = 1;
}

readonly attribute int8u numberOfPositions = 0;
readonly attribute int8u currentPosition = 1;
readonly attribute int8u multiPressMax = 2;
readonly global attribute command_id generatedCommandList[] = 65528;
readonly global attribute command_id acceptedCommandList[] = 65529;
readonly global attribute attrib_id attributeList[] = 65531;
readonly global attribute bitmap32 featureMap = 65532;
readonly global attribute int16u clusterRevision = 65533;
}

client cluster TargetNavigator = 1285 {
enum StatusEnum : ENUM8 {
kSuccess = 0;
Expand Down Expand Up @@ -1787,6 +1941,28 @@ server cluster Thermostat = 513 {
readonly global attribute int16u clusterRevision = 65533;
}

client cluster ThermostatUserInterfaceConfiguration = 516 {
attribute enum8 temperatureDisplayMode = 0;
attribute enum8 keypadLockout = 1;
attribute enum8 scheduleProgrammingVisibility = 2;
readonly global attribute command_id generatedCommandList[] = 65528;
readonly global attribute command_id acceptedCommandList[] = 65529;
readonly global attribute attrib_id attributeList[] = 65531;
readonly global attribute bitmap32 featureMap = 65532;
readonly global attribute int16u clusterRevision = 65533;
}

server cluster ThermostatUserInterfaceConfiguration = 516 {
attribute enum8 temperatureDisplayMode = 0;
attribute enum8 keypadLockout = 1;
attribute enum8 scheduleProgrammingVisibility = 2;
readonly global attribute command_id generatedCommandList[] = 65528;
readonly global attribute command_id acceptedCommandList[] = 65529;
readonly global attribute attrib_id attributeList[] = 65531;
readonly global attribute bitmap32 featureMap = 65532;
readonly global attribute int16u clusterRevision = 65533;
}

server cluster WindowCovering = 258 {
bitmap WcConfigStatus : BITMAP8 {
kOperational = 0x1;
Expand Down Expand Up @@ -1895,17 +2071,25 @@ endpoint 0 {
server cluster GeneralDiagnostics;
binding cluster KeypadInput;
server cluster KeypadInput;
binding cluster ModeSelect;
server cluster ModeSelect;
server cluster NetworkCommissioning;
binding cluster OnOff;
server cluster OnOff;
binding cluster OperationalCredentials;
server cluster OperationalCredentials;
server cluster PumpConfigurationAndControl;
binding cluster RelativeHumidityMeasurement;
server cluster RelativeHumidityMeasurement;
binding cluster Switch;
server cluster Switch;
binding cluster TargetNavigator;
server cluster TargetNavigator;
binding cluster TemperatureMeasurement;
server cluster TemperatureMeasurement;
server cluster Thermostat;
binding cluster ThermostatUserInterfaceConfiguration;
server cluster ThermostatUserInterfaceConfiguration;
server cluster WindowCovering;
}

Expand Down
Loading

0 comments on commit 1639396

Please sign in to comment.