/* Selects the SDADC channel to be used for regular conversion.  */
void SDADC_ChannelSelect(SDADC_TypeDef *SDADCx, uint32_t SDADC_Channel)
/* Selects the SDADC channel to be used for regular conversion.  */
void SDADC_ChannelSelect(SDADC_TypeDef *SDADCx, uint32_t SDADC_Channel)
{
uint32_t tmpcr2;
  assert_param(IS_SDADC_ALL_PERIPH(SDADCx));
  assert_param(IS_SDADC_REGULAR_CHANNEL(SDADC_Channel));
  tmpcr2 = SDADCx->CR2;
  tmpcr2 &= (uint32_t) (~SDADC_CR2_RCH);
  tmpcr2 |= (uint32_t) (SDADC_Channel & 0xFFFF0000);
  SDADCx->CR2 = tmpcr2;
}