Function esp_idf_sys::rmt_isr_register
source ยท pub unsafe extern "C" fn rmt_isr_register(
fn_: Option<unsafe extern "C" fn(arg1: *mut c_void)>,
arg: *mut c_void,
intr_alloc_flags: c_int,
handle: *mut rmt_isr_handle_t,
) -> esp_err_t
Expand description
@brief Register RMT interrupt handler, the handler is an ISR.
The handler will be attached to the same CPU core that this function is running on.
@note If you already called rmt_driver_install to use system RMT driver, please do not register ISR handler again.
@param fn Interrupt handler function. @param arg Parameter for 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 If non-zero, a handle to later clean up the ISR gets stored here.
@return - ESP_OK Success - ESP_ERR_INVALID_ARG Function pointer error. - ESP_FAIL System driver installed, can not register ISR handler for RMT