Type Alias esp_idf_sys::filter_cb_t
source · pub type filter_cb_t = Option<unsafe extern "C" fn(raw_value: *mut u16, filtered_value: *mut u16)>;
Expand description
@brief Callback function that is called after each IIR filter calculation. @note This callback is called in timer task in each filtering cycle. @note This callback should not be blocked. @param raw_value The latest raw data(touch sensor counter value) that points to all channels(raw_value[0..TOUCH_PAD_MAX-1]). @param filtered_value The latest IIR filtered data(calculated from raw data) that points to all channels(filtered_value[0..TOUCH_PAD_MAX-1]).
Aliased Type§
enum filter_cb_t {
None,
Some(unsafe extern "C" fn(_: *mut u16, _: *mut u16)),
}