Lines Matching refs:scl_io_num
173 int scl_io_num; member
564 int scl_io = i2c_context[i2c_num].scl_io_num; in i2c_master_clear_bus()
675 ret = i2c_set_pin(i2c_num, i2c_conf->sda_io_num, i2c_conf->scl_io_num, in i2c_param_config()
845 esp_err_t i2c_set_pin(i2c_port_t i2c_num, int sda_io_num, int scl_io_num, bool sda_pullup_en, bool … in i2c_set_pin() argument
849 ESP_RETURN_ON_FALSE(scl_io_num < 0 || in i2c_set_pin()
850 (GPIO_IS_VALID_OUTPUT_GPIO(scl_io_num)) || in i2c_set_pin()
851 (GPIO_IS_VALID_GPIO(scl_io_num) && mode == I2C_MODE_SLAVE), in i2c_set_pin()
857 ESP_RETURN_ON_FALSE(scl_io_num < 0 || in i2c_set_pin()
858 (scl_pullup_en == GPIO_PULLUP_ENABLE && GPIO_IS_VALID_OUTPUT_GPIO(scl_io_num)) || in i2c_set_pin()
860 …ESP_RETURN_ON_FALSE((sda_io_num != scl_io_num), ESP_ERR_INVALID_ARG, I2C_TAG, I2C_SCL_SDA_EQUAL_ER… in i2c_set_pin()
880 if (scl_io_num >= 0) { in i2c_set_pin()
881 gpio_set_level(scl_io_num, I2C_IO_INIT_LEVEL); in i2c_set_pin()
882 gpio_hal_iomux_func_sel(GPIO_PIN_MUX_REG[scl_io_num], PIN_FUNC_GPIO); in i2c_set_pin()
883 gpio_set_direction(scl_io_num, GPIO_MODE_INPUT_OUTPUT_OD); in i2c_set_pin()
884 esp_rom_gpio_connect_out_signal(scl_io_num, scl_out_sig, 0, 0); in i2c_set_pin()
885 esp_rom_gpio_connect_in_signal(scl_io_num, scl_in_sig, 0); in i2c_set_pin()
887 gpio_set_pull_mode(scl_io_num, GPIO_PULLUP_ONLY); in i2c_set_pin()
889 gpio_set_pull_mode(scl_io_num, GPIO_FLOATING); in i2c_set_pin()
893 i2c_context[i2c_num].scl_io_num = scl_io_num; in i2c_set_pin()