summaryrefslogtreecommitdiff
path: root/src/include/device/i2c_bus.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/device/i2c_bus.h')
-rw-r--r--src/include/device/i2c_bus.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/include/device/i2c_bus.h b/src/include/device/i2c_bus.h
index 6aa4f9ba9d..5302d20228 100644
--- a/src/include/device/i2c_bus.h
+++ b/src/include/device/i2c_bus.h
@@ -89,4 +89,12 @@ int i2c_dev_readb_at(struct device *, uint8_t off);
*/
int i2c_dev_writeb_at(struct device *, uint8_t off, uint8_t val);
+/*
+ * Sends the 16-bit register offset `off` and reads `len` bytes into `buf`.
+ *
+ * Returns the number of bytes read on success, negative `enum cb_err`
+ * value on error.
+ */
+int i2c_dev_read_at16(struct device *, uint8_t *buf, size_t len, uint16_t off);
+
#endif /* _DEVICE_I2C_BUS_H_ */