Lines Matching refs:drv_cfg
54 const struct pcf8574_drv_cfg *drv_cfg = dev->config; in pcf8574_process_input() local
59 rc = i2c_read_dt(&drv_cfg->i2c, &rx_buf, sizeof(rx_buf)); in pcf8574_process_input()
160 const struct pcf8574_drv_cfg *drv_cfg = dev->config; in pcf8574_port_set_raw() local
178 rc = i2c_write_dt(&drv_cfg->i2c, &tx_buf, sizeof(tx_buf)); in pcf8574_port_set_raw()
302 const struct pcf8574_drv_cfg *drv_cfg = dev->config; in pcf8574_pin_interrupt_configure() local
304 if (!drv_cfg->gpio_int.port) { in pcf8574_pin_interrupt_configure()
328 const struct pcf8574_drv_cfg *drv_cfg = dev->config; in pcf8574_init() local
332 if (!device_is_ready(drv_cfg->i2c.bus)) { in pcf8574_init()
333 LOG_ERR("%s is not ready", drv_cfg->i2c.bus->name); in pcf8574_init()
338 if (drv_cfg->gpio_int.port) { in pcf8574_init()
339 if (!gpio_is_ready_dt(&drv_cfg->gpio_int)) { in pcf8574_init()
344 rc = gpio_pin_configure_dt(&drv_cfg->gpio_int, GPIO_INPUT); in pcf8574_init()
350 rc = gpio_pin_interrupt_configure_dt(&drv_cfg->gpio_int, GPIO_INT_EDGE_TO_ACTIVE); in pcf8574_init()
357 BIT(drv_cfg->gpio_int.pin)); in pcf8574_init()
358 rc = gpio_add_callback(drv_cfg->gpio_int.port, &drv_data->int_gpio_cb); in pcf8574_init()