Lines Matching full:state
7 * State checking in this test is done via the GPIO state instead of
26 rc = pm_device_state_get(DEVICE_DT_GET(node_id), &state); \
27 zassert_equal(rc, 0, "Device state retrieval failed"); \
28 zassert_equal(state, value, "Unexpected device state");
33 enum pm_device_state state; in ZTEST() local
35 state = -1; in ZTEST()
36 zassert_str_equal("", pm_device_state_str(state), in ZTEST()
37 "Invalid device state"); in ZTEST()
43 zassert_str_equal("active", pm_device_state_str(state), in ZTEST()
44 "Invalid device state"); in ZTEST()
50 zassert_str_equal("suspended", pm_device_state_str(state), in ZTEST()
51 "Invalid device state"); in ZTEST()
57 zassert_str_equal("off", pm_device_state_str(state), in ZTEST()
58 "Invalid device state"); in ZTEST()
61 * State checking via GPIO as PM API is disabled. in ZTEST()