Lines Matching +full:long +full:- +full:codes
4 * SPDX-License-Identifier: Apache-2.0
20 const int *codes; member
27 const struct device *port = bottom_data->dev; in sdl_filter_top()
28 const struct gpio_sdl_config *config = port->config; in sdl_filter_top()
34 while (pin < config->num_codes) { in sdl_filter_top()
35 if (config->codes[pin] == bottom_data->event_scan_code) { in sdl_filter_top()
41 if (pin == config->num_codes) { in sdl_filter_top()
48 * for as long as there are pending interrupts in sdl_filter_top()
53 ret = gpio_emul_input_set(config->emul, pin, bottom_data->key_down); in sdl_filter_top()
65 const struct gpio_sdl_config *config = dev->config; in gpio_sdl_init()
67 for (uint8_t pin = 0; pin < config->num_codes; ++pin) { in gpio_sdl_init()
68 if (config->codes[pin] != GPIOEMULSDL_SCANCODE_UNKNOWN) { in gpio_sdl_init()
69 LOG_INF("GPIO %s:%u = %u", dev->name, pin, config->codes[pin]); in gpio_sdl_init()
73 config->data->dev = (void *)dev; in gpio_sdl_init()
74 config->data->callback = sdl_filter_top; in gpio_sdl_init()
75 gpio_sdl_init_bottom(config->data); in gpio_sdl_init()
82 "Enabled parent zephyr,gpio-emul node is required"); \
91 .codes = gpio_sdl_##inst##_codes, \