I2C driver function to read a register with 16 bits address


The SHT2x I2C device has a register with a 16 bits address. If I'm correct we don't have a function in the I2C driver to do that. Right?

Assuming we need to extend the driver API, what would be a good name for such a function?

All I can come up with is i2c_read_regs2:

/**   * @brief Read multiple bytes from a register at the I2C slave with the given   * address

Hi Kees,

you are right, the current interface does not support 16-bit registers. We are however overhauling the I2C interface as we speak, and the re-worked interface does have support for them (see [1]). Feel free to take a look and comment on the proposal!

Cheers, Hauke

[1] https://github.com/RIOT-OS/RIOT/pull/4926

Ah, thanks.