/* Returns the last ADC1, ADC2, ADC3 and ADC4 regular conversions results data in the selected dual mode.  */
uint32_t ADC_GetDualModeConversionValue(ADC_TypeDef *ADCx)
/* Returns the last ADC1, ADC2, ADC3 and ADC4 regular conversions results data in the selected dual mode.  */
uint32_t ADC_GetDualModeConversionValue(ADC_TypeDef *ADCx)
{
  uint32_t tmpreg1 = 0;
  assert_param(IS_ADC_ALL_PERIPH(ADCx));
  if((ADCx == ADC1) || (ADCx== ADC2))
  {
    tmpreg1 = ADC1_2->CDR;
  }
  else
  {
    tmpreg1 = ADC3_4->CDR;
  }
  return (uint32_t) tmpreg1;
}