Fork of Emilio Monti's MMA8451Q with public register access
Fork of MMA8451Q by
Revision 5:9761c5b984aa, committed 2017-03-03
- Comitter:
- jmar11
- Date:
- Fri Mar 03 18:54:01 2017 +0000
- Parent:
- 4:c4d879a39775
- Commit message:
- made public: register access
Changed in this revision
MMA8451Q.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/MMA8451Q.h Fri Oct 12 11:35:07 2012 +0000 +++ b/MMA8451Q.h Fri Mar 03 18:54:01 2017 +0000 @@ -97,12 +97,14 @@ * @param res array where acceleration data will be stored */ void getAccAllAxis(float * res); + + void readRegs(int addr, uint8_t * data, int len); + + void writeRegs(uint8_t * data, int len); private: I2C m_i2c; int m_addr; - void readRegs(int addr, uint8_t * data, int len); - void writeRegs(uint8_t * data, int len); int16_t getAccAxis(uint8_t addr); };