34 #include <mraa/gpio.h> 36 #include "bno055_regs.h" 55 mraa_gpio_context gpio;
61 BNO055_OPERATION_MODES_T currentMode;
226 BNO055_TEMP_SOURCES_T src);
248 BNO055_OPERATION_MODES_T mode);
303 uint8_t *data,
size_t len);
346 float *roll,
float *pitch);
398 float *x,
float *y,
float *z);
449 float *x,
float *y,
float *z);
462 BNO055_ACC_RANGE_T range,
464 BNO055_ACC_PWR_MODE_T pwr);
477 BNO055_MAG_ODR_T odr,
478 BNO055_MAG_OPR_T opr,
479 BNO055_MAG_POWER_T pwr);
492 BNO055_GYR_RANGE_T range,
494 BNO055_GYR_POWER_MODE_T pwr);
613 BNO055_SYS_STATUS_T *sys_stat);
625 BNO055_SYS_ERR_T *sys_err);
640 int gpio, mraa_gpio_edge_t level,
641 void (*isr)(
void *),
void *arg);
687 uint8_t *buffer,
size_t len);
699 uint8_t reg, uint8_t val);
713 uint8_t *buffer,
size_t len);
upm_result_t bno055_set_interrupt_enable(const bno055_context dev, uint8_t enables)
Definition: bno055.c:698
void bno055_uninstall_isr(const bno055_context dev)
Definition: bno055.c:1047
upm_result_t bno055_write_calibration_data(const bno055_context dev, uint8_t *data, size_t len)
Definition: bno055.c:806
upm_result_t bno055_get_interrupt_mask(const bno055_context dev, uint8_t *imask)
Definition: bno055.c:709
float bno055_get_temperature(const bno055_context dev)
Definition: bno055.c:842
void bno055_get_accelerometer(const bno055_context dev, float *x, float *y, float *z)
Definition: bno055.c:915
upm_result_t bno055_get_chip_id(const bno055_context dev, uint8_t *chip_id)
Definition: bno055.c:334
upm_result_t bno055_set_temperature_units_celsius(const bno055_context dev)
Definition: bno055.c:469
upm_result_t bno055_set_clock_external(const bno055_context dev, bool extClock)
Definition: bno055.c:426
upm_result_t bno055_read_calibration_data(const bno055_context dev, uint8_t *data, size_t len)
Definition: bno055.c:766
upm_result_t bno055_reset_interrupt_status(const bno055_context dev)
Definition: bno055.c:660
void bno055_get_euler_angles(const bno055_context dev, float *heading, float *roll, float *pitch)
Definition: bno055.c:849
upm_result_t bno055_get_bootloader_id(const bno055_context dev, uint8_t *bl_id)
Definition: bno055.c:393
upm_result_t bno055_set_gyroscope_units(const bno055_context dev, bool radians)
Definition: bno055.c:510
upm_result_t bno055_get_gyr_id(const bno055_context dev, uint8_t *chip_id)
Definition: bno055.c:364
struct _bno055_context * bno055_context
upm_result_t bno055_set_accelerometer_units(const bno055_context dev, bool mg)
Definition: bno055.c:485
upm_result_t bno055_get_system_status(const bno055_context dev, BNO055_SYS_STATUS_T *sys_stat)
Definition: bno055.c:730
void bno055_get_gyroscope(const bno055_context dev, float *x, float *y, float *z)
Definition: bno055.c:948
upm_result_t bno055_set_acceleration_config(const bno055_context dev, BNO055_ACC_RANGE_T range, BNO055_ACC_BW_T bw, BNO055_ACC_PWR_MODE_T pwr)
Definition: bno055.c:963
upm_result_t bno055_get_interrupt_enable(const bno055_context dev, uint8_t *ienable)
Definition: bno055.c:687
upm_result_t bno055_set_temperature_source(const bno055_context dev, BNO055_TEMP_SOURCES_T src)
Definition: bno055.c:458
upm_result_t bno055_set_magnetometer_config(const bno055_context dev, BNO055_MAG_ODR_T odr, BNO055_MAG_OPR_T opr, BNO055_MAG_POWER_T pwr)
Definition: bno055.c:980
void bno055_get_magnetometer(const bno055_context dev, float *x, float *y, float *z)
Definition: bno055.c:930
upm_result_t bno055_set_operation_mode(const bno055_context dev, BNO055_OPERATION_MODES_T mode)
Definition: bno055.c:560
void bno055_close(bno055_context dev)
Definition: bno055.c:230
upm_result_t bno055_set_gyroscope_config(const bno055_context dev, BNO055_GYR_RANGE_T range, BNO055_GYR_BW_T bw, BNO055_GYR_POWER_MODE_T pwr)
Definition: bno055.c:997
void bno055_get_linear_acceleration(const bno055_context dev, float *x, float *y, float *z)
Definition: bno055.c:885
upm_result_t bno055_get_sw_revision(const bno055_context dev, uint16_t *sw_rev)
Definition: bno055.c:374
upm_result_t bno055_write_reg(const bno055_context dev, uint8_t reg, uint8_t val)
Definition: bno055.c:298
upm_result_t bno055_install_isr(const bno055_context dev, int gpio, mraa_gpio_edge_t level, void(*isr)(void *), void *arg)
Definition: bno055.c:1018
upm_result_t bno055_write_regs(const bno055_context dev, uint8_t reg, uint8_t *buffer, size_t len)
Definition: bno055.c:313
upm_result_t bno055_set_page(const bno055_context dev, uint8_t page, bool force)
Definition: bno055.c:403
upm_result_t bno055_reset_system(const bno055_context dev)
Definition: bno055.c:639
void bno055_get_quaternions(const bno055_context dev, float *w, float *x, float *y, float *z)
Definition: bno055.c:864
upm_result_t bno055_get_mag_id(const bno055_context dev, uint8_t *chip_id)
Definition: bno055.c:354
upm_result_t bno055_get_interrupt_status(const bno055_context dev, uint8_t *istat)
Definition: bno055.c:676
upm_result_t bno055_read_reg(const bno055_context dev, uint8_t reg, uint8_t *retval)
Definition: bno055.c:264
upm_result_t bno055_set_euler_units(const bno055_context dev, bool radians)
Definition: bno055.c:535
upm_result_t bno055_get_system_error(const bno055_context dev, BNO055_SYS_ERR_T *sys_err)
Definition: bno055.c:748
upm_result_t bno055_update(const bno055_context dev)
Definition: bno055.c:242
bno055_context bno055_init(int bus, uint8_t addr)
Definition: bno055.c:129
bool bno055_is_fully_calibrated(const bno055_context dev)
Definition: bno055.c:622
upm_result_t bno055_read_regs(const bno055_context dev, uint8_t reg, uint8_t *buffer, size_t len)
Definition: bno055.c:283
upm_result_t bno055_get_calibration_status(const bno055_context dev, int *mag, int *acc, int *gyr, int *sys)
Definition: bno055.c:590
upm_result_t bno055_set_interrupt_mask(const bno055_context dev, uint8_t mask)
Definition: bno055.c:720
upm_result_t bno055_get_acc_id(const bno055_context dev, uint8_t *chip_id)
Definition: bno055.c:344
void bno055_get_gravity_vectors(const bno055_context dev, float *x, float *y, float *z)
Definition: bno055.c:900