freefall
Fork of MMA8451Q by
Diff: MMA8451Q.h
- Revision:
- 5:05700df05c8f
- Parent:
- 4:c4d879a39775
diff -r c4d879a39775 -r 05700df05c8f MMA8451Q.h --- a/MMA8451Q.h Fri Oct 12 11:35:07 2012 +0000 +++ b/MMA8451Q.h Sat Nov 11 09:41:07 2017 +0000 @@ -97,12 +97,12 @@ * @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); };