Function esp_idf_sys::pcnt_get_event_value

source ยท
pub unsafe extern "C" fn pcnt_get_event_value(
    unit: pcnt_unit_t,
    evt_type: pcnt_evt_type_t,
    value: *mut i16,
) -> esp_err_t
Expand description

@brief Get PCNT event value of PCNT unit

@param unit PCNT unit number @param evt_type Watch point event type. All enabled events share the same interrupt (one interrupt per pulse counter unit). @param value Pointer to accept counter value for PCNT event

@return - ESP_OK Success - ESP_ERR_INVALID_STATE pcnt driver has not been initialized - ESP_ERR_INVALID_ARG Parameter error