Function esp_idf_svc::hal::sys::ledc_fade_func_install

source ยท
pub unsafe extern "C" fn ledc_fade_func_install(
    intr_alloc_flags: i32,
) -> i32
Expand description

@brief Install LEDC fade function. This function will occupy interrupt of LEDC module.

@param intr_alloc_flags Flags used to allocate the interrupt. One or multiple (ORred) ESP_INTR_FLAG_* values. See esp_intr_alloc.h for more info.

@return - ESP_OK Success - ESP_ERR_INVALID_ARG Intr flag error - ESP_ERR_NOT_FOUND Failed to find available interrupt source - ESP_ERR_INVALID_STATE Fade function already installed