SparkFun BMI330 Arduino Library  v1.0.0-2-gdbddb99
Arduino Library for the SparkFun Qwiic BMI330 6-DoF IMU (Bosch BMI330)
Loading...
Searching...
No Matches
sfe_bmi330_sensor_data_t Struct Reference

Everything one burst read of the data block produces. More...

#include <sfDevBMI330.h>

Public Attributes

sfe_bmi330_data_t accel
 Acceleration in g. More...
 
sfe_bmi330_data_t gyro
 Angular rate in degrees per second. More...
 
sfe_bmi330_raw_data_t accelRaw
 Acceleration in raw counts. More...
 
sfe_bmi330_raw_data_t gyroRaw
 Angular rate in raw counts. More...
 
float temperature = 0.0f
 Die temperature in degrees Celsius. More...
 
uint32_t sensorTime = 0
 Sensor timestamp, 39.0625 us per LSB. More...
 

Detailed Description

Everything one burst read of the data block produces.

getSensorData() fills this from a single 9-word read of ACC_DATA_X (0x03) through SENSOR_TIME_1 (0x0B). One transaction, so the accelerometer, gyroscope, temperature and timestamp are all from the same instant - which is the whole point of reading them together rather than axis by axis.

Member Data Documentation

◆ accel

sfe_bmi330_data_t sfe_bmi330_sensor_data_t::accel

Acceleration in g.

◆ accelRaw

sfe_bmi330_raw_data_t sfe_bmi330_sensor_data_t::accelRaw

Acceleration in raw counts.

◆ gyro

sfe_bmi330_data_t sfe_bmi330_sensor_data_t::gyro

Angular rate in degrees per second.

◆ gyroRaw

sfe_bmi330_raw_data_t sfe_bmi330_sensor_data_t::gyroRaw

Angular rate in raw counts.

◆ sensorTime

uint32_t sfe_bmi330_sensor_data_t::sensorTime = 0

Sensor timestamp, 39.0625 us per LSB.

◆ temperature

float sfe_bmi330_sensor_data_t::temperature = 0.0f

Die temperature in degrees Celsius.


The documentation for this struct was generated from the following file: