Skip to main content

pamoja_trigger_below

Function pamoja_trigger_below 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_trigger_below( threshold: f32, hysteresis: f32, ) -> *mut PamojaTrigger
Expand description

Creates a trigger that fires when a reading falls below the line and clears once it has risen above the line by the hysteresis.

§Returns

A handle the caller must release with pamoja_trigger_free.

§Safety

The returned handle must be freed exactly once.