[−][src]Function esp_idf_sys::mcpwm_isr_register
pub unsafe extern "C" fn mcpwm_isr_register(
mcpwm_num: mcpwm_unit_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 Register MCPWM interrupt handler, the handler is an ISR. the handler will be attached to the same CPU core that this function is running on.
@param mcpwm_num set MCPWM unit(0-1) @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 arg parameter for handler function @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.