Function esp_idf_svc::hal::sys::mcpwm_new_soft_sync_src

source ยท
pub unsafe extern "C" fn mcpwm_new_soft_sync_src(
    config: *const mcpwm_soft_sync_config_t,
    ret_sync: *mut *mut mcpwm_sync_t,
) -> i32
Expand description

@brief Create MCPWM software sync source

@param[in] config MCPWM software sync source configuration @param[out] ret_sync Returned software sync handle @return - ESP_OK: Create MCPWM software sync successfully - ESP_ERR_INVALID_ARG: Create MCPWM software sync failed because of invalid argument - ESP_ERR_NO_MEM: Create MCPWM software sync failed because out of memory - ESP_FAIL: Create MCPWM software sync failed because of other error