/* Enables or disables the MAC Magic Packet Detection.  */
void ETH_EnableMagicPacketDetection(FunctionalState Cmd)
/* Enables or disables the MAC Magic Packet Detection.  */
void ETH_EnableMagicPacketDetection(FunctionalState Cmd)
{
    assert_param(IS_FUNCTIONAL_STATE(Cmd));
    if (Cmd != DISABLE)
    {
        ETH->MACPMTCTRLSTS |= ETH_MACPMTCTRLSTS_MGKPKTEN;
    }
    else
    {
        ETH->MACPMTCTRLSTS &= ~ETH_MACPMTCTRLSTS_MGKPKTEN;
    }
}