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.

@GenericPHY Reference

Properties

Name Type Description

Class

*void

Class object

Component

*void

Pointer to component object if part of component

LoggingFlags

uint64_t

Flags for logging info

Name

*char

Object name

TimeSource

*void

Time source object

Commands

Name Description

delete

Dispose instance of @GenericPHY

new

Create new instance of GenericPHY

Command new Arguments

Name Type Required Description

name

string

yes

Name of object to create

GenericPHY Reference

Properties

Name Type Description

Class

*void

Class object

Component

*void

Pointer to component object if part of component

LoggingFlags

uint64_t

Flags for logging info

Name

*char

Object name

TimeSource

*void

Time source object

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

temu_IfaceRef/ <unknown>

Ethernet link.

linkPartnerAbility

uint16_t

Link partner ability register

macDevice

temu_IfaceRef/ <unknown>

MAC device.

phyID

[uint16_t; 2]

Physical ID registers

Interfaces

Name Type Description

MDIOIface

temu::MDIOIface

PHYIface

temu::PHYIface

Commands

Name Description

delete

Dispose instance of GenericPHY