CAT4 (CYW943907 and CYW954907) devices use SLEEP and DEEPSLEEP.
The functions cyhal_syspm_set_system_state() and cyhal_syspm_get_system_state() do not affect the power usage of the system.
For CAT4 devices, use the power modes CY_CFG_PWR_MODE_ACTIVE, CY_CFG_PWR_MODE_SLEEP and CY_CFG_PWR_MODE_DEEPSLEEP. These are defined at compile time in the TARGET_XXXX/cybsp.h file. define CY_CFG_PWR_SYS_IDLE_MODE CY_CFG_PWR_MODE_ACTIVE – or in the application Makefile with DEFINES+=CY_CFG_PWR_SYS_IDLE_MODE=CY_CFG_PWR_MODE_ACTIVE
cyhal_syspm_sleep() will put the system in a low power mode by stopping the Application CPU until the next interrupt wakes it up.
cyhal_syspm_deepsleep() will stop some system clocks and put the system into a lower power mode and stop the Application CPU until the next interrupt wakes it up.