DRV_ETHMAC_PIC32MACLinkCheck Function

C

bool DRV_ETHMAC_PIC32MACLinkCheck(DRV_HANDLE hMac); 

Returns

  • true - If the link is up

  • false - If the link is not up

Description

This function checks the link status of the associated network interface.

Remarks

The function will automatically perform a MAC reconfiguration if the link went up after being down and the PHY auto negotiation is enabled.

Preconditions

DRV_ETHMAC_PIC32MACInitialize must have been called to set up the driver. DRV_ETHMAC_PIC32MACOpen() should have been called to obtain a valid handle.

Parameters

ParametersDescription
hMacEthernet MAC client handle