aboutsummaryrefslogtreecommitdiff
path: root/apps/drivers/device/i2c.h
diff options
context:
space:
mode:
authorJames Goppert <james.goppert@gmail.com>2013-04-30 16:55:12 -0400
committerJames Goppert <james.goppert@gmail.com>2013-05-08 13:51:59 -0400
commit06e390b5e98b5e83646a8cd5f75b6b546000fc85 (patch)
treeb760b5730f3a9b936263c57ccda49a7bad21224f /apps/drivers/device/i2c.h
parent078ae23cfa00e2128d08d87dc015a3ca116f342e (diff)
downloadpx4-firmware-06e390b5e98b5e83646a8cd5f75b6b546000fc85.tar.gz
px4-firmware-06e390b5e98b5e83646a8cd5f75b6b546000fc85.tar.bz2
px4-firmware-06e390b5e98b5e83646a8cd5f75b6b546000fc85.zip
Added MD25 I2C motor controller driver.
Diffstat (limited to 'apps/drivers/device/i2c.h')
-rw-r--r--apps/drivers/device/i2c.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/apps/drivers/device/i2c.h b/apps/drivers/device/i2c.h
index 66c34dd7c..cc1f4e4d9 100644
--- a/apps/drivers/device/i2c.h
+++ b/apps/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