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

Simple tool to scan an I2C bus. More...

#include <px4_platform_common/px4_config.h>
#include <px4_platform_common/log.h>
#include <px4_platform_common/module.h>
#include <px4_platform_common/getopt.h>
#include <px4_platform_common/i2c.h>
Include dependency graph for i2cdetect.cpp:

Go to the source code of this file.

Namespaces

 i2cdetect
 

Functions

int i2cdetect::detect (int bus)
 
int i2cdetect::usage (const char *reason=nullptr)
 Print the correct usage. More...
 
__EXPORT int i2cdetect_main (int argc, char *argv[])
 

Detailed Description

Simple tool to scan an I2C bus.

Definition in file i2cdetect.cpp.

Function Documentation

◆ i2cdetect_main()

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

Definition at line 150 of file i2cdetect.cpp.

References i2cdetect::detect(), and i2cdetect::usage().

Referenced by i2cdetect::usage().

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