Store the active media type for PhyAddr
int MDI_GetActiveMedia ( mdi_t * mdi,
int PhyAddr,
int *Media)
- 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).
- Media
- A pointer to the media-type specified.
Possible media types 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.
The MDI_GetActiveMedia() function stores the curently active
media-type for the PHY that the media address specifies.
- MDI_BADPARAM -- PhyAddr is out of range
- MDI_LINK_DOWN -- no valid link was detected
- MDI_LINK_UP -- a valid link was detected, and the link-media type
was stored at the address pointed to by media.
QNX Neutrino
Safety: | |
Cancellation point |
Yes |
Interrupt handler |
No |
Signal handler |
Yes |
Thread |
Yes |