Jared Baxter / Mbed 2 deprecated Impedance_Fast_Circuitry_print_V_I

Dependencies:   mbed-dsp mbed

Fork of Impedance_Fast_Circuitry by Jared Baxter

adc.h

Committer:
timmey9
Date:
2015-01-31
Revision:
45:d591d138cdeb
Parent:
42:52a92a8d2cc7
Child:
51:43143a3fc2d7

File content as of revision 45:d591d138cdeb:

#ifndef ADC_H_
#define ADC_H_

#include "mbed.h"
#include "dma.h"

/***
 * Sets ADC to continuous conversion mode with software trigger, then
 * triggers the ADC.
 **/
void adc_start();

/***
 * Sets ADC to single conversion mode with hardware trigger.  So the 
 * ADC stops unless triggered by a timer.
 **/
void adc_stop();

/***
 * Initializes the ADC to 16-bit single-ended CH13, hardware triggered
 * with DMA enabled.
 **/
void adc_init();

/***
 * Toggles PTC16 when conversion completes
 **/
void ADC0_IRQHandler();
void adc_single_sample();

#endif /* ADC_H_ */