Lines Matching refs:i2c_dev
45 const struct device *const i2c_dev = DEVICE_DT_GET(I2C_DEV_NODE); in test_gy271() local
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()
126 const struct device *const i2c_dev = DEVICE_DT_GET(I2C_DEV_NODE); in test_burst_gy271() local
129 if (!device_is_ready(i2c_dev)) { in test_burst_gy271()
135 if (i2c_configure(i2c_dev, i2c_cfg)) { in test_burst_gy271()
141 if (i2c_get_config(i2c_dev, &i2c_cfg_tmp)) { in test_burst_gy271()
154 if (i2c_burst_write(i2c_dev, GY271_ADDR, 0x00, datas, 2)) { in test_burst_gy271()
164 if (i2c_burst_write(i2c_dev, GY271_ADDR, 0x00, datas, 4)) { in test_burst_gy271()
181 if (i2c_burst_read(i2c_dev, GY271_ADDR, start_bit, datas, 6)) { in test_burst_gy271()