Function esp_idf_sys::ledc_timer_config

source ยท
pub unsafe extern "C" fn ledc_timer_config(
    timer_conf: *const ledc_timer_config_t,
) -> esp_err_t
Expand description

@brief LEDC timer configuration Configure LEDC timer with the given source timer/frequency(Hz)/duty_resolution

@param timer_conf Pointer of LEDC timer configure struct

@return - ESP_OK Success - ESP_ERR_INVALID_ARG Parameter error - ESP_FAIL Can not find a proper pre-divider number base on the given frequency and the current duty_resolution.