Jump to main content

##

# MAC_DRVR_LinkCheck Function

## C

    bool MAC_DRVR_LinkCheck( 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

- MAC_DRVR_Initialize() must have been called to set up the driver.
- MAC_DRVR_Open() should have been called to obtain a valid handle.

## Parameters

Parameters | Description
--- | ---
hMac | Ethernet MAC client handle