50#ifndef CONFIG_BMX055_MAG_ADDR_DEFAULT
51#define CONFIG_BMX055_MAG_ADDR_DEFAULT (0x10U)
61#ifndef CONFIG_BMX055_ACC_ADDR_DEFAULT
62#define CONFIG_BMX055_ACC_ADDR_DEFAULT (0x18U)
72#ifndef CONFIG_BMX055_GYRO_ADDR_DEFAULT
73#define CONFIG_BMX055_GYRO_ADDR_DEFAULT (0x68U)
Low-level GPIO peripheral driver interface definitions.
int bmx055_gyro_read(const bmx055_t *dev, int16_t *data)
Read angular speed value in degree per second from gyroscope.
bmx055_gyro_scale_t
Measurement scale for the gyro.
bmx055_acc_range_t
Range for Accelerometer.
int bmx055_acc_read(const bmx055_t *dev, int16_t *data)
Read acceleration value in g from accelerometer.
int bmx055_init(bmx055_t *dev, const bmx055_params_t *params)
Initialize modules magnetometer, accelerometer, gyroscope.
bmx055_mag_rate_t
Datarate for Magnetometer.
int bmx055_mag_read(const bmx055_t *dev, int16_t *data)
Read magnetic field value in Gauss per second from magnetometer.
@ BMX055_GYRO_SCALE_0125DPS
scale: 125 degree per second
@ BMX055_GYRO_SCALE_0250DPS
scale: 250 degree per second
@ BMX055_GYRO_SCALE_1000DPS
scale: 1000 degree per second
@ BMX055_GYRO_SCALE_0500DPS
scale: 500 degree per second
@ BMX055_GYRO_SCALE_2000DPS
scale: 2000 degree per second
@ BMX055_ACC_RANGE_4G
range: 4g
@ BMX055_ACC_RANGE_2G
range: 2g
@ BMX055_ACC_RANGE_8G
range: 8g
@ BMX055_ACC_RANGE_16G
range: 16g
@ BMX055_MAG_DRATE_30HZ
output data rate: 30 Hz
@ BMX055_MAG_DRATE_25HZ
output data rate: 25 Hz
@ BMX055_MAG_DRATE_15HZ
output data rate: 15 Hz
@ BMX055_MAG_DRATE_DEFAULT
output data rate: 10 Hz
@ BMX055_MAG_DRATE_02HZ
output data rate: 2 Hz
@ BMX055_MAG_DRATE_06HZ
output data rate: 6 Hz
@ BMX055_MAG_DRATE_08HZ
output data rate: 8 Hz
@ BMX055_MAG_DRATE_20HZ
output data rate: 20 Hz
@ BMX055_NOWRITE
cannot write data to module
@ BMX055_NOBUS
cannot connect to module on i2c bus
@ BMX055_OK
exit without error
@ BMX055_NOTREADY
no new data ready for reading
@ BMX055_NOREAD
cannot read data from module
@ BMX055_NODEV
cannot read any data from module
uint_fast8_t i2c_t
Default i2c_t type definition.
Low-level I2C peripheral driver interface definition.
Data structure holding the device parameters needed for initialization.
uint8_t mag_rate
datarate of magnetometer
uint8_t addr_acc
the accelerometer address on that bus
uint8_t gyro_scale
range of gyroscope
gpio_t int1_pin
GPIO pin connected to the INT1 line.
uint8_t acc_range
range of accelerometer
uint8_t addr_mag
the magnetometer address on that bus
uint8_t addr_gyro
the gyroscope address on that bus
gpio_t int2_pin
GPIO pin connected to the INT2 line.
i2c_t i2c
I2C bus the device is connected to.
Device descriptor for BMX055 sensors.
bmx055_params_t p
Device initialization parameters.