| ▼ Mk2_3phase_RFdatalog_temp | |
| ▼ test | |
| ► embedded | |
| ► test_datalog_math_avr | |
| test_main.cpp | The integer datalog arithmetic on the target: exact results, and cycle counts against the float code it replaces |
| ► test_fastdivision | |
| test_main.cpp | Embedded unit tests for FastDivision |
| ► test_fastdivision_perf | |
| test_main.cpp | Performance benchmarks for FastDivision |
| ► test_mult_asm | |
| test_main.cpp | Unity-based unit tests for assembly multiplication functions |
| ► test_mult_asm_perf | |
| test_main.cpp | Performance benchmarks for assembly multiplication functions |
| ► test_serial_output | |
| test_main.cpp | |
| ► test_teleinfo | |
| test_main.cpp | Embedded tests for teleinfo.h: the IoT frame on the ATmega328P (16-bit int) |
| ► test_utils_pins | |
| test_main.cpp | |
| ► test_utils_relay | |
| test_main.cpp | |
| ► test_voltage_accumulation | |
| test_main.cpp | Unity tests for voltage accumulation overflow analysis with 14-bit optimization |
| bench_report.h | Machine-readable lines per benchmark result, for the CI performance report |
| bench_timer.h | Exact CPU cycle count of a benchmark loop, whatever its length |
| halt_after_tests.h | Stops the MCU once an embedded test suite has run |
| ► native | |
| ► test_adc_chain | |
| test_main.cpp | Native tests for adc_chain.h: the six conversions, the reference and the ADMUX pipeline |
| ► test_config_h | |
| test_main.cpp | Native tests for config.h itself |
| ► test_ct_filter | |
| test_main.cpp | Native tests for ct_filter.h: the CT filter, in fixed point |
| ► test_datalog_math | |
| test_main.cpp | Native unit tests for datalog_math.h |
| ► test_dc_offset_filter | |
| test_main.cpp | Unity tests for DC offset filter with left-aligned ADC |
| ► test_ds18b20 | |
| test_main.cpp | The checks of a DS18B20 reading (ds18b20.h): CRC, conversion, range, power-on value |
| ► test_dual_tariff | |
| test_main.cpp | Native unit tests for utils_dualtariff.h: the scheduled boosts of the dual tariff |
| ► test_energy_bucket | |
| test_main.cpp | Native unit tests for energy_bucket.h |
| ► test_ewma_avg | |
| test_main.cpp | |
| ► test_load_priorities | |
| test_main.cpp | Native unit tests for load_priorities.h: the load priority state machine |
| ► test_onewire_search | |
| test_main.cpp | The ROM search of onewire_search.h, on a simulated 1-Wire bus |
| ► test_override_masks | |
| test_main.cpp | Native unit tests for override_masks.h: what is forced ON, by the override pins and the scheduled boosts of the dual tariff |
| ► test_pin_edges | |
| test_main.cpp | Native unit tests for pin_edges.h |
| ► test_power_rms_comparison | |
| test_main.cpp | Unity tests for power and RMS calculations: old vs new (left-aligned ADC) |
| ► test_relay_engine | |
| test_main.cpp | Native unit tests for relay_engine.h: the decisions of the relay diversion |
| ► test_remote_loads | |
| test_main.cpp | Native unit tests for load_map.h and remote_loads_core.h |
| ► test_rotation_groups | |
| test_main.cpp | Native tests for the rotation groups: the setting, its resolution and the rotation |
| ► test_teleinfo | |
| test_main.cpp | Native tests for teleinfo.h: the IoT frame, streamed a line per step |
| ► test_temp_schedule | |
| test_main.cpp | Native unit tests for temp_schedule.h: which 1-Wire transaction runs on which mains cycle |
| ► test_utils_override | |
| test_main.cpp | Native unit tests for utils_override.h |
| ▼ type_traits | |
| conditional.hpp | |
| decay.hpp | |
| declval.hpp | |
| enable_if.hpp | |
| function_traits.hpp | |
| index_sequence.hpp | Std::index_sequence, which avr-libc lacks, on 8-bit indexes |
| integral_constant.hpp | |
| is_array.hpp | |
| is_base_of.hpp | |
| is_class.hpp | |
| is_const.hpp | |
| is_convertible.hpp | |
| is_enum.hpp | |
| is_floating_point.hpp | |
| is_integral.hpp | |
| is_pointer.hpp | |
| is_same.hpp | |
| is_signed.hpp | |
| is_unsigned.hpp | |
| make_unsigned.hpp | |
| remove_const.hpp | |
| remove_cv.hpp | |
| remove_reference.hpp | |
| type_identity.hpp | |
| void_t.hpp | |
| adc_chain.h | The six ADC conversions of the 3-phase board, and the ADMUX pipeline of the free-running ADC |
| calibration.h | Calibration values definition |
| config.h | Router configuration: loads, relays, control pins and features |
| config_derived.h | The configuration as the firmware uses it: the settings, and what is built from them |
| config_rf.h | RF module configuration for RFM69 |
| config_system.h | Basic configuration values to be set by the end-user |
| config_types.h | What config.h is written with: its types, constants and helpers |
| constants.h | Some constants |
| ct_filter.h | The CT filter: a low-pass of the current added back with a gain, one per phase |
| datalog_math.h | Integer arithmetic of the datalog: power and RMS voltage per phase |
| debug.h | The text output: informational messages (info) and debug messages (debug) |
| ds18b20.h | The checks of a DS18B20 reading: CRC, conversion to hundredths of °C, range, power-on value |
| dualtariff.h | The scheduled boosts of the dual tariff, resolved at compile time |
| energy_bucket.h | Integer arithmetic of the energy bucket |
| ewma_avg.hpp | This file implements an Exponentially Weighted Moving Average template class |
| FastDivision.cpp | |
| FastDivision.h | |
| load_map.h | Encoding of the load map: one packed byte per dump load |
| load_priorities.h | The load priority state machine: which load to switch at each mains cycle |
| main.cpp | Main code for the PVRouter 3-phase project |
| main.h | Header file for the main application |
| Mk2_3phase_RFdatalog_temp.ino | A photovoltaic energy diverter |
| mult_asm.h | Assembly-optimized multiplication functions for AVR microcontrollers |
| onewire_search.h | The ROM search of a 1-Wire bus, on the bit primitives of the bus |
| override_masks.h | The forced outputs: the override pins, and the scheduled boosts of the dual tariff |
| pin_edges.h | The edges of the active-LOW input pins: pressed, released, or no change |
| processing.cpp | Implements the processing engine |
| processing.h | Public functions/variables of processing engine |
| relay_engine.h | Decisions of the relay diversion: which relay switches, and when |
| remote_loads.h | Support for remotely controlled loads via RF using RFM69 |
| remote_loads_core.h | Unit grouping and payload bookkeeping for remotely controlled loads |
| rotation_groups.h | The rotation groups: which loads take turns, checked and resolved at compile time |
| serial_output.h | Non-blocking serial output of the datalog |
| shared_var.h | |
| teleinfo.h | The telemetry frame of the IoT output, written a line at a time |
| temp_schedule.h | Which 1-Wire transaction of the temperature sensors runs on which mains cycle |
| type_traits.hpp | Some useful but missing stl functions templates |
| types.h | Some basics classes/types |
| utils.h | Some utility functions |
| utils_bits.h | Bit manipulation utility functions |
| utils_dualtariff.h | Some utility functions for dual tariff feature |
| utils_override.h | Compile-time utilities for managing override pins and index-to-bitmask mapping |
| utils_pins.h | Some utility functions for pins manipulation |
| utils_relay.h | Some utility functions for the relay output feature |
| utils_rf.h | RF module support for RFM69 |
| utils_temp.h | Provides utilities for managing temperature sensors |
| validation.h | Compile-time validations |
| version.h | |