MDI_SetAdvert
![]() |
![]() |
![]() |
![]() |
MDI_SetAdvert()
Select the media types to advertise
Synopsis:
int MDI_SetAdvert( mdi_t * mdi,
int PhyAddr,
int Media );
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).
- Media
- Values for the advertised media type.
Valid values are:
- MDI_10bT -- 10 Base T, half-duplex
- MDI_10bTFD -- 10 Base T, full-duplex
- MDI_100bT -- 100 Base T, half-duplex
- MDI_100bTFD -- 100 Base T, full-duplex
- MDI_1000bT -- 1000 Base T, half-duplex
- MDI_1000bTFD -- 1000 Base T, full-duplex.

These media values are flags; you can OR them together.
Description:
The MDI_SetAdvert() function selects the media types to advertise to the PHY's link partner.
Returns:
- MDI_SUCCESS
- The advertisement is capable and was sent.
- MDI_INVALID_MEDIA or MDI_UNSUPPORTED
- The PHY can't advertise the specified values.
Any other value indicates that an error occurred.
Classification:
QNX Neutrino
| Safety: | |
|---|---|
| Cancellation point | Yes |
| Interrupt handler | No |
| Signal handler | Yes |
| Thread | Yes |
See also:
MDI_GetAdvert(), MDI_Register(), MDI_Register_Extended()
![]() |
![]() |
![]() |
![]() |
![[Previous]](prev.gif)
![[Contents]](contents.gif)
![[Index]](keyword_index.gif)
![[Next]](next.gif)