/* Returns the specified ETHERNET DMA Tx Desc collision count.  */
uint32_t ETH_GetDmaTxDescCollisionCount(ETH_DMADescType *DMATxDesc)
/* Returns the specified ETHERNET DMA Tx Desc collision count.  */
uint32_t ETH_GetDmaTxDescCollisionCount(ETH_DMADescType *DMATxDesc)
{
    return ((DMATxDesc->Status & ETH_DMA_TX_DESC_CC) >> ETH_DMA_TX_DESC_COLLISION_COUNTER_SHIFT);
}