16.1.3.14 mac_async_read_phy_reg
Read PHY register.
int32_t mac_async_read_phy_reg(
struct mac_async_descriptor *const descr,
uint16_t addr,
uint16_t reg,
uint16_t * val
)
Parameters
- descr
-
Type: struct mac_async_descriptor Struct *const
Pointer to the HAL MAC descriptor.
- addr
-
Type: uint16_t
PHY address.
- reg
-
Type: uint16_t
Register address.
- val
-
Type: uint16_t *
Register value.
Returns
Type: int32_t
Operation status.
- ERR_NONE
-
Success.