Lines Matching refs:config
31 struct gpio_v2_line_config *config, in monitor_device() argument
51 ret = gpiotools_request_line(device_name, lines, num_lines, config, in monitor_device()
171 struct gpio_v2_line_config config; in main() local
175 memset(&config, 0, sizeof(config)); in main()
176 config.flags = GPIO_V2_LINE_FLAG_INPUT; in main()
197 config.flags |= GPIO_V2_LINE_FLAG_OPEN_DRAIN; in main()
200 config.flags |= GPIO_V2_LINE_FLAG_OPEN_SOURCE; in main()
203 config.flags |= GPIO_V2_LINE_FLAG_EDGE_RISING; in main()
206 config.flags |= GPIO_V2_LINE_FLAG_EDGE_FALLING; in main()
215 attr = config.num_attrs; in main()
216 config.num_attrs++; in main()
218 gpiotools_set_bit(&config.attrs[attr].mask, i); in main()
219 config.attrs[attr].attr.id = GPIO_V2_LINE_ATTR_ID_DEBOUNCE; in main()
220 config.attrs[attr].attr.debounce_period_us = debounce_period_us; in main()
227 if (!(config.flags & EDGE_FLAGS)) { in main()
230 config.flags |= EDGE_FLAGS; in main()
232 return monitor_device(device_name, lines, num_lines, &config, loops); in main()