Conversation
…all(), added #defs for Rhall registers, added comments specifing not to use these functions without testing
Made Changes to support the BMM150
Delete bosch check code
|
Thank you for your contribution. |
* added suspendIMU and get_bit * Updated to 0.2.0
* wip with compile errors * wip: compiling * WIP: compiling, but mag not streaming * Almost working * FIFO seems to work at 25hz, but can't change freq * Minor cleanup. * Changed library Version in library.properties
| void BMI160Class::resetStepCount() { | ||
| reg_write(BMI160_RA_CMD, BMI160_CMD_STEP_CNT_CLR); | ||
| } | ||
|
|
There was a problem hiding this comment.
Could you please eliminate these unintentional changes?
| */ | ||
| uint8_t BMI160Class::getMotionDetectionThreshold() { | ||
| return reg_read(BMI160_RA_INT_MOTION_1); | ||
| return reg_read(BMI160_RA_INT_MOTION_1); |
There was a problem hiding this comment.
Could you please eliminate these unintentional changes?
| */ | ||
| void BMI160Class::setMotionDetectionThreshold(uint8_t threshold) { | ||
| return reg_write(BMI160_RA_INT_MOTION_1, threshold); | ||
| return reg_write(BMI160_RA_INT_MOTION_1, threshold); |
There was a problem hiding this comment.
Could you please eliminate these unintentional changes?
| BMI160_ANYMOTION_DUR_LEN); | ||
| return 1 + reg_read_bits(BMI160_RA_INT_MOTION_0, | ||
| BMI160_ANYMOTION_DUR_BIT, | ||
| BMI160_ANYMOTION_DUR_LEN); |
There was a problem hiding this comment.
Could you please eliminate these unintentional changes?
| BMI160_ANYMOTION_DUR_LEN); | ||
| reg_write_bits(BMI160_RA_INT_MOTION_0, samples - 1, | ||
| BMI160_ANYMOTION_DUR_BIT, | ||
| BMI160_ANYMOTION_DUR_LEN); |
There was a problem hiding this comment.
Could you please eliminate these unintentional changes?
|
|
||
| /** Get zero motion detection event acceleration threshold. | ||
| * This register configures the detection threshold for Zero Motion interrupt | ||
| * generation in the INT_MOTION[1] register. The unit of threshold is |
There was a problem hiding this comment.
Could you please eliminate these unintentional changes?
| uint8_t getMotionDetectionDuration(); | ||
| void setMotionDetectionDuration(uint8_t duration); | ||
| uint8_t getMotionDetectionDuration(); | ||
| void setMotionDetectionDuration(uint8_t duration); |
There was a problem hiding this comment.
Could you please eliminate these unintentional changes?
| void setMagFIFOEnabled(bool enabled); //Added for BMM150 Support | ||
|
|
||
| bool getIntFIFOBufferFullEnabled(); | ||
| void setIntFIFOBufferFullEnabled(bool enabled); |
| bool getIntDataReadyEnabled(); | ||
| void setIntDataReadyEnabled(bool enabled); | ||
|
|
||
There was a problem hiding this comment.
Could you please eliminate these unintentional changes?
| void getAcceleration(int16_t* x, int16_t* y, int16_t* z); | ||
| void getMotion9(int16_t* ax, int16_t* ay, int16_t* az, int16_t* gx, int16_t* gy, int16_t* gz, int16_t* mx, int16_t* my, int16_t* mz, uint16_t* rh); //Added for BMM150 Support | ||
| void extractMotion9(uint8_t* buffer, int16_t* ax, int16_t* ay, int16_t* az, int16_t* gx, int16_t* gy, int16_t* gz, int16_t* mx, int16_t* my, int16_t* mz, uint16_t* rh); //Added for BMM150 Support | ||
| void getAcceleration(int16_t* x, int16_t* y, int16_t* z); |
There was a problem hiding this comment.
Could you please eliminate these unintentional changes?
Please fix indentation here.
|
|
||
| uint8_t getRegister(uint8_t reg); | ||
| void setRegister(uint8_t reg, uint8_t data); | ||
| void setRegister(uint8_t reg, uint8_t data, uint8_t bitMask); |
* Added changes to incorporate TwoWire instance passed by reference. * Added passing i2c instance.
Description
New Features