thresh
Files: thresh.h, thresh.c
Trigger generator for signals that cross a given threshold.
sp_thresh_create(sp_thresh **thresh)
sp_thresh_init(sp_data *sp, sp_thresh *thresh)
sp_thresh_compute(sp_data *sp, sp_thresh *thresh, SPFLOAT *input, SPFLOAT *trig)
sp_thresh_destroy(sp_thresh **thresh)
Optional Parameters
thresh: Threshold level
(Default value: 1.5)
mode: Sets when to detect theshold crossings. 0 = from below. 1 = from above. 2 = from above/below
(Default value: 0)
Inputs
input: Input signal.
Outputs
trig: Produces a trigger when the input signal crosses the set threshold.