20 lines
332 B
C
20 lines
332 B
C
/*
|
|
* adc.h
|
|
*
|
|
* Created on: 26.01.2016
|
|
* Author: BlexTw11
|
|
*/
|
|
|
|
#ifndef INCLUDE_ADC_H_
|
|
#define INCLUDE_ADC_H_
|
|
|
|
#include <stdint.h>
|
|
|
|
#define ADC_RESOLUTION 1024
|
|
|
|
void ADC_init(void);
|
|
uint16_t ADC_read(uint8_t channel);
|
|
uint16_t ADC_read_avg(uint8_t channel, uint8_t nsamples);
|
|
|
|
#endif /* INCLUDE_ADC_H_ */
|