pub unsafe extern "C" fn ledc_isr_register(
    fn_: Option<unsafe extern "C" fn(_: *mut c_void)>,
    arg: *mut c_void,
    intr_alloc_flags: i32,
    handle: *mut *mut intr_handle_data_t
) -> i32
Expand description

@brief Register LEDC interrupt handler, the handler is an ISR. The handler will be attached to the same CPU core that this function is running on.

@param fn Interrupt handler function. @param arg User-supplied argument passed to the handler function. @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. @param handle Pointer to return handle. If non-NULL, a handle for the interrupt will be returned here.

@return - ESP_OK Success - ESP_ERR_INVALID_ARG Function pointer error.