Does anybody know how to get direct access to registers on the IMU (BMI160) on the Arduino 101 board? I would like to e.g. enable interrupt controller and set related registers.
Hi,
you can access the registers by moving reg_write
and reg_read
from private to public inside hardware/arc32/.../libraries/CurieIMU/BMI160.h
Then you can use that functions directly inside the sketch. However, most of the tasks you need to perform are already in BMI160.cpp and CurieImu.cpp ( interrupts handling ), maybe using some not-yet-documented functions does the trick
Hi all
Been going through both the BMI160 and CurieIMU.cpp as well as using the raw example as a base. A couple of questions based on what i am seeing - can i access the bma just using the bma160.h and if not do i need to use the interrupt feature or just he buffer and the initialization of the spi.
thanks in advance
Mike
Ok, got all the access I need. I successfully incorporated it into my FreeIMU-update version and works beautifully. Wish they incorporated a magnetometer as well. Oh, well.
Thanks
Mike