/* param base eDMA peripheral base address. param channel eDMA channel number. return The mask of channel status flags. Users need to use the _edma_channel_status_flags type to decode the return variables.  */
uint32_t EDMA_GetChannelStatusFlags(DMA_Type *base, uint32_t channel)
/* param base eDMA peripheral base address. param channel eDMA channel number. return The mask of channel status flags. Users need to use the _edma_channel_status_flags type to decode the return variables.  */
uint32_t EDMA_GetChannelStatusFlags(DMA_Type *base, uint32_t channel)
{
    assert(channel < FSL_FEATURE_EDMA_MODULE_CHANNEL);
    uint32_t retval = 0;
    retval |= ((base->TCD[channel].CSR & DMA_CSR_DONE_MASK) >> DMA_CSR_DONE_SHIFT);
    retval |= (((base->ERR >> channel) & 0x1U) << 1U);
    retval |= (((base->INT >> channel) & 0x1U) << 2U);
    return retval;
}