Overview

Driver for an STMicroelectronics L3G4200D 3-axis gyroscope.

Resources

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

Web page

http://www.st.com/internet/analog/product/250373.jsp

Datasheet

http://www.st.com/internet/com/TECHNICAL_RESOURCES/TECHNICAL_LITERATURE/DATASHEET/CD00265057.pdf

Test hardware

This code has been tested using a SparkFun L3G4200D Breakout:

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

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) 100, 200, 400, 800
Range (dps) 250, 500, 2000
Communication up to 400 kHz (I2C) and 10 MHz (SPI)

API Summary

Macros
L3G4200D_I2C_ADDR L3G4200D 8-bit I2C address selected with SDO signal
Functions
l3g4200d_initialize_i2c Initialize sensor on I2C bus