summaryrefslogtreecommitdiff
path: root/ucoo/hal/i2c/i2c_soft.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_soft.hh
parent01585a368762caa2e5acb077f48f477339f7ed67 (diff)
ucoo/{intf, hal/i2c}: add send/recv with restart
Diffstat (limited to 'ucoo/hal/i2c/i2c_soft.hh')
-rw-r--r--ucoo/hal/i2c/i2c_soft.hh5
1 files changed, 5 insertions, 0 deletions
diff --git a/ucoo/hal/i2c/i2c_soft.hh b/ucoo/hal/i2c/i2c_soft.hh
index 83bc44c..dc66a97 100644
--- a/ucoo/hal/i2c/i2c_soft.hh
+++ b/ucoo/hal/i2c/i2c_soft.hh
@@ -44,6 +44,9 @@ class I2cSoft : public I2cMaster
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.
@@ -55,6 +58,8 @@ class I2cSoft : public I2cMaster
void wait_scl ();
/// Send start condition.
void send_start ();
+ /// Send restart condition.
+ void send_restart ();
/// Send stop condition.
void send_stop ();
/// Send one bit.