32 #include <mraa/gpio.h> 36 #include "lsm303d_defs.h" 119 float *x,
float *y,
float *z);
134 float *x,
float *y,
float *z);
181 LSM303D_M_RES_T res);
223 uint8_t *buffer,
int len);
234 uint8_t reg, uint8_t val);
upm_result_t lsm303d_write_reg(const lsm303d_context dev, uint8_t reg, uint8_t val)
Definition: lsm303d.c:337
upm_result_t lsm303d_set_acc_full_scale(const lsm303d_context dev, LSM303D_AFS_T fs)
Definition: lsm303d.c:188
lsm303d_context lsm303d_init(int bus, int addr)
Definition: lsm303d.c:48
struct _lsm303d_context * lsm303d_context
void lsm303d_close(lsm303d_context dev)
Definition: lsm303d.c:103
upm_result_t lsm303d_set_mag_odr(const lsm303d_context dev, LSM303D_MODR_T odr)
Definition: lsm303d.c:404
upm_result_t lsm303d_update(const lsm303d_context dev)
Definition: lsm303d.c:268
uint8_t lsm303d_read_reg(const lsm303d_context dev, uint8_t reg)
Definition: lsm303d.c:311
void lsm303d_get_accelerometer(const lsm303d_context dev, float *x, float *y, float *z)
Definition: lsm303d.c:376
void lsm303d_get_magnetometer(const lsm303d_context dev, float *x, float *y, float *z)
Definition: lsm303d.c:361
upm_result_t lsm303d_set_mag_full_scale(const lsm303d_context dev, LSM303D_MFS_T fs)
Definition: lsm303d.c:230
upm_result_t lsm303d_devinit(const lsm303d_context dev, LSM303D_M_RES_T res)
Definition: lsm303d.c:113
int lsm303d_read_regs(const lsm303d_context dev, uint8_t reg, uint8_t *buffer, int len)
Definition: lsm303d.c:325
float lsm303d_get_temperature(const lsm303d_context dev)
Definition: lsm303d.c:352
upm_result_t lsm303d_set_acc_odr(const lsm303d_context dev, LSM303D_AODR_T odr)
Definition: lsm303d.c:389