Function esp_idf_hal::sys::mcpwm_new_gpio_sync_src
source · pub unsafe extern "C" fn mcpwm_new_gpio_sync_src(
config: *const mcpwm_gpio_sync_src_config_t,
ret_sync: *mut *mut mcpwm_sync_t,
) -> i32
Expand description
@brief Create MCPWM GPIO sync source
@param[in] config MCPWM GPIO sync source configuration @param[out] ret_sync Returned MCPWM GPIO sync handle @return - ESP_OK: Create MCPWM GPIO sync source successfully - ESP_ERR_INVALID_ARG: Create MCPWM GPIO sync source failed because of invalid argument - ESP_ERR_NO_MEM: Create MCPWM GPIO sync source failed because out of memory - ESP_ERR_NOT_FOUND: Create MCPWM GPIO sync source failed because can’t find free resource - ESP_FAIL: Create MCPWM GPIO sync source failed because of other error