Paparazzi UAS
v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
|
Driver for the analog to digital converters in Linux based systems. More...
Go to the source code of this file.
Data Structures | |
struct | adc_t |
Functions | |
void | adc_enable (struct adc_t *adc, uint8_t value) |
Start or stop the ADC readings. More... | |
int | adc_read (struct adc_t *adc, uint16_t *buf, uint16_t size) |
Read the ADC buffer from the driver. More... | |
Driver for the analog to digital converters in Linux based systems.
Definition in file adc_arch.h.
struct adc_t |
Start or stop the ADC readings.
[in] | *adc | The ADC to start the readings for |
[in] | value | 1 to enable and 0 to disable |
Definition at line 101 of file adc_arch.c.
References adc_t::dev_id, and write_sysfs_int().
Referenced by sonar_bebop_read().
Read the ADC buffer from the driver.
[in] | *adc | The adc you want to read from |
[out] | *buf | Output values |
[in] | size | The amount of bytes you want to read |
Definition at line 113 of file adc_arch.c.
References adc_t::dev_id, and fd.
Referenced by sonar_bebop_read().