Skip to main content

pamoja_debounce_update

Function pamoja_debounce_update 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_debounce_update( debounce: *mut PamojaDebounce, raw: bool, ) -> bool
Expand description

Feeds a raw reading to a debouncer and returns the settled state.

§Returns

The debounced state, or false if debounce is null.

§Safety

debounce must be a live handle from pamoja_debounce_new, or null.