Lines Matching refs:sda
81 const struct i2c_esp32_pin sda; member
159 gpio_pin_set_dt(&config->sda.gpio, 1); in i2c_esp32_config_pin()
160 ret = gpio_pin_configure_dt(&config->sda.gpio, GPIO_PULL_UP | GPIO_OUTPUT | GPIO_INPUT); in i2c_esp32_config_pin()
161 esp_rom_gpio_matrix_out(config->sda.gpio.pin, config->sda.sig_out, 0, 0); in i2c_esp32_config_pin()
162 esp_rom_gpio_matrix_in(config->sda.gpio.pin, config->sda.sig_in, 0); in i2c_esp32_config_pin()
188 gpio_pin_configure_dt(&config->sda.gpio, GPIO_OUTPUT | GPIO_INPUT); in i2c_master_clear_bus()
194 gpio_pin_set_dt(&config->sda.gpio, 1); in i2c_master_clear_bus()
196 while (!gpio_pin_get_dt(&config->sda.gpio) && (i++ < I2C_CLR_BUS_SCL_NUM)) { in i2c_master_clear_bus()
202 gpio_pin_set_dt(&config->sda.gpio, 0); /* setup for STOP */ in i2c_master_clear_bus()
205 gpio_pin_set_dt(&config->sda.gpio, 1); /* STOP, SDA low -> high while SCL is HIGH */ in i2c_master_clear_bus()
746 if (!gpio_is_ready_dt(&config->sda.gpio)) { in i2c_esp32_init()
793 .sda = { \