Access Restricted

This page contains internal documentation that is not publicly available.


DHWCtrl.EthGetCommMode

Read the PHY-negotiated link parameters on Index. Typically called after EthWaitLinkState(State = Up) succeeds. If autonegotiation has not yet completed, Speed and/or Duplex may read as Unknown.

Properties

Parameters (request frame)

Name Type/Size Description
Index Integer (8 bits) Zero-based instance index within this peripheral category. The valid range is firmware / hardware-variant specific; discoverable via ListPeripherals.

Returned values (response frame)

Name Type/Size Description
Speed Enumeration (8 bits) PHY-negotiated link speed.
Values (4):
  • Unknown (0x00)
    Autonegotiation has not completed or link is down.
  • Mbit10 (0x01)
    10 Mbit/s.
  • Mbit100 (0x02)
    100 Mbit/s.
  • Mbit1000 (0x03)
    1000 Mbit/s (Gigabit).
Duplex Enumeration (8 bits) PHY-negotiated duplex mode.
Values (3):
  • Unknown (0x00)
    Autonegotiation has not completed or link is down.
  • Half (0x01)
    Half-duplex.
  • Full (0x02)
    Full-duplex.