Function esp_idf_hal::sys::mcpwm_capture_timer_get_resolution
source ยท pub unsafe extern "C" fn mcpwm_capture_timer_get_resolution(
cap_timer: *mut mcpwm_cap_timer_t,
out_resolution: *mut u32,
) -> i32
Expand description
@brief Get MCPWM capture timer resolution, in Hz
@param[in] cap_timer MCPWM capture timer, allocated by mcpwm_new_capture_timer()
@param[out] out_resolution Returned capture timer resolution, in Hz
@return
- ESP_OK: Get capture timer resolution successfully
- ESP_ERR_INVALID_ARG: Get capture timer resolution failed because of invalid argument
- ESP_FAIL: Get capture timer resolution failed because of other error