Function esp_idf_hal::sys::mcpwm_capture_channel_disable
source ยท pub unsafe extern "C" fn mcpwm_capture_channel_disable(
cap_channel: *mut mcpwm_cap_channel_t,
) -> i32
Expand description
@brief Disable MCPWM capture channel
@param[in] cap_channel MCPWM capture channel handle, allocated by mcpwm_new_capture_channel()
@return
- ESP_OK: Disable MCPWM capture channel successfully
- ESP_ERR_INVALID_ARG: Disable MCPWM capture channel failed because of invalid argument
- ESP_ERR_INVALID_STATE: Disable MCPWM capture channel failed because the channel is not enabled yet
- ESP_FAIL: Disable MCPWM capture channel failed because of other error