Added code to manage Orientation, FreeFall and Motion Detection. Data is also available via IRQ.
Dependents: Test_FRDM_MMA8451Q AccelTest FRDM-KL46-Template KL25Z_Demo ... more
Fork of MMA8451Q by
Diff: MMA8451Q.h
- Revision:
- 7:ba0016258d5d
- Parent:
- 6:c52175d13e0a
- Child:
- 8:7e6013f11b10
--- a/MMA8451Q.h Tue May 28 07:29:58 2013 +0000 +++ b/MMA8451Q.h Tue May 28 10:33:50 2013 +0000 @@ -136,8 +136,8 @@ void FreFallDetection( void(*fptr)(void)); void MotionDetection( void(*fptr)(void)); - void OrientationDetect( unsigned int Z_LockOut, unsigned int Z_BkFr, unsigned int PL_Thsld, unsigned int PL_Hyst); - void OrientationDetect( void); + void OrientationDetect( void(*fptr)(void), unsigned int Z_LockOut, unsigned int Z_BkFr, unsigned int PL_Thsld, unsigned int PL_Hyst); + void OrientationDetect( void(*fptr)(void)); private: I2C m_i2c; @@ -149,6 +149,7 @@ void Active( void); void Fall_IRQ( void); void Motion_IRQ( void); + void Orientation_IRQ( void); }; #endif