esp_deep_sleep_register_phy_hook() function
Register a callback to be called from the deep sleep prepare for maintain the PHY state CPU is equal to min_freq_mhz (if DFS is enabled) when running this callback, and PLL clock is exists) @warning deepsleep PHY callbacks should without parameters, and MUST NOT, UNDER ANY CIRCUMSTANCES, CALL A FUNCTION THAT MIGHT BLOCK.
Arguments
new_dslp_cb
Callback to be called to close PHY related modules
Return value
- ESP_OK: PHY callback registered to the phy modules deepsleep prepare - ESP_ERR_NO_MEM: No more hook space for register the callback
esp_deep_sleep_register_phy_hook() is called by 1 function and calls 1 function:
![]()
esp_deep_sleep_register_phy_hook()
esp_deep_sleep_register_phy_hook() reads 1 variable:
![]()
esp_deep_sleep_register_phy_hook()