/* Gets the enabled attributes of a uDMA channel. */
uint32_t uDMAChannelAttributeGet(uint32_t ui32ChannelNum)
/* Gets the enabled attributes of a uDMA channel. */
uint32_t uDMAChannelAttributeGet(uint32_t ui32ChannelNum)
{
    uint32_t ui32Attr = 0;
    ASSERT((ui32ChannelNum & 0xffff) < 32);
    ui32ChannelNum &= 0x1f;
    if (HWREG(UDMA_USEBURSTSET) & (1 << ui32ChannelNum))
    {
        ui32Attr |= UDMA_ATTR_USEBURST;
    }
    if (HWREG(UDMA_ALTSET) & (1 << ui32ChannelNum))
    {
        ui32Attr |= UDMA_ATTR_ALTSELECT;
    }
    if (HWREG(UDMA_PRIOSET) & (1 << ui32ChannelNum))
    {
        ui32Attr |= UDMA_ATTR_HIGH_PRIORITY;
    }
    if (HWREG(UDMA_REQMASKSET) & (1 << ui32ChannelNum))
    {
        ui32Attr |= UDMA_ATTR_REQMASK;
    }
    return (ui32Attr);
}