summaryrefslogtreecommitdiff
path: root/digital/ucoolib/ucoolib/intf/i2c.hh
diff options
context:
space:
mode:
Diffstat (limited to 'digital/ucoolib/ucoolib/intf/i2c.hh')
-rw-r--r--digital/ucoolib/ucoolib/intf/i2c.hh3
1 files changed, 3 insertions, 0 deletions
diff --git a/digital/ucoolib/ucoolib/intf/i2c.hh b/digital/ucoolib/ucoolib/intf/i2c.hh
index 622510a1..20acf008 100644
--- a/digital/ucoolib/ucoolib/intf/i2c.hh
+++ b/digital/ucoolib/ucoolib/intf/i2c.hh
@@ -70,6 +70,9 @@ class I2cMaster
/// Register a handler called when transfer is finished.
void register_finished (FinishedHandler &finished_handler)
{ finished_handler_ = &finished_handler; }
+ /// Remove registered handler.
+ void unregister_finished (void)
+ { finished_handler_ = 0; }
protected:
/// Default constructor.
I2cMaster () : finished_handler_ (0) { }