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