|
LevelMeter-Display
2.0
An ultrasonic Level Meter for Stormwater Cisterns
|
Routines for handling Sensor values. More...

Functions | |
| double | P3FromADC (uint16_t val) |
| Converts a P3-Raw ADC Value to Voltage. More... | |
| double | P5FromADC (uint16_t val) |
| Converts a P5-Raw ADC Value to Voltage. More... | |
| double | SWUnregFromADC (uint16_t val) |
| Converts a SWUnreg-Raw ADC Value to Voltage. More... | |
| double | TempFromADC (void) |
| Converts the ADC-Temp Value to Celsius. More... | |
| double | UnregFromADC (uint16_t val) |
| Converts a Unreg-Raw ADC Value to Voltage. More... | |
Routines for handling Sensor values.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
| double P3FromADC | ( | uint16_t | val | ) |
Converts a P3-Raw ADC Value to Voltage.
| val | The ADC Value |
References config, and confStruct_t::P3VoltsPerLSB.
Referenced by CmdStat(), EnterDouble(), FTestSupply(), and ShowScreen().

| double P5FromADC | ( | uint16_t | val | ) |
Converts a P5-Raw ADC Value to Voltage.
| val | The ADC Value |
References config, and confStruct_t::P5VoltsPerLSB.
Referenced by CmdStat(), EnterDouble(), FTestSupply(), ShowScreen(), and TempFromADC().

| double SWUnregFromADC | ( | uint16_t | val | ) |
Converts a SWUnreg-Raw ADC Value to Voltage.
| val | The ADC Value |
References config, and confStruct_t::SWUnregVoltsPerLSB.
Referenced by CmdStat(), EnterDouble(), FTestSWUnreg(), and ShowScreen().

| double TempFromADC | ( | void | ) |
Converts the ADC-Temp Value to Celsius.
References ADCData_t::ADC_P5, ADCData_t::ADC_Temp, ADCData, ADCDataAvg, ADCData_t::named, and P5FromADC().
Referenced by CmdStat(), and ShowScreen().


| double UnregFromADC | ( | uint16_t | val | ) |
Converts a Unreg-Raw ADC Value to Voltage.
| val | The ADC Value |
References config, and confStruct_t::UnregVoltsPerLSB.
Referenced by CmdStat(), EnterDouble(), FTestSupply(), FTestSWUnreg(), main(), and ShowScreen().

1.8.15