57 #define ADC_CH_0 0x00000000 58 #define ADC_CH_1 0x00000008 59 #define ADC_CH_2 0x00000010 60 #define ADC_CH_3 0x00000018 69 #define ADC_DMA_DONE 0x00000010 70 #define ADC_FIFO_OVERFLOW 0x00000008 71 #define ADC_FIFO_UNDERFLOW 0x00000004 72 #define ADC_FIFO_EMPTY 0x00000002 73 #define ADC_FIFO_FULL 0x00000001 81 extern void ADCEnable(
unsigned long ulBase);
85 extern void ADCIntRegister(
unsigned long ulBase,
unsigned long ulChannel,
86 void (*pfnHandler)(
void));
88 extern void ADCIntEnable(
unsigned long ulBase,
unsigned long ulChannel,
89 unsigned long ulIntFlags);
90 extern void ADCIntDisable(
unsigned long ulBase,
unsigned long ulChannel,
91 unsigned long ulIntFlags);
92 extern unsigned long ADCIntStatus(
unsigned long ulBase,
unsigned long ulChannel);
93 extern void ADCIntClear(
unsigned long ulBase,
unsigned long ulChannel,
94 unsigned long ulIntFlags);
95 extern void ADCDMAEnable(
unsigned long ulBase,
unsigned long ulChannel);
96 extern void ADCDMADisable(
unsigned long ulBase,
unsigned long ulChannel);
97 extern void ADCTimerConfig(
unsigned long ulBase,
unsigned long ulValue);
103 unsigned long ulChannel);
104 extern unsigned long ADCFIFORead(
unsigned long ulBase,
105 unsigned long ulChannel);
void ADCIntDisable(unsigned long ulBase, unsigned long ulChannel, unsigned long ulIntFlags)
Definition: adc.c:311
void ADCTimerDisable(unsigned long ulBase)
Definition: adc.c:593
void ADCDisable(unsigned long ulBase)
Definition: adc.c:85
void ADCDMADisable(unsigned long ulBase, unsigned long ulChannel)
Definition: adc.c:490
unsigned char ADCFIFOLvlGet(unsigned long ulBase, unsigned long ulChannel)
Definition: adc.c:636
void ADCTimerEnable(unsigned long ulBase)
Definition: adc.c:574
void ADCChannelEnable(unsigned long ulBase, unsigned long ulChannel)
Definition: adc.c:106
void ADCEnable(unsigned long ulBase)
Definition: adc.c:66
void ADCTimerConfig(unsigned long ulBase, unsigned long ulValue)
Definition: adc.c:524
void ADCChannelDisable(unsigned long ulBase, unsigned long ulChannel)
Definition: adc.c:129
void ADCIntEnable(unsigned long ulBase, unsigned long ulChannel, unsigned long ulIntFlags)
Definition: adc.c:261
void ADCIntRegister(unsigned long ulBase, unsigned long ulChannel, void(*pfnHandler)(void))
Definition: adc.c:164
void ADCIntUnregister(unsigned long ulBase, unsigned long ulChannel)
Definition: adc.c:209
void ADCIntClear(unsigned long ulBase, unsigned long ulChannel, unsigned long ulIntFlags)
Definition: adc.c:406
unsigned long ADCIntStatus(unsigned long ulBase, unsigned long ulChannel)
Definition: adc.c:356
unsigned long ADCTimerValueGet(unsigned long ulBase)
Definition: adc.c:612
void ADCTimerReset(unsigned long ulBase)
Definition: adc.c:555
void ADCDMAEnable(unsigned long ulBase, unsigned long ulChannel)
Definition: adc.c:454
unsigned long ADCFIFORead(unsigned long ulBase, unsigned long ulChannel)
Definition: adc.c:671