/* get the bit flag of ENET DMA descriptor  */
FlagStatus enet_desc_flag_get(enet_descriptors_struct *desc, uint32_t desc_flag)
/* get the bit flag of ENET DMA descriptor  */
FlagStatus enet_desc_flag_get(enet_descriptors_struct *desc, uint32_t desc_flag)
{
    FlagStatus enet_flag = RESET;
    if((uint32_t)RESET != (desc->status & desc_flag)) {
        enet_flag = SET;
    }
    return enet_flag;
}