aboutsummaryrefslogtreecommitdiff
path: root/src/drivers/device/i2c.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers/device/i2c.h')
-rw-r--r--src/drivers/device/i2c.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/drivers/device/i2c.h b/src/drivers/device/i2c.h
index 7daba31be..b4a9cdd53 100644
--- a/src/drivers/device/i2c.h
+++ b/src/drivers/device/i2c.h
@@ -53,6 +53,15 @@ namespace device __EXPORT
class __EXPORT I2C : public CDev
{
+public:
+
+ /**
+ * Get the address
+ */
+ uint16_t get_address() {
+ return _address;
+ }
+
protected:
/**
* The number of times a read or write operation will be retried on