Function esp_idf_sys::pcnt_event_enable
source ยท pub unsafe extern "C" fn pcnt_event_enable(
unit: pcnt_unit_t,
evt_type: pcnt_evt_type_t,
) -> esp_err_t
Expand description
@brief Enable PCNT event 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). @return - ESP_OK Success - ESP_ERR_INVALID_STATE pcnt driver has not been initialized - ESP_ERR_INVALID_ARG Parameter error