Expand description
Embedded-first electrical metrology DSP library (IEC 61000-4-30 Class S, IEC 62053-21).
Re-exports§
pub use energy::*;pub use events::*;pub use harmonics::*;pub use oscillography::*;pub use phase::*;pub use power::*;pub use print::*;pub use rvc::*;pub use signal::*;pub use types::*;pub use unbalance::*;
Modules§
- accuracy_
test - Per-phase accuracy test harness and test point definitions (IEC 62053-21).
- channel_
map - Physical ADC channel types and channel-to-phase mapping.
- detector
- Alarm Detector library — Rust port of the original C detector library.
- energy
- Active and reactive energy computation with 4-quadrant micro-joule accumulation.
- events
- Power quality event type definitions (dip, swell, interruption).
- filters
- Fixed-size moving-average filter implementation.
- flicker
- Flickermeter implementation constants and filters (IEC 61000-4-15).
- generate_
signal - Synthetic electrical signal generator for simulation and testing.
- harmonics
- Harmonic and interharmonic spectral analysis via FFT.
- math
- Float math helpers available in both
stdandno_stdbuilds. - oscillography
- Oscillography capture window constants (pre/post-trigger cycles).
- phase
- Phase angle measurement and direction classification (inductive/capacitive/in-phase).
- pll
- High-inertia digital PLL for grid frequency tracking and synchronization.
- power
- Power metrics computation (real, reactive, apparent and power factor).
- Debug print helpers for metrology metrics.
- processing
- Main DSP pipeline coordinating per-cycle metric updates.
- resampling
- Signal resampling utilities (linear and synchronous).
- rvc
- Rapid Voltage Change (RVC) event detection (IEC 61000-4-30).
- signal
- Per-cycle signal processing: RMS, PLL update, resampling and quality flags.
- types
- Core data structures, configuration and measurement socket metrics.
- unbalance
- Voltage and current unbalance via Fortescue symmetrical components.
- urms
- Half-cycle RMS (Urms) measurement with sum-of-squares accumulation.
- voltage_
current - Voltage and current RMS calculation and sample integration.
- windowing
- Window function generation (Hann) for spectral analysis.