PX4 Firmware
PX4 Autopilot Software http://px4.io
|
Local functions in support of the shell command. More...
Functions | |
void | usage () |
Prints info about the driver argument usage. More... | |
void | start (bool external_bus, enum Rotation rotation) |
Start the driver. More... | |
void | info () |
Print a little info about the driver. More... | |
void | regdump (void) |
Dump the register information. More... | |
void | test_error (void) |
trigger an error More... | |
Variables | |
L3GD20 * | g_dev |
Local functions in support of the shell command.
void l3gd20::info | ( | ) |
Print a little info about the driver.
Definition at line 816 of file l3gd20.cpp.
References errx, and L3GD20::print_info().
Referenced by l3gd20_main().
void l3gd20::regdump | ( | void | ) |
Dump the register information.
Definition at line 832 of file l3gd20.cpp.
References errx, and L3GD20::print_registers().
Referenced by l3gd20_main().
void l3gd20::start | ( | bool | external_bus, |
enum Rotation | rotation | ||
) |
Start the driver.
This function call only returns once the driver started or failed to detect the sensor.
Definition at line 775 of file l3gd20.cpp.
References errx, g_dev, L3GD20::init(), L3GD20::L3GD20(), L3GD20_DEVICE_PATH, and OK.
Referenced by l3gd20_main().
void l3gd20::test_error | ( | void | ) |
trigger an error
Definition at line 848 of file l3gd20.cpp.
References errx, and L3GD20::test_error().
Referenced by l3gd20_main().
void l3gd20::usage | ( | void | ) |
Prints info about the driver argument usage.
Prints info about the driver argument usage.
Definition at line 861 of file l3gd20.cpp.
References warnx.
Referenced by l3gd20_main().
L3GD20* l3gd20::g_dev |
Definition at line 760 of file l3gd20.cpp.
Referenced by start().