www.ti.com
Peripheral Library APIs for ADC Operation
483
SWRU543–January 2019
Submit Documentation Feedback
Copyright © 2019, Texas Instruments Incorporated
Analog-to-Digital Converter (ADC)
• ADC_FIFO_OVERFLOW for FIFO overflow
• ADC_FIFO_UNDERFLOW for FIFO underflow
• ADC_FIFO_EMPTY for FIFO empty
• ADC_FIFO_FULL for FIFO full
Returns:
• None
13.6.5.2 void ADCIntDisable (unsigned long ulBase, unsigned long ulChannel, unsigned long ulIntFlags)
Disables individual interrupt sources for a specified channel.
Parameters:
ulBase— Base address of the ADC
ulChannel— One of the valid ADC channels
ulIntFlags— The bit mask of the interrupt sources to be enabled
This function disables the indicated ADC interrupt sources. Only enabled sources can be reflected to the
processor interrupt; disabled sources have no effect on the processor.
The ulIntFlags and ulChannel parameters should be as explained in ADCIntEnable().
Returns:
• None
13.6.5.3 void ADCIntRegister (unsigned long ulBase, unsigned long ulChannel, void(*)(void) pfnHandler)
Enables and registers ADC interrupt handler for a specified channel.
Parameters:
ulBase— Base address of the ADC
ulChannel— One of the valid ADC channels
pfnHandler— A pointer to the function to be called when the ADC channel interrupt occurs
This function enables and registers ADC interrupt handler for a specified channel. An individual interrupt
for each channel should be enabled using ADCIntEnable(). The interrupt handler must clear the interrupt
source.
The ulChannel parameter should be one of the following:
• ADC_CH_0 for channel 0
• ADC_CH_1 for channel 1
• ADC_CH_2 for channel 2
• ADC_CH_3 for channel 3
Returns:
• None