Function esp_wifi_sys::include::esp_phy_get_init_data
source · pub unsafe extern "C" fn esp_phy_get_init_data() -> *const esp_phy_init_data_t
Expand description
@brief Get PHY init data
If “Use a partition to store PHY init data” option is set in menuconfig, This function will load PHY init data from a partition. Otherwise, PHY init data will be compiled into the application itself, and this function will return a pointer to PHY init data located in read-only memory (DROM).
If “Use a partition to store PHY init data” option is enabled, this function may return NULL if the data loaded from flash is not valid.
@note Call esp_phy_release_init_data to release the pointer obtained using this function after the call to esp_wifi_init.
@return pointer to PHY init data structure