Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of Impedance_Fast_Circuitry by
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_ */