/* Checks whether the specified DMAy Channelx flag is set or not.  */
FlagStatus DMA_GetFlagStatus(uint32_t DMAyFlag, DMA_Module *DMAy)
/* Checks whether the specified DMAy Channelx flag is set or not.  */
FlagStatus DMA_GetFlagStatus(uint32_t DMAyFlag, DMA_Module *DMAy)
{
    FlagStatus bitstatus = RESET;
    uint32_t tmpregister = 0;
    assert_param(IS_DMA_GET_FLAG(DMAyFlag));
    tmpregister = DMAy->INTSTS;
    if ((tmpregister & DMAyFlag) != (uint32_t)RESET)
    {
        bitstatus = SET;
    }
    else
    {
        bitstatus = RESET;
    }
    return bitstatus;
}