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