You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
341 B
24 lines
341 B
/** @file adc.h
|
|
@author M. P. Hayes, UCECE
|
|
@date 23 April 2013
|
|
@brief Simple ADC using a comparator and RC network.
|
|
*/
|
|
|
|
#ifndef ADC_H
|
|
#define ADC_H
|
|
|
|
#include "system.h"
|
|
|
|
void adc_init(void);
|
|
|
|
void adc_enable(uint8_t adc_channel);
|
|
|
|
void adc_disable(uint8_t adc_channel);
|
|
|
|
uint8_t adc_measure(uint8_t adc_channel);
|
|
|
|
|
|
#endif
|
|
|
|
|