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