Paparazzi UAS  v6.2_unstable
Paparazzi is a free software Unmanned Aircraft System.
imu_bmi088_i2c.h File Reference
#include "std.h"
#include "generated/airframe.h"
#include "modules/imu/imu.h"
#include "peripherals/bmi088_i2c.h"
+ Include dependency graph for imu_bmi088_i2c.h:

Go to the source code of this file.

Data Structures

struct  ImuBmi088
 

Macros

#define IMU_BMI088_GYRO_RANGE   BMI088_GYRO_RANGE_1000
 
#define IMU_BMI088_ACCEL_RANGE   BMI088_ACCEL_RANGE_6G
 
#define IMU_GYRO_P_SENS   BMI088_GYRO_SENS[IMU_BMI088_GYRO_RANGE]
 
#define IMU_GYRO_P_SENS_NUM   BMI088_GYRO_SENS_FRAC[IMU_BMI088_GYRO_RANGE][0]
 
#define IMU_GYRO_P_SENS_DEN   BMI088_GYRO_SENS_FRAC[IMU_BMI088_GYRO_RANGE][1]
 
#define IMU_GYRO_Q_SENS   BMI088_GYRO_SENS[IMU_BMI088_GYRO_RANGE]
 
#define IMU_GYRO_Q_SENS_NUM   BMI088_GYRO_SENS_FRAC[IMU_BMI088_GYRO_RANGE][0]
 
#define IMU_GYRO_Q_SENS_DEN   BMI088_GYRO_SENS_FRAC[IMU_BMI088_GYRO_RANGE][1]
 
#define IMU_GYRO_R_SENS   BMI088_GYRO_SENS[IMU_BMI088_GYRO_RANGE]
 
#define IMU_GYRO_R_SENS_NUM   BMI088_GYRO_SENS_FRAC[IMU_BMI088_GYRO_RANGE][0]
 
#define IMU_GYRO_R_SENS_DEN   BMI088_GYRO_SENS_FRAC[IMU_BMI088_GYRO_RANGE][1]
 
#define IMU_ACCEL_X_SENS   BMI088_ACCEL_SENS[IMU_BMI088_ACCEL_RANGE]
 
#define IMU_ACCEL_X_SENS_NUM   BMI088_ACCEL_SENS_FRAC[IMU_BMI088_ACCEL_RANGE][0]
 
#define IMU_ACCEL_X_SENS_DEN   BMI088_ACCEL_SENS_FRAC[IMU_BMI088_ACCEL_RANGE][1]
 
#define IMU_ACCEL_Y_SENS   BMI088_ACCEL_SENS[IMU_BMI088_ACCEL_RANGE]
 
#define IMU_ACCEL_Y_SENS_NUM   BMI088_ACCEL_SENS_FRAC[IMU_BMI088_ACCEL_RANGE][0]
 
#define IMU_ACCEL_Y_SENS_DEN   BMI088_ACCEL_SENS_FRAC[IMU_BMI088_ACCEL_RANGE][1]
 
#define IMU_ACCEL_Z_SENS   BMI088_ACCEL_SENS[IMU_BMI088_ACCEL_RANGE]
 
#define IMU_ACCEL_Z_SENS_NUM   BMI088_ACCEL_SENS_FRAC[IMU_BMI088_ACCEL_RANGE][0]
 
#define IMU_ACCEL_Z_SENS_DEN   BMI088_ACCEL_SENS_FRAC[IMU_BMI088_ACCEL_RANGE][1]
 

Functions

void imu_bmi088_init (void)
 
void imu_bmi088_periodic (void)
 
void imu_bmi088_event (void)
 

Variables

struct ImuBmi088 imu_bmi088
 

Detailed Description

IMU driver for the BMI088 using I2C

Definition in file imu_bmi088_i2c.h.


Data Structure Documentation

◆ ImuBmi088

struct ImuBmi088

Definition at line 73 of file imu_bmi088_i2c.h.

+ Collaboration diagram for ImuBmi088:
Data Fields
struct Bmi088_I2c bmi

Macro Definition Documentation

◆ IMU_ACCEL_X_SENS

#define IMU_ACCEL_X_SENS   BMI088_ACCEL_SENS[IMU_BMI088_ACCEL_RANGE]

Definition at line 61 of file imu_bmi088_i2c.h.

◆ IMU_ACCEL_X_SENS_DEN

#define IMU_ACCEL_X_SENS_DEN   BMI088_ACCEL_SENS_FRAC[IMU_BMI088_ACCEL_RANGE][1]

Definition at line 63 of file imu_bmi088_i2c.h.

◆ IMU_ACCEL_X_SENS_NUM

#define IMU_ACCEL_X_SENS_NUM   BMI088_ACCEL_SENS_FRAC[IMU_BMI088_ACCEL_RANGE][0]

Definition at line 62 of file imu_bmi088_i2c.h.

◆ IMU_ACCEL_Y_SENS

