PX4 Firmware
PX4 Autopilot Software http://px4.io
test_adc.c File Reference

Test for the analog to digital converter. More...

#include <px4_platform_common/time.h>
#include <px4_platform_common/px4_config.h>
#include <px4_platform_common/posix.h>
#include <px4_platform_common/log.h>
#include <sys/types.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include "tests_main.h"
#include <drivers/drv_adc.h>
Include dependency graph for test_adc.c:

Go to the source code of this file.

Functions

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

Detailed Description

Test for the analog to digital converter.

Definition in file test_adc.c.

Function Documentation

◆ test_adc()

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

Definition at line 56 of file test_adc.c.

References ADC0_DEVICE_PATH, data, fd, OK, px4_adc_msg_t, px4_close(), PX4_MAX_ADC_CHANNELS, px4_open(), and px4_read().

Here is the call graph for this function: