Function esp_idf_svc::hal::sys::esp_iface_mac_addr_set

source ยท
pub unsafe extern "C" fn esp_iface_mac_addr_set(
    mac: *const u8,
    type_: u32,
) -> i32
Expand description

@brief Set custom MAC address of the interface. This function allows you to overwrite the MAC addresses of the interfaces set by the base MAC address.

@param mac MAC address, length: 6 bytes/8 bytes. length: 6 bytes for MAC-48 8 bytes for EUI-64(used for ESP_MAC_IEEE802154 type, if CONFIG_SOC_IEEE802154_SUPPORTED=y) @param type Type of MAC address

@return ESP_OK on success