Peripheral Library APIs for ADC Operation
www.ti.com
480
SWRU543–January 2019
Submit Documentation Feedback
Copyright © 2019, Texas Instruments Incorporated
Analog-to-Digital Converter (ADC)
Table 13-25. ulIntFlags Tags
Tag Value
ADC_DMA_DONE 0x00000010
ADC_FIFO_OVERFLOW 0x00000008
ADC_FIFO_UNDERFLOW 0x00000004
ADC_FIFO_EMPTY 0x00000002
ADC_FIFO_FULL 0x00000001
13.6.3 Basic APIs for Enabling and Configuring the Interface
13.6.3.1 void ADCEnable (unsigned long ulBase)
Enables the ADC.
Parameters:
ulBase— Base address of the ADC
This function sets the ADC global enable.
Returns:
• None
13.6.3.2 void ADCDisable (unsigned long ulBase)
Disables the ADC.
Parameters:
ulBase— Base address of the ADC
This function clears the ADC global enable.
Returns:
• None
13.6.3.3 void ADCChannelEnable (unsigned long ulBase, unsigned long ulChannel)
Enables a specified ADC channel.
Parameters:
ulBase— Base address of the ADC
ulChannel— One of the valid ADC channels
This function enables specified ADC channel and configures the pin as an analog pin.
Returns:
• None