xyControl  0.1
Quadrotor Flight Controller on AVR Basis
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Groups
Enumerations | Functions
adc.h File Reference

Analog-to-Digital Converter API Header. More...

Go to the source code of this file.

Enumerations

enum  ADCRef { AREF, AVCC, AINT1, AINT2 }
 ADC Reference Voltage options. More...
 

Functions

void adcInit (ADCRef ref)
 Initialize the ADC Hardware. More...
 
void adcStart (uint8_t channel)
 Start a conversion on a given channel. More...
 
uint8_t adcReady (void)
 Check if a result is ready. More...
 
uint16_t adcGet (uint8_t next)
 Get the conversion results. More...
 
void adcClose (void)
 Disable the ADC to save energy. More...
 

Detailed Description

Analog-to-Digital Converter API Header.

Definition in file adc.h.