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

Local functions in support of the shell command. More...

Functions

void start (bool external_bus, enum Rotation rotation)
 Start the driver. More...
 
void info ()
 Print a little info about the driver. More...
 
void regdump ()
 dump registers from device More...
 
void usage ()
 Prints info about the driver argument usage. More...
 
void test_error ()
 trigger an error More...
 

Variables

FXAS21002Cg_dev
 

Detailed Description

Local functions in support of the shell command.

Function Documentation

◆ info()

void fxas21002c::info ( )

Print a little info about the driver.

Definition at line 103 of file fxas21002c_main.cpp.

References FXAS21002C::print_info().

Referenced by fxas21002c_main().

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

◆ regdump()

void fxas21002c::regdump ( void  )

dump registers from device

Definition at line 120 of file fxas21002c_main.cpp.

References FXAS21002C::print_registers().

Referenced by fxas21002c_main().

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

◆ start()

void fxas21002c::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 59 of file fxas21002c_main.cpp.

References errx, g_dev, FXAS21002C::init(), and OK.

Referenced by fxas21002c_main().

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

◆ test_error()

void fxas21002c::test_error ( void  )

trigger an error

Definition at line 137 of file fxas21002c_main.cpp.

References FXAS21002C::test_error().

Referenced by fxas21002c_main().

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

◆ usage()

void fxas21002c::usage ( void  )

Prints info about the driver argument usage.

Prints info about the driver argument usage.

Definition at line 150 of file fxas21002c_main.cpp.

Referenced by fxas21002c_main().

Here is the caller graph for this function:

Variable Documentation

◆ g_dev

FXAS21002C* fxas21002c::g_dev

Definition at line 44 of file fxas21002c_main.cpp.

Referenced by start().