Searched refs:I2C_MASTER_NUM (Results 1 – 5 of 5) sorted by relevance
/hal_espressif-3.6.0/components/driver/test/ |
D | test_i2c.c | 56 #define I2C_MASTER_NUM I2C_NUM_0 /*!< I2C port number for master dev */ macro 139 TEST_ESP_OK(i2c_driver_install(I2C_MASTER_NUM, I2C_MODE_MASTER, 142 TEST_ESP_OK(i2c_param_config(I2C_MASTER_NUM, &conf_master)); 143 TEST_ASSERT_EQUAL_INT32(I2C[I2C_MASTER_NUM]->ctr.ms_mode, 1); 144 TEST_ESP_OK(i2c_driver_delete(I2C_MASTER_NUM)); 170 TEST_ESP_OK(i2c_driver_install(I2C_MASTER_NUM, I2C_MODE_MASTER, 173 TEST_ESP_OK(i2c_param_config(I2C_MASTER_NUM, &conf_master)); 175 TEST_ESP_OK(i2c_set_period(I2C_MASTER_NUM, I2C_SCL_HIGH_PERIOD_V, I2C_SCL_HIGH_PERIOD_V)); 176 TEST_ESP_OK(i2c_get_period(I2C_MASTER_NUM, &high_period, &low_period)); 180 …TEST_ASSERT_NOT_NULL((void *)i2c_set_period(I2C_MASTER_NUM, I2C_SCL_HIGH_PERIOD_V + 1, I2C_SCL_HIG… [all …]
|
/hal_espressif-3.6.0/examples/peripherals/i2c/i2c_simple/main/ |
D | i2c_simple_main.c | 27 #define I2C_MASTER_NUM 0 /*!< I2C master i2c port number, the… macro 44 …return i2c_master_write_read_device(I2C_MASTER_NUM, MPU9250_SENSOR_ADDR, ®_addr, 1, data, len, … in mpu9250_register_read() 55 …ret = i2c_master_write_to_device(I2C_MASTER_NUM, MPU9250_SENSOR_ADDR, write_buf, sizeof(write_buf)… in mpu9250_register_write_byte() 65 int i2c_master_port = I2C_MASTER_NUM; in i2c_master_init() 95 ESP_ERROR_CHECK(i2c_driver_delete(I2C_MASTER_NUM)); in app_main()
|
/hal_espressif-3.6.0/examples/peripherals/i2c/i2c_self_test/main/ |
D | i2c_example_main.c | 36 #define I2C_MASTER_NUM I2C_NUMBER(CONFIG_I2C_MASTER_PORT_NUM) /*!< I2C port number for master dev */ macro 148 int i2c_master_port = I2C_MASTER_NUM; in i2c_master_init() 218 ret = i2c_master_sensor_test(I2C_MASTER_NUM, &sensor_data_h, &sensor_data_l); in i2c_test_task() 243 ret = i2c_master_read_slave(I2C_MASTER_NUM, data_rd, DATA_LENGTH); in i2c_test_task() 245 ret = i2c_master_read_slave(I2C_MASTER_NUM, data_rd, RW_TEST_LENGTH); in i2c_test_task() 271 ret = i2c_master_write_slave(I2C_MASTER_NUM, data_wr, RW_TEST_LENGTH); in i2c_test_task()
|
/hal_espressif-3.6.0/examples/cxx/experimental/sensor_mcp9808/main/ |
D | sensor_mcp9808.cpp | 17 #define I2C_MASTER_NUM I2C_NUM_0 /*!< I2C port number for master dev */ macro 44 …shared_ptr<I2CMaster> master(new I2CMaster(I2C_MASTER_NUM, I2C_MASTER_SCL_IO, I2C_MASTER_SDA_IO, 4… in app_main()
|
/hal_espressif-3.6.0/examples/cxx/experimental/experimental_cpp_component/test/ |
D | test_i2c.cpp | 44 #define I2C_MASTER_NUM I2C_NUM_0 /*!< I2C port number for master dev */ macro 48 #define I2C_MASTER_NUM I2C_NUM_1 /*!< I2C port number for master dev */ macro 55 master(new I2CMaster(I2C_MASTER_NUM, I2C_MASTER_SCL_IO, I2C_MASTER_SDA_IO, 400000)), 79 TEST_THROW(writer.do_transfer(I2C_MASTER_NUM, ADDR), I2CTransferException); 169 vector<uint8_t> data = reader.do_transfer(I2C_MASTER_NUM, ADDR); in i2c_I2CRead() 187 writer.do_transfer(I2C_MASTER_NUM, ADDR); in i2c_I2CWrite()
|