bool32.risingfalling start counting,output the time interval
int32 time interval in k-rate ticks (0.333ms)
int32_t trigstart;
int32_t trigstop;
int tc;
trigstart = 0;
trigstop = 0;
tc = 0;
if ((inlet_toggle) && !trigstart) {
tc = 0;
trigstart = 1;
} else if (!(inlet_toggle)) {
trigstart = 0;
outlet_t = tc;
}
if (trigstart) {
tc == tc++;
outlet_t = 0;
}