LMA
Lightweight Metrology for AC
Loading...
Searching...
No Matches
LMA_ZeroCross Struct Reference

Description

Zero cross detection data.

Data structure containing all parameters for use in zero-cross detection on AC voltage line.

Data Fields

uint32_t count
 running counter to count the number of zero cross
spl_t last_sample
 Tracked/filtered voltage.
bool debounce
 zerocross debounce flag
bool first_event
 flag indicating we have already detected a zero cross (synch'd)