diff options
Diffstat (limited to 'include/i2c.h')
-rw-r--r-- | include/i2c.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/i2c.h b/include/i2c.h index dbc51eebbd..674dd84e80 100644 --- a/include/i2c.h +++ b/include/i2c.h @@ -162,6 +162,18 @@ void i2c_prepare_sysjump(void); void i2c_set_timeout(int port, uint32_t timeout); /** + * Read a 32-bit register from the slave at 8-bit slave address <slaveaddr>, at + * the specified 8-bit <offset> in the slave's address space. + */ +int i2c_read32(int port, int slave_addr, int offset, int *data); + +/** + * Write a 32-bit register to the slave at 8-bit slave address <slaveaddr>, at + * the specified 8-bit <offset> in the slave's address space. + */ +int i2c_write32(int port, int slave_addr, int offset, int data); + +/** * Read a 16-bit register from the slave at 8-bit slave address <slaveaddr>, at * the specified 8-bit <offset> in the slave's address space. */ |