Function esp_idf_hal::sys::mcpwm_del_generator
source ยท pub unsafe extern "C" fn mcpwm_del_generator(
gen: *mut mcpwm_gen_t,
) -> i32
Expand description
@brief Delete MCPWM generator
@param[in] gen MCPWM generator handle, allocated by mcpwm_new_generator()
@return
- ESP_OK: Delete MCPWM generator successfully
- ESP_ERR_INVALID_ARG: Delete MCPWM generator failed because of invalid argument
- ESP_FAIL: Delete MCPWM generator failed because of other error