Function esp_idf_sys::pcnt_set_filter_value
source ยท pub unsafe extern "C" fn pcnt_set_filter_value(
unit: pcnt_unit_t,
filter_val: u16,
) -> esp_err_t
Expand description
@brief Set PCNT filter value
@param unit PCNT unit number @param filter_val PCNT signal filter value, counter in APB_CLK cycles. Any pulses lasting shorter than this will be ignored when the filter is enabled. @note filter_val is a 10-bit value, so the maximum filter_val should be limited to 1023.
@return - ESP_OK Success - ESP_ERR_INVALID_STATE pcnt driver has not been initialized - ESP_ERR_INVALID_ARG Parameter error