在ccs中配置ADC为:
static void Cfg_ADCOutCfgInitParams (rlAdcOutCfg_t* ptrADCOutCfg)
{
/* Initialize the configuration: */
memset ((void*)ptrADCOutCfg, 0, sizeof(rlAdcOutCfg_t));
/* Populate the default configuration: */
ptrADCOutCfg->fmt.b2AdcBits = ADC_BITS_16;//ADC_BITS_16=2
ptrADCOutCfg->fmt.b2AdcOutFmt = ADC_FORMAT_COMPLEX;//ADC_FORMAT_COMPLEX=1
ptrADCOutCfg->fmt.b8FullScaleReducFctr = 0;
return;
}
ADCBuf_dataFormat dataFormat;
dataFormat.adcOutFormat = adcFmt;//adcFmt=0
dataFormat.channelInterleave = chInterleave;//chInterleave=1
dataFormat.sampleInterleave = sampleInterleave;//sampleInterleave=1
那么对于ADC中16位的实部和16位的虚部,和真实的十进制ADC数据是怎样的关系?
怎样将其转换为真实的十进制ADC数据?