Searched refs:i2c_dev (Results 1 – 3 of 3) sorted by relevance
| /tests/drivers/i2c/i2c_api/src/ |
| A D | test_i2c.c | 48 if (!device_is_ready(i2c_dev)) { in test_gy271() 54 if (i2c_configure(i2c_dev, i2c_cfg)) { in test_gy271() 60 if (i2c_get_config(i2c_dev, &i2c_cfg_tmp)) { in test_gy271() 73 if (i2c_write(i2c_dev, datas, 2, GY271_ADDR)) { in test_gy271() 82 if (i2c_write(i2c_dev, datas, 2, GY271_ADDR)) { in test_gy271() 89 if (i2c_write(i2c_dev, datas, 2, GY271_ADDR)) { in test_gy271() 104 if (i2c_write(i2c_dev, datas, 1, GY271_ADDR)) { in test_gy271() 112 if (i2c_read(i2c_dev, datas, 6, GY271_ADDR)) { in test_gy271() 129 if (!device_is_ready(i2c_dev)) { in test_burst_gy271() 135 if (i2c_configure(i2c_dev, i2c_cfg)) { in test_burst_gy271() [all …]
|
| /tests/drivers/i2c/i2c_ram/src/ |
| A D | test_i2c_ram.c | 36 const struct device *i2c_dev = DEVICE_DT_GET(I2C_DEV_NODE); variable 55 zassert_true(device_is_ready(i2c_dev), "I2C device is not read"); in i2c_ram_setup() 58 zassert_ok(i2c_configure(i2c_dev, i2c_cfg), "I2C config failed"); in i2c_ram_setup() 61 ret = i2c_get_config(i2c_dev, &i2c_cfg_tmp); in i2c_ram_setup() 87 pm_device_runtime_get(i2c_dev); in i2c_ram_before() 94 pm_device_runtime_put(i2c_dev); in i2c_ram_after() 106 zassert_ok(i2c_transfer(i2c_dev, msgs, 1, RAM_ADDR), in ZTEST() 117 zassert_ok(i2c_transfer(i2c_dev, msgs, 2, RAM_ADDR), in ZTEST() 129 zassert_ok(i2c_write(i2c_dev, tx_data, ARRAY_SIZE(tx_data), RAM_ADDR), in ZTEST() 157 zassert_ok(i2c_transfer_cb(i2c_dev, msgs, 1, RAM_ADDR, in ZTEST() [all …]
|
| /tests/subsys/rtio/rtio_i2c/src/ |
| A D | main.cpp | 14 static const struct device *i2c_dev = DEVICE_DT_GET(DT_NODELABEL(i2c0)); variable 38 zassert_not_null(i2c_dev->api); in ZTEST() 40 ((const struct i2c_driver_api *)i2c_dev->api)->iodev_submit); in ZTEST()
|
Completed in 14 milliseconds