www.ti.com
This function returns the current FIFO level for specified ADC channel.
The ulChannel parameter should be one of:
•
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:
•
Returns the current FIFO level for a specified channel.
13.6.4.2 unsigned long ADCFIFORead (unsigned long ulBase, unsigned long ulChannel)
Reads FIFO for a specified ADC channel.
Parameters:
ulBase
ulChannel
This function returns one data sample from the channel FIFO as specified by the ulChannel parameter.
The ulChannel parameter should be one of:
•
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:
•
Returns one data sample from the channel FIFO.
13.6.4.3 void ADCDMAEnable (unsigned long ulBase, unsigned long ulChannel)
Enables the ADC DMA operation for a specified channel.
Parameters:
ulBase
ulChannel
This function enables the DMA operation for a specified ADC channel.
The ulChannel parameter should be one of:
•
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.
13.6.4.4 void ADCDMADisable (unsigned long ulBase, unsigned long ulChannel)
Disables the ADC DMA operation for a specified channel.
Parameters:
SWRU367D – June 2014 – Revised May 2018
Submit Documentation Feedback
Base address of the ADC
One of the valid ADC channels
Base address of the ADC
One of the valid ADC channels
Copyright © 2014–2018, Texas Instruments Incorporated
Peripheral Library APIs for ADC Operation
Analog-to-Digital Converter [ADC]
423