/* Get the PDMA interrupt flag of a channel.  */
xtBoolean PDMAChannelIntFlagGet(unsigned long ulChannelID, unsigned long ulIntFlags)
/* Get the PDMA interrupt flag of a channel.  */
xtBoolean PDMAChannelIntFlagGet(unsigned long ulChannelID, unsigned long ulIntFlags)
{
    xASSERT(xDMAChannelIDValid(ulChannelID));
    xASSERT((ulIntFlags == PDMA_EVENT_TC) || (ulIntFlags == PDMA_EVENT_ERROR));
    return ((xHWREG(g_psDMAChannelAddress[ulChannelID] + PDMA_ISR) | ulIntFlags)
            ? xtrue : xfalse);
}