Made HMC bus-agnostic

This commit is contained in:
Lorenz Meier
2013-04-27 19:27:15 +02:00
parent 7ca82801bd
commit ee498a9d7c
2 changed files with 29 additions and 11 deletions
+5 -1
View File
@@ -60,6 +60,11 @@ protected:
*/
unsigned _retries;
/**
* The I2C bus number the device is attached to.
*/
int _bus;
/**
* @ Constructor
*
@@ -123,7 +128,6 @@ protected:
}
private:
int _bus;
uint16_t _address;
uint32_t _frequency;
struct i2c_dev_s *_dev;