components/esp_eth/src/esp_eth_mac_dm9051.c
/**
 * @brief read mac address from internal registers
 */
@brief read mac address from internal registers
@brief read mac address from internal registers
static esp_err_t dm9051_get_mac_addr(emac_dm9051_t *emac)
{
    esp_err_t ret = ESP_OK;
    for (int i = 0; i < 6; i++) {
        ESP_GOTO_ON_ERROR(dm9051_register_read(emac, DM9051_PAR + i, &emac->addr[i]), err, TAG, "read PAR failed");
    }
    return ESP_OK;
err:
    return ret;
}
static esp_err_t dm9051_get_mac_addr ( emac_dm9051_t * emac ) { esp_err_t ret = ESP_OK ; for ( int i = 0 ; i < 6 ; i ++ ) { ESP_GOTO_ON_ERROR ( dm9051_register_read ( emac , DM9051_PAR + i , & emac -> addr [ i ] ) , err , TAG , " " ) ; } return ESP_OK ; err : return ret ; }
@brief read mac address from internal registers
@brief read mac address from internal registers