Lines Matching refs:i2c_num
83 static esp_err_t i2c_master_write_slave(i2c_port_t i2c_num, uint8_t *data_wr, size_t size) in i2c_master_write_slave() argument
90 esp_err_t ret = i2c_master_cmd_begin(i2c_num, cmd, 5000 / portTICK_RATE_MS); in i2c_master_write_slave()
625 const int i2c_num = 0; variable
634 TEST_ESP_OK(i2c_param_config( i2c_num, &conf_master));
638 TEST_ESP_OK(i2c_set_period(i2c_num, i, i));
639 TEST_ESP_OK(i2c_get_period(i2c_num, &time_get0, &time_get1));
642 TEST_ESP_OK(i2c_set_start_timing(i2c_num, i, i));
643 TEST_ESP_OK(i2c_get_start_timing(i2c_num, &time_get0, &time_get1));
646 TEST_ESP_OK(i2c_set_stop_timing(i2c_num, i, i));
647 TEST_ESP_OK(i2c_get_stop_timing(i2c_num, &time_get0, &time_get1));
650 TEST_ESP_OK(i2c_set_data_timing(i2c_num, i, i));
651 TEST_ESP_OK(i2c_get_data_timing(i2c_num, &time_get0, &time_get1));
654 TEST_ESP_OK(i2c_set_timeout(i2c_num, i));
655 TEST_ESP_OK(i2c_get_timeout(i2c_num, &time_get0));
699 const int i2c_num = 1; variable
710 TEST_ESP_OK(i2c_param_config( i2c_num, &conf_master));
711 TEST_ESP_OK(i2c_driver_install(i2c_num, I2C_MODE_MASTER, 0, 0, 0));
718 i2c_master_cmd_begin(i2c_num, cmd, 5000 / portTICK_RATE_MS);
722 TEST_ESP_OK(i2c_driver_delete(i2c_num));