[][src]Function esp_idf_sys::uart_isr_register

pub unsafe extern "C" fn uart_isr_register(
    uart_num: uart_port_t,
    fn_: Option<unsafe extern "C" fn(arg1: *mut c_void)>,
    arg: *mut c_void,
    intr_alloc_flags: c_int,
    handle: *mut uart_isr_handle_t
) -> esp_err_t

@brief Register UART interrupt handler (ISR).

@note UART ISR handler will be attached to the same CPU core that this function is running on.

@param uart_num UART_NUM_0, UART_NUM_1 or UART_NUM_2 @param fn Interrupt handler function. @param arg parameter for 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_FAIL Parameter error