1.6.3.7 DRV_G3ADP_MAC_LinkCheck Function

C

bool DRV_G3ADP_MAC_LinkCheck( DRV_HANDLE hMac );

Summary

Checks current link status.

Description

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

Precondition

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

Parameters

ParamDescription
hMacHandle identifying the MAC driver client

Returns

  • true - If the link is up

  • false - If the link is not up

Example

    bool linkCurr;
    bool linkStatusChanged = false;

    linkCurr = DRV_G3ADP_MAC_LinkCheck(pNetIf->hIfMac);
    if(linkPrev != linkCurr)
    {
        linkStatusChanged = true;
        linkPrev = linkCurr;

    }

Remarks

None.