Device driver for the Bosch BMX055 9-axis sensor. More...
Device driver for the Bosch BMX055 9-axis sensor.
This driver provides [S]ensor [A]ctuator [U]ber [L]ayer capabilities.
Modules | |
BMX055 sensor driver compile configuration | |
Files | |
file | bmx055_internal.h |
Definitions for the bmx055 device. | |
file | bmx055_params.h |
Default configuration for bmx055 devices. | |
file | bmx055.h |
Device driver interface for the Bosch BMX055 9-axis sensor. | |
Data Structures | |
struct | bmx055_params_t |
Data structure holding the device parameters needed for initialization. More... | |
struct | bmx055_t |
Device descriptor for BMX055 sensors. More... | |
Enumerations | |
enum | { BMX055_OK = 0 , BMX055_NOBUS = -1 , BMX055_NODEV = -2 , BMX055_NOREAD = -3 , BMX055_NOWRITE = -4 , BMX055_NOTREADY = -5 } |
Status and error return codes. More... | |
enum | bmx055_mag_rate_t { BMX055_MAG_DRATE_DEFAULT = 0x0 , BMX055_MAG_DRATE_02HZ = 0x1 , BMX055_MAG_DRATE_06HZ = 0x2 , BMX055_MAG_DRATE_08HZ = 0x3 , BMX055_MAG_DRATE_15HZ = 0x4 , BMX055_MAG_DRATE_20HZ = 0x5 , BMX055_MAG_DRATE_25HZ = 0x6 , BMX055_MAG_DRATE_30HZ = 0x7 } |
Datarate for Magnetometer. More... | |
enum | bmx055_acc_range_t { BMX055_ACC_RANGE_2G = 0x0 , BMX055_ACC_RANGE_4G = 0x1 , BMX055_ACC_RANGE_8G = 0x2 , BMX055_ACC_RANGE_16G = 0x3 } |
Range for Accelerometer. More... | |
enum | bmx055_gyro_scale_t { BMX055_GYRO_SCALE_2000DPS = 0x0 , BMX055_GYRO_SCALE_1000DPS = 0x1 , BMX055_GYRO_SCALE_0500DPS = 0x2 , BMX055_GYRO_SCALE_0250DPS = 0x3 , BMX055_GYRO_SCALE_0125DPS = 0x4 } |
Measurement scale for the gyro. More... | |
Functions | |
int | bmx055_init (bmx055_t *dev, const bmx055_params_t *params) |
Initialize modules magnetometer, accelerometer, gyroscope. | |
int | bmx055_mag_read (const bmx055_t *dev, int16_t *data) |
Read magnetic field value in Gauss per second from magnetometer. | |
int | bmx055_acc_read (const bmx055_t *dev, int16_t *data) |
Read acceleration value in g from accelerometer. | |
int | bmx055_gyro_read (const bmx055_t *dev, int16_t *data) |
Read angular speed value in degree per second from gyroscope. | |
anonymous enum |
enum bmx055_acc_range_t |
enum bmx055_gyro_scale_t |
Measurement scale for the gyro.
enum bmx055_mag_rate_t |
Datarate for Magnetometer.
int bmx055_acc_read | ( | const bmx055_t * | dev, |
int16_t * | data | ||
) |
Read acceleration value in g from accelerometer.
[in] | dev | device descriptor of accelerometer |
[out] | data | result vector in g per axis |
int bmx055_gyro_read | ( | const bmx055_t * | dev, |
int16_t * | data | ||
) |
Read angular speed value in degree per second from gyroscope.
[in] | dev | device descriptor of gyroscope |
[out] | data | result vector in dps per axis |
int bmx055_init | ( | bmx055_t * | dev, |
const bmx055_params_t * | params | ||
) |
Initialize modules magnetometer, accelerometer, gyroscope.
[out] | dev | device descriptor of sensor to initialize |
[in] | params | default parameter values |
int bmx055_mag_read | ( | const bmx055_t * | dev, |
int16_t * | data | ||
) |
Read magnetic field value in Gauss per second from magnetometer.
[in] | dev | device descriptor of magnetometer |
[out] | data | result vector in Gs per axis |