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

Generate .matter IDL to contain global structures #34545

Merged
merged 16 commits into from
Jul 26, 2024

Conversation

andy31415
Copy link
Contributor

Adds global structure support in matter IDL. Parsing for these was already done in #34515

Copy link

semanticdiff-com bot commented Jul 26, 2024

Review changes with SemanticDiff.

Analyzed 2 of 94 files.

File Information
Filename Status
src/controller/data_model/controller-clusters.matter Unsupported file format
✔️ src/app/zap-templates/matter-idl-client.json Analyzed
✔️ src/app/zap-templates/matter-idl-server.json Analyzed
src/app/zap-templates/templates/app/MatterIDL_Client.zapt Unsupported file format
src/app/zap-templates/templates/app/MatterIDL_Server.zapt Unsupported file format
src/app/zap-templates/partials/idl/global_types.zapt Unsupported file format
src/app/zap-templates/partials/idl/structure_definition.zapt Unsupported file format
scripts/py_matter_idl/matter_idl/generators/idl/MatterIdl.jinja Unsupported file format
examples/window-app/common/window-app.matter Unsupported file format
examples/virtual-device-app/virtual-device-common/virtual-device-app.matter Unsupported file format
examples/tv-casting-app/tv-casting-common/tv-casting-app.matter Unsupported file format
examples/tv-app/tv-common/tv-app.matter Unsupported file format
examples/thermostat/thermostat-common/thermostat.matter Unsupported file format
examples/thermostat/qpg/zap/thermostaticRadiatorValve.matter Unsupported file format
examples/thermostat/nxp/zap/thermostat_matter_thread.matter Unsupported file format
examples/thermostat/nxp/zap/thermostat_matter_wifi.matter Unsupported file format
examples/temperature-measurement-app/temperature-measurement-common/temperature-measurement.matter Unsupported file format
examples/smoke-co-alarm-app/smoke-co-alarm-common/smoke-co-alarm-app.matter Unsupported file format
examples/rvc-app/rvc-common/rvc-app.matter Unsupported file format
examples/refrigerator-app/refrigerator-common/refrigerator-app.matter Unsupported file format
examples/pump-controller-app/pump-controller-common/pump-controller-app.matter Unsupported file format
examples/pump-app/silabs/data_model/pump-thread-app.matter Unsupported file format
examples/pump-app/silabs/data_model/pump-wifi-app.matter Unsupported file format
examples/pump-app/pump-common/pump-app.matter Unsupported file format
examples/placeholder/linux/apps/app2/config.matter Unsupported file format
examples/placeholder/linux/apps/app1/config.matter Unsupported file format
examples/ota-requestor-app/ota-requestor-common/ota-requestor-app.matter Unsupported file format
examples/ota-provider-app/ota-provider-common/ota-provider-app.matter Unsupported file format
examples/network-manager-app/network-manager-common/network-manager-app.matter Unsupported file format
examples/microwave-oven-app/microwave-oven-common/microwave-oven-app.matter Unsupported file format
examples/log-source-app/log-source-common/log-source-app.matter Unsupported file format
examples/lock-app/qpg/zap/lock.matter Unsupported file format
examples/lock-app/nxp/zap/lock-app.matter Unsupported file format
examples/lock-app/lock-common/lock-app.matter Unsupported file format
examples/lit-icd-app/lit-icd-common/lit-icd-server-app.matter Unsupported file format
examples/lighting-app/silabs/data_model/lighting-thread-app.matter Unsupported file format
examples/lighting-app/silabs/data_model/lighting-wifi-app.matter Unsupported file format
examples/lighting-app/qpg/zap/light.matter Unsupported file format
examples/lighting-app/nxp/zap/lighting-on-off.matter Unsupported file format
examples/lighting-app/lighting-common/lighting-app.matter Unsupported file format
examples/lighting-app/bouffalolab/data_model/lighting-app-ethernet.matter Unsupported file format
examples/lighting-app/bouffalolab/data_model/lighting-app-thread.matter Unsupported file format
examples/lighting-app/bouffalolab/data_model/lighting-app-wifi.matter Unsupported file format
examples/light-switch-app/qpg/zap/switch.matter Unsupported file format
examples/light-switch-app/light-switch-common/light-switch-app.matter Unsupported file format
examples/laundry-washer-app/nxp/zap/laundry-washer-app.matter Unsupported file format
examples/fabric-bridge-app/fabric-bridge-common/fabric-bridge-app.matter Unsupported file format
examples/energy-management-app/energy-management-common/energy-management-app.matter Unsupported file format
examples/dishwasher-app/dishwasher-common/dishwasher-app.matter Unsupported file format
examples/contact-sensor-app/nxp/zap-sit/contact-sensor-app.matter Unsupported file format
examples/contact-sensor-app/nxp/zap-lit/contact-sensor-app.matter Unsupported file format
examples/contact-sensor-app/contact-sensor-common/contact-sensor-app.matter Unsupported file format
examples/chef/devices/noip_rootnode_dimmablelight_bCwGYSDpoe.matter Unsupported file format
examples/chef/devices/rootnode_airpurifier_73a6fe2651.matter Unsupported file format
examples/chef/devices/rootnode_airpurifier_airqualitysensor_temperaturesensor_humiditysensor_thermostat_56de3d5f45.matter Unsupported file format
examples/chef/devices/rootnode_airqualitysensor_e63187f6c9.matter Unsupported file format
examples/chef/devices/rootnode_basicvideoplayer_0ff86e943b.matter Unsupported file format
examples/chef/devices/rootnode_colortemperaturelight_hbUnzYVeyn.matter Unsupported file format
examples/chef/devices/rootnode_contactsensor_27f76aeaf5.matter Unsupported file format
examples/chef/devices/rootnode_contactsensor_lFAGG1bfRO.matter Unsupported file format
examples/chef/devices/rootnode_dimmablelight_bCwGYSDpoe.matter Unsupported file format
examples/chef/devices/rootnode_dimmablepluginunit_f8a9a0b9d4.matter Unsupported file format
examples/chef/devices/rootnode_dishwasher_cc105034fe.matter Unsupported file format
examples/chef/devices/rootnode_doorlock_aNKYAreMXE.matter Unsupported file format
examples/chef/devices/rootnode_extendedcolorlight_8lcaaYJVAa.matter Unsupported file format
examples/chef/devices/rootnode_fan_7N2TobIlOX.matter Unsupported file format
examples/chef/devices/rootnode_flowsensor_1zVxHedlaV.matter Unsupported file format
examples/chef/devices/rootnode_genericswitch_2dfff6e516.matter Unsupported file format
examples/chef/devices/rootnode_genericswitch_9866e35d0b.matter Unsupported file format
examples/chef/devices/rootnode_heatingcoolingunit_ncdGai1E5a.matter Unsupported file format
examples/chef/devices/rootnode_humiditysensor_Xyj4gda6Hb.matter Unsupported file format
examples/chef/devices/rootnode_laundrywasher_fb10d238c8.matter Unsupported file format
examples/chef/devices/rootnode_lightsensor_lZQycTFcJK.matter Unsupported file format
examples/chef/devices/rootnode_occupancysensor_iHyVgifZuo.matter Unsupported file format
examples/chef/devices/rootnode_onofflight_bbs1b7IaOV.matter Unsupported file format
examples/chef/devices/rootnode_onofflight_samplemei.matter Unsupported file format
examples/chef/devices/rootnode_onofflightswitch_FsPlMr090Q.matter Unsupported file format
examples/chef/devices/rootnode_onoffpluginunit_Wtf8ss5EBY.matter Unsupported file format
examples/chef/devices/rootnode_pressuresensor_s0qC9wLH4k.matter Unsupported file format
examples/chef/devices/rootnode_pump_5f904818cc.matter Unsupported file format
examples/chef/devices/rootnode_pump_a811bb33a0.matter Unsupported file format
examples/chef/devices/rootnode_refrigerator_temperaturecontrolledcabinet_temperaturecontrolledcabinet_ffdb696680.matter Unsupported file format
examples/chef/devices/rootnode_roboticvacuumcleaner_1807ff0c49.matter Unsupported file format
examples/chef/devices/rootnode_roomairconditioner_9cf3607804.matter Unsupported file format
examples/chef/devices/rootnode_smokecoalarm_686fe0dcb8.matter Unsupported file format
examples/chef/devices/rootnode_speaker_RpzeXdimqA.matter Unsupported file format
examples/chef/devices/rootnode_temperaturesensor_Qy1zkNW7c3.matter Unsupported file format
examples/chef/devices/rootnode_thermostat_bm3fb8dhYi.matter Unsupported file format
examples/chef/devices/rootnode_windowcovering_RLCxaGi9Yx.matter Unsupported file format
examples/bridge-app/bridge-common/bridge-app.matter Unsupported file format
examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.matter Unsupported file format
examples/all-clusters-app/all-clusters-common/all-clusters-app.matter Unsupported file format
examples/air-quality-sensor-app/air-quality-sensor-common/air-quality-sensor-app.matter Unsupported file format
examples/air-purifier-app/air-purifier-common/air-purifier-app.matter Unsupported file format

