DRV_ETHPHY_Open Function

C

DRV_HANDLE DRV_ETHPHY_Open(const SYS_MODULE_INDEX drvIndex, const DRV_IO_INTENT intent); 

Returns

  • valid open-instance handle if successful (a number identifying both the caller and the module instance).

  • DRV_HANDLE_INVALID if an error occurs

Description

This function opens the specified Ethernet PHY driver instance and provides a handle that must be provided to all other client-level operations to identify the caller and the instance of the driver.

Remarks

The handle returned is valid until the DRV_ETHPHY_Close routine is called. This function will NEVER block waiting for hardware. The intent parameter is not used. The PHY driver implements a non-blocking behavior.

Preconditions

The DRV_ETHPHY_Initialize function must have been called before calling this function.

}