Function esp_idf_sys::pcnt_intr_enable
source ยท pub unsafe extern "C" fn pcnt_intr_enable(
pcnt_unit: pcnt_unit_t,
) -> esp_err_t
Expand description
@brief Enable PCNT interrupt for PCNT unit @note Each Pulse counter unit has five watch point events that share the same interrupt. Configure events with pcnt_event_enable() and pcnt_event_disable()
@param pcnt_unit PCNT unit number
@return - ESP_OK Success - ESP_ERR_INVALID_STATE pcnt driver has not been initialized - ESP_ERR_INVALID_ARG Parameter error