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

Functions

void start (bool external_bus, enum Rotation rotation)
 Start the driver. More...
 
void test (bool)
 
void reset (bool)
 
void info (bool)
 
void regdump (bool external_bus)
 Dump the register information. More...
 
void usage ()
 Prints info about the driver argument usage. More...
 

Variables

BMM150g_dev_ext
 
BMM150g_dev_int
 

Function Documentation

◆ info()

void bmm150::info ( bool  external_bus)

Definition at line 205 of file bmm150.cpp.

References g_dev_ext, and g_dev_int.

Referenced by bmm150_main().

Here is the caller graph for this function:

◆ regdump()

void bmm150::regdump ( bool  external_bus)

Dump the register information.

Definition at line 225 of file bmm150.cpp.

References g_dev_ext, and g_dev_int.

Referenced by bmm150_main().

Here is the caller graph for this function:

◆ reset()

void bmm150::reset ( bool  external_bus)

Definition at line 180 of file bmm150.cpp.

References BMM150_DEVICE_PATH_MAG, BMM150_DEVICE_PATH_MAG_EXT, fd, SENSOR_POLLRATE_DEFAULT, SENSORIOCRESET, and SENSORIOCSPOLLRATE.

Referenced by bmm150_main().

Here is the caller graph for this function:

◆ start()

void bmm150::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 66 of file bmm150.cpp.

References BMM150_DEVICE_PATH_MAG, BMM150_DEVICE_PATH_MAG_EXT, fd, g_dev_ext, g_dev_int, OK, SENSOR_POLLRATE_DEFAULT, and SENSORIOCSPOLLRATE.

Referenced by bmm150_main().

Here is the caller graph for this function:

◆ test()

void bmm150::test ( bool  external_bus)

Definition at line 134 of file bmm150.cpp.

References BMM150_DEVICE_PATH_MAG, BMM150_DEVICE_PATH_MAG_EXT, fd, mag_report, read(), SENSOR_POLLRATE_DEFAULT, and SENSORIOCSPOLLRATE.

Referenced by bmm150_main().

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

◆ usage()

void bmm150::usage ( void  )

Prints info about the driver argument usage.

Prints info about the driver argument usage.

Definition at line 241 of file bmm150.cpp.

Referenced by bmm150_main().

Here is the caller graph for this function:

Variable Documentation

◆ g_dev_ext

BMM150* bmm150::g_dev_ext

Definition at line 49 of file bmm150.cpp.

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

◆ g_dev_int

BMM150* bmm150::g_dev_int

Definition at line 50 of file bmm150.cpp.

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