Wixel SDK
adc.h
Go to the documentation of this file.
1 
59 #ifndef _ADC_H
60 #define _ADC_H
61 
65 #define ADC_REFERENCE_INTERNAL 0b10000000
66 
70 #define ADC_REFERENCE_VDD 0
71 
76 #define ADC_BITS_7 0b00110000
77 
82 #define ADC_BITS_9 0b00100000
83 
88 #define ADC_BITS_10 0b00010000
89 
94 #define ADC_BITS_12 0
95 
116 uint16 adcRead(uint8 channel);
117 
137 
141 
153 void adcSetMillivoltCalibration(uint16 vddMillivolts);
154 
172 
173 #endif
signed short int16
Definition: cc2511_types.h:18
int16 adcConvertToMillivolts(int16 adcResult)
Definition: millivolts.c:17
unsigned short uint16
Definition: cc2511_types.h:15
void adcSetMillivoltCalibration(uint16 vddMillivolts)
Definition: millivolts.c:12
int16 adcReadDifferential(uint8 channel)
Definition: adc.c:25
unsigned char uint8
Definition: cc2511_types.h:9
uint16 adcRead(uint8 channel)
Definition: adc.c:5
uint16 adcReadVddMillivolts()
Definition: millivolts.c:6