Function esp_idf_sys::pcnt_get_counter_value
source ยท pub unsafe extern "C" fn pcnt_get_counter_value(
pcnt_unit: pcnt_unit_t,
count: *mut i16,
) -> esp_err_t
Expand description
@brief Get pulse counter value
@param pcnt_unit Pulse Counter unit number @param count Pointer to accept counter value
@return - ESP_OK Success - ESP_ERR_INVALID_STATE pcnt driver has not been initialized - ESP_ERR_INVALID_ARG Parameter error