/hal_espressif-3.6.0/components/driver/ |
D | i2c.c | 140 int i2c_num; /*!< I2C port number */ member 210 static void IRAM_ATTR i2c_master_cmd_begin_static(i2c_port_t i2c_num); 211 static esp_err_t IRAM_ATTR i2c_hw_fsm_reset(i2c_port_t i2c_num); 213 static void i2c_hw_disable(i2c_port_t i2c_num) in i2c_hw_disable() argument 215 I2C_ENTER_CRITICAL(&(i2c_context[i2c_num].spinlock)); in i2c_hw_disable() 216 if (i2c_context[i2c_num].hw_enabled != false) { in i2c_hw_disable() 217 periph_module_disable(i2c_periph_signal[i2c_num].module); in i2c_hw_disable() 218 i2c_context[i2c_num].hw_enabled = false; in i2c_hw_disable() 220 I2C_EXIT_CRITICAL(&(i2c_context[i2c_num].spinlock)); in i2c_hw_disable() 223 static void i2c_hw_enable(i2c_port_t i2c_num) in i2c_hw_enable() argument [all …]
|
/hal_espressif-3.6.0/components/driver/include/driver/ |
D | i2c.h | 110 esp_err_t i2c_driver_install(i2c_port_t i2c_num, i2c_mode_t mode, size_t slv_rx_buf_len, size_t slv… 124 esp_err_t i2c_driver_delete(i2c_port_t i2c_num); 136 esp_err_t i2c_param_config(i2c_port_t i2c_num, const i2c_config_t *i2c_conf); 147 esp_err_t i2c_reset_tx_fifo(i2c_port_t i2c_num); 158 esp_err_t i2c_reset_rx_fifo(i2c_port_t i2c_num); 174 esp_err_t i2c_isr_register(i2c_port_t i2c_num, void (*fn)(void *), void *arg, int intr_alloc_flags,… 201 esp_err_t i2c_set_pin(i2c_port_t i2c_num, int sda_io_num, int scl_io_num, 222 esp_err_t i2c_master_write_to_device(i2c_port_t i2c_num, uint8_t device_address, 244 esp_err_t i2c_master_read_from_device(i2c_port_t i2c_num, uint8_t device_address, 270 esp_err_t i2c_master_write_read_device(i2c_port_t i2c_num, uint8_t device_address, [all …]
|
/hal_espressif-3.6.0/examples/cxx/experimental/experimental_cpp_component/ |
D | i2c_cxx.cpp | 29 I2CBus::I2CBus(i2c_port_t i2c_number) : i2c_num(i2c_number) { } in I2CBus() 48 I2C_CHECK_THROW(i2c_param_config(i2c_num, &conf)); in I2CMaster() 49 I2C_CHECK_THROW(i2c_driver_install(i2c_num, conf.mode, 0, 0, 0)); in I2CMaster() 54 i2c_driver_delete(i2c_num); in ~I2CMaster() 61 writer.do_transfer(i2c_num, i2c_addr); in sync_write() 68 return reader.do_transfer(i2c_num, i2c_addr); in sync_read() 81 return composed_transfer.do_transfer(i2c_num, i2c_addr)[0]; in sync_transfer() 102 I2C_CHECK_THROW(i2c_param_config(i2c_num, &conf)); in I2CSlave() 103 I2C_CHECK_THROW(i2c_driver_install(i2c_num, conf.mode, rx_buf_len, tx_buf_len, 0)); in I2CSlave() 108 i2c_driver_delete(i2c_num); in ~I2CSlave() [all …]
|
/hal_espressif-3.6.0/components/driver/test/ |
D | test_i2c.c | 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)); [all …]
|
/hal_espressif-3.6.0/examples/peripherals/i2c/i2c_self_test/main/ |
D | i2c_example_main.c | 63 static esp_err_t __attribute__((unused)) i2c_master_read_slave(i2c_port_t i2c_num, uint8_t *data_rd… in i2c_master_read_slave() argument 76 esp_err_t ret = i2c_master_cmd_begin(i2c_num, cmd, 1000 / portTICK_RATE_MS); in i2c_master_read_slave() 93 static esp_err_t __attribute__((unused)) i2c_master_write_slave(i2c_port_t i2c_num, uint8_t *data_w… in i2c_master_write_slave() argument 100 esp_err_t ret = i2c_master_cmd_begin(i2c_num, cmd, 1000 / portTICK_RATE_MS); in i2c_master_write_slave() 118 static esp_err_t i2c_master_sensor_test(i2c_port_t i2c_num, uint8_t *data_h, uint8_t *data_l) in i2c_master_sensor_test() argument 126 ret = i2c_master_cmd_begin(i2c_num, cmd, 1000 / portTICK_RATE_MS); in i2c_master_sensor_test() 138 ret = i2c_master_cmd_begin(i2c_num, cmd, 1000 / portTICK_RATE_MS); in i2c_master_sensor_test()
|
/hal_espressif-3.6.0/examples/cxx/experimental/experimental_cpp_component/include/ |
D | i2c_cxx.hpp | 77 TReturn do_transfer(i2c_port_t i2c_num, uint8_t i2c_addr); 129 const i2c_port_t i2c_num; member in idf::I2CBus 463 TReturn I2CTransfer<TReturn>::do_transfer(i2c_port_t i2c_num, uint8_t i2c_addr) in do_transfer() argument 471 …CHECK_THROW_SPECIFIC(i2c_master_cmd_begin(i2c_num, cmd_link.handle, driver_timeout / portTICK_RATE… in do_transfer() 482 return xfer->do_transfer(i2c_num, i2c_addr); in transfer()
|
/hal_espressif-3.6.0/components/hal/esp32/include/hal/ |
D | i2c_ll.h | 85 #define I2C_LL_GET_HW(i2c_num) (((i2c_num) == 0) ? &I2C0 : &I2C1) argument 87 #define I2C_LL_GET_FIFO_ADDR(i2c_num) (I2C_DATA_APB_REG(i2c_num)) argument
|
/hal_espressif-3.6.0/components/hal/esp32s2/include/hal/ |
D | i2c_ll.h | 84 #define I2C_LL_GET_HW(i2c_num) (((i2c_num) == 0) ? &I2C0 : &I2C1) argument 86 #define I2C_LL_GET_FIFO_ADDR(i2c_num) (I2C_DATA_APB_REG(i2c_num)) argument
|
/hal_espressif-3.6.0/components/hal/esp32s3/include/hal/ |
D | i2c_ll.h | 83 #define I2C_LL_GET_HW(i2c_num) (((i2c_num) == 0) ? &I2C0 : &I2C1) argument 85 #define I2C_LL_GET_FIFO_ADDR(i2c_num) (I2C_DATA_APB_REG(i2c_num)) argument
|
/hal_espressif-3.6.0/components/hal/include/hal/ |
D | i2c_hal.h | 131 void i2c_hal_master_init(i2c_hal_context_t *hal, i2c_port_t i2c_num); 141 void i2c_hal_slave_init(i2c_hal_context_t *hal, i2c_port_t i2c_num);
|
/hal_espressif-3.6.0/components/hal/ |
D | i2c_hal.c | 192 void i2c_hal_slave_init(i2c_hal_context_t *hal, int i2c_num) in i2c_hal_slave_init() argument 214 void i2c_hal_master_init(i2c_hal_context_t *hal, int i2c_num) in i2c_hal_master_init() argument
|
/hal_espressif-3.6.0/components/hal/esp32h2/include/hal/ |
D | i2c_ll.h | 86 #define I2C_LL_GET_HW(i2c_num) (&I2C0) argument 88 #define I2C_LL_GET_FIFO_ADDR(i2c_num) (I2C_DATA_APB_REG(i2c_num)) argument
|
/hal_espressif-3.6.0/components/hal/esp32c3/include/hal/ |
D | i2c_ll.h | 90 #define I2C_LL_GET_HW(i2c_num) (&I2C0) argument 92 #define I2C_LL_GET_FIFO_ADDR(i2c_num) (I2C_DATA_APB_REG(i2c_num)) argument
|