Function esp_idf_svc::hal::sys::mcpwm_capture_timer_set_phase_on_sync

source ยท
pub unsafe extern "C" fn mcpwm_capture_timer_set_phase_on_sync(
    cap_timer: *mut mcpwm_cap_timer_t,
    config: *const mcpwm_capture_timer_sync_phase_config_t,
) -> i32
Expand description

@brief Set sync phase for MCPWM capture timer

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