PX4 Firmware
PX4 Autopilot Software http://px4.io
bmi055 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

BMI055_accelg_acc_dev_int
 
BMI055_accelg_acc_dev_ext
 
BMI055_gyrog_gyr_dev_int
 
BMI055_gyrog_gyr_dev_ext
 

Function Documentation

◆ info()

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

Print a little info about the driver.

Definition at line 196 of file bmi055_main.cpp.

References BMI055_ACCEL, BMI055_GYRO, errx, g_acc_dev_ext, g_acc_dev_int, g_gyr_dev_ext, and g_gyr_dev_int.

Referenced by bmi055_main().

Here is the caller graph for this function:

◆ regdump()

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

Dump the register information.

Definition at line 226 of file bmi055_main.cpp.

References BMI055_ACCEL, BMI055_GYRO, errx, g_acc_dev_ext, g_acc_dev_int, g_gyr_dev_ext, and g_gyr_dev_int.

Referenced by bmi055_main().

Here is the caller graph for this function:

◆ start()

void bmi055::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 bmi055_main.cpp.

References BMI055_ACCEL, BMI055_DEVICE_PATH_ACCEL, BMI055_DEVICE_PATH_ACCEL_EXT, BMI055_DEVICE_PATH_GYRO, BMI055_DEVICE_PATH_GYRO_EXT, BMI055_GYRO, errx, g_acc_dev_ext, g_acc_dev_int, g_gyr_dev_ext, g_gyr_dev_int, and OK.

Referenced by bmi055_main().

Here is the caller graph for this function:

◆ stop()

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

Definition at line 161 of file bmi055_main.cpp.

References BMI055_ACCEL, BMI055_GYRO, g_acc_dev_ext, g_acc_dev_int, g_gyr_dev_ext, g_gyr_dev_int, and warnx.

Referenced by bmi055_main().

Here is the caller graph for this function:

◆ testerror()

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

deliberately produce an error to test recovery

Definition at line 256 of file bmi055_main.cpp.

References BMI055_ACCEL, BMI055_GYRO, errx, g_acc_dev_ext, g_acc_dev_int, g_gyr_dev_ext, and g_gyr_dev_int.

Referenced by bmi055_main().

Here is the caller graph for this function:

◆ usage()

void bmi055::usage ( void  )

Prints info about the driver argument usage.

Prints info about the driver argument usage.

Definition at line 281 of file bmi055_main.cpp.

References warnx.

Referenced by bmi055_main().

Here is the caller graph for this function:

Variable Documentation

◆ g_acc_dev_ext

BMI055_accel* bmi055::g_acc_dev_ext

Definition at line 50 of file bmi055_main.cpp.

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

◆ g_acc_dev_int

BMI055_accel* bmi055::g_acc_dev_int

Definition at line 49 of file bmi055_main.cpp.

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

◆ g_gyr_dev_ext

BMI055_gyro* bmi055::g_gyr_dev_ext

Definition at line 52 of file bmi055_main.cpp.

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

◆ g_gyr_dev_int

BMI055_gyro* bmi055::g_gyr_dev_int

Definition at line 51 of file bmi055_main.cpp.

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