DRV_ETHPHY_Reinitialize Function

C

void DRV_ETHPHY_Reinitialize(SYS_MODULE_OBJ object, const SYS_MODULE_INIT * const init); 

Returns

None.

Description

This function reinitializes the driver and refreshes any associated hardware settings using the initialization data given, but it will not interrupt any ongoing operations.

Remarks

  • This function can be called multiple times to reinitialize the module.

  • This operation can be used to refresh any supported hardware registers as specified by the initialization data or to change the power state of the module.

Preconditions

The DRV_ETHPHY_Initialize function must have been called before calling this routine and a valid SYS_MODULE_OBJ must have been returned.

Example

DRV_ETHPHY_INIT init; SYS_MODULE_OBJ objectHandle; 
// Populate the Ethernet PHY initialization structure 
init.phyId = ETHPHY_ID_2; init.pPhyObject = &DRV_ETHPHY_OBJECT_SMSC_LAN8720;