Skip to main content

pamoja_debounce_new

Function pamoja_debounce_new 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_debounce_new( samples: u16, initial: bool, ) -> *mut PamojaDebounce
Expand description

Creates a debouncer that requires samples agreeing readings to change state.

§Returns

A handle the caller must release with pamoja_debounce_free.

§Safety

The returned handle must be freed exactly once.