PX4 Firmware
PX4 Autopilot Software http://px4.io
|
Local functions in support of the shell command. More...
Functions | |
int | start (bool external_bus, enum Rotation rotation) |
Start the driver. More... | |
int | info () |
Print a little info about the driver. More... | |
int | stop () |
Stop the driver. More... | |
int | regdump () |
dump registers from device More... | |
int | usage () |
Prints info about the driver argument usage. More... | |
int | test_error () |
trigger an error More... | |
Variables | |
FXOS8701CQ * | g_dev {nullptr} |
Local functions in support of the shell command.
int fxos8701cq::info | ( | ) |
Print a little info about the driver.
Definition at line 111 of file fxos8701cq_main.cpp.
References g_dev, and FXOS8701CQ::print_info().
Referenced by fxos8701cq_main().
int fxos8701cq::regdump | ( | void | ) |
dump registers from device
Definition at line 141 of file fxos8701cq_main.cpp.
References g_dev, and FXOS8701CQ::print_registers().
Referenced by fxos8701cq_main().
int fxos8701cq::start | ( | bool | external_bus, |
enum Rotation | rotation | ||
) |
Start the driver.
This function call only returns once the driver is up and running or failed to detect the sensor.
Definition at line 66 of file fxos8701cq_main.cpp.
References g_dev, FXOS8701CQ::init(), and OK.
Referenced by fxos8701cq_main().
int fxos8701cq::stop | ( | ) |
Stop the driver.
Stop the driver.
Definition at line 124 of file fxos8701cq_main.cpp.
References g_dev.
Referenced by fxos8701cq_main().
int fxos8701cq::test_error | ( | void | ) |
trigger an error
Definition at line 158 of file fxos8701cq_main.cpp.
References g_dev, and FXOS8701CQ::test_error().
Referenced by fxos8701cq_main().
int fxos8701cq::usage | ( | void | ) |
Prints info about the driver argument usage.
Prints info about the driver argument usage.
Definition at line 171 of file fxos8701cq_main.cpp.
References fxos8701cq_main().
Referenced by fxos8701cq_main().
FXOS8701CQ* fxos8701cq::g_dev {nullptr} |
Definition at line 50 of file fxos8701cq_main.cpp.
Referenced by info(), regdump(), start(), stop(), and test_error().