Jared's DAC Code
Dependencies: mbed
Fork of Chemical_Sensor_DMA by
Sample/adc.h@2:3771b3195c7b, 2015-10-29 (annotated)
- Committer:
- baxterja
- Date:
- Thu Oct 29 17:15:20 2015 +0000
- Revision:
- 2:3771b3195c7b
- Child:
- 7:af255a90505e
Accessible Sample folder
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
baxterja | 2:3771b3195c7b | 1 | #ifndef ADC_H_ |
baxterja | 2:3771b3195c7b | 2 | #define ADC_H_ |
baxterja | 2:3771b3195c7b | 3 | |
baxterja | 2:3771b3195c7b | 4 | #include "mbed.h" |
baxterja | 2:3771b3195c7b | 5 | #include "dma.h" |
baxterja | 2:3771b3195c7b | 6 | |
baxterja | 2:3771b3195c7b | 7 | |
baxterja | 2:3771b3195c7b | 8 | /*** |
baxterja | 2:3771b3195c7b | 9 | * Initializes the ADC to 16-bit single-ended, hardware triggered |
baxterja | 2:3771b3195c7b | 10 | * with DMA enabled. |
baxterja | 2:3771b3195c7b | 11 | **/ |
baxterja | 2:3771b3195c7b | 12 | void adc_init(); |
baxterja | 2:3771b3195c7b | 13 | int adc_cal(void); |
baxterja | 2:3771b3195c7b | 14 | //void adc_single_sample(); |
baxterja | 2:3771b3195c7b | 15 | //void adc_start(); |
baxterja | 2:3771b3195c7b | 16 | //void adc_stop(); |
baxterja | 2:3771b3195c7b | 17 | |
baxterja | 2:3771b3195c7b | 18 | #endif /* ADC_H_ */ |