| RTOS_MSPM0 1.1 ECE445M starter code

ADC.h
Go to the documentation of this file.
1
74 //#ifndef __ADC_H__
75 //#define __ADC_H__
76 #include <ti/devices/msp/msp.h>
77 #include <stdint.h>
81 #define ADCVREF_INT 0x200
85 #define ADCVREF_EXT 0x100
89 #define ADCVREF_VDDA 0x000
90
100 void ADC0_Init(uint32_t channel, uint32_t reference);
101
113 uint32_t ADC0_In(void);
114
124 void ADC1_Init(uint32_t channel, uint32_t reference);
125
137 uint32_t ADC1_In(void);
138
149 void ADC_Init(ADC12_Regs *adc12, uint32_t channel, uint32_t reference);
150
162 uint32_t ADC_In(ADC12_Regs *adc12);
163
175 void ADC_InitDual(ADC12_Regs *adc12, uint32_t channel1, uint32_t channel2, uint32_t reference);
176
190 void ADC_InDual(ADC12_Regs *adc12, uint32_t *d1, uint32_t *d2);
191
204 void ADC_InitTriple(ADC12_Regs *adc12,uint32_t channel1,uint32_t channel2,uint32_t channel3,uint32_t reference);
205
220 void ADC_InTriple(ADC12_Regs *adc12,uint32_t *d1, uint32_t *d2, uint32_t *d3);
221
232 void ADC0_InitAve(uint32_t channel, uint32_t n);
233
234 //#endif // __ADC_H__
ADC0_InitAve
void ADC0_InitAve(uint32_t channel, uint32_t n)
Initialize 12-bit ADC0 for hardware averaging.
ADC1_Init
void ADC1_Init(uint32_t channel, uint32_t reference)
Initialize 12-bit ADC0.
ADC_In
uint32_t ADC_In(ADC12_Regs *adc12)
Trigger ADC measurement and wait for result.
ADC0_In
uint32_t ADC0_In(void)
Trigger ADC measurement and wait for result.
ADC_InitDual
void ADC_InitDual(ADC12_Regs *adc12, uint32_t channel1, uint32_t channel2, uint32_t reference)
Initialize 12-bit ADC for two channels.
ADC_InTriple
void ADC_InTriple(ADC12_Regs *adc12, uint32_t *d1, uint32_t *d2, uint32_t *d3)
Trigger three ADC measurements and wait for results.
ADC0_Init
void ADC0_Init(uint32_t channel, uint32_t reference)
Initialize 12-bit ADC0.
ADC_Init
void ADC_Init(ADC12_Regs *adc12, uint32_t channel, uint32_t reference)
Initialize 12-bit ADC0.
ADC_InDual
void ADC_InDual(ADC12_Regs *adc12, uint32_t *d1, uint32_t *d2)
Trigger two ADC measurements and wait for results.
ADC_InitTriple
void ADC_InitTriple(ADC12_Regs *adc12, uint32_t channel1, uint32_t channel2, uint32_t channel3, uint32_t reference)
Initialize 12-bit ADC for three channels.
ADC1_In
uint32_t ADC1_In(void)
Trigger ADC measurement and wait for result.