My attempt to made a more useful lib. You can get the accelerator and magnetometer.

Fork of LSM303DLH by Michael Shimniok

Auto generated API documentation and code listings for LSM303DLH

Classes

CRA_REG_M_t CRA_REG_M structure definition
CRB_REG_M_t CRB_REG_M structure definition
Ctrl_Reg1_A_t CTRL_REG1_A structure definition
Ctrl_Reg2_A_t CTRL_REG2_A structure definition
Ctrl_Reg3_A_t CTRL_REG3_A structure definition
Ctrl_Reg4_A_t CTRL_REG4_A structure definition
Ctrl_Reg5_A_t CTRL_REG5_A structure definition
Ctrl_Reg6_A_t CTRL_REG6_A structure definition
LSM303DLH Tilt-compensated compass interface Library for the STMicro LSM303DLH 3-axis magnetometer, 3-axis acceleromter
MR_REG_M_t MR_REG_M structure definition
OUT_XYZ_t OUT_XYZ structure
SR_Reg_M_t SR_Reg_M structure definition
Status_Reg_A_t Status_Reg_A structure definition

Code

LSM303DLH.cpp [code]
LSM303DLH.h [code]
LSM303DLH_RegisterDef.h [code]
vector.cpp [code]
vector.h [code]