Function esp_idf_svc::hal::sys::mcpwm_timer_set_phase_on_sync

source ยท
pub unsafe extern "C" fn mcpwm_timer_set_phase_on_sync(
    timer: *mut mcpwm_timer_t,
    config: *const mcpwm_timer_sync_phase_config_t,
) -> i32
Expand description

@brief Set sync phase for MCPWM timer

@param[in] timer MCPWM timer handle, allocated by mcpwm_new_timer() @param[in] config MCPWM timer sync phase configuration @return - ESP_OK: Set sync phase for MCPWM timer successfully - ESP_ERR_INVALID_ARG: Set sync phase for MCPWM timer failed because of invalid argument - ESP_FAIL: Set sync phase for MCPWM timer failed because of other error