Function esp_idf_sys::pcnt_set_event_value
source ยท pub unsafe extern "C" fn pcnt_set_event_value(
unit: pcnt_unit_t,
evt_type: pcnt_evt_type_t,
value: i16,
) -> esp_err_t
Expand description
@brief Set 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 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