33 #include <mraa/gpio.h> 37 #include "lsm6ds3h_defs.h" 58 mraa_gpio_context gpioCS;
59 mraa_gpio_context gpioINT1;
60 mraa_gpio_context gpioINT2;
135 LSM6DS3H_XL_ODR_T acc_odr,
136 LSM6DS3H_XL_FS_T acc_fs,
137 LSM6DS3H_G_ODR_T gyr_odr,
138 LSM6DS3H_G_FS_T gyr_fs);
148 LSM6DS3H_XL_ODR_T odr);
158 LSM6DS3H_G_ODR_T odr);
169 LSM6DS3H_XL_FS_T fs);
196 float *x,
float *y,
float *z);
212 float *x,
float *y,
float *z);
292 LSM6DS3H_INTERRUPT_PINS_T intr,
int gpio,
293 mraa_gpio_edge_t level,
294 void (*isr)(
void *),
void *arg);
304 LSM6DS3H_INTERRUPT_PINS_T intr);
324 uint8_t *buffer,
int len);
335 uint8_t reg, uint8_t val);
void lsm6ds3h_get_accelerometer(const lsm6ds3h_context dev, float *x, float *y, float *z)
Definition: lsm6ds3h.c:443
upm_result_t lsm6ds3h_set_acc_odr(const lsm6ds3h_context dev, LSM6DS3H_XL_ODR_T odr)
Definition: lsm6ds3h.c:214
upm_result_t lsm6ds3h_update(const lsm6ds3h_context dev)
Definition: lsm6ds3h.c:312
upm_result_t lsm6ds3h_set_gyr_odr(const lsm6ds3h_context dev, LSM6DS3H_G_ODR_T odr)
Definition: lsm6ds3h.c:231
uint8_t lsm6ds3h_get_chip_id(const lsm6ds3h_context dev)
Definition: lsm6ds3h.c:436
upm_result_t lsm6ds3h_install_isr(const lsm6ds3h_context dev, LSM6DS3H_INTERRUPT_PINS_T intr, int gpio, mraa_gpio_edge_t level, void(*isr)(void *), void *arg)
Definition: lsm6ds3h.c:573
void lsm6ds3h_get_gyroscope(const lsm6ds3h_context dev, float *x, float *y, float *z)
Definition: lsm6ds3h.c:458
float lsm6ds3h_get_temperature(const lsm6ds3h_context dev)
Definition: lsm6ds3h.c:473
lsm6ds3h_context lsm6ds3h_init(int bus, int addr, int cs)
Definition: lsm6ds3h.c:65
upm_result_t lsm6ds3h_set_interrupt_push_pull(const lsm6ds3h_context dev, bool pp)
Definition: lsm6ds3h.c:548
upm_result_t lsm6ds3h_write_reg(const lsm6ds3h_context dev, uint8_t reg, uint8_t val)
Definition: lsm6ds3h.c:402
upm_result_t lsm6ds3h_set_acc_full_scale(const lsm6ds3h_context dev, LSM6DS3H_XL_FS_T fs)
Definition: lsm6ds3h.c:248
upm_result_t lsm6ds3h_devinit(const lsm6ds3h_context dev, LSM6DS3H_XL_ODR_T acc_odr, LSM6DS3H_XL_FS_T acc_fs, LSM6DS3H_G_ODR_T gyr_odr, LSM6DS3H_G_FS_T gyr_fs)
Definition: lsm6ds3h.c:181
int lsm6ds3h_read_regs(const lsm6ds3h_context dev, uint8_t reg, uint8_t *buffer, int len)
Definition: lsm6ds3h.c:367
upm_result_t lsm6ds3h_set_interrupt_active_high(const lsm6ds3h_context dev, bool high)
Definition: lsm6ds3h.c:530
Definition: lsm6ds3h.h:54
upm_result_t lsm6ds3h_high_performance(const lsm6ds3h_context dev, bool enable)
Definition: lsm6ds3h.c:482
upm_result_t lsm6ds3h_set_gyr_full_scale(const lsm6ds3h_context dev, LSM6DS3H_G_FS_T fs)
Definition: lsm6ds3h.c:285
void lsm6ds3h_close(lsm6ds3h_context dev)
Definition: lsm6ds3h.c:164
struct _lsm6ds3h_context * lsm6ds3h_context
uint8_t lsm6ds3h_get_status(const lsm6ds3h_context dev)
Definition: lsm6ds3h.c:566
uint8_t lsm6ds3h_read_reg(const lsm6ds3h_context dev, uint8_t reg)
Definition: lsm6ds3h.c:343
upm_result_t lsm6ds3h_reset(const lsm6ds3h_context dev)
Definition: lsm6ds3h.c:514
void lsm6ds3h_uninstall_isr(const lsm6ds3h_context dev, LSM6DS3H_INTERRUPT_PINS_T intr)
Definition: lsm6ds3h.c:615