max44000: Added swig to the module and set i2c methods as public

Signed-off-by: Kiveisha Yevgeniy <yevgeniy.kiveisha@intel.com>
This commit is contained in:
Kiveisha Yevgeniy
2014-06-10 13:34:27 +00:00
parent 3be0cdf5c2
commit 12b2ab6991
4 changed files with 55 additions and 9 deletions

View File

@@ -43,8 +43,8 @@ MAX44000::MAX44000 (int bus, int devAddr) {
fprintf(stderr, "Messed up i2c bus\n");
}
i2cWriteReg (MCR, 0x2C);
i2cWriteReg (TCR, 0x6);
// i2cWriteReg (MCR, 0x2C);
// i2cWriteReg (TCR, 0x6);
}
MAX44000::~MAX44000() {
@@ -64,7 +64,7 @@ MAX44000::getProximity () {
uint16_t
MAX44000::getAmbient () {
uint16_t data = 0;
data = (i2cReadReg_8 (ALSDATA_HIGH) & 0x7F) << 8;
data = data | i2cReadReg_8 (ALSDATA_LOW);