|
3-phase PV router
|
Classes | |
| struct | Action |
| The transaction to run, and the sensor it reads (ADDRESS, READ, CLOSE). More... | |
| class | Scheduler |
| The round of the sensors, one transaction per mains cycle. More... | |
Enumerations | |
| enum class | Step : uint8_t { NONE , CONVERT , ADDRESS , READ , CLOSE } |
| The 1-Wire transaction of a mains cycle. More... | |
Functions | |
| constexpr uint16_t | conversionCycles (const uint8_t supplyFrequency) |
| The mains cycles from the conversion to the first read. | |
| constexpr bool | fitsInPeriod (const uint8_t noOfSensors, const uint8_t supplyFrequency, const uint16_t periodCycles) |
| Whether a round ends within its datalog period. | |
| constexpr uint16_t | roundCycles (const uint8_t noOfSensors, const uint8_t supplyFrequency) |
| The mains cycles of a round on time: from the conversion to the last CLOSE. | |
Variables | |
| constexpr uint16_t | CONVERSION_MS { 750 } |
| constexpr uint8_t | STEPS_PER_SENSOR { 3 } |
|
strong |
The 1-Wire transaction of a mains cycle.
Definition at line 56 of file temp_schedule.h.
|
constexpr |
The mains cycles from the conversion to the first read.
750 ms rounded up to whole cycles, plus one: a transaction may start up to a little after its cycle began (39 cycles at 50 Hz, 780 ms; 46 at 60 Hz, 767 ms).
| supplyFrequency | SUPPLY_FREQUENCY |
Definition at line 84 of file temp_schedule.h.

|
constexpr |
Whether a round ends within its datalog period.
The round starts at the first cycle of the period, or the next one if the first is late; one cycle per second of the round may be late; and it must be over before the last cycle of the period, whose datalog copies run in the ADC interrupt at L1's crossing, before the new cycle is flagged.
| noOfSensors | The number of sensors |
| supplyFrequency | SUPPLY_FREQUENCY |
| periodCycles | DATALOG_PERIOD_IN_MAINS_CYCLES |
Definition at line 112 of file temp_schedule.h.


|
constexpr |
The mains cycles of a round on time: from the conversion to the last CLOSE.
| noOfSensors | The number of sensors |
| supplyFrequency | SUPPLY_FREQUENCY |
Definition at line 95 of file temp_schedule.h.


|
inlineconstexpr |
the longest conversion of a DS18B20, at 12 bits
Definition at line 74 of file temp_schedule.h.
|
inlineconstexpr |
ADDRESS, READ, CLOSE
Definition at line 72 of file temp_schedule.h.