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

Classes

struct  mpu9250_bus_option
 

Functions

static struct mpu9250_bus_optionfind_bus (MPU9250_BUS busid)
 
static bool start_bus (mpu9250_bus_option &bus, enum Rotation rotation)
 
static int start (MPU9250_BUS busid, enum Rotation rotation)
 
static int stop (MPU9250_BUS busid)
 
static int status (MPU9250_BUS busid)
 
static int usage ()
 

Variables

struct mpu9250::mpu9250_bus_option bus_options []
 

Function Documentation

◆ find_bus()

static struct mpu9250_bus_option* mpu9250::find_bus ( MPU9250_BUS  busid)
static

Definition at line 86 of file mpu9250_main.cpp.

References ALL, and bus_options.

Referenced by status(), and stop().

Here is the caller graph for this function:

◆ start()

static int mpu9250::start ( MPU9250_BUS  busid,
enum Rotation  rotation 
)
static

Definition at line 135 of file mpu9250_main.cpp.

References ALL, bus_options, and start_bus().

Referenced by mpu9250_main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ start_bus()

static bool mpu9250::start_bus ( mpu9250_bus_option bus,
enum Rotation  rotation 
)
static

Definition at line 99 of file mpu9250_main.cpp.

References AK8963_I2C_interface(), I2C_EXTERNAL, I2C_INTERNAL, and MPU9250::init().

Referenced by start().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ status()

static int mpu9250::status ( MPU9250_BUS  busid)
static

Definition at line 173 of file mpu9250_main.cpp.

References mpu9250::mpu9250_bus_option::dev, find_bus(), and MPU9250::print_info().

Referenced by mpu9250_main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ stop()

static int mpu9250::stop ( MPU9250_BUS  busid)
static

Definition at line 157 of file mpu9250_main.cpp.

References mpu9250::mpu9250_bus_option::dev, and find_bus().

Referenced by mpu9250_main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ usage()

static int mpu9250::usage ( void  )
static

Definition at line 186 of file mpu9250_main.cpp.

Referenced by mpu9250_main().

Here is the caller graph for this function:

Variable Documentation

◆ bus_options

struct mpu9250::mpu9250_bus_option mpu9250::bus_options[]
Initial value:
= {
}

Referenced by find_bus(), and start().