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

Driver for an ADC. More...

#include <stdint.h>
#include <drivers/drv_adc.h>
#include <drivers/drv_hrt.h>
#include <lib/cdev/CDev.hpp>
#include <lib/perf/perf_counter.h>
#include <px4_arch/adc.h>
#include <px4_platform_common/px4_config.h>
#include <px4_platform_common/log.h>
#include <px4_platform_common/px4_work_queue/ScheduledWorkItem.hpp>
#include <uORB/Publication.hpp>
#include <uORB/topics/adc_report.h>
#include <uORB/topics/system_power.h>
Include dependency graph for adc.cpp:

Go to the source code of this file.

Classes

class  ADC
 

Macros

#define ADC_TOTAL_CHANNELS   32
 

Functions

__EXPORT int adc_main (int argc, char *argv[])
 

Detailed Description

Driver for an ADC.

Definition in file adc.cpp.

Macro Definition Documentation

◆ ADC_TOTAL_CHANNELS

#define ADC_TOTAL_CHANNELS   32

Definition at line 60 of file adc.cpp.

Referenced by ADC::ADC(), and ADC::sample().

Function Documentation

◆ adc_main()

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

Definition at line 385 of file adc.cpp.

References ADC::ADC(), OK, and lps25h::test().

Referenced by ADC::sample().

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