PX4 Firmware
PX4 Autopilot Software http://px4.io
lsm303agr_main.cpp File Reference
#include "LSM303AGR.hpp"
#include <px4_platform_common/px4_config.h>
#include <px4_platform_common/defines.h>
#include <px4_platform_common/getopt.h>
Include dependency graph for lsm303agr_main.cpp:

Go to the source code of this file.

Namespaces

 lsm303agr
 Local functions in support of the shell command.
 

Macros

#define LSM303AGR_DEVICE_PATH_MAG   "/dev/lsm303agr_mag"
 

Functions

__EXPORT int lsm303agr_main (int argc, char *argv[])
 
void lsm303agr::start (enum Rotation rotation)
 Start the driver. More...
 
void lsm303agr::info ()
 Print a little info about the driver. More...
 
void lsm303agr::usage ()
 Prints info about the driver argument usage. More...
 

Variables

LSM303AGRlsm303agr::g_dev
 

Macro Definition Documentation

◆ LSM303AGR_DEVICE_PATH_MAG

#define LSM303AGR_DEVICE_PATH_MAG   "/dev/lsm303agr_mag"

Definition at line 40 of file lsm303agr_main.cpp.

Referenced by lsm303agr::start().

Function Documentation

◆ lsm303agr_main()

int lsm303agr_main ( int  argc,
char *  argv[] 
)

Definition at line 137 of file lsm303agr_main.cpp.

References errx, lsm303agr::info(), ROTATION_NONE, lsm303agr::start(), and lsm303agr::usage().

Here is the call graph for this function: