MC3479 3-Axis Accelerometer
4.6 READ SAMPLING RATE
Read the current sampling rate with:
MC34X9_acc.GetSampleRate ();
It returns sampling rate from 25 ~ 1000 Hz.
4.7 CONFIG MOTION FEATURE
To configure motion feature, open MC34X9.h
Set the threshold and debounce value used by the tilt and flip logic for activity detection:
#define s_bCfgFTThr
#define s_bCfgFTDebounce
Set the threshold and debounce value used by the any motion logic for activity detection:
#define s_bCfgANYMThr
#define s_bCfgANYMDebounce
Set the threshold, duration and count value used by the shake logic for activity detection:
#define s_bCfgShakeThr
#define s_bCfgShakeP2PDuration
#define s_bCfgShakeCount
Set the threshold and duration value used by the tilt35 logic for activity detection:
#define s_bCfgTILT35Thr
#define s_bCfgTILT35Timer
4.8 CONFIG INTERRUPT MODE
Configure the FIFO interrupt mode with:
MC34X9_acc.SetFIFOINTCtrl(false, false, enableFifoThrINT);
mCube Proprietary.
© 2020 mCube Inc. All rights reserved.
EV3479A Quick Start Guide and Demo
100
50
200
100
300
10
1
20
MC34X9_TILT35_2p0
APS-045-0034v1.0
13 / 20