[][src]Function esp_idf_sys::esp_read_mac

pub unsafe extern "C" fn esp_read_mac(
    mac: *mut u8,
    type_: esp_mac_type_t
) -> esp_err_t

@brief Read base MAC address and set MAC address of the interface.

This function first get base MAC address using esp_base_mac_addr_get or reads base MAC address from BLK0 of EFUSE. Then set the MAC address of the interface including wifi station, wifi softap, bluetooth and ethernet.

@param mac MAC address of the interface, length: 6 bytes. @param type type of MAC address, 0:wifi station, 1:wifi softap, 2:bluetooth, 3:ethernet.

@return ESP_OK on success