Overview

Driver for an Analog Devices ADXL362 3-axis accelerometer.

Resources

All correct at time of writing, but as always, manufacturers love to move things around on their website.

Web page

http://www.analog.com/en/mems-sensors/mems-accelerometers/adxl362/products/product.html

Datasheet

http://www.analog.com/static/imported-files/data_sheets/ADXL362.pdf

Test hardware

This code has been tested using a SparkFun ADXL362 breakout:

http://www.sparkfun.com/products/11446

This was wired to a CoreProto and plugged into a SenseCore:

http://soldercore.com/products/sensecore/

And finally installed on a SolderCore:

http://soldercore.com/products/soldercore/

Specification
Parameter Supported settings
Bandwidth (Hz) 12.5, 25, 50, 100 (default), 200, 400
Range (g) ±2, ±4, ±8
Communication 1 MHz to 5 MHz (SPI)

API Summary

Functions
adxl362_initialize_spi Initialize sensor on SPI bus