ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
ra8_eth_link_t Struct Reference

PHY link state snapshot. More...

#include <ra8_eth.h>

Data Fields

uint8_t link_up
 1 if BMSR.LINK_STATUS asserted, else 0.
uint16_t speed_mbps
 Negotiated PHY speed (10/100/1000).
uint8_t full_duplex
 1 if full duplex, 0 if half.
uint16_t bmsr
 Raw BMSR (PHY register 0x01) snapshot.

Detailed Description

PHY link state snapshot.

Returned by ra8_eth_link_status. Mirrors the IEEE-802.3 BMSR link-up bit and the negotiated speed / duplex from BMCR / GBSR.

Definition at line 244 of file ra8_eth.h.

Field Documentation

◆ bmsr

uint16_t ra8_eth_link_t::bmsr

Raw BMSR (PHY register 0x01) snapshot.

Definition at line 248 of file ra8_eth.h.

Referenced by internal_phy_read_link().

◆ full_duplex

uint8_t ra8_eth_link_t::full_duplex

1 if full duplex, 0 if half.

Definition at line 247 of file ra8_eth.h.

Referenced by internal_phy_read_link().

◆ link_up

uint8_t ra8_eth_link_t::link_up

1 if BMSR.LINK_STATUS asserted, else 0.

Definition at line 245 of file ra8_eth.h.

Referenced by internal_handle_get_status(), internal_phy_read_link(), and ra8_eth_link_status().

◆ speed_mbps

uint16_t ra8_eth_link_t::speed_mbps

Negotiated PHY speed (10/100/1000).

Definition at line 246 of file ra8_eth.h.

Referenced by internal_phy_read_link().


The documentation for this struct was generated from the following file: