Analog to Digital Converter (ADC)
5.2.1.19 ROM_ADCSequenceDataGet
Gets the captured data for a sample sequence.
Prototype:
int32_t
ROM_ADCSequenceDataGet(uint32_t ui32Base,
uint32_t ui32SequenceNum,
uint32_t
*
pui32Buffer)
ROM Location:
ROM_APITABLE is an array of pointers located at 0x0100.0010.
ROM_ADCTABLE is an array of pointers located at ROM_APITABLE[5].
ROM_ADCSequenceDataGet is a function pointer located at ROM_ADCTABLE[0].
Parameters:
ui32Base is the base address of the ADC module.
ui32SequenceNum is the sample sequence number.
pui32Buffer is the address where the data is stored.
Description:
This function copies data from the specified sample sequence output FIFO to a memory resi-
dent buffer. The number of samples available in the hardware FIFO are copied into the buffer,
which is assumed to be large enough to hold that many samples. This will only return the
samples that are presently available, which may not be the entire sample sequence if it is in
the process of being executed.
Returns:
Returns the number of samples copied to the buffer.
5.2.1.20 ROM_ADCSequenceDisable
Disables a sample sequence.
Prototype:
void
ROM_ADCSequenceDisable(uint32_t ui32Base,
uint32_t ui32SequenceNum)
ROM Location:
ROM_APITABLE is an array of pointers located at 0x0100.0010.
ROM_ADCTABLE is an array of pointers located at ROM_APITABLE[5].
ROM_ADCSequenceDisable is a function pointer located at ROM_ADCTABLE[6].
Parameters:
ui32Base is the base address of the ADC module.
ui32SequenceNum is the sample sequence number.
Description:
Prevents the specified sample sequence from being captured when its trigger is detected. A
sample sequence should be disabled before it is configured.
48 April 8, 2013