#define IMU_ACCEL_Y_SENS   BMI088_ACCEL_SENS[IMU_BMI088_ACCEL_RANGE]

Definition at line 64 of file imu_bmi088_i2c.h.

◆ IMU_ACCEL_Y_SENS_DEN

#define IMU_ACCEL_Y_SENS_DEN   BMI088_ACCEL_SENS_FRAC[IMU_BMI088_ACCEL_RANGE][1]

Definition at line 66 of file imu_bmi088_i2c.h.

◆ IMU_ACCEL_Y_SENS_NUM

#define IMU_ACCEL_Y_SENS_NUM   BMI088_ACCEL_SENS_FRAC[IMU_BMI088_ACCEL_RANGE][0]

Definition at line 65 of file imu_bmi088_i2c.h.

◆ IMU_ACCEL_Z_SENS

#define IMU_ACCEL_Z_SENS   BMI088_ACCEL_SENS[IMU_BMI088_ACCEL_RANGE]

Definition at line 67 of file imu_bmi088_i2c.h.

◆ IMU_ACCEL_Z_SENS_DEN

#define IMU_ACCEL_Z_SENS_DEN   BMI088_ACCEL_SENS_FRAC[IMU_BMI088_ACCEL_RANGE][1]

Definition at line 69 of file imu_bmi088_i2c.h.

◆ IMU_ACCEL_Z_SENS_NUM

#define IMU_ACCEL_Z_SENS_NUM   BMI088_ACCEL_SENS_FRAC[IMU_BMI088_ACCEL_RANGE][0]

Definition at line 68 of file imu_bmi088_i2c.h.

◆ IMU_BMI088_ACCEL_RANGE

#define IMU_BMI088_ACCEL_RANGE   BMI088_ACCEL_RANGE_6G

Definition at line 43 of file imu_bmi088_i2c.h.

◆ IMU_BMI088_GYRO_RANGE

#define IMU_BMI088_GYRO_RANGE   BMI088_GYRO_RANGE_1000

Definition at line 39 of file imu_bmi088_i2c.h.

◆ IMU_GYRO_P_SENS

#define IMU_GYRO_P_SENS   BMI088_GYRO_SENS[IMU_BMI088_GYRO_RANGE]

Definition at line 48 of file imu_bmi088_i2c.h.

◆ IMU_GYRO_P_SENS_DEN

#define IMU_GYRO_P_SENS_DEN   BMI088_GYRO_SENS_FRAC[IMU_BMI088_GYRO_RANGE][1]

Definition at line 50 of file imu_bmi088_i2c.h.

◆ IMU_GYRO_P_SENS_NUM

#define IMU_GYRO_P_SENS_NUM   BMI088_GYRO_SENS_FRAC[IMU_BMI088_GYRO_RANGE][0]

Definition at line 49 of file imu_bmi088_i2c.h.

◆ IMU_GYRO_Q_SENS

#define IMU_GYRO_Q_SENS   BMI088_GYRO_SENS[IMU_BMI088_GYRO_RANGE]

Definition at line 51 of file imu_bmi088_i2c.h.

◆ IMU_GYRO_Q_SENS_DEN

#define IMU_GYRO_Q_SENS_DEN   BMI088_GYRO_SENS_FRAC[IMU_BMI088_GYRO_RANGE][1]

Definition at line 53 of file imu_bmi088_i2c.h.

◆ IMU_GYRO_Q_SENS_NUM

#define IMU_GYRO_Q_SENS_NUM   BMI088_GYRO_SENS_FRAC[IMU_BMI088_GYRO_RANGE][0]

Definition at line 52 of file imu_bmi088_i2c.h.

◆ IMU_GYRO_R_SENS

#define IMU_GYRO_R_SENS   BMI088_GYRO_SENS[IMU_BMI088_GYRO_RANGE]

Definition at line 54 of file imu_bmi088_i2c.h.

◆ IMU_GYRO_R_SENS_DEN

#define IMU_GYRO_R_SENS_DEN   BMI088_GYRO_SENS_FRAC[IMU_BMI088_GYRO_RANGE][1]

Definition at line 56 of file imu_bmi088_i2c.h.

◆ IMU_GYRO_R_SENS_NUM

#define IMU_GYRO_R_SENS_NUM   BMI088_GYRO_SENS_FRAC[IMU_BMI088_GYRO_RANGE][0]

Definition at line 55 of file imu_bmi088_i2c.h.

Function Documentation

◆ imu_bmi088_event()

◆ imu_bmi088_init()

◆ imu_bmi088_periodic()

void imu_bmi088_periodic ( void  )

Definition at line 103 of file imu_bmi088_i2c.c.

References ImuBmi088::bmi, bmi088_i2c_periodic(), and imu_bmi088.

+ Here is the call graph for this function:

Variable Documentation

◆ imu_bmi088

struct ImuBmi088 imu_bmi088

Definition at line 89 of file imu_bmi088_i2c.c.

Referenced by imu_bmi088_event(), imu_bmi088_init(), and imu_bmi088_periodic().