Function esp_idf_hal::sys::esp_mac_addr_len_get
source ยท pub unsafe extern "C" fn esp_mac_addr_len_get(type_: u32) -> usize
Expand description
@brief Return the size of the MAC type in bytes.
If CONFIG_SOC_IEEE802154_SUPPORTED is set then for these types:
- ESP_MAC_IEEE802154 is 8 bytes.
- ESP_MAC_BASE, ESP_MAC_EFUSE_FACTORY and ESP_MAC_EFUSE_CUSTOM the MAC size is 6 bytes.
- ESP_MAC_EFUSE_EXT is 2 bytes. If CONFIG_SOC_IEEE802154_SUPPORTED is not set then for all types it returns 6 bytes.
@param type Type of MAC address
@return 0 MAC type not found (not supported) 6 bytes for MAC-48. 8 bytes for EUI-64.