/* Returns the status of EN bit for the specified DMAy Streamx.  */
FunctionalState DMA_GetCmdStatus(DMA_Stream_TypeDef *DMAy_Streamx)
/* Returns the status of EN bit for the specified DMAy Streamx.  */
FunctionalState DMA_GetCmdStatus(DMA_Stream_TypeDef *DMAy_Streamx)
{
  FunctionalState state = DISABLE;
  assert_param(IS_DMA_ALL_PERIPH(DMAy_Streamx));
  if ((DMAy_Streamx->CR & (uint32_t)DMA_SxCR_EN) != 0)
  {
    state = ENABLE;
  }
  else
  {
    state = DISABLE;
  }
  return state;
}