[][src]Function esp_idf_sys::i2c_isr_register

pub unsafe extern "C" fn i2c_isr_register(
    i2c_num: i2c_port_t,
    fn_: Option<unsafe extern "C" fn(arg1: *mut c_void)>,
    arg: *mut c_void,
    intr_alloc_flags: c_int,
    handle: *mut intr_handle_t
) -> esp_err_t

@brief I2C isr handler register

@param i2c_num I2C port number @param fn isr handler function @param arg parameter for isr 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 handle return from esp_intr_alloc.

@return - ESP_OK Success - ESP_ERR_INVALID_ARG Parameter error