pub unsafe extern "C" fn mcpwm_timer_enable(
    timer: mcpwm_timer_handle_t
) -> esp_err_t
Expand description

@brief Enable MCPWM timer

@param[in] timer MCPWM timer handle, allocated by mcpwm_new_timer() @return - ESP_OK: Enable MCPWM timer successfully - ESP_ERR_INVALID_ARG: Enable MCPWM timer failed because of invalid argument - ESP_ERR_INVALID_STATE: Enable MCPWM timer failed because timer is enabled already - ESP_FAIL: Enable MCPWM timer failed because of other error