PX4 Firmware
PX4 Autopilot Software http://px4.io
lis3mdl_main.cpp File Reference

Driver for the LIS3MDL magnetometer connected via I2C or SPI. More...

#include "lis3mdl_main.h"
#include <px4_platform_common/getopt.h>
Include dependency graph for lis3mdl_main.cpp:

Go to the source code of this file.

Functions

__EXPORT int lis3mdl_main (int argc, char *argv[])
 Driver 'main' command. More...
 

Detailed Description

Driver for the LIS3MDL magnetometer connected via I2C or SPI.

Definition in file lis3mdl_main.cpp.

Function Documentation

◆ lis3mdl_main()

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

Driver 'main' command.

Definition at line 271 of file lis3mdl_main.cpp.

References lis3mdl::bus_options, lis3mdl::calibrate(), hmc5883::calibrate(), lis3mdl::info(), lis3mdl::init(), LIS3MDL_BUS_ALL, LIS3MDL_BUS_I2C_EXTERNAL, LIS3MDL_BUS_I2C_INTERNAL, LIS3MDL_BUS_SPI, NUM_BUS_OPTIONS, OK, lis3mdl::reset(), ROTATION_NONE, lis3mdl::start(), lis3mdl::stop(), lis3mdl::test(), and lis3mdl::usage().

Here is the call graph for this function: