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