I can successfully access a BME680 device through I²C.
i2cdetect 1 shows the device and I found out that two APIs seem to be perfectly usable -- I wonder which one I should prefer.
open() the device,
ioctl() to the corresponding address and then can use either the most generic
write() or the SMBus special
i2c_smbus_write_i2c_block_data() to write data to the required address. For read the proper combination of
read() works as smoothly as
Since I am not quite the kernel coder and intend to walk this road only as far as really required, I wonder which approach I should prefer. I could roll a dice -- or make a reasonable decision.
Could anybody point out which is the intended approach?