Lines Matching refs:response
67 int response; in ZTEST() local
73 response = gpio_pin_configure(port, TEST_PIN, GPIO_OUTPUT | GPIO_ACTIVE_HIGH); in ZTEST()
74 zassert_ok(response, "Pin configuration failed: %d", response); in ZTEST()
76 response = gpio_pin_set(port, TEST_PIN, 0); in ZTEST()
77 zassert_ok(response, "Pin low state set failed: %d", response); in ZTEST()
79 response = gpio_pin_set(port, TEST_PIN, 1); in ZTEST()
80 zassert_ok(response, "Pin high state set failed: %d", response); in ZTEST()
82 response = gpio_pin_toggle(port, TEST_PIN); in ZTEST()
83 zassert_ok(response, "Pin toggle failed: %d", response); in ZTEST()
85 response = gpio_pin_configure(port, TEST_PIN, GPIO_INPUT | GPIO_PULL_DOWN); in ZTEST()
86 zassert_ok(response, "Failed to configure pin as input with pull down: %d", response); in ZTEST()
88 response = gpio_pin_get(port, TEST_PIN); in ZTEST()
89 zassert_equal(response, 0, "Invalid pin state: %d", response); in ZTEST()
91 response = gpio_pin_interrupt_configure(port, TEST_PIN, GPIO_INT_ENABLE | GPIO_INT_HIGH_1); in ZTEST()
92 zassert_equal(response, -ENOSYS); in ZTEST()