summaryrefslogtreecommitdiff
path: root/ucoo/hal/i2c/i2c.host.hh
diff options
context:
space:
mode:
authorNicolas Schodet2016-09-19 11:36:13 +0200
committerNicolas Schodet2019-10-09 23:05:51 +0200
commiteda5cf5e3ba38eb8eb7c0c3f0110db886bae93b4 (patch)
tree2d7db1bc4da801b9be7405b54bf5a5e0103d61a1 /ucoo/hal/i2c/i2c.host.hh
parent01585a368762caa2e5acb077f48f477339f7ed67 (diff)
ucoo/{intf, hal/i2c}: add send/recv with restart
Diffstat (limited to 'ucoo/hal/i2c/i2c.host.hh')
-rw-r--r--ucoo/hal/i2c/i2c.host.hh3
1 files changed, 3 insertions, 0 deletions
diff --git a/ucoo/hal/i2c/i2c.host.hh b/ucoo/hal/i2c/i2c.host.hh
index c0bb7f9..adc7e84 100644
--- a/ucoo/hal/i2c/i2c.host.hh
+++ b/ucoo/hal/i2c/i2c.host.hh
@@ -40,6 +40,9 @@ class I2cHost : public I2c
void send (uint8_t addr, const char *buf, int count);
/// See I2cMaster::recv.
void recv (uint8_t addr, char *buf, int count);
+ /// See I2cMaster::send_recv
+ void send_recv (uint8_t addr, const char *send_buf, int send_count,
+ char *recv_buf, int recv_count);
/// See I2cMaster::status.
int status ();
/// See I2cMaster::wait.