A basic library for the FXOS8700Q combination accelerometer / magnetometer
Fork of FXOS8700Q by
Revision 10:1efb0564e0a4, committed 2015-10-29
- Comitter:
- co657_kk351
- Date:
- Thu Oct 29 17:38:41 2015 +0000
- Parent:
- 9:5553a64d0762
- Commit message:
- .
Changed in this revision
FXOS8700Q.cpp | Show annotated file Show diff for this revision Revisions of this file |
FXOS8700Q.h | Show annotated file Show diff for this revision Revisions of this file |
diff -r 5553a64d0762 -r 1efb0564e0a4 FXOS8700Q.cpp --- a/FXOS8700Q.cpp Wed May 07 18:08:08 2014 +0000 +++ b/FXOS8700Q.cpp Thu Oct 29 17:38:41 2015 +0000 @@ -306,3 +306,4 @@ return acc; } +
diff -r 5553a64d0762 -r 1efb0564e0a4 FXOS8700Q.h --- a/FXOS8700Q.h Wed May 07 18:08:08 2014 +0000 +++ b/FXOS8700Q.h Thu Oct 29 17:38:41 2015 +0000 @@ -85,19 +85,19 @@ */ ~FXOS8700Q_acc(); - void enable(void); - void disable(void); - uint32_t sampleRate(uint32_t frequency); - uint32_t whoAmI(void); - uint32_t dataReady(void); - void getX(int16_t * x); - void getY(int16_t * y); - void getZ(int16_t * z); - void getX(float * x); - void getY(float * y); - void getZ(float * z); - void getAxis(MotionSensorDataCounts &data); - void getAxis(MotionSensorDataUnits &data); + virtual void enable(void); + virtual void disable(void); + virtual uint32_t sampleRate(uint32_t frequency); + virtual uint32_t whoAmI(void); +virtual uint32_t dataReady(void); +virtual void getX(int16_t * x); + virtual void getY(int16_t * y); + virtual void getZ(int16_t * z); + virtual void getX(float * x); + virtual void getY(float * y); +virtual void getZ(float * z); +virtual void getAxis(MotionSensorDataCounts &data); +virtual void getAxis(MotionSensorDataUnits &data); void readRegs(int addr, uint8_t * data, int len); @@ -120,19 +120,19 @@ */ ~FXOS8700Q_mag(); - void enable(void); - void disable(void); - uint32_t sampleRate(uint32_t fequency); - uint32_t whoAmI(void); - uint32_t dataReady(void); - void getX(int16_t * x); - void getY(int16_t * y); - void getZ(int16_t * z); - void getX(float * x); - void getY(float * y); - void getZ(float * z); - void getAxis(MotionSensorDataCounts &data); - void getAxis(MotionSensorDataUnits &data); + virtual void enable(void); + virtual void disable(void); + virtual uint32_t sampleRate(uint32_t fequency); + virtual uint32_t whoAmI(void); + virtual uint32_t dataReady(void); +virtual void getX(int16_t * x); + virtual void getY(int16_t * y); + virtual void getZ(int16_t * z); +virtual void getX(float * x); + virtual void getY(float * y); + virtual void getZ(float * z); +virtual void getAxis(MotionSensorDataCounts &data); + virtual void getAxis(MotionSensorDataUnits &data); void readRegs(int addr, uint8_t * data, int len);