CC1310 AD Buffer模式下多通道采样
CC1310 AD buffer例程只是针对1个AD通道的连续采样。是否能够实现多个通道的连续采样?
连续采样模式只能设置1个channel,参见ADCBuf.h文件中ADCBuf_Conversion结构体的定义。
typedef struct ADCBuf_Conversion {
uint16_t samplesRequestedCount; /*!< Number of samples to convert and return */
void *sampleBuffer; /*!< Buffer the results of the conversions are stored in */
void *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. */
void *arg; /*!< Argument to be passed to the callback function in ::ADCBuf_RETURN_MODE_CALLBACK */
uint32_t adcChannel; /*!< Channel to perform the ADC conversion on. Mapping of channel to pin or internal signal is device specific. */
} ADCBuf_Conversion;