|
PX4 Firmware
PX4 Autopilot Software http://px4.io
|
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 | |
| BMM150 * | g_dev_ext |
| BMM150 * | g_dev_int |
| 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().
| 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().
| 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().
| 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().
| 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().
| 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().
| BMM150* bmm150::g_dev_ext |
Definition at line 49 of file bmm150.cpp.