Data Fields
ADCBuf_Conversion_ Struct Reference

An ADCBuf_Conversion data structure is used with ADCBuf_convert(). It indicates which channel to perform the ADC conversion on, how many conversions to make, and where to put them. The arg variable is an user-definable argument which gets passed to the ADCBuf_Callback when the ADC driver is in ADCBuf_RETURN_MODE_CALLBACK. More...

#include <ADCBuf.h>

Data Fields

uint16_t samplesRequestedCount
 
void * sampleBuffer
 
void * sampleBufferTwo
 
void * arg
 
uint32_t adcChannel
 

Detailed Description

An ADCBuf_Conversion data structure is used with ADCBuf_convert(). It indicates which channel to perform the ADC conversion on, how many conversions to make, and where to put them. The arg variable is an user-definable argument which gets passed to the ADCBuf_Callback when the ADC driver is in ADCBuf_RETURN_MODE_CALLBACK.

Field Documentation

§ samplesRequestedCount

uint16_t ADCBuf_Conversion_::samplesRequestedCount

Number of samples to convert and return

§ sampleBuffer

void* ADCBuf_Conversion_::sampleBuffer

Buffer the results of the conversions are stored in

§ sampleBufferTwo

void* ADCBuf_Conversion_::sampleBufferTwo

A second buffer that is filled in ADCBuf_RECURRENCE_MODE_CONTINUOUS mode while the first buffer is processed by the application. The value is not used in ADCBuf_RECURRENCE_MODE_ONE_SHOT mode.

§ arg

void* ADCBuf_Conversion_::arg

Argument to be passed to the callback function in ADCBuf_RETURN_MODE_CALLBACK

§ adcChannel

uint32_t ADCBuf_Conversion_::adcChannel

Channel to perform the ADC conversion on. Mapping of channel to pin or internal signal is device specific.


The documentation for this struct was generated from the following file:
© Copyright 1995-2018, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale