Caution: This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs.

MDI_GetAdvert()

Store media types currently advertised by the PHY

Synopsis:

int MDI_GetAdvert  ( mdi_t * mdi,
                   int PhyAddr,
                   int Advert)

Arguments:

mdi
A pointer to the mdi_t structure obtained from MDI_Register() or MDI_Register_Extended().
PhyAddr
The physical address of the physical layer device (PHY).
Advert
A pointer to the memory location where the media types are stored. Valid media types are:

Note: These media types are flags; you can OR them together.

Description:

The MDI_GetAdvert() function stores the media types that are currently advertised by the PHY.

Classification:

QNX Neutrino

Safety:
Cancellation point Yes
Interrupt handler No
Signal handler Yes
Thread Yes

See also:

MDI_Register(), MDI_Register_Extended(), MDI_SetAdvert()