Mcube MC3672 Quick Start Manuals page 13

Accelerometer driver
Table of Contents

Advertisement

MC3672 Accelerometer Driver
4.10 READ SNIFF SAMPLING RATE
Read the current sniff sampling rate with:
MC36XX_acc.GetSniffSampleRate ();
This returns sampling rate from 7 ~ 600 Hz.
4.11 CONFIG SNIFF MODE
Set the threshold values used by the SNIFF logic for activity detection:
MC36XX_acc.SetSniffThreshold (MC36XX_AXIS_X,5);
All three axes could be configured separately with different threshold value.
Set the threshold values used by the SNIFF logic for activity detection:
MC36XX_acc.SetSniffDetectCount (MC36XX_AXIS_X,3);
For each axis, a delta count is generated and compared to the threshold. When the delta
count is greater than the threshold, a SNIFF wakeup event occurs. There is a unique sniff
threshold for each axis, and an optional "false detection count" which requires multiple
sniff detection events to occur before a wakeup condition is declared.
Configure sniff and/or mode with:
MC36XX_acc.SetSniffAndOrN(MC36XX_ANDORN_OR);
The SNIFF block supports the logical AND or OR of the X/Y/Z SNIFF wakeup flags when
generating a SNIFF wakeup interrupt.
Configure sniff delta mode with:
MC36XX_acc.SetSniffDeltaMode(MC36XX_DELTA_MODE_C2P);
mCube Proprietary.
© 2018 mCube Inc. All rights reserved.
APS-045-0017v1.2
Quick Start Guide and Demo
13 / 19

Hide quick links:

Advertisement

Table of Contents
loading

Related Products for Mcube MC3672

Table of Contents