summaryrefslogtreecommitdiff
path: root/ucoo/hal/i2c/i2c_soft.hh
diff options
context:
space:
mode:
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.