Atmel Software Framework

drop_detector.c File Reference

Sensors Xplained Accelerometer Drop Detection Demo.

Copyright (c) 2011-2015 Atmel Corporation. All rights reserved.

#include "sensor_demo.h"
#include <sleepmgr.h>

Macros

#define ACCEL_LED   LED2 /* activity indicator */
 
#define BANDWIDTH   (1500 /* Hz */) /* accelerometer bandwidth */
 
#define DATA_SAMPLE_COUNT   (128) /* waveform graph sample set count */
 
#define LOW_G_SATURATION   (13000 /* milli-g */) /* low-g saturation val */
 
#define LOW_G_THRESHOLD   (250 /* milli-g*/) /* free fall threshold */
 
#define RANGE   (8000 /* milli-g */) /* accelerometer range */
 
#define SAMPLE_AVG_COUNT   (10) /* waveform graph sample average count */
 
#define SLEEP_MODE   (SLEEPMGR_PDOWN) /* sleep mode */
 

Functions

int main (void)
 Example application entry routine. More...
 

#define ACCEL_LED   LED2 /* activity indicator */

Referenced by main().

#define BANDWIDTH   (1500 /* Hz */) /* accelerometer bandwidth */

Referenced by main().

#define DATA_SAMPLE_COUNT   (128) /* waveform graph sample set count */

Referenced by main().

#define LOW_G_SATURATION   (13000 /* milli-g */) /* low-g saturation val */

Referenced by main().

#define LOW_G_THRESHOLD   (250 /* milli-g*/) /* free fall threshold */

Referenced by main().

#define RANGE   (8000 /* milli-g */) /* accelerometer range */

Referenced by bma180_set_range(), and main().

#define SAMPLE_AVG_COUNT   (10) /* waveform graph sample average count */

Referenced by main().

#define SLEEP_MODE   (SLEEPMGR_PDOWN) /* sleep mode */

Referenced by main().