Skip to main content

pamoja_trigger_above

Function pamoja_trigger_above 

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

Creates a trigger that fires when a reading rises above the line and clears once it has fallen below 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.