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

MDI_GetPartnerAdvert()

Get the media types currently advertised by the link partner

Synopsis:

int MDI_GetPartnerAdvert ( mdi_t *mdi,
                           int PhyAddr,
                           uint8_t *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 in which to store the media types. Valid media-type values are:

Note: These media values are flags; they can be ORed together.

Description:

The MDI_GetPartnerAdvert_Extended() function gets the media types that are currently advertised by the link partner and stores them in the location that Advert points to.

Classification:

QNX Neutrino

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

See also:

MDI_Register(), MDI_Register_Extended()