Function esp_idf_svc::hal::sys::mcpwm_soft_sync_activate

source ยท
pub unsafe extern "C" fn mcpwm_soft_sync_activate(
    sync: *mut mcpwm_sync_t,
) -> i32
Expand description

@brief Activate the software sync, trigger the sync event for once

@param[in] sync MCPWM soft sync handle, allocated by mcpwm_new_soft_sync_src() @return - ESP_OK: Trigger MCPWM software sync event successfully - ESP_ERR_INVALID_ARG: Trigger MCPWM software sync event failed because of invalid argument - ESP_FAIL: Trigger MCPWM software sync event failed because of other error