Lines Matching full:fixture

23 	static struct gpio_get_direction_fixture fixture;  in gpio_get_direction_setup()  local
25 fixture.pin = TEST_PIN; in gpio_get_direction_setup()
26 fixture.port = DEVICE_DT_GET(TEST_NODE); in gpio_get_direction_setup()
28 return &fixture; in gpio_get_direction_setup()
33 struct gpio_get_direction_fixture *fixture = (struct gpio_get_direction_fixture *)arg; in gpio_get_direction_before() local
35 zassert_true(device_is_ready(fixture->port), "GPIO device is not ready"); in gpio_get_direction_before()
38 static void common(struct gpio_get_direction_fixture *fixture) in common() argument
42 rv = gpio_pin_configure(fixture->port, fixture->pin, fixture->flags); in common()
55 fixture->flags = GPIO_DISCONNECTED; in ZTEST_F()
56 common(fixture); in ZTEST_F()
58 rv = gpio_pin_is_input(fixture->port, fixture->pin); in ZTEST_F()
66 rv = gpio_pin_is_output(fixture->port, fixture->pin); in ZTEST_F()
73 fixture->flags = GPIO_INPUT; in ZTEST_F()
75 common(fixture); in ZTEST_F()
77 rv = gpio_pin_is_input(fixture->port, fixture->pin); in ZTEST_F()
85 rv = gpio_pin_is_output(fixture->port, fixture->pin); in ZTEST_F()
92 fixture->flags = GPIO_OUTPUT | GPIO_OUTPUT_INIT_LOW; in ZTEST_F()
94 common(fixture); in ZTEST_F()
96 rv = gpio_pin_is_input(fixture->port, fixture->pin); in ZTEST_F()
104 rv = gpio_pin_is_output(fixture->port, fixture->pin); in ZTEST_F()
111 fixture->flags = GPIO_INPUT | GPIO_OUTPUT | GPIO_OUTPUT_INIT_LOW; in ZTEST_F()
113 common(fixture); in ZTEST_F()
115 rv = gpio_pin_is_input(fixture->port, fixture->pin); in ZTEST_F()
123 rv = gpio_pin_is_output(fixture->port, fixture->pin); in ZTEST_F()