/* Enables or disables the SDADC power down mode when idle.  */
void SDADC_PowerDownCmd(SDADC_TypeDef *SDADCx, FunctionalState NewState)
/* Enables or disables the SDADC power down mode when idle.  */
void SDADC_PowerDownCmd(SDADC_TypeDef *SDADCx, FunctionalState NewState)
{
  assert_param(IS_SDADC_ALL_PERIPH(SDADCx));
  assert_param(IS_FUNCTIONAL_STATE(NewState));
  if (NewState != DISABLE)
  {
    SDADCx->CR1 |= SDADC_CR1_PDI;
  }
  else
  {
    SDADCx->CR1 &= (uint32_t)~SDADC_CR1_PDI;
  }
}