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

Pluggable MDIO bus interface. More...

#include <ra8_ether_phy.h>

Data Fields

ra8_err_t(* read )(void *ctx, uint8_t phy_addr, uint8_t reg_addr, uint16_t *out_data)
 Read a 16-bit Clause-22 register.
ra8_err_t(* write )(void *ctx, uint8_t phy_addr, uint8_t reg_addr, uint16_t data)
 Write a 16-bit Clause-22 register.
void * ctx
 Opaque context pointer forwarded to read / write.

Detailed Description

Pluggable MDIO bus interface.

Definition at line 82 of file ra8_ether_phy.h.

Field Documentation

◆ ctx

void* ra8_ether_phy_io_t::ctx

Opaque context pointer forwarded to read / write.

Definition at line 102 of file ra8_ether_phy.h.

◆ read

ra8_err_t(* ra8_ether_phy_io_t::read) (void *ctx, uint8_t phy_addr, uint8_t reg_addr, uint16_t *out_data)

Read a 16-bit Clause-22 register.

Parameters
[in]ctxUser context handed back unchanged.
[in]phy_addrPHY address (0..31).
[in]reg_addrRegister index (0..31).
[out]out_dataReceives the 16-bit register value.

Definition at line 91 of file ra8_ether_phy.h.

Referenced by ra8_ether_phy_open().

◆ write

ra8_err_t(* ra8_ether_phy_io_t::write) (void *ctx, uint8_t phy_addr, uint8_t reg_addr, uint16_t data)

Write a 16-bit Clause-22 register.

Parameters
[in]ctxUser context handed back unchanged.
[in]phy_addrPHY address (0..31).
[in]reg_addrRegister index (0..31).
[in]data16-bit register value.

Definition at line 100 of file ra8_ether_phy.h.

Referenced by ra8_ether_phy_open().


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