|
3-phase PV router
|
Enumerations | |
| enum class | Channel : uint8_t { V1 , I1 , V2 , I2 , V3 , I3 } |
Functions | |
| constexpr uint8_t | admuxOf (const PcbVersion board, const Channel ch) |
| The ADMUX value that converts a channel: reference, left-adjusted result, analog input. | |
| constexpr uint8_t | admuxWrittenAfter (const PcbVersion board, const Channel converted) |
| The ADMUX value the interrupt writes after the conversion of a channel. | |
| constexpr Channel | channelAfterNext (const Channel ch) |
| The channel two steps after another one in the chain V1, I1, V2, I2, V3, I3. | |
| constexpr Channel | channelConverted (const uint8_t round) |
The channel round round converts, once the pipeline is full. | |
| constexpr uint8_t | pinOf (const Channel ch) |
| The analog input of a channel (A0 = 0). | |
| constexpr uint8_t | refBits (const PcbVersion board) |
| The reference bits of ADMUX on a board. | |
Variables | |
| constexpr uint8_t | BIT_ADLAR { 5 } |
| constexpr uint8_t | BIT_REFS0 { 6 } |
| constexpr uint8_t | BIT_REFS1 { 7 } |
| constexpr uint8_t | NO_OF_CONVERSIONS { 6 } |
|
strong |
The six conversions, in the order of the chain: a V then an I, for each phase
| Enumerator | |
|---|---|
| V1 | voltage of phase 1 |
| I1 | current of phase 1 |
| V2 | voltage of phase 2 |
| I2 | current of phase 2 |
| V3 | voltage of phase 3 |
| I3 | current of phase 3 |
Definition at line 34 of file adc_chain.h.
|
constexpr |
The ADMUX value that converts a channel: reference, left-adjusted result, analog input.
| board | The board. |
| ch | The channel. |
Definition at line 81 of file adc_chain.h.


|
constexpr |
The ADMUX value the interrupt writes after the conversion of a channel.
The conversion of the next channel has already started: the value written applies to the conversion after next, which is the channel after next.
| board | The board. |
| converted | The channel just converted. |
Definition at line 107 of file adc_chain.h.


The channel two steps after another one in the chain V1, I1, V2, I2, V3, I3.
| ch | The channel. |
Definition at line 92 of file adc_chain.h.

|
constexpr |
The channel round round converts, once the pipeline is full.
| round | The round (0, 1, 2...), from the first conversion of V1. |
Definition at line 118 of file adc_chain.h.

|
constexpr |
The analog input of a channel (A0 = 0).
| ch | The channel. |
Definition at line 57 of file adc_chain.h.

|
constexpr |
The reference bits of ADMUX on a board.
| board | The board. |
Definition at line 68 of file adc_chain.h.

|
inlineconstexpr |
ADLAR: left-adjusted result
Definition at line 49 of file adc_chain.h.
|
inlineconstexpr |
REFS0: alone, the AVcc reference
Definition at line 48 of file adc_chain.h.
|
inlineconstexpr |
REFS1: with REFS0, the internal 1.1 V reference
Definition at line 47 of file adc_chain.h.
|
inlineconstexpr |
conversions in the chain: a V and an I per phase
Definition at line 44 of file adc_chain.h.