Function esp_idf_sys::pcnt_unit_config
source ยท pub unsafe extern "C" fn pcnt_unit_config(
pcnt_config: *const pcnt_config_t,
) -> esp_err_t
Expand description
@brief Configure Pulse Counter unit @note This function will disable three events: PCNT_EVT_L_LIM, PCNT_EVT_H_LIM, PCNT_EVT_ZERO.
@param pcnt_config Pointer of Pulse Counter unit configure parameter
@return - ESP_OK Success - ESP_ERR_INVALID_STATE pcnt driver already initialized - ESP_ERR_INVALID_ARG Parameter error