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

Local functions in support of the shell command. More...

Functions

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

Variables

BMI160g_dev_int
 
BMI160g_dev_ext
 

Detailed Description

Local functions in support of the shell command.

Function Documentation

◆ info()

void bmi160::info ( bool  external_bus)

Print a little info about the driver.

Definition at line 129 of file bmi160_main.cpp.

References errx, g_dev_ext, and g_dev_int.

Referenced by bmi160_main().

Here is the caller graph for this function:

◆ regdump()

void bmi160::regdump ( bool  external_bus)

Dump the register information.

Definition at line 147 of file bmi160_main.cpp.

References errx, g_dev_ext, and g_dev_int.

Referenced by bmi160_main().

Here is the caller graph for this function:

◆ start()

void bmi160::start ( bool  external_bus,
enum Rotation  rotation 
)

Start the driver.

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

Definition at line 63 of file bmi160_main.cpp.

References errx, g_dev_ext, g_dev_int, and OK.

Referenced by bmi160_main().

Here is the caller graph for this function:

◆ stop()

void bmi160::stop ( bool  external_bus)

Definition at line 109 of file bmi160_main.cpp.

References g_dev_ext, g_dev_int, and warnx.

Referenced by bmi160_main().

Here is the caller graph for this function:

◆ testerror()

void bmi160::testerror ( bool  external_bus)

deliberately produce an error to test recovery

Definition at line 166 of file bmi160_main.cpp.

References errx, g_dev_ext, and g_dev_int.

Referenced by bmi160_main().

Here is the caller graph for this function:

◆ usage()

void bmi160::usage ( void  )

Prints info about the driver argument usage.

Prints info about the driver argument usage.

Definition at line 180 of file bmi160_main.cpp.

References warnx.

Referenced by bmi160_main().

Here is the caller graph for this function:

Variable Documentation

◆ g_dev_ext

BMI160* bmi160::g_dev_ext

Definition at line 46 of file bmi160_main.cpp.

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

◆ g_dev_int

BMI160* bmi160::g_dev_int

Definition at line 45 of file bmi160_main.cpp.

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