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

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

L3GD20g_dev
 

Detailed Description

Local functions in support of the shell command.

Function Documentation

◆ info()

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().

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

◆ regdump()

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().

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

◆ start()

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().

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

◆ test_error()

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().

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

◆ usage()

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().

Here is the caller graph for this function:

Variable Documentation

◆ g_dev

L3GD20* l3gd20::g_dev

Definition at line 760 of file l3gd20.cpp.

Referenced by start().