Generic PHY

The GenericPHY is a PHY / MII device which supports both the MDIO interface and the PHY interface for sending/receiving ethernet frames.

The GenericPHY device class by default enables support for BASE10, BASE100 and BASE1000 transfers. To only enable specific speed modes, the constructor accepts arguments:

  • base10:1

  • base100:1

  • base1000:1

If any of these are set, the unset ones will be disabled.

Thus by default a PHY supports all BASE10, BASE100 and BASE1000 modes. By setting the base10 argument, only BASE10 modes will be supported. By setting base10 and base 100 arguments, only BASE10 and BASE100 will be supported.

At present it is not possible to control the support on a lower level.

Attributes

Properties

Name Type Description

autoNegAdvertisment

uint16_t

Auto negotiation advertisment register

autoNegotiationExpansion

uint16_t

Auto negotiation expansion register

basicModeConfig

uint16_t

Basic mode config register

basicModeStatus

uint16_t

Basic mode status register

ethernetLink

iref / <unknown>

Ethernet link

linkPartnerAbility

uint16_t

Link partner ability register

macDevice

iref / <unknown>

MAC device

object.timeSource

object

Time source object (a cpu or machine object)

phyID

[2 x uint16_t]

Physical ID registers

Interfaces

Name Type Description

MDIOIface

temu::MDIOIface

PHYIface

temu::PHYIface

Ports

Prop Iface Description

-

-

-