/* generate the pause frame, ENET will send pause frame after enable transmit flow control this function only use in full-dulex mode  */
ErrStatus enet_pauseframe_generate(void)
/* generate the pause frame, ENET will send pause frame after enable transmit flow control this function only use in full-dulex mode  */
ErrStatus enet_pauseframe_generate(void)
{
    ErrStatus enet_state = ERROR;
    uint32_t temp = 0U;
    temp = ENET_MAC_FCTL & ENET_MAC_FCTL_FLCBBKPA;
    if(RESET == temp) {
        ENET_MAC_FCTL |= ENET_MAC_FCTL_FLCBBKPA;
        enet_state = SUCCESS;
    }
    return enet_state;
}