PX4 Firmware
PX4 Autopilot Software http://px4.io
|
#include <stdint.h>
#include <sys/ioctl.h>
Go to the source code of this file.
Macros | |
#define | PX4_MAX_ADC_CHANNELS 12 |
#define | ADC0_DEVICE_PATH "/dev/adc0" |
Functions | |
struct | __attribute__ ((packed)) px4_adc_msg_t |
__BEGIN_DECLS int | px4_arch_adc_init (uint32_t base_address) |
Initialize ADC hardware. More... | |
void | px4_arch_adc_uninit (uint32_t base_address) |
Uninitialize ADC hardware. More... | |
uint32_t | px4_arch_adc_sample (uint32_t base_address, unsigned channel) |
Read a sample from the ADC. More... | |
uint32_t | px4_arch_adc_temp_sensor_mask (void) |
Get the temperature sensor channel bitmask. More... | |
uint32_t | px4_arch_adc_dn_fullcount (void) |
Get the adc digital number full count. More... | |
Variables | |
px4_adc_msg_t | |
#define ADC0_DEVICE_PATH "/dev/adc0" |
Definition at line 59 of file drv_adc.h.
Referenced by BatteryStatus::adc_init(), Sensors::adc_init(), ADC::sample(), test_adc(), and test_jig_voltages().
#define PX4_MAX_ADC_CHANNELS 12 |
Definition at line 52 of file drv_adc.h.
Referenced by ADC::ADC(), BatteryStatus::adc_poll(), Sensors::adc_poll(), test_adc(), and test_jig_voltages().
uint32_t px4_arch_adc_dn_fullcount | ( | void | ) |
Get the adc digital number full count.
Referenced by ADC::update_adc_report(), battery_status::update_parameters(), and ADC::update_system_power().
__BEGIN_DECLS int px4_arch_adc_init | ( | uint32_t | base_address | ) |
Initialize ADC hardware.
base_address | architecture-specific address to specify the ADC |
Referenced by ADC::init().
uint32_t px4_arch_adc_sample | ( | uint32_t | base_address, |
unsigned | channel | ||
) |
Read a sample from the ADC.
base_address | architecture-specific address to specify the ADC |
channel | specify the channel |
Referenced by ADC::sample().
uint32_t px4_arch_adc_temp_sensor_mask | ( | void | ) |
Get the temperature sensor channel bitmask.
Referenced by ADC::ADC().
void px4_arch_adc_uninit | ( | uint32_t | base_address | ) |
Uninitialize ADC hardware.
base_address | architecture-specific address to specify the ADC |
Referenced by ADC::~ADC().
px4_adc_msg_t |
Definition at line 56 of file drv_adc.h.
Referenced by ADC::ADC(), BatteryStatus::adc_poll(), Sensors::adc_poll(), ADC::read(), ADC::sample(), test_adc(), and test_jig_voltages().