Jump to main content

##

# DRV_ETHPHY_Reset Function

## C

    DRV_ETHPHY_RESULT DRV_ETHPHY_Reset(DRV_HANDLE handle, bool waitComplete);

## Returns

- DRV_ETHPHY_RES_PENDING for ongoing, in progress operation
- DRV_ETHPHY_RES_OPERATION_ERR - invalid parameter or operation in the current context

## Description

This function immediately resets the Ethernet PHY, optionally waiting for a reset to complete.

## Remarks

Use DRV_ETHPHY_ClientStatus() and DRV_ETHPHY_ClientOperationResult() to check when the operation was completed and its outcome. When operation is completed but failed, DRV_ETHPHY_ClientOperationResult will return:

- DRV_ETHPHY_RES_DTCT_ERR if the PHY failed to respond

## Preconditions

- The DRV_ETHPHY_Initialize routine must have been called.
- DRV_ETHPHY_Open must have been called to obtain a valid device handle.
- DRV_ETHPHY_Setup must have been called to properly configure the PHY