Function esp_idf_svc::sys::mcpwm_new_timer

source ยท
pub unsafe extern "C" fn mcpwm_new_timer(
    config: *const mcpwm_timer_config_t,
    ret_timer: *mut *mut mcpwm_timer_t,
) -> i32
Expand description

@brief Create MCPWM timer

@param[in] config MCPWM timer configuration @param[out] ret_timer Returned MCPWM timer handle @return - ESP_OK: Create MCPWM timer successfully - ESP_ERR_INVALID_ARG: Create MCPWM timer failed because of invalid argument - ESP_ERR_NO_MEM: Create MCPWM timer failed because out of memory - ESP_ERR_NOT_FOUND: Create MCPWM timer failed because all hardware timers are used up and no more free one - ESP_FAIL: Create MCPWM timer failed because of other error