Reset the Phy
int MDI_ResetPhy ( mdi_t * mdi,
int PhyAddr,
MDI_WaitType Wait)
- mdi
- A pointer to the mdi_t structure obtained from
the MDI_Register_Extended() function call.
- PhyAddr
- The physical address of the physical layer device (PHY).
- Wait
- The type of wait to be performed.
If you want to complete the reset by the time the function returns,
specify MDI_WaitBusy.
If you want to try to have the driver receive an interrupt after the PHY
reset completes, you can specify the MDI_NoWait argument. If you
use the MDI_NoWait argument, this call returns immediately after
the reset is initiated. When the reset completes, the driver must call
MDI_SyncPhy() so the library can perform post-reset servicing.
The MDI_ResetPhy() function resets the PhyAddr
that belongs to the PHY.
QNX Neutrino
Safety: | |
Cancellation point |
Yes |
Interrupt handler |
No |
Signal handler |
Yes |
Thread |
Yes |