44 #include <sys/ioctl.h> 52 #define PX4_MAX_ADC_CHANNELS 12 59 #define ADC0_DEVICE_PATH "/dev/adc0"
void px4_arch_adc_uninit(uint32_t base_address)
Uninitialize ADC hardware.
uint32_t px4_arch_adc_dn_fullcount(void)
Get the adc digital number full count.
uint32_t px4_arch_adc_sample(uint32_t base_address, unsigned channel)
Read a sample from the ADC.
__BEGIN_DECLS int px4_arch_adc_init(uint32_t base_address)
Initialize ADC hardware.
struct __attribute__((packed)) px4_adc_msg_t
uint32_t px4_arch_adc_temp_sensor_mask(void)
Get the temperature sensor channel bitmask.