Searched refs:i2c_conf (Results 1 – 2 of 2) sorted by relevance
/hal_espressif-3.6.0/components/driver/ |
D | i2c.c | 651 esp_err_t i2c_param_config(i2c_port_t i2c_num, const i2c_config_t *i2c_conf) in i2c_param_config() argument 657 ESP_RETURN_ON_FALSE(i2c_conf != NULL, ESP_ERR_INVALID_ARG, I2C_TAG, I2C_ADDR_ERROR_STR); in i2c_param_config() 658 …ESP_RETURN_ON_FALSE(i2c_conf->mode < I2C_MODE_MAX, ESP_ERR_INVALID_ARG, I2C_TAG, I2C_MODE_ERR_STR); in i2c_param_config() 660 if (i2c_conf->mode == I2C_MODE_MASTER) { in i2c_param_config() 661 src_clk = i2c_get_clk_src(i2c_conf->clk_flags, i2c_conf->master.clk_speed); in i2c_param_config() 670 src_clk = i2c_get_clk_src(i2c_conf->clk_flags, i2c_conf->slave.maximum_speed); in i2c_param_config() 675 ret = i2c_set_pin(i2c_num, i2c_conf->sda_io_num, i2c_conf->scl_io_num, in i2c_param_config() 676 i2c_conf->sda_pullup_en, i2c_conf->scl_pullup_en, i2c_conf->mode); in i2c_param_config() 684 if (i2c_conf->mode == I2C_MODE_SLAVE) { //slave mode in i2c_param_config() 687 …i2c_hal_set_slave_addr(&(i2c_context[i2c_num].hal), i2c_conf->slave.slave_addr, i2c_conf->slave.ad… in i2c_param_config() [all …]
|
/hal_espressif-3.6.0/components/driver/include/driver/ |
D | i2c.h | 136 esp_err_t i2c_param_config(i2c_port_t i2c_num, const i2c_config_t *i2c_conf);
|