Function esp_idf_svc::sys::hal_utils_calc_clk_div_frac_accurate
source ยท pub unsafe extern "C" fn hal_utils_calc_clk_div_frac_accurate(
clk_info: *const hal_utils_clk_info_t,
clk_div: *mut hal_utils_clk_div_t,
) -> u32
Expand description
@brief Calculate the clock division with fractal part accurately @note Accuracy first algorithm, Time complexity O(n). About 1~hundreds times more accurate than the fast algorithm
@param[in] clk_info The clock infomation @param[out] clk_div The clock division with integral and fractal part @return - 0: Failed to get the result because the division is out of range - others: The real output clock frequency