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

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

Functions

void start ()
 Start the driver. More...
 
void test ()
 Perform some basic functional tests on the driver; make sure we can collect data from the sensor in polled and automatic modes. More...
 
void reset ()
 Reset the driver. More...
 
void info ()
 Print a little info about the driver. More...
 

Variables

BMA180g_dev
 

Detailed Description

Local functions in support of the shell command.

Function Documentation

◆ info()

void bma180::info ( )

Print a little info about the driver.

Definition at line 805 of file bma180.cpp.

References errx, and BMA180::print_info().

Referenced by bma180_main().

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

◆ reset()

void bma180::reset ( )

Reset the driver.

Definition at line 782 of file bma180.cpp.

References ACCEL_DEVICE_PATH, err, fd, BMA180::ioctl(), SENSOR_POLLRATE_DEFAULT, SENSORIOCRESET, and SENSORIOCSPOLLRATE.

Referenced by bma180_main(), and test().

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

◆ start()

void bma180::start ( )

Start the driver.

Attempt to start driver on all available I2C busses.

Definition at line 703 of file bma180.cpp.

References ACCEL_DEVICE_PATH, BMA180::BMA180(), errx, fd, g_dev, BMA180::init(), BMA180::ioctl(), OK, SENSOR_POLLRATE_DEFAULT, and SENSORIOCSPOLLRATE.

Referenced by bma180_main().

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

◆ test()

void bma180::test ( )

Perform some basic functional tests on the driver; make sure we can collect data from the sensor in polled and automatic modes.

Definition at line 750 of file bma180.cpp.

References ACCEL_DEVICE_PATH, err, errx, fd, BMA180::read(), and reset().

Referenced by bma180_main().

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

Variable Documentation

◆ g_dev

BMA180* bma180::g_dev

Definition at line 692 of file bma180.cpp.

Referenced by start().