Searched refs:i2c_device (Results 1 – 1 of 1) sorted by relevance
/Zephyr-latest/tests/drivers/i2c/i2c_bme688/src/ |
D | main.c | 16 static const struct device *const i2c_device = DEVICE_DT_GET(I2C_TEST_NODE); variable 26 err = i2c_reg_read_byte(i2c_device, DEVICE_ADDRESS, register_address, &response); in read_sensor_register() 41 err = i2c_burst_read(i2c_device, DEVICE_ADDRESS, starting_register_address, data_buffer, in burst_read_sensor_registers() 54 err = i2c_reg_write_byte(i2c_device, DEVICE_ADDRESS, register_address, value); in write_sensor_register() 210 err = i2c_configure(i2c_device, i2c_config); in ZTEST() 213 err = i2c_read(i2c_device, entire_sensor_memory, SENSOR_MEMORY_SIZE_IN_BYTES, in ZTEST() 225 err = i2c_read(i2c_device, &test_data, 1, DEVICE_ADDRESS + 1); in ZTEST() 228 err = i2c_reg_read_byte(i2c_device, DEVICE_ADDRESS, CHIP_ID_REGISTER_ADDRESS, &test_data); in ZTEST() 240 err = i2c_recover_bus(i2c_device); in ZTEST() 243 err = i2c_reg_read_byte(i2c_device, DEVICE_ADDRESS, CHIP_ID_REGISTER_ADDRESS, &test_data); in ZTEST() [all …]
|