Copy link

github-actions bot commented Jul 26, 2024

PR #34545: Size comparison from 55786a0 to b0882bb

Full report (85 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, mbed, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
platform target config section 55786a0 b0882bb change % change
bl602 lighting-app bl602 FLASH 1274146 1274146 0 0.0
RAM 95424 95424 0 0.0
bl602+mfd FLASH 1288404 1288404 0 0.0
RAM 95568 95568 0 0.0
bl602+rpc FLASH 1313114 1313114 0 0.0
RAM 103848 103848 0 0.0
bl702 lighting-app bl702 FLASH 1095040 1095040 0 0.0
RAM 15245 15245 0 0.0
bl702+mfd FLASH 1105734 1105734 0 0.0
RAM 15397 15397 0 0.0
bl702+rpc FLASH 1185106 1185106 0 0.0
RAM 24245 24245 0 0.0
bl706-eth FLASH 878084 878084 0 0.0
RAM 27348 27348 0 0.0
bl706-wifi FLASH 1130780 1130780 0 0.0
RAM 14681 14681 0 0.0
bl702l lighting-app bl702l FLASH 1081938 1081938 0 0.0
RAM 21800 21800 0 0.0
bl702l+mfd FLASH 1093200 1093200 0 0.0
RAM 21960 21960 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 800212 800212 0 0.0
RAM 109276 109276 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 816684 816684 0 0.0
RAM 117020 117020 0 0.0
lock-mtd LP_EM_CC1354P10_6 FLASH 808652 808652 0 0.0
RAM 111308 111308 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 762416 762416 0 0.0
RAM 105448 105448 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 747068 747068 0 0.0
RAM 105632 105632 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 606670 606670 0 0.0
RAM 204564 204564 0 0.0
lock CC3235SF_LAUNCHXL FLASH 652210 652210 0 0.0
RAM 204836 204836 0 0.0
cyw30739 light CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 669281 669281 0 0.0
RAM 77740 77740 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 689141 689141 0 0.0
RAM 80380 80380 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 689141 689141 0 0.0
RAM 80380 80380 0 0.0
CYW930739M2EVB-02 unknown 2040 2040 0 0.0
FLASH 646077 646077 0 0.0
RAM 72808 72808 0 0.0
light-switch CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 609737 609737 0 0.0
RAM 70884 70884 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 629365 629365 0 0.0
RAM 73428 73428 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 629365 629365 0 0.0
RAM 73428 73428 0 0.0
lock CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 625433 625433 0 0.0
RAM 73900 73900 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 645141 645141 0 0.0
RAM 76444 76444 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 645141 645141 0 0.0
RAM 76444 76444 0 0.0
thermostat CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 593661 593661 0 0.0
RAM 67852 67852 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 613513 613513 0 0.0
RAM 70492 70492 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 613513 613513 0 0.0
RAM 70492 70492 0 0.0
efr32 lighting-app BRD4187C FLASH 927248 927240 -8 -0.0
RAM 134568 134568 0 0.0
lock-app BRD4338a FLASH 734684 734676 -8 -0.0
RAM 208004 208004 0 0.0
window-app BRD4187C FLASH 1014772 1014772 0 0.0
RAM 126648 126648 0 0.0
esp32 all-clusters-app c3devkit DRAM 91028 91028 0 0.0
FLASH 1482400 1482400 0 0.0
IRAM 75570 75570 0 0.0
m5stack DRAM 117500 117500 0 0.0
FLASH 1551663 1551663 0 0.0
IRAM 125403 125403 0 0.0
linux air-purifier-app debug unknown 4632 4632 0 0.0
FLASH 2710575 2710575 0 0.0
RAM 125200 125200 0 0.0
all-clusters-app debug unknown 5416 5416 0 0.0
FLASH 5902334 5902334 0 0.0
RAM 499608 499608 0 0.0
all-clusters-minimal-app debug unknown 5312 5312 0 0.0
FLASH 5306932 5306932 0 0.0
RAM 235920 235920 0 0.0
bridge-app debug unknown 5296 5296 0 0.0
FLASH 4707164 4707164 0 0.0
RAM 214048 214048 0 0.0
chip-tool debug unknown 5784 5784 0 0.0
FLASH 12336940 12336940 0 0.0
RAM 553458 553458 0 0.0
chip-tool-ipv6only arm64 unknown 20192 20192 0 0.0
FLASH 11035964 11035964 0 0.0
RAM 603176 603176 0 0.0
fabric-admin debug unknown 5672 5672 0 0.0
FLASH 11343039 11343039 0 0.0
RAM 550298 550298 0 0.0
fabric-bridge-app debug unknown 4568 4568 0 0.0
FLASH 4463202 4463202 0 0.0
RAM 199248 199248 0 0.0
lighting-app debug+rpc+ui unknown 5968 5968 0 0.0
FLASH 5631521 5631521 0 0.0
RAM 224464 224464 0 0.0
lock-app debug unknown 5232 5232 0 0.0
FLASH 4757958 4757958 0 0.0
RAM 200704 200704 0 0.0
ota-provider-app debug unknown 4608 4608 0 0.0
FLASH 4402420 4402420 0 0.0
RAM 194880 194880 0 0.0
ota-requestor-app debug unknown 4544 4544 0 0.0
FLASH 4540568 4540568 0 0.0
RAM 199416 199416 0 0.0
shell debug unknown 4176 4176 0 0.0
FLASH 2991645 2991645 0 0.0
RAM 154088 154088 0 0.0
thermostat-no-ble arm64 unknown 9208 9208 0 0.0
FLASH 4259844 4259844 0 0.0
RAM 236360 236360 0 0.0
tv-app debug unknown 5504 5504 0 0.0
FLASH 5983421 5983421 0 0.0
RAM 578144 578144 0 0.0
tv-casting-app debug unknown 5168 5168 0 0.0
FLASH 10549533 10549533 0 0.0
RAM 638984 638984 0 0.0
mbed lock-app-release cy8cproto_062_4343w FLASH 1503444 1503444 0 0.0
RAM 226720 226720 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 897260 897260 0 0.0
RAM 141609 141609 0 0.0
nrf7002dk_nrf5340_cpuapp FLASH 962860 962860 0 0.0
RAM 140713 140713 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 FLASH 832644 832644 0 0.0
RAM 140464 140464 0 0.0
nxp contact k32w0+release FLASH 576100 576100 0 0.0
RAM 70104 70104 0 0.0
k32w1+release FLASH 591808 591808 0 0.0
RAM 74144 74144 0 0.0
light k32w0+release FLASH 611696 611696 0 0.0
RAM 69608 69608 0 0.0
k32w1+release FLASH 676528 676528 0 0.0
RAM 82912 82912 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1622980 1622980 0 0.0
RAM 209776 209776 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1533444 1533444 0 0.0
RAM 206584 206584 0 0.0
light cy8ckit_062s2_43012 FLASH 1460468 1460468 0 0.0
RAM 199848 199848 0 0.0
lock cy8ckit_062s2_43012 FLASH 1459668 1459668 0 0.0
RAM 224328 224328 0 0.0
qpg lighting-app qpg6105+debug FLASH 653084 653084 0 0.0
RAM 104680 104680 0 0.0
lock-app qpg6105+debug FLASH 612288 612288 0 0.0
RAM 99320 99320 0 0.0
stm32 light STM32WB5MM-DK FLASH 475408 475408 0 0.0
RAM 144300 144300 0 0.0
telink air-quality-sensor-app tlsr9528a_retention FLASH 619026 619026 0 0.0
RAM 50660 50660 0 0.0
all-clusters-app tlsr9118bdk40d FLASH 669320 669320 0 0.0
RAM 147940 147940 0 0.0
all-clusters-minimal-app tlsr9528a FLASH 765338 765338 0 0.0
RAM 110136 110136 0 0.0
bridge-app tlsr9258a FLASH 677604 677604 0 0.0
RAM 91316 91316 0 0.0
contact-sensor-app tlsr9528a_retention FLASH 620618 620618 0 0.0
RAM 50704 50704 0 0.0
light-switch-app-ota-shell-factory-data tlsr9528a FLASH 706462 706462 0 0.0
RAM 74032 74032 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 617384 617384 0 0.0
RAM 144124 144124 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 803464 803464 0 0.0
RAM 99052 99052 0 0.0
lock-app-dfu tlsr9528a FLASH 652396 652396 0 0.0
RAM 66736 66736 0 0.0
ota-requestor-app tlsr9258a FLASH 695640 695640 0 0.0
RAM 91000 91000 0 0.0
pump-app-usb tlsr9518adk80d FLASH 629972 629972 0 0.0
RAM 55480 55480 0 0.0
pump-controller-app tlsr9518adk80d FLASH 607574 607574 0 0.0
RAM 52724 52724 0 0.0
shell tlsr9518adk80d FLASH 466654 466654 0 0.0
RAM 68412 68412 0 0.0
smoke_co_alarm-app tlsr9528a_retention FLASH 627232 627232 0 0.0
RAM 52332 52332 0 0.0
temperature-measurement-app-mars-ota tlsr9518adk80d FLASH 651396 651396 0 0.0
RAM 56360 56360 0 0.0
thermostat tlsr9518adk80d FLASH 626282 626282 0 0.0
RAM 53048 53048 0 0.0
window-covering tlsr9118bdk40d FLASH 521442 521442 0 0.0
RAM 97256 97256 0 0.0
tizen all-clusters-app arm unknown 1588 1588 0 0.0
FLASH 1669056 1669056 0 0.0
RAM 48924 48924 0 0.0
chip-tool-ubsan arm unknown 2388 2388 0 0.0
FLASH 16381678 16381678 0 0.0
RAM 7190408 7190408 0 0.0

@mergify mergify bot merged commit a25f191 into project-chip:master Jul 26, 2024
70 checks passed
j-ororke pushed a commit to j-ororke/connectedhomeip that referenced this pull request Jul 31, 2024
* Starting a template implementation

* Move file to propper location

* Start adding some global types in codegen

* Fix indent

* Undo large changes and fix spacing

* zap regen

* Prepare to remove the extra Bitmap types

* Different style workaround

* Fix the condition ending to make it work

* zap regen

* Undo file change

* Undo file change

* Matter IDL indent is a bit better

* Fighting with zap/handlebars intend... this is terrible

* zap-regen

* Self code review cleanup

---------

Co-authored-by: Andrei Litvin <[email protected]>
rochaferraz pushed a commit to rochaferraz/connectedhomeip that referenced this pull request Jul 31, 2024
* Starting a template implementation

* Move file to propper location

* Start adding some global types in codegen

* Fix indent

* Undo large changes and fix spacing

* zap regen

* Prepare to remove the extra Bitmap types

* Different style workaround

* Fix the condition ending to make it work

* zap regen

* Undo file change

* Undo file change

* Matter IDL indent is a bit better

* Fighting with zap/handlebars intend... this is terrible

* zap-regen

* Self code review cleanup

---------

Co-authored-by: Andrei Litvin <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants