PX4 Firmware
PX4 Autopilot Software http://px4.io
bmi088 Namespace Reference

Functions

void start (bool external_bus, enum Rotation rotation, enum sensor_type sensor)
 Start the driver. More...
 
void stop (bool, enum sensor_type)
 
void info (bool external_bus, enum sensor_type sensor)
 Print a little info about the driver. More...
 
void regdump (bool external_bus, enum sensor_type sensor)
 Dump the register information. More...
 
void testerror (bool external_bus, enum sensor_type sensor)
 deliberately produce an error to test recovery More...
 
void usage ()
 Prints info about the driver argument usage. More...
 

Variables

BMI088_accelg_acc_dev_int
 
BMI088_accelg_acc_dev_ext
 
BMI088_gyrog_gyr_dev_int
 
BMI088_gyrog_gyr_dev_ext
 

Function Documentation

◆ info()

void bmi088::info ( bool  external_bus,
enum sensor_type  sensor 
)

Print a little info about the driver.

Definition at line 197 of file bmi088_main.cpp.

References BMI088_ACCEL, BMI088_GYRO, errx, g_acc_dev_ext, g_acc_dev_int, g_gyr_dev_ext, and g_gyr_dev_int.

Referenced by bmi088_main().

Here is the caller graph for this function:

◆ regdump()

void bmi088::regdump ( bool  external_bus,
enum sensor_type  sensor 
)

Dump the register information.

Definition at line 227 of file bmi088_main.cpp.

References BMI088_ACCEL, BMI088_GYRO, errx, g_acc_dev_ext, g_acc_dev_int, g_gyr_dev_ext, and g_gyr_dev_int.

Referenced by bmi088_main().

Here is the caller graph for this function:

◆ start()

void bmi088::start ( bool  external_bus,
enum Rotation  rotation,
enum sensor_type  sensor 
)

Start the driver.

This function only returns if the driver is up and running or failed to detect the sensor.

Definition at line 68 of file bmi088_main.cpp.

References BMI088_ACCEL, BMI088_DEVICE_PATH_ACCEL, BMI088_DEVICE_PATH_ACCEL_EXT, BMI088_DEVICE_PATH_GYRO, BMI088_DEVICE_PATH_GYRO_EXT, BMI088_GYRO, errx, g_acc_dev_ext, g_acc_dev_int, g_gyr_dev_ext, g_gyr_dev_int, and OK.

Referenced by bmi088_main().

Here is the caller graph for this function:

◆ stop()

void bmi088::stop ( bool  external_bus,
enum sensor_type  sensor 
)

Definition at line 162 of file bmi088_main.cpp.

References BMI088_ACCEL, BMI088_GYRO, g_acc_dev_ext, g_acc_dev_int, g_gyr_dev_ext, g_gyr_dev_int, and warnx.

Referenced by bmi088_main().

Here is the caller graph for this function:

◆ testerror()

void bmi088::testerror ( bool  external_bus,
enum sensor_type  sensor 
)

deliberately produce an error to test recovery

Definition at line 257 of file bmi088_main.cpp.

References BMI088_ACCEL, BMI088_GYRO, errx, g_acc_dev_ext, g_acc_dev_int, g_gyr_dev_ext, and g_gyr_dev_int.

Referenced by bmi088_main().

Here is the caller graph for this function:

◆ usage()

void bmi088::usage ( void  )

Prints info about the driver argument usage.

Prints info about the driver argument usage.

Definition at line 282 of file bmi088_main.cpp.

References warnx.

Referenced by bmi088_main().

Here is the caller graph for this function:

Variable Documentation

◆ g_acc_dev_ext

BMI088_accel* bmi088::g_acc_dev_ext

Definition at line 50 of file bmi088_main.cpp.

Referenced by info(), regdump(), start(), stop(), and testerror().

◆ g_acc_dev_int

BMI088_accel* bmi088::g_acc_dev_int

Definition at line 49 of file bmi088_main.cpp.

Referenced by info(), regdump(), start(), stop(), and testerror().

◆ g_gyr_dev_ext

BMI088_gyro* bmi088::g_gyr_dev_ext

Definition at line 52 of file bmi088_main.cpp.

Referenced by info(), regdump(), start(), stop(), and testerror().

◆ g_gyr_dev_int

BMI088_gyro* bmi088::g_gyr_dev_int

Definition at line 51 of file bmi088_main.cpp.

Referenced by info(), regdump(), start(), stop(), and testerror().