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

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

Functions

void start (bool external_bus, enum Rotation rotation, unsigned range)
 Start the driver. More...
 
void info ()
 Print a little info about the driver. More...
 
void usage ()
 Prints info about the driver argument usage. More...
 

Variables

LSM303Dg_dev
 

Detailed Description

Local functions in support of the shell command.

Function Documentation

◆ info()

void lsm303d::info ( )

Print a little info about the driver.

Definition at line 104 of file lsm303d_main.cpp.

References errx, and LSM303D::print_info().

Referenced by lsm303d_main().

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

◆ start()

void lsm303d::start ( bool  external_bus,
enum Rotation  rotation,
unsigned  range 
)

Start the driver.

This function call only returns once the driver is up and running or failed to detect the sensor.

Definition at line 62 of file lsm303d_main.cpp.

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

Referenced by lsm303d_main().

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

◆ usage()

void lsm303d::usage ( void  )

Prints info about the driver argument usage.

Prints info about the driver argument usage.

Definition at line 117 of file lsm303d_main.cpp.

Referenced by lsm303d_main().

Here is the caller graph for this function:

Variable Documentation

◆ g_dev

LSM303D* lsm303d::g_dev

Definition at line 49 of file lsm303d_main.cpp.

Referenced by start().