ADuCM302x Device Drivers API Reference Manual
Release 3.1.2.0
|
#include <adi_adc.h>
Data Fields | |
uint32_t | nChannels |
void * | pDataBuffer |
uint32_t | nNumConversionPasses |
uint32_t | nBuffSize |
Structure which hold the details of the buffer and sampling details
uint32_t nChannels |
Channels to sample. Should be an ORed value of ADI_ADC_CHANNEL enum
Definition at line 147 of file adi_adc.h.
Referenced by adi_adc_SubmitBuffer().
void* pDataBuffer |
Pointer to the Buffer to read the sample value into. If single channel(say Channel 0) is selected then the format of buffer will be <Chan0 conversion 0><Chan0 conversion 1><Chan0 conversion 2>.... but if multiple channels (say Channel 1 and Channel2) are selected then the format of buffer will be <Chan1 conversion 0><Chan2 conversion 0><Chan1 conversion 1><Chan2 conversion 1><Chan1 conversion 2><Chan2 conversion 2>....
The pBuffer should be 2 byte aligned.
If N is the number of channels selected then in single iteration mode the number of samples written to in the buffer will be N and for multiple iteration, the driver will try to fill the whole buffer with data and it is preferred that the nBuffSize be able to accommodate a multiple of N samples.
Definition at line 148 of file adi_adc.h.
Referenced by adi_adc_SubmitBuffer().
uint32_t nNumConversionPasses |
Num of conversion passes
Definition at line 158 of file adi_adc.h.
Referenced by adi_adc_SubmitBuffer().