/* Checks whether the specified ETHERNET MAC flag is set or not.  */
FlagStatus ETH_GetMacFlagStatus(uint32_t ETH_MAC_FLAG)
/* Checks whether the specified ETHERNET MAC flag is set or not.  */
FlagStatus ETH_GetMacFlagStatus(uint32_t ETH_MAC_FLAG)
{
    FlagStatus bitstatus = RESET;
    assert_param(IS_ETH_MAC_GET_FLAG(ETH_MAC_FLAG));
    if ((ETH->MACINTSTS & ETH_MAC_FLAG) != (uint32_t)RESET)
    {
        bitstatus = SET;
    }
    else
    {
        bitstatus = RESET;
    }
    return bitstatus;
}