Function esp_idf_svc::sys::mcpwm_new_capture_timer

source ·
pub unsafe extern "C" fn mcpwm_new_capture_timer(
    config: *const mcpwm_capture_timer_config_t,
    ret_cap_timer: *mut *mut mcpwm_cap_timer_t,
) -> i32
Expand description

@brief Create MCPWM capture timer

@param[in] config MCPWM capture timer configuration @param[out] ret_cap_timer Returned MCPWM capture timer handle @return - ESP_OK: Create MCPWM capture timer successfully - ESP_ERR_INVALID_ARG: Create MCPWM capture timer failed because of invalid argument - ESP_ERR_NO_MEM: Create MCPWM capture timer failed because out of memory - ESP_ERR_NOT_FOUND: Create MCPWM capture timer failed because can’t find free resource - ESP_FAIL: Create MCPWM capture timer failed because of other error