Project 7
3-Axis Accelerometer Sensor Module
Neff Site
adc.h
Go to the documentation of this file.
1
19
#ifndef ADC_H_
20
#define ADC_H_
21
22
#define ADC_PORT PORTA
23
#define ADC_MODULE ADCA
24
#define ADC_REFCTRL_gc ADC_REFSEL_AREFA_gc
25
26
#ifdef __cplusplus
27
extern
"C"
28
{
29
#endif
30
32
void
adc_init
(
void
);
33
39
uint16_t
adc_read_adc1
(
void
);
40
46
uint16_t
adc_read_adc2
(
void
);
47
53
uint16_t
adc_read_adc3
(
void
);
54
60
uint16_t
adc_read_adc4
(
void
);
61
62
#ifdef __cplusplus
63
}
64
#endif
65
66
#endif
/* ADC_H_ */
adc_read_adc3
uint16_t adc_read_adc3(void)
Read ADC3.
adc_read_adc2
uint16_t adc_read_adc2(void)
Read ADC2.
adc_init
void adc_init(void)
Initializes the ADC module.
adc_read_adc1
uint16_t adc_read_adc1(void)
Read ADC1.
adc_read_adc4
uint16_t adc_read_adc4(void)
Read ADC4.
Contact
Generated by
1.8.13