Bike-X  0.8
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
adc.h
Go to the documentation of this file.
1 #include <legacymsp430.h>
2 #include <msp430.h>
3 
4 #define SUCCESS 0
5 /* Operation not permitted */
6 #define EPERM 1
7 /* No such device or address */
8 #define ENXIO 6
9 
15 extern
16 int adc_read(unsigned int ch);
17 
24 int adc_eref_on();
25 
32 int adc_eref_off();
33 
40 void adc_close();
int adc_eref_on()
Reconfigure the parameters of the ADC to enable Veref+ and Veref-.
Definition: adc.c:136
int adc_read(unsigned int ch)
Definition: adc.c:9
void adc_close()
It will stop ADC, free the ports, and reset the OP configuration.
Definition: adc.c:171
int adc_eref_off()
It will hold the configuration of the ADC, and change it according to the OP variable.
Definition: adc.c:106