![]() |
![]() |
Defines a conversion to be used with ADCBuf_convert(). More...
#include <ADCBuf.h>
Data Fields | |
| uint16_t | samplesRequestedCount |
| void * | sampleBuffer |
| void * | sampleBufferTwo |
| void * | arg |
| uint32_t | adcChannel |
Defines a conversion to be used with ADCBuf_convert().
| uint16_t ADCBuf_Conversion::samplesRequestedCount |
Defines the number of samples to be performed on the ADCBuf_Conversion.channel. The application buffers provided by ADCBuf_Conversion.sampleBuffer and ADCBuf_Conversion.sampleBufferTwo must be large enough to hold samplesRequestedCount samples.
| void* ADCBuf_Conversion::sampleBuffer |
Buffer to store ADCBuf conversion results. This buffer must be at least (ADCBuf_Conversion.samplesRequestedCount * 2) bytes. When using ADCBuf_RECURRENCE_MODE_ONE_SHOT, only this buffer is used.
| void* ADCBuf_Conversion::sampleBufferTwo |
Buffer to store ADCBuf conversion results. This buffer must be at least (ADCBuf_Conversion.samplesRequestedCount * 2) bytes. When using ADCBuf_RECURRENCE_MODE_ONE_SHOT, this buffer is not used. When using ADCBuf_RECURRENCE_MODE_CONTINUOUS, this must point to a valid buffer.
| void* ADCBuf_Conversion::arg |
Pointer to a custom argument to be passed to the ADCBuf_Callback function via the ADCBuf_Conversion structure.
| uint32_t ADCBuf_Conversion::adcChannel |
ADCBuf channel to perform conversions on. Mapping of channel to pin or internal signal is device specific. Refer to the device specific implementation.