diff --git a/.github/workflows/examples-efr32.yaml b/.github/workflows/examples-efr32.yaml
index 8c2da30d946b36..13c8ba38c9bc81 100644
--- a/.github/workflows/examples-efr32.yaml
+++ b/.github/workflows/examples-efr32.yaml
@@ -15,102 +15,121 @@
name: Build example - EFR32
on:
- push:
- pull_request:
+ push:
+ pull_request:
concurrency:
- group: ${{ github.ref }}-${{ github.workflow }}-${{ (github.event_name == 'pull_request' && github.event.number) || (github.event_name == 'workflow_dispatch' && github.run_number) || github.sha }}
- cancel-in-progress: true
+ group: ${{ github.ref }}-${{ github.workflow }}-${{ (github.event_name == 'pull_request' && github.event.number) || (github.event_name == 'workflow_dispatch' && github.run_number) || github.sha }}
+ cancel-in-progress: true
jobs:
- efr32:
- name: EFR32
- timeout-minutes: 60
+ efr32:
+ name: EFR32
+ timeout-minutes: 60
- env:
- EFR32_BOARD: BRD4161A
- BUILD_TYPE: gn_efr32
+ env:
+ EFR32_BOARD: BRD4161A
+ BUILD_TYPE: gn_efr32
+
+ runs-on: ubuntu-latest
+ if: github.actor != 'restyled-io[bot]'
+
+ container:
+ image: connectedhomeip/chip-build-efr32:0.5.79
+ volumes:
+ - "/tmp/bloat_reports:/tmp/bloat_reports"
+ steps:
+ - uses: Wandalen/wretry.action@v1.0.15
+ name: Checkout
+ with:
+ action: actions/checkout@v3
+ with: |
+ token: ${{ github.token }}
+ attempt_limit: 3
+ attempt_delay: 2000
+ - name: Checkout submodules
+ run: scripts/checkout_submodules.py --shallow --platform efr32
- runs-on: ubuntu-latest
- if: github.actor != 'restyled-io[bot]'
+ - name: Install git-lfs # Temporary measure untill docker container is updated
+ run:
+ "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash; \
+ apt-get install git-lfs; \
+ git lfs install;"
- container:
- image: connectedhomeip/chip-build-efr32:0.5.79
- volumes:
- - "/tmp/bloat_reports:/tmp/bloat_reports"
- steps:
- - uses: Wandalen/wretry.action@v1.0.15
- name: Checkout
- with:
- action: actions/checkout@v3
- with: |
- token: ${{ github.token }}
- attempt_limit: 3
- attempt_delay: 2000
- - name: Checkout submodules
- run: scripts/checkout_submodules.py --shallow --platform efr32
+ - name: Create LFS file hash list
+ run: git -C third_party/silabs/gecko_sdk lfs ls-files -l | cut -d' ' -f1 | sort > .lfs-assets-id
- - name: Set up environment for size reports
- if: ${{ !env.ACT }}
- env:
- GH_CONTEXT: ${{ toJson(github) }}
- run: scripts/tools/memory/gh_sizes_environment.py "${GH_CONTEXT}"
+ - name: Restore gecko_sdk LFS cache
+ uses: actions/cache@v2
+ id: lfs-cache
+ with:
+ path: .git/modules/third_party/silabs/gecko_sdk/lfs
+ key: lfs-${{ hashFiles('.lfs-assets-id') }}
+
+ - name: Git LFS Pull
+ run: git -C third_party/silabs/gecko_sdk lfs pull
+
+ - name: Set up environment for size reports
+ if: ${{ !env.ACT }}
+ env:
+ GH_CONTEXT: ${{ toJson(github) }}
+ run: scripts/tools/memory/gh_sizes_environment.py "${GH_CONTEXT}"
- - name: Bootstrap
- timeout-minutes: 25
- run: scripts/build/gn_bootstrap.sh
- - name: Uploading bootstrap logs
- uses: actions/upload-artifact@v2
- if: ${{ always() }} && ${{ !env.ACT }}
- with:
- name: bootstrap-logs
- path: |
- .environment/gn_out/.ninja_log
- .environment/pigweed-venv/*.log
+ - name: Bootstrap
+ timeout-minutes: 25
+ run: scripts/build/gn_bootstrap.sh
+ - name: Uploading bootstrap logs
+ uses: actions/upload-artifact@v2
+ if: ${{ always() }} && ${{ !env.ACT }}
+ with:
+ name: bootstrap-logs
+ path: |
+ .environment/gn_out/.ninja_log
+ .environment/pigweed-venv/*.log
- - name: Build some BRD4161A variants
- timeout-minutes: 50
- run: |
- ./scripts/run_in_build_env.sh \
- "./scripts/build/build_examples.py \
- --enable-flashbundle \
- --target-glob '*-brd4161a-{lock,light,switch,window-covering,unit-test}' \
- build \
- --copy-artifacts-to out/artifacts \
- "
- - name: Prepare some bloat report from the previous builds
- run: |
- .environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
- efr32 BRD4161A lighting-app \
- out/efr32-brd4161a-light/chip-efr32-lighting-example.out \
- /tmp/bloat_reports/
- .environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
- efr32 BRD4161A window-app \
- out/efr32-brd4161a-window-covering/chip-efr32-window-example.out \
- /tmp/bloat_reports/
- - name: Build example EFR32 Lighting App for BRD4161A with RPCs
- timeout-minutes: 10
- run: |
- scripts/examples/gn_efr32_example.sh examples/lighting-app/efr32/ out/lighting_app_debug_rpc BRD4161A \
- 'import("//with_pw_rpc.gni")'
- .environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py efr32 BRD4161A+rpc lighting-app \
- out/lighting_app_debug_rpc/BRD4161A/chip-efr32-lighting-example.out /tmp/bloat_reports/
- - name: Build example EFR32+WF200 WiFi Lock app for BRD4161A
- timeout-minutes: 10
- run: |
- scripts/examples/gn_efr32_example.sh examples/lock-app/efr32/ out/lock_app_wifi_wf200 BRD4161A is_debug=false --wifi wf200
- .environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py efr32 BRD4161A+wf200 lock-app \
- out/lock_app_wifi_wf200/BRD4161A/chip-efr32-lock-example.out /tmp/bloat_reports/
- - name: Build example EFR32+RS911x WiFi Lighting app for BRD4161A
- timeout-minutes: 10
- run: |
- scripts/examples/gn_efr32_example.sh examples/lighting-app/efr32/ out/lighting_app_wifi_rs911x BRD4161A --wifi rs911x
- .environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py efr32 BRD4161A+rs911x lighting-app \
- out/lighting_app_wifi_rs911x/BRD4161A/chip-efr32-lighting-example.out /tmp/bloat_reports/
- - name: Uploading Size Reports
- uses: actions/upload-artifact@v2
- if: ${{ !env.ACT }}
- with:
- name: Size,EFR32-Examples,${{ env.GH_EVENT_PR }},${{ env.GH_EVENT_HASH }},${{ env.GH_EVENT_PARENT }},${{ github.event_name }}
- path: |
- /tmp/bloat_reports/
+ - name: Build some BRD4161A variants
+ timeout-minutes: 50
+ run: |
+ ./scripts/run_in_build_env.sh \
+ "./scripts/build/build_examples.py \
+ --enable-flashbundle \
+ --target-glob '*-brd4161a-{lock,light,switch,window-covering,unit-test}' \
+ build \
+ --copy-artifacts-to out/artifacts \
+ "
+ - name: Prepare some bloat report from the previous builds
+ run: |
+ .environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
+ efr32 BRD4161A lighting-app \
+ out/efr32-brd4161a-light/chip-efr32-lighting-example.out \
+ /tmp/bloat_reports/
+ .environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
+ efr32 BRD4161A window-app \
+ out/efr32-brd4161a-window-covering/chip-efr32-window-example.out \
+ /tmp/bloat_reports/
+ - name: Build example EFR32 Lighting App for BRD4161A with RPCs
+ timeout-minutes: 10
+ run: |
+ scripts/examples/gn_efr32_example.sh examples/lighting-app/efr32/ out/lighting_app_debug_rpc BRD4161A \
+ 'import("//with_pw_rpc.gni")'
+ .environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py efr32 BRD4161A+rpc lighting-app \
+ out/lighting_app_debug_rpc/BRD4161A/chip-efr32-lighting-example.out /tmp/bloat_reports/
+ - name: Build example EFR32+WF200 WiFi Lock app for BRD4161A
+ timeout-minutes: 10
+ run: |
+ scripts/examples/gn_efr32_example.sh examples/lock-app/efr32/ out/lock_app_wifi_wf200 BRD4161A is_debug=false --wifi wf200
+ .environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py efr32 BRD4161A+wf200 lock-app \
+ out/lock_app_wifi_wf200/BRD4161A/chip-efr32-lock-example.out /tmp/bloat_reports/
+ - name: Build example EFR32+RS911x WiFi Lighting app for BRD4161A
+ timeout-minutes: 10
+ run: |
+ scripts/examples/gn_efr32_example.sh examples/lighting-app/efr32/ out/lighting_app_wifi_rs911x BRD4161A --wifi rs911x
+ .environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py efr32 BRD4161A+rs911x lighting-app \
+ out/lighting_app_wifi_rs911x/BRD4161A/chip-efr32-lighting-example.out /tmp/bloat_reports/
+ - name: Uploading Size Reports
+ uses: actions/upload-artifact@v2
+ if: ${{ !env.ACT }}
+ with:
+ name: Size,EFR32-Examples,${{ env.GH_EVENT_PR }},${{ env.GH_EVENT_HASH }},${{ env.GH_EVENT_PARENT }},${{ github.event_name }}
+ path: |
+ /tmp/bloat_reports/
diff --git a/.gitmodules b/.gitmodules
index 0682becb54cfce..51153d1ee5cd62 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -63,11 +63,6 @@
url = https://github.com/FreeRTOS/FreeRTOS-Kernel.git
branch = V10.3.1-kernel-only
platforms = ameba,cc13x2_26x2,bl602,efr32,esp32,k32w0,p6,qpg
-[submodule "efr32_sdk"]
- path = third_party/efr32_sdk/repo
- url = https://github.com/SiliconLabs/sdk_support.git
- branch = master
- platforms = efr32
[submodule "simw-top-mini"]
path = third_party/simw-top-mini/repo
url = https://github.com/NXP/plug-and-trust.git
@@ -237,10 +232,6 @@
url = https://github.com/TexasInstruments/cc13xx_cc26xx_sdk.git
branch = main
platforms = cc13x2_26x2
-[submodule "third_party/efr32_sdk/wiseconnect-wifi-bt-sdk"]
- path = third_party/efr32_sdk/wiseconnect-wifi-bt-sdk
- url = https://github.com/SiliconLabs/wiseconnect-wifi-bt-sdk
- platforms = efr32
[submodule "third_party/bouffalolab/bl602"]
path = third_party/bouffalolab/bl602_sdk/repo
url = https://github.com/bouffalolab/bl_iot_sdk_matter.git
@@ -251,3 +242,18 @@
url = https://github.com/NXPmicro/mbedtls.git
branch = tinycrypt-mbedtls-2.28
platforms = k32w0
+[submodule "third_party/silabs/matter_support"]
+ path = third_party/silabs/matter_support
+ url = https://github.com/SiliconLabs/sdk_support.git
+ branch = main
+ platforms = efr32
+[submodule "third_party/silabs/gecko_sdk"]
+ path = third_party/silabs/gecko_sdk
+ url = https://github.com/SiliconLabs/gecko_sdk.git
+ branch = gsdk_4.1
+ platforms = efr32
+[submodule "third_party/silabs/wiseconnect-wifi-bt-sdk"]
+ path = third_party/silabs/wiseconnect-wifi-bt-sdk
+ url = https://github.com/SiliconLabs/wiseconnect-wifi-bt-sdk.git
+ branch = master
+ platforms = efr32
diff --git a/build_overrides/efr32_sdk.gni b/build_overrides/efr32_sdk.gni
index dda4d4d2735d4b..4a7344b4c7ebed 100644
--- a/build_overrides/efr32_sdk.gni
+++ b/build_overrides/efr32_sdk.gni
@@ -14,5 +14,5 @@
declare_args() {
# Root directory for efr32 SDK build files.
- efr32_sdk_build_root = "//third_party/efr32_sdk"
+ efr32_sdk_build_root = "//third_party/silabs"
}
diff --git a/examples/build_overrides/efr32_sdk.gni b/examples/build_overrides/efr32_sdk.gni
index bd96dcbd8855b4..d5a35449d9ffd0 100644
--- a/examples/build_overrides/efr32_sdk.gni
+++ b/examples/build_overrides/efr32_sdk.gni
@@ -14,5 +14,5 @@
declare_args() {
# Root directory for erf32 SDK.
- efr32_sdk_build_root = "//third_party/connectedhomeip/third_party/efr32_sdk"
+ efr32_sdk_build_root = "//third_party/connectedhomeip/third_party/silabs"
}
diff --git a/examples/light-switch-app/efr32/BUILD.gn b/examples/light-switch-app/efr32/BUILD.gn
index 402faaeca9a70c..7d870ecd737eb0 100644
--- a/examples/light-switch-app/efr32/BUILD.gn
+++ b/examples/light-switch-app/efr32/BUILD.gn
@@ -89,7 +89,7 @@ if (efr32_board == "BRD4166A" || efr32_board == "BRD4180A") {
# WiFi settings
if (chip_enable_wifi) {
- wifi_sdk_dir = "${chip_root}/third_party/efr32_sdk/repo/matter/wifi"
+ wifi_sdk_dir = "${chip_root}/third_party/silabs/matter_support/matter/wifi"
efr32_lwip_defs = [ "LWIP_NETIF_API=1" ]
efr32_lwip_defs += [
"LWIP_IPV4=1",
@@ -102,7 +102,7 @@ if (chip_enable_wifi) {
if (use_rs911x) {
wiseconnect_sdk_root =
- "${chip_root}/third_party/efr32_sdk/wiseconnect-wifi-bt-sdk"
+ "${chip_root}/third_party/silabs/wiseconnect-wifi-bt-sdk"
import("${wifi_sdk_dir}/rs911x/rs911x.gni")
} else {
import("${wifi_sdk_dir}/wf200/wf200.gni")
diff --git a/examples/lighting-app/efr32/BUILD.gn b/examples/lighting-app/efr32/BUILD.gn
index 341582d0287321..192833797494b2 100644
--- a/examples/lighting-app/efr32/BUILD.gn
+++ b/examples/lighting-app/efr32/BUILD.gn
@@ -89,7 +89,7 @@ if (efr32_board == "BRD4166A" || efr32_board == "BRD4180A") {
# WiFi settings
if (chip_enable_wifi) {
- wifi_sdk_dir = "${chip_root}/third_party/efr32_sdk/repo/matter/wifi"
+ wifi_sdk_dir = "${chip_root}/third_party/silabs/matter_support/matter/wifi"
efr32_lwip_defs = [ "LWIP_NETIF_API=1" ]
efr32_lwip_defs += [
"LWIP_IPV4=1",
@@ -102,7 +102,7 @@ if (chip_enable_wifi) {
if (use_rs911x) {
wiseconnect_sdk_root =
- "${chip_root}/third_party/efr32_sdk/wiseconnect-wifi-bt-sdk"
+ "${chip_root}/third_party/silabs/wiseconnect-wifi-bt-sdk"
import("${wifi_sdk_dir}/rs911x/rs911x.gni")
} else {
import("${wifi_sdk_dir}/wf200/wf200.gni")
diff --git a/examples/lock-app/efr32/BUILD.gn b/examples/lock-app/efr32/BUILD.gn
index 50ebd01f436152..679ed1f46cda3d 100644
--- a/examples/lock-app/efr32/BUILD.gn
+++ b/examples/lock-app/efr32/BUILD.gn
@@ -89,7 +89,7 @@ if (efr32_board == "BRD4166A" || efr32_board == "BRD4180A") {
# WiFi settings
if (chip_enable_wifi) {
- wifi_sdk_dir = "${chip_root}/third_party/efr32_sdk/repo/matter/wifi"
+ wifi_sdk_dir = "${chip_root}/third_party/silabs/matter_support/matter/wifi"
efr32_lwip_defs = [ "LWIP_NETIF_API=1" ]
efr32_lwip_defs += [
"LWIP_IPV4=1",
@@ -102,7 +102,7 @@ if (chip_enable_wifi) {
if (use_rs911x) {
wiseconnect_sdk_root =
- "${chip_root}/third_party/efr32_sdk/wiseconnect-wifi-bt-sdk"
+ "${chip_root}/third_party/silabs/wiseconnect-wifi-bt-sdk"
import("${wifi_sdk_dir}/rs911x/rs911x.gni")
} else {
import("${wifi_sdk_dir}/wf200/wf200.gni")
diff --git a/examples/platform/efr32/ldscripts/efr32mg12.ld b/examples/platform/efr32/ldscripts/efr32mg12.ld
index 0851b5ffdf6a60..042f5f50a2a430 100644
--- a/examples/platform/efr32/ldscripts/efr32mg12.ld
+++ b/examples/platform/efr32/ldscripts/efr32mg12.ld
@@ -17,10 +17,9 @@
*/
/***************************************************************************//**
* Linker script for Silicon Labs EFR32MG12P devices
- * @version 5.7.2
*******************************************************************************
* # License
- * Copyright 2018 Silicon Laboratories Inc. www.silabs.com
+ * Copyright 2022 Silicon Laboratories Inc. www.silabs.com
*******************************************************************************
*
* SPDX-License-Identifier: Zlib
@@ -45,6 +44,7 @@
*
******************************************************************************/
+
MEMORY
{
FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 1048576
@@ -81,8 +81,6 @@ MEMORY
* __StackLimit
* __StackTop
* __stack
- * __Vectors_End
- * __Vectors_Size
*/
ENTRY(Reset_Handler)
@@ -91,21 +89,12 @@ SECTIONS
.text :
{
KEEP(*(.vectors))
- __Vectors_End = .;
- __Vectors_Size = __Vectors_End - __Vectors;
- __end__ = .;
*(.text*)
KEEP(*(.init))
KEEP(*(.fini))
- KEEP(*(.application_properties))
- KEEP(*(.gecko_configuration))
- KEEP(*(.xo_configuration))
- KEEP(*(.gatt_header))
- KEEP(*(.gatt_data))
-
/* .ctors */
*crtbegin.o(.ctors)
*crtbegin?.o(.ctors)
@@ -122,11 +111,9 @@ SECTIONS
*(.rodata*)
-
KEEP(*(.eh_frame*))
} > FLASH
-
.ARM.extab :
{
*(.ARM.extab* .gnu.linkonce.armextab.*)
@@ -139,44 +126,26 @@ SECTIONS
} > FLASH
__exidx_end = .;
-
-
- /* To copy multiple ROM to RAM sections,
- * uncomment .copy.table section and,
- * define __STARTUP_COPY_MULTIPLE in startup_ARMCMx.S */
- /*
.copy.table :
{
. = ALIGN(4);
__copy_table_start__ = .;
+
LONG (__etext)
LONG (__data_start__)
- LONG (__data_end__ - __data_start__)
- LONG (__etext2)
- LONG (__data2_start__)
- LONG (__data2_end__ - __data2_start__)
+ LONG ((__data_end__ - __data_start__) / 4)
+
__copy_table_end__ = .;
} > FLASH
- */
- /* To clear multiple BSS sections,
- * uncomment .zero.table section and,
- * define __STARTUP_CLEAR_BSS_MULTIPLE in startup_ARMCMx.S */
- /*
.zero.table :
{
. = ALIGN(4);
__zero_table_start__ = .;
- LONG (__bss_start__)
- LONG (__bss_end__ - __bss_start__)
- LONG (__bss2_start__)
- LONG (__bss2_end__ - __bss2_start__)
__zero_table_end__ = .;
} > FLASH
- */
-
- __etext = .;
+ __etext = ALIGN (4);
.data : AT (__etext)
{
@@ -219,13 +188,14 @@ SECTIONS
{
. = ALIGN(4);
__bss_start__ = .;
- *(.bss*)
+ *(.bss)
+ *(.bss.*)
*(COMMON)
. = ALIGN(4);
__bss_end__ = .;
} > RAM
- .heap (COPY):
+ .heap (COPY) :
{
__HeapBase = .;
__end__ = .;
@@ -240,7 +210,7 @@ SECTIONS
/* .stack_dummy section doesn't contains any symbols. It is only
* used for linker to calculate size of stack sections, and assign
* values to stack symbols later */
- .stack_dummy (COPY):
+ .stack_dummy (COPY):
{
KEEP(*(.stack*))
} > RAM
diff --git a/examples/platform/efr32/ldscripts/efr32mg24.ld b/examples/platform/efr32/ldscripts/efr32mg24.ld
index 7b19dbea1bc03f..cac2b08a2b1371 100644
--- a/examples/platform/efr32/ldscripts/efr32mg24.ld
+++ b/examples/platform/efr32/ldscripts/efr32mg24.ld
@@ -16,11 +16,14 @@
* limitations under the License.
*/
/***************************************************************************//**
- * @file
+ * @file gcc_EFR32MG24.ld
+ * @brief GNU Linker Script for Cortex-M based device
+ * @version V2.2.0
+ * @date 16. December 2020
* Linker script for Silicon Labs EFR32MG24 devices
*******************************************************************************
* # License
- * Copyright 2021 Silicon Laboratories, Inc. www.silabs.com
+ * Copyright 2022 Silicon Laboratories, Inc. www.silabs.com
*******************************************************************************
*
* SPDX-License-Identifier: Zlib
@@ -45,11 +48,11 @@
*
******************************************************************************/
- MEMORY
- {
- FLASH (rx) : ORIGIN = 0x8006000, LENGTH = 0x178000
- RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 0x40000
- }
+MEMORY
+{
+ FLASH (rx) : ORIGIN = 0x08006000, LENGTH = 0x178000
+ RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 0x40000
+}
/* Linker script to place sections and symbol values. Should be used together
* with other linker script that defines memory regions FLASH and RAM.
@@ -76,14 +79,13 @@
* __bss_end__
* __end__
* end
- * __HeapBase
* __HeapLimit
* __StackLimit
* __StackTop
* __stack
- * __Vectors_End
- * __Vectors_Size
+ * __StackSeal (only if ARMv8-M stack sealing is used)
*/
+
ENTRY(Reset_Handler)
SECTIONS
@@ -91,21 +93,11 @@ SECTIONS
.text :
{
KEEP(*(.vectors))
- __Vectors_End = .;
- __Vectors_Size = __Vectors_End - __Vectors;
- __end__ = .;
-
*(.text*)
KEEP(*(.init))
KEEP(*(.fini))
- KEEP(*(.application_properties))
- KEEP(*(.gecko_configuration))
- KEEP(*(.xo_configuration))
- KEEP(*(.gatt_header))
- KEEP(*(.gatt_data))
-
/* .ctors */
*crtbegin.o(.ctors)
*crtbegin?.o(.ctors)
@@ -122,11 +114,8 @@ SECTIONS
*(.rodata*)
-
KEEP(*(.eh_frame*))
} > FLASH
-
-
.ARM.extab :
{
*(.ARM.extab* .gnu.linkonce.armextab.*)
@@ -139,44 +128,25 @@ SECTIONS
} > FLASH
__exidx_end = .;
-
-
- /* To copy multiple ROM to RAM sections,
- * uncomment .copy.table section and,
- * define __STARTUP_COPY_MULTIPLE in startup_ARMCMx.S */
- /*
.copy.table :
{
. = ALIGN(4);
__copy_table_start__ = .;
+
LONG (__etext)
LONG (__data_start__)
- LONG (__data_end__ - __data_start__)
- LONG (__etext2)
- LONG (__data2_start__)
- LONG (__data2_end__ - __data2_start__)
+ LONG ((__data_end__ - __data_start__) / 4)
+
__copy_table_end__ = .;
} > FLASH
- */
- /* To clear multiple BSS sections,
- * uncomment .zero.table section and,
- * define __STARTUP_CLEAR_BSS_MULTIPLE in startup_ARMCMx.S */
- /*
.zero.table :
{
. = ALIGN(4);
__zero_table_start__ = .;
- LONG (__bss_start__)
- LONG (__bss_end__ - __bss_start__)
- LONG (__bss2_start__)
- LONG (__bss2_end__ - __bss2_start__)
__zero_table_end__ = .;
+ __etext = ALIGN(4);
} > FLASH
- */
-
- __etext = .;
-
.data : AT (__etext)
{
@@ -219,11 +189,12 @@ SECTIONS
{
. = ALIGN(4);
__bss_start__ = .;
- *(.bss*)
+ *(.bss)
+ *(.bss.*)
*(COMMON)
. = ALIGN(4);
__bss_end__ = .;
- } > RAM
+ } > RAM AT > RAM
.heap (COPY):
{
@@ -243,6 +214,7 @@ SECTIONS
.stack_dummy (COPY):
{
KEEP(*(.stack*))
+ /* KEEP(*(.stackseal*))*/
} > RAM
/* Set stack top to end of RAM, and stack limit move down by
@@ -265,4 +237,6 @@ SECTIONS
/*ASSERT(__StackLimit >= __HeapLimit, "region RAM overflowed with stack")*/
ASSERT( (linker_nvm_begin + SIZEOF(.nvm)) <= __main_flash_end__, "NVM3 is excessing the flash size !")
+ /* Check if FLASH usage exceeds FLASH size */
+ ASSERT( LENGTH(FLASH) >= (__etext + SIZEOF(.data)), "FLASH memory overflowed !")
}
diff --git a/examples/platform/efr32/matter_config.cpp b/examples/platform/efr32/matter_config.cpp
index b892620acf3b9f..6f2c70c2259b15 100644
--- a/examples/platform/efr32/matter_config.cpp
+++ b/examples/platform/efr32/matter_config.cpp
@@ -116,7 +116,7 @@ CHIP_ERROR EFR32MatterConfig::InitMatter(const char * appName)
//==============================================
EFR32_LOG("Init CHIP Stack");
// Init Chip memory management before the stack
- chip::Platform::MemoryInit();
+ ReturnErrorOnFailure(chip::Platform::MemoryInit());
ReturnErrorOnFailure(PlatformMgr().InitChipStack());
chip::DeviceLayer::ConnectivityMgr().SetBLEDeviceName(appName);
diff --git a/examples/platform/efr32/uart.cpp b/examples/platform/efr32/uart.cpp
index 91c8955525bff7..548416d177ce16 100644
--- a/examples/platform/efr32/uart.cpp
+++ b/examples/platform/efr32/uart.cpp
@@ -44,10 +44,20 @@ extern "C" {
#define MIN(A, B) ((A) < (B) ? (A) : (B))
#endif
+#ifdef EFR32MG24
+#define HELPER1(x) EUSART##x##_RX_IRQn
+#else
#define HELPER1(x) USART##x##_RX_IRQn
+#endif
+
#define HELPER2(x) HELPER1(x)
+#ifdef EFR32MG24
+#define HELPER3(x) EUSART##x##_RX_IRQHandler
+#else
#define HELPER3(x) USART##x##_RX_IRQHandler
+#endif
+
#define HELPER4(x) HELPER3(x)
// On MG24 boards VCOM runs on the EUSART device, MG12 uses the UART device
@@ -55,7 +65,6 @@ extern "C" {
#define USART_IRQ HELPER2(SL_UARTDRV_EUSART_VCOM_PERIPHERAL_NO)
#define USART_IRQHandler HELPER4(SL_UARTDRV_EUSART_VCOM_PERIPHERAL_NO)
#define vcom_handle sl_uartdrv_eusart_vcom_handle
-
#else
#define USART_IRQ HELPER2(SL_UARTDRV_USART_VCOM_PERIPHERAL_NO)
#define USART_IRQHandler HELPER4(SL_UARTDRV_USART_VCOM_PERIPHERAL_NO)
@@ -208,12 +217,19 @@ void uartConsoleInit(void)
UARTDRV_Receive(vcom_handle, sRxDmaBuffer, MAX_DMA_BUFFER_SIZE, UART_rx_callback);
UARTDRV_Receive(vcom_handle, sRxDmaBuffer2, MAX_DMA_BUFFER_SIZE, UART_rx_callback);
- // Enable USART0 interrupt to wake OT task when data arrives
+ // Enable USART0/EUSART0 interrupt to wake OT task when data arrives
NVIC_ClearPendingIRQ(USART_IRQ);
NVIC_EnableIRQ(USART_IRQ);
#ifdef EFR32MG24
- EUSART_IntEnable(SL_UARTDRV_EUSART_VCOM_PERIPHERAL, USART_IF_RXDATAV);
+ // Clear previous RX interrupts
+ EUSART_IntClear(SL_UARTDRV_EUSART_VCOM_PERIPHERAL, EUSART_IF_RXFL);
+
+ // Enable RX interrupts
+ EUSART_IntEnable(SL_UARTDRV_EUSART_VCOM_PERIPHERAL, EUSART_IF_RXFL);
+
+ // Enable EUSART
+ EUSART_Enable(SL_UARTDRV_EUSART_VCOM_PERIPHERAL, eusartEnable);
#else
USART_IntEnable(SL_UARTDRV_USART_VCOM_PERIPHERAL, USART_IF_RXDATAV);
#endif // EFR32MG24
@@ -229,6 +245,10 @@ void USART_IRQHandler(void)
#elif !defined(PW_RPC_ENABLED)
otSysEventSignalPending();
#endif
+
+#ifdef EFR32MG24
+ EUSART_IntClear(SL_UARTDRV_EUSART_VCOM_PERIPHERAL, EUSART_IF_RXFL);
+#endif
}
/*
diff --git a/examples/window-app/efr32/BUILD.gn b/examples/window-app/efr32/BUILD.gn
index 33ea182d5316a7..d829fa9d15116b 100644
--- a/examples/window-app/efr32/BUILD.gn
+++ b/examples/window-app/efr32/BUILD.gn
@@ -82,7 +82,7 @@ if (efr32_board == "BRD4166A" || efr32_board == "BRD4180A") {
# WiFi settings
if (chip_enable_wifi) {
- wifi_sdk_dir = "${chip_root}/third_party/efr32_sdk/repo/matter/wifi"
+ wifi_sdk_dir = "${chip_root}/third_party/silabs/matter_support/matter/wifi"
efr32_lwip_defs = [ "LWIP_NETIF_API=1" ]
efr32_lwip_defs += [
"LWIP_IPV4=1",
@@ -95,7 +95,7 @@ if (chip_enable_wifi) {
if (use_rs911x) {
wiseconnect_sdk_root =
- "${chip_root}/third_party/efr32_sdk/wiseconnect-wifi-bt-sdk"
+ "${chip_root}/third_party/silabs/wiseconnect-wifi-bt-sdk"
import("${wifi_sdk_dir}/rs911x/rs911x.gni")
} else {
import("${wifi_sdk_dir}/wf200/wf200.gni")
diff --git a/src/app/tests/suites/certification/Test_TC_CGEN_2_1.yaml b/src/app/tests/suites/certification/Test_TC_CGEN_2_1.yaml
index 22ad7b6b227053..8961bb4717b4b0 100644
--- a/src/app/tests/suites/certification/Test_TC_CGEN_2_1.yaml
+++ b/src/app/tests/suites/certification/Test_TC_CGEN_2_1.yaml
@@ -35,7 +35,8 @@ tests:
command: "readAttribute"
attribute: "Breadcrumb"
response:
- value: 0
+ constraints:
+ type: uint64
- label: "TH1 writes the BreadCrumb attribute as 1 to the DUT"
command: "writeAttribute"
@@ -66,13 +67,28 @@ tests:
maxValue: 2
#Issue 17997
- - label: "TH1 reads BasicCommissioningInfo attribute from DUT"
- PICS: PICS_SKIP_SAMPLE_APP
+ - label:
+ "TH1 reads BasicCommissioningInfo attribute from DUT and Verify that
+ the BasicCommissioningInfo attribute has the following field:
+ FailSafeExpiryLengthSeconds field value is within a duration range of
+ 0 to 65535"
command: "readAttribute"
attribute: "BasicCommissioningInfo"
+
+ - label: "Step 6 TC-CGEN-2.1"
+ cluster: "LogCommands"
+ command: "UserPrompt"
+ arguments:
+ values:
+ - name: "message"
+ value:
+ "Step 6 is implicitly validating the
+ attribute(BasicCommissioningInfo) constraints, as long as
+ the payload is being parsed successfully"
+
+ - label: "TH1 reads SupportsConcurrentConnection attribute from the DUT"
+ command: "readAttribute"
+ attribute: "SupportsConcurrentConnection"
response:
- value:
- {
- FailSafeExpiryLengthSeconds: 60,
- MaxCumulativeFailsafeSeconds: 900,
- }
+ constraints:
+ type: bool
diff --git a/src/controller/java/BUILD.gn b/src/controller/java/BUILD.gn
index 080abfc0afb2c7..68757d8919c0ff 100644
--- a/src/controller/java/BUILD.gn
+++ b/src/controller/java/BUILD.gn
@@ -90,8 +90,10 @@ android_library("java") {
"src/chip/devicecontroller/ControllerParams.java",
"src/chip/devicecontroller/DiscoveredDevice.java",
"src/chip/devicecontroller/GetConnectedDeviceCallbackJni.java",
+ "src/chip/devicecontroller/KeypairDelegate.java",
"src/chip/devicecontroller/NetworkCredentials.java",
"src/chip/devicecontroller/NetworkLocation.java",
+ "src/chip/devicecontroller/OperationalKeyConfig.java",
"src/chip/devicecontroller/OpenCommissioningCallback.java",
"src/chip/devicecontroller/PaseVerifierParams.java",
"src/chip/devicecontroller/ReportCallback.java",
diff --git a/src/platform/EFR32/BLEManagerImpl.cpp b/src/platform/EFR32/BLEManagerImpl.cpp
index 3e675a00dd053c..de1078a668f7ea 100644
--- a/src/platform/EFR32/BLEManagerImpl.cpp
+++ b/src/platform/EFR32/BLEManagerImpl.cpp
@@ -26,6 +26,8 @@
#include
#if CHIP_DEVICE_CONFIG_ENABLE_CHIPOBLE
+#include "sl_component_catalog.h"
+
#include
#include "FreeRTOS.h"
@@ -88,17 +90,6 @@ namespace {
TimerHandle_t sbleAdvTimeoutTimer; // FreeRTOS sw timer.
-/* Bluetooth stack configuration parameters (see "UG136: Silicon Labs Bluetooth C Application Developer's Guide" for
- * details on each parameter) */
-static sl_bt_configuration_t config;
-
-/** @brief Table of used BGAPI classes */
-static const struct sli_bgapi_class * const bt_class_table[] = { SL_BT_BGAPI_CLASS(system), SL_BT_BGAPI_CLASS(advertiser),
- SL_BT_BGAPI_CLASS(gap), SL_BT_BGAPI_CLASS(scanner),
- SL_BT_BGAPI_CLASS(connection), SL_BT_BGAPI_CLASS(gatt),
- SL_BT_BGAPI_CLASS(gatt_server), SL_BT_BGAPI_CLASS(nvm),
- SL_BT_BGAPI_CLASS(sm), NULL };
-
StackType_t bluetoothEventStack[CHIP_DEVICE_CONFIG_BLE_APP_TASK_STACK_SIZE / sizeof(StackType_t)];
StaticTask_t bluetoothEventTaskStruct;
static TaskHandle_t BluetoothEventTaskHandle;
@@ -131,36 +122,10 @@ extern "C" sl_status_t initialize_bluetooth()
NVIC_ClearPendingIRQ(PendSV_IRQn);
NVIC_EnableIRQ(PendSV_IRQn);
#endif
- sl_status_t ret = sl_bt_init_stack(&config);
- sl_bt_init_classes(bt_class_table);
- sl_bt_init_multiprotocol();
- return ret;
-}
+ sl_status_t err = sl_bt_stack_init();
+ EFM_ASSERT(err == SL_STATUS_OK);
-static void initBleConfig(void)
-{
- memset(&config, 0, sizeof(sl_bt_configuration_t));
- config.config_flags = SL_BT_CONFIG_FLAG_RTOS; /* Check flag options from UG136 */
- config.bluetooth.max_connections = BLE_LAYER_NUM_BLE_ENDPOINTS; /* Maximum number of simultaneous connections */
- config.bluetooth.max_advertisers = BLE_MAX_ADVERTISERS;
- config.bluetooth.max_periodic_sync = BLE_CONFIG_MAX_PERIODIC_ADVERTISING_SYNC;
- config.bluetooth.max_buffer_memory = BLE_MAX_BUFFER_SIZE;
- config.gattdb = &gattdb; /* Pointer to GATT database */
- config.scheduler_callback = BluetoothLLCallback;
- config.stack_schedule_callback = BluetoothUpdate;
- config.max_timers = BLE_CONFIG_MAX_SOFTWARE_TIMERS;
- config.rf.tx_gain = BLE_CONFIG_RF_PATH_GAIN_TX;
- config.rf.rx_gain = BLE_CONFIG_RF_PATH_GAIN_RX;
- config.rf.tx_min_power = BLE_CONFIG_MIN_TX_POWER;
- config.rf.tx_max_power = BLE_CONFIG_MAX_TX_POWER;
-#if (HAL_PA_ENABLE)
- config.pa.config_enable = 1; /* Set this to be a valid PA config */
-#if defined(FEATURE_PA_INPUT_FROM_VBAT)
- config.pa.input = SL_BT_RADIO_PA_INPUT_VBAT; /* Configure PA input to VBAT */
-#else
- config.pa.input = SL_BT_RADIO_PA_INPUT_DCDC; /* Configure PA input to DCDC */
-#endif // defined(FEATURE_PA_INPUT_FROM_VBAT)
-#endif // (HAL_PA_ENABLE)
+ return err;
}
CHIP_ERROR BLEManagerImpl::_Init()
@@ -176,13 +141,11 @@ CHIP_ERROR BLEManagerImpl::_Init()
memset(mIndConfId, kUnusedIndex, sizeof(mIndConfId));
mServiceMode = ConnectivityManager::kCHIPoBLEServiceMode_Enabled;
- initBleConfig();
-
// Start Bluetooth Link Layer and stack tasks
ret =
bluetooth_start(CHIP_DEVICE_CONFIG_BLE_LL_TASK_PRIORITY, CHIP_DEVICE_CONFIG_BLE_STACK_TASK_PRIORITY, initialize_bluetooth);
- VerifyOrExit(ret == bg_err_success, err = MapBLEError(ret));
+ VerifyOrExit(ret == SL_STATUS_OK, err = MapBLEError(ret));
// Create the Bluetooth Application task
BluetoothEventTaskHandle =
@@ -523,7 +486,7 @@ bool BLEManagerImpl::SendIndication(BLE_CONNECTION_OBJECT conId, const ChipBleUU
VerifyOrExit(timerHandle != kMaxConnections, err = CHIP_ERROR_NO_MEMORY);
// start timer for light notification confirmation. Long delay for spake2 indication
- sl_bt_system_set_soft_timer(TIMER_S_2_TIMERTICK(6), timerHandle, true);
+ sl_bt_system_set_lazy_soft_timer(TIMER_S_2_TIMERTICK(6), 0, timerHandle, true);
ret = sl_bt_gatt_server_send_notification(conId, cId, (data->DataLength()), data->Start());
err = MapBLEError(ret);
@@ -868,13 +831,13 @@ void BLEManagerImpl::HandleConnectionCloseEvent(volatile sl_bt_msg_t * evt)
switch (conn_evt->reason)
{
- case bg_err_bt_remote_user_terminated:
- case bg_err_bt_remote_device_terminated_connection_due_to_low_resources:
- case bg_err_bt_remote_powering_off:
+ case SL_STATUS_BT_CTRL_REMOTE_USER_TERMINATED:
+ case SL_STATUS_BT_CTRL_REMOTE_DEVICE_TERMINATED_CONNECTION_DUE_TO_LOW_RESOURCES:
+ case SL_STATUS_BT_CTRL_REMOTE_POWERING_OFF:
event.CHIPoBLEConnectionError.Reason = BLE_ERROR_REMOTE_DEVICE_DISCONNECTED;
break;
- case bg_err_bt_connection_terminated_by_local_host:
+ case SL_STATUS_BT_CTRL_CONNECTION_TERMINATED_BY_LOCAL_HOST:
event.CHIPoBLEConnectionError.Reason = BLE_ERROR_APP_CLOSED_CONNECTION;
break;
@@ -995,7 +958,7 @@ void BLEManagerImpl::HandleTxConfirmationEvent(BLE_CONNECTION_OBJECT conId)
if (timerHandle < kMaxConnections)
{
ChipLogProgress(DeviceLayer, " stop soft timer");
- sl_bt_system_set_soft_timer(0, timerHandle, false);
+ sl_bt_system_set_lazy_soft_timer(0, 0, timerHandle, false);
}
event.Type = DeviceEventType::kCHIPoBLEIndicateConfirm;
diff --git a/src/platform/EFR32/BlePlatformConfig.h b/src/platform/EFR32/BlePlatformConfig.h
index 92a1690269f4a1..eec08879cac19b 100644
--- a/src/platform/EFR32/BlePlatformConfig.h
+++ b/src/platform/EFR32/BlePlatformConfig.h
@@ -25,7 +25,7 @@
#pragma once
-#include "bg_errorcodes.h"
+#include "sl_bt_api.h"
// ==================== Platform Adaptations ====================
diff --git a/src/platform/EFR32/efr32-chip-mbedtls-config.h b/src/platform/EFR32/efr32-chip-mbedtls-config.h
index b3f2a76704d711..edddb2abb6f0c8 100644
--- a/src/platform/EFR32/efr32-chip-mbedtls-config.h
+++ b/src/platform/EFR32/efr32-chip-mbedtls-config.h
@@ -42,6 +42,7 @@
#define MBEDTLS_ECP_C
#define MBEDTLS_ECDH_C
#define MBEDTLS_ENTROPY_C
+#define MBEDTLS_SHA224_C
#define MBEDTLS_SHA256_C
#define MBEDTLS_TRNG_C
diff --git a/third_party/efr32_sdk/repo b/third_party/efr32_sdk/repo
deleted file mode 160000
index c48b8de1bed36c..00000000000000
--- a/third_party/efr32_sdk/repo
+++ /dev/null
@@ -1 +0,0 @@
-Subproject commit c48b8de1bed36cc57dd8caba94ecda8a7352524c
diff --git a/third_party/nxp/k32w0_sdk/sdk_fixes/patch_k32w_sdk.sh b/third_party/nxp/k32w0_sdk/sdk_fixes/patch_k32w_sdk.sh
index 6566feb72700bc..417731e01f5216 100755
--- a/third_party/nxp/k32w0_sdk/sdk_fixes/patch_k32w_sdk.sh
+++ b/third_party/nxp/k32w0_sdk/sdk_fixes/patch_k32w_sdk.sh
@@ -64,5 +64,8 @@ cp patch_for_K32W061_SDK_2_6_4/controller_interface.h "$NXP_K32W061_SDK_ROOT"/mi
cp patch_for_K32W061_SDK_2_6_4/lib_ble_controller.a "$NXP_K32W061_SDK_ROOT"/middleware/wireless/ble_controller/lib/
cp patch_for_K32W061_SDK_2_6_4/libPDM_extFlash.a "$NXP_K32W061_SDK_ROOT"/middleware/wireless/framework/PDM/Library/
+rm -rf patch_for_K32W061_SDK_2_6_4.zip
+rm -rf patch_for_K32W061_SDK_2_6_4
+
echo "K32W SDK MR3 QP1 was patched!"
exit 0
diff --git a/third_party/openthread/platforms/efr32/BUILD.gn b/third_party/openthread/platforms/efr32/BUILD.gn
index adc4b41f759722..251932b39108e4 100644
--- a/third_party/openthread/platforms/efr32/BUILD.gn
+++ b/third_party/openthread/platforms/efr32/BUILD.gn
@@ -30,7 +30,7 @@ config("openthread_efr32_config") {
include_dirs = [
"${chip_root}/examples/platform/efr32",
- "${efr32_sdk_root}/matter/efr32/${efr32_family}/${efr32_board}",
+ "${sdk_support_root}/matter/efr32/${efr32_family}/${efr32_board}",
"${openthread_efr32_root}/src/src",
]
}
@@ -50,10 +50,12 @@ source_set("openthread_core_config_efr32") {
source_set("libopenthread-efr32") {
sources = [
"${openthread_efr32_root}/src/src/alarm.c",
+ "${openthread_efr32_root}/src/src/crypto.c",
"${openthread_efr32_root}/src/src/entropy.c",
"${openthread_efr32_root}/src/src/flash.c",
"${openthread_efr32_root}/src/src/misc.c",
"${openthread_efr32_root}/src/src/radio.c",
+ "${openthread_efr32_root}/src/src/security_manager.c",
"${openthread_efr32_root}/src/src/system.c",
"${openthread_root}/examples/apps/cli/cli_uart.cpp",
]
diff --git a/third_party/pigweed/repo b/third_party/pigweed/repo
index 67bc89cdda8c66..834e876dab7a17 160000
--- a/third_party/pigweed/repo
+++ b/third_party/pigweed/repo
@@ -1 +1 @@
-Subproject commit 67bc89cdda8c663b1983c6215f14e8db6a19a328
+Subproject commit 834e876dab7a1785a824efbb704d7d139f6ce62d
diff --git a/third_party/efr32_sdk/BUILD.gn b/third_party/silabs/BUILD.gn
similarity index 100%
rename from third_party/efr32_sdk/BUILD.gn
rename to third_party/silabs/BUILD.gn
diff --git a/third_party/efr32_sdk/efr32_arm.gni b/third_party/silabs/efr32_arm.gni
similarity index 100%
rename from third_party/efr32_sdk/efr32_arm.gni
rename to third_party/silabs/efr32_arm.gni
diff --git a/third_party/efr32_sdk/efr32_board.gni b/third_party/silabs/efr32_board.gni
similarity index 100%
rename from third_party/efr32_sdk/efr32_board.gni
rename to third_party/silabs/efr32_board.gni
diff --git a/third_party/efr32_sdk/efr32_executable.gni b/third_party/silabs/efr32_executable.gni
similarity index 100%
rename from third_party/efr32_sdk/efr32_executable.gni
rename to third_party/silabs/efr32_executable.gni
diff --git a/third_party/efr32_sdk/efr32_sdk.gni b/third_party/silabs/efr32_sdk.gni
similarity index 94%
rename from third_party/efr32_sdk/efr32_sdk.gni
rename to third_party/silabs/efr32_sdk.gni
index 3fe0e894978505..a5eae3f8e6d45c 100644
--- a/third_party/efr32_sdk/efr32_sdk.gni
+++ b/third_party/silabs/efr32_sdk.gni
@@ -22,7 +22,8 @@ import("efr32_board.gni")
declare_args() {
# Location of the efr32 SDK.
- efr32_sdk_root = "${chip_root}/third_party/efr32_sdk/repo"
+ efr32_sdk_root = "${chip_root}/third_party/silabs/gecko_sdk"
+ sdk_support_root = "${chip_root}/third_party/silabs/matter_support"
enable_openthread_cli = true
kvs_max_entries = 75
}
@@ -63,11 +64,11 @@ template("efr32_sdk") {
"${efr32_sdk_root}/hardware/board/inc",
"${efr32_sdk_root}/hardware/driver/memlcd/inc",
"${efr32_sdk_root}/hardware/driver/memlcd/src/ls013b7dh03",
- "${efr32_sdk_root}/matter/efr32",
- "${efr32_sdk_root}/matter/efr32/${efr32_family}/",
- "${efr32_sdk_root}/matter/efr32/${efr32_family}/${efr32_board}",
"${efr32_sdk_root}/platform/bootloader",
- "${efr32_sdk_root}/platform/CMSIS/Include",
+ "${efr32_sdk_root}/platform/bootloader/config",
+ "${efr32_sdk_root}/platform/bootloader/config/s2/btl_interface",
+ "${efr32_sdk_root}/platform/bootloader/api",
+ "${efr32_sdk_root}/platform/CMSIS/Core/Include",
"${efr32_sdk_root}/platform/CMSIS/RTOS2/Include",
"${efr32_sdk_root}/platform/common/inc",
"${efr32_sdk_root}/platform/driver/button/inc",
@@ -110,6 +111,7 @@ template("efr32_sdk") {
"${efr32_sdk_root}/protocol/bluetooth/inc/",
"${efr32_sdk_root}/util/plugin/plugin-common/fem-control",
"${efr32_sdk_root}/util/silicon_labs/silabs_core/graphics",
+ "${efr32_sdk_root}/util/silicon_labs/silabs_core/memory_manager",
"${efr32_sdk_root}/util/third_party/crypto/mbedtls/include",
"${efr32_sdk_root}/util/third_party/crypto/mbedtls/include/psa",
"${efr32_sdk_root}/util/third_party/crypto/mbedtls/library",
@@ -118,10 +120,14 @@ template("efr32_sdk") {
"${efr32_sdk_root}/util/third_party/crypto/sl_component/sl_mbedtls_support/inc",
"${efr32_sdk_root}/util/third_party/crypto/sl_component/sl_mbedtls_support/config/",
"${efr32_sdk_root}/util/third_party/crypto/sl_component/sl_psa_driver/inc",
+ "${efr32_sdk_root}/util/third_party/crypto/sl_component/sl_psa_driver/inc/public",
"${efr32_sdk_root}/util/third_party/crypto/sl_component/se_manager/inc",
"${efr32_sdk_root}/util/third_party/crypto/sl_component/se_manager/src/",
"${efr32_sdk_root}/util/third_party/freertos/cmsis/Include",
"${efr32_sdk_root}/util/third_party/freertos/kernel/include",
+ "${sdk_support_root}/matter/efr32",
+ "${sdk_support_root}/matter/efr32/${efr32_family}/",
+ "${sdk_support_root}/matter/efr32/${efr32_family}/${efr32_board}",
]
defines = [
@@ -147,6 +153,7 @@ template("efr32_sdk") {
"MBEDTLS_THREADING_C=1",
"MBEDTLS_THREADING_ALT=1",
"SL_THREADING_ALT=1",
+ "SL_COMPONENT_CATALOG_PRESENT",
#"__STACK_SIZE=0",
]
@@ -254,7 +261,7 @@ template("efr32_sdk") {
]
libs += [
- "${efr32_sdk_root}/protocol/bluetooth/lib/EFR32MG24/GCC/binapploader.o",
+ "${efr32_sdk_root}/protocol/bluetooth/lib/EFR32MG24/GCC/libapploader.a",
"${efr32_sdk_root}/protocol/bluetooth/lib/EFR32MG24/GCC/libbluetooth.a",
"${efr32_sdk_root}/platform/radio/rail_lib/autogen/librail_release/librail_multiprotocol_efr32xg24_gcc_release.a",
"${efr32_sdk_root}/platform/emdrv/nvm3/lib/libnvm3_CM33_gcc.a",
@@ -285,6 +292,10 @@ template("efr32_sdk") {
"-Wno-shadow",
]
+ if (efr32_family == "efr32mg24") {
+ cflags += [ "-mcmse" ]
+ }
+
if (defined(invoker.use_rs911x)) {
if (invoker.use_rs911x == true) {
#add compilation flags for rs991x build. This will be addressed directly in wiseconnect sdk in the next version release of that sdk
@@ -302,13 +313,10 @@ template("efr32_sdk") {
"${chip_root}/third_party/mbedtls/repo/include/mbedtls/platform.h",
"${efr32_sdk_root}/hardware/board/src/sl_board_control_gpio.c",
"${efr32_sdk_root}/hardware/board/src/sl_board_init.c",
- "${efr32_sdk_root}/matter/efr32/sl_board_default_init.c",
- "${efr32_sdk_root}/matter/efr32/sl_device_init_clocks.c",
- "${efr32_sdk_root}/matter/efr32/sl_event_handler.c",
- "${efr32_sdk_root}/matter/efr32/sl_simple_button_instances.c",
- "${efr32_sdk_root}/matter/efr32/sl_simple_led_instances.c",
"${efr32_sdk_root}/platform/CMSIS/RTOS2/Source/os_systick.c",
- "${efr32_sdk_root}/platform/bootloader/plugin/security/sha/crypto_sha.c",
+ "${efr32_sdk_root}/platform/bootloader/api/btl_interface.c",
+ "${efr32_sdk_root}/platform/bootloader/api/btl_interface_storage.c",
+ "${efr32_sdk_root}/platform/bootloader/security/sha/crypto_sha.c",
"${efr32_sdk_root}/platform/common/src/sl_slist.c",
"${efr32_sdk_root}/platform/driver/button/src/sl_button.c",
"${efr32_sdk_root}/platform/driver/button/src/sl_simple_button.c",
@@ -353,22 +361,22 @@ template("efr32_sdk") {
"${efr32_sdk_root}/platform/service/udelay/src/sl_udelay.c",
"${efr32_sdk_root}/platform/service/udelay/src/sl_udelay_armv6m_gcc.S",
"${efr32_sdk_root}/protocol/bluetooth/src/sl_bt_mbedtls_context.c",
+ "${efr32_sdk_root}/protocol/bluetooth/src/sl_bt_stack_init.c",
+ "${efr32_sdk_root}/util/silicon_labs/silabs_core/memory_manager/sl_malloc.c",
"${efr32_sdk_root}/util/third_party/crypto/mbedtls/library/aes.c",
"${efr32_sdk_root}/util/third_party/crypto/mbedtls/library/aesni.c",
- "${efr32_sdk_root}/util/third_party/crypto/mbedtls/library/arc4.c",
"${efr32_sdk_root}/util/third_party/crypto/mbedtls/library/asn1parse.c",
"${efr32_sdk_root}/util/third_party/crypto/mbedtls/library/asn1write.c",
"${efr32_sdk_root}/util/third_party/crypto/mbedtls/library/base64.c",
"${efr32_sdk_root}/util/third_party/crypto/mbedtls/library/bignum.c",
- "${efr32_sdk_root}/util/third_party/crypto/mbedtls/library/blowfish.c",
"${efr32_sdk_root}/util/third_party/crypto/mbedtls/library/camellia.c",
"${efr32_sdk_root}/util/third_party/crypto/mbedtls/library/ccm.c",
- "${efr32_sdk_root}/util/third_party/crypto/mbedtls/library/certs.c",
"${efr32_sdk_root}/util/third_party/crypto/mbedtls/library/chacha20.c",
"${efr32_sdk_root}/util/third_party/crypto/mbedtls/library/chachapoly.c",
"${efr32_sdk_root}/util/third_party/crypto/mbedtls/library/cipher.c",
"${efr32_sdk_root}/util/third_party/crypto/mbedtls/library/cipher_wrap.c",
"${efr32_sdk_root}/util/third_party/crypto/mbedtls/library/cmac.c",
+ "${efr32_sdk_root}/util/third_party/crypto/mbedtls/library/constant_time.c",
"${efr32_sdk_root}/util/third_party/crypto/mbedtls/library/ctr_drbg.c",
"${efr32_sdk_root}/util/third_party/crypto/mbedtls/library/debug.c",
"${efr32_sdk_root}/util/third_party/crypto/mbedtls/library/des.c",
@@ -380,7 +388,6 @@ template("efr32_sdk") {
"${efr32_sdk_root}/util/third_party/crypto/mbedtls/library/ecp_curves.c",
"${efr32_sdk_root}/util/third_party/crypto/mbedtls/library/entropy.c",
"${efr32_sdk_root}/util/third_party/crypto/mbedtls/library/entropy_poll.c",
- "${efr32_sdk_root}/util/third_party/crypto/mbedtls/library/error.c",
"${efr32_sdk_root}/util/third_party/crypto/mbedtls/library/gcm.c",
"${efr32_sdk_root}/util/third_party/crypto/mbedtls/library/hkdf.c",
"${efr32_sdk_root}/util/third_party/crypto/mbedtls/library/hmac_drbg.c",
@@ -412,7 +419,6 @@ template("efr32_sdk") {
"${efr32_sdk_root}/util/third_party/crypto/mbedtls/library/psa_its_file.c",
"${efr32_sdk_root}/util/third_party/crypto/mbedtls/library/ripemd160.c",
"${efr32_sdk_root}/util/third_party/crypto/mbedtls/library/rsa.c",
- "${efr32_sdk_root}/util/third_party/crypto/mbedtls/library/rsa_internal.c",
"${efr32_sdk_root}/util/third_party/crypto/mbedtls/library/sha1.c",
"${efr32_sdk_root}/util/third_party/crypto/mbedtls/library/sha256.c",
"${efr32_sdk_root}/util/third_party/crypto/mbedtls/library/sha512.c",
@@ -428,7 +434,6 @@ template("efr32_sdk") {
"${efr32_sdk_root}/util/third_party/crypto/mbedtls/library/threading.c",
"${efr32_sdk_root}/util/third_party/crypto/mbedtls/library/timing.c",
"${efr32_sdk_root}/util/third_party/crypto/mbedtls/library/version.c",
- "${efr32_sdk_root}/util/third_party/crypto/mbedtls/library/version_features.c",
"${efr32_sdk_root}/util/third_party/crypto/mbedtls/library/x509.c",
"${efr32_sdk_root}/util/third_party/crypto/mbedtls/library/x509_create.c",
"${efr32_sdk_root}/util/third_party/crypto/mbedtls/library/x509_crl.c",
@@ -436,19 +441,21 @@ template("efr32_sdk") {
"${efr32_sdk_root}/util/third_party/crypto/mbedtls/library/x509_csr.c",
"${efr32_sdk_root}/util/third_party/crypto/mbedtls/library/x509write_crt.c",
"${efr32_sdk_root}/util/third_party/crypto/mbedtls/library/x509write_csr.c",
- "${efr32_sdk_root}/util/third_party/crypto/mbedtls/library/xtea.c",
- "${efr32_sdk_root}/util/third_party/crypto/sl_component/sl_alt/source/sl_entropy.c",
- "${efr32_sdk_root}/util/third_party/crypto/sl_component/sl_alt/source/sl_mbedtls.c",
"${efr32_sdk_root}/util/third_party/crypto/sl_component/sl_mbedtls_support/src/aes_aes.c",
"${efr32_sdk_root}/util/third_party/crypto/sl_component/sl_mbedtls_support/src/crypto_aes.c",
"${efr32_sdk_root}/util/third_party/crypto/sl_component/sl_mbedtls_support/src/crypto_ecp.c",
+ "${efr32_sdk_root}/util/third_party/crypto/sl_component/sl_mbedtls_support/src/error.c",
"${efr32_sdk_root}/util/third_party/crypto/sl_component/sl_mbedtls_support/src/mbedtls_ccm.c",
"${efr32_sdk_root}/util/third_party/crypto/sl_component/sl_mbedtls_support/src/mbedtls_cmac.c",
"${efr32_sdk_root}/util/third_party/crypto/sl_component/sl_mbedtls_support/src/mbedtls_ecdsa_ecdh.c",
"${efr32_sdk_root}/util/third_party/crypto/sl_component/sl_mbedtls_support/src/mbedtls_sha.c",
+ "${efr32_sdk_root}/util/third_party/crypto/sl_component/sl_mbedtls_support/src/sl_entropy_hardware.c",
+ "${efr32_sdk_root}/util/third_party/crypto/sl_component/sl_mbedtls_support/src/sl_mbedtls.c",
+ "${efr32_sdk_root}/util/third_party/crypto/sl_component/sl_mbedtls_support/src/version_features.c",
"${efr32_sdk_root}/util/third_party/crypto/sl_component/sl_protocol_crypto/src/sli_protocol_crypto_crypto.c",
"${efr32_sdk_root}/util/third_party/crypto/sl_component/sl_protocol_crypto/src/sli_protocol_crypto_radioaes.c",
"${efr32_sdk_root}/util/third_party/crypto/sl_component/sl_psa_driver/src/crypto_management.c",
+ "${efr32_sdk_root}/util/third_party/crypto/sl_component/sl_psa_driver/src/sl_psa_its_nvm3.c",
"${efr32_sdk_root}/util/third_party/crypto/sl_component/sl_psa_driver/src/sli_crypto_transparent_driver_aead.c",
"${efr32_sdk_root}/util/third_party/crypto/sl_component/sl_psa_driver/src/sli_crypto_transparent_driver_cipher.c",
"${efr32_sdk_root}/util/third_party/crypto/sl_component/sl_psa_driver/src/sli_crypto_transparent_driver_hash.c",
@@ -467,6 +474,13 @@ template("efr32_sdk") {
"${efr32_sdk_root}/util/third_party/freertos/kernel/stream_buffer.c",
"${efr32_sdk_root}/util/third_party/freertos/kernel/tasks.c",
"${efr32_sdk_root}/util/third_party/freertos/kernel/timers.c",
+ "${sdk_support_root}/matter/efr32/sl_board_default_init.c",
+ "${sdk_support_root}/matter/efr32/sl_device_init_clocks.c",
+ "${sdk_support_root}/matter/efr32/sl_event_handler.c",
+ "${sdk_support_root}/matter/efr32/sl_simple_button_instances.c",
+ "${sdk_support_root}/matter/efr32/sl_simple_led_instances.c",
+ "${sdk_support_root}/matter/efr32/sli_bt_advertiser_config.c",
+ "${sdk_support_root}/matter/efr32/sli_bt_connection_config.c",
]
if (defined(invoker.enable_sleepy_device)) {
@@ -487,11 +501,11 @@ template("efr32_sdk") {
(defined(invoker.show_qr_code) && invoker.show_qr_code) ||
(defined(invoker.disable_lcd) && !invoker.disable_lcd)) {
sources += [
- "${efr32_sdk_root}/matter/efr32/${efr32_family}/sl_uartdrv_init.c",
"${efr32_sdk_root}/platform/emdrv/uartdrv/src/uartdrv.c",
"${efr32_sdk_root}/platform/emlib/src/em_eusart.c",
"${efr32_sdk_root}/platform/emlib/src/em_leuart.c",
"${efr32_sdk_root}/platform/emlib/src/em_usart.c",
+ "${sdk_support_root}/matter/efr32/${efr32_family}/sl_uartdrv_init.c",
]
if (efr32_family == "efr32mg12") {
@@ -542,7 +556,7 @@ template("efr32_sdk") {
if (efr32_family == "efr32mg12") {
sources += [
- "${efr32_sdk_root}/platform/Device/SiliconLabs/EFR32MG12P/Source/GCC/startup_efr32mg12p.c",
+ "${efr32_sdk_root}/platform/Device/SiliconLabs/EFR32MG12P/Source/startup_efr32mg12p.c",
"${efr32_sdk_root}/platform/Device/SiliconLabs/EFR32MG12P/Source/system_efr32mg12p.c",
"${efr32_sdk_root}/platform/service/device_init/src/sl_device_init_dcdc_s1.c",
"${efr32_sdk_root}/platform/service/device_init/src/sl_device_init_emu_s1.c",
@@ -552,7 +566,7 @@ template("efr32_sdk") {
]
} else if (efr32_family == "efr32mg21") {
sources += [
- "${efr32_sdk_root}/platform/Device/SiliconLabs/EFR32MG21/Source/GCC/startup_efr32mg21.c",
+ "${efr32_sdk_root}/platform/Device/SiliconLabs/EFR32MG21/Source/startup_efr32mg21.c",
"${efr32_sdk_root}/platform/Device/SiliconLabs/EFR32MG21/Source/system_efr32mg21.c",
"${efr32_sdk_root}/platform/radio/rail_lib/plugin/rail_util_rf_path/sl_rail_util_rf_path.c",
"${efr32_sdk_root}/platform/service/device_init/src/sl_device_init_emu_s2.c",
@@ -568,7 +582,6 @@ template("efr32_sdk") {
"${efr32_sdk_root}/util/third_party/crypto/sl_component/se_manager/src/sl_se_manager_key_handling.c",
"${efr32_sdk_root}/util/third_party/crypto/sl_component/se_manager/src/sl_se_manager_signature.c",
"${efr32_sdk_root}/util/third_party/crypto/sl_component/se_manager/src/sl_se_manager_util.c",
- "${efr32_sdk_root}/util/third_party/crypto/sl_component/sl_alt/source/sl_psa_its_nvm3.c",
"${efr32_sdk_root}/util/third_party/crypto/sl_component/sl_alt/source/sl_se_management.c",
"${efr32_sdk_root}/util/third_party/crypto/sl_component/sl_mbedtls_support/src/se_aes.c",
"${efr32_sdk_root}/util/third_party/crypto/sl_component/sl_mbedtls_support/src/se_gcm.c",
@@ -592,8 +605,9 @@ template("efr32_sdk") {
]
} else if (efr32_family == "efr32mg24") {
sources += [
- "${efr32_sdk_root}/platform/Device/SiliconLabs/EFR32MG24/Source/GCC/startup_efr32mg24.c",
+ "${efr32_sdk_root}/platform/Device/SiliconLabs/EFR32MG24/Source/startup_efr32mg24.c",
"${efr32_sdk_root}/platform/Device/SiliconLabs/EFR32MG24/Source/system_efr32mg24.c",
+ "${efr32_sdk_root}/platform/radio/rail_lib/plugin/pa-conversions/pa_curves_efr32.c",
"${efr32_sdk_root}/platform/service/device_init/src/sl_device_init_dcdc_s2.c",
"${efr32_sdk_root}/platform/service/device_init/src/sl_device_init_emu_s2.c",
"${efr32_sdk_root}/platform/service/device_init/src/sl_device_init_hfxo_s2.c",
@@ -608,8 +622,6 @@ template("efr32_sdk") {
"${efr32_sdk_root}/util/third_party/crypto/sl_component/se_manager/src/sl_se_manager_key_handling.c",
"${efr32_sdk_root}/util/third_party/crypto/sl_component/se_manager/src/sl_se_manager_signature.c",
"${efr32_sdk_root}/util/third_party/crypto/sl_component/se_manager/src/sl_se_manager_util.c",
- "${efr32_sdk_root}/util/third_party/crypto/sl_component/sl_alt/source/sl_psa_its_nvm3.c",
- "${efr32_sdk_root}/util/third_party/crypto/sl_component/sl_alt/source/sl_se_management.c",
"${efr32_sdk_root}/util/third_party/crypto/sl_component/sl_mbedtls_support/src/se_aes.c",
"${efr32_sdk_root}/util/third_party/crypto/sl_component/sl_mbedtls_support/src/se_jpake.c",
"${efr32_sdk_root}/util/third_party/crypto/sl_component/sl_protocol_crypto/src/sli_radioaes_management.c",
diff --git a/third_party/silabs/gecko_sdk b/third_party/silabs/gecko_sdk
new file mode 160000
index 00000000000000..310814a9016b60
--- /dev/null
+++ b/third_party/silabs/gecko_sdk
@@ -0,0 +1 @@
+Subproject commit 310814a9016b60a8012d50c62cc168a783ac102b
diff --git a/third_party/silabs/matter_support b/third_party/silabs/matter_support
new file mode 160000
index 00000000000000..0da3151735033b
--- /dev/null
+++ b/third_party/silabs/matter_support
@@ -0,0 +1 @@
+Subproject commit 0da3151735033b26a77eaa6c291ae5da69525cc3
diff --git a/third_party/efr32_sdk/wiseconnect-wifi-bt-sdk b/third_party/silabs/wiseconnect-wifi-bt-sdk
similarity index 100%
rename from third_party/efr32_sdk/wiseconnect-wifi-bt-sdk
rename to third_party/silabs/wiseconnect-wifi-bt-sdk
diff --git a/zzz_generated/chip-tool/zap-generated/test/Commands.h b/zzz_generated/chip-tool/zap-generated/test/Commands.h
index 989009966e478a..bc159c2318982c 100644
--- a/zzz_generated/chip-tool/zap-generated/test/Commands.h
+++ b/zzz_generated/chip-tool/zap-generated/test/Commands.h
@@ -135,7 +135,6 @@ class TestList : public Command
printf("Test_TC_OO_1_1\n");
printf("Test_TC_OO_2_1\n");
printf("Test_TC_OO_2_2\n");
- printf("Test_TC_OO_2_3\n");
printf("Test_TC_OO_2_4\n");
printf("Test_TC_PS_1_1\n");
printf("Test_TC_PS_2_1\n");
@@ -166,6 +165,8 @@ class TestList : public Command
printf("Test_TC_ULABEL_1_1\n");
printf("Test_TC_ULABEL_2_2\n");
printf("Test_TC_ULABEL_2_3\n");
+ printf("Test_TC_ULABEL_2_4\n");
+ printf("Test_TC_ULABEL_2_5\n");
printf("Test_TC_DGWIFI_2_1\n");
printf("Test_TC_DGWIFI_2_3\n");
printf("Test_TC_WNCV_1_1\n");
@@ -218,9 +219,9 @@ class TestList : public Command
printf("TestArmFailSafe\n");
printf("TestFanControl\n");
printf("TestMultiAdmin\n");
- printf("Test_TC_SWDIAG_1_1\n");
- printf("Test_TC_SWDIAG_2_1\n");
- printf("Test_TC_SWDIAG_3_1\n");
+ printf("Test_TC_DGSW_2_1\n");
+ printf("Test_TC_DGSW_2_2\n");
+ printf("Test_TC_DGSW_2_3\n");
printf("TestSubscribe_OnOff\n");
printf("DL_UsersAndCredentials\n");
printf("DL_LockUnlock\n");
@@ -467,7 +468,9 @@ class ManualTestList : public Command
printf("Test_TC_SC_4_8\n");
printf("Test_TC_SC_4_9\n");
printf("Test_TC_SC_4_10\n");
- printf("Test_TC_SWDIAG_1_2\n");
+ printf("Test_TC_DGSW_1_1\n");
+ printf("Test_TC_DGSW_3_1\n");
+ printf("Test_TC_DGSW_3_2\n");
printf("Test_TC_DGWIFI_1_1\n");
printf("Test_TC_DGWIFI_2_2\n");
printf("Test_TC_DGWIFI_3_1\n");
@@ -500,14 +503,12 @@ class ManualTestList : public Command
printf("Test_TC_DL_2_6\n");
printf("Test_TC_DL_2_8\n");
printf("Test_TC_DL_2_10\n");
- printf("Test_TC_LC_2_3\n");
- printf("Test_TC_LC_2_4\n");
- printf("Test_TC_LC_2_5\n");
printf("Test_TC_LCFG_1_1\n");
printf("Test_TC_LCFG_2_1\n");
printf("Test_TC_LCFG_3_1\n");
printf("Test_TC_LVL_2_3\n");
printf("Test_TC_LVL_8_1\n");
+ printf("Test_TC_OO_2_3\n");
printf("Test_TC_OO_3_1\n");
printf("Test_TC_OO_3_2\n");
printf("Test_TC_RH_2_2\n");
@@ -604,8 +605,8 @@ class TestAccessControlClusterSuite : public TestCommand
{
auto iter_0 = value.begin();
VerifyOrReturn(CheckNextListItemDecodes("acl", iter_0, 0));
- VerifyOrReturn(CheckValue("acl[0].privilege", iter_0.GetValue().privilege, 5));
- VerifyOrReturn(CheckValue("acl[0].authMode", iter_0.GetValue().authMode, 2));
+ VerifyOrReturn(CheckValue("acl[0].privilege", iter_0.GetValue().privilege, 5U));
+ VerifyOrReturn(CheckValue("acl[0].authMode", iter_0.GetValue().authMode, 2U));
VerifyOrReturn(CheckValueNull("acl[0].subjects", iter_0.GetValue().subjects));
VerifyOrReturn(CheckValueNonNull("acl[0].targets", iter_0.GetValue().targets));
{
@@ -636,10 +637,10 @@ class TestAccessControlClusterSuite : public TestCommand
VerifyOrReturn(
CheckNoMoreListItems("acl[0].targets.Value()", iter_3, 3));
}
- VerifyOrReturn(CheckValue("acl[0].fabricIndex", iter_0.GetValue().fabricIndex, 1));
+ VerifyOrReturn(CheckValue("acl[0].fabricIndex", iter_0.GetValue().fabricIndex, 1U));
VerifyOrReturn(CheckNextListItemDecodes("acl", iter_0, 1));
- VerifyOrReturn(CheckValue("acl[1].privilege", iter_0.GetValue().privilege, 1));
- VerifyOrReturn(CheckValue("acl[1].authMode", iter_0.GetValue().authMode, 2));
+ VerifyOrReturn(CheckValue("acl[1].privilege", iter_0.GetValue().privilege, 1U));
+ VerifyOrReturn(CheckValue("acl[1].authMode", iter_0.GetValue().authMode, 2U));
VerifyOrReturn(CheckValueNonNull("acl[1].subjects", iter_0.GetValue().subjects));
{
auto iter_3 = iter_0.GetValue().subjects.Value().begin();
@@ -687,10 +688,10 @@ class TestAccessControlClusterSuite : public TestCommand
VerifyOrReturn(
CheckNoMoreListItems("acl[1].targets.Value()", iter_3, 3));
}
- VerifyOrReturn(CheckValue("acl[1].fabricIndex", iter_0.GetValue().fabricIndex, 1));
+ VerifyOrReturn(CheckValue("acl[1].fabricIndex", iter_0.GetValue().fabricIndex, 1U));
VerifyOrReturn(CheckNextListItemDecodes("acl", iter_0, 2));
- VerifyOrReturn(CheckValue("acl[2].privilege", iter_0.GetValue().privilege, 3));
- VerifyOrReturn(CheckValue("acl[2].authMode", iter_0.GetValue().authMode, 3));
+ VerifyOrReturn(CheckValue("acl[2].privilege", iter_0.GetValue().privilege, 3U));
+ VerifyOrReturn(CheckValue("acl[2].authMode", iter_0.GetValue().authMode, 3U));
VerifyOrReturn(CheckValueNonNull("acl[2].subjects", iter_0.GetValue().subjects));
{
auto iter_3 = iter_0.GetValue().subjects.Value().begin();
@@ -738,7 +739,7 @@ class TestAccessControlClusterSuite : public TestCommand
VerifyOrReturn(
CheckNoMoreListItems("acl[2].targets.Value()", iter_3, 3));
}
- VerifyOrReturn(CheckValue("acl[2].fabricIndex", iter_0.GetValue().fabricIndex, 1));
+ VerifyOrReturn(CheckValue("acl[2].fabricIndex", iter_0.GetValue().fabricIndex, 1U));
VerifyOrReturn(CheckNoMoreListItems("acl", iter_0, 3));
}
}
@@ -755,17 +756,17 @@ class TestAccessControlClusterSuite : public TestCommand
{
auto iter_0 = value.begin();
VerifyOrReturn(CheckNextListItemDecodes("acl", iter_0, 0));
- VerifyOrReturn(CheckValue("acl[0].privilege", iter_0.GetValue().privilege, 5));
- VerifyOrReturn(CheckValue("acl[0].authMode", iter_0.GetValue().authMode, 2));
+ VerifyOrReturn(CheckValue("acl[0].privilege", iter_0.GetValue().privilege, 5U));
+ VerifyOrReturn(CheckValue("acl[0].authMode", iter_0.GetValue().authMode, 2U));
VerifyOrReturn(CheckValueNull("acl[0].subjects", iter_0.GetValue().subjects));
VerifyOrReturn(CheckValueNull("acl[0].targets", iter_0.GetValue().targets));
- VerifyOrReturn(CheckValue("acl[0].fabricIndex", iter_0.GetValue().fabricIndex, 1));
+ VerifyOrReturn(CheckValue("acl[0].fabricIndex", iter_0.GetValue().fabricIndex, 1U));
VerifyOrReturn(CheckNextListItemDecodes("acl", iter_0, 1));
- VerifyOrReturn(CheckValue("acl[1].privilege", iter_0.GetValue().privilege, 1));
- VerifyOrReturn(CheckValue("acl[1].authMode", iter_0.GetValue().authMode, 2));
+ VerifyOrReturn(CheckValue("acl[1].privilege", iter_0.GetValue().privilege, 1U));
+ VerifyOrReturn(CheckValue("acl[1].authMode", iter_0.GetValue().authMode, 2U));
VerifyOrReturn(CheckValueNull("acl[1].subjects", iter_0.GetValue().subjects));
VerifyOrReturn(CheckValueNull("acl[1].targets", iter_0.GetValue().targets));
- VerifyOrReturn(CheckValue("acl[1].fabricIndex", iter_0.GetValue().fabricIndex, 1));
+ VerifyOrReturn(CheckValue("acl[1].fabricIndex", iter_0.GetValue().fabricIndex, 1U));
VerifyOrReturn(CheckNoMoreListItems("acl", iter_0, 2));
}
}
@@ -782,11 +783,11 @@ class TestAccessControlClusterSuite : public TestCommand
{
auto iter_0 = value.begin();
VerifyOrReturn(CheckNextListItemDecodes("acl", iter_0, 0));
- VerifyOrReturn(CheckValue("acl[0].privilege", iter_0.GetValue().privilege, 5));
- VerifyOrReturn(CheckValue("acl[0].authMode", iter_0.GetValue().authMode, 2));
+ VerifyOrReturn(CheckValue("acl[0].privilege", iter_0.GetValue().privilege, 5U));
+ VerifyOrReturn(CheckValue("acl[0].authMode", iter_0.GetValue().authMode, 2U));
VerifyOrReturn(CheckValueNull("acl[0].subjects", iter_0.GetValue().subjects));
VerifyOrReturn(CheckValueNull("acl[0].targets", iter_0.GetValue().targets));
- VerifyOrReturn(CheckValue("acl[0].fabricIndex", iter_0.GetValue().fabricIndex, 1));
+ VerifyOrReturn(CheckValue("acl[0].fabricIndex", iter_0.GetValue().fabricIndex, 1U));
VerifyOrReturn(CheckNoMoreListItems("acl", iter_0, 1));
}
}
@@ -803,11 +804,11 @@ class TestAccessControlClusterSuite : public TestCommand
{
auto iter_0 = value.begin();
VerifyOrReturn(CheckNextListItemDecodes("acl", iter_0, 0));
- VerifyOrReturn(CheckValue("acl[0].privilege", iter_0.GetValue().privilege, 5));
- VerifyOrReturn(CheckValue("acl[0].authMode", iter_0.GetValue().authMode, 2));
+ VerifyOrReturn(CheckValue("acl[0].privilege", iter_0.GetValue().privilege, 5U));
+ VerifyOrReturn(CheckValue("acl[0].authMode", iter_0.GetValue().authMode, 2U));
VerifyOrReturn(CheckValueNull("acl[0].subjects", iter_0.GetValue().subjects));
VerifyOrReturn(CheckValueNull("acl[0].targets", iter_0.GetValue().targets));
- VerifyOrReturn(CheckValue("acl[0].fabricIndex", iter_0.GetValue().fabricIndex, 1));
+ VerifyOrReturn(CheckValue("acl[0].fabricIndex", iter_0.GetValue().fabricIndex, 1U));
VerifyOrReturn(CheckNoMoreListItems("acl", iter_0, 1));
}
}
@@ -824,11 +825,11 @@ class TestAccessControlClusterSuite : public TestCommand
{
auto iter_0 = value.begin();
VerifyOrReturn(CheckNextListItemDecodes("acl", iter_0, 0));
- VerifyOrReturn(CheckValue("acl[0].privilege", iter_0.GetValue().privilege, 5));
- VerifyOrReturn(CheckValue("acl[0].authMode", iter_0.GetValue().authMode, 2));
+ VerifyOrReturn(CheckValue("acl[0].privilege", iter_0.GetValue().privilege, 5U));
+ VerifyOrReturn(CheckValue("acl[0].authMode", iter_0.GetValue().authMode, 2U));
VerifyOrReturn(CheckValueNull("acl[0].subjects", iter_0.GetValue().subjects));
VerifyOrReturn(CheckValueNull("acl[0].targets", iter_0.GetValue().targets));
- VerifyOrReturn(CheckValue("acl[0].fabricIndex", iter_0.GetValue().fabricIndex, 1));
+ VerifyOrReturn(CheckValue("acl[0].fabricIndex", iter_0.GetValue().fabricIndex, 1U));
VerifyOrReturn(CheckNoMoreListItems("acl", iter_0, 1));
}
}
@@ -845,11 +846,11 @@ class TestAccessControlClusterSuite : public TestCommand
{
auto iter_0 = value.begin();
VerifyOrReturn(CheckNextListItemDecodes("acl", iter_0, 0));
- VerifyOrReturn(CheckValue("acl[0].privilege", iter_0.GetValue().privilege, 5));
- VerifyOrReturn(CheckValue("acl[0].authMode", iter_0.GetValue().authMode, 2));
+ VerifyOrReturn(CheckValue("acl[0].privilege", iter_0.GetValue().privilege, 5U));
+ VerifyOrReturn(CheckValue("acl[0].authMode", iter_0.GetValue().authMode, 2U));
VerifyOrReturn(CheckValueNull("acl[0].subjects", iter_0.GetValue().subjects));
VerifyOrReturn(CheckValueNull("acl[0].targets", iter_0.GetValue().targets));
- VerifyOrReturn(CheckValue("acl[0].fabricIndex", iter_0.GetValue().fabricIndex, 1));
+ VerifyOrReturn(CheckValue("acl[0].fabricIndex", iter_0.GetValue().fabricIndex, 1U));
VerifyOrReturn(CheckNoMoreListItems("acl", iter_0, 1));
}
}
@@ -866,11 +867,11 @@ class TestAccessControlClusterSuite : public TestCommand
{
auto iter_0 = value.begin();
VerifyOrReturn(CheckNextListItemDecodes("acl", iter_0, 0));
- VerifyOrReturn(CheckValue("acl[0].privilege", iter_0.GetValue().privilege, 5));
- VerifyOrReturn(CheckValue("acl[0].authMode", iter_0.GetValue().authMode, 2));
+ VerifyOrReturn(CheckValue("acl[0].privilege", iter_0.GetValue().privilege, 5U));
+ VerifyOrReturn(CheckValue("acl[0].authMode", iter_0.GetValue().authMode, 2U));
VerifyOrReturn(CheckValueNull("acl[0].subjects", iter_0.GetValue().subjects));
VerifyOrReturn(CheckValueNull("acl[0].targets", iter_0.GetValue().targets));
- VerifyOrReturn(CheckValue("acl[0].fabricIndex", iter_0.GetValue().fabricIndex, 1));
+ VerifyOrReturn(CheckValue("acl[0].fabricIndex", iter_0.GetValue().fabricIndex, 1U));
VerifyOrReturn(CheckNoMoreListItems("acl", iter_0, 1));
}
}
@@ -887,11 +888,11 @@ class TestAccessControlClusterSuite : public TestCommand
{
auto iter_0 = value.begin();
VerifyOrReturn(CheckNextListItemDecodes("acl", iter_0, 0));
- VerifyOrReturn(CheckValue("acl[0].privilege", iter_0.GetValue().privilege, 5));
- VerifyOrReturn(CheckValue("acl[0].authMode", iter_0.GetValue().authMode, 2));
+ VerifyOrReturn(CheckValue("acl[0].privilege", iter_0.GetValue().privilege, 5U));
+ VerifyOrReturn(CheckValue("acl[0].authMode", iter_0.GetValue().authMode, 2U));
VerifyOrReturn(CheckValueNull("acl[0].subjects", iter_0.GetValue().subjects));
VerifyOrReturn(CheckValueNull("acl[0].targets", iter_0.GetValue().targets));
- VerifyOrReturn(CheckValue("acl[0].fabricIndex", iter_0.GetValue().fabricIndex, 1));
+ VerifyOrReturn(CheckValue("acl[0].fabricIndex", iter_0.GetValue().fabricIndex, 1U));
VerifyOrReturn(CheckNoMoreListItems("acl", iter_0, 1));
}
}
@@ -908,8 +909,8 @@ class TestAccessControlClusterSuite : public TestCommand
{
auto iter_0 = value.begin();
VerifyOrReturn(CheckNextListItemDecodes("acl", iter_0, 0));
- VerifyOrReturn(CheckValue("acl[0].privilege", iter_0.GetValue().privilege, 5));
- VerifyOrReturn(CheckValue("acl[0].authMode", iter_0.GetValue().authMode, 2));
+ VerifyOrReturn(CheckValue("acl[0].privilege", iter_0.GetValue().privilege, 5U));
+ VerifyOrReturn(CheckValue("acl[0].authMode", iter_0.GetValue().authMode, 2U));
VerifyOrReturn(CheckValueNull("acl[0].subjects", iter_0.GetValue().subjects));
VerifyOrReturn(CheckValueNonNull("acl[0].targets", iter_0.GetValue().targets));
{
@@ -940,10 +941,10 @@ class TestAccessControlClusterSuite : public TestCommand
VerifyOrReturn(
CheckNoMoreListItems("acl[0].targets.Value()", iter_3, 3));
}
- VerifyOrReturn(CheckValue("acl[0].fabricIndex", iter_0.GetValue().fabricIndex, 1));
+ VerifyOrReturn(CheckValue("acl[0].fabricIndex", iter_0.GetValue().fabricIndex, 1U));
VerifyOrReturn(CheckNextListItemDecodes("acl", iter_0, 1));
- VerifyOrReturn(CheckValue("acl[1].privilege", iter_0.GetValue().privilege, 1));
- VerifyOrReturn(CheckValue("acl[1].authMode", iter_0.GetValue().authMode, 2));
+ VerifyOrReturn(CheckValue("acl[1].privilege", iter_0.GetValue().privilege, 1U));
+ VerifyOrReturn(CheckValue("acl[1].authMode", iter_0.GetValue().authMode, 2U));
VerifyOrReturn(CheckValueNonNull("acl[1].subjects", iter_0.GetValue().subjects));
{
auto iter_3 = iter_0.GetValue().subjects.Value().begin();
@@ -991,10 +992,10 @@ class TestAccessControlClusterSuite : public TestCommand
VerifyOrReturn(
CheckNoMoreListItems("acl[1].targets.Value()", iter_3, 3));
}
- VerifyOrReturn(CheckValue("acl[1].fabricIndex", iter_0.GetValue().fabricIndex, 1));
+ VerifyOrReturn(CheckValue("acl[1].fabricIndex", iter_0.GetValue().fabricIndex, 1U));
VerifyOrReturn(CheckNextListItemDecodes("acl", iter_0, 2));
- VerifyOrReturn(CheckValue("acl[2].privilege", iter_0.GetValue().privilege, 3));
- VerifyOrReturn(CheckValue("acl[2].authMode", iter_0.GetValue().authMode, 3));
+ VerifyOrReturn(CheckValue("acl[2].privilege", iter_0.GetValue().privilege, 3U));
+ VerifyOrReturn(CheckValue("acl[2].authMode", iter_0.GetValue().authMode, 3U));
VerifyOrReturn(CheckValueNonNull("acl[2].subjects", iter_0.GetValue().subjects));
{
auto iter_3 = iter_0.GetValue().subjects.Value().begin();
@@ -1042,7 +1043,7 @@ class TestAccessControlClusterSuite : public TestCommand
VerifyOrReturn(
CheckNoMoreListItems("acl[2].targets.Value()", iter_3, 3));
}
- VerifyOrReturn(CheckValue("acl[2].fabricIndex", iter_0.GetValue().fabricIndex, 1));
+ VerifyOrReturn(CheckValue("acl[2].fabricIndex", iter_0.GetValue().fabricIndex, 1U));
VerifyOrReturn(CheckNoMoreListItems("acl", iter_0, 3));
}
}
@@ -1059,11 +1060,11 @@ class TestAccessControlClusterSuite : public TestCommand
{
auto iter_0 = value.begin();
VerifyOrReturn(CheckNextListItemDecodes("acl", iter_0, 0));
- VerifyOrReturn(CheckValue("acl[0].privilege", iter_0.GetValue().privilege, 5));
- VerifyOrReturn(CheckValue("acl[0].authMode", iter_0.GetValue().authMode, 2));
+ VerifyOrReturn(CheckValue("acl[0].privilege", iter_0.GetValue().privilege, 5U));
+ VerifyOrReturn(CheckValue("acl[0].authMode", iter_0.GetValue().authMode, 2U));
VerifyOrReturn(CheckValueNull("acl[0].subjects", iter_0.GetValue().subjects));
VerifyOrReturn(CheckValueNull("acl[0].targets", iter_0.GetValue().targets));
- VerifyOrReturn(CheckValue("acl[0].fabricIndex", iter_0.GetValue().fabricIndex, 1));
+ VerifyOrReturn(CheckValue("acl[0].fabricIndex", iter_0.GetValue().fabricIndex, 1U));
VerifyOrReturn(CheckNoMoreListItems("acl", iter_0, 1));
}
}
@@ -1152,7 +1153,7 @@ class TestAccessControlClusterSuite : public TestCommand
chip::app::DataModel::List(listHolder_3->mList,
3);
}
- listHolder_0->mList[0].fabricIndex = 0;
+ listHolder_0->mList[0].fabricIndex = 0U;
listHolder_0->mList[1].privilege = static_cast(1);
listHolder_0->mList[1].authMode = static_cast(2);
@@ -1193,7 +1194,7 @@ class TestAccessControlClusterSuite : public TestCommand
chip::app::DataModel::List(listHolder_3->mList,
3);
}
- listHolder_0->mList[1].fabricIndex = 0;
+ listHolder_0->mList[1].fabricIndex = 0U;
listHolder_0->mList[2].privilege = static_cast(3);
listHolder_0->mList[2].authMode = static_cast(3);
@@ -1234,7 +1235,7 @@ class TestAccessControlClusterSuite : public TestCommand
chip::app::DataModel::List(listHolder_3->mList,
3);
}
- listHolder_0->mList[2].fabricIndex = 0;
+ listHolder_0->mList[2].fabricIndex = 0U;
value = chip::app::DataModel::List(
listHolder_0->mList, 3);
@@ -1260,7 +1261,7 @@ class TestAccessControlClusterSuite : public TestCommand
listHolder_0->mList[0].authMode = static_cast(2);
listHolder_0->mList[0].subjects.SetNull();
listHolder_0->mList[0].targets.SetNull();
- listHolder_0->mList[0].fabricIndex = 0;
+ listHolder_0->mList[0].fabricIndex = 0U;
listHolder_0->mList[1].privilege = static_cast(1);
listHolder_0->mList[1].authMode = static_cast(2);
@@ -1271,7 +1272,7 @@ class TestAccessControlClusterSuite : public TestCommand
listHolder_0->mList[1].targets.Value() =
chip::app::DataModel::List();
- listHolder_0->mList[1].fabricIndex = 0;
+ listHolder_0->mList[1].fabricIndex = 0U;
value = chip::app::DataModel::List(
listHolder_0->mList, 2);
@@ -1297,13 +1298,13 @@ class TestAccessControlClusterSuite : public TestCommand
listHolder_0->mList[0].authMode = static_cast(2);
listHolder_0->mList[0].subjects.SetNull();
listHolder_0->mList[0].targets.SetNull();
- listHolder_0->mList[0].fabricIndex = 0;
+ listHolder_0->mList[0].fabricIndex = 0U;
listHolder_0->mList[1].privilege = static_cast(5);
listHolder_0->mList[1].authMode = static_cast(3);
listHolder_0->mList[1].subjects.SetNull();
listHolder_0->mList[1].targets.SetNull();
- listHolder_0->mList[1].fabricIndex = 0;
+ listHolder_0->mList[1].fabricIndex = 0U;
value = chip::app::DataModel::List(
listHolder_0->mList, 2);
@@ -1329,13 +1330,13 @@ class TestAccessControlClusterSuite : public TestCommand
listHolder_0->mList[0].authMode = static_cast(2);
listHolder_0->mList[0].subjects.SetNull();
listHolder_0->mList[0].targets.SetNull();
- listHolder_0->mList[0].fabricIndex = 0;
+ listHolder_0->mList[0].fabricIndex = 0U;
listHolder_0->mList[1].privilege = static_cast(1);
listHolder_0->mList[1].authMode = static_cast(1);
listHolder_0->mList[1].subjects.SetNull();
listHolder_0->mList[1].targets.SetNull();
- listHolder_0->mList[1].fabricIndex = 0;
+ listHolder_0->mList[1].fabricIndex = 0U;
value = chip::app::DataModel::List(
listHolder_0->mList, 2);
@@ -1361,7 +1362,7 @@ class TestAccessControlClusterSuite : public TestCommand
listHolder_0->mList[0].authMode = static_cast(2);
listHolder_0->mList[0].subjects.SetNull();
listHolder_0->mList[0].targets.SetNull();
- listHolder_0->mList[0].fabricIndex = 0;
+ listHolder_0->mList[0].fabricIndex = 0U;
listHolder_0->mList[1].privilege = static_cast(1);
listHolder_0->mList[1].authMode = static_cast(2);
@@ -1374,7 +1375,7 @@ class TestAccessControlClusterSuite : public TestCommand
listHolder_0->mList[1].subjects.Value() = chip::app::DataModel::List(listHolder_3->mList, 1);
}
listHolder_0->mList[1].targets.SetNull();
- listHolder_0->mList[1].fabricIndex = 0;
+ listHolder_0->mList[1].fabricIndex = 0U;
value = chip::app::DataModel::List(
listHolder_0->mList, 2);
@@ -1400,7 +1401,7 @@ class TestAccessControlClusterSuite : public TestCommand
listHolder_0->mList[0].authMode = static_cast(2);
listHolder_0->mList[0].subjects.SetNull();
listHolder_0->mList[0].targets.SetNull();
- listHolder_0->mList[0].fabricIndex = 0;
+ listHolder_0->mList[0].fabricIndex = 0U;
listHolder_0->mList[1].privilege = static_cast(1);
listHolder_0->mList[1].authMode = static_cast(2);
@@ -1419,7 +1420,7 @@ class TestAccessControlClusterSuite : public TestCommand
chip::app::DataModel::List(listHolder_3->mList,
1);
}
- listHolder_0->mList[1].fabricIndex = 0;
+ listHolder_0->mList[1].fabricIndex = 0U;
value = chip::app::DataModel::List(
listHolder_0->mList, 2);
@@ -1445,7 +1446,7 @@ class TestAccessControlClusterSuite : public TestCommand
listHolder_0->mList[0].authMode = static_cast(2);
listHolder_0->mList[0].subjects.SetNull();
listHolder_0->mList[0].targets.SetNull();
- listHolder_0->mList[0].fabricIndex = 0;
+ listHolder_0->mList[0].fabricIndex = 0U;
listHolder_0->mList[1].privilege = static_cast(1);
listHolder_0->mList[1].authMode = static_cast(2);
@@ -1477,7 +1478,7 @@ class TestAccessControlClusterSuite : public TestCommand
listHolder_0->mList[1].subjects.Value() = chip::app::DataModel::List(listHolder_3->mList, 20);
}
listHolder_0->mList[1].targets.SetNull();
- listHolder_0->mList[1].fabricIndex = 0;
+ listHolder_0->mList[1].fabricIndex = 0U;
value = chip::app::DataModel::List(
listHolder_0->mList, 2);
@@ -1503,7 +1504,7 @@ class TestAccessControlClusterSuite : public TestCommand
listHolder_0->mList[0].authMode = static_cast(2);
listHolder_0->mList[0].subjects.SetNull();
listHolder_0->mList[0].targets.SetNull();
- listHolder_0->mList[0].fabricIndex = 0;
+ listHolder_0->mList[0].fabricIndex = 0U;
listHolder_0->mList[1].privilege = static_cast(1);
listHolder_0->mList[1].authMode = static_cast(2);
@@ -1618,7 +1619,7 @@ class TestAccessControlClusterSuite : public TestCommand
chip::app::DataModel::List(listHolder_3->mList,
20);
}
- listHolder_0->mList[1].fabricIndex = 0;
+ listHolder_0->mList[1].fabricIndex = 0U;
value = chip::app::DataModel::List(
listHolder_0->mList, 2);
@@ -1669,7 +1670,7 @@ class TestAccessControlClusterSuite : public TestCommand
chip::app::DataModel::List(listHolder_3->mList,
3);
}
- listHolder_0->mList[0].fabricIndex = 0;
+ listHolder_0->mList[0].fabricIndex = 0U;
listHolder_0->mList[1].privilege = static_cast(1);
listHolder_0->mList[1].authMode = static_cast(2);
@@ -1710,7 +1711,7 @@ class TestAccessControlClusterSuite : public TestCommand
chip::app::DataModel::List(listHolder_3->mList,
3);
}
- listHolder_0->mList[1].fabricIndex = 0;
+ listHolder_0->mList[1].fabricIndex = 0U;
listHolder_0->mList[2].privilege = static_cast(3);
listHolder_0->mList[2].authMode = static_cast(3);
@@ -1751,7 +1752,7 @@ class TestAccessControlClusterSuite : public TestCommand
chip::app::DataModel::List(listHolder_3->mList,
3);
}
- listHolder_0->mList[2].fabricIndex = 0;
+ listHolder_0->mList[2].fabricIndex = 0U;
listHolder_0->mList[3].privilege = static_cast(1);
listHolder_0->mList[3].authMode = static_cast(2);
@@ -1792,7 +1793,7 @@ class TestAccessControlClusterSuite : public TestCommand
chip::app::DataModel::List(listHolder_3->mList,
3);
}
- listHolder_0->mList[3].fabricIndex = 0;
+ listHolder_0->mList[3].fabricIndex = 0U;
value = chip::app::DataModel::List(
listHolder_0->mList, 4);
@@ -1818,7 +1819,7 @@ class TestAccessControlClusterSuite : public TestCommand
listHolder_0->mList[0].authMode = static_cast(2);
listHolder_0->mList[0].subjects.SetNull();
listHolder_0->mList[0].targets.SetNull();
- listHolder_0->mList[0].fabricIndex = 0;
+ listHolder_0->mList[0].fabricIndex = 0U;
value = chip::app::DataModel::List(
listHolder_0->mList, 1);
@@ -2098,7 +2099,7 @@ class Test_TC_BI_2_1Suite : public TestCommand
{
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
- VerifyOrReturn(CheckValue("statusFlags", value, 0));
+ VerifyOrReturn(CheckValue("statusFlags", value, 0U));
}
break;
case 9:
@@ -2107,8 +2108,8 @@ class Test_TC_BI_2_1Suite : public TestCommand
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
VerifyOrReturn(CheckConstraintType("value", "", "map8"));
- VerifyOrReturn(CheckConstraintMinValue("value", value, 0));
- VerifyOrReturn(CheckConstraintMaxValue("value", value, 15));
+ VerifyOrReturn(CheckConstraintMinValue("value", value, 0U));
+ VerifyOrReturn(CheckConstraintMaxValue("value", value, 15U));
}
break;
case 10:
@@ -2119,7 +2120,7 @@ class Test_TC_BI_2_1Suite : public TestCommand
{
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
- VerifyOrReturn(CheckValue("statusFlags", value, 0));
+ VerifyOrReturn(CheckValue("statusFlags", value, 0U));
}
break;
default:
@@ -2199,7 +2200,7 @@ class Test_TC_BI_2_1Suite : public TestCommand
LogStep(10, "Write the default values to mandatory non-global attribute: StatusFlags");
ListFreer listFreer;
uint8_t value;
- value = 0;
+ value = 0U;
return WriteAttribute(kIdentityAlpha, GetEndpoint(1), BinaryInputBasic::Id,
BinaryInputBasic::Attributes::StatusFlags::Id, value, chip::NullOptional, chip::NullOptional);
}
@@ -2274,7 +2275,7 @@ class Test_TC_BI_2_2Suite : public TestCommand
{
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
- VerifyOrReturn(CheckValue("statusFlags", value, 0));
+ VerifyOrReturn(CheckValue("statusFlags", value, 0U));
}
break;
case 4:
@@ -2298,7 +2299,7 @@ class Test_TC_BI_2_2Suite : public TestCommand
{
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
- VerifyOrReturn(CheckValue("statusFlags", value, 0));
+ VerifyOrReturn(CheckValue("statusFlags", value, 0U));
}
break;
case 7:
@@ -2306,7 +2307,7 @@ class Test_TC_BI_2_2Suite : public TestCommand
{
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
- VerifyOrReturn(CheckValue("statusFlags", value, 0));
+ VerifyOrReturn(CheckValue("statusFlags", value, 0U));
}
break;
case 8:
@@ -2314,7 +2315,7 @@ class Test_TC_BI_2_2Suite : public TestCommand
{
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
- VerifyOrReturn(CheckValue("statusFlags", value, 0));
+ VerifyOrReturn(CheckValue("statusFlags", value, 0U));
}
break;
default:
@@ -2993,7 +2994,7 @@ class Test_TC_CC_1_1Suite : public TestCommand
class Test_TC_CC_2_1Suite : public TestCommand
{
public:
- Test_TC_CC_2_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_CC_2_1", 60, credsIssuerConfig)
+ Test_TC_CC_2_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_CC_2_1", 61, credsIssuerConfig)
{
AddArgument("nodeId", 0, UINT64_MAX, &mNodeId);
AddArgument("cluster", &mCluster);
@@ -3014,6 +3015,8 @@ class Test_TC_CC_2_1Suite : public TestCommand
chip::Optional mEndpoint;
chip::Optional mTimeout;
+ uint32_t FeatureMapValue;
+
chip::EndpointId GetEndpoint(chip::EndpointId endpoint) { return mEndpoint.HasValue() ? mEndpoint.Value() : endpoint; }
//
@@ -3035,7 +3038,7 @@ class Test_TC_CC_2_1Suite : public TestCommand
{
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
- VerifyOrReturn(CheckValue("currentHue", value, 0));
+ VerifyOrReturn(CheckValue("currentHue", value, 0U));
VerifyOrReturn(CheckConstraintType("value", "", "uint8"));
}
break;
@@ -3044,7 +3047,7 @@ class Test_TC_CC_2_1Suite : public TestCommand
{
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
- VerifyOrReturn(CheckValue("currentSaturation", value, 0));
+ VerifyOrReturn(CheckValue("currentSaturation", value, 0U));
VerifyOrReturn(CheckConstraintType("value", "", "uint8"));
}
break;
@@ -3107,7 +3110,7 @@ class Test_TC_CC_2_1Suite : public TestCommand
{
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
- VerifyOrReturn(CheckValue("colorMode", value, 1));
+ VerifyOrReturn(CheckValue("colorMode", value, 1U));
}
break;
case 10:
@@ -3116,8 +3119,8 @@ class Test_TC_CC_2_1Suite : public TestCommand
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
VerifyOrReturn(CheckConstraintType("value", "", "enum8"));
- VerifyOrReturn(CheckConstraintMinValue("value", value, 0));
- VerifyOrReturn(CheckConstraintMaxValue("value", value, 2));
+ VerifyOrReturn(CheckConstraintMinValue("value", value, 0U));
+ VerifyOrReturn(CheckConstraintMaxValue("value", value, 2U));
}
break;
case 11:
@@ -3125,7 +3128,7 @@ class Test_TC_CC_2_1Suite : public TestCommand
{
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
- VerifyOrReturn(CheckValue("options", value, 0));
+ VerifyOrReturn(CheckValue("options", value, 0U));
VerifyOrReturn(CheckConstraintType("value", "", "map8"));
}
break;
@@ -3143,7 +3146,7 @@ class Test_TC_CC_2_1Suite : public TestCommand
{
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
- VerifyOrReturn(CheckValue("enhancedColorMode", value, 1));
+ VerifyOrReturn(CheckValue("enhancedColorMode", value, 1U));
VerifyOrReturn(CheckConstraintType("value", "", "enum8"));
}
break;
@@ -3152,7 +3155,7 @@ class Test_TC_CC_2_1Suite : public TestCommand
{
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
- VerifyOrReturn(CheckValue("colorLoopActive", value, 0));
+ VerifyOrReturn(CheckValue("colorLoopActive", value, 0U));
VerifyOrReturn(CheckConstraintType("value", "", "uint8"));
}
break;
@@ -3161,7 +3164,7 @@ class Test_TC_CC_2_1Suite : public TestCommand
{
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
- VerifyOrReturn(CheckValue("colorLoopDirection", value, 0));
+ VerifyOrReturn(CheckValue("colorLoopDirection", value, 0U));
VerifyOrReturn(CheckConstraintType("value", "", "uint8"));
}
break;
@@ -3195,12 +3198,21 @@ class Test_TC_CC_2_1Suite : public TestCommand
case 19:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
{
- uint16_t value;
+ uint32_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
- VerifyOrReturn(CheckValue("colorCapabilities", value, 0U));
+
+ FeatureMapValue = value;
}
break;
case 20:
+ VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
+ {
+ uint16_t value;
+ VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
+ VerifyOrReturn(CheckValue("colorCapabilities", value, FeatureMapValue));
+ }
+ break;
+ case 21:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
{
uint16_t value;
@@ -3210,7 +3222,7 @@ class Test_TC_CC_2_1Suite : public TestCommand
VerifyOrReturn(CheckConstraintMaxValue("value", value, 31U));
}
break;
- case 21:
+ case 22:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
{
uint16_t value;
@@ -3218,7 +3230,7 @@ class Test_TC_CC_2_1Suite : public TestCommand
VerifyOrReturn(CheckValue("colorTempPhysicalMinMireds", value, 0U));
}
break;
- case 22:
+ case 23:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
{
uint16_t value;
@@ -3228,7 +3240,7 @@ class Test_TC_CC_2_1Suite : public TestCommand
VerifyOrReturn(CheckConstraintMaxValue("value", value, 65279U));
}
break;
- case 23:
+ case 24:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
{
uint16_t value;
@@ -3236,7 +3248,7 @@ class Test_TC_CC_2_1Suite : public TestCommand
VerifyOrReturn(CheckValue("colorTempPhysicalMaxMireds", value, 65279U));
}
break;
- case 24:
+ case 25:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
{
uint16_t value;
@@ -3246,7 +3258,7 @@ class Test_TC_CC_2_1Suite : public TestCommand
VerifyOrReturn(CheckConstraintMaxValue("value", value, 65279U));
}
break;
- case 25:
+ case 26:
if (IsUnsupported(status.mStatus))
{
return;
@@ -3260,7 +3272,7 @@ class Test_TC_CC_2_1Suite : public TestCommand
VerifyOrReturn(CheckConstraintMaxValue("value", value, 65279U));
}
break;
- case 26:
+ case 27:
if (IsUnsupported(status.mStatus))
{
return;
@@ -3274,7 +3286,7 @@ class Test_TC_CC_2_1Suite : public TestCommand
VerifyOrReturn(CheckConstraintMaxValue("value", value, 65279U));
}
break;
- case 27:
+ case 28:
if (IsUnsupported(status.mStatus))
{
return;
@@ -3287,7 +3299,7 @@ class Test_TC_CC_2_1Suite : public TestCommand
VerifyOrReturn(CheckConstraintType("value", "", "uint16"));
}
break;
- case 28:
+ case 29:
if (IsUnsupported(status.mStatus))
{
return;
@@ -3297,11 +3309,11 @@ class Test_TC_CC_2_1Suite : public TestCommand
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
VerifyOrReturn(CheckConstraintType("value", "", "enum8"));
- VerifyOrReturn(CheckConstraintMinValue("value", value, 0));
- VerifyOrReturn(CheckConstraintMaxValue("value", value, 4));
+ VerifyOrReturn(CheckConstraintMinValue("value", value, 0U));
+ VerifyOrReturn(CheckConstraintMaxValue("value", value, 4U));
}
break;
- case 29:
+ case 30:
if (IsUnsupported(status.mStatus))
{
return;
@@ -3314,17 +3326,17 @@ class Test_TC_CC_2_1Suite : public TestCommand
VerifyOrReturn(CheckConstraintMaxLength("value", value.size(), 254));
}
break;
- case 30:
+ case 31:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
{
chip::app::DataModel::Nullable value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
VerifyOrReturn(CheckConstraintType("value", "", "uint8"));
- VerifyOrReturn(CheckConstraintMinValue("value", value, 0));
- VerifyOrReturn(CheckConstraintMaxValue("value", value, 6));
+ VerifyOrReturn(CheckConstraintMinValue("value", value, 0U));
+ VerifyOrReturn(CheckConstraintMaxValue("value", value, 6U));
}
break;
- case 31:
+ case 32:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
{
uint16_t value;
@@ -3334,7 +3346,7 @@ class Test_TC_CC_2_1Suite : public TestCommand
VerifyOrReturn(CheckConstraintMaxValue("value", value, 65279U));
}
break;
- case 32:
+ case 33:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
{
uint16_t value;
@@ -3344,7 +3356,7 @@ class Test_TC_CC_2_1Suite : public TestCommand
VerifyOrReturn(CheckConstraintMaxValue("value", value, 65279U));
}
break;
- case 33:
+ case 34:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
{
chip::app::DataModel::Nullable value;
@@ -3352,7 +3364,7 @@ class Test_TC_CC_2_1Suite : public TestCommand
VerifyOrReturn(CheckConstraintType("value", "", "uint8"));
}
break;
- case 34:
+ case 35:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
{
uint16_t value;
@@ -3362,7 +3374,7 @@ class Test_TC_CC_2_1Suite : public TestCommand
VerifyOrReturn(CheckConstraintMaxValue("value", value, 65279U));
}
break;
- case 35:
+ case 36:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
{
uint16_t value;
@@ -3372,7 +3384,7 @@ class Test_TC_CC_2_1Suite : public TestCommand
VerifyOrReturn(CheckConstraintMaxValue("value", value, 65279U));
}
break;
- case 36:
+ case 37:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
{
chip::app::DataModel::Nullable value;
@@ -3380,7 +3392,7 @@ class Test_TC_CC_2_1Suite : public TestCommand
VerifyOrReturn(CheckConstraintType("value", "", "uint8"));
}
break;
- case 37:
+ case 38:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
{
uint16_t value;
@@ -3390,7 +3402,7 @@ class Test_TC_CC_2_1Suite : public TestCommand
VerifyOrReturn(CheckConstraintMaxValue("value", value, 65279U));
}
break;
- case 38:
+ case 39:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
{
uint16_t value;
@@ -3400,7 +3412,7 @@ class Test_TC_CC_2_1Suite : public TestCommand
VerifyOrReturn(CheckConstraintMaxValue("value", value, 65279U));
}
break;
- case 39:
+ case 40:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
{
chip::app::DataModel::Nullable value;
@@ -3408,7 +3420,7 @@ class Test_TC_CC_2_1Suite : public TestCommand
VerifyOrReturn(CheckConstraintType("value", "", "uint8"));
}
break;
- case 40:
+ case 41:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
{
uint16_t value;
@@ -3418,7 +3430,7 @@ class Test_TC_CC_2_1Suite : public TestCommand
VerifyOrReturn(CheckConstraintMaxValue("value", value, 65279U));
}
break;
- case 41:
+ case 42:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
{
uint16_t value;
@@ -3428,7 +3440,7 @@ class Test_TC_CC_2_1Suite : public TestCommand
VerifyOrReturn(CheckConstraintMaxValue("value", value, 65279U));
}
break;
- case 42:
+ case 43:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
{
chip::app::DataModel::Nullable value;
@@ -3436,7 +3448,7 @@ class Test_TC_CC_2_1Suite : public TestCommand
VerifyOrReturn(CheckConstraintType("value", "", "uint8"));
}
break;
- case 43:
+ case 44:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
{
uint16_t value;
@@ -3446,7 +3458,7 @@ class Test_TC_CC_2_1Suite : public TestCommand
VerifyOrReturn(CheckConstraintMaxValue("value", value, 65279U));
}
break;
- case 44:
+ case 45:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
{
uint16_t value;
@@ -3456,7 +3468,7 @@ class Test_TC_CC_2_1Suite : public TestCommand
VerifyOrReturn(CheckConstraintMaxValue("value", value, 65279U));
}
break;
- case 45:
+ case 46:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
{
chip::app::DataModel::Nullable value;
@@ -3464,7 +3476,7 @@ class Test_TC_CC_2_1Suite : public TestCommand
VerifyOrReturn(CheckConstraintType("value", "", "uint8"));
}
break;
- case 46:
+ case 47:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
{
uint16_t value;
@@ -3474,7 +3486,7 @@ class Test_TC_CC_2_1Suite : public TestCommand
VerifyOrReturn(CheckConstraintMaxValue("value", value, 65279U));
}
break;
- case 47:
+ case 48:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
{
uint16_t value;
@@ -3484,7 +3496,7 @@ class Test_TC_CC_2_1Suite : public TestCommand
VerifyOrReturn(CheckConstraintMaxValue("value", value, 65279U));
}
break;
- case 48:
+ case 49:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
{
chip::app::DataModel::Nullable value;
@@ -3492,7 +3504,7 @@ class Test_TC_CC_2_1Suite : public TestCommand
VerifyOrReturn(CheckConstraintType("value", "", "uint8"));
}
break;
- case 49:
+ case 50:
if (IsUnsupported(status.mStatus))
{
return;
@@ -3506,7 +3518,7 @@ class Test_TC_CC_2_1Suite : public TestCommand
VerifyOrReturn(CheckConstraintMaxValue("value", value, 65279U));
}
break;
- case 50:
+ case 51:
if (IsUnsupported(status.mStatus))
{
return;
@@ -3520,7 +3532,7 @@ class Test_TC_CC_2_1Suite : public TestCommand
VerifyOrReturn(CheckConstraintMaxValue("value", value, 65279U));
}
break;
- case 51:
+ case 52:
if (IsUnsupported(status.mStatus))
{
return;
@@ -3534,7 +3546,7 @@ class Test_TC_CC_2_1Suite : public TestCommand
VerifyOrReturn(CheckConstraintMaxValue("value", value, 65279U));
}
break;
- case 52:
+ case 53:
if (IsUnsupported(status.mStatus))
{
return;
@@ -3548,7 +3560,7 @@ class Test_TC_CC_2_1Suite : public TestCommand
VerifyOrReturn(CheckConstraintMaxValue("value", value, 65279U));
}
break;
- case 53:
+ case 54:
if (IsUnsupported(status.mStatus))
{
return;
@@ -3560,7 +3572,7 @@ class Test_TC_CC_2_1Suite : public TestCommand
VerifyOrReturn(CheckConstraintType("value", "", "uint8"));
}
break;
- case 54:
+ case 55:
if (IsUnsupported(status.mStatus))
{
return;
@@ -3574,7 +3586,7 @@ class Test_TC_CC_2_1Suite : public TestCommand
VerifyOrReturn(CheckConstraintMaxValue("value", value, 65279U));
}
break;
- case 55:
+ case 56:
if (IsUnsupported(status.mStatus))
{
return;
@@ -3588,7 +3600,7 @@ class Test_TC_CC_2_1Suite : public TestCommand
VerifyOrReturn(CheckConstraintMaxValue("value", value, 65279U));
}
break;
- case 56:
+ case 57:
if (IsUnsupported(status.mStatus))
{
return;
@@ -3600,7 +3612,7 @@ class Test_TC_CC_2_1Suite : public TestCommand
VerifyOrReturn(CheckConstraintType("value", "", "uint8"));
}
break;
- case 57:
+ case 58:
if (IsUnsupported(status.mStatus))
{
return;
@@ -3614,7 +3626,7 @@ class Test_TC_CC_2_1Suite : public TestCommand
VerifyOrReturn(CheckConstraintMaxValue("value", value, 65279U));
}
break;
- case 58:
+ case 59:
if (IsUnsupported(status.mStatus))
{
return;
@@ -3628,7 +3640,7 @@ class Test_TC_CC_2_1Suite : public TestCommand
VerifyOrReturn(CheckConstraintMaxValue("value", value, 65279U));
}
break;
- case 59:
+ case 60:
if (IsUnsupported(status.mStatus))
{
return;
@@ -3664,31 +3676,37 @@ class Test_TC_CC_2_1Suite : public TestCommand
}
case 1: {
LogStep(1, "Validate constraints of attribute: CurrentHue");
+ VerifyOrDo(!ShouldSkip("CC.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentHue::Id, true,
chip::NullOptional);
}
case 2: {
LogStep(2, "Validate constraints of attribute: CurrentSaturation");
+ VerifyOrDo(!ShouldSkip("CC.S.A0001"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentSaturation::Id,
true, chip::NullOptional);
}
case 3: {
LogStep(3, "Reads CurrentX attribute from DUT");
+ VerifyOrDo(!ShouldSkip("CC.S.A0003"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentX::Id, true,
chip::NullOptional);
}
case 4: {
LogStep(4, "Validate constraints of attribute: CurrentX");
+ VerifyOrDo(!ShouldSkip("CC.S.A0003"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentX::Id, true,
chip::NullOptional);
}
case 5: {
LogStep(5, "Reads CurrentY attribute from DUT");
+ VerifyOrDo(!ShouldSkip("CC.S.A0004"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentY::Id, true,
chip::NullOptional);
}
case 6: {
LogStep(6, "Validate constraints of attribute: CurrentY");
+ VerifyOrDo(!ShouldSkip("CC.S.A0004"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentY::Id, true,
chip::NullOptional);
}
@@ -3700,6 +3718,7 @@ class Test_TC_CC_2_1Suite : public TestCommand
}
case 8: {
LogStep(8, "Validate constraints of attribute: ColorTemperatureMireds");
+ VerifyOrDo(!ShouldSkip("CC.S.A0007"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorTemperature::Id,
true, chip::NullOptional);
}
@@ -3711,16 +3730,19 @@ class Test_TC_CC_2_1Suite : public TestCommand
}
case 10: {
LogStep(10, "Validate constraints of attribute: ColorMode");
+ VerifyOrDo(!ShouldSkip("CC.S.A0008"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorMode::Id, true,
chip::NullOptional);
}
case 11: {
LogStep(11, "Validate constraints of attribute: Options");
+ VerifyOrDo(!ShouldSkip("CC.S.A000f"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::Options::Id, true,
chip::NullOptional);
}
case 12: {
LogStep(12, "Validate constraints of attribute: EnhancedCurrentHue");
+ VerifyOrDo(!ShouldSkip("CC.S.A4000"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::EnhancedCurrentHue::Id,
true, chip::NullOptional);
}
@@ -3732,231 +3754,282 @@ class Test_TC_CC_2_1Suite : public TestCommand
}
case 14: {
LogStep(14, "Validate constraints of attribute: ColorLoopActive");
+ VerifyOrDo(!ShouldSkip("CC.S.A4002"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorLoopActive::Id,
true, chip::NullOptional);
}
case 15: {
LogStep(15, "Validate constraints of attribute: ColorLoopDirection");
+ VerifyOrDo(!ShouldSkip("CC.S.A4003"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorLoopDirection::Id,
true, chip::NullOptional);
}
case 16: {
LogStep(16, "Validate constraints of attribute: ColorLoopTime");
+ VerifyOrDo(!ShouldSkip("CC.S.A4004"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorLoopTime::Id,
true, chip::NullOptional);
}
case 17: {
LogStep(17, "Validate constraints of attribute: ColorLoopStartEnhancedHue");
+ VerifyOrDo(!ShouldSkip("CC.S.A4005"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id,
ColorControl::Attributes::ColorLoopStartEnhancedHue::Id, true, chip::NullOptional);
}
case 18: {
LogStep(18, "Validate constraints of attribute: ColorLoopStoredEnhancedHue");
+ VerifyOrDo(!ShouldSkip("CC.S.A4006"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id,
ColorControl::Attributes::ColorLoopStoredEnhancedHue::Id, true, chip::NullOptional);
}
case 19: {
- LogStep(19, "Reads ColorCapabilities attribute from DUT");
- return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorCapabilities::Id,
- true, chip::NullOptional);
+ LogStep(19, "read the optional global attribute: FeatureMap");
+ return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::FeatureMap::Id, true,
+ chip::NullOptional);
}
case 20: {
- LogStep(20, "Validate constraints of attribute: ColorCapabilities");
+ LogStep(20, "Reads ColorCapabilities attribute from DUT");
+ VerifyOrDo(!ShouldSkip("CC.S.A400a"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorCapabilities::Id,
true, chip::NullOptional);
}
case 21: {
- LogStep(21, "Reads ColorTempPhysicalMinMireds attribute from DUT");
- return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id,
- ColorControl::Attributes::ColorTempPhysicalMinMireds::Id, true, chip::NullOptional);
+ LogStep(21, "Validate constraints of attribute: ColorCapabilities");
+ VerifyOrDo(!ShouldSkip("CC.S.A400a"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorCapabilities::Id,
+ true, chip::NullOptional);
}
case 22: {
- LogStep(22, "Validate constraints of attribute: ColorTempPhysicalMinMireds");
+ LogStep(22, "Reads ColorTempPhysicalMinMireds attribute from DUT");
+ VerifyOrDo(!ShouldSkip("CC.S.A400b"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id,
ColorControl::Attributes::ColorTempPhysicalMinMireds::Id, true, chip::NullOptional);
}
case 23: {
- LogStep(23, "Read ColorTempPhysicalMaxMireds attribute from DUT");
+ LogStep(23, "Validate constraints of attribute: ColorTempPhysicalMinMireds");
+ VerifyOrDo(!ShouldSkip("CC.S.A400b"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id,
- ColorControl::Attributes::ColorTempPhysicalMaxMireds::Id, true, chip::NullOptional);
+ ColorControl::Attributes::ColorTempPhysicalMinMireds::Id, true, chip::NullOptional);
}
case 24: {
- LogStep(24, "Validate constraints of attribute: ColorTempPhysicalMaxMireds");
+ LogStep(24, "Read ColorTempPhysicalMaxMireds attribute from DUT");
+ VerifyOrDo(!ShouldSkip("CC.S.A400c"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id,
ColorControl::Attributes::ColorTempPhysicalMaxMireds::Id, true, chip::NullOptional);
}
case 25: {
- LogStep(25, "Read the optional attribute: CoupleColorTempToLevelMinMireds");
+ LogStep(25, "Validate constraints of attribute: ColorTempPhysicalMaxMireds");
+ VerifyOrDo(!ShouldSkip("CC.S.A400c"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id,
- ColorControl::Attributes::CoupleColorTempToLevelMinMireds::Id, true, chip::NullOptional);
+ ColorControl::Attributes::ColorTempPhysicalMaxMireds::Id, true, chip::NullOptional);
}
case 26: {
- LogStep(26, "Read the optional attribute: StartUpColorTemperatureMireds");
+ LogStep(26, "Read the optional attribute: CoupleColorTempToLevelMinMireds");
+ VerifyOrDo(!ShouldSkip("CC.S.A400d"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id,
- ColorControl::Attributes::StartUpColorTemperatureMireds::Id, true, chip::NullOptional);
+ ColorControl::Attributes::CoupleColorTempToLevelMinMireds::Id, true, chip::NullOptional);
}
case 27: {
- LogStep(27, "Validate constraints of attribute: RemainingTime");
+ LogStep(27, "Read the optional attribute: StartUpColorTemperatureMireds");
+ VerifyOrDo(!ShouldSkip("CC.S.A4010"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id,
+ ColorControl::Attributes::StartUpColorTemperatureMireds::Id, true, chip::NullOptional);
+ }
+ case 28: {
+ LogStep(28, "Validate constraints of attribute: RemainingTime");
+ VerifyOrDo(!ShouldSkip("CC.S.A0002"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::RemainingTime::Id,
true, chip::NullOptional);
}
- case 28: {
- LogStep(28, "Read the optional attribute: DriftCompensation");
+ case 29: {
+ LogStep(29, "Read the optional attribute: DriftCompensation");
+ VerifyOrDo(!ShouldSkip("CC.S.A0005"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::DriftCompensation::Id,
true, chip::NullOptional);
}
- case 29: {
- LogStep(29, "Read the optional attribute: CompensationText");
+ case 30: {
+ LogStep(30, "Read the optional attribute: CompensationText");
+ VerifyOrDo(!ShouldSkip("CC.S.A0005"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CompensationText::Id,
true, chip::NullOptional);
}
- case 30: {
- LogStep(30, "Read the mandatory attribute: NumberOfPrimaries");
+ case 31: {
+ LogStep(31, "Read the mandatory attribute: NumberOfPrimaries");
+ VerifyOrDo(!ShouldSkip("CC.S.A0010"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::NumberOfPrimaries::Id,
true, chip::NullOptional);
}
- case 31: {
- LogStep(31, "Read the mandatory attribute: Primary1X");
+ case 32: {
+ LogStep(32, "Read the mandatory attribute: Primary1X");
+ VerifyOrDo(!ShouldSkip("CC.S.A0011"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::Primary1X::Id, true,
chip::NullOptional);
}
- case 32: {
- LogStep(32, "Read the mandatory attribute: Primary1Y");
+ case 33: {
+ LogStep(33, "Read the mandatory attribute: Primary1Y");
+ VerifyOrDo(!ShouldSkip("CC.S.A0012"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::Primary1Y::Id, true,
chip::NullOptional);
}
- case 33: {
- LogStep(33, "Read the mandatory attribute: Primary1Intensity");
+ case 34: {
+ LogStep(34, "Read the mandatory attribute: Primary1Intensity");
+ VerifyOrDo(!ShouldSkip("CC.S.A0013"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::Primary1Intensity::Id,
true, chip::NullOptional);
}
- case 34: {
- LogStep(34, "Read the mandatory attribute: Primary2X");
+ case 35: {
+ LogStep(35, "Read the mandatory attribute: Primary2X");
+ VerifyOrDo(!ShouldSkip("CC.S.A0015"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::Primary2X::Id, true,
chip::NullOptional);
}
- case 35: {
- LogStep(35, "Read the mandatory attribute: Primary2Y");
+ case 36: {
+ LogStep(36, "Read the mandatory attribute: Primary2Y");
+ VerifyOrDo(!ShouldSkip("CC.S.A0016"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::Primary2Y::Id, true,
chip::NullOptional);
}
- case 36: {
- LogStep(36, "Validate constraints of attribute: Primary2Intensity");
+ case 37: {
+ LogStep(37, "Validate constraints of attribute: Primary2Intensity");
+ VerifyOrDo(!ShouldSkip("CC.S.A0017"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::Primary2Intensity::Id,
true, chip::NullOptional);
}
- case 37: {
- LogStep(37, "Read the mandatory attribute: Primary3X");
+ case 38: {
+ LogStep(38, "Read the mandatory attribute: Primary3X");
+ VerifyOrDo(!ShouldSkip("CC.S.A0019"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::Primary3X::Id, true,
chip::NullOptional);
}
- case 38: {
- LogStep(38, "Read the mandatory attribute: Primary3Y");
+ case 39: {
+ LogStep(39, "Read the mandatory attribute: Primary3Y");
+ VerifyOrDo(!ShouldSkip("CC.S.A001a"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::Primary3Y::Id, true,
chip::NullOptional);
}
- case 39: {
- LogStep(39, "Read the mandatory attribute: Primary3Intensity");
+ case 40: {
+ LogStep(40, "Read the mandatory attribute: Primary3Intensity");
+ VerifyOrDo(!ShouldSkip("CC.S.A001b"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::Primary3Intensity::Id,
true, chip::NullOptional);
}
- case 40: {
- LogStep(40, "Read the mandatory attribute: Primary4X");
+ case 41: {
+ LogStep(41, "Read the mandatory attribute: Primary4X");
+ VerifyOrDo(!ShouldSkip("CC.S.A0020"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::Primary4X::Id, true,
chip::NullOptional);
}
- case 41: {
- LogStep(41, "Read the mandatory attribute: Primary4Y");
+ case 42: {
+ LogStep(42, "Read the mandatory attribute: Primary4Y");
+ VerifyOrDo(!ShouldSkip("CC.S.A0021"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::Primary4Y::Id, true,
chip::NullOptional);
}
- case 42: {
- LogStep(42, "Read the mandatory attribute: Primary4Intensity");
+ case 43: {
+ LogStep(43, "Read the mandatory attribute: Primary4Intensity");
+ VerifyOrDo(!ShouldSkip("CC.S.A0022"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::Primary4Intensity::Id,
true, chip::NullOptional);
}
- case 43: {
- LogStep(43, "Read the mandatory attribute: Primary5X");
+ case 44: {
+ LogStep(44, "Read the mandatory attribute: Primary5X");
+ VerifyOrDo(!ShouldSkip("CC.S.A0024"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::Primary5X::Id, true,
chip::NullOptional);
}
- case 44: {
- LogStep(44, "Read the mandatory attribute: Primary5Y");
+ case 45: {
+ LogStep(45, "Read the mandatory attribute: Primary5Y");
+ VerifyOrDo(!ShouldSkip("CC.S.A0025"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::Primary5Y::Id, true,
chip::NullOptional);
}
- case 45: {
- LogStep(45, "Read the mandatory attribute: Primary5Intensity");
+ case 46: {
+ LogStep(46, "Read the mandatory attribute: Primary5Intensity");
+ VerifyOrDo(!ShouldSkip("CC.S.A0026"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::Primary5Intensity::Id,
true, chip::NullOptional);
}
- case 46: {
- LogStep(46, "Read the mandatory attribute: Primary6X");
+ case 47: {
+ LogStep(47, "Read the mandatory attribute: Primary6X");
+ VerifyOrDo(!ShouldSkip("CC.S.A0028"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::Primary6X::Id, true,
chip::NullOptional);
}
- case 47: {
- LogStep(47, "Read the mandatory attribute: Primary6Y");
+ case 48: {
+ LogStep(48, "Read the mandatory attribute: Primary6Y");
+ VerifyOrDo(!ShouldSkip("CC.S.A0029"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::Primary6Y::Id, true,
chip::NullOptional);
}
- case 48: {
- LogStep(48, "Read the mandatory attribute: Primary6Intensity");
+ case 49: {
+ LogStep(49, "Read the mandatory attribute: Primary6Intensity");
+ VerifyOrDo(!ShouldSkip("CC.S.A002a"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::Primary6Intensity::Id,
true, chip::NullOptional);
}
- case 49: {
- LogStep(49, "Read the optional attribute: WhitePointX");
+ case 50: {
+ LogStep(50, "Read the optional attribute: WhitePointX");
+ VerifyOrDo(!ShouldSkip("CC.S.A0030"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::WhitePointX::Id, true,
chip::NullOptional);
}
- case 50: {
- LogStep(50, "Read the optional attribute: WhitePointY");
+ case 51: {
+ LogStep(51, "Read the optional attribute: WhitePointY");
+ VerifyOrDo(!ShouldSkip("CC.S.A0031"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::WhitePointY::Id, true,
chip::NullOptional);
}
- case 51: {
- LogStep(51, "Read the optional attribute: ColorPointRX");
+ case 52: {
+ LogStep(52, "Read the optional attribute: ColorPointRX");
+ VerifyOrDo(!ShouldSkip("CC.S.A0032"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorPointRX::Id, true,
chip::NullOptional);
}
- case 52: {
- LogStep(52, "Read the optional attribute: ColorPointRY");
+ case 53: {
+ LogStep(53, "Read the optional attribute: ColorPointRY");
+ VerifyOrDo(!ShouldSkip("CC.S.A0033"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorPointRY::Id, true,
chip::NullOptional);
}
- case 53: {
- LogStep(53, "Read the optional attribute: ColorPointRIntensity");
+ case 54: {
+ LogStep(54, "Read the optional attribute: ColorPointRIntensity");
+ VerifyOrDo(!ShouldSkip("CC.S.A0034"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id,
ColorControl::Attributes::ColorPointRIntensity::Id, true, chip::NullOptional);
}
- case 54: {
- LogStep(54, "Read the optional attribute: ColorPointGX");
+ case 55: {
+ LogStep(55, "Read the optional attribute: ColorPointGX");
+ VerifyOrDo(!ShouldSkip("CC.S.A0036"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorPointGX::Id, true,
chip::NullOptional);
}
- case 55: {
- LogStep(55, "Read the optional attribute: ColorPointGY");
+ case 56: {
+ LogStep(56, "Read the optional attribute: ColorPointGY");
+ VerifyOrDo(!ShouldSkip("CC.S.A0037"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorPointGY::Id, true,
chip::NullOptional);
}
- case 56: {
- LogStep(56, "Read the optional attribute: ColorPointGIntensity");
+ case 57: {
+ LogStep(57, "Read the optional attribute: ColorPointGIntensity");
+ VerifyOrDo(!ShouldSkip("CC.S.A0038"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id,
ColorControl::Attributes::ColorPointGIntensity::Id, true, chip::NullOptional);
}
- case 57: {
- LogStep(57, "Read the optional attribute: ColorPointBX");
+ case 58: {
+ LogStep(58, "Read the optional attribute: ColorPointBX");
+ VerifyOrDo(!ShouldSkip("CC.S.A003a"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorPointBX::Id, true,
chip::NullOptional);
}
- case 58: {
- LogStep(58, "Read the optional attribute: ColorPointBY");
+ case 59: {
+ LogStep(59, "Read the optional attribute: ColorPointBY");
+ VerifyOrDo(!ShouldSkip("CC.S.A003b"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorPointBY::Id, true,
chip::NullOptional);
}
- case 59: {
- LogStep(59, "Read the optional attribute: ColorPointBIntensity");
+ case 60: {
+ LogStep(60, "Read the optional attribute: ColorPointBIntensity");
+ VerifyOrDo(!ShouldSkip("CC.S.A003c"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id,
ColorControl::Attributes::ColorPointBIntensity::Id, true, chip::NullOptional);
}
@@ -4022,8 +4095,8 @@ class Test_TC_CC_3_1Suite : public TestCommand
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
VerifyOrReturn(CheckConstraintType("value", "", "uint8"));
- VerifyOrReturn(CheckConstraintMinValue("value", value, 0));
- VerifyOrReturn(CheckConstraintMaxValue("value", value, 254));
+ VerifyOrReturn(CheckConstraintMinValue("value", value, 0U));
+ VerifyOrReturn(CheckConstraintMaxValue("value", value, 254U));
}
break;
case 4:
@@ -4039,8 +4112,8 @@ class Test_TC_CC_3_1Suite : public TestCommand
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
VerifyOrReturn(CheckConstraintType("value", "", "uint8"));
- VerifyOrReturn(CheckConstraintMinValue("value", value, 0));
- VerifyOrReturn(CheckConstraintMaxValue("value", value, 254));
+ VerifyOrReturn(CheckConstraintMinValue("value", value, 0U));
+ VerifyOrReturn(CheckConstraintMaxValue("value", value, 254U));
}
break;
case 7:
@@ -4053,8 +4126,8 @@ class Test_TC_CC_3_1Suite : public TestCommand
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
VerifyOrReturn(CheckConstraintType("value", "", "uint8"));
- VerifyOrReturn(CheckConstraintMinValue("value", value, 0));
- VerifyOrReturn(CheckConstraintMaxValue("value", value, 254));
+ VerifyOrReturn(CheckConstraintMinValue("value", value, 0U));
+ VerifyOrReturn(CheckConstraintMaxValue("value", value, 254U));
}
break;
case 9:
@@ -4067,8 +4140,8 @@ class Test_TC_CC_3_1Suite : public TestCommand
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
VerifyOrReturn(CheckConstraintType("value", "", "uint8"));
- VerifyOrReturn(CheckConstraintMinValue("value", value, 0));
- VerifyOrReturn(CheckConstraintMaxValue("value", value, 254));
+ VerifyOrReturn(CheckConstraintMinValue("value", value, 0U));
+ VerifyOrReturn(CheckConstraintMaxValue("value", value, 254U));
}
break;
case 11:
@@ -4084,8 +4157,8 @@ class Test_TC_CC_3_1Suite : public TestCommand
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
VerifyOrReturn(CheckConstraintType("value", "", "uint8"));
- VerifyOrReturn(CheckConstraintMinValue("value", value, 0));
- VerifyOrReturn(CheckConstraintMaxValue("value", value, 254));
+ VerifyOrReturn(CheckConstraintMinValue("value", value, 0U));
+ VerifyOrReturn(CheckConstraintMaxValue("value", value, 254U));
}
break;
case 14:
@@ -4098,8 +4171,8 @@ class Test_TC_CC_3_1Suite : public TestCommand
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
VerifyOrReturn(CheckConstraintType("value", "", "uint8"));
- VerifyOrReturn(CheckConstraintMinValue("value", value, 0));
- VerifyOrReturn(CheckConstraintMaxValue("value", value, 254));
+ VerifyOrReturn(CheckConstraintMinValue("value", value, 0U));
+ VerifyOrReturn(CheckConstraintMaxValue("value", value, 254U));
}
break;
case 16:
@@ -4112,8 +4185,8 @@ class Test_TC_CC_3_1Suite : public TestCommand
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
VerifyOrReturn(CheckConstraintType("value", "", "uint8"));
- VerifyOrReturn(CheckConstraintMinValue("value", value, 0));
- VerifyOrReturn(CheckConstraintMaxValue("value", value, 254));
+ VerifyOrReturn(CheckConstraintMinValue("value", value, 0U));
+ VerifyOrReturn(CheckConstraintMaxValue("value", value, 254U));
}
break;
case 18:
@@ -4129,8 +4202,8 @@ class Test_TC_CC_3_1Suite : public TestCommand
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
VerifyOrReturn(CheckConstraintType("value", "", "uint8"));
- VerifyOrReturn(CheckConstraintMinValue("value", value, 0));
- VerifyOrReturn(CheckConstraintMaxValue("value", value, 254));
+ VerifyOrReturn(CheckConstraintMinValue("value", value, 0U));
+ VerifyOrReturn(CheckConstraintMaxValue("value", value, 254U));
}
break;
case 21:
@@ -4143,8 +4216,8 @@ class Test_TC_CC_3_1Suite : public TestCommand
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
VerifyOrReturn(CheckConstraintType("value", "", "uint8"));
- VerifyOrReturn(CheckConstraintMinValue("value", value, 0));
- VerifyOrReturn(CheckConstraintMaxValue("value", value, 254));
+ VerifyOrReturn(CheckConstraintMinValue("value", value, 0U));
+ VerifyOrReturn(CheckConstraintMaxValue("value", value, 254U));
}
break;
case 23:
@@ -4157,8 +4230,8 @@ class Test_TC_CC_3_1Suite : public TestCommand
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
VerifyOrReturn(CheckConstraintType("value", "", "uint8"));
- VerifyOrReturn(CheckConstraintMinValue("value", value, 0));
- VerifyOrReturn(CheckConstraintMaxValue("value", value, 254));
+ VerifyOrReturn(CheckConstraintMinValue("value", value, 0U));
+ VerifyOrReturn(CheckConstraintMaxValue("value", value, 254U));
}
break;
case 25:
@@ -4174,8 +4247,8 @@ class Test_TC_CC_3_1Suite : public TestCommand
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
VerifyOrReturn(CheckConstraintType("value", "", "uint8"));
- VerifyOrReturn(CheckConstraintMinValue("value", value, 0));
- VerifyOrReturn(CheckConstraintMaxValue("value", value, 254));
+ VerifyOrReturn(CheckConstraintMinValue("value", value, 0U));
+ VerifyOrReturn(CheckConstraintMaxValue("value", value, 254U));
}
break;
case 28:
@@ -4188,8 +4261,8 @@ class Test_TC_CC_3_1Suite : public TestCommand
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
VerifyOrReturn(CheckConstraintType("value", "", "uint8"));
- VerifyOrReturn(CheckConstraintMinValue("value", value, 0));
- VerifyOrReturn(CheckConstraintMaxValue("value", value, 254));
+ VerifyOrReturn(CheckConstraintMinValue("value", value, 0U));
+ VerifyOrReturn(CheckConstraintMaxValue("value", value, 254U));
}
break;
case 30:
@@ -4202,8 +4275,8 @@ class Test_TC_CC_3_1Suite : public TestCommand
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
VerifyOrReturn(CheckConstraintType("value", "", "uint8"));
- VerifyOrReturn(CheckConstraintMinValue("value", value, 0));
- VerifyOrReturn(CheckConstraintMaxValue("value", value, 254));
+ VerifyOrReturn(CheckConstraintMinValue("value", value, 0U));
+ VerifyOrReturn(CheckConstraintMaxValue("value", value, 254U));
}
break;
case 32:
@@ -4253,18 +4326,20 @@ class Test_TC_CC_3_1Suite : public TestCommand
}
case 3: {
LogStep(3, "Reads CurrentHue attribute from DUT");
+ VerifyOrDo(!ShouldSkip("CC.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentHue::Id, true,
chip::NullOptional);
}
case 4: {
LogStep(4, "Move to hue shortest distance command");
+ VerifyOrDo(!ShouldSkip("CC.S.C00.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
ListFreer listFreer;
chip::app::Clusters::ColorControl::Commands::MoveToHue::Type value;
- value.hue = 150;
+ value.hue = 150U;
value.direction = static_cast(0);
value.transitionTime = 300U;
- value.optionsMask = 0;
- value.optionsOverride = 0;
+ value.optionsMask = 0U;
+ value.optionsOverride = 0U;
return SendCommand(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Commands::MoveToHue::Id, value,
chip::NullOptional
@@ -4279,6 +4354,7 @@ class Test_TC_CC_3_1Suite : public TestCommand
}
case 6: {
LogStep(6, "Check current hue attribute value matched the value sent by the last command");
+ VerifyOrDo(!ShouldSkip("CC.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentHue::Id, true,
chip::NullOptional);
}
@@ -4291,6 +4367,7 @@ class Test_TC_CC_3_1Suite : public TestCommand
}
case 8: {
LogStep(8, "Check current hue attribute value matched the value sent by the last command");
+ VerifyOrDo(!ShouldSkip("CC.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentHue::Id, true,
chip::NullOptional);
}
@@ -4303,18 +4380,20 @@ class Test_TC_CC_3_1Suite : public TestCommand
}
case 10: {
LogStep(10, "Check current hue attribute value matched the value sent by the last command");
+ VerifyOrDo(!ShouldSkip("CC.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentHue::Id, true,
chip::NullOptional);
}
case 11: {
LogStep(11, "Move to hue longest distance command");
+ VerifyOrDo(!ShouldSkip("CC.S.C00.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
ListFreer listFreer;
chip::app::Clusters::ColorControl::Commands::MoveToHue::Type value;
- value.hue = 200;
+ value.hue = 200U;
value.direction = static_cast(1);
value.transitionTime = 300U;
- value.optionsMask = 0;
- value.optionsOverride = 0;
+ value.optionsMask = 0U;
+ value.optionsOverride = 0U;
return SendCommand(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Commands::MoveToHue::Id, value,
chip::NullOptional
@@ -4329,6 +4408,7 @@ class Test_TC_CC_3_1Suite : public TestCommand
}
case 13: {
LogStep(13, "Check current hue attribute value matched the value sent by the last command");
+ VerifyOrDo(!ShouldSkip("CC.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentHue::Id, true,
chip::NullOptional);
}
@@ -4341,6 +4421,7 @@ class Test_TC_CC_3_1Suite : public TestCommand
}
case 15: {
LogStep(15, "Check current hue attribute value matched the value sent by the last command");
+ VerifyOrDo(!ShouldSkip("CC.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentHue::Id, true,
chip::NullOptional);
}
@@ -4353,18 +4434,20 @@ class Test_TC_CC_3_1Suite : public TestCommand
}
case 17: {
LogStep(17, "Check current hue attribute value matched the value sent by the last command");
+ VerifyOrDo(!ShouldSkip("CC.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentHue::Id, true,
chip::NullOptional);
}
case 18: {
LogStep(18, "Move to hue up command");
+ VerifyOrDo(!ShouldSkip("CC.S.C00.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
ListFreer listFreer;
chip::app::Clusters::ColorControl::Commands::MoveToHue::Type value;
- value.hue = 250;
+ value.hue = 250U;
value.direction = static_cast(2);
value.transitionTime = 300U;
- value.optionsMask = 0;
- value.optionsOverride = 0;
+ value.optionsMask = 0U;
+ value.optionsOverride = 0U;
return SendCommand(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Commands::MoveToHue::Id, value,
chip::NullOptional
@@ -4379,6 +4462,7 @@ class Test_TC_CC_3_1Suite : public TestCommand
}
case 20: {
LogStep(20, "Check current hue attribute value matched the value sent by the last command");
+ VerifyOrDo(!ShouldSkip("CC.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentHue::Id, true,
chip::NullOptional);
}
@@ -4391,6 +4475,7 @@ class Test_TC_CC_3_1Suite : public TestCommand
}
case 22: {
LogStep(22, "Check current hue attribute value matched the value sent by the last command");
+ VerifyOrDo(!ShouldSkip("CC.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentHue::Id, true,
chip::NullOptional);
}
@@ -4403,18 +4488,20 @@ class Test_TC_CC_3_1Suite : public TestCommand
}
case 24: {
LogStep(24, "Check current hue attribute value matched the value sent by the last command");
+ VerifyOrDo(!ShouldSkip("CC.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentHue::Id, true,
chip::NullOptional);
}
case 25: {
LogStep(25, "Move to hue down command");
+ VerifyOrDo(!ShouldSkip("CC.S.C00.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
ListFreer listFreer;
chip::app::Clusters::ColorControl::Commands::MoveToHue::Type value;
- value.hue = 225;
+ value.hue = 225U;
value.direction = static_cast(3);
value.transitionTime = 300U;
- value.optionsMask = 0;
- value.optionsOverride = 0;
+ value.optionsMask = 0U;
+ value.optionsOverride = 0U;
return SendCommand(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Commands::MoveToHue::Id, value,
chip::NullOptional
@@ -4429,6 +4516,7 @@ class Test_TC_CC_3_1Suite : public TestCommand
}
case 27: {
LogStep(27, "Check current hue attribute value matched the value sent by the last command");
+ VerifyOrDo(!ShouldSkip("CC.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentHue::Id, true,
chip::NullOptional);
}
@@ -4441,6 +4529,7 @@ class Test_TC_CC_3_1Suite : public TestCommand
}
case 29: {
LogStep(29, "Check current hue attribute value matched the value sent by the last command");
+ VerifyOrDo(!ShouldSkip("CC.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentHue::Id, true,
chip::NullOptional);
}
@@ -4453,6 +4542,7 @@ class Test_TC_CC_3_1Suite : public TestCommand
}
case 31: {
LogStep(31, "Check current hue attribute value matched the value sent by the last command");
+ VerifyOrDo(!ShouldSkip("CC.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentHue::Id, true,
chip::NullOptional);
}
@@ -4530,8 +4620,8 @@ class Test_TC_CC_3_2Suite : public TestCommand
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
VerifyOrReturn(CheckConstraintType("value", "", "uint8"));
- VerifyOrReturn(CheckConstraintMinValue("value", value, 0));
- VerifyOrReturn(CheckConstraintMaxValue("value", value, 254));
+ VerifyOrReturn(CheckConstraintMinValue("value", value, 0U));
+ VerifyOrReturn(CheckConstraintMaxValue("value", value, 254U));
}
break;
case 4:
@@ -4547,8 +4637,8 @@ class Test_TC_CC_3_2Suite : public TestCommand
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
VerifyOrReturn(CheckConstraintType("value", "", "uint8"));
- VerifyOrReturn(CheckConstraintMinValue("value", value, 0));
- VerifyOrReturn(CheckConstraintMaxValue("value", value, 254));
+ VerifyOrReturn(CheckConstraintMinValue("value", value, 0U));
+ VerifyOrReturn(CheckConstraintMaxValue("value", value, 254U));
}
break;
case 7:
@@ -4561,8 +4651,8 @@ class Test_TC_CC_3_2Suite : public TestCommand
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
VerifyOrReturn(CheckConstraintType("value", "", "uint8"));
- VerifyOrReturn(CheckConstraintMinValue("value", value, 0));
- VerifyOrReturn(CheckConstraintMaxValue("value", value, 254));
+ VerifyOrReturn(CheckConstraintMinValue("value", value, 0U));
+ VerifyOrReturn(CheckConstraintMaxValue("value", value, 254U));
}
break;
case 9:
@@ -4575,8 +4665,8 @@ class Test_TC_CC_3_2Suite : public TestCommand
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
VerifyOrReturn(CheckConstraintType("value", "", "uint8"));
- VerifyOrReturn(CheckConstraintMinValue("value", value, 0));
- VerifyOrReturn(CheckConstraintMaxValue("value", value, 254));
+ VerifyOrReturn(CheckConstraintMinValue("value", value, 0U));
+ VerifyOrReturn(CheckConstraintMaxValue("value", value, 254U));
}
break;
case 11:
@@ -4592,8 +4682,8 @@ class Test_TC_CC_3_2Suite : public TestCommand
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
VerifyOrReturn(CheckConstraintType("value", "", "uint8"));
- VerifyOrReturn(CheckConstraintMinValue("value", value, 0));
- VerifyOrReturn(CheckConstraintMaxValue("value", value, 254));
+ VerifyOrReturn(CheckConstraintMinValue("value", value, 0U));
+ VerifyOrReturn(CheckConstraintMaxValue("value", value, 254U));
}
break;
case 14:
@@ -4606,8 +4696,8 @@ class Test_TC_CC_3_2Suite : public TestCommand
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
VerifyOrReturn(CheckConstraintType("value", "", "uint8"));
- VerifyOrReturn(CheckConstraintMinValue("value", value, 0));
- VerifyOrReturn(CheckConstraintMaxValue("value", value, 254));
+ VerifyOrReturn(CheckConstraintMinValue("value", value, 0U));
+ VerifyOrReturn(CheckConstraintMaxValue("value", value, 254U));
}
break;
case 16:
@@ -4620,8 +4710,8 @@ class Test_TC_CC_3_2Suite : public TestCommand
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
VerifyOrReturn(CheckConstraintType("value", "", "uint8"));
- VerifyOrReturn(CheckConstraintMinValue("value", value, 0));
- VerifyOrReturn(CheckConstraintMaxValue("value", value, 254));
+ VerifyOrReturn(CheckConstraintMinValue("value", value, 0U));
+ VerifyOrReturn(CheckConstraintMaxValue("value", value, 254U));
}
break;
case 18:
@@ -4637,8 +4727,8 @@ class Test_TC_CC_3_2Suite : public TestCommand
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
VerifyOrReturn(CheckConstraintType("value", "", "uint8"));
- VerifyOrReturn(CheckConstraintMinValue("value", value, 0));
- VerifyOrReturn(CheckConstraintMaxValue("value", value, 254));
+ VerifyOrReturn(CheckConstraintMinValue("value", value, 0U));
+ VerifyOrReturn(CheckConstraintMaxValue("value", value, 254U));
}
break;
case 21:
@@ -4651,8 +4741,8 @@ class Test_TC_CC_3_2Suite : public TestCommand
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
VerifyOrReturn(CheckConstraintType("value", "", "uint8"));
- VerifyOrReturn(CheckConstraintMinValue("value", value, 0));
- VerifyOrReturn(CheckConstraintMaxValue("value", value, 254));
+ VerifyOrReturn(CheckConstraintMinValue("value", value, 0U));
+ VerifyOrReturn(CheckConstraintMaxValue("value", value, 254U));
}
break;
case 23:
@@ -4665,8 +4755,8 @@ class Test_TC_CC_3_2Suite : public TestCommand
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
VerifyOrReturn(CheckConstraintType("value", "", "uint8"));
- VerifyOrReturn(CheckConstraintMinValue("value", value, 0));
- VerifyOrReturn(CheckConstraintMaxValue("value", value, 254));
+ VerifyOrReturn(CheckConstraintMinValue("value", value, 0U));
+ VerifyOrReturn(CheckConstraintMaxValue("value", value, 254U));
}
break;
case 25:
@@ -4682,8 +4772,8 @@ class Test_TC_CC_3_2Suite : public TestCommand
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
VerifyOrReturn(CheckConstraintType("value", "", "uint8"));
- VerifyOrReturn(CheckConstraintMinValue("value", value, 0));
- VerifyOrReturn(CheckConstraintMaxValue("value", value, 254));
+ VerifyOrReturn(CheckConstraintMinValue("value", value, 0U));
+ VerifyOrReturn(CheckConstraintMaxValue("value", value, 254U));
}
break;
case 28:
@@ -4696,8 +4786,8 @@ class Test_TC_CC_3_2Suite : public TestCommand
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
VerifyOrReturn(CheckConstraintType("value", "", "uint8"));
- VerifyOrReturn(CheckConstraintMinValue("value", value, 0));
- VerifyOrReturn(CheckConstraintMaxValue("value", value, 254));
+ VerifyOrReturn(CheckConstraintMinValue("value", value, 0U));
+ VerifyOrReturn(CheckConstraintMaxValue("value", value, 254U));
}
break;
case 30:
@@ -4710,8 +4800,8 @@ class Test_TC_CC_3_2Suite : public TestCommand
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
VerifyOrReturn(CheckConstraintType("value", "", "uint8"));
- VerifyOrReturn(CheckConstraintMinValue("value", value, 0));
- VerifyOrReturn(CheckConstraintMaxValue("value", value, 254));
+ VerifyOrReturn(CheckConstraintMinValue("value", value, 0U));
+ VerifyOrReturn(CheckConstraintMaxValue("value", value, 254U));
}
break;
case 32:
@@ -4761,17 +4851,19 @@ class Test_TC_CC_3_2Suite : public TestCommand
}
case 3: {
LogStep(3, "Reads CurrentHue attribute from DUT");
+ VerifyOrDo(!ShouldSkip("CC.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentHue::Id, true,
chip::NullOptional);
}
case 4: {
LogStep(4, "Move hue up command");
+ VerifyOrDo(!ShouldSkip("CC.S.C01.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
ListFreer listFreer;
chip::app::Clusters::ColorControl::Commands::MoveHue::Type value;
value.moveMode = static_cast(1);
- value.rate = 50;
- value.optionsMask = 0;
- value.optionsOverride = 0;
+ value.rate = 50U;
+ value.optionsMask = 0U;
+ value.optionsOverride = 0U;
return SendCommand(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Commands::MoveHue::Id, value,
chip::NullOptional
@@ -4786,6 +4878,7 @@ class Test_TC_CC_3_2Suite : public TestCommand
}
case 6: {
LogStep(6, "Check current hue attribute value matched the value sent by the last command");
+ VerifyOrDo(!ShouldSkip("CC.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentHue::Id, true,
chip::NullOptional);
}
@@ -4798,6 +4891,7 @@ class Test_TC_CC_3_2Suite : public TestCommand
}
case 8: {
LogStep(8, "Check current hue attribute value matched the value sent by the last command");
+ VerifyOrDo(!ShouldSkip("CC.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentHue::Id, true,
chip::NullOptional);
}
@@ -4810,17 +4904,19 @@ class Test_TC_CC_3_2Suite : public TestCommand
}
case 10: {
LogStep(10, "Check current hue attribute value matched the value sent by the last command");
+ VerifyOrDo(!ShouldSkip("CC.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentHue::Id, true,
chip::NullOptional);
}
case 11: {
LogStep(11, "Move hue stop command");
+ VerifyOrDo(!ShouldSkip("CC.S.C01.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
ListFreer listFreer;
chip::app::Clusters::ColorControl::Commands::MoveHue::Type value;
value.moveMode = static_cast(0);
- value.rate = 50;
- value.optionsMask = 0;
- value.optionsOverride = 0;
+ value.rate = 50U;
+ value.optionsMask = 0U;
+ value.optionsOverride = 0U;
return SendCommand(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Commands::MoveHue::Id, value,
chip::NullOptional
@@ -4835,6 +4931,7 @@ class Test_TC_CC_3_2Suite : public TestCommand
}
case 13: {
LogStep(13, "Check current hue attribute value matched the value sent by the last command");
+ VerifyOrDo(!ShouldSkip("CC.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentHue::Id, true,
chip::NullOptional);
}
@@ -4847,6 +4944,7 @@ class Test_TC_CC_3_2Suite : public TestCommand
}
case 15: {
LogStep(15, "Check current hue attribute value matched the value sent by the last command");
+ VerifyOrDo(!ShouldSkip("CC.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentHue::Id, true,
chip::NullOptional);
}
@@ -4859,17 +4957,19 @@ class Test_TC_CC_3_2Suite : public TestCommand
}
case 17: {
LogStep(17, "Check current hue attribute value matched the value sent by the last command");
+ VerifyOrDo(!ShouldSkip("CC.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentHue::Id, true,
chip::NullOptional);
}
case 18: {
LogStep(18, "Move hue down command");
+ VerifyOrDo(!ShouldSkip("CC.S.C01.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
ListFreer listFreer;
chip::app::Clusters::ColorControl::Commands::MoveHue::Type value;
value.moveMode = static_cast(3);
- value.rate = 50;
- value.optionsMask = 0;
- value.optionsOverride = 0;
+ value.rate = 50U;
+ value.optionsMask = 0U;
+ value.optionsOverride = 0U;
return SendCommand(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Commands::MoveHue::Id, value,
chip::NullOptional
@@ -4884,6 +4984,7 @@ class Test_TC_CC_3_2Suite : public TestCommand
}
case 20: {
LogStep(20, "Check current hue attribute value matched the value sent by the last command");
+ VerifyOrDo(!ShouldSkip("CC.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentHue::Id, true,
chip::NullOptional);
}
@@ -4896,6 +4997,7 @@ class Test_TC_CC_3_2Suite : public TestCommand
}
case 22: {
LogStep(22, "Check current hue attribute value matched the value sent by the last command");
+ VerifyOrDo(!ShouldSkip("CC.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentHue::Id, true,
chip::NullOptional);
}
@@ -4908,17 +5010,19 @@ class Test_TC_CC_3_2Suite : public TestCommand
}
case 24: {
LogStep(24, "Check current hue attribute value matched the value sent by the last command");
+ VerifyOrDo(!ShouldSkip("CC.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentHue::Id, true,
chip::NullOptional);
}
case 25: {
LogStep(25, "Move hue stop command");
+ VerifyOrDo(!ShouldSkip("CC.S.C01.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
ListFreer listFreer;
chip::app::Clusters::ColorControl::Commands::MoveHue::Type value;
value.moveMode = static_cast(0);
- value.rate = 50;
- value.optionsMask = 0;
- value.optionsOverride = 0;
+ value.rate = 50U;
+ value.optionsMask = 0U;
+ value.optionsOverride = 0U;
return SendCommand(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Commands::MoveHue::Id, value,
chip::NullOptional
@@ -4933,6 +5037,7 @@ class Test_TC_CC_3_2Suite : public TestCommand
}
case 27: {
LogStep(27, "Check current hue attribute value matched the value sent by the last command");
+ VerifyOrDo(!ShouldSkip("CC.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentHue::Id, true,
chip::NullOptional);
}
@@ -4945,6 +5050,7 @@ class Test_TC_CC_3_2Suite : public TestCommand
}
case 29: {
LogStep(29, "Check current hue attribute value matched the value sent by the last command");
+ VerifyOrDo(!ShouldSkip("CC.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentHue::Id, true,
chip::NullOptional);
}
@@ -4957,6 +5063,7 @@ class Test_TC_CC_3_2Suite : public TestCommand
}
case 31: {
LogStep(31, "Check current hue attribute value matched the value sent by the last command");
+ VerifyOrDo(!ShouldSkip("CC.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentHue::Id, true,
chip::NullOptional);
}
@@ -5034,8 +5141,8 @@ class Test_TC_CC_3_3Suite : public TestCommand
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
VerifyOrReturn(CheckConstraintType("value", "", "uint8"));
- VerifyOrReturn(CheckConstraintMinValue("value", value, 0));
- VerifyOrReturn(CheckConstraintMaxValue("value", value, 254));
+ VerifyOrReturn(CheckConstraintMinValue("value", value, 0U));
+ VerifyOrReturn(CheckConstraintMaxValue("value", value, 254U));
}
break;
case 4:
@@ -5051,8 +5158,8 @@ class Test_TC_CC_3_3Suite : public TestCommand
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
VerifyOrReturn(CheckConstraintType("value", "", "uint8"));
- VerifyOrReturn(CheckConstraintMinValue("value", value, 0));
- VerifyOrReturn(CheckConstraintMaxValue("value", value, 254));
+ VerifyOrReturn(CheckConstraintMinValue("value", value, 0U));
+ VerifyOrReturn(CheckConstraintMaxValue("value", value, 254U));
}
break;
case 7:
@@ -5068,8 +5175,8 @@ class Test_TC_CC_3_3Suite : public TestCommand
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
VerifyOrReturn(CheckConstraintType("value", "", "uint8"));
- VerifyOrReturn(CheckConstraintMinValue("value", value, 0));
- VerifyOrReturn(CheckConstraintMaxValue("value", value, 254));
+ VerifyOrReturn(CheckConstraintMinValue("value", value, 0U));
+ VerifyOrReturn(CheckConstraintMaxValue("value", value, 254U));
}
break;
case 10:
@@ -5119,18 +5226,20 @@ class Test_TC_CC_3_3Suite : public TestCommand
}
case 3: {
LogStep(3, "Reads CurrentHue attribute from DUT");
+ VerifyOrDo(!ShouldSkip("CC.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentHue::Id, true,
chip::NullOptional);
}
case 4: {
LogStep(4, "Step hue up command");
+ VerifyOrDo(!ShouldSkip("CC.S.C02.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
ListFreer listFreer;
chip::app::Clusters::ColorControl::Commands::StepHue::Type value;
value.stepMode = static_cast(1);
- value.stepSize = 5;
- value.transitionTime = 25;
- value.optionsMask = 0;
- value.optionsOverride = 0;
+ value.stepSize = 5U;
+ value.transitionTime = 25U;
+ value.optionsMask = 0U;
+ value.optionsOverride = 0U;
return SendCommand(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Commands::StepHue::Id, value,
chip::NullOptional
@@ -5145,18 +5254,20 @@ class Test_TC_CC_3_3Suite : public TestCommand
}
case 6: {
LogStep(6, "Over TransitionTime,Read CurrentHue attribute from DUT");
+ VerifyOrDo(!ShouldSkip("CC.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentHue::Id, true,
chip::NullOptional);
}
case 7: {
LogStep(7, "Step hue down command");
+ VerifyOrDo(!ShouldSkip("CC.S.C02.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
ListFreer listFreer;
chip::app::Clusters::ColorControl::Commands::StepHue::Type value;
value.stepMode = static_cast(3);
- value.stepSize = 5;
- value.transitionTime = 25;
- value.optionsMask = 0;
- value.optionsOverride = 0;
+ value.stepSize = 5U;
+ value.transitionTime = 25U;
+ value.optionsMask = 0U;
+ value.optionsOverride = 0U;
return SendCommand(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Commands::StepHue::Id, value,
chip::NullOptional
@@ -5171,6 +5282,7 @@ class Test_TC_CC_3_3Suite : public TestCommand
}
case 9: {
LogStep(9, "Over TransitionTime,Read CurrentHue attribute from DUT");
+ VerifyOrDo(!ShouldSkip("CC.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentHue::Id, true,
chip::NullOptional);
}
@@ -5248,8 +5360,8 @@ class Test_TC_CC_4_1Suite : public TestCommand
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
VerifyOrReturn(CheckConstraintType("value", "", "uint8"));
- VerifyOrReturn(CheckConstraintMinValue("value", value, 0));
- VerifyOrReturn(CheckConstraintMaxValue("value", value, 254));
+ VerifyOrReturn(CheckConstraintMinValue("value", value, 0U));
+ VerifyOrReturn(CheckConstraintMaxValue("value", value, 254U));
}
break;
case 4:
@@ -5265,8 +5377,8 @@ class Test_TC_CC_4_1Suite : public TestCommand
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
VerifyOrReturn(CheckConstraintType("value", "", "uint8"));
- VerifyOrReturn(CheckConstraintMinValue("value", value, 0));
- VerifyOrReturn(CheckConstraintMaxValue("value", value, 254));
+ VerifyOrReturn(CheckConstraintMinValue("value", value, 0U));
+ VerifyOrReturn(CheckConstraintMaxValue("value", value, 254U));
}
break;
case 7:
@@ -5279,8 +5391,8 @@ class Test_TC_CC_4_1Suite : public TestCommand
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
VerifyOrReturn(CheckConstraintType("value", "", "uint8"));
- VerifyOrReturn(CheckConstraintMinValue("value", value, 0));
- VerifyOrReturn(CheckConstraintMaxValue("value", value, 254));
+ VerifyOrReturn(CheckConstraintMinValue("value", value, 0U));
+ VerifyOrReturn(CheckConstraintMaxValue("value", value, 254U));
}
break;
case 9:
@@ -5293,8 +5405,8 @@ class Test_TC_CC_4_1Suite : public TestCommand
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
VerifyOrReturn(CheckConstraintType("value", "", "uint8"));
- VerifyOrReturn(CheckConstraintMinValue("value", value, 0));
- VerifyOrReturn(CheckConstraintMaxValue("value", value, 254));
+ VerifyOrReturn(CheckConstraintMinValue("value", value, 0U));
+ VerifyOrReturn(CheckConstraintMaxValue("value", value, 254U));
}
break;
case 11:
@@ -5344,17 +5456,19 @@ class Test_TC_CC_4_1Suite : public TestCommand
}
case 3: {
LogStep(3, "Check Saturation attribute value matched before any change");
+ VerifyOrDo(!ShouldSkip("CC.S.A0001"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentSaturation::Id,
true, chip::NullOptional);
}
case 4: {
LogStep(4, "Move to saturation command");
+ VerifyOrDo(!ShouldSkip("CC.S.C03.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
ListFreer listFreer;
chip::app::Clusters::ColorControl::Commands::MoveToSaturation::Type value;
- value.saturation = 90;
+ value.saturation = 90U;
value.transitionTime = 10U;
- value.optionsMask = 0;
- value.optionsOverride = 0;
+ value.optionsMask = 0U;
+ value.optionsOverride = 0U;
return SendCommand(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Commands::MoveToSaturation::Id,
value, chip::NullOptional
@@ -5369,6 +5483,7 @@ class Test_TC_CC_4_1Suite : public TestCommand
}
case 6: {
LogStep(6, "Check current saturation attribute value matched the value sent by the last command");
+ VerifyOrDo(!ShouldSkip("CC.S.A0001"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentSaturation::Id,
true, chip::NullOptional);
}
@@ -5381,6 +5496,7 @@ class Test_TC_CC_4_1Suite : public TestCommand
}
case 8: {
LogStep(8, "Check current saturation attribute value matched the value sent by the last command");
+ VerifyOrDo(!ShouldSkip("CC.S.A0001"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentSaturation::Id,
true, chip::NullOptional);
}
@@ -5393,6 +5509,7 @@ class Test_TC_CC_4_1Suite : public TestCommand
}
case 10: {
LogStep(10, "Check current saturation attribute value matched the value sent by the last command");
+ VerifyOrDo(!ShouldSkip("CC.S.A0001"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentSaturation::Id,
true, chip::NullOptional);
}
@@ -5470,8 +5587,8 @@ class Test_TC_CC_4_2Suite : public TestCommand
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
VerifyOrReturn(CheckConstraintType("value", "", "uint8"));
- VerifyOrReturn(CheckConstraintMinValue("value", value, 0));
- VerifyOrReturn(CheckConstraintMaxValue("value", value, 254));
+ VerifyOrReturn(CheckConstraintMinValue("value", value, 0U));
+ VerifyOrReturn(CheckConstraintMaxValue("value", value, 254U));
}
break;
case 4:
@@ -5487,8 +5604,8 @@ class Test_TC_CC_4_2Suite : public TestCommand
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
VerifyOrReturn(CheckConstraintType("value", "", "uint8"));
- VerifyOrReturn(CheckConstraintMinValue("value", value, 0));
- VerifyOrReturn(CheckConstraintMaxValue("value", value, 254));
+ VerifyOrReturn(CheckConstraintMinValue("value", value, 0U));
+ VerifyOrReturn(CheckConstraintMaxValue("value", value, 254U));
}
break;
case 7:
@@ -5501,8 +5618,8 @@ class Test_TC_CC_4_2Suite : public TestCommand
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
VerifyOrReturn(CheckConstraintType("value", "", "uint8"));
- VerifyOrReturn(CheckConstraintMinValue("value", value, 0));
- VerifyOrReturn(CheckConstraintMaxValue("value", value, 254));
+ VerifyOrReturn(CheckConstraintMinValue("value", value, 0U));
+ VerifyOrReturn(CheckConstraintMaxValue("value", value, 254U));
}
break;
case 9:
@@ -5515,8 +5632,8 @@ class Test_TC_CC_4_2Suite : public TestCommand
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
VerifyOrReturn(CheckConstraintType("value", "", "uint8"));
- VerifyOrReturn(CheckConstraintMinValue("value", value, 0));
- VerifyOrReturn(CheckConstraintMaxValue("value", value, 254));
+ VerifyOrReturn(CheckConstraintMinValue("value", value, 0U));
+ VerifyOrReturn(CheckConstraintMaxValue("value", value, 254U));
}
break;
case 11:
@@ -5532,8 +5649,8 @@ class Test_TC_CC_4_2Suite : public TestCommand
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
VerifyOrReturn(CheckConstraintType("value", "", "uint8"));
- VerifyOrReturn(CheckConstraintMinValue("value", value, 0));
- VerifyOrReturn(CheckConstraintMaxValue("value", value, 254));
+ VerifyOrReturn(CheckConstraintMinValue("value", value, 0U));
+ VerifyOrReturn(CheckConstraintMaxValue("value", value, 254U));
}
break;
case 14:
@@ -5546,8 +5663,8 @@ class Test_TC_CC_4_2Suite : public TestCommand
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
VerifyOrReturn(CheckConstraintType("value", "", "uint8"));
- VerifyOrReturn(CheckConstraintMinValue("value", value, 0));
- VerifyOrReturn(CheckConstraintMaxValue("value", value, 254));
+ VerifyOrReturn(CheckConstraintMinValue("value", value, 0U));
+ VerifyOrReturn(CheckConstraintMaxValue("value", value, 254U));
}
break;
case 16:
@@ -5560,8 +5677,8 @@ class Test_TC_CC_4_2Suite : public TestCommand
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
VerifyOrReturn(CheckConstraintType("value", "", "uint8"));
- VerifyOrReturn(CheckConstraintMinValue("value", value, 0));
- VerifyOrReturn(CheckConstraintMaxValue("value", value, 254));
+ VerifyOrReturn(CheckConstraintMinValue("value", value, 0U));
+ VerifyOrReturn(CheckConstraintMaxValue("value", value, 254U));
}
break;
case 18:
@@ -5577,8 +5694,8 @@ class Test_TC_CC_4_2Suite : public TestCommand
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
VerifyOrReturn(CheckConstraintType("value", "", "uint8"));
- VerifyOrReturn(CheckConstraintMinValue("value", value, 0));
- VerifyOrReturn(CheckConstraintMaxValue("value", value, 254));
+ VerifyOrReturn(CheckConstraintMinValue("value", value, 0U));
+ VerifyOrReturn(CheckConstraintMaxValue("value", value, 254U));
}
break;
case 21:
@@ -5591,8 +5708,8 @@ class Test_TC_CC_4_2Suite : public TestCommand
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
VerifyOrReturn(CheckConstraintType("value", "", "uint8"));
- VerifyOrReturn(CheckConstraintMinValue("value", value, 0));
- VerifyOrReturn(CheckConstraintMaxValue("value", value, 254));
+ VerifyOrReturn(CheckConstraintMinValue("value", value, 0U));
+ VerifyOrReturn(CheckConstraintMaxValue("value", value, 254U));
}
break;
case 23:
@@ -5605,8 +5722,8 @@ class Test_TC_CC_4_2Suite : public TestCommand
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
VerifyOrReturn(CheckConstraintType("value", "", "uint8"));
- VerifyOrReturn(CheckConstraintMinValue("value", value, 0));
- VerifyOrReturn(CheckConstraintMaxValue("value", value, 254));
+ VerifyOrReturn(CheckConstraintMinValue("value", value, 0U));
+ VerifyOrReturn(CheckConstraintMaxValue("value", value, 254U));
}
break;
case 25:
@@ -5622,8 +5739,8 @@ class Test_TC_CC_4_2Suite : public TestCommand
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
VerifyOrReturn(CheckConstraintType("value", "", "uint8"));
- VerifyOrReturn(CheckConstraintMinValue("value", value, 0));
- VerifyOrReturn(CheckConstraintMaxValue("value", value, 254));
+ VerifyOrReturn(CheckConstraintMinValue("value", value, 0U));
+ VerifyOrReturn(CheckConstraintMaxValue("value", value, 254U));
}
break;
case 28:
@@ -5636,8 +5753,8 @@ class Test_TC_CC_4_2Suite : public TestCommand
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
VerifyOrReturn(CheckConstraintType("value", "", "uint8"));
- VerifyOrReturn(CheckConstraintMinValue("value", value, 0));
- VerifyOrReturn(CheckConstraintMaxValue("value", value, 254));
+ VerifyOrReturn(CheckConstraintMinValue("value", value, 0U));
+ VerifyOrReturn(CheckConstraintMaxValue("value", value, 254U));
}
break;
case 30:
@@ -5650,8 +5767,8 @@ class Test_TC_CC_4_2Suite : public TestCommand
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
VerifyOrReturn(CheckConstraintType("value", "", "uint8"));
- VerifyOrReturn(CheckConstraintMinValue("value", value, 0));
- VerifyOrReturn(CheckConstraintMaxValue("value", value, 254));
+ VerifyOrReturn(CheckConstraintMinValue("value", value, 0U));
+ VerifyOrReturn(CheckConstraintMaxValue("value", value, 254U));
}
break;
case 32:
@@ -5667,8 +5784,8 @@ class Test_TC_CC_4_2Suite : public TestCommand
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
VerifyOrReturn(CheckConstraintType("value", "", "uint8"));
- VerifyOrReturn(CheckConstraintMinValue("value", value, 0));
- VerifyOrReturn(CheckConstraintMaxValue("value", value, 254));
+ VerifyOrReturn(CheckConstraintMinValue("value", value, 0U));
+ VerifyOrReturn(CheckConstraintMaxValue("value", value, 254U));
}
break;
case 35:
@@ -5681,8 +5798,8 @@ class Test_TC_CC_4_2Suite : public TestCommand
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
VerifyOrReturn(CheckConstraintType("value", "", "uint8"));
- VerifyOrReturn(CheckConstraintMinValue("value", value, 0));
- VerifyOrReturn(CheckConstraintMaxValue("value", value, 254));
+ VerifyOrReturn(CheckConstraintMinValue("value", value, 0U));
+ VerifyOrReturn(CheckConstraintMaxValue("value", value, 254U));
}
break;
case 37:
@@ -5695,8 +5812,8 @@ class Test_TC_CC_4_2Suite : public TestCommand
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
VerifyOrReturn(CheckConstraintType("value", "", "uint8"));
- VerifyOrReturn(CheckConstraintMinValue("value", value, 0));
- VerifyOrReturn(CheckConstraintMaxValue("value", value, 254));
+ VerifyOrReturn(CheckConstraintMinValue("value", value, 0U));
+ VerifyOrReturn(CheckConstraintMaxValue("value", value, 254U));
}
break;
case 39:
@@ -5712,8 +5829,8 @@ class Test_TC_CC_4_2Suite : public TestCommand
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
VerifyOrReturn(CheckConstraintType("value", "", "uint8"));
- VerifyOrReturn(CheckConstraintMinValue("value", value, 0));
- VerifyOrReturn(CheckConstraintMaxValue("value", value, 254));
+ VerifyOrReturn(CheckConstraintMinValue("value", value, 0U));
+ VerifyOrReturn(CheckConstraintMaxValue("value", value, 254U));
}
break;
case 42:
@@ -5726,8 +5843,8 @@ class Test_TC_CC_4_2Suite : public TestCommand
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
VerifyOrReturn(CheckConstraintType("value", "", "uint8"));
- VerifyOrReturn(CheckConstraintMinValue("value", value, 0));
- VerifyOrReturn(CheckConstraintMaxValue("value", value, 254));
+ VerifyOrReturn(CheckConstraintMinValue("value", value, 0U));
+ VerifyOrReturn(CheckConstraintMaxValue("value", value, 254U));
}
break;
case 44:
@@ -5740,8 +5857,8 @@ class Test_TC_CC_4_2Suite : public TestCommand
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
VerifyOrReturn(CheckConstraintType("value", "", "uint8"));
- VerifyOrReturn(CheckConstraintMinValue("value", value, 0));
- VerifyOrReturn(CheckConstraintMaxValue("value", value, 254));
+ VerifyOrReturn(CheckConstraintMinValue("value", value, 0U));
+ VerifyOrReturn(CheckConstraintMaxValue("value", value, 254U));
}
break;
case 46:
@@ -5791,17 +5908,19 @@ class Test_TC_CC_4_2Suite : public TestCommand
}
case 3: {
LogStep(3, "Check Saturation attribute value matched the value sent by the last command");
+ VerifyOrDo(!ShouldSkip("CC.S.A0001"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentSaturation::Id,
true, chip::NullOptional);
}
case 4: {
LogStep(4, "Move saturation up command");
+ VerifyOrDo(!ShouldSkip("CC.S.C04.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
ListFreer listFreer;
chip::app::Clusters::ColorControl::Commands::MoveSaturation::Type value;
value.moveMode = static_cast(1);
- value.rate = 5;
- value.optionsMask = 0;
- value.optionsOverride = 0;
+ value.rate = 5U;
+ value.optionsMask = 0U;
+ value.optionsOverride = 0U;
return SendCommand(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Commands::MoveSaturation::Id, value,
chip::NullOptional
@@ -5816,6 +5935,7 @@ class Test_TC_CC_4_2Suite : public TestCommand
}
case 6: {
LogStep(6, "Check current saturation attribute value matched the value sent by the last command");
+ VerifyOrDo(!ShouldSkip("CC.S.A0001"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentSaturation::Id,
true, chip::NullOptional);
}
@@ -5828,6 +5948,7 @@ class Test_TC_CC_4_2Suite : public TestCommand
}
case 8: {
LogStep(8, "Check current saturation attribute value matched the value sent by the last command");
+ VerifyOrDo(!ShouldSkip("CC.S.A0001"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentSaturation::Id,
true, chip::NullOptional);
}
@@ -5840,17 +5961,19 @@ class Test_TC_CC_4_2Suite : public TestCommand
}
case 10: {
LogStep(10, "Check current saturation attribute value matched the value sent by the last command");
+ VerifyOrDo(!ShouldSkip("CC.S.A0001"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentSaturation::Id,
true, chip::NullOptional);
}
case 11: {
LogStep(11, "Move saturation down command");
+ VerifyOrDo(!ShouldSkip("CC.S.C04.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
ListFreer listFreer;
chip::app::Clusters::ColorControl::Commands::MoveSaturation::Type value;
value.moveMode = static_cast(3);
- value.rate = 5;
- value.optionsMask = 0;
- value.optionsOverride = 0;
+ value.rate = 5U;
+ value.optionsMask = 0U;
+ value.optionsOverride = 0U;
return SendCommand(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Commands::MoveSaturation::Id, value,
chip::NullOptional
@@ -5865,6 +5988,7 @@ class Test_TC_CC_4_2Suite : public TestCommand
}
case 13: {
LogStep(13, "Check current saturation attribute value matched the value sent by the last command");
+ VerifyOrDo(!ShouldSkip("CC.S.A0001"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentSaturation::Id,
true, chip::NullOptional);
}
@@ -5877,6 +6001,7 @@ class Test_TC_CC_4_2Suite : public TestCommand
}
case 15: {
LogStep(15, "Check current saturation attribute value matched the value sent by the last command");
+ VerifyOrDo(!ShouldSkip("CC.S.A0001"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentSaturation::Id,
true, chip::NullOptional);
}
@@ -5889,17 +6014,19 @@ class Test_TC_CC_4_2Suite : public TestCommand
}
case 17: {
LogStep(17, "Check current saturation attribute value matched the value sent by the last command");
+ VerifyOrDo(!ShouldSkip("CC.S.A0001"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentSaturation::Id,
true, chip::NullOptional);
}
case 18: {
LogStep(18, "Move saturation up command");
+ VerifyOrDo(!ShouldSkip("CC.S.C04.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
ListFreer listFreer;
chip::app::Clusters::ColorControl::Commands::MoveSaturation::Type value;
value.moveMode = static_cast(1);
- value.rate = 5;
- value.optionsMask = 0;
- value.optionsOverride = 0;
+ value.rate = 5U;
+ value.optionsMask = 0U;
+ value.optionsOverride = 0U;
return SendCommand(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Commands::MoveSaturation::Id, value,
chip::NullOptional
@@ -5914,6 +6041,7 @@ class Test_TC_CC_4_2Suite : public TestCommand
}
case 20: {
LogStep(20, "Check current saturation attribute value matched the value sent by the last command");
+ VerifyOrDo(!ShouldSkip("CC.S.A0001"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentSaturation::Id,
true, chip::NullOptional);
}
@@ -5926,6 +6054,7 @@ class Test_TC_CC_4_2Suite : public TestCommand
}
case 22: {
LogStep(22, "Check current saturation attribute value matched the value sent by the last command");
+ VerifyOrDo(!ShouldSkip("CC.S.A0001"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentSaturation::Id,
true, chip::NullOptional);
}
@@ -5938,17 +6067,19 @@ class Test_TC_CC_4_2Suite : public TestCommand
}
case 24: {
LogStep(24, "Check current saturation attribute value matched the value sent by the last command");
+ VerifyOrDo(!ShouldSkip("CC.S.A0001"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentSaturation::Id,
true, chip::NullOptional);
}
case 25: {
LogStep(25, "Move saturation stop command");
+ VerifyOrDo(!ShouldSkip("CC.S.C04.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
ListFreer listFreer;
chip::app::Clusters::ColorControl::Commands::MoveSaturation::Type value;
value.moveMode = static_cast(0);
- value.rate = 5;
- value.optionsMask = 0;
- value.optionsOverride = 0;
+ value.rate = 5U;
+ value.optionsMask = 0U;
+ value.optionsOverride = 0U;
return SendCommand(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Commands::MoveSaturation::Id, value,
chip::NullOptional
@@ -5963,6 +6094,7 @@ class Test_TC_CC_4_2Suite : public TestCommand
}
case 27: {
LogStep(27, "Check current saturation attribute value matched the value sent by the last command");
+ VerifyOrDo(!ShouldSkip("CC.S.A0001"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentSaturation::Id,
true, chip::NullOptional);
}
@@ -5975,6 +6107,7 @@ class Test_TC_CC_4_2Suite : public TestCommand
}
case 29: {
LogStep(29, "Check current saturation attribute value matched the value sent by the last command");
+ VerifyOrDo(!ShouldSkip("CC.S.A0001"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentSaturation::Id,
true, chip::NullOptional);
}
@@ -5987,17 +6120,19 @@ class Test_TC_CC_4_2Suite : public TestCommand
}
case 31: {
LogStep(31, "Check current saturation attribute value matched the value sent by the last command");
+ VerifyOrDo(!ShouldSkip("CC.S.A0001"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentSaturation::Id,
true, chip::NullOptional);
}
case 32: {
LogStep(32, "Move saturation down command");
+ VerifyOrDo(!ShouldSkip("CC.S.C04.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
ListFreer listFreer;
chip::app::Clusters::ColorControl::Commands::MoveSaturation::Type value;
value.moveMode = static_cast(3);
- value.rate = 5;
- value.optionsMask = 0;
- value.optionsOverride = 0;
+ value.rate = 5U;
+ value.optionsMask = 0U;
+ value.optionsOverride = 0U;
return SendCommand(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Commands::MoveSaturation::Id, value,
chip::NullOptional
@@ -6012,6 +6147,7 @@ class Test_TC_CC_4_2Suite : public TestCommand
}
case 34: {
LogStep(34, "Check current saturation attribute value matched the value sent by the last command");
+ VerifyOrDo(!ShouldSkip("CC.S.A0001"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentSaturation::Id,
true, chip::NullOptional);
}
@@ -6024,6 +6160,7 @@ class Test_TC_CC_4_2Suite : public TestCommand
}
case 36: {
LogStep(36, "Check current saturation attribute value matched the value sent by the last command");
+ VerifyOrDo(!ShouldSkip("CC.S.A0001"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentSaturation::Id,
true, chip::NullOptional);
}
@@ -6036,17 +6173,19 @@ class Test_TC_CC_4_2Suite : public TestCommand
}
case 38: {
LogStep(38, "Check current saturation attribute value matched the value sent by the last command");
+ VerifyOrDo(!ShouldSkip("CC.S.A0001"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentSaturation::Id,
true, chip::NullOptional);
}
case 39: {
LogStep(39, "Move saturation stop command");
+ VerifyOrDo(!ShouldSkip("CC.S.C04.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
ListFreer listFreer;
chip::app::Clusters::ColorControl::Commands::MoveSaturation::Type value;
value.moveMode = static_cast(0);
- value.rate = 5;
- value.optionsMask = 0;
- value.optionsOverride = 0;
+ value.rate = 5U;
+ value.optionsMask = 0U;
+ value.optionsOverride = 0U;
return SendCommand(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Commands::MoveSaturation::Id, value,
chip::NullOptional
@@ -6061,6 +6200,7 @@ class Test_TC_CC_4_2Suite : public TestCommand
}
case 41: {
LogStep(41, "Check current saturation attribute value matched the value sent by the last command");
+ VerifyOrDo(!ShouldSkip("CC.S.A0001"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentSaturation::Id,
true, chip::NullOptional);
}
@@ -6073,6 +6213,7 @@ class Test_TC_CC_4_2Suite : public TestCommand
}
case 43: {
LogStep(43, "Check current saturation attribute value matched the value sent by the last command");
+ VerifyOrDo(!ShouldSkip("CC.S.A0001"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentSaturation::Id,
true, chip::NullOptional);
}
@@ -6085,6 +6226,7 @@ class Test_TC_CC_4_2Suite : public TestCommand
}
case 45: {
LogStep(45, "Check current saturation attribute value matched the value sent by the last command");
+ VerifyOrDo(!ShouldSkip("CC.S.A0001"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentSaturation::Id,
true, chip::NullOptional);
}
@@ -6162,8 +6304,8 @@ class Test_TC_CC_4_3Suite : public TestCommand
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
VerifyOrReturn(CheckConstraintType("value", "", "uint8"));
- VerifyOrReturn(CheckConstraintMinValue("value", value, 0));
- VerifyOrReturn(CheckConstraintMaxValue("value", value, 254));
+ VerifyOrReturn(CheckConstraintMinValue("value", value, 0U));
+ VerifyOrReturn(CheckConstraintMaxValue("value", value, 254U));
}
break;
case 4:
@@ -6179,8 +6321,8 @@ class Test_TC_CC_4_3Suite : public TestCommand
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
VerifyOrReturn(CheckConstraintType("value", "", "uint8"));
- VerifyOrReturn(CheckConstraintMinValue("value", value, 0));
- VerifyOrReturn(CheckConstraintMaxValue("value", value, 254));
+ VerifyOrReturn(CheckConstraintMinValue("value", value, 0U));
+ VerifyOrReturn(CheckConstraintMaxValue("value", value, 254U));
}
break;
case 7:
@@ -6196,8 +6338,8 @@ class Test_TC_CC_4_3Suite : public TestCommand
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
VerifyOrReturn(CheckConstraintType("value", "", "uint8"));
- VerifyOrReturn(CheckConstraintMinValue("value", value, 0));
- VerifyOrReturn(CheckConstraintMaxValue("value", value, 254));
+ VerifyOrReturn(CheckConstraintMinValue("value", value, 0U));
+ VerifyOrReturn(CheckConstraintMaxValue("value", value, 254U));
}
break;
case 10:
@@ -6247,18 +6389,20 @@ class Test_TC_CC_4_3Suite : public TestCommand
}
case 3: {
LogStep(3, "Reads CurrentSaturation attribute from DUT");
+ VerifyOrDo(!ShouldSkip("CC.S.A0001"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentSaturation::Id,
true, chip::NullOptional);
}
case 4: {
LogStep(4, "Step saturation up command");
+ VerifyOrDo(!ShouldSkip("CC.S.C05.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
ListFreer listFreer;
chip::app::Clusters::ColorControl::Commands::StepSaturation::Type value;
value.stepMode = static_cast(1);
- value.stepSize = 15;
- value.transitionTime = 10;
- value.optionsMask = 0;
- value.optionsOverride = 0;
+ value.stepSize = 15U;
+ value.transitionTime = 10U;
+ value.optionsMask = 0U;
+ value.optionsOverride = 0U;
return SendCommand(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Commands::StepSaturation::Id, value,
chip::NullOptional
@@ -6273,18 +6417,20 @@ class Test_TC_CC_4_3Suite : public TestCommand
}
case 6: {
LogStep(6, "Over TransitionTime,Read CurrentSaturation attribute from DUT");
+ VerifyOrDo(!ShouldSkip("CC.S.A0001"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentSaturation::Id,
true, chip::NullOptional);
}
case 7: {
LogStep(7, "Step saturation down command");
+ VerifyOrDo(!ShouldSkip("CC.S.C05.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
ListFreer listFreer;
chip::app::Clusters::ColorControl::Commands::StepSaturation::Type value;
value.stepMode = static_cast(3);
- value.stepSize = 20;
- value.transitionTime = 10;
- value.optionsMask = 0;
- value.optionsOverride = 0;
+ value.stepSize = 20U;
+ value.transitionTime = 10U;
+ value.optionsMask = 0U;
+ value.optionsOverride = 0U;
return SendCommand(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Commands::StepSaturation::Id, value,
chip::NullOptional
@@ -6299,6 +6445,7 @@ class Test_TC_CC_4_3Suite : public TestCommand
}
case 9: {
LogStep(9, "Over TransitionTime,Reads CurrentSaturation attribute from DUT");
+ VerifyOrDo(!ShouldSkip("CC.S.A0001"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentSaturation::Id,
true, chip::NullOptional);
}
@@ -6376,8 +6523,8 @@ class Test_TC_CC_4_4Suite : public TestCommand
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
VerifyOrReturn(CheckConstraintType("value", "", "uint8"));
- VerifyOrReturn(CheckConstraintMinValue("value", value, 0));
- VerifyOrReturn(CheckConstraintMaxValue("value", value, 254));
+ VerifyOrReturn(CheckConstraintMinValue("value", value, 0U));
+ VerifyOrReturn(CheckConstraintMaxValue("value", value, 254U));
}
break;
case 4:
@@ -6386,8 +6533,8 @@ class Test_TC_CC_4_4Suite : public TestCommand
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
VerifyOrReturn(CheckConstraintType("value", "", "uint8"));
- VerifyOrReturn(CheckConstraintMinValue("value", value, 0));
- VerifyOrReturn(CheckConstraintMaxValue("value", value, 254));
+ VerifyOrReturn(CheckConstraintMinValue("value", value, 0U));
+ VerifyOrReturn(CheckConstraintMaxValue("value", value, 254U));
}
break;
case 5:
@@ -6403,8 +6550,8 @@ class Test_TC_CC_4_4Suite : public TestCommand
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
VerifyOrReturn(CheckConstraintType("value", "", "uint8"));
- VerifyOrReturn(CheckConstraintMinValue("value", value, 0));
- VerifyOrReturn(CheckConstraintMaxValue("value", value, 254));
+ VerifyOrReturn(CheckConstraintMinValue("value", value, 0U));
+ VerifyOrReturn(CheckConstraintMaxValue("value", value, 254U));
}
break;
case 8:
@@ -6413,8 +6560,8 @@ class Test_TC_CC_4_4Suite : public TestCommand
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
VerifyOrReturn(CheckConstraintType("value", "", "uint8"));
- VerifyOrReturn(CheckConstraintMinValue("value", value, 0));
- VerifyOrReturn(CheckConstraintMaxValue("value", value, 254));
+ VerifyOrReturn(CheckConstraintMinValue("value", value, 0U));
+ VerifyOrReturn(CheckConstraintMaxValue("value", value, 254U));
}
break;
case 9:
@@ -6464,23 +6611,26 @@ class Test_TC_CC_4_4Suite : public TestCommand
}
case 3: {
LogStep(3, "Check current hue attribute value matched before any change");
+ VerifyOrDo(!ShouldSkip("CC.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentHue::Id, true,
chip::NullOptional);
}
case 4: {
LogStep(4, "Check Saturation attribute value matched before any change");
+ VerifyOrDo(!ShouldSkip("CC.S.A0001"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentSaturation::Id,
true, chip::NullOptional);
}
case 5: {
LogStep(5, "Move To current hue and saturation command");
+ VerifyOrDo(!ShouldSkip("CC.S.C06.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
ListFreer listFreer;
chip::app::Clusters::ColorControl::Commands::MoveToHueAndSaturation::Type value;
- value.hue = 40;
- value.saturation = 160;
+ value.hue = 40U;
+ value.saturation = 160U;
value.transitionTime = 10U;
- value.optionsMask = 0;
- value.optionsOverride = 0;
+ value.optionsMask = 0U;
+ value.optionsOverride = 0U;
return SendCommand(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Commands::MoveToHueAndSaturation::Id,
value, chip::NullOptional
@@ -6495,11 +6645,13 @@ class Test_TC_CC_4_4Suite : public TestCommand
}
case 7: {
LogStep(7, "Check current hue attribute value matched the value sent by the last command");
+ VerifyOrDo(!ShouldSkip("CC.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentHue::Id, true,
chip::NullOptional);
}
case 8: {
LogStep(8, "Check current saturation attribute value matched the value sent by the last command");
+ VerifyOrDo(!ShouldSkip("CC.S.A0001"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentSaturation::Id,
true, chip::NullOptional);
}
@@ -6665,23 +6817,26 @@ class Test_TC_CC_5_1Suite : public TestCommand
}
case 3: {
LogStep(3, "Check current x attribute value matched before any change");
+ VerifyOrDo(!ShouldSkip("CC.S.A0003"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentX::Id, true,
chip::NullOptional);
}
case 4: {
LogStep(4, "Check current y attribute value matched before any change");
+ VerifyOrDo(!ShouldSkip("CC.S.A0004"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentY::Id, true,
chip::NullOptional);
}
case 5: {
LogStep(5, "Move to Color command");
+ VerifyOrDo(!ShouldSkip("CC.S.C07.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
ListFreer listFreer;
chip::app::Clusters::ColorControl::Commands::MoveToColor::Type value;
value.colorX = 200U;
value.colorY = 300U;
value.transitionTime = 20U;
- value.optionsMask = 0;
- value.optionsOverride = 0;
+ value.optionsMask = 0U;
+ value.optionsOverride = 0U;
return SendCommand(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Commands::MoveToColor::Id, value,
chip::NullOptional
@@ -6696,11 +6851,13 @@ class Test_TC_CC_5_1Suite : public TestCommand
}
case 7: {
LogStep(7, "Check current x attribute value matched the value sent by the last command");
+ VerifyOrDo(!ShouldSkip("CC.S.A0003"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentX::Id, true,
chip::NullOptional);
}
case 8: {
LogStep(8, "Check current y attribute value matched the value sent by the last command");
+ VerifyOrDo(!ShouldSkip("CC.S.A0004"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentY::Id, true,
chip::NullOptional);
}
@@ -6889,22 +7046,25 @@ class Test_TC_CC_5_2Suite : public TestCommand
}
case 3: {
LogStep(3, "Check current x attribute value matched before any change");
+ VerifyOrDo(!ShouldSkip("CC.S.A0003"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentX::Id, true,
chip::NullOptional);
}
case 4: {
LogStep(4, "Check current y attribute value matched before any change");
+ VerifyOrDo(!ShouldSkip("CC.S.A0004"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentY::Id, true,
chip::NullOptional);
}
case 5: {
LogStep(5, "Move Color command");
+ VerifyOrDo(!ShouldSkip("CC.S.C08.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
ListFreer listFreer;
chip::app::Clusters::ColorControl::Commands::MoveColor::Type value;
value.rateX = 15;
value.rateY = 20;
- value.optionsMask = 0;
- value.optionsOverride = 0;
+ value.optionsMask = 0U;
+ value.optionsOverride = 0U;
return SendCommand(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Commands::MoveColor::Id, value,
chip::NullOptional
@@ -6919,20 +7079,23 @@ class Test_TC_CC_5_2Suite : public TestCommand
}
case 7: {
LogStep(7, "Check current x attribute value matched the value sent by the last command");
+ VerifyOrDo(!ShouldSkip("CC.S.A0003"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentX::Id, true,
chip::NullOptional);
}
case 8: {
LogStep(8, "Check current y attribute value matched the value sent by the last command");
+ VerifyOrDo(!ShouldSkip("CC.S.A0004"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentY::Id, true,
chip::NullOptional);
}
case 9: {
LogStep(9, "Stop Move Step command");
+ VerifyOrDo(!ShouldSkip("CC.S.C47.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
ListFreer listFreer;
chip::app::Clusters::ColorControl::Commands::StopMoveStep::Type value;
- value.optionsMask = 0;
- value.optionsOverride = 0;
+ value.optionsMask = 0U;
+ value.optionsOverride = 0U;
return SendCommand(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Commands::StopMoveStep::Id, value,
chip::NullOptional
@@ -6940,11 +7103,13 @@ class Test_TC_CC_5_2Suite : public TestCommand
}
case 10: {
LogStep(10, "Check current x attribute value matched the value sent by the last command");
+ VerifyOrDo(!ShouldSkip("CC.S.A0003"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentX::Id, true,
chip::NullOptional);
}
case 11: {
LogStep(11, "Check current y attribute value matched the value sent by the last command");
+ VerifyOrDo(!ShouldSkip("CC.S.A0004"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentY::Id, true,
chip::NullOptional);
}
@@ -7110,23 +7275,26 @@ class Test_TC_CC_5_3Suite : public TestCommand
}
case 3: {
LogStep(3, "Check current x attribute value matched before any change");
+ VerifyOrDo(!ShouldSkip("CC.S.A0003"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentX::Id, true,
chip::NullOptional);
}
case 4: {
LogStep(4, "Check current y attribute value matched before any change");
+ VerifyOrDo(!ShouldSkip("CC.S.A0004"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentY::Id, true,
chip::NullOptional);
}
case 5: {
LogStep(5, "Step Color command");
+ VerifyOrDo(!ShouldSkip("CC.S.C09.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
ListFreer listFreer;
chip::app::Clusters::ColorControl::Commands::StepColor::Type value;
value.stepX = 15;
value.stepY = 20;
value.transitionTime = 50U;
- value.optionsMask = 0;
- value.optionsOverride = 0;
+ value.optionsMask = 0U;
+ value.optionsOverride = 0U;
return SendCommand(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Commands::StepColor::Id, value,
chip::NullOptional
@@ -7141,11 +7309,13 @@ class Test_TC_CC_5_3Suite : public TestCommand
}
case 7: {
LogStep(7, "Check current x attribute value matched the value sent by the last command");
+ VerifyOrDo(!ShouldSkip("CC.S.A0003"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentX::Id, true,
chip::NullOptional);
}
case 8: {
LogStep(8, "Check current y attribute value matched the value sent by the last command");
+ VerifyOrDo(!ShouldSkip("CC.S.A0004"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentY::Id, true,
chip::NullOptional);
}
@@ -7291,17 +7461,19 @@ class Test_TC_CC_6_1Suite : public TestCommand
}
case 3: {
LogStep(3, "Read current color temprature");
+ VerifyOrDo(!ShouldSkip("CC.S.A0007"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorTemperature::Id,
true, chip::NullOptional);
}
case 4: {
LogStep(4, "Move To Color Temperature command");
+ VerifyOrDo(!ShouldSkip("CC.S.C0A.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
ListFreer listFreer;
chip::app::Clusters::ColorControl::Commands::MoveToColorTemperature::Type value;
value.colorTemperature = 100U;
value.transitionTime = 10U;
- value.optionsMask = 0;
- value.optionsOverride = 0;
+ value.optionsMask = 0U;
+ value.optionsOverride = 0U;
return SendCommand(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Commands::MoveToColorTemperature::Id,
value, chip::NullOptional
@@ -7316,6 +7488,7 @@ class Test_TC_CC_6_1Suite : public TestCommand
}
case 6: {
LogStep(6, "Read current color temprature");
+ VerifyOrDo(!ShouldSkip("CC.S.A0007"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorTemperature::Id,
true, chip::NullOptional);
}
@@ -7630,19 +7803,21 @@ class Test_TC_CC_6_2Suite : public TestCommand
}
case 3: {
LogStep(3, "Read current color temprature");
+ VerifyOrDo(!ShouldSkip("CC.S.A0007"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorTemperature::Id,
true, chip::NullOptional);
}
case 4: {
LogStep(4, "Move up color temperature command");
+ VerifyOrDo(!ShouldSkip("CC.S.C4B.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
ListFreer listFreer;
chip::app::Clusters::ColorControl::Commands::MoveColorTemperature::Type value;
value.moveMode = static_cast(1);
value.rate = 10U;
value.colorTemperatureMinimumMireds = 1U;
value.colorTemperatureMaximumMireds = 255U;
- value.optionsMask = 0;
- value.optionsOverride = 0;
+ value.optionsMask = 0U;
+ value.optionsOverride = 0U;
return SendCommand(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Commands::MoveColorTemperature::Id,
value, chip::NullOptional
@@ -7657,6 +7832,7 @@ class Test_TC_CC_6_2Suite : public TestCommand
}
case 6: {
LogStep(6, "Read current color temprature attribute from DUT several times");
+ VerifyOrDo(!ShouldSkip("CC.S.A0007"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorTemperature::Id,
true, chip::NullOptional);
}
@@ -7669,6 +7845,7 @@ class Test_TC_CC_6_2Suite : public TestCommand
}
case 8: {
LogStep(8, "Read current color temprature attribute from DUT several times");
+ VerifyOrDo(!ShouldSkip("CC.S.A0007"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorTemperature::Id,
true, chip::NullOptional);
}
@@ -7681,19 +7858,21 @@ class Test_TC_CC_6_2Suite : public TestCommand
}
case 10: {
LogStep(10, "Read current color temprature attribute from DUT several times");
+ VerifyOrDo(!ShouldSkip("CC.S.A0007"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorTemperature::Id,
true, chip::NullOptional);
}
case 11: {
LogStep(11, "Move down color temperature command");
+ VerifyOrDo(!ShouldSkip("CC.S.C4B.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
ListFreer listFreer;
chip::app::Clusters::ColorControl::Commands::MoveColorTemperature::Type value;
value.moveMode = static_cast(3);
value.rate = 20U;
value.colorTemperatureMinimumMireds = 1U;
value.colorTemperatureMaximumMireds = 255U;
- value.optionsMask = 0;
- value.optionsOverride = 0;
+ value.optionsMask = 0U;
+ value.optionsOverride = 0U;
return SendCommand(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Commands::MoveColorTemperature::Id,
value, chip::NullOptional
@@ -7708,6 +7887,7 @@ class Test_TC_CC_6_2Suite : public TestCommand
}
case 13: {
LogStep(13, "Read current color temprature attribute from DUT several times");
+ VerifyOrDo(!ShouldSkip("CC.S.A0007"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorTemperature::Id,
true, chip::NullOptional);
}
@@ -7720,6 +7900,7 @@ class Test_TC_CC_6_2Suite : public TestCommand
}
case 15: {
LogStep(15, "Read current color temprature attribute from DUT several times");
+ VerifyOrDo(!ShouldSkip("CC.S.A0007"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorTemperature::Id,
true, chip::NullOptional);
}
@@ -7732,19 +7913,21 @@ class Test_TC_CC_6_2Suite : public TestCommand
}
case 17: {
LogStep(17, "Read current color temprature attribute from DUT several times");
+ VerifyOrDo(!ShouldSkip("CC.S.A0007"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorTemperature::Id,
true, chip::NullOptional);
}
case 18: {
LogStep(18, "Move up color temperature command");
+ VerifyOrDo(!ShouldSkip("CC.S.C4B.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
ListFreer listFreer;
chip::app::Clusters::ColorControl::Commands::MoveColorTemperature::Type value;
value.moveMode = static_cast(1);
value.rate = 10U;
value.colorTemperatureMinimumMireds = 1U;
value.colorTemperatureMaximumMireds = 255U;
- value.optionsMask = 0;
- value.optionsOverride = 0;
+ value.optionsMask = 0U;
+ value.optionsOverride = 0U;
return SendCommand(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Commands::MoveColorTemperature::Id,
value, chip::NullOptional
@@ -7752,14 +7935,15 @@ class Test_TC_CC_6_2Suite : public TestCommand
}
case 19: {
LogStep(19, "Stop Color Temperature command");
+ VerifyOrDo(!ShouldSkip("CC.S.C4B.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
ListFreer listFreer;
chip::app::Clusters::ColorControl::Commands::MoveColorTemperature::Type value;
value.moveMode = static_cast(0);
value.rate = 10U;
value.colorTemperatureMinimumMireds = 1U;
value.colorTemperatureMaximumMireds = 255U;
- value.optionsMask = 0;
- value.optionsOverride = 0;
+ value.optionsMask = 0U;
+ value.optionsOverride = 0U;
return SendCommand(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Commands::MoveColorTemperature::Id,
value, chip::NullOptional
@@ -7774,6 +7958,7 @@ class Test_TC_CC_6_2Suite : public TestCommand
}
case 21: {
LogStep(21, "Read current color temprature attribute from DUT several times");
+ VerifyOrDo(!ShouldSkip("CC.S.A0007"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorTemperature::Id,
true, chip::NullOptional);
}
@@ -7786,6 +7971,7 @@ class Test_TC_CC_6_2Suite : public TestCommand
}
case 23: {
LogStep(23, "Read current color temprature attribute from DUT several times");
+ VerifyOrDo(!ShouldSkip("CC.S.A0007"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorTemperature::Id,
true, chip::NullOptional);
}
@@ -7798,19 +7984,21 @@ class Test_TC_CC_6_2Suite : public TestCommand
}
case 25: {
LogStep(25, "Read current color temprature attribute from DUT several times");
+ VerifyOrDo(!ShouldSkip("CC.S.A0007"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorTemperature::Id,
true, chip::NullOptional);
}
case 26: {
LogStep(26, "Move down color temperature command");
+ VerifyOrDo(!ShouldSkip("CC.S.C4B.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
ListFreer listFreer;
chip::app::Clusters::ColorControl::Commands::MoveColorTemperature::Type value;
value.moveMode = static_cast(3);
value.rate = 20U;
value.colorTemperatureMinimumMireds = 1U;
value.colorTemperatureMaximumMireds = 255U;
- value.optionsMask = 0;
- value.optionsOverride = 0;
+ value.optionsMask = 0U;
+ value.optionsOverride = 0U;
return SendCommand(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Commands::MoveColorTemperature::Id,
value, chip::NullOptional
@@ -7818,14 +8006,15 @@ class Test_TC_CC_6_2Suite : public TestCommand
}
case 27: {
LogStep(27, "Stop Color Temperature command");
+ VerifyOrDo(!ShouldSkip("CC.S.C4B.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
ListFreer listFreer;
chip::app::Clusters::ColorControl::Commands::MoveColorTemperature::Type value;
value.moveMode = static_cast(0);
value.rate = 10U;
value.colorTemperatureMinimumMireds = 1U;
value.colorTemperatureMaximumMireds = 255U;
- value.optionsMask = 0;
- value.optionsOverride = 0;
+ value.optionsMask = 0U;
+ value.optionsOverride = 0U;
return SendCommand(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Commands::MoveColorTemperature::Id,
value, chip::NullOptional
@@ -7840,6 +8029,7 @@ class Test_TC_CC_6_2Suite : public TestCommand
}
case 29: {
LogStep(29, "Read current color temprature attribute from DUT several times");
+ VerifyOrDo(!ShouldSkip("CC.S.A0007"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorTemperature::Id,
true, chip::NullOptional);
}
@@ -7852,6 +8042,7 @@ class Test_TC_CC_6_2Suite : public TestCommand
}
case 31: {
LogStep(31, "Read current color temprature attribute from DUT several times");
+ VerifyOrDo(!ShouldSkip("CC.S.A0007"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorTemperature::Id,
true, chip::NullOptional);
}
@@ -7864,6 +8055,7 @@ class Test_TC_CC_6_2Suite : public TestCommand
}
case 33: {
LogStep(33, "Read current color temprature attribute from DUT several times");
+ VerifyOrDo(!ShouldSkip("CC.S.A0007"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorTemperature::Id,
true, chip::NullOptional);
}
@@ -8082,11 +8274,13 @@ class Test_TC_CC_6_3Suite : public TestCommand
}
case 3: {
LogStep(3, "Read current color temprature");
+ VerifyOrDo(!ShouldSkip("CC.S.A0007"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorTemperature::Id,
true, chip::NullOptional);
}
case 4: {
LogStep(4, "Step up color temperature command");
+ VerifyOrDo(!ShouldSkip("CC.S.C4C.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
ListFreer listFreer;
chip::app::Clusters::ColorControl::Commands::StepColorTemperature::Type value;
value.stepMode = static_cast(1);
@@ -8094,8 +8288,8 @@ class Test_TC_CC_6_3Suite : public TestCommand
value.transitionTime = 50U;
value.colorTemperatureMinimumMireds = 5U;
value.colorTemperatureMaximumMireds = 100U;
- value.optionsMask = 0;
- value.optionsOverride = 0;
+ value.optionsMask = 0U;
+ value.optionsOverride = 0U;
return SendCommand(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Commands::StepColorTemperature::Id,
value, chip::NullOptional
@@ -8110,6 +8304,7 @@ class Test_TC_CC_6_3Suite : public TestCommand
}
case 6: {
LogStep(6, "Read current color temprature");
+ VerifyOrDo(!ShouldSkip("CC.S.A0007"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorTemperature::Id,
true, chip::NullOptional);
}
@@ -8122,6 +8317,7 @@ class Test_TC_CC_6_3Suite : public TestCommand
}
case 8: {
LogStep(8, "Read current color temprature");
+ VerifyOrDo(!ShouldSkip("CC.S.A0007"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorTemperature::Id,
true, chip::NullOptional);
}
@@ -8134,11 +8330,13 @@ class Test_TC_CC_6_3Suite : public TestCommand
}
case 10: {
LogStep(10, "Read current color temprature");
+ VerifyOrDo(!ShouldSkip("CC.S.A0007"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorTemperature::Id,
true, chip::NullOptional);
}
case 11: {
LogStep(11, "Step down color temperature command");
+ VerifyOrDo(!ShouldSkip("CC.S.C4C.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
ListFreer listFreer;
chip::app::Clusters::ColorControl::Commands::StepColorTemperature::Type value;
value.stepMode = static_cast(3);
@@ -8146,8 +8344,8 @@ class Test_TC_CC_6_3Suite : public TestCommand
value.transitionTime = 50U;
value.colorTemperatureMinimumMireds = 5U;
value.colorTemperatureMaximumMireds = 100U;
- value.optionsMask = 0;
- value.optionsOverride = 0;
+ value.optionsMask = 0U;
+ value.optionsOverride = 0U;
return SendCommand(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Commands::StepColorTemperature::Id,
value, chip::NullOptional
@@ -8162,6 +8360,7 @@ class Test_TC_CC_6_3Suite : public TestCommand
}
case 13: {
LogStep(13, "Read current color temprature");
+ VerifyOrDo(!ShouldSkip("CC.S.A0007"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorTemperature::Id,
true, chip::NullOptional);
}
@@ -8174,6 +8373,7 @@ class Test_TC_CC_6_3Suite : public TestCommand
}
case 15: {
LogStep(15, "Read current color temprature");
+ VerifyOrDo(!ShouldSkip("CC.S.A0007"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorTemperature::Id,
true, chip::NullOptional);
}
@@ -8186,6 +8386,7 @@ class Test_TC_CC_6_3Suite : public TestCommand
}
case 17: {
LogStep(17, "Read current color temprature");
+ VerifyOrDo(!ShouldSkip("CC.S.A0007"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorTemperature::Id,
true, chip::NullOptional);
}
@@ -8497,13 +8698,14 @@ class Test_TC_CC_7_1Suite : public TestCommand
}
case 3: {
LogStep(3, "Enhanced Move To Hue command");
+ VerifyOrDo(!ShouldSkip("CC.S.C40.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
ListFreer listFreer;
chip::app::Clusters::ColorControl::Commands::EnhancedMoveToHue::Type value;
value.enhancedHue = 1025U;
value.direction = static_cast(0);
value.transitionTime = 1U;
- value.optionsMask = 0;
- value.optionsOverride = 0;
+ value.optionsMask = 0U;
+ value.optionsOverride = 0U;
return SendCommand(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Commands::EnhancedMoveToHue::Id,
value, chip::NullOptional
@@ -8511,18 +8713,20 @@ class Test_TC_CC_7_1Suite : public TestCommand
}
case 4: {
LogStep(4, "Check EnhancedCurrentHue attribute value matched the value sent by the last command");
+ VerifyOrDo(!ShouldSkip("CC.S.A4000"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::EnhancedCurrentHue::Id,
true, chip::NullOptional);
}
case 5: {
LogStep(5, "Enhanced Move To Hue command");
+ VerifyOrDo(!ShouldSkip("CC.S.C40.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
ListFreer listFreer;
chip::app::Clusters::ColorControl::Commands::EnhancedMoveToHue::Type value;
value.enhancedHue = 1100U;
value.direction = static_cast(0);
value.transitionTime = 300U;
- value.optionsMask = 0;
- value.optionsOverride = 0;
+ value.optionsMask = 0U;
+ value.optionsOverride = 0U;
return SendCommand(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Commands::EnhancedMoveToHue::Id,
value, chip::NullOptional
@@ -8537,6 +8741,7 @@ class Test_TC_CC_7_1Suite : public TestCommand
}
case 7: {
LogStep(7, "Check EnhancedCurrentHue attribute value matched the value sent by the last command");
+ VerifyOrDo(!ShouldSkip("CC.S.A4000"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::EnhancedCurrentHue::Id,
true, chip::NullOptional);
}
@@ -8549,6 +8754,7 @@ class Test_TC_CC_7_1Suite : public TestCommand
}
case 9: {
LogStep(9, "Check EnhancedCurrentHue attribute value matched the value sent by the last command");
+ VerifyOrDo(!ShouldSkip("CC.S.A4000"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::EnhancedCurrentHue::Id,
true, chip::NullOptional);
}
@@ -8561,18 +8767,20 @@ class Test_TC_CC_7_1Suite : public TestCommand
}
case 11: {
LogStep(11, "Check EnhancedCurrentHue attribute value matched the value sent by the last command");
+ VerifyOrDo(!ShouldSkip("CC.S.A4000"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::EnhancedCurrentHue::Id,
true, chip::NullOptional);
}
case 12: {
LogStep(12, "Enhanced Move To Hue command");
+ VerifyOrDo(!ShouldSkip("CC.S.C40.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
ListFreer listFreer;
chip::app::Clusters::ColorControl::Commands::EnhancedMoveToHue::Type value;
value.enhancedHue = 1150U;
value.direction = static_cast(1);
value.transitionTime = 300U;
- value.optionsMask = 0;
- value.optionsOverride = 0;
+ value.optionsMask = 0U;
+ value.optionsOverride = 0U;
return SendCommand(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Commands::EnhancedMoveToHue::Id,
value, chip::NullOptional
@@ -8587,6 +8795,7 @@ class Test_TC_CC_7_1Suite : public TestCommand
}
case 14: {
LogStep(14, "Check EnhancedCurrentHue attribute value matched the value sent by the last command");
+ VerifyOrDo(!ShouldSkip("CC.S.A4000"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::EnhancedCurrentHue::Id,
true, chip::NullOptional);
}
@@ -8599,6 +8808,7 @@ class Test_TC_CC_7_1Suite : public TestCommand
}
case 16: {
LogStep(16, "Check EnhancedCurrentHue attribute value matched the value sent by the last command");
+ VerifyOrDo(!ShouldSkip("CC.S.A4000"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::EnhancedCurrentHue::Id,
true, chip::NullOptional);
}
@@ -8611,18 +8821,20 @@ class Test_TC_CC_7_1Suite : public TestCommand
}
case 18: {
LogStep(18, "Check EnhancedCurrentHue attribute value matched the value sent by the last command");
+ VerifyOrDo(!ShouldSkip("CC.S.A4000"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::EnhancedCurrentHue::Id,
true, chip::NullOptional);
}
case 19: {
LogStep(19, "Enhanced Move To Hue command");
+ VerifyOrDo(!ShouldSkip("CC.S.C40.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
ListFreer listFreer;
chip::app::Clusters::ColorControl::Commands::EnhancedMoveToHue::Type value;
value.enhancedHue = 1200U;
value.direction = static_cast(2);
value.transitionTime = 300U;
- value.optionsMask = 0;
- value.optionsOverride = 0;
+ value.optionsMask = 0U;
+ value.optionsOverride = 0U;
return SendCommand(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Commands::EnhancedMoveToHue::Id,
value, chip::NullOptional
@@ -8637,6 +8849,7 @@ class Test_TC_CC_7_1Suite : public TestCommand
}
case 21: {
LogStep(21, "Check EnhancedCurrentHue attribute value matched the value sent by the last command");
+ VerifyOrDo(!ShouldSkip("CC.S.A4000"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::EnhancedCurrentHue::Id,
true, chip::NullOptional);
}
@@ -8649,6 +8862,7 @@ class Test_TC_CC_7_1Suite : public TestCommand
}
case 23: {
LogStep(23, "Check EnhancedCurrentHue attribute value matched the value sent by the last command");
+ VerifyOrDo(!ShouldSkip("CC.S.A4000"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::EnhancedCurrentHue::Id,
true, chip::NullOptional);
}
@@ -8661,18 +8875,20 @@ class Test_TC_CC_7_1Suite : public TestCommand
}
case 25: {
LogStep(25, "Check EnhancedCurrentHue attribute value matched the value sent by the last command");
+ VerifyOrDo(!ShouldSkip("CC.S.A4000"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::EnhancedCurrentHue::Id,
true, chip::NullOptional);
}
case 26: {
LogStep(26, "Enhanced Move To Hue command");
+ VerifyOrDo(!ShouldSkip("CC.S.C40.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
ListFreer listFreer;
chip::app::Clusters::ColorControl::Commands::EnhancedMoveToHue::Type value;
value.enhancedHue = 1300U;
value.direction = static_cast(3);
value.transitionTime = 300U;
- value.optionsMask = 0;
- value.optionsOverride = 0;
+ value.optionsMask = 0U;
+ value.optionsOverride = 0U;
return SendCommand(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Commands::EnhancedMoveToHue::Id,
value, chip::NullOptional
@@ -8687,6 +8903,7 @@ class Test_TC_CC_7_1Suite : public TestCommand
}
case 28: {
LogStep(28, "Check EnhancedCurrentHue attribute value matched the value sent by the last command");
+ VerifyOrDo(!ShouldSkip("CC.S.A4000"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::EnhancedCurrentHue::Id,
true, chip::NullOptional);
}
@@ -8699,6 +8916,7 @@ class Test_TC_CC_7_1Suite : public TestCommand
}
case 30: {
LogStep(30, "Check EnhancedCurrentHue attribute value matched the value sent by the last command");
+ VerifyOrDo(!ShouldSkip("CC.S.A4000"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::EnhancedCurrentHue::Id,
true, chip::NullOptional);
}
@@ -8711,6 +8929,7 @@ class Test_TC_CC_7_1Suite : public TestCommand
}
case 32: {
LogStep(32, "Check EnhancedCurrentHue attribute value matched the value sent by the last command");
+ VerifyOrDo(!ShouldSkip("CC.S.A4000"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::EnhancedCurrentHue::Id,
true, chip::NullOptional);
}
@@ -8955,17 +9174,19 @@ class Test_TC_CC_7_2Suite : public TestCommand
}
case 3: {
LogStep(3, "Check EnhancedCurrentHue attribute from DUT");
+ VerifyOrDo(!ShouldSkip("CC.S.A4000"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::EnhancedCurrentHue::Id,
true, chip::NullOptional);
}
case 4: {
LogStep(4, "Enhanced Move Hue Up command");
+ VerifyOrDo(!ShouldSkip("CC.S.C41.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
ListFreer listFreer;
chip::app::Clusters::ColorControl::Commands::EnhancedMoveHue::Type value;
value.moveMode = static_cast(1);
value.rate = 50U;
- value.optionsMask = 0;
- value.optionsOverride = 0;
+ value.optionsMask = 0U;
+ value.optionsOverride = 0U;
return SendCommand(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Commands::EnhancedMoveHue::Id, value,
chip::NullOptional
@@ -8980,6 +9201,7 @@ class Test_TC_CC_7_2Suite : public TestCommand
}
case 6: {
LogStep(6, "Check EnhancedCurrentHue attribute value matched the value sent by the last command");
+ VerifyOrDo(!ShouldSkip("CC.S.A4000"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::EnhancedCurrentHue::Id,
true, chip::NullOptional);
}
@@ -8992,6 +9214,7 @@ class Test_TC_CC_7_2Suite : public TestCommand
}
case 8: {
LogStep(8, "Check EnhancedCurrentHue attribute value matched the value sent by the last command");
+ VerifyOrDo(!ShouldSkip("CC.S.A4000"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::EnhancedCurrentHue::Id,
true, chip::NullOptional);
}
@@ -9004,17 +9227,19 @@ class Test_TC_CC_7_2Suite : public TestCommand
}
case 10: {
LogStep(10, "Check EnhancedCurrentHue attribute value matched the value sent by the last command");
+ VerifyOrDo(!ShouldSkip("CC.S.A4000"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::EnhancedCurrentHue::Id,
true, chip::NullOptional);
}
case 11: {
LogStep(11, "Enhanced Move Hue Stop command");
+ VerifyOrDo(!ShouldSkip("CC.S.C41.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
ListFreer listFreer;
chip::app::Clusters::ColorControl::Commands::EnhancedMoveHue::Type value;
value.moveMode = static_cast(0);
value.rate = 0U;
- value.optionsMask = 0;
- value.optionsOverride = 0;
+ value.optionsMask = 0U;
+ value.optionsOverride = 0U;
return SendCommand(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Commands::EnhancedMoveHue::Id, value,
chip::NullOptional
@@ -9022,17 +9247,19 @@ class Test_TC_CC_7_2Suite : public TestCommand
}
case 12: {
LogStep(12, "Check EnhancedCurrentHue attribute value matched the value sent by the last command");
+ VerifyOrDo(!ShouldSkip("CC.S.A4000"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::EnhancedCurrentHue::Id,
true, chip::NullOptional);
}
case 13: {
- LogStep(13, "Enhanced Move Hue Down command ");
+ LogStep(13, "Enhanced Move Hue Down command");
+ VerifyOrDo(!ShouldSkip("CC.S.C41.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
ListFreer listFreer;
chip::app::Clusters::ColorControl::Commands::EnhancedMoveHue::Type value;
value.moveMode = static_cast(3);
value.rate = 5U;
- value.optionsMask = 0;
- value.optionsOverride = 0;
+ value.optionsMask = 0U;
+ value.optionsOverride = 0U;
return SendCommand(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Commands::EnhancedMoveHue::Id, value,
chip::NullOptional
@@ -9047,6 +9274,7 @@ class Test_TC_CC_7_2Suite : public TestCommand
}
case 15: {
LogStep(15, "Check EnhancedCurrentHue attribute value matched the value sent by the last command");
+ VerifyOrDo(!ShouldSkip("CC.S.A4000"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::EnhancedCurrentHue::Id,
true, chip::NullOptional);
}
@@ -9059,6 +9287,7 @@ class Test_TC_CC_7_2Suite : public TestCommand
}
case 17: {
LogStep(17, "Check EnhancedCurrentHue attribute value matched the value sent by the last command");
+ VerifyOrDo(!ShouldSkip("CC.S.A4000"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::EnhancedCurrentHue::Id,
true, chip::NullOptional);
}
@@ -9071,17 +9300,19 @@ class Test_TC_CC_7_2Suite : public TestCommand
}
case 19: {
LogStep(19, "Check EnhancedCurrentHue attribute value matched the value sent by the last command");
+ VerifyOrDo(!ShouldSkip("CC.S.A4000"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::EnhancedCurrentHue::Id,
true, chip::NullOptional);
}
case 20: {
LogStep(20, "Enhanced Move Hue Stop command");
+ VerifyOrDo(!ShouldSkip("CC.S.C41.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
ListFreer listFreer;
chip::app::Clusters::ColorControl::Commands::EnhancedMoveHue::Type value;
value.moveMode = static_cast(0);
value.rate = 0U;
- value.optionsMask = 0;
- value.optionsOverride = 0;
+ value.optionsMask = 0U;
+ value.optionsOverride = 0U;
return SendCommand(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Commands::EnhancedMoveHue::Id, value,
chip::NullOptional
@@ -9089,6 +9320,7 @@ class Test_TC_CC_7_2Suite : public TestCommand
}
case 21: {
LogStep(21, "Check EnhancedCurrentHue attribute value matched the value sent by the last command");
+ VerifyOrDo(!ShouldSkip("CC.S.A4000"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::EnhancedCurrentHue::Id,
true, chip::NullOptional);
}
@@ -9251,18 +9483,20 @@ class Test_TC_CC_7_3Suite : public TestCommand
}
case 3: {
LogStep(3, "Reads EnhancedCurrentHue attribute from DUT");
+ VerifyOrDo(!ShouldSkip("CC.S.A4000"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::EnhancedCurrentHue::Id,
true, chip::NullOptional);
}
case 4: {
LogStep(4, "Enhanced Step Hue Up command");
+ VerifyOrDo(!ShouldSkip("CC.S.C42.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
ListFreer listFreer;
chip::app::Clusters::ColorControl::Commands::EnhancedStepHue::Type value;
value.stepMode = static_cast(0);
value.stepSize = 50U;
value.transitionTime = 1U;
- value.optionsMask = 0;
- value.optionsOverride = 0;
+ value.optionsMask = 0U;
+ value.optionsOverride = 0U;
return SendCommand(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Commands::EnhancedStepHue::Id, value,
chip::NullOptional
@@ -9277,18 +9511,20 @@ class Test_TC_CC_7_3Suite : public TestCommand
}
case 6: {
LogStep(6, "Over TransitionTime,Read EnhancedCurrentHue attribute from DUT");
+ VerifyOrDo(!ShouldSkip("CC.S.A4000"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::EnhancedCurrentHue::Id,
true, chip::NullOptional);
}
case 7: {
LogStep(7, "Enhanced Step Hue Down command");
+ VerifyOrDo(!ShouldSkip("CC.S.C42.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
ListFreer listFreer;
chip::app::Clusters::ColorControl::Commands::EnhancedStepHue::Type value;
value.stepMode = static_cast(1);
value.stepSize = 75U;
value.transitionTime = 1U;
- value.optionsMask = 0;
- value.optionsOverride = 0;
+ value.optionsMask = 0U;
+ value.optionsOverride = 0U;
return SendCommand(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Commands::EnhancedStepHue::Id, value,
chip::NullOptional
@@ -9303,6 +9539,7 @@ class Test_TC_CC_7_3Suite : public TestCommand
}
case 9: {
LogStep(9, "Over TransitionTime,Read EnhancedCurrentHue attribute from DUT");
+ VerifyOrDo(!ShouldSkip("CC.S.A4000"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::EnhancedCurrentHue::Id,
true, chip::NullOptional);
}
@@ -9448,18 +9685,20 @@ class Test_TC_CC_7_4Suite : public TestCommand
}
case 3: {
LogStep(3, "Reads EnhancedCurrentHue attribute from DUT");
+ VerifyOrDo(!ShouldSkip("CC.S.A4000"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::EnhancedCurrentHue::Id,
true, chip::NullOptional);
}
case 4: {
LogStep(4, "Enhanced move to hue and saturation command");
+ VerifyOrDo(!ShouldSkip("CC.S.C43.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
ListFreer listFreer;
chip::app::Clusters::ColorControl::Commands::EnhancedMoveToHueAndSaturation::Type value;
value.enhancedHue = 1200U;
- value.saturation = 90;
+ value.saturation = 90U;
value.transitionTime = 10U;
- value.optionsMask = 0;
- value.optionsOverride = 0;
+ value.optionsMask = 0U;
+ value.optionsOverride = 0U;
return SendCommand(kIdentityAlpha, GetEndpoint(1), ColorControl::Id,
ColorControl::Commands::EnhancedMoveToHueAndSaturation::Id, value, chip::NullOptional
@@ -9474,6 +9713,7 @@ class Test_TC_CC_7_4Suite : public TestCommand
}
case 6: {
LogStep(6, "Check EnhancedCurrentHue attribute value matched the value sent by the last command");
+ VerifyOrDo(!ShouldSkip("CC.S.A4000"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::EnhancedCurrentHue::Id,
true, chip::NullOptional);
}
@@ -9554,8 +9794,8 @@ class Test_TC_CC_8_1Suite : public TestCommand
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
VerifyOrReturn(CheckConstraintType("value", "", "uint8"));
- VerifyOrReturn(CheckConstraintMinValue("value", value, 0));
- VerifyOrReturn(CheckConstraintMaxValue("value", value, 254));
+ VerifyOrReturn(CheckConstraintMinValue("value", value, 0U));
+ VerifyOrReturn(CheckConstraintMaxValue("value", value, 254U));
}
break;
case 5:
@@ -9567,8 +9807,8 @@ class Test_TC_CC_8_1Suite : public TestCommand
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
VerifyOrReturn(CheckConstraintType("value", "", "uint8"));
- VerifyOrReturn(CheckConstraintMinValue("value", value, 0));
- VerifyOrReturn(CheckConstraintMaxValue("value", value, 254));
+ VerifyOrReturn(CheckConstraintMinValue("value", value, 0U));
+ VerifyOrReturn(CheckConstraintMaxValue("value", value, 254U));
}
break;
case 7:
@@ -9581,8 +9821,8 @@ class Test_TC_CC_8_1Suite : public TestCommand
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
VerifyOrReturn(CheckConstraintType("value", "", "uint8"));
- VerifyOrReturn(CheckConstraintMinValue("value", value, 0));
- VerifyOrReturn(CheckConstraintMaxValue("value", value, 254));
+ VerifyOrReturn(CheckConstraintMinValue("value", value, 0U));
+ VerifyOrReturn(CheckConstraintMaxValue("value", value, 254U));
}
break;
case 9:
@@ -9594,8 +9834,8 @@ class Test_TC_CC_8_1Suite : public TestCommand
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
VerifyOrReturn(CheckConstraintType("value", "", "uint8"));
- VerifyOrReturn(CheckConstraintMinValue("value", value, 0));
- VerifyOrReturn(CheckConstraintMaxValue("value", value, 254));
+ VerifyOrReturn(CheckConstraintMinValue("value", value, 0U));
+ VerifyOrReturn(CheckConstraintMaxValue("value", value, 254U));
}
break;
case 11:
@@ -9607,8 +9847,8 @@ class Test_TC_CC_8_1Suite : public TestCommand
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
VerifyOrReturn(CheckConstraintType("value", "", "uint8"));
- VerifyOrReturn(CheckConstraintMinValue("value", value, 0));
- VerifyOrReturn(CheckConstraintMaxValue("value", value, 254));
+ VerifyOrReturn(CheckConstraintMinValue("value", value, 0U));
+ VerifyOrReturn(CheckConstraintMaxValue("value", value, 254U));
}
break;
case 13:
@@ -9621,8 +9861,8 @@ class Test_TC_CC_8_1Suite : public TestCommand
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
VerifyOrReturn(CheckConstraintType("value", "", "uint8"));
- VerifyOrReturn(CheckConstraintMinValue("value", value, 0));
- VerifyOrReturn(CheckConstraintMaxValue("value", value, 254));
+ VerifyOrReturn(CheckConstraintMinValue("value", value, 0U));
+ VerifyOrReturn(CheckConstraintMaxValue("value", value, 254U));
}
break;
case 15:
@@ -9822,12 +10062,13 @@ class Test_TC_CC_8_1Suite : public TestCommand
}
case 3: {
LogStep(3, "Move hue up command");
+ VerifyOrDo(!ShouldSkip("CC.S.C01.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
ListFreer listFreer;
chip::app::Clusters::ColorControl::Commands::MoveHue::Type value;
value.moveMode = static_cast(1);
- value.rate = 50;
- value.optionsMask = 0;
- value.optionsOverride = 0;
+ value.rate = 50U;
+ value.optionsMask = 0U;
+ value.optionsOverride = 0U;
return SendCommand(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Commands::MoveHue::Id, value,
chip::NullOptional
@@ -9835,15 +10076,17 @@ class Test_TC_CC_8_1Suite : public TestCommand
}
case 4: {
LogStep(4, "Reads CurrentHue attribute from DUT");
+ VerifyOrDo(!ShouldSkip("CC.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentHue::Id, true,
chip::NullOptional);
}
case 5: {
LogStep(5, "Stop Move Step command");
+ VerifyOrDo(!ShouldSkip("CC.S.C47.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
ListFreer listFreer;
chip::app::Clusters::ColorControl::Commands::StopMoveStep::Type value;
- value.optionsMask = 0;
- value.optionsOverride = 0;
+ value.optionsMask = 0U;
+ value.optionsOverride = 0U;
return SendCommand(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Commands::StopMoveStep::Id, value,
chip::NullOptional
@@ -9851,6 +10094,7 @@ class Test_TC_CC_8_1Suite : public TestCommand
}
case 6: {
LogStep(6, "Reads CurrentHue attribute from DUT");
+ VerifyOrDo(!ShouldSkip("CC.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentHue::Id, true,
chip::NullOptional);
}
@@ -9863,17 +10107,19 @@ class Test_TC_CC_8_1Suite : public TestCommand
}
case 8: {
LogStep(8, "Check current hue attribute value matched the value sent by the last attribute");
+ VerifyOrDo(!ShouldSkip("CC.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentHue::Id, true,
chip::NullOptional);
}
case 9: {
LogStep(9, "Move saturation up command");
+ VerifyOrDo(!ShouldSkip("CC.S.C04.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
ListFreer listFreer;
chip::app::Clusters::ColorControl::Commands::MoveSaturation::Type value;
value.moveMode = static_cast(1);
- value.rate = 5;
- value.optionsMask = 0;
- value.optionsOverride = 0;
+ value.rate = 5U;
+ value.optionsMask = 0U;
+ value.optionsOverride = 0U;
return SendCommand(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Commands::MoveSaturation::Id, value,
chip::NullOptional
@@ -9881,15 +10127,17 @@ class Test_TC_CC_8_1Suite : public TestCommand
}
case 10: {
LogStep(10, "Check Saturation attribute value matched the value sent by the last command");
+ VerifyOrDo(!ShouldSkip("CC.S.A0001"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentSaturation::Id,
true, chip::NullOptional);
}
case 11: {
LogStep(11, "Stop Move Step command");
+ VerifyOrDo(!ShouldSkip("CC.S.C47.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
ListFreer listFreer;
chip::app::Clusters::ColorControl::Commands::StopMoveStep::Type value;
- value.optionsMask = 0;
- value.optionsOverride = 0;
+ value.optionsMask = 0U;
+ value.optionsOverride = 0U;
return SendCommand(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Commands::StopMoveStep::Id, value,
chip::NullOptional
@@ -9897,6 +10145,7 @@ class Test_TC_CC_8_1Suite : public TestCommand
}
case 12: {
LogStep(12, "Reads CurrentSaturation attribute from DUT.");
+ VerifyOrDo(!ShouldSkip("CC.S.A0001"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentSaturation::Id,
true, chip::NullOptional);
}
@@ -9909,17 +10158,19 @@ class Test_TC_CC_8_1Suite : public TestCommand
}
case 14: {
LogStep(14, "Check Saturation attribute value matched the value sent by the last attribute");
+ VerifyOrDo(!ShouldSkip("CC.S.A0001"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentSaturation::Id,
true, chip::NullOptional);
}
case 15: {
LogStep(15, "Move Color command");
+ VerifyOrDo(!ShouldSkip("CC.S.C08.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
ListFreer listFreer;
chip::app::Clusters::ColorControl::Commands::MoveColor::Type value;
value.rateX = 15;
value.rateY = 20;
- value.optionsMask = 0;
- value.optionsOverride = 0;
+ value.optionsMask = 0U;
+ value.optionsOverride = 0U;
return SendCommand(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Commands::MoveColor::Id, value,
chip::NullOptional
@@ -9927,20 +10178,23 @@ class Test_TC_CC_8_1Suite : public TestCommand
}
case 16: {
LogStep(16, "Reads CurrentX attribute from DUT");
+ VerifyOrDo(!ShouldSkip("CC.S.A0003"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentX::Id, true,
chip::NullOptional);
}
case 17: {
LogStep(17, "Reads CurrentY attribute from DUT");
+ VerifyOrDo(!ShouldSkip("CC.S.A0004"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentY::Id, true,
chip::NullOptional);
}
case 18: {
LogStep(18, "Stop Move Step command");
+ VerifyOrDo(!ShouldSkip("CC.S.C47.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
ListFreer listFreer;
chip::app::Clusters::ColorControl::Commands::StopMoveStep::Type value;
- value.optionsMask = 0;
- value.optionsOverride = 0;
+ value.optionsMask = 0U;
+ value.optionsOverride = 0U;
return SendCommand(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Commands::StopMoveStep::Id, value,
chip::NullOptional
@@ -9948,11 +10202,13 @@ class Test_TC_CC_8_1Suite : public TestCommand
}
case 19: {
LogStep(19, "Reads CurrentX attribute from DUT");
+ VerifyOrDo(!ShouldSkip("CC.S.A0003"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentX::Id, true,
chip::NullOptional);
}
case 20: {
LogStep(20, "Reads CurrentY attribute from DUT");
+ VerifyOrDo(!ShouldSkip("CC.S.A0004"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentY::Id, true,
chip::NullOptional);
}
@@ -9965,24 +10221,27 @@ class Test_TC_CC_8_1Suite : public TestCommand
}
case 22: {
LogStep(22, "Check current x attribute value matched the value sent by the last attribute");
+ VerifyOrDo(!ShouldSkip("CC.S.A0003"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentX::Id, true,
chip::NullOptional);
}
case 23: {
LogStep(23, "Check current y attribute value matched the value sent by the last attribute");
+ VerifyOrDo(!ShouldSkip("CC.S.A0004"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::CurrentY::Id, true,
chip::NullOptional);
}
case 24: {
LogStep(24, "Move up color temperature command");
+ VerifyOrDo(!ShouldSkip("CC.S.C4B.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
ListFreer listFreer;
chip::app::Clusters::ColorControl::Commands::MoveColorTemperature::Type value;
value.moveMode = static_cast(1);
value.rate = 10U;
value.colorTemperatureMinimumMireds = 1U;
value.colorTemperatureMaximumMireds = 255U;
- value.optionsMask = 0;
- value.optionsOverride = 0;
+ value.optionsMask = 0U;
+ value.optionsOverride = 0U;
return SendCommand(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Commands::MoveColorTemperature::Id,
value, chip::NullOptional
@@ -9990,15 +10249,17 @@ class Test_TC_CC_8_1Suite : public TestCommand
}
case 25: {
LogStep(25, "Reads current color temprature from DUT");
+ VerifyOrDo(!ShouldSkip("CC.S.A0007"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorTemperature::Id,
true, chip::NullOptional);
}
case 26: {
LogStep(26, "Stop Move Step command");
+ VerifyOrDo(!ShouldSkip("CC.S.C47.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
ListFreer listFreer;
chip::app::Clusters::ColorControl::Commands::StopMoveStep::Type value;
- value.optionsMask = 0;
- value.optionsOverride = 0;
+ value.optionsMask = 0U;
+ value.optionsOverride = 0U;
return SendCommand(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Commands::StopMoveStep::Id, value,
chip::NullOptional
@@ -10006,6 +10267,7 @@ class Test_TC_CC_8_1Suite : public TestCommand
}
case 27: {
LogStep(27, "Reads current color temprature from DUT");
+ VerifyOrDo(!ShouldSkip("CC.S.A0007"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorTemperature::Id,
true, chip::NullOptional);
}
@@ -10018,17 +10280,19 @@ class Test_TC_CC_8_1Suite : public TestCommand
}
case 29: {
LogStep(29, "Reads current color attribute value matched the value sent by the last attribute");
+ VerifyOrDo(!ShouldSkip("CC.S.A0007"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorTemperature::Id,
true, chip::NullOptional);
}
case 30: {
LogStep(30, "Enhanced Move Hue Up command");
+ VerifyOrDo(!ShouldSkip("CC.S.C41.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
ListFreer listFreer;
chip::app::Clusters::ColorControl::Commands::EnhancedMoveHue::Type value;
value.moveMode = static_cast(1);
value.rate = 50U;
- value.optionsMask = 0;
- value.optionsOverride = 0;
+ value.optionsMask = 0U;
+ value.optionsOverride = 0U;
return SendCommand(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Commands::EnhancedMoveHue::Id, value,
chip::NullOptional
@@ -10036,15 +10300,17 @@ class Test_TC_CC_8_1Suite : public TestCommand
}
case 31: {
LogStep(31, "Reads EnhancedCurrentHue attribute value from DUT");
+ VerifyOrDo(!ShouldSkip("CC.S.A4000"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::EnhancedCurrentHue::Id,
true, chip::NullOptional);
}
case 32: {
LogStep(32, "Stop Move Step command");
+ VerifyOrDo(!ShouldSkip("CC.S.C47.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
ListFreer listFreer;
chip::app::Clusters::ColorControl::Commands::StopMoveStep::Type value;
- value.optionsMask = 0;
- value.optionsOverride = 0;
+ value.optionsMask = 0U;
+ value.optionsOverride = 0U;
return SendCommand(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Commands::StopMoveStep::Id, value,
chip::NullOptional
@@ -10052,6 +10318,7 @@ class Test_TC_CC_8_1Suite : public TestCommand
}
case 33: {
LogStep(33, "Reads EnhancedCurrentHue attribute value from DUT");
+ VerifyOrDo(!ShouldSkip("CC.S.A4000"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::EnhancedCurrentHue::Id,
true, chip::NullOptional);
}
@@ -10064,6 +10331,7 @@ class Test_TC_CC_8_1Suite : public TestCommand
}
case 35: {
LogStep(35, "Check EnhancedCurrentHue attribute value matched the value sent by the last attribute");
+ VerifyOrDo(!ShouldSkip("CC.S.A4000"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::EnhancedCurrentHue::Id,
true, chip::NullOptional);
}
@@ -10087,34 +10355,31 @@ class Test_TC_CC_8_1Suite : public TestCommand
class Test_TC_CC_9_1Suite : public TestCommand
{
public:
- Test_TC_CC_9_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_CC_9_1", 54, credsIssuerConfig)
+ Test_TC_CC_9_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_CC_9_1", 71, credsIssuerConfig)
{
AddArgument("nodeId", 0, UINT64_MAX, &mNodeId);
+ AddArgument("timeout", 0, UINT16_MAX, &mTimeout);
AddArgument("cluster", &mCluster);
AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint);
- AddArgument("timeout", 0, UINT16_MAX, &mTimeout);
}
~Test_TC_CC_9_1Suite() {}
- chip::System::Clock::Timeout GetWaitDuration() const override
- {
- return chip::System::Clock::Seconds16(mTimeout.ValueOr(kTimeoutInSeconds));
- }
+ chip::System::Clock::Timeout GetWaitDuration() const override { return chip::System::Clock::Seconds16(mTimeout.ValueOr(400)); }
private:
chip::Optional mNodeId;
+ chip::Optional mTimeout;
chip::Optional mCluster;
chip::Optional mEndpoint;
- chip::Optional mTimeout;
- uint16_t EnhancedCurrentHueValue1;
+ uint16_t ColorLoopStartEnhancedHue;
uint16_t ColorLoopStoredEnhancedHueValue1;
- uint16_t EnhancedCurrentHueValue2;
+ uint16_t ColorLoopStartEnhancedHue2;
uint16_t ColorLoopStoredEnhancedHueValue2;
- uint16_t EnhancedCurrentHueValue3;
+ uint16_t ColorLoopStartEnhancedHue3;
uint16_t ColorLoopStoredEnhancedHueValue3;
- uint16_t EnhancedCurrentHueValue4;
+ uint16_t ColorLoopStartEnhancedHue4;
uint16_t ColorLoopStoredEnhancedHue4;
chip::EndpointId GetEndpoint(chip::EndpointId endpoint) { return mEndpoint.HasValue() ? mEndpoint.Value() : endpoint; }
@@ -10148,28 +10413,31 @@ class Test_TC_CC_9_1Suite : public TestCommand
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
break;
case 4:
+ VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
+ break;
+ case 5:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
{
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
- VerifyOrReturn(CheckValue("colorLoopActive", value, 0));
+ VerifyOrReturn(CheckValue("colorLoopActive", value, 0U));
}
break;
- case 5:
+ case 6:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
break;
- case 6:
+ case 7:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
{
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
- VerifyOrReturn(CheckValue("colorLoopDirection", value, 0));
+ VerifyOrReturn(CheckValue("colorLoopDirection", value, 0U));
}
break;
- case 7:
+ case 8:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
break;
- case 8:
+ case 9:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
{
uint16_t value;
@@ -10177,10 +10445,10 @@ class Test_TC_CC_9_1Suite : public TestCommand
VerifyOrReturn(CheckValue("colorLoopTime", value, 30U));
}
break;
- case 9:
+ case 10:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
break;
- case 10:
+ case 11:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
{
uint16_t value;
@@ -10188,46 +10456,74 @@ class Test_TC_CC_9_1Suite : public TestCommand
VerifyOrReturn(CheckValue("colorLoopStartEnhancedHue", value, 160U));
}
break;
- case 11:
+ case 12:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
break;
- case 12:
+ case 13:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
{
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
- VerifyOrReturn(CheckValue("colorLoopActive", value, 1));
+ VerifyOrReturn(CheckValue("colorLoopActive", value, 1U));
}
break;
- case 13:
+ case 14:
+ VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
+ {
+ uint16_t value;
+ VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
+ VerifyOrReturn(CheckValue("colorLoopStoredEnhancedHue", value, 16384U));
+ }
+ break;
+ case 15:
+ VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
+ shouldContinue = true;
+ break;
+ case 16:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
{
uint16_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
VerifyOrReturn(CheckConstraintType("value", "", "uint16"));
- EnhancedCurrentHueValue1 = value;
+ ColorLoopStartEnhancedHue = value;
}
break;
- case 14:
+ case 17:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
{
uint16_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
- VerifyOrReturn(CheckValue("colorLoopStoredEnhancedHue", value, EnhancedCurrentHueValue1));
+ VerifyOrReturn(CheckConstraintType("value", "", "uint16"));
+ VerifyOrReturn(CheckConstraintMinValue("value", value, ColorLoopStartEnhancedHue));
+ VerifyOrReturn(CheckConstraintMaxValue("value", value, 65535U));
}
break;
- case 15:
+ case 18:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
+ shouldContinue = true;
break;
- case 16:
+ case 19:
+ VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
+ {
+ uint16_t value;
+ VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
+ VerifyOrReturn(CheckConstraintType("value", "", "uint16"));
+ VerifyOrReturn(CheckConstraintMinValue("value", value, ColorLoopStartEnhancedHue));
+ VerifyOrReturn(CheckConstraintMaxValue("value", value, 65535U));
+ }
+ break;
+ case 20:
+ VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
+ break;
+ case 21:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
{
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
- VerifyOrReturn(CheckValue("colorLoopActive", value, 0));
+ VerifyOrReturn(CheckValue("colorLoopActive", value, 0U));
}
break;
- case 17:
+ case 22:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
{
uint16_t value;
@@ -10236,7 +10532,7 @@ class Test_TC_CC_9_1Suite : public TestCommand
ColorLoopStoredEnhancedHueValue1 = value;
}
break;
- case 18:
+ case 23:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
{
uint16_t value;
@@ -10244,57 +10540,85 @@ class Test_TC_CC_9_1Suite : public TestCommand
VerifyOrReturn(CheckValue("enhancedCurrentHue", value, ColorLoopStoredEnhancedHueValue1));
}
break;
- case 19:
+ case 24:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
break;
- case 20:
+ case 25:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
{
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
- VerifyOrReturn(CheckValue("colorLoopDirection", value, 1));
+ VerifyOrReturn(CheckValue("colorLoopDirection", value, 1U));
}
break;
- case 21:
+ case 26:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
break;
- case 22:
+ case 27:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
{
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
- VerifyOrReturn(CheckValue("colorLoopActive", value, 1));
+ VerifyOrReturn(CheckValue("colorLoopActive", value, 1U));
}
break;
- case 23:
+ case 28:
+ VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
+ {
+ uint16_t value;
+ VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
+ VerifyOrReturn(CheckValue("colorLoopStoredEnhancedHue", value, 16384U));
+ }
+ break;
+ case 29:
+ VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
+ shouldContinue = true;
+ break;
+ case 30:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
{
uint16_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
VerifyOrReturn(CheckConstraintType("value", "", "uint16"));
- EnhancedCurrentHueValue2 = value;
+ ColorLoopStartEnhancedHue2 = value;
}
break;
- case 24:
+ case 31:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
{
uint16_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
- VerifyOrReturn(CheckValue("colorLoopStoredEnhancedHue", value, EnhancedCurrentHueValue2));
+ VerifyOrReturn(CheckConstraintType("value", "", "uint16"));
+ VerifyOrReturn(CheckConstraintMinValue("value", value, ColorLoopStartEnhancedHue2));
+ VerifyOrReturn(CheckConstraintMaxValue("value", value, 65535U));
}
break;
- case 25:
+ case 32:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
+ shouldContinue = true;
break;
- case 26:
+ case 33:
+ VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
+ {
+ uint16_t value;
+ VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
+ VerifyOrReturn(CheckConstraintType("value", "", "uint16"));
+ VerifyOrReturn(CheckConstraintMinValue("value", value, ColorLoopStartEnhancedHue2));
+ VerifyOrReturn(CheckConstraintMaxValue("value", value, 65535U));
+ }
+ break;
+ case 34:
+ VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
+ break;
+ case 35:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
{
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
- VerifyOrReturn(CheckValue("colorLoopActive", value, 0));
+ VerifyOrReturn(CheckValue("colorLoopActive", value, 0U));
}
break;
- case 27:
+ case 36:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
{
uint16_t value;
@@ -10303,7 +10627,7 @@ class Test_TC_CC_9_1Suite : public TestCommand
ColorLoopStoredEnhancedHueValue2 = value;
}
break;
- case 28:
+ case 37:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
{
uint16_t value;
@@ -10311,14 +10635,14 @@ class Test_TC_CC_9_1Suite : public TestCommand
VerifyOrReturn(CheckValue("enhancedCurrentHue", value, ColorLoopStoredEnhancedHueValue2));
}
break;
- case 29:
+ case 38:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
break;
- case 30:
+ case 39:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
shouldContinue = true;
break;
- case 31:
+ case 40:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
{
uint16_t value;
@@ -10326,57 +10650,85 @@ class Test_TC_CC_9_1Suite : public TestCommand
VerifyOrReturn(CheckValue("enhancedCurrentHue", value, 40960U));
}
break;
- case 32:
+ case 41:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
break;
- case 33:
+ case 42:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
{
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
- VerifyOrReturn(CheckValue("colorLoopDirection", value, 0));
+ VerifyOrReturn(CheckValue("colorLoopDirection", value, 0U));
}
break;
- case 34:
+ case 43:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
break;
- case 35:
+ case 44:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
{
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
- VerifyOrReturn(CheckValue("colorLoopActive", value, 1));
+ VerifyOrReturn(CheckValue("colorLoopActive", value, 1U));
}
break;
- case 36:
+ case 45:
+ VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
+ {
+ uint16_t value;
+ VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
+ VerifyOrReturn(CheckValue("colorLoopStoredEnhancedHue", value, 16384U));
+ }
+ break;
+ case 46:
+ VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
+ shouldContinue = true;
+ break;
+ case 47:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
{
uint16_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
VerifyOrReturn(CheckConstraintType("value", "", "uint16"));
- EnhancedCurrentHueValue3 = value;
+ ColorLoopStartEnhancedHue3 = value;
}
break;
- case 37:
+ case 48:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
{
uint16_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
- VerifyOrReturn(CheckValue("colorLoopStoredEnhancedHue", value, EnhancedCurrentHueValue3));
+ VerifyOrReturn(CheckConstraintType("value", "", "uint16"));
+ VerifyOrReturn(CheckConstraintMinValue("value", value, ColorLoopStartEnhancedHue3));
+ VerifyOrReturn(CheckConstraintMaxValue("value", value, 65535U));
}
break;
- case 38:
+ case 49:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
+ shouldContinue = true;
break;
- case 39:
+ case 50:
+ VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
+ {
+ uint16_t value;
+ VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
+ VerifyOrReturn(CheckConstraintType("value", "", "uint16"));
+ VerifyOrReturn(CheckConstraintMinValue("value", value, ColorLoopStartEnhancedHue3));
+ VerifyOrReturn(CheckConstraintMaxValue("value", value, 65535U));
+ }
+ break;
+ case 51:
+ VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
+ break;
+ case 52:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
{
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
- VerifyOrReturn(CheckValue("colorLoopActive", value, 0));
+ VerifyOrReturn(CheckValue("colorLoopActive", value, 0U));
}
break;
- case 40:
+ case 53:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
{
uint16_t value;
@@ -10385,7 +10737,7 @@ class Test_TC_CC_9_1Suite : public TestCommand
ColorLoopStoredEnhancedHueValue3 = value;
}
break;
- case 41:
+ case 54:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
{
uint16_t value;
@@ -10393,57 +10745,85 @@ class Test_TC_CC_9_1Suite : public TestCommand
VerifyOrReturn(CheckValue("enhancedCurrentHue", value, ColorLoopStoredEnhancedHueValue3));
}
break;
- case 42:
+ case 55:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
break;
- case 43:
+ case 56:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
{
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
- VerifyOrReturn(CheckValue("colorLoopDirection", value, 1));
+ VerifyOrReturn(CheckValue("colorLoopDirection", value, 1U));
}
break;
- case 44:
+ case 57:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
break;
- case 45:
+ case 58:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
{
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
- VerifyOrReturn(CheckValue("colorLoopActive", value, 1));
+ VerifyOrReturn(CheckValue("colorLoopActive", value, 1U));
}
break;
- case 46:
+ case 59:
+ VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
+ {
+ uint16_t value;
+ VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
+ VerifyOrReturn(CheckValue("colorLoopStoredEnhancedHue", value, 16384U));
+ }
+ break;
+ case 60:
+ VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
+ shouldContinue = true;
+ break;
+ case 61:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
{
uint16_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
VerifyOrReturn(CheckConstraintType("value", "", "uint16"));
- EnhancedCurrentHueValue4 = value;
+ ColorLoopStartEnhancedHue4 = value;
}
break;
- case 47:
+ case 62:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
{
uint16_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
- VerifyOrReturn(CheckValue("colorLoopStoredEnhancedHue", value, EnhancedCurrentHueValue4));
+ VerifyOrReturn(CheckConstraintType("value", "", "uint16"));
+ VerifyOrReturn(CheckConstraintMinValue("value", value, ColorLoopStartEnhancedHue3));
+ VerifyOrReturn(CheckConstraintMaxValue("value", value, 65535U));
}
break;
- case 48:
+ case 63:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
+ shouldContinue = true;
break;
- case 49:
+ case 64:
+ VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
+ {
+ uint16_t value;
+ VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
+ VerifyOrReturn(CheckConstraintType("value", "", "uint16"));
+ VerifyOrReturn(CheckConstraintMinValue("value", value, ColorLoopStartEnhancedHue4));
+ VerifyOrReturn(CheckConstraintMaxValue("value", value, 65535U));
+ }
+ break;
+ case 65:
+ VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
+ break;
+ case 66:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
{
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
- VerifyOrReturn(CheckValue("colorLoopActive", value, 0));
+ VerifyOrReturn(CheckValue("colorLoopActive", value, 0U));
}
break;
- case 50:
+ case 67:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
{
uint16_t value;
@@ -10452,7 +10832,7 @@ class Test_TC_CC_9_1Suite : public TestCommand
ColorLoopStoredEnhancedHue4 = value;
}
break;
- case 51:
+ case 68:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
{
uint16_t value;
@@ -10460,10 +10840,10 @@ class Test_TC_CC_9_1Suite : public TestCommand
VerifyOrReturn(CheckValue("enhancedCurrentHue", value, ColorLoopStoredEnhancedHue4));
}
break;
- case 52:
+ case 69:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
break;
- case 53:
+ case 70:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
{
bool value;
@@ -10502,488 +10882,607 @@ class Test_TC_CC_9_1Suite : public TestCommand
);
}
case 2: {
- LogStep(2, "Check on/off attribute value is true after on command");
+ LogStep(2, "Precondition : Check on/off attribute value is true after on command");
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnOff::Id, true, chip::NullOptional);
}
case 3: {
- LogStep(3, "Sends ColorLoopSet Command - Set all Attributes");
- VerifyOrDo(!ShouldSkip("CR_COLORLOOPSET"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ LogStep(3, "Precondition : Set DUT EnhancedCurrentHue to 0x4000 using EnhancedMoveToHue command");
+ VerifyOrDo(!ShouldSkip("CC.S.C40.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ ListFreer listFreer;
+ chip::app::Clusters::ColorControl::Commands::EnhancedMoveToHue::Type value;
+ value.enhancedHue = 16384U;
+ value.direction = static_cast(0);
+ value.transitionTime = 0U;
+ value.optionsMask = 0U;
+ value.optionsOverride = 0U;
+ return SendCommand(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Commands::EnhancedMoveToHue::Id,
+ value, chip::NullOptional
+
+ );
+ }
+ case 4: {
+ LogStep(4, "Sends ColorLoopSet Command - Set all Attributes");
+ VerifyOrDo(!ShouldSkip("CC.S.C44.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
ListFreer listFreer;
chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type value;
- value.updateFlags = static_cast>(1);
+ value.updateFlags = static_cast>(1U);
value.action = static_cast(0);
value.direction = static_cast(0);
value.time = 0U;
value.startHue = 0U;
- value.optionsMask = 0;
- value.optionsOverride = 0;
+ value.optionsMask = 0U;
+ value.optionsOverride = 0U;
return SendCommand(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Commands::ColorLoopSet::Id, value,
chip::NullOptional
);
}
- case 4: {
- LogStep(4, "Read ColorLoopActive attribute from DUT");
- VerifyOrDo(!ShouldSkip("A_COLORLOOPACTIVE"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ case 5: {
+ LogStep(5, "Read ColorLoopActive attribute from DUT");
+ VerifyOrDo(!ShouldSkip("CC.S.A4002"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorLoopActive::Id,
true, chip::NullOptional);
}
- case 5: {
- LogStep(5, "Sends ColorLoopSet Command - Set all Attributes");
- VerifyOrDo(!ShouldSkip("CR_COLORLOOPSET"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ case 6: {
+ LogStep(6, "Sends ColorLoopSet Command - Set all Attributes");
+ VerifyOrDo(!ShouldSkip("CC.S.C44.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
ListFreer listFreer;
chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type value;
- value.updateFlags = static_cast>(2);
+ value.updateFlags = static_cast>(2U);
value.action = static_cast(0);
value.direction = static_cast(0);
value.time = 0U;
value.startHue = 0U;
- value.optionsMask = 0;
- value.optionsOverride = 0;
+ value.optionsMask = 0U;
+ value.optionsOverride = 0U;
return SendCommand(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Commands::ColorLoopSet::Id, value,
chip::NullOptional
);
}
- case 6: {
- LogStep(6, "Read ColorLoopDirection attribute from DUT");
- VerifyOrDo(!ShouldSkip("A_COLORLOOPDIRECTION"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ case 7: {
+ LogStep(7, "Read ColorLoopDirection attribute from DUT");
+ VerifyOrDo(!ShouldSkip("CC.S.A4003"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorLoopDirection::Id,
true, chip::NullOptional);
}
- case 7: {
- LogStep(7, "Sends ColorLoopSet Command - Set all Attributes");
- VerifyOrDo(!ShouldSkip("CR_COLORLOOPSET"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ case 8: {
+ LogStep(8, "Sends ColorLoopSet Command - Set all Attributes");
+ VerifyOrDo(!ShouldSkip("CC.S.C44.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
ListFreer listFreer;
chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type value;
- value.updateFlags = static_cast>(4);
+ value.updateFlags = static_cast>(4U);
value.action = static_cast(0);
value.direction = static_cast(0);
value.time = 30U;
value.startHue = 0U;
- value.optionsMask = 0;
- value.optionsOverride = 0;
+ value.optionsMask = 0U;
+ value.optionsOverride = 0U;
return SendCommand(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Commands::ColorLoopSet::Id, value,
chip::NullOptional
);
}
- case 8: {
- LogStep(8, "Read ColorLoopTime attribute from DUT");
- VerifyOrDo(!ShouldSkip("A_COLORLOOPTIME"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ case 9: {
+ LogStep(9, "Read ColorLoopTime attribute from DUT");
+ VerifyOrDo(!ShouldSkip("CC.S.A4004"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorLoopTime::Id,
true, chip::NullOptional);
}
- case 9: {
- LogStep(9, "Sends ColorLoopSet Command - Set all Attributes");
- VerifyOrDo(!ShouldSkip("CR_COLORLOOPSET"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ case 10: {
+ LogStep(10, "Sends ColorLoopSet Command - Set all Attributes");
+ VerifyOrDo(!ShouldSkip("CC.S.C44.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
ListFreer listFreer;
chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type value;
- value.updateFlags = static_cast>(8);
+ value.updateFlags = static_cast>(8U);
value.action = static_cast(0);
value.direction = static_cast(0);
value.time = 0U;
value.startHue = 160U;
- value.optionsMask = 0;
- value.optionsOverride = 0;
+ value.optionsMask = 0U;
+ value.optionsOverride = 0U;
return SendCommand(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Commands::ColorLoopSet::Id, value,
chip::NullOptional
);
}
- case 10: {
- LogStep(10, "Read ColorLoopStartEnhancedHue attribute from DUT");
- VerifyOrDo(!ShouldSkip("A_COLORLOOPSTARTENHANCEDHUE"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ case 11: {
+ LogStep(11, "Read ColorLoopStartEnhancedHue attribute from DUT");
+ VerifyOrDo(!ShouldSkip("CC.S.A4005"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id,
ColorControl::Attributes::ColorLoopStartEnhancedHue::Id, true, chip::NullOptional);
}
- case 11: {
- LogStep(11, "Sends ColorLoopSet Command - Set all Attributes");
- VerifyOrDo(!ShouldSkip("CR_COLORLOOPSET"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ case 12: {
+ LogStep(12, "Sends ColorLoopSet Command - Set all Attributes");
+ VerifyOrDo(!ShouldSkip("CC.S.C44.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
ListFreer listFreer;
chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type value;
- value.updateFlags = static_cast>(1);
+ value.updateFlags = static_cast>(1U);
value.action = static_cast(1);
value.direction = static_cast(0);
value.time = 0U;
value.startHue = 0U;
- value.optionsMask = 0;
- value.optionsOverride = 0;
+ value.optionsMask = 0U;
+ value.optionsOverride = 0U;
return SendCommand(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Commands::ColorLoopSet::Id, value,
chip::NullOptional
);
}
- case 12: {
- LogStep(12, "Read ColorLoopActive attribute from DUT");
- VerifyOrDo(!ShouldSkip("A_COLORLOOPACTIVE"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
- return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorLoopActive::Id,
- true, chip::NullOptional);
- }
case 13: {
- LogStep(13, "Read EnhancedCurrentHue attribute from DUT");
- VerifyOrDo(!ShouldSkip("A_ENHANCEDCURRENTHUE"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
- return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::EnhancedCurrentHue::Id,
+ LogStep(13, "Read ColorLoopActive attribute from DUT");
+ VerifyOrDo(!ShouldSkip("CC.S.A4002"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorLoopActive::Id,
true, chip::NullOptional);
}
case 14: {
- LogStep(14, "Read ColorLoopStoredEnhancedHue attribute from DUT.");
- VerifyOrDo(!ShouldSkip("A_COLORLOOPSTOREDENHANCEDHUE"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ LogStep(14, "Read ColorLoopStoredEnhancedHue attribute from DUT");
+ VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP && CC.S.A4006"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id,
ColorControl::Attributes::ColorLoopStoredEnhancedHue::Id, true, chip::NullOptional);
}
case 15: {
- LogStep(15, "Sends ColorLoopSet Command - Set all Attributes");
- VerifyOrDo(!ShouldSkip("CR_COLORLOOPSET"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ LogStep(15, "Wait for 30S");
+ ListFreer listFreer;
+ chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value;
+ value.ms = 30000UL;
+ return WaitForMs(kIdentityAlpha, value);
+ }
+ case 16: {
+ LogStep(16, "Read ColorLoopStartEnhancedHue attribute from DUT");
+ VerifyOrDo(!ShouldSkip("CC.S.A4005"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id,
+ ColorControl::Attributes::ColorLoopStartEnhancedHue::Id, true, chip::NullOptional);
+ }
+ case 17: {
+ LogStep(17, "Read EnhancedCurrentHue attribute from DUT");
+ VerifyOrDo(!ShouldSkip("CC.S.A4000"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::EnhancedCurrentHue::Id,
+ true, chip::NullOptional);
+ }
+ case 18: {
+ LogStep(18, "Wait for 30S");
+ ListFreer listFreer;
+ chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value;
+ value.ms = 30000UL;
+ return WaitForMs(kIdentityAlpha, value);
+ }
+ case 19: {
+ LogStep(19, "Read EnhancedCurrentHue attribute from DUT");
+ VerifyOrDo(!ShouldSkip("CC.S.A4000"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::EnhancedCurrentHue::Id,
+ true, chip::NullOptional);
+ }
+ case 20: {
+ LogStep(20, "Sends ColorLoopSet Command - Set all Attributes");
+ VerifyOrDo(!ShouldSkip("CC.S.C44.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
ListFreer listFreer;
chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type value;
- value.updateFlags = static_cast>(1);
+ value.updateFlags = static_cast>(1U);
value.action = static_cast(0);
value.direction = static_cast(0);
value.time = 0U;
value.startHue = 0U;
- value.optionsMask = 0;
- value.optionsOverride = 0;
+ value.optionsMask = 0U;
+ value.optionsOverride = 0U;
return SendCommand(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Commands::ColorLoopSet::Id, value,
chip::NullOptional
);
}
- case 16: {
- LogStep(16, "Read ColorLoopActive attribute from DUT");
- VerifyOrDo(!ShouldSkip("A_COLORLOOPACTIVE"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ case 21: {
+ LogStep(21, "Read ColorLoopActive attribute from DUT");
+ VerifyOrDo(!ShouldSkip("CC.S.A4002"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorLoopActive::Id,
true, chip::NullOptional);
}
- case 17: {
- LogStep(17, "Read ColorLoopStoredEnhancedHue attribute from DUT.");
- VerifyOrDo(!ShouldSkip("A_COLORLOOPSTOREDENHANCEDHUE"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ case 22: {
+ LogStep(22, "Read ColorLoopStoredEnhancedHue attribute from DUT.");
+ VerifyOrDo(!ShouldSkip("CC.S.A4006"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id,
ColorControl::Attributes::ColorLoopStoredEnhancedHue::Id, true, chip::NullOptional);
}
- case 18: {
- LogStep(18, "Read EnhancedCurrentHue attribute from DUT");
- VerifyOrDo(!ShouldSkip("A_ENHANCEDCURRENTHUE"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ case 23: {
+ LogStep(23, "Read EnhancedCurrentHue attribute from DUT");
+ VerifyOrDo(!ShouldSkip("CC.S.A4000"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::EnhancedCurrentHue::Id,
true, chip::NullOptional);
}
- case 19: {
- LogStep(19, "Sends ColorLoopSet Command - Set all Attributes");
- VerifyOrDo(!ShouldSkip("CR_COLORLOOPSET"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ case 24: {
+ LogStep(24, "Sends ColorLoopSet Command - Set all Attributes");
+ VerifyOrDo(!ShouldSkip("CC.S.C44.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
ListFreer listFreer;
chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type value;
- value.updateFlags = static_cast>(2);
+ value.updateFlags = static_cast>(2U);
value.action = static_cast(0);
value.direction = static_cast(1);
value.time = 0U;
value.startHue = 0U;
- value.optionsMask = 0;
- value.optionsOverride = 0;
+ value.optionsMask = 0U;
+ value.optionsOverride = 0U;
return SendCommand(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Commands::ColorLoopSet::Id, value,
chip::NullOptional
);
}
- case 20: {
- LogStep(20, "Read ColorLoopDirection attribute from DUT");
- VerifyOrDo(!ShouldSkip("A_COLORLOOPDIRECTION"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ case 25: {
+ LogStep(25, "Read ColorLoopDirection attribute from DUT");
+ VerifyOrDo(!ShouldSkip("CC.S.A4003"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorLoopDirection::Id,
true, chip::NullOptional);
}
- case 21: {
- LogStep(21, "Sends ColorLoopSet Command - Set all Attributes");
- VerifyOrDo(!ShouldSkip("CR_COLORLOOPSET"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ case 26: {
+ LogStep(26, "Sends ColorLoopSet Command - Set all Attributes");
+ VerifyOrDo(!ShouldSkip("CC.S.C44.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
ListFreer listFreer;
chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type value;
- value.updateFlags = static_cast>(1);
+ value.updateFlags = static_cast>(1U);
value.action = static_cast(1);
value.direction = static_cast(0);
value.time = 0U;
value.startHue = 0U;
- value.optionsMask = 0;
- value.optionsOverride = 0;
+ value.optionsMask = 0U;
+ value.optionsOverride = 0U;
return SendCommand(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Commands::ColorLoopSet::Id, value,
chip::NullOptional
);
}
- case 22: {
- LogStep(22, "Read ColorLoopActive attribute from DUT");
- VerifyOrDo(!ShouldSkip("A_COLORLOOPACTIVE"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ case 27: {
+ LogStep(27, "Read ColorLoopActive attribute from DUT");
+ VerifyOrDo(!ShouldSkip("CC.S.A4002"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorLoopActive::Id,
true, chip::NullOptional);
}
- case 23: {
- LogStep(23, "Read EnhancedCurrentHue attribute from DUT");
- VerifyOrDo(!ShouldSkip("A_ENHANCEDCURRENTHUE"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ case 28: {
+ LogStep(28, "Read ColorLoopStoredEnhancedHue attribute from DUT");
+ VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP && CC.S.A4006"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id,
+ ColorControl::Attributes::ColorLoopStoredEnhancedHue::Id, true, chip::NullOptional);
+ }
+ case 29: {
+ LogStep(29, "Wait for 30S");
+ ListFreer listFreer;
+ chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value;
+ value.ms = 30000UL;
+ return WaitForMs(kIdentityAlpha, value);
+ }
+ case 30: {
+ LogStep(30, "Read ColorLoopStartEnhancedHue attribute from DUT");
+ VerifyOrDo(!ShouldSkip("CC.S.A4005"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id,
+ ColorControl::Attributes::ColorLoopStartEnhancedHue::Id, true, chip::NullOptional);
+ }
+ case 31: {
+ LogStep(31, "Read EnhancedCurrentHue attribute from DUT");
+ VerifyOrDo(!ShouldSkip("CC.S.A4000"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::EnhancedCurrentHue::Id,
true, chip::NullOptional);
}
- case 24: {
- LogStep(24, "Read ColorLoopStoredEnhancedHue attribute from DUT");
- VerifyOrDo(!ShouldSkip("A_COLORLOOPSTOREDENHANCEDHUE"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
- return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id,
- ColorControl::Attributes::ColorLoopStoredEnhancedHue::Id, true, chip::NullOptional);
+ case 32: {
+ LogStep(32, "Wait for 30S");
+ ListFreer listFreer;
+ chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value;
+ value.ms = 30000UL;
+ return WaitForMs(kIdentityAlpha, value);
}
- case 25: {
- LogStep(25, "Sends ColorLoopSet Command - Set all Attributes");
- VerifyOrDo(!ShouldSkip("CR_COLORLOOPSET"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ case 33: {
+ LogStep(33, "Read EnhancedCurrentHue attribute from DUT");
+ VerifyOrDo(!ShouldSkip("CC.S.A4000"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::EnhancedCurrentHue::Id,
+ true, chip::NullOptional);
+ }
+ case 34: {
+ LogStep(34, "Sends ColorLoopSet Command - Set all Attributes");
+ VerifyOrDo(!ShouldSkip("CC.S.C44.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
ListFreer listFreer;
chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type value;
- value.updateFlags = static_cast>(1);
+ value.updateFlags = static_cast>(1U);
value.action = static_cast(0);
value.direction = static_cast(0);
value.time = 0U;
value.startHue = 0U;
- value.optionsMask = 0;
- value.optionsOverride = 0;
+ value.optionsMask = 0U;
+ value.optionsOverride = 0U;
return SendCommand(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Commands::ColorLoopSet::Id, value,
chip::NullOptional
);
}
- case 26: {
- LogStep(26, "Read ColorLoopActive attribute from DUT");
- VerifyOrDo(!ShouldSkip("A_COLORLOOPACTIVE"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ case 35: {
+ LogStep(35, "Read ColorLoopActive attribute from DUT");
+ VerifyOrDo(!ShouldSkip("CC.S.A4002"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorLoopActive::Id,
true, chip::NullOptional);
}
- case 27: {
- LogStep(27, "Read ColorLoopStoredEnhancedHue attribute from DUT.");
- VerifyOrDo(!ShouldSkip("A_COLORLOOPSTOREDENHANCEDHUE"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ case 36: {
+ LogStep(36, "Read ColorLoopStoredEnhancedHue attribute from DUT");
+ VerifyOrDo(!ShouldSkip("CC.S.A4006"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id,
ColorControl::Attributes::ColorLoopStoredEnhancedHue::Id, true, chip::NullOptional);
}
- case 28: {
- LogStep(28, "Read EnhancedCurrentHue attribute from DUT");
- VerifyOrDo(!ShouldSkip("A_ENHANCEDCURRENTHUE"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ case 37: {
+ LogStep(37, "Read EnhancedCurrentHue attribute from DUT");
+ VerifyOrDo(!ShouldSkip("CC.S.A4000"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::EnhancedCurrentHue::Id,
true, chip::NullOptional);
}
- case 29: {
- LogStep(29, "Enhanced Move To Hue command");
- VerifyOrDo(!ShouldSkip("CR_ENHANCEDMOVETOHUE"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ case 38: {
+ LogStep(38, "Enhanced Move To Hue command");
+ VerifyOrDo(!ShouldSkip("CC.S.C40.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
ListFreer listFreer;
chip::app::Clusters::ColorControl::Commands::EnhancedMoveToHue::Type value;
value.enhancedHue = 40960U;
value.direction = static_cast(0);
value.transitionTime = 0U;
- value.optionsMask = 0;
- value.optionsOverride = 0;
+ value.optionsMask = 0U;
+ value.optionsOverride = 0U;
return SendCommand(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Commands::EnhancedMoveToHue::Id,
value, chip::NullOptional
);
}
- case 30: {
- LogStep(30, "Wait 2000ms");
+ case 39: {
+ LogStep(39, "Wait 2000ms");
ListFreer listFreer;
chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value;
value.ms = 2000UL;
return WaitForMs(kIdentityAlpha, value);
}
- case 31: {
- LogStep(31, "Read EnhancedCurrentHue attribute from DUT");
- VerifyOrDo(!ShouldSkip("A_ENHANCEDCURRENTHUE"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ case 40: {
+ LogStep(40, "Read EnhancedCurrentHue attribute from DUT");
+ VerifyOrDo(!ShouldSkip("CC.S.A4000"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::EnhancedCurrentHue::Id,
true, chip::NullOptional);
}
- case 32: {
- LogStep(32, "Sends ColorLoopSet Command - Set all Attributes");
- VerifyOrDo(!ShouldSkip("CR_COLORLOOPSET"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ case 41: {
+ LogStep(41, "Sends ColorLoopSet Command - Set all Attributes");
+ VerifyOrDo(!ShouldSkip("CC.S.C44.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
ListFreer listFreer;
chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type value;
- value.updateFlags = static_cast>(2);
+ value.updateFlags = static_cast>(2U);
value.action = static_cast(0);
value.direction = static_cast(0);
value.time = 0U;
value.startHue = 0U;
- value.optionsMask = 0;
- value.optionsOverride = 0;
+ value.optionsMask = 0U;
+ value.optionsOverride = 0U;
return SendCommand(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Commands::ColorLoopSet::Id, value,
chip::NullOptional
);
}
- case 33: {
- LogStep(33, "Read ColorLoopDirection attribute from DUT");
- VerifyOrDo(!ShouldSkip("A_COLORLOOPDIRECTION"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ case 42: {
+ LogStep(42, "Read ColorLoopDirection attribute from DUT");
+ VerifyOrDo(!ShouldSkip("CC.S.A4003"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorLoopDirection::Id,
true, chip::NullOptional);
}
- case 34: {
- LogStep(34, "Sends ColorLoopSet Command - Set all Attributes");
- VerifyOrDo(!ShouldSkip("CR_COLORLOOPSET"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ case 43: {
+ LogStep(43, "Sends ColorLoopSet Command - Set all Attributes");
+ VerifyOrDo(!ShouldSkip("CC.S.C44.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
ListFreer listFreer;
chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type value;
- value.updateFlags = static_cast>(1);
+ value.updateFlags = static_cast>(1U);
value.action = static_cast(2);
value.direction = static_cast(0);
value.time = 0U;
value.startHue = 0U;
- value.optionsMask = 0;
- value.optionsOverride = 0;
+ value.optionsMask = 0U;
+ value.optionsOverride = 0U;
return SendCommand(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Commands::ColorLoopSet::Id, value,
chip::NullOptional
);
}
- case 35: {
- LogStep(35, "Read ColorLoopActive attribute from DUT");
- VerifyOrDo(!ShouldSkip("A_COLORLOOPACTIVE"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ case 44: {
+ LogStep(44, "Read ColorLoopActive attribute from DUT");
+ VerifyOrDo(!ShouldSkip("CC.S.A4002"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorLoopActive::Id,
true, chip::NullOptional);
}
- case 36: {
- LogStep(36, "Read EnhancedCurrentHue attribute from DUT");
- VerifyOrDo(!ShouldSkip("A_ENHANCEDCURRENTHUE"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ case 45: {
+ LogStep(45, "Read ColorLoopStoredEnhancedHue attribute from DUT");
+ VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP && CC.S.A4006"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id,
+ ColorControl::Attributes::ColorLoopStoredEnhancedHue::Id, true, chip::NullOptional);
+ }
+ case 46: {
+ LogStep(46, "Wait for 30S");
+ ListFreer listFreer;
+ chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value;
+ value.ms = 30000UL;
+ return WaitForMs(kIdentityAlpha, value);
+ }
+ case 47: {
+ LogStep(47, "Read ColorLoopStartEnhancedHue attribute from DUT");
+ VerifyOrDo(!ShouldSkip("CC.S.A4005"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id,
+ ColorControl::Attributes::ColorLoopStartEnhancedHue::Id, true, chip::NullOptional);
+ }
+ case 48: {
+ LogStep(48, "Read EnhancedCurrentHue attribute from DUT");
+ VerifyOrDo(!ShouldSkip("CC.S.A4000"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::EnhancedCurrentHue::Id,
true, chip::NullOptional);
}
- case 37: {
- LogStep(37, "Read ColorLoopStoredEnhancedHue attribute from DUT");
- VerifyOrDo(!ShouldSkip("A_COLORLOOPSTOREDENHANCEDHUE"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
- return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id,
- ColorControl::Attributes::ColorLoopStoredEnhancedHue::Id, true, chip::NullOptional);
+ case 49: {
+ LogStep(49, "Wait for 30S");
+ ListFreer listFreer;
+ chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value;
+ value.ms = 30000UL;
+ return WaitForMs(kIdentityAlpha, value);
}
- case 38: {
- LogStep(38, "Sends ColorLoopSet Command - Set all Attributes");
- VerifyOrDo(!ShouldSkip("CR_COLORLOOPSET"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ case 50: {
+ LogStep(50, "Read EnhancedCurrentHue attribute from DUT");
+ VerifyOrDo(!ShouldSkip("CC.S.A4000"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::EnhancedCurrentHue::Id,
+ true, chip::NullOptional);
+ }
+ case 51: {
+ LogStep(51, "Sends ColorLoopSet Command - Set all Attributes");
+ VerifyOrDo(!ShouldSkip("CC.S.C44.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
ListFreer listFreer;
chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type value;
- value.updateFlags = static_cast>(1);
+ value.updateFlags = static_cast>(1U);
value.action = static_cast(0);
value.direction = static_cast(0);
value.time = 0U;
value.startHue = 0U;
- value.optionsMask = 0;
- value.optionsOverride = 0;
+ value.optionsMask = 0U;
+ value.optionsOverride = 0U;
return SendCommand(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Commands::ColorLoopSet::Id, value,
chip::NullOptional
);
}
- case 39: {
- LogStep(39, "Read ColorLoopActive attribute from DUT");
- VerifyOrDo(!ShouldSkip("A_COLORLOOPACTIVE"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ case 52: {
+ LogStep(52, "Read ColorLoopActive attribute from DUT");
+ VerifyOrDo(!ShouldSkip("CC.S.A4002"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorLoopActive::Id,
true, chip::NullOptional);
}
- case 40: {
- LogStep(40, "Read ColorLoopStoredEnhancedHue attribute from DUT.");
- VerifyOrDo(!ShouldSkip("A_COLORLOOPSTOREDENHANCEDHUE"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ case 53: {
+ LogStep(53, "Read ColorLoopStoredEnhancedHue attribute from DUT.");
+ VerifyOrDo(!ShouldSkip("CC.S.A4006"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id,
ColorControl::Attributes::ColorLoopStoredEnhancedHue::Id, true, chip::NullOptional);
}
- case 41: {
- LogStep(41, "Read EnhancedCurrentHue attribute from DUT");
- VerifyOrDo(!ShouldSkip("A_ENHANCEDCURRENTHUE"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ case 54: {
+ LogStep(54, "Read EnhancedCurrentHue attribute from DUT");
+ VerifyOrDo(!ShouldSkip("CC.S.A4000"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::EnhancedCurrentHue::Id,
true, chip::NullOptional);
}
- case 42: {
- LogStep(42, "Sends ColorLoopSet Command - Set all Attributes");
- VerifyOrDo(!ShouldSkip("CR_COLORLOOPSET"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ case 55: {
+ LogStep(55, "Sends ColorLoopSet Command - Set all Attributes");
+ VerifyOrDo(!ShouldSkip("CC.S.C44.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
ListFreer listFreer;
chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type value;
- value.updateFlags = static_cast>(2);
+ value.updateFlags = static_cast>(2U);
value.action = static_cast(0);
value.direction = static_cast(1);
value.time = 0U;
value.startHue = 0U;
- value.optionsMask = 0;
- value.optionsOverride = 0;
+ value.optionsMask = 0U;
+ value.optionsOverride = 0U;
return SendCommand(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Commands::ColorLoopSet::Id, value,
chip::NullOptional
);
}
- case 43: {
- LogStep(43, "Read ColorLoopDirection attribute from DUT");
- VerifyOrDo(!ShouldSkip("A_COLORLOOPDIRECTION"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ case 56: {
+ LogStep(56, "Read ColorLoopDirection attribute from DUT");
+ VerifyOrDo(!ShouldSkip("CC.S.A4003"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorLoopDirection::Id,
true, chip::NullOptional);
}
- case 44: {
- LogStep(44, "Sends ColorLoopSet Command - Set all Attributes");
- VerifyOrDo(!ShouldSkip("CR_COLORLOOPSET"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ case 57: {
+ LogStep(57, "Sends ColorLoopSet Command - Set all Attributes");
+ VerifyOrDo(!ShouldSkip("CC.S.C44.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
ListFreer listFreer;
chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type value;
- value.updateFlags = static_cast>(1);
+ value.updateFlags = static_cast>(1U);
value.action = static_cast(2);
value.direction = static_cast(0);
value.time = 0U;
value.startHue = 0U;
- value.optionsMask = 0;
- value.optionsOverride = 0;
+ value.optionsMask = 0U;
+ value.optionsOverride = 0U;
return SendCommand(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Commands::ColorLoopSet::Id, value,
chip::NullOptional
);
}
- case 45: {
- LogStep(45, "Read ColorLoopActive attribute from DUT");
- VerifyOrDo(!ShouldSkip("A_COLORLOOPACTIVE"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ case 58: {
+ LogStep(58, "Read ColorLoopActive attribute from DUT");
+ VerifyOrDo(!ShouldSkip("CC.S.A4002"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorLoopActive::Id,
true, chip::NullOptional);
}
- case 46: {
- LogStep(46, "Read EnhancedCurrentHue attribute from DUT");
- VerifyOrDo(!ShouldSkip("A_ENHANCEDCURRENTHUE"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ case 59: {
+ LogStep(59, "Read ColorLoopStoredEnhancedHue attribute from DUT");
+ VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP && CC.S.A4006"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id,
+ ColorControl::Attributes::ColorLoopStoredEnhancedHue::Id, true, chip::NullOptional);
+ }
+ case 60: {
+ LogStep(60, "Wait for 30S");
+ ListFreer listFreer;
+ chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value;
+ value.ms = 30000UL;
+ return WaitForMs(kIdentityAlpha, value);
+ }
+ case 61: {
+ LogStep(61, "Read ColorLoopStartEnhancedHue attribute from DUT");
+ VerifyOrDo(!ShouldSkip("CC.S.A4005"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id,
+ ColorControl::Attributes::ColorLoopStartEnhancedHue::Id, true, chip::NullOptional);
+ }
+ case 62: {
+ LogStep(62, "Read EnhancedCurrentHue attribute from DUT");
+ VerifyOrDo(!ShouldSkip("CC.S.A4000"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::EnhancedCurrentHue::Id,
true, chip::NullOptional);
}
- case 47: {
- LogStep(47, "Read ColorLoopStoredEnhancedHue attribute from DUT");
- VerifyOrDo(!ShouldSkip("A_COLORLOOPSTOREDENHANCEDHUE"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
- return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id,
- ColorControl::Attributes::ColorLoopStoredEnhancedHue::Id, true, chip::NullOptional);
+ case 63: {
+ LogStep(63, "Wait for 30S");
+ ListFreer listFreer;
+ chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value;
+ value.ms = 30000UL;
+ return WaitForMs(kIdentityAlpha, value);
}
- case 48: {
- LogStep(48, "Sends ColorLoopSet Command - Set all Attributes");
- VerifyOrDo(!ShouldSkip("CR_COLORLOOPSET"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ case 64: {
+ LogStep(64, "Read EnhancedCurrentHue attribute from DUT");
+ VerifyOrDo(!ShouldSkip("CC.S.A4000"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::EnhancedCurrentHue::Id,
+ true, chip::NullOptional);
+ }
+ case 65: {
+ LogStep(65, "Sends ColorLoopSet Command - Set all Attributes");
+ VerifyOrDo(!ShouldSkip("CC.S.C44.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
ListFreer listFreer;
chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type value;
- value.updateFlags = static_cast>(1);
+ value.updateFlags = static_cast>(1U);
value.action = static_cast(0);
value.direction = static_cast(0);
value.time = 0U;
value.startHue = 0U;
- value.optionsMask = 0;
- value.optionsOverride = 0;
+ value.optionsMask = 0U;
+ value.optionsOverride = 0U;
return SendCommand(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Commands::ColorLoopSet::Id, value,
chip::NullOptional
);
}
- case 49: {
- LogStep(49, "Read ColorLoopActive attribute from DUT");
- VerifyOrDo(!ShouldSkip("A_COLORLOOPACTIVE"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ case 66: {
+ LogStep(66, "Read ColorLoopActive attribute from DUT");
+ VerifyOrDo(!ShouldSkip("CC.S.A4002"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorLoopActive::Id,
true, chip::NullOptional);
}
- case 50: {
- LogStep(50, "Read ColorLoopStoredEnhancedHue attribute from DUT.");
- VerifyOrDo(!ShouldSkip("A_COLORLOOPSTOREDENHANCEDHUE"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ case 67: {
+ LogStep(67, "Read ColorLoopStoredEnhancedHue attribute from DUT.");
+ VerifyOrDo(!ShouldSkip("CC.S.A4006"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id,
ColorControl::Attributes::ColorLoopStoredEnhancedHue::Id, true, chip::NullOptional);
}
- case 51: {
- LogStep(51, "Read EnhancedCurrentHue attribute from DUT");
- VerifyOrDo(!ShouldSkip("A_ENHANCEDCURRENTHUE"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ case 68: {
+ LogStep(68, "Read EnhancedCurrentHue attribute from DUT");
+ VerifyOrDo(!ShouldSkip("CC.S.A4000"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::EnhancedCurrentHue::Id,
true, chip::NullOptional);
}
- case 52: {
- LogStep(52, "Turn Off light for color control tests");
+ case 69: {
+ LogStep(69, "Turn Off light for color control tests");
ListFreer listFreer;
chip::app::Clusters::OnOff::Commands::Off::Type value;
return SendCommand(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Commands::Off::Id, value, chip::NullOptional
);
}
- case 53: {
- LogStep(53, "Check on/off attribute value is false after off command");
+ case 70: {
+ LogStep(70, "Check on/off attribute value is false after off command");
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnOff::Id, true, chip::NullOptional);
}
}
@@ -10994,7 +11493,7 @@ class Test_TC_CC_9_1Suite : public TestCommand
class Test_TC_CC_9_2Suite : public TestCommand
{
public:
- Test_TC_CC_9_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_CC_9_2", 20, credsIssuerConfig)
+ Test_TC_CC_9_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_CC_9_2", 30, credsIssuerConfig)
{
AddArgument("nodeId", 0, UINT64_MAX, &mNodeId);
AddArgument("cluster", &mCluster);
@@ -11004,10 +11503,7 @@ class Test_TC_CC_9_2Suite : public TestCommand
~Test_TC_CC_9_2Suite() {}
- chip::System::Clock::Timeout GetWaitDuration() const override
- {
- return chip::System::Clock::Seconds16(mTimeout.ValueOr(kTimeoutInSeconds));
- }
+ chip::System::Clock::Timeout GetWaitDuration() const override { return chip::System::Clock::Seconds16(mTimeout.ValueOr(400)); }
private:
chip::Optional mNodeId;
@@ -11015,7 +11511,8 @@ class Test_TC_CC_9_2Suite : public TestCommand
chip::Optional mEndpoint;
chip::Optional mTimeout;
- uint16_t EnhancedCurrentHueValue;
+ uint16_t ColorLoopStartEnhancedHueValue;
+ uint16_t ColorLoopStartEnhancedHue1;
uint16_t ColorLoopStoredEnhancedHueValue;
chip::EndpointId GetEndpoint(chip::EndpointId endpoint) { return mEndpoint.HasValue() ? mEndpoint.Value() : endpoint; }
@@ -11050,26 +11547,21 @@ class Test_TC_CC_9_2Suite : public TestCommand
break;
case 4:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
- {
- uint8_t value;
- VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
- VerifyOrReturn(CheckValue("colorLoopActive", value, 0));
- }
break;
case 5:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
{
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
- VerifyOrReturn(CheckValue("colorLoopDirection", value, 0));
+ VerifyOrReturn(CheckValue("colorLoopActive", value, 0U));
}
break;
case 6:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
{
- uint16_t value;
+ uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
- VerifyOrReturn(CheckValue("colorLoopTime", value, 30U));
+ VerifyOrReturn(CheckValue("colorLoopDirection", value, 0U));
}
break;
case 7:
@@ -11077,7 +11569,7 @@ class Test_TC_CC_9_2Suite : public TestCommand
{
uint16_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
- VerifyOrReturn(CheckValue("colorLoopStartEnhancedHue", value, 160U));
+ VerifyOrReturn(CheckValue("colorLoopTime", value, 30U));
}
break;
case 8:
@@ -11085,8 +11577,7 @@ class Test_TC_CC_9_2Suite : public TestCommand
{
uint16_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
- VerifyOrReturn(CheckConstraintType("value", "", "uint16"));
- EnhancedCurrentHueValue = value;
+ VerifyOrReturn(CheckValue("colorLoopStartEnhancedHue", value, 160U));
}
break;
case 9:
@@ -11097,7 +11588,7 @@ class Test_TC_CC_9_2Suite : public TestCommand
{
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
- VerifyOrReturn(CheckValue("colorLoopActive", value, 1));
+ VerifyOrReturn(CheckValue("colorLoopActive", value, 1U));
}
break;
case 11:
@@ -11105,32 +11596,106 @@ class Test_TC_CC_9_2Suite : public TestCommand
{
uint16_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
- VerifyOrReturn(CheckValue("colorLoopStoredEnhancedHue", value, EnhancedCurrentHueValue));
+ VerifyOrReturn(CheckValue("colorLoopStoredEnhancedHue", value, 16384U));
}
break;
case 12:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
+ shouldContinue = true;
break;
case 13:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
{
- uint8_t value;
+ uint16_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
- VerifyOrReturn(CheckValue("colorLoopDirection", value, 1));
+ VerifyOrReturn(CheckConstraintType("value", "", "uint16"));
+ ColorLoopStartEnhancedHueValue = value;
}
break;
case 14:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
+ {
+ uint16_t value;
+ VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
+ VerifyOrReturn(CheckConstraintType("value", "", "uint16"));
+ VerifyOrReturn(CheckConstraintMinValue("value", value, ColorLoopStartEnhancedHueValue));
+ VerifyOrReturn(CheckConstraintMaxValue("value", value, 65535U));
+ }
break;
case 15:
+ VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
+ shouldContinue = true;
+ break;
+ case 16:
+ VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
+ {
+ uint16_t value;
+ VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
+ VerifyOrReturn(CheckConstraintType("value", "", "uint16"));
+ VerifyOrReturn(CheckConstraintMinValue("value", value, ColorLoopStartEnhancedHueValue));
+ VerifyOrReturn(CheckConstraintMaxValue("value", value, 65535U));
+ }
+ break;
+ case 17:
+ VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
+ break;
+ case 18:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
{
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
- VerifyOrReturn(CheckValue("colorLoopActive", value, 0));
+ VerifyOrReturn(CheckValue("colorLoopDirection", value, 1U));
}
break;
- case 16:
+ case 19:
+ VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
+ shouldContinue = true;
+ break;
+ case 20:
+ VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
+ {
+ uint16_t value;
+ VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
+ VerifyOrReturn(CheckConstraintType("value", "", "uint16"));
+ ColorLoopStartEnhancedHue1 = value;
+ }
+ break;
+ case 21:
+ VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
+ {
+ uint16_t value;
+ VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
+ VerifyOrReturn(CheckConstraintType("value", "", "uint16"));
+ VerifyOrReturn(CheckConstraintMinValue("value", value, ColorLoopStartEnhancedHue1));
+ VerifyOrReturn(CheckConstraintMaxValue("value", value, 65535U));
+ }
+ break;
+ case 22:
+ VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
+ shouldContinue = true;
+ break;
+ case 23:
+ VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
+ {
+ uint16_t value;
+ VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
+ VerifyOrReturn(CheckConstraintType("value", "", "uint16"));
+ VerifyOrReturn(CheckConstraintMinValue("value", value, ColorLoopStartEnhancedHue1));
+ VerifyOrReturn(CheckConstraintMaxValue("value", value, 65535U));
+ }
+ break;
+ case 24:
+ VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
+ break;
+ case 25:
+ VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
+ {
+ uint8_t value;
+ VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
+ VerifyOrReturn(CheckValue("colorLoopActive", value, 0U));
+ }
+ break;
+ case 26:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
{
uint16_t value;
@@ -11139,7 +11704,7 @@ class Test_TC_CC_9_2Suite : public TestCommand
ColorLoopStoredEnhancedHueValue = value;
}
break;
- case 17:
+ case 27:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
{
uint16_t value;
@@ -11147,10 +11712,10 @@ class Test_TC_CC_9_2Suite : public TestCommand
VerifyOrReturn(CheckValue("enhancedCurrentHue", value, ColorLoopStoredEnhancedHueValue));
}
break;
- case 18:
+ case 28:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
break;
- case 19:
+ case 29:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
{
bool value;
@@ -11193,64 +11758,73 @@ class Test_TC_CC_9_2Suite : public TestCommand
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnOff::Id, true, chip::NullOptional);
}
case 3: {
- LogStep(3, "Sends ColorLoopSet Command - Set all Attributes");
- VerifyOrDo(!ShouldSkip("CR_COLORLOOPSET"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ LogStep(3, "Precondition : Set DUT EnhancedCurrentHue to 0x4000 using EnhancedMoveToHue command");
+ VerifyOrDo(!ShouldSkip("CC.S.C40.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ ListFreer listFreer;
+ chip::app::Clusters::ColorControl::Commands::EnhancedMoveToHue::Type value;
+ value.enhancedHue = 16384U;
+ value.direction = static_cast(0);
+ value.transitionTime = 0U;
+ value.optionsMask = 0U;
+ value.optionsOverride = 0U;
+ return SendCommand(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Commands::EnhancedMoveToHue::Id,
+ value, chip::NullOptional
+
+ );
+ }
+ case 4: {
+ LogStep(4, "Sends ColorLoopSet Command - Set all Attributes");
+ VerifyOrDo(!ShouldSkip("CC.S.C44.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
ListFreer listFreer;
chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type value;
- value.updateFlags = static_cast>(15);
+ value.updateFlags = static_cast>(15U);
value.action = static_cast(0);
value.direction = static_cast(0);
value.time = 30U;
value.startHue = 160U;
- value.optionsMask = 0;
- value.optionsOverride = 0;
+ value.optionsMask = 0U;
+ value.optionsOverride = 0U;
return SendCommand(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Commands::ColorLoopSet::Id, value,
chip::NullOptional
);
}
- case 4: {
- LogStep(4, "Read ColorLoopActive attribute from DUT");
- VerifyOrDo(!ShouldSkip("A_COLORLOOPACTIVE"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ case 5: {
+ LogStep(5, "Read ColorLoopActive attribute from DUT");
+ VerifyOrDo(!ShouldSkip("CC.S.A4002"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorLoopActive::Id,
true, chip::NullOptional);
}
- case 5: {
- LogStep(5, "Read ColorLoopDirection attribute from DUT.");
- VerifyOrDo(!ShouldSkip("A_COLORLOOPDIRECTION"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ case 6: {
+ LogStep(6, "Read ColorLoopDirection attribute from DUT.");
+ VerifyOrDo(!ShouldSkip("CC.S.A4003"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorLoopDirection::Id,
true, chip::NullOptional);
}
- case 6: {
- LogStep(6, "Read ColorLoopTime attribute from DUT.");
- VerifyOrDo(!ShouldSkip("A_COLORLOOPTIME"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ case 7: {
+ LogStep(7, "Read ColorLoopTime attribute from DUT.");
+ VerifyOrDo(!ShouldSkip("CC.S.A4004"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorLoopTime::Id,
true, chip::NullOptional);
}
- case 7: {
- LogStep(7, "Read ColorLoopStartEnhancedHue attribute from DUT.");
- VerifyOrDo(!ShouldSkip("A_COLORLOOPSTARTENHANCEDHUE"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ case 8: {
+ LogStep(8, "Read ColorLoopStartEnhancedHue attribute from DUT.");
+ VerifyOrDo(!ShouldSkip("CC.S.A4005"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id,
ColorControl::Attributes::ColorLoopStartEnhancedHue::Id, true, chip::NullOptional);
}
- case 8: {
- LogStep(8, "Read EnhancedCurrentHue attribute from DUT.");
- VerifyOrDo(!ShouldSkip("A_ENHANCEDCURRENTHUE"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
- return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::EnhancedCurrentHue::Id,
- true, chip::NullOptional);
- }
case 9: {
LogStep(9, "Color Loop Set Command - Set all Attributes");
- VerifyOrDo(!ShouldSkip("CR_COLORLOOPSET"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ VerifyOrDo(!ShouldSkip("CC.S.C44.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
ListFreer listFreer;
chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type value;
- value.updateFlags = static_cast>(1);
+ value.updateFlags = static_cast>(1U);
value.action = static_cast(1);
value.direction = static_cast(0);
value.time = 0U;
value.startHue = 0U;
- value.optionsMask = 0;
- value.optionsOverride = 0;
+ value.optionsMask = 0U;
+ value.optionsOverride = 0U;
return SendCommand(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Commands::ColorLoopSet::Id, value,
chip::NullOptional
@@ -11258,84 +11832,148 @@ class Test_TC_CC_9_2Suite : public TestCommand
}
case 10: {
LogStep(10, "Read ColorLoopActive attribute from DUT.");
- VerifyOrDo(!ShouldSkip("A_COLORLOOPACTIVE"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ VerifyOrDo(!ShouldSkip("CC.S.A4002"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorLoopActive::Id,
true, chip::NullOptional);
}
case 11: {
LogStep(11, "Read ColorLoopStoredEnhancedHue attribute from DUT.");
- VerifyOrDo(!ShouldSkip("A_COLORLOOPSTOREDENHANCEDHUE"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP && CC.S.A4006"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id,
ColorControl::Attributes::ColorLoopStoredEnhancedHue::Id, true, chip::NullOptional);
}
case 12: {
- LogStep(12, "Color Loop Set Command - Start Color Loop");
- VerifyOrDo(!ShouldSkip("CR_COLORLOOPSET"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ LogStep(12, "Wait for 30S");
+ ListFreer listFreer;
+ chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value;
+ value.ms = 30000UL;
+ return WaitForMs(kIdentityAlpha, value);
+ }
+ case 13: {
+ LogStep(13, "Read ColorLoopStartEnhancedHue attribute from DUT.");
+ VerifyOrDo(!ShouldSkip("CC.S.A4005"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id,
+ ColorControl::Attributes::ColorLoopStartEnhancedHue::Id, true, chip::NullOptional);
+ }
+ case 14: {
+ LogStep(14, "Read EnhancedCurrentHue attribute from DUT");
+ VerifyOrDo(!ShouldSkip("CC.S.A4000"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::EnhancedCurrentHue::Id,
+ true, chip::NullOptional);
+ }
+ case 15: {
+ LogStep(15, "Wait for 30S");
+ ListFreer listFreer;
+ chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value;
+ value.ms = 30000UL;
+ return WaitForMs(kIdentityAlpha, value);
+ }
+ case 16: {
+ LogStep(16, "Read EnhancedCurrentHue attribute from DUT");
+ VerifyOrDo(!ShouldSkip("CC.S.A4000"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::EnhancedCurrentHue::Id,
+ true, chip::NullOptional);
+ }
+ case 17: {
+ LogStep(17, "Color Loop Set Command - Start Color Loop");
+ VerifyOrDo(!ShouldSkip("CC.S.C44.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
ListFreer listFreer;
chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type value;
- value.updateFlags = static_cast>(2);
+ value.updateFlags = static_cast>(2U);
value.action = static_cast(0);
value.direction = static_cast(1);
value.time = 0U;
value.startHue = 0U;
- value.optionsMask = 0;
- value.optionsOverride = 0;
+ value.optionsMask = 0U;
+ value.optionsOverride = 0U;
return SendCommand(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Commands::ColorLoopSet::Id, value,
chip::NullOptional
);
}
- case 13: {
- LogStep(13, "Read ColorLoopDirection attribute from DUT.");
- VerifyOrDo(!ShouldSkip("A_COLORLOOPDIRECTION"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ case 18: {
+ LogStep(18, "Read ColorLoopDirection attribute from DUT.");
+ VerifyOrDo(!ShouldSkip("CC.S.A4003"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorLoopDirection::Id,
true, chip::NullOptional);
}
- case 14: {
- LogStep(14, "Color Loop Set Command - Start Color Loop");
- VerifyOrDo(!ShouldSkip("CR_COLORLOOPSET"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ case 19: {
+ LogStep(19, "Wait for 30S");
+ ListFreer listFreer;
+ chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value;
+ value.ms = 30000UL;
+ return WaitForMs(kIdentityAlpha, value);
+ }
+ case 20: {
+ LogStep(20, "Read ColorLoopStartEnhancedHue attribute from DUT.");
+ VerifyOrDo(!ShouldSkip("CC.S.A4005"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id,
+ ColorControl::Attributes::ColorLoopStartEnhancedHue::Id, true, chip::NullOptional);
+ }
+ case 21: {
+ LogStep(21, "Read EnhancedCurrentHue attribute from DUT");
+ VerifyOrDo(!ShouldSkip("CC.S.A4000"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::EnhancedCurrentHue::Id,
+ true, chip::NullOptional);
+ }
+ case 22: {
+ LogStep(22, "Wait for 30S");
+ ListFreer listFreer;
+ chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value;
+ value.ms = 30000UL;
+ return WaitForMs(kIdentityAlpha, value);
+ }
+ case 23: {
+ LogStep(23, "Read EnhancedCurrentHue attribute from DUT");
+ VerifyOrDo(!ShouldSkip("CC.S.A4000"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::EnhancedCurrentHue::Id,
+ true, chip::NullOptional);
+ }
+ case 24: {
+ LogStep(24, "Color Loop Set Command - Start Color Loop");
+ VerifyOrDo(!ShouldSkip("CC.S.C44.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
ListFreer listFreer;
chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type value;
- value.updateFlags = static_cast>(1);
+ value.updateFlags = static_cast>(1U);
value.action = static_cast(0);
value.direction = static_cast(0);
value.time = 0U;
value.startHue = 0U;
- value.optionsMask = 0;
- value.optionsOverride = 0;
+ value.optionsMask = 0U;
+ value.optionsOverride = 0U;
return SendCommand(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Commands::ColorLoopSet::Id, value,
chip::NullOptional
);
}
- case 15: {
- LogStep(15, "Read ColorLoopActive attribute from DUT");
- VerifyOrDo(!ShouldSkip("A_COLORLOOPACTIVE"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ case 25: {
+ LogStep(25, "Read ColorLoopActive attribute from DUT");
+ VerifyOrDo(!ShouldSkip("CC.S.A4002"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorLoopActive::Id,
true, chip::NullOptional);
}
- case 16: {
- LogStep(16, "Read ColorLoopStoredEnhancedHue attribute from DUT.");
- VerifyOrDo(!ShouldSkip("A_COLORLOOPSTOREDENHANCEDHUE"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ case 26: {
+ LogStep(26, "Read ColorLoopStoredEnhancedHue attribute from DUT.");
+ VerifyOrDo(!ShouldSkip("CC.S.A4006"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id,
ColorControl::Attributes::ColorLoopStoredEnhancedHue::Id, true, chip::NullOptional);
}
- case 17: {
- LogStep(17, "Read EnhancedCurrentHue attribute from DUT.");
- VerifyOrDo(!ShouldSkip("A_ENHANCEDCURRENTHUE"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ case 27: {
+ LogStep(27, "Read EnhancedCurrentHue attribute from DUT.");
+ VerifyOrDo(!ShouldSkip("CC.S.A4000"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::EnhancedCurrentHue::Id,
true, chip::NullOptional);
}
- case 18: {
- LogStep(18, "Turn off light for color control tests");
+ case 28: {
+ LogStep(28, "Turn off light for color control tests");
ListFreer listFreer;
chip::app::Clusters::OnOff::Commands::Off::Type value;
return SendCommand(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Commands::Off::Id, value, chip::NullOptional
);
}
- case 19: {
- LogStep(19, "Check on/off attribute value is false after off command");
+ case 29: {
+ LogStep(29, "Check on/off attribute value is false after off command");
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnOff::Id, true, chip::NullOptional);
}
}
@@ -11346,7 +11984,7 @@ class Test_TC_CC_9_2Suite : public TestCommand
class Test_TC_CC_9_3Suite : public TestCommand
{
public:
- Test_TC_CC_9_3Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_CC_9_3", 20, credsIssuerConfig)
+ Test_TC_CC_9_3Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_CC_9_3", 29, credsIssuerConfig)
{
AddArgument("nodeId", 0, UINT64_MAX, &mNodeId);
AddArgument("cluster", &mCluster);
@@ -11356,10 +11994,7 @@ class Test_TC_CC_9_3Suite : public TestCommand
~Test_TC_CC_9_3Suite() {}
- chip::System::Clock::Timeout GetWaitDuration() const override
- {
- return chip::System::Clock::Seconds16(mTimeout.ValueOr(kTimeoutInSeconds));
- }
+ chip::System::Clock::Timeout GetWaitDuration() const override { return chip::System::Clock::Seconds16(mTimeout.ValueOr(400)); }
private:
chip::Optional mNodeId;
@@ -11367,7 +12002,7 @@ class Test_TC_CC_9_3Suite : public TestCommand
chip::Optional mEndpoint;
chip::Optional mTimeout;
- uint16_t EnhancedCurrentHueValue;
+ uint16_t ColorLoopStartEnhancedHueValue;
uint16_t ColorLoopStoredEnhancedHueValue;
chip::EndpointId GetEndpoint(chip::EndpointId endpoint) { return mEndpoint.HasValue() ? mEndpoint.Value() : endpoint; }
@@ -11401,22 +12036,25 @@ class Test_TC_CC_9_3Suite : public TestCommand
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
break;
case 4:
+ VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
+ break;
+ case 5:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
{
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
- VerifyOrReturn(CheckValue("colorLoopActive", value, 0));
+ VerifyOrReturn(CheckValue("colorLoopActive", value, 0U));
}
break;
- case 5:
+ case 6:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
{
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
- VerifyOrReturn(CheckValue("colorLoopDirection", value, 0));
+ VerifyOrReturn(CheckValue("colorLoopDirection", value, 0U));
}
break;
- case 6:
+ case 7:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
{
uint16_t value;
@@ -11424,7 +12062,7 @@ class Test_TC_CC_9_3Suite : public TestCommand
VerifyOrReturn(CheckValue("colorLoopTime", value, 30U));
}
break;
- case 7:
+ case 8:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
{
uint16_t value;
@@ -11432,38 +12070,66 @@ class Test_TC_CC_9_3Suite : public TestCommand
VerifyOrReturn(CheckValue("colorLoopStartEnhancedHue", value, 160U));
}
break;
- case 8:
+ case 9:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
break;
- case 9:
+ case 10:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
{
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
- VerifyOrReturn(CheckValue("colorLoopActive", value, 1));
+ VerifyOrReturn(CheckValue("colorLoopActive", value, 1U));
}
break;
- case 10:
+ case 11:
+ VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
+ {
+ uint16_t value;
+ VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
+ VerifyOrReturn(CheckValue("colorLoopStoredEnhancedHue", value, 16384U));
+ }
+ break;
+ case 12:
+ VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
+ shouldContinue = true;
+ break;
+ case 13:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
{
uint16_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
VerifyOrReturn(CheckConstraintType("value", "", "uint16"));
- EnhancedCurrentHueValue = value;
+ ColorLoopStartEnhancedHueValue = value;
}
break;
- case 11:
+ case 14:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
{
uint16_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
- VerifyOrReturn(CheckValue("colorLoopStoredEnhancedHue", value, EnhancedCurrentHueValue));
+ VerifyOrReturn(CheckConstraintType("value", "", "uint16"));
+ VerifyOrReturn(CheckConstraintMinValue("value", value, ColorLoopStartEnhancedHueValue));
+ VerifyOrReturn(CheckConstraintMaxValue("value", value, 65535U));
}
break;
- case 12:
+ case 15:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
+ shouldContinue = true;
break;
- case 13:
+ case 16:
+ VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
+ {
+ uint16_t value;
+ VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
+ VerifyOrReturn(CheckConstraintType("value", "", "uint16"));
+ VerifyOrReturn(CheckConstraintMinValue("value", value, ColorLoopStartEnhancedHueValue));
+ VerifyOrReturn(CheckConstraintMaxValue("value", value, 65535U));
+ }
+ break;
+ case 17:
+ VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
+ break;
+ case 18:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
{
uint16_t value;
@@ -11471,18 +12137,46 @@ class Test_TC_CC_9_3Suite : public TestCommand
VerifyOrReturn(CheckValue("colorLoopTime", value, 60U));
}
break;
- case 14:
+ case 19:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
+ shouldContinue = true;
break;
- case 15:
+ case 20:
+ VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
+ {
+ uint16_t value;
+ VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
+ VerifyOrReturn(CheckConstraintType("value", "", "uint16"));
+ VerifyOrReturn(CheckConstraintMinValue("value", value, 0U));
+ VerifyOrReturn(CheckConstraintMaxValue("value", value, 65535U));
+ }
+ break;
+ case 21:
+ VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
+ shouldContinue = true;
+ break;
+ case 22:
+ VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
+ {
+ uint16_t value;
+ VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
+ VerifyOrReturn(CheckConstraintType("value", "", "uint16"));
+ VerifyOrReturn(CheckConstraintMinValue("value", value, 0U));
+ VerifyOrReturn(CheckConstraintMaxValue("value", value, 65535U));
+ }
+ break;
+ case 23:
+ VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
+ break;
+ case 24:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
{
uint8_t value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
- VerifyOrReturn(CheckValue("colorLoopActive", value, 0));
+ VerifyOrReturn(CheckValue("colorLoopActive", value, 0U));
}
break;
- case 16:
+ case 25:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
{
uint16_t value;
@@ -11491,7 +12185,7 @@ class Test_TC_CC_9_3Suite : public TestCommand
ColorLoopStoredEnhancedHueValue = value;
}
break;
- case 17:
+ case 26:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
{
uint16_t value;
@@ -11499,10 +12193,10 @@ class Test_TC_CC_9_3Suite : public TestCommand
VerifyOrReturn(CheckValue("enhancedCurrentHue", value, ColorLoopStoredEnhancedHueValue));
}
break;
- case 18:
+ case 27:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
break;
- case 19:
+ case 28:
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0));
{
bool value;
@@ -11545,149 +12239,216 @@ class Test_TC_CC_9_3Suite : public TestCommand
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnOff::Id, true, chip::NullOptional);
}
case 3: {
- LogStep(3, "Sends ColorLoopSet Command - Set all Attributes");
- VerifyOrDo(!ShouldSkip("CR_COLORLOOPSET"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ LogStep(3, "Precondition : Set DUT EnhancedCurrentHue to 0x4000 using EnhancedMoveToHue command");
+ VerifyOrDo(!ShouldSkip("CC.S.C40.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ ListFreer listFreer;
+ chip::app::Clusters::ColorControl::Commands::EnhancedMoveToHue::Type value;
+ value.enhancedHue = 16384U;
+ value.direction = static_cast(0);
+ value.transitionTime = 0U;
+ value.optionsMask = 0U;
+ value.optionsOverride = 0U;
+ return SendCommand(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Commands::EnhancedMoveToHue::Id,
+ value, chip::NullOptional
+
+ );
+ }
+ case 4: {
+ LogStep(4, "Sends ColorLoopSet Command - Set all Attributes");
+ VerifyOrDo(!ShouldSkip("CC.S.C44.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
ListFreer listFreer;
chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type value;
- value.updateFlags = static_cast>(15);
+ value.updateFlags = static_cast>(15U);
value.action = static_cast(0);
value.direction = static_cast(0);
value.time = 30U;
value.startHue = 160U;
- value.optionsMask = 0;
- value.optionsOverride = 0;
+ value.optionsMask = 0U;
+ value.optionsOverride = 0U;
return SendCommand(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Commands::ColorLoopSet::Id, value,
chip::NullOptional
);
}
- case 4: {
- LogStep(4, "Read ColorLoopActive attribute from DUT");
- VerifyOrDo(!ShouldSkip("A_COLORLOOPACTIVE"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ case 5: {
+ LogStep(5, "Read ColorLoopActive attribute from DUT");
+ VerifyOrDo(!ShouldSkip("CC.S.A4002"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorLoopActive::Id,
true, chip::NullOptional);
}
- case 5: {
- LogStep(5, "Read ColorLoopDirection attribute from DUT.");
- VerifyOrDo(!ShouldSkip("A_COLORLOOPDIRECTION"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ case 6: {
+ LogStep(6, "Read ColorLoopDirection attribute from DUT.");
+ VerifyOrDo(!ShouldSkip("CC.S.A4003"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorLoopDirection::Id,
true, chip::NullOptional);
}
- case 6: {
- LogStep(6, "Read ColorLoopTime attribute from DUT.");
- VerifyOrDo(!ShouldSkip("A_COLORLOOPTIME"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ case 7: {
+ LogStep(7, "Read ColorLoopTime attribute from DUT.");
+ VerifyOrDo(!ShouldSkip("CC.S.A4004"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorLoopTime::Id,
true, chip::NullOptional);
}
- case 7: {
- LogStep(7, "Read ColorLoopStartEnhancedHue attribute from DUT.");
- VerifyOrDo(!ShouldSkip("A_COLORLOOPSTARTENHANCEDHUE"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ case 8: {
+ LogStep(8, "Read ColorLoopStartEnhancedHue attribute from DUT.");
+ VerifyOrDo(!ShouldSkip("CC.S.A4005"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id,
ColorControl::Attributes::ColorLoopStartEnhancedHue::Id, true, chip::NullOptional);
}
- case 8: {
- LogStep(8, "Color Loop Set Command - Set all Attributes");
- VerifyOrDo(!ShouldSkip("CR_COLORLOOPSET"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ case 9: {
+ LogStep(9, "Color Loop Set Command - Set all Attributes");
+ VerifyOrDo(!ShouldSkip("CC.S.C44.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
ListFreer listFreer;
chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type value;
- value.updateFlags = static_cast>(1);
+ value.updateFlags = static_cast>(1U);
value.action = static_cast(1);
value.direction = static_cast(0);
value.time = 0U;
value.startHue = 0U;
- value.optionsMask = 0;
- value.optionsOverride = 0;
+ value.optionsMask = 0U;
+ value.optionsOverride = 0U;
return SendCommand(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Commands::ColorLoopSet::Id, value,
chip::NullOptional
);
}
- case 9: {
- LogStep(9, "Read ColorLoopActive attribute from DUT.");
- VerifyOrDo(!ShouldSkip("A_COLORLOOPACTIVE"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
- return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorLoopActive::Id,
- true, chip::NullOptional);
- }
case 10: {
- LogStep(10, "Read EnhancedCurrentHue attribute from DUT.");
- VerifyOrDo(!ShouldSkip("A_ENHANCEDCURRENTHUE"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
- return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::EnhancedCurrentHue::Id,
+ LogStep(10, "Read ColorLoopActive attribute from DUT.");
+ VerifyOrDo(!ShouldSkip("CC.S.A4002"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorLoopActive::Id,
true, chip::NullOptional);
}
case 11: {
LogStep(11, "Read ColorLoopStoredEnhancedHue attribute from DUT.");
- VerifyOrDo(!ShouldSkip("A_COLORLOOPSTOREDENHANCEDHUE"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP && CC.S.A4006"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id,
ColorControl::Attributes::ColorLoopStoredEnhancedHue::Id, true, chip::NullOptional);
}
case 12: {
- LogStep(12, "Color Loop Set Command - Start Color Loop");
- VerifyOrDo(!ShouldSkip("CR_COLORLOOPSET"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ LogStep(12, "Wait for 30S");
+ ListFreer listFreer;
+ chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value;
+ value.ms = 30000UL;
+ return WaitForMs(kIdentityAlpha, value);
+ }
+ case 13: {
+ LogStep(13, "Read ColorLoopStartEnhancedHue attribute from DUT.");
+ VerifyOrDo(!ShouldSkip("CC.S.A4005"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id,
+ ColorControl::Attributes::ColorLoopStartEnhancedHue::Id, true, chip::NullOptional);
+ }
+ case 14: {
+ LogStep(14, "Read EnhancedCurrentHue attribute from DUT");
+ VerifyOrDo(!ShouldSkip("CC.S.A4000"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::EnhancedCurrentHue::Id,
+ true, chip::NullOptional);
+ }
+ case 15: {
+ LogStep(15, "Wait for 30S");
+ ListFreer listFreer;
+ chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value;
+ value.ms = 30000UL;
+ return WaitForMs(kIdentityAlpha, value);
+ }
+ case 16: {
+ LogStep(16, "Read EnhancedCurrentHue attribute from DUT");
+ VerifyOrDo(!ShouldSkip("CC.S.A4000"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::EnhancedCurrentHue::Id,
+ true, chip::NullOptional);
+ }
+ case 17: {
+ LogStep(17, "Color Loop Set Command - Start Color Loop");
+ VerifyOrDo(!ShouldSkip("CC.S.C44.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
ListFreer listFreer;
chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type value;
- value.updateFlags = static_cast>(4);
+ value.updateFlags = static_cast>(4U);
value.action = static_cast(0);
value.direction = static_cast(0);
value.time = 60U;
value.startHue = 0U;
- value.optionsMask = 0;
- value.optionsOverride = 0;
+ value.optionsMask = 0U;
+ value.optionsOverride = 0U;
return SendCommand(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Commands::ColorLoopSet::Id, value,
chip::NullOptional
);
}
- case 13: {
- LogStep(13, "Read ColorLoopTime attribute from DUT.");
- VerifyOrDo(!ShouldSkip("A_COLORLOOPTIME"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ case 18: {
+ LogStep(18, "Read ColorLoopTime attribute from DUT.");
+ VerifyOrDo(!ShouldSkip("CC.S.A4004"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorLoopTime::Id,
true, chip::NullOptional);
}
- case 14: {
- LogStep(14, "Color Loop Set Command - Start Color Loop");
- VerifyOrDo(!ShouldSkip("CR_COLORLOOPSET"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ case 19: {
+ LogStep(19, "Wait for 60S");
+ ListFreer listFreer;
+ chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value;
+ value.ms = 60000UL;
+ return WaitForMs(kIdentityAlpha, value);
+ }
+ case 20: {
+ LogStep(20, "Read EnhancedCurrentHue attribute from DUT");
+ VerifyOrDo(!ShouldSkip("CC.S.A4000"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::EnhancedCurrentHue::Id,
+ true, chip::NullOptional);
+ }
+ case 21: {
+ LogStep(21, "Wait for 60S");
+ ListFreer listFreer;
+ chip::app::Clusters::DelayCommands::Commands::WaitForMs::Type value;
+ value.ms = 60000UL;
+ return WaitForMs(kIdentityAlpha, value);
+ }
+ case 22: {
+ LogStep(22, "Read EnhancedCurrentHue attribute from DUT");
+ VerifyOrDo(!ShouldSkip("CC.S.A4000"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::EnhancedCurrentHue::Id,
+ true, chip::NullOptional);
+ }
+ case 23: {
+ LogStep(23, "Color Loop Set Command - Start Color Loop");
+ VerifyOrDo(!ShouldSkip("CC.S.C44.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
ListFreer listFreer;
chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type value;
- value.updateFlags = static_cast>(1);
+ value.updateFlags = static_cast>(1U);
value.action = static_cast(0);
value.direction = static_cast(0);
value.time = 0U;
value.startHue = 0U;
- value.optionsMask = 0;
- value.optionsOverride = 0;
+ value.optionsMask = 0U;
+ value.optionsOverride = 0U;
return SendCommand(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Commands::ColorLoopSet::Id, value,
chip::NullOptional
);
}
- case 15: {
- LogStep(15, "Read ColorLoopActive attribute from DUT");
- VerifyOrDo(!ShouldSkip("A_COLORLOOPACTIVE"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ case 24: {
+ LogStep(24, "Read ColorLoopActive attribute from DUT");
+ VerifyOrDo(!ShouldSkip("CC.S.A4002"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::ColorLoopActive::Id,
true, chip::NullOptional);
}
- case 16: {
- LogStep(16, "Read ColorLoopStoredEnhancedHue attribute from DUT.");
- VerifyOrDo(!ShouldSkip("A_COLORLOOPSTOREDENHANCEDHUE"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ case 25: {
+ LogStep(25, "Read ColorLoopStoredEnhancedHue attribute from DUT.");
+ VerifyOrDo(!ShouldSkip("CC.S.A4006"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id,
ColorControl::Attributes::ColorLoopStoredEnhancedHue::Id, true, chip::NullOptional);
}
- case 17: {
- LogStep(17, "Read EnhancedCurrentHue attribute from DUT.");
- VerifyOrDo(!ShouldSkip("A_ENHANCEDCURRENTHUE"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
+ case 26: {
+ LogStep(26, "Read EnhancedCurrentHue attribute from DUT.");
+ VerifyOrDo(!ShouldSkip("CC.S.A4000"), return ContinueOnChipMainThread(CHIP_NO_ERROR));
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), ColorControl::Id, ColorControl::Attributes::EnhancedCurrentHue::Id,
true, chip::NullOptional);
}
- case 18: {
- LogStep(18, "Turn off light for color control tests");
+ case 27: {
+ LogStep(27, "Turn off light for color control tests");
ListFreer listFreer;
chip::app::Clusters::OnOff::Commands::Off::Type value;
return SendCommand(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Commands::Off::Id, value, chip::NullOptional
);
}
- case 19: {
- LogStep(19, "Check on/off attribute value is false after off command");
+ case 28: {
+ LogStep(28, "Check on/off attribute value is false after off command");
return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnOff::Id, true, chip::NullOptional);
}
}
@@ -12037,7 +12798,7 @@ class Test_TC_DM_2_1Suite : public TestCommand
class Test_TC_DESC_1_1Suite : public TestCommand
{
public:
- Test_TC_DESC_1_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_DESC_1_1", 6, credsIssuerConfig)
+ Test_TC_DESC_1_1Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_DESC_1_1", 7, credsIssuerConfig)
{
AddArgument("nodeId", 0, UINT64_MAX, &mNodeId);
AddArgument("cluster", &mCluster);
@@ -12097,10 +12858,36 @@ class Test_TC_DESC_1_1Suite : public TestCommand
{
chip::app::DataModel::DecodableList value;
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value)));
+ {
+ auto iter_0 = value.begin();
+ VerifyOrReturn(CheckNextListItemDecodes("attributeList", iter_0, 0));
+ VerifyOrReturn(CheckValue("attributeList[0]", iter_0.GetValue(), 0UL));
+ VerifyOrReturn(CheckNextListItemDecodes("attributeList", iter_0, 1));
+ VerifyOrReturn(CheckValue("attributeList[1]", iter_0.GetValue(), 1UL));
+ VerifyOrReturn(CheckNextListItemDecodes("attributeList", iter_0, 2));
+ VerifyOrReturn(CheckValue("attributeList[2]", iter_0.GetValue(), 2UL));
+ VerifyOrReturn(CheckNextListItemDecodes("attributeList", iter_0, 3));
+ VerifyOrReturn(CheckValue("attributeList[3]", iter_0.GetValue(), 3UL));
+ VerifyOrReturn(CheckNextListItemDecodes("attributeList", iter_0, 4));
+ VerifyOrReturn(CheckValue("attributeList[4]", iter_0.GetValue(), 65528UL));
+ VerifyOrReturn(CheckNextListItemDecodes("attributeList", iter_0, 5));
+ VerifyOrReturn(CheckValue("attributeList[5]", iter_0.GetValue(), 65529UL));
+ VerifyOrReturn(CheckNextListItemDecodes("attributeList", iter_0, 6));
+ VerifyOrReturn(CheckValue("attributeList[6]", iter_0.GetValue(), 65531UL));
+ VerifyOrReturn(CheckNextListItemDecodes("attributeList", iter_0, 7));
+ VerifyOrReturn(CheckValue("attributeList[7]", iter_0.GetValue(), 65532UL));
+ VerifyOrReturn(CheckNextListItemDecodes("attributeList", iter_0, 8));
+ VerifyOrReturn(CheckValue("attributeList[8]", iter_0.GetValue(), 65533UL));
+ VerifyOrReturn(CheckNoMoreListItems