Device driver interface for the LSM303DLHC 3D accelerometer/magnetometer. More...
Device driver interface for the LSM303DLHC 3D accelerometer/magnetometer.
Definition in file lsm303dlhc.h.
Go to the source code of this file.
Data Structures | |
struct | lsm303dlhc_3d_data_t |
3d data container More... | |
struct | lsm303dlhc_params_t |
Data structure holding all the information needed for initialization. More... | |
struct | lsm303dlhc_t |
Device descriptor for LSM303DLHC sensors. More... | |
Functions | |
int | lsm303dlhc_init (lsm303dlhc_t *dev, const lsm303dlhc_params_t *params) |
Initialize a new LSM303DLHC device. More... | |
int | lsm303dlhc_read_acc (const lsm303dlhc_t *dev, lsm303dlhc_3d_data_t *data) |
Read a accelerometer value from the sensor. More... | |
int | lsm303dlhc_read_mag (const lsm303dlhc_t *dev, lsm303dlhc_3d_data_t *data) |
Read a magnetometer value from the sensor. More... | |
int | lsm303dlhc_read_temp (const lsm303dlhc_t *dev, int16_t *value) |
Read a temperature value from the sensor. More... | |
int | lsm303dlhc_enable (const lsm303dlhc_t *dev) |
Enable the given sensor. More... | |
int | lsm303dlhc_disable (const lsm303dlhc_t *dev) |
Disable the given sensor. More... | |
The sensors default I2C address | |
#define | LSM303DLHC_ACC_DEFAULT_ADDRESS (0x19) |
#define | LSM303DLHC_MAG_DEFAULT_ADDRESS (0x1e) |