diff options
Diffstat (limited to 'apps/drivers/device/i2c.h')
-rw-r--r-- | apps/drivers/device/i2c.h | 9 |
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